clang API Documentation
#include <ProgramState.h>
Definition at line 437 of file ProgramState.h.
ProgramStateManager::ProgramStateManager | ( | ASTContext & | Ctx, |
StoreManagerCreator | CreateStoreManager, | ||
ConstraintManagerCreator | CreateConstraintManager, | ||
llvm::BumpPtrAllocator & | alloc, | ||
SubEngine * | subeng | ||
) |
Definition at line 70 of file ProgramState.cpp.
Definition at line 83 of file ProgramState.cpp.
ProgramStateRef clang::ento::ProgramStateManager::add | ( | ProgramStateRef | st, |
typename ProgramStateTrait< T >::key_type | K, | ||
typename ProgramStateTrait< T >::context_type | C | ||
) | [inline] |
Definition at line 581 of file ProgramState.h.
References addGDM().
Referenced by clang::ento::ProgramState::add().
ProgramStateRef ProgramStateManager::addGDM | ( | ProgramStateRef | St, |
void * | Key, | ||
void * | Data | ||
) |
Definition at line 484 of file ProgramState.cpp.
References getPersistentState().
SVal clang::ento::ProgramStateManager::ArrayToPointer | ( | Loc | Array, |
QualType | ElementTy | ||
) | [inline] |
Definition at line 519 of file ProgramState.h.
Referenced by clang::ento::SValBuilder::evalCast().
void clang::ento::ProgramStateManager::EndPath | ( | ProgramStateRef | St | ) | [inline] |
Definition at line 615 of file ProgramState.h.
Referenced by clang::ento::ExprEngine::processEndOfFunction().
void * ProgramStateManager::FindGDMContext | ( | void * | index, |
void *(*)(llvm::BumpPtrAllocator &) | CreateContext, | ||
void(*)(void *) | DeleteContext | ||
) |
Definition at line 471 of file ProgramState.cpp.
Referenced by get_context().
ProgramStateTrait<T>::context_type clang::ento::ProgramStateManager::get_context | ( | ) | [inline] |
Definition at line 607 of file ProgramState.h.
References FindGDMContext().
Referenced by clang::ento::ProgramState::get_context().
llvm::BumpPtrAllocator& clang::ento::ProgramStateManager::getAllocator | ( | ) | [inline] |
Definition at line 498 of file ProgramState.h.
Definition at line 483 of file ProgramState.h.
Referenced by clang::ento::ProgramState::getBasicVals(), and clang::ento::ExprEngine::getBasicVals().
Definition at line 507 of file ProgramState.h.
Referenced by clang::ento::ExprEngine::processCallExit(), clang::ento::ExprEngine::VisitCallExpr(), clang::ento::ExprEngine::VisitCXXConstructExpr(), clang::ento::ExprEngine::VisitCXXDestructor(), clang::ento::ExprEngine::VisitCXXNewAllocatorCall(), clang::ento::ExprEngine::VisitCXXNewExpr(), clang::ento::UndefOrNullArgVisitor::VisitNode(), and clang::ento::ExprEngine::VisitObjCMessage().
Definition at line 510 of file ProgramState.h.
Referenced by clang::ento::ProgramState::assumeInBound(), clang::ento::ProgramState::getConstraintManager(), clang::ento::ExprEngine::getConstraintManager(), clang::ento::ProgramState::getSVal(), and clang::ento::ProgramState::print().
ASTContext& clang::ento::ProgramStateManager::getContext | ( | ) | [inline] |
Definition at line 480 of file ProgramState.h.
Referenced by clang::ento::StoreManager::castRegion().
const ASTContext& clang::ento::ProgramStateManager::getContext | ( | ) | const [inline] |
Definition at line 481 of file ProgramState.h.
ProgramStateRef ProgramStateManager::getInitialState | ( | const LocationContext * | InitLoc | ) |
Definition at line 364 of file ProgramState.cpp.
References clang::ento::EnvironmentManager::getInitialEnvironment(), getPersistentState(), and State.
Referenced by clang::ento::ExprEngine::getInitialState().
SubEngine* clang::ento::ProgramStateManager::getOwningEngine | ( | ) | [inline] |
Definition at line 511 of file ProgramState.h.
Referenced by clang::ento::ProgramState::bindDefault(), clang::ento::ProgramState::bindLoc(), and clang::ento::ProgramState::print().
Definition at line 381 of file ProgramState.cpp.
References clang::ento::ProgramState::Profile(), and ProgramState.
Referenced by addGDM(), clang::ento::ProgramState::BindExpr(), getInitialState(), getPersistentStateWithGDM(), removeDeadBindings(), and removeGDM().
ProgramStateRef ProgramStateManager::getPersistentStateWithGDM | ( | ProgramStateRef | FromState, |
ProgramStateRef | GDMState | ||
) |
Definition at line 373 of file ProgramState.cpp.
References getPersistentState().
Referenced by clang::ento::ExprEngine::removeDead().
Definition at line 500 of file ProgramState.h.
Referenced by getLocationRegionIfReference(), clang::ento::ProgramState::getRegion(), and clang::ento::FindLastStoreBRVisitor::registerStatementVarDecls().
const MemRegionManager& clang::ento::ProgramStateManager::getRegionManager | ( | ) | const [inline] |
Definition at line 503 of file ProgramState.h.
Definition at line 509 of file ProgramState.h.
Referenced by clang::ento::SValBuilder::evalCast(), clang::CXXInstanceCall::getInitialStackFrameContents(), clang::ento::ExprEngine::getStoreManager(), clang::ento::ProgramState::print(), clang::ento::ProgramState::ProgramState(), and clang::ento::ProgramState::~ProgramState().
SValBuilder& clang::ento::ProgramStateManager::getSValBuilder | ( | ) | [inline] |
Definition at line 487 of file ProgramState.h.
Referenced by clang::ento::SimpleConstraintManager::assume(), clang::ento::ProgramState::assumeInBound(), clang::ento::CreateRangeConstraintManager(), clang::CallEventManager::getCaller(), clang::BlockCall::getInitialStackFrameContents(), clang::CXXInstanceCall::getInitialStackFrameContents(), clang::CXXConstructorCall::getInitialStackFrameContents(), clang::ObjCMethodCall::getInitialStackFrameContents(), clang::ento::BugReporterContext::getSValBuilder(), and makeZeroElementRegion().
Definition at line 491 of file ProgramState.h.
Referenced by clang::ento::ProgramState::getSymbolManager().
const SymbolManager& clang::ento::ProgramStateManager::getSymbolManager | ( | ) | const [inline] |
Definition at line 494 of file ProgramState.h.
bool clang::ento::ProgramStateManager::haveEqualEnvironments | ( | ProgramStateRef | S1, |
ProgramStateRef | S2 | ||
) | [inline] |
Definition at line 537 of file ProgramState.h.
Referenced by clang::ento::ExprEngine::removeDead().
bool clang::ento::ProgramStateManager::haveEqualStores | ( | ProgramStateRef | S1, |
ProgramStateRef | S2 | ||
) | [inline] |
Definition at line 541 of file ProgramState.h.
Referenced by clang::ento::ExprEngine::removeDead().
void clang::ento::ProgramStateManager::iterBindings | ( | ProgramStateRef | state, |
StoreManager::BindingsHandler & | F | ||
) | [inline] |
Definition at line 529 of file ProgramState.h.
Referenced by GetAllocationSite().
ProgramStateRef clang::ento::ProgramStateManager::remove | ( | ProgramStateRef | st, |
typename ProgramStateTrait< T >::key_type | K, | ||
typename ProgramStateTrait< T >::context_type | C | ||
) | [inline] |
Definition at line 589 of file ProgramState.h.
References addGDM(), and AttributeLangSupport::C.
Referenced by clang::ento::ProgramState::remove().
ProgramStateRef clang::ento::ProgramStateManager::remove | ( | ProgramStateRef | st | ) | [inline] |
Definition at line 598 of file ProgramState.h.
References removeGDM().
ProgramStateRef ProgramStateManager::removeDeadBindings | ( | ProgramStateRef | St, |
const StackFrameContext * | LCtx, | ||
SymbolReaper & | SymReaper | ||
) |
Definition at line 90 of file ProgramState.cpp.
References getPersistentState(), clang::ento::ProgramState::getStore(), clang::ento::EnvironmentManager::removeDeadBindings(), and clang::ento::SymbolReaper::setReapedStore().
Referenced by clang::ento::ExprEngine::removeDead().
ProgramStateRef ProgramStateManager::removeGDM | ( | ProgramStateRef | state, |
void * | Key | ||
) |
Definition at line 496 of file ProgramState.cpp.
References getPersistentState().
Referenced by remove().
ProgramStateRef clang::ento::ProgramStateManager::set | ( | ProgramStateRef | st, |
typename ProgramStateTrait< T >::data_type | D | ||
) | [inline] |
Definition at line 565 of file ProgramState.h.
References addGDM().
Referenced by clang::ento::ProgramState::set().
ProgramStateRef clang::ento::ProgramStateManager::set | ( | ProgramStateRef | st, |
typename ProgramStateTrait< T >::key_type | K, | ||
typename ProgramStateTrait< T >::value_type | V, | ||
typename ProgramStateTrait< T >::context_type | C | ||
) | [inline] |
Definition at line 571 of file ProgramState.h.
References addGDM(), and AttributeLangSupport::C.
friend class ProgramState [friend] |
Definition at line 438 of file ProgramState.h.
Referenced by getPersistentState().
void ProgramStateRelease | ( | const ProgramState * | state | ) | [friend] |
Decrement the number of times this state is referenced.