clang
3.7.0
|
#include <ExprEngine.h>
Public Types | |
enum | InliningModes { Inline_Regular = 0, Inline_Minimal = 0x1 } |
The modes of inlining, which override the default analysis-wide settings. More... | |
Protected Member Functions | |
void | evalBind (ExplodedNodeSet &Dst, const Stmt *StoreE, ExplodedNode *Pred, SVal location, SVal Val, bool atDeclInit=false, const ProgramPoint *PP=nullptr) |
ProgramStateRef | processPointerEscapedOnBind (ProgramStateRef State, SVal Loc, SVal Val) override |
Call PointerEscape callback when a value escapes as a result of bind. More... | |
ProgramStateRef | notifyCheckersOfPointerEscape (ProgramStateRef State, const InvalidatedSymbols *Invalidated, ArrayRef< const MemRegion * > ExplicitRegions, ArrayRef< const MemRegion * > Regions, const CallEvent *Call, RegionAndSymbolInvalidationTraits &ITraits) override |
Definition at line 48 of file ExprEngine.h.
The modes of inlining, which override the default analysis-wide settings.
Enumerator | |
---|---|
Inline_Regular |
Follow the default settings for inlining callees. |
Inline_Minimal |
Do minimal inlining of callees. |
Definition at line 51 of file ExprEngine.h.
ExprEngine::ExprEngine | ( | AnalysisManager & | mgr, |
bool | gcEnabled, | ||
SetOfConstDecls * | VisitedCalleesIn, | ||
FunctionSummariesTy * | FS, | ||
InliningModes | HowToInlineIn | ||
) |
Definition at line 69 of file ExprEngine.cpp.
|
override |
Definition at line 95 of file ExprEngine.cpp.
References clang::ento::BugReporter::FlushReports().
ProgramStateRef ExprEngine::bindReturnValue | ( | const CallEvent & | Call, |
const LocationContext * | LCtx, | ||
ProgramStateRef | State | ||
) |
Create a new state in which the call return value is binded to the call origin expression.
Definition at line 535 of file ExprEngineCallAndReturn.cpp.
References clang::ento::NodeBuilderContext::blockCount(), AttributeLangSupport::C, clang::ento::SVal::castAs(), clang::ento::SValBuilder::conjureSymbolVal(), clang::LangAS::Count, clang::ento::CallEvent::getOriginExpr(), clang::ento::CallEvent::getResultType(), getSValBuilder(), isTemporaryPRValue(), clang::OMF_autorelease, clang::OMF_retain, clang::OMF_self, and State.
void ExprEngine::CreateCXXTemporaryObject | ( | const MaterializeTemporaryExpr * | ME, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Create a C++ temporary object for an rvalue.
Definition at line 25 of file ExprEngineCXX.cpp.
References clang::ento::StmtNodeBuilder::generateNode(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), clang::MaterializeTemporaryExpr::GetTemporaryExpr(), and clang::Expr::IgnoreParens().
Referenced by Visit().
void ExprEngine::defaultEvalCall | ( | NodeBuilder & | B, |
ExplodedNode * | Pred, | ||
const CallEvent & | Call | ||
) |
Default implementation of call evaluation.
Definition at line 900 of file ExprEngineCallAndReturn.cpp.
References clang::ento::CallEvent::cloneWithState(), getAnalysisManager(), clang::ento::RuntimeDefinition::getDecl(), clang::ento::RuntimeDefinition::getDispatchRegion(), getInlineFailedState(), clang::AnalyzerOptions::getIPAMode(), clang::ento::ExplodedNode::getState(), clang::IPAK_DynamicDispatch, clang::IPAK_DynamicDispatchBifurcate, isTrivialObjectAssignment(), clang::ento::RuntimeDefinition::mayHaveOtherDefinitions(), clang::ento::AnalysisManager::options, and Options.
Referenced by clang::ento::CheckerManager::runCheckersForEvalCall(), VisitCXXConstructExpr(), VisitCXXDestructor(), VisitCXXNewAllocatorCall(), and VisitObjCMessage().
void clang::ento::ExprEngine::enqueueEndOfPath | ( | ExplodedNodeSet & | S | ) |
|
protected |
evalBind - Handle the semantics of binding a value to a specific location. This method is used by evalStore, VisitDeclStmt, and others.
evalBind - Handle the semantics of binding a value to a specific location. This method is used by evalStore and (soon) VisitDeclStmt, and others.
Definition at line 2117 of file ExprEngine.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ento::SVal::castAs(), clang::ento::ExplodedNodeSet::end(), clang::ento::StmtNodeBuilder::generateNode(), clang::ento::SVal::getAs(), getCheckerManager(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), processPointerEscapedOnBind(), and clang::ento::CheckerManager::runCheckersForBind().
Referenced by evalStore(), ProcessInitializer(), VisitCXXNewExpr(), and VisitDeclStmt().
|
inline |
Definition at line 472 of file ExprEngine.h.
References clang::ento::SValBuilder::evalBinOpNN().
Referenced by getInitialState(), VisitBinaryOperator(), VisitIncrementDecrementOperator(), and VisitUnaryOperator().
|
inline |
Definition at line 477 of file ExprEngine.h.
References clang::ento::SVal::castAs(), clang::ento::SValBuilder::evalBinOpNN(), and clang::ento::SVal::isValid().
|
inline |
Definition at line 483 of file ExprEngine.h.
References clang::ento::SValBuilder::evalBinOp().
void ExprEngine::evalCall | ( | ExplodedNodeSet & | Dst, |
ExplodedNode * | Pred, | ||
const CallEvent & | Call | ||
) |
Evaluate a call, running pre- and post-call checks and allowing checkers to be responsible for handling the evaluation of the call itself.
Definition at line 510 of file ExprEngineCallAndReturn.cpp.
References getCheckerManager(), clang::ento::CheckerManager::runCheckersForEvalCall(), clang::ento::CheckerManager::runCheckersForPostCall(), and clang::ento::CheckerManager::runCheckersForPreCall().
Referenced by VisitCallExpr().
Definition at line 466 of file ExprEngine.h.
References clang::ento::SVal::castAs(), clang::ento::SValBuilder::evalComplement(), clang::ento::SVal::isValid(), and X.
Referenced by VisitUnaryOperator().
void ExprEngine::evalEagerlyAssumeBinOpBifurcation | ( | ExplodedNodeSet & | Dst, |
ExplodedNodeSet & | Src, | ||
const Expr * | Ex | ||
) |
evalEagerlyAssumeBinOpBifurcation - Given the nodes in 'Src', eagerly assume symbolic expressions of the form 'x != 0' and generate new nodes (stored in Dst) with those assumptions.
Definition at line 2325 of file ExprEngine.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ProgramPoint::castAs(), clang::ento::ExplodedNodeSet::end(), clang::ento::StmtNodeBuilder::generateNode(), clang::ento::SVal::getAs(), clang::ProgramPoint::getAs(), geteagerlyAssumeBinOpBifurcationTags(), clang::ento::ExplodedNode::getLocation(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), clang::StmtPoint::getStmt(), clang::Expr::getType(), clang::ento::SValBuilder::makeIntVal(), and P.
Referenced by Visit().
void ExprEngine::evalLoad | ( | ExplodedNodeSet & | Dst, |
const Expr * | NodeEx, | ||
const Expr * | BoundExpr, | ||
ExplodedNode * | Pred, | ||
ProgramStateRef | St, | ||
SVal | location, | ||
const ProgramPointTag * | tag = nullptr , |
||
QualType | LoadTy = QualType() |
||
) |
Simulate a read of the result of Ex.
Definition at line 2202 of file ExprEngine.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ento::ExplodedNodeSet::end(), clang::ento::SVal::getAs(), clang::Type::getAs(), clang::ento::SVal::getAsRegion(), getContext(), and clang::ento::TypedValueRegion::getValueType().
Referenced by VisitBinaryOperator(), VisitCast(), VisitIncrementDecrementOperator(), and VisitMemberExpr().
Definition at line 462 of file ExprEngine.h.
References clang::ento::SVal::castAs(), clang::ento::SValBuilder::evalMinus(), clang::ento::SVal::isValid(), and X.
Referenced by VisitUnaryOperator().
void ExprEngine::evalStore | ( | ExplodedNodeSet & | Dst, |
const Expr * | AssignE, | ||
const Expr * | LocationE, | ||
ExplodedNode * | Pred, | ||
ProgramStateRef | state, | ||
SVal | location, | ||
SVal | Val, | ||
const ProgramPointTag * | tag = nullptr |
||
) |
evalStore - Handle the semantics of a store via an assignment.
Dst | The node set to store generated state nodes |
AssignE | The assignment expression if the store happens in an assignment. |
LocationE | The location expression that is stored to. |
state | The current simulation state |
location | The location to store the value |
Val | The value to be stored |
Definition at line 2179 of file ExprEngine.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ento::ExplodedNodeSet::empty(), clang::ento::ExplodedNodeSet::end(), evalBind(), and clang::ento::SVal::isUndef().
Referenced by VisitBinaryOperator(), and VisitIncrementDecrementOperator().
|
inline |
Returns true if there is still simulation state on the worklist.
Definition at line 108 of file ExprEngine.h.
References clang::ento::CoreEngine::ExecuteWorkList().
|
inline |
Execute the work list with an initial state. Nodes that reaches the exit of the function are added into the Dst set, which represent the exit state of the function call. Returns true if there is still simulation state on the worklist.
Definition at line 116 of file ExprEngine.h.
References clang::ento::CoreEngine::ExecuteWorkListWithInitialState().
void clang::ento::ExprEngine::GenerateAutoTransition | ( | ExplodedNode * | N | ) |
void clang::ento::ExprEngine::GenerateCallExitNode | ( | ExplodedNode * | N | ) |
|
inlineoverridevirtual |
Implements clang::ento::SubEngine.
Definition at line 125 of file ExprEngine.h.
Referenced by defaultEvalCall(), clang::ento::CheckerContext::getAnalysisManager(), clang::ento::LikelyFalsePositiveSuppressionBRVisitor::getEndPath(), ProcessNewAllocator(), and VisitCXXBindTemporaryExpr().
|
inline |
Definition at line 307 of file ExprEngine.h.
References clang::ento::ProgramStateManager::getBasicVals().
Referenced by processSwitch(), VisitInitListExpr(), and VisitUnaryOperator().
|
inline |
Definition at line 133 of file ExprEngine.h.
Referenced by clang::ento::CheckerContext::emitReport(), and clang::ento::CheckerContext::getBugReporter().
|
inline |
Definition at line 135 of file ExprEngine.h.
Referenced by getRegionForConstructedObject(), and clang::ento::CheckerManager::runCheckersForEvalCall().
|
inline |
Definition at line 127 of file ExprEngine.h.
References clang::ento::AnalysisManager::getCheckerManager().
Referenced by evalBind(), evalCall(), notifyCheckersOfPointerEscape(), printState(), processAssume(), processBranch(), processCallExit(), processEndOfFunction(), processEndWorklist(), processPointerEscapedOnBind(), processRegionChanges(), removeDead(), Visit(), VisitBinaryOperator(), VisitBlockExpr(), VisitCallExpr(), VisitCast(), VisitCXXConstructExpr(), VisitCXXDestructor(), VisitCXXNewAllocatorCall(), VisitDeclStmt(), VisitLvalArraySubscriptExpr(), VisitLvalObjCIvarRefExpr(), VisitMemberExpr(), VisitObjCAtSynchronizedStmt(), VisitObjCForCollectionStmt(), VisitObjCMessage(), VisitReturnStmt(), VisitUnaryExprOrTypeTraitExpr(), VisitUnaryOperator(), and wantsRegionChangeUpdate().
|
inline |
Definition at line 302 of file ExprEngine.h.
References clang::ento::ProgramStateManager::getConstraintManager().
Referenced by clang::ento::CheckerContext::getConstraintManager(), and removeDead().
|
inline |
getContext - Return the ASTContext associated with this analysis.
Definition at line 123 of file ExprEngine.h.
References clang::ento::AnalysisManager::getASTContext().
Referenced by evalLoad(), clang::ento::CheckerContext::getASTContext(), clang::ento::CheckerContext::getLangOpts(), processBranch(), ProcessDeleteDtor(), ProcessInitializer(), ProcessStmt(), processSwitch(), ViewGraph(), Visit(), VisitBinaryOperator(), VisitBlockExpr(), VisitCast(), VisitCommonDeclRefExpr(), VisitCXXConstructExpr(), VisitCXXDestructor(), VisitCXXNewAllocatorCall(), VisitCXXNewExpr(), VisitCXXThisExpr(), VisitDeclStmt(), VisitInitListExpr(), VisitOffsetOfExpr(), and VisitUnaryExprOrTypeTraitExpr().
|
inline |
Definition at line 320 of file ExprEngine.h.
Referenced by processCallExit().
std::pair< const ProgramPointTag *, const ProgramPointTag * > ExprEngine::geteagerlyAssumeBinOpBifurcationTags | ( | ) |
Definition at line 2315 of file ExprEngine.cpp.
Referenced by evalEagerlyAssumeBinOpBifurcation().
|
inline |
Definition at line 159 of file ExprEngine.h.
|
inline |
Definition at line 160 of file ExprEngine.h.
|
overridevirtual |
getInitialState - Return the initial state used for the root vertex in the ExplodedGraph.
Implements clang::ento::SubEngine.
Definition at line 103 of file ExprEngine.cpp.
References clang::BO_GT, evalBinOp(), clang::ento::SVal::getAs(), clang::ento::SValBuilder::getConditionType(), clang::LocationContext::getCurrentStackFrame(), clang::ento::SValBuilder::getCXXThis(), clang::LocationContext::getDecl(), clang::ento::ProgramStateManager::getInitialState(), clang::IdentifierInfo::getName(), clang::LocationContext::getParent(), clang::ValueDecl::getType(), clang::BuiltinType::isInteger(), and clang::ento::SValBuilder::makeZeroVal().
|
inlineoverridevirtual |
Implements clang::ento::SubEngine.
Definition at line 298 of file ExprEngine.h.
Referenced by clang::ento::CheckerContext::getStateManager(), processBranch(), processCallExit(), VisitCallExpr(), VisitCXXConstructExpr(), VisitCXXDestructor(), VisitCXXNewAllocatorCall(), VisitCXXNewExpr(), and VisitObjCMessage().
const Stmt* clang::ento::ExprEngine::getStmt | ( | ) | const |
|
inline |
Definition at line 300 of file ExprEngine.h.
References clang::ento::ProgramStateManager::getStoreManager().
Referenced by clang::ento::CheckerContext::getStoreManager(), ProcessBaseDtor(), processCallExit(), removeDead(), VisitCast(), VisitCXXConstructExpr(), and VisitCXXNewExpr().
|
inline |
Definition at line 131 of file ExprEngine.h.
Referenced by bindReturnValue(), getRegionForConstructedObject(), clang::ento::CheckerContext::getSValBuilder(), ProcessBaseDtor(), ProcessInitializer(), ProcessMemberDtor(), VisitCXXConstructExpr(), VisitInitListExpr(), and VisitLogicalExpr().
|
inline |
Definition at line 312 of file ExprEngine.h.
|
inline |
Definition at line 313 of file ExprEngine.h.
|
inline |
Definition at line 317 of file ExprEngine.h.
References clang::ento::CoreEngine::getWorkList(), and clang::ento::WorkList::hasWork().
|
inline |
Definition at line 318 of file ExprEngine.h.
References clang::ento::CoreEngine::hasWorkRemaining().
|
inline |
Definition at line 140 of file ExprEngine.h.
Referenced by clang::ento::CheckerContext::isObjCGCEnabled().
|
overrideprotectedvirtual |
Call PointerEscape callback when a value escapes as a result of region invalidation.
[in] | ITraits | Specifies invalidation traits for regions/symbols. |
Implements clang::ento::SubEngine.
Definition at line 2068 of file ExprEngine.cpp.
References clang::ento::MemRegion::getAs(), getCheckerManager(), clang::ento::PSK_DirectEscapeOnCall, clang::ento::PSK_EscapeOther, clang::ento::PSK_IndirectEscapeOnCall, clang::ento::CheckerManager::runCheckersForPointerEscape(), State, and clang::ento::MemRegion::StripCasts().
|
overridevirtual |
printState - Called by ProgramStateManager to print checker-specific data.
Implements clang::ento::SubEngine.
Definition at line 278 of file ExprEngine.cpp.
References getCheckerManager(), and clang::ento::CheckerManager::runCheckersForPrintState().
|
overridevirtual |
evalAssume - Callback function invoked by the ConstraintManager when making assumptions about state values.
evalAssume - Called by ConstraintManager. Used to call checker-specific logic for handling assumptions on symbolic values.
Implements clang::ento::SubEngine.
Definition at line 259 of file ExprEngine.cpp.
References getCheckerManager(), and clang::ento::CheckerManager::runCheckersForEvalAssume().
void ExprEngine::ProcessAutomaticObjDtor | ( | const CFGAutomaticObjDtor | D, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Definition at line 584 of file ExprEngine.cpp.
References clang::ento::SVal::castAs(), clang::Type::getAs(), clang::ento::ExplodedNode::getLocationContext(), clang::Type::getPointeeType(), clang::ento::ExplodedNode::getState(), clang::CFGAutomaticObjDtor::getTriggerStmt(), clang::ValueDecl::getType(), clang::CFGAutomaticObjDtor::getVarDecl(), clang::ast_matchers::varDecl, and VisitCXXDestructor().
Referenced by ProcessImplicitDtor().
void ExprEngine::ProcessBaseDtor | ( | const CFGBaseDtor | D, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Definition at line 632 of file ExprEngine.cpp.
References clang::ento::SVal::castAs(), clang::ento::StoreManager::evalDerivedToBase(), clang::CFGBaseDtor::getBaseSpecifier(), clang::FunctionDecl::getBody(), clang::LocationContext::getCurrentStackFrame(), clang::ento::SValBuilder::getCXXThis(), clang::LocationContext::getDecl(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::loc::MemRegionVal::getRegion(), clang::ento::ExplodedNode::getState(), getStoreManager(), getSValBuilder(), clang::CXXBaseSpecifier::getType(), clang::CXXBaseSpecifier::isVirtual(), and VisitCXXDestructor().
Referenced by ProcessImplicitDtor().
|
overridevirtual |
ProcessBranch - Called by CoreEngine. Used to generate successor nodes by processing the 'effects' of a branch condition.
Implements clang::ento::SubEngine.
Definition at line 1520 of file ExprEngine.cpp.
References clang::ento::SVal::castAs(), clang::ento::BranchNodeBuilder::generateNode(), clang::ento::NodeBuilderContext::getBlock(), getCheckerManager(), getContext(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), getStateManager(), clang::Expr::getType(), clang::Expr::IgnoreParens(), clang::ento::BranchNodeBuilder::isFeasible(), clang::Type::isIntegralOrEnumerationType(), clang::ento::ExplodedNode::isSink(), clang::ento::SVal::isUnknown(), clang::ento::SVal::isUnknownOrUndef(), clang::ento::BranchNodeBuilder::markInfeasible(), RecoverCastedSymbol(), ResolveCondition(), clang::ento::CheckerManager::runCheckersForBranchCondition(), and X.
|
overridevirtual |
Generate the entry node of the callee.
Implements clang::ento::SubEngine.
Definition at line 40 of file ExprEngineCallAndReturn.cpp.
References clang::ento::ExplodedNode::addPredecessor(), clang::CFGBlock::empty(), clang::ento::WorkList::enqueue(), clang::CallEnter::getCalleeContext(), clang::LocationContext::getCFG(), clang::CFG::getEntry(), clang::ento::ExplodedGraph::getNode(), clang::ento::ExplodedNode::getState(), clang::ento::CoreEngine::getWorkList(), Node, clang::CFGBlock::succ_begin(), and clang::CFGBlock::succ_size().
|
overridevirtual |
Generate the sequence of nodes that simulate the call exit and the post visit for CallExpr.
The call exit is simulated with a sequence of nodes, which occur between CallExitBegin and CallExitEnd. The following operations occur between the two program points:
Implements clang::ento::SubEngine.
Definition at line 218 of file ExprEngineCallAndReturn.cpp.
References clang::ento::ExplodedNodeSet::Add(), clang::ento::ExplodedNode::addPredecessor(), adjustReturnValue(), clang::AnalyzerOptions::AnalysisPurgeOpt, clang::ento::ExplodedNodeSet::begin(), clang::ento::SVal::castAs(), clang::ento::CallEventRef< T >::cloneWithState(), clang::ento::ExplodedNodeSet::end(), clang::ento::WorkList::enqueue(), clang::CallEventManager::getCaller(), clang::ento::ProgramStateManager::getCallEventManager(), getCheckerManager(), getCoreEngine(), clang::LocationContext::getCurrentStackFrame(), clang::ento::SValBuilder::getCXXThis(), clang::ento::CallEvent::getDeclaredResultType(), getLastStmt(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedGraph::getNode(), clang::LocationContext::getParent(), clang::ento::ExplodedNode::getState(), getStateManager(), getStoreManager(), clang::ento::CoreEngine::getWorkList(), clang::ento::ExplodedNodeSet::insert(), clang::QualType::isNull(), isTemporaryPRValue(), clang::ento::AnalysisManager::options, clang::ProgramPoint::PostStmtPurgeDeadSymbolsKind, removeDead(), clang::ento::CheckerManager::runCheckersForPostCall(), clang::ento::CheckerManager::runCheckersForPostObjCMessage(), clang::ento::CheckerManager::runCheckersForPostStmt(), and wasDifferentDeclUsedForInlining().
|
overridevirtual |
Called by CoreEngine when processing the entrance of a CFGBlock.
Block entrance. (Update counters).
Implements clang::ento::SubEngine.
Definition at line 1377 of file ExprEngine.cpp.
References clang::ento::NodeBuilderContext::blockCount(), clang::ento::NodeBuilderWithSinks::generateSink(), clang::ento::NodeBuilder::getContext(), clang::LocationContext::getCurrentStackFrame(), clang::LocationContext::getDecl(), clang::ento::ExplodedNode::getLocation(), clang::ento::ExplodedNode::getLocationContext(), clang::ProgramPoint::getLocationContext(), clang::ento::ExplodedNode::getState(), clang::ento::FunctionSummariesTy::markReachedMaxBlockCount(), clang::AnalyzerOptions::maxBlockVisitOnPath, clang::AnalyzerOptions::NoRetryExhausted, clang::ento::AnalysisManager::options, and clang::ento::ExplodedGraph::roots_begin().
|
overridevirtual |
processCFGElement - Called by CoreEngine. Used to generate new successor nodes by processing the 'effects' of a CFG element.
Implements clang::ento::SubEngine.
Definition at line 287 of file ExprEngine.cpp.
References clang::CFGElement::AutomaticObjectDtor, clang::CFGElement::BaseDtor, clang::CFGElement::castAs(), clang::CFGElement::DeleteDtor, clang::CFGNewAllocator::getAllocatorExpr(), clang::CFGInitializer::getInitializer(), clang::CFGElement::getKind(), clang::ento::ExplodedNode::getLocationContext(), clang::CFGStmt::getStmt(), clang::CFGElement::Initializer, clang::CFGElement::MemberDtor, clang::CFGElement::NewAllocator, ProcessImplicitDtor(), ProcessInitializer(), ProcessNewAllocator(), ProcessStmt(), clang::CFGElement::Statement, and clang::CFGElement::TemporaryDtor.
|
overridevirtual |
Called by CoreEngine. Used to generate successor nodes for temporary destructors depending on whether the corresponding constructor was visited.
Implements clang::ento::SubEngine.
Definition at line 695 of file ExprEngine.cpp.
References clang::ento::BranchNodeBuilder::generateNode(), clang::ento::ExplodedNode::getStackFrame(), clang::ento::ExplodedNode::getState(), and clang::ento::BranchNodeBuilder::markInfeasible().
void ExprEngine::ProcessDeleteDtor | ( | const CFGDeleteDtor | D, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Definition at line 603 of file ExprEngine.cpp.
References clang::CXXDeleteExpr::getArgument(), clang::Type::getAsCXXRecordDecl(), clang::ento::SVal::getAsRegion(), clang::ASTContext::getBaseElementType(), getContext(), clang::CFGDeleteDtor::getDeleteExpr(), clang::CXXDeleteExpr::getDestroyedType(), clang::CXXRecordDecl::getDestructor(), clang::ento::ExplodedNode::getLocationContext(), clang::CXXDeleteExpr::getLocStart(), clang::ento::ExplodedNode::getState(), and VisitCXXDestructor().
Referenced by ProcessImplicitDtor().
|
overridevirtual |
Called by CoreEngine. Used to generate end-of-path nodes when the control reaches the end of a function.
ProcessEndPath - Called by CoreEngine. Used to generate end-of-path nodes when the control reaches the end of a function.
Implements clang::ento::SubEngine.
Definition at line 1709 of file ExprEngine.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ento::ExplodedNodeSet::end(), clang::ento::ProgramStateManager::EndPath(), clang::ento::CoreEngine::enqueueEndOfFunction(), getCheckerManager(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), clang::LocationContext::inTopFrame(), removeDeadOnEndOfFunction(), and clang::ento::CheckerManager::runCheckersForEndFunction().
|
overridevirtual |
Called by CoreEngine when the analysis worklist has terminated.
Implements clang::ento::SubEngine.
Definition at line 283 of file ExprEngine.cpp.
References getCheckerManager(), and clang::ento::CheckerManager::runCheckersForEndAnalysis().
void ExprEngine::ProcessImplicitDtor | ( | const CFGImplicitDtor | D, |
ExplodedNode * | Pred | ||
) |
Definition at line 538 of file ExprEngine.cpp.
References clang::CFGElement::AutomaticObjectDtor, clang::CFGElement::BaseDtor, clang::CFGElement::castAs(), clang::CFGElement::DeleteDtor, clang::ento::CoreEngine::enqueue(), clang::ento::NodeBuilderContext::getBlock(), clang::CFGElement::getKind(), clang::CFGElement::MemberDtor, ProcessAutomaticObjDtor(), ProcessBaseDtor(), ProcessDeleteDtor(), ProcessMemberDtor(), ProcessTemporaryDtor(), and clang::CFGElement::TemporaryDtor.
Referenced by processCFGElement().
|
overridevirtual |
processIndirectGoto - Called by CoreEngine. Used to generate successor nodes by processing the 'effects' of a computed goto jump.
Implements clang::ento::SubEngine.
Definition at line 1649 of file ExprEngine.cpp.
References clang::ento::IndirectGotoNodeBuilder::begin(), clang::ento::IndirectGotoNodeBuilder::end(), clang::ento::IndirectGotoNodeBuilder::generateNode(), clang::ento::SVal::getAs(), clang::ento::IndirectGotoNodeBuilder::getLocationContext(), clang::ento::IndirectGotoNodeBuilder::getState(), and clang::ento::IndirectGotoNodeBuilder::getTarget().
void ExprEngine::ProcessInitializer | ( | const CFGInitializer | I, |
ExplodedNode * | Pred | ||
) |
Definition at line 454 of file ExprEngine.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ento::NodeBuilderContext::blockCount(), clang::ento::ExplodedNodeSet::clear(), clang::ento::SValBuilder::conjureSymbolVal(), clang::ast_matchers::decl, clang::ento::ExplodedNodeSet::end(), clang::ento::CoreEngine::enqueue(), evalBind(), clang::ento::NodeBuilder::generateNode(), clang::ento::SVal::getAs(), clang::ento::SVal::getAsRegion(), clang::ArraySubscriptExpr::getBase(), clang::ento::NodeBuilderContext::getBlock(), getContext(), clang::ento::SValBuilder::getCXXThis(), clang::CXXCtorInitializer::getIndirectMember(), clang::CXXCtorInitializer::getInit(), clang::CFGInitializer::getInitializer(), clang::ento::ExplodedNode::getLocationContext(), clang::CXXCtorInitializer::getMember(), clang::CXXCtorInitializer::getNumArrayIndices(), clang::CXXCtorInitializer::getSourceLocation(), clang::ento::ExplodedNode::getState(), getSValBuilder(), clang::ValueDecl::getType(), clang::Expr::IgnoreImplicit(), clang::CXXCtorInitializer::isAnyMemberInitializer(), clang::CXXCtorInitializer::isBaseInitializer(), clang::CXXCtorInitializer::isDelegatingInitializer(), clang::CXXCtorInitializer::isIndirectMemberInitializer(), clang::ento::SVal::isUnknownOrUndef(), and clang::ento::ExplodedNodeSet::size().
Referenced by processCFGElement().
void ExprEngine::ProcessMemberDtor | ( | const CFGMemberDtor | D, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Definition at line 651 of file ExprEngine.cpp.
References clang::ento::SVal::castAs(), clang::FunctionDecl::getBody(), clang::LocationContext::getCurrentStackFrame(), clang::ento::SValBuilder::getCXXThis(), clang::LocationContext::getDecl(), clang::CFGMemberDtor::getFieldDecl(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), getSValBuilder(), clang::ValueDecl::getType(), and VisitCXXDestructor().
Referenced by ProcessImplicitDtor().
void ExprEngine::ProcessNewAllocator | ( | const CXXNewExpr * | NE, |
ExplodedNode * | Pred | ||
) |
Definition at line 565 of file ExprEngine.cpp.
References clang::ento::CoreEngine::enqueue(), clang::ento::NodeBuilder::generateNode(), getAnalysisManager(), clang::ento::NodeBuilderContext::getBlock(), clang::ento::ExplodedNode::getLocationContext(), clang::CXXNewExpr::getLocStart(), clang::CXXNewExpr::getOperatorNew(), clang::ento::ExplodedNode::getState(), clang::AnalyzerOptions::mayInlineCXXAllocator(), clang::ento::AnalysisManager::options, and VisitCXXNewAllocatorCall().
Referenced by processCFGElement().
|
overrideprotectedvirtual |
Call PointerEscape callback when a value escapes as a result of bind.
Implements clang::ento::SubEngine.
Definition at line 2026 of file ExprEngine.cpp.
References clang::ento::SVal::getAs(), getCheckerManager(), clang::ento::PSK_EscapeOnBind, clang::ento::CheckerManager::runCheckersForPointerEscape(), and State.
Referenced by evalBind().
|
overridevirtual |
processRegionChanges - Called by ProgramStateManager whenever a change is made to the store. Used to update checkers that track region values.
Implements clang::ento::SubEngine.
Definition at line 269 of file ExprEngine.cpp.
References getCheckerManager(), and clang::ento::CheckerManager::runCheckersForRegionChanges().
|
overridevirtual |
Called by CoreEngine. Used to processing branching behavior at static initalizers.
Implements clang::ento::SubEngine.
void ExprEngine::ProcessStmt | ( | const CFGStmt | S, |
ExplodedNode * | Pred | ||
) |
Definition at line 423 of file ExprEngine.cpp.
References clang::ento::CoreEngine::enqueue(), clang::ento::NodeBuilderContext::getBlock(), getContext(), clang::ento::ExplodedNode::getLocationContext(), clang::CFGStmt::getStmt(), clang::ento::ExplodedNodeSet::insert(), clang::ento::ExplodedGraph::reclaimRecentlyAllocatedNodes(), removeDead(), shouldRemoveDeadBindings(), and Visit().
Referenced by processCFGElement().
|
overridevirtual |
ProcessSwitch - Called by CoreEngine. Used to generate successor nodes by processing the 'effects' of a switch statement.
Implements clang::ento::SubEngine.
Definition at line 1737 of file ExprEngine.cpp.
References clang::ento::SwitchNodeBuilder::begin(), clang::ento::SVal::castAs(), clang::ento::SwitchNodeBuilder::end(), clang::ento::SValBuilder::evalEQ(), clang::Expr::EvaluateKnownConstInt(), clang::ento::SwitchNodeBuilder::generateCaseStmtNode(), clang::ento::SwitchNodeBuilder::generateDefaultCaseNode(), clang::ento::SVal::getAs(), clang::Type::getAs(), getBasicVals(), clang::SwitchStmt::getCond(), clang::ento::SwitchNodeBuilder::getCondition(), getContext(), clang::CaseStmt::getLHS(), clang::ento::SwitchNodeBuilder::getLocationContext(), clang::CaseStmt::getRHS(), clang::ento::SwitchNodeBuilder::getState(), clang::ento::SwitchNodeBuilder::getSwitch(), clang::Expr::getType(), clang::ASTContext::getTypeSize(), getValue(), clang::Expr::IgnoreParenImpCasts(), clang::SwitchStmt::isAllEnumCasesCovered(), and clang::ento::SVal::isUndef().
void ExprEngine::ProcessTemporaryDtor | ( | const CFGTemporaryDtor | D, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Definition at line 668 of file ExprEngine.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ento::ExplodedNodeSet::empty(), clang::ento::StmtNodeBuilder::generateNode(), clang::CFGTemporaryDtor::getBindTemporaryExpr(), clang::ento::ExplodedNode::getStackFrame(), clang::ento::ExplodedNode::getState(), clang::CXXBindTemporaryExpr::getSubExpr(), clang::Expr::getType(), clang::ento::ExplodedNodeSet::size(), State, and VisitCXXDestructor().
Referenced by ProcessImplicitDtor().
void ExprEngine::removeDead | ( | ExplodedNode * | Node, |
ExplodedNodeSet & | Out, | ||
const Stmt * | ReferenceStmt, | ||
const LocationContext * | LC, | ||
const Stmt * | DiagnosticStmt = nullptr , |
||
ProgramPoint::Kind | K = ProgramPoint::PreStmtPurgeDeadSymbolsKind |
||
) |
Run the analyzer's garbage collection - remove dead symbols and bindings from the state.
Checkers can participate in this process with two callbacks: checkLiveSymbols
and checkDeadSymbols
. See the CheckerDocumentation class for more information.
Node | The predecessor node, from which the processing should start. |
Out | The returned set of output nodes. |
ReferenceStmt | The statement which is about to be processed. Everything needed for this statement should be considered live. A null statement means that everything in child LocationContexts is dead. |
LC | The location context of the ReferenceStmt . A null location context means that we have reached the end of analysis and that all statements and local variables should be considered dead. |
DiagnosticStmt | Used as a location for any warnings that should occur while removing the dead (e.g. leaks). By default, the ReferenceStmt is used. |
K | Denotes whether this is a pre- or post-statement purge. This must only be ProgramPoint::PostStmtPurgeDeadSymbolsKind if an entire location context is being cleared, in which case the ReferenceStmt must either be a ReturnStmt or NULL . Otherwise, it must be ProgramPoint::PreStmtPurgeDeadSymbolsKind (the default) and ReferenceStmt must be valid (non-null). |
Definition at line 341 of file ExprEngine.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ento::ExplodedNodeSet::end(), clang::ento::StmtNodeBuilder::generateNode(), getCheckerManager(), getConstraintManager(), clang::LocationContext::getCurrentStackFrame(), clang::LocationContext::getParent(), clang::ento::ProgramStateManager::getPersistentStateWithGDM(), clang::ento::ExplodedNode::getState(), getStoreManager(), clang::ento::SymbolReaper::hasDeadSymbols(), clang::ento::ProgramStateManager::haveEqualEnvironments(), clang::ento::ProgramStateManager::haveEqualStores(), clang::ProgramPoint::PostStmtPurgeDeadSymbolsKind, clang::ProgramPoint::PreStmtPurgeDeadSymbolsKind, clang::ento::ConstraintManager::removeDeadBindings(), clang::ento::ProgramStateManager::removeDeadBindings(), clang::ento::CheckerManager::runCheckersForDeadSymbols(), and clang::ento::CheckerManager::runCheckersForLiveSymbols().
Referenced by processCallExit(), ProcessStmt(), and removeDeadOnEndOfFunction().
void ExprEngine::removeDeadOnEndOfFunction | ( | NodeBuilderContext & | BC, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Remove dead bindings/symbols before exiting a function.
Definition at line 159 of file ExprEngineCallAndReturn.cpp.
References clang::ento::ExplodedNodeSet::Add(), clang::LocationContext::getAnalysisDeclContext(), clang::AnalysisDeclContext::getBody(), getLastStmt(), clang::ento::ExplodedNode::getLocationContext(), clang::ProgramPoint::PostStmtPurgeDeadSymbolsKind, and removeDead().
Referenced by processEndOfFunction().
Visualize the ExplodedGraph created by executing the simulation.
Definition at line 2656 of file ExprEngine.cpp.
References clang::ento::BugReporter::begin(), clang::ento::BugReporter::end(), clang::ento::BugReporter::EQClasses_begin(), clang::ento::BugReporter::EQClasses_end(), getContext(), clang::ASTContext::getSourceManager(), GraphPrintCheckerState, GraphPrintSourceManager, and clang::ento::ExplodedGraph::roots_begin().
void ExprEngine::ViewGraph | ( | ArrayRef< const ExplodedNode * > | Nodes | ) |
Visualize a trimmed ExplodedGraph that only contains paths to the given nodes.
Definition at line 2687 of file ExprEngine.cpp.
References getContext(), clang::ASTContext::getSourceManager(), GraphPrintCheckerState, GraphPrintSourceManager, and clang::ento::ExplodedGraph::trim().
void ExprEngine::Visit | ( | const Stmt * | S, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Visit - Transfer function logic for all statements. Dispatches to other functions that handle specific kinds of statements.
Definition at line 738 of file ExprEngine.cpp.
References clang::ento::CoreEngine::addAbortedBlock(), clang::ento::NodeBuilder::addNodes(), clang::ento::ExplodedNodeSet::begin(), clang::ento::NodeBuilderContext::blockCount(), clang::BO_Comma, clang::CompoundStmt::body_empty(), clang::CompoundStmt::body_rbegin(), AttributeLangSupport::C, clang::ento::SValBuilder::conjureSymbolVal(), CreateCXXTemporaryObject(), clang::AnalyzerOptions::eagerlyAssumeBinOpBifurcation, clang::ento::ExplodedNodeSet::end(), evalEagerlyAssumeBinOpBifurcation(), clang::ento::StmtNodeBuilder::generateNode(), clang::ento::StmtNodeBuilder::generateSink(), clang::CallExpr::getArg(), clang::ento::NodeBuilderContext::getBlock(), clang::CallExpr::getCalleeDecl(), getCheckerManager(), clang::ento::SValBuilder::getConstantVal(), getContext(), clang::DeclRefExpr::getDecl(), clang::AbstractConditionalOperator::getFalseExpr(), clang::ChooseExpr::getLHS(), clang::ento::ExplodedNode::getLocationContext(), clang::UnaryOperator::getOpcode(), clang::BinaryOperator::getOpcode(), clang::PseudoObjectExpr::getResultExpr(), clang::BinaryOperator::getRHS(), clang::ChooseExpr::getRHS(), clang::ento::ExplodedNode::getState(), clang::CastExpr::getSubExpr(), clang::StmtExpr::getSubStmt(), clang::AbstractConditionalOperator::getTrueExpr(), clang::Expr::getType(), clang::BinaryOperator::isEqualityOp(), clang::BinaryOperator::isLogicalOp(), clang::BinaryOperator::isRelationalOp(), clang::ento::SValBuilder::makeIntValWithPtrWidth(), Next, clang::ento::AnalysisManager::options, clang::ProgramPoint::PreStmtKind, clang::ento::CheckerManager::runCheckersForPostStmt(), clang::ento::CheckerManager::runCheckersForPreStmt(), S, clang::ento::NodeBuilder::takeNodes(), clang::UO_LNot, VisitBinaryOperator(), VisitBlockExpr(), VisitCallExpr(), VisitCast(), VisitCommonDeclRefExpr(), VisitCompoundLiteralExpr(), VisitCXXBindTemporaryExpr(), VisitCXXCatchStmt(), VisitCXXConstructExpr(), VisitCXXDeleteExpr(), VisitCXXNewExpr(), VisitCXXThisExpr(), VisitDeclStmt(), VisitGCCAsmStmt(), VisitGuardedExpr(), VisitInitListExpr(), VisitLogicalExpr(), VisitLvalArraySubscriptExpr(), VisitLvalObjCIvarRefExpr(), VisitMemberExpr(), VisitMSAsmStmt(), VisitObjCAtSynchronizedStmt(), VisitObjCForCollectionStmt(), VisitObjCMessage(), VisitOffsetOfExpr(), VisitReturnStmt(), VisitUnaryExprOrTypeTraitExpr(), VisitUnaryOperator(), and clang::ASTContext::VoidTy.
Referenced by ProcessStmt().
void ExprEngine::VisitBinaryOperator | ( | const BinaryOperator * | B, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitBinaryOperator - Transfer function logic for binary operators.
Definition at line 22 of file ExprEngineC.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ento::NodeBuilderContext::blockCount(), clang::BO_Add, clang::BO_AddAssign, clang::BO_And, clang::BO_AndAssign, clang::BO_Assign, clang::BO_Div, clang::BO_DivAssign, clang::BO_Mul, clang::BO_MulAssign, clang::BO_Or, clang::BO_OrAssign, clang::BO_PtrMemD, clang::BO_Rem, clang::BO_RemAssign, clang::BO_Shl, clang::BO_ShlAssign, clang::BO_Shr, clang::BO_ShrAssign, clang::BO_Sub, clang::BO_SubAssign, clang::BO_Xor, clang::BO_XorAssign, clang::ento::SValBuilder::conjureSymbolVal(), clang::LangAS::Count, clang::ento::ExplodedNodeSet::end(), evalBinOp(), clang::ento::SValBuilder::evalCast(), evalLoad(), evalStore(), clang::ento::StmtNodeBuilder::generateNode(), clang::ento::SVal::getAs(), clang::ASTContext::getCanonicalType(), getCheckerManager(), getContext(), clang::BinaryOperator::getLHS(), clang::BinaryOperator::getOpcode(), clang::BinaryOperator::getRHS(), clang::Expr::getType(), clang::Expr::IgnoreParens(), clang::BinaryOperator::isAdditiveOp(), clang::BinaryOperator::isAssignmentOp(), clang::BinaryOperator::isCompoundAssignmentOp(), clang::Expr::isGLValue(), clang::Type::isIntegralOrEnumerationType(), clang::ento::SVal::isUnknown(), clang::Result, clang::ento::CheckerManager::runCheckersForPostStmt(), and clang::ento::CheckerManager::runCheckersForPreStmt().
Referenced by Visit().
void ExprEngine::VisitBlockExpr | ( | const BlockExpr * | BE, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitBlockExpr - Transfer function logic for BlockExprs.
Definition at line 187 of file ExprEngineC.cpp.
References clang::ento::NodeBuilderContext::blockCount(), clang::ento::StmtNodeBuilder::generateNode(), clang::ento::SVal::getAsRegion(), clang::BlockExpr::getBlockDecl(), clang::ento::SValBuilder::getBlockPointer(), clang::ASTContext::getCanonicalType(), clang::ento::BlockDataRegion::referenced_vars_iterator::getCapturedRegion(), getCheckerManager(), getContext(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::BlockDataRegion::referenced_vars_iterator::getOriginalRegion(), clang::ento::ExplodedNode::getState(), clang::Expr::getType(), clang::ProgramPoint::PostLValueKind, clang::ento::CheckerManager::runCheckersForPostStmt(), and State.
Referenced by Visit().
void ExprEngine::VisitCallExpr | ( | const CallExpr * | CE, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitCall - Transfer function for function calls.
Definition at line 482 of file ExprEngineCallAndReturn.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ento::ExplodedNodeSet::end(), evalCall(), clang::ento::ProgramStateManager::getCallEventManager(), getCheckerManager(), clang::ento::ExplodedNode::getLocationContext(), clang::CallEventManager::getSimpleCall(), clang::ento::ExplodedNode::getState(), getStateManager(), clang::ento::CheckerManager::runCheckersForPostStmt(), and clang::ento::CheckerManager::runCheckersForPreStmt().
Referenced by Visit().
void ExprEngine::VisitCast | ( | const CastExpr * | CastE, |
const Expr * | Ex, | ||
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitCast - Transfer function logic for all casts (implicit and explicit).
Definition at line 227 of file ExprEngineC.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ento::NodeBuilderContext::blockCount(), clang::CK_AddressSpaceConversion, clang::CK_AnyPointerToBlockPointerCast, clang::CK_ARCConsumeObject, clang::CK_ARCExtendBlockObject, clang::CK_ARCProduceObject, clang::CK_ARCReclaimReturnedObject, clang::CK_ArrayToPointerDecay, clang::CK_AtomicToNonAtomic, clang::CK_BaseToDerived, clang::CK_BaseToDerivedMemberPointer, clang::CK_BitCast, clang::CK_BlockPointerToObjCPointerCast, clang::CK_BuiltinFnToFnPtr, clang::CK_ConstructorConversion, clang::CK_CopyAndAutoreleaseBlockObject, clang::CK_CPointerToObjCPointerCast, clang::CK_Dependent, clang::CK_DerivedToBase, clang::CK_DerivedToBaseMemberPointer, clang::CK_Dynamic, clang::CK_FloatingCast, clang::CK_FloatingComplexCast, clang::CK_FloatingComplexToBoolean, clang::CK_FloatingComplexToIntegralComplex, clang::CK_FloatingComplexToReal, clang::CK_FloatingRealToComplex, clang::CK_FloatingToBoolean, clang::CK_FloatingToIntegral, clang::CK_FunctionToPointerDecay, clang::CK_IntegralCast, clang::CK_IntegralComplexCast, clang::CK_IntegralComplexToBoolean, clang::CK_IntegralComplexToFloatingComplex, clang::CK_IntegralComplexToReal, clang::CK_IntegralRealToComplex, clang::CK_IntegralToBoolean, clang::CK_IntegralToFloating, clang::CK_IntegralToPointer, clang::CK_LValueBitCast, clang::CK_LValueToRValue, clang::CK_MemberPointerToBoolean, clang::CK_NonAtomicToAtomic, clang::CK_NoOp, clang::CK_NullToMemberPointer, clang::CK_NullToPointer, clang::CK_ObjCObjectLValueCast, clang::CK_PointerToBoolean, clang::CK_PointerToIntegral, clang::CK_ReinterpretMemberPointer, clang::CK_ToUnion, clang::CK_ToVoid, clang::CK_UncheckedDerivedToBase, clang::CK_UserDefinedConversion, clang::CK_VectorSplat, clang::CK_ZeroToOCLEvent, clang::ento::SValBuilder::conjureSymbolVal(), clang::ento::ExplodedNodeSet::end(), clang::ento::SValBuilder::evalCast(), clang::ento::StoreManager::evalDerivedToBase(), clang::ento::StoreManager::evalDynamicCast(), evalLoad(), clang::ento::StmtNodeBuilder::generateNode(), clang::ento::StmtNodeBuilder::generateSink(), clang::CastExpr::getCastKind(), getCheckerManager(), getContext(), clang::ento::ExplodedNode::getLocationContext(), clang::ASTContext::getPointerType(), clang::ento::ExplodedNode::getState(), getStoreManager(), clang::Expr::getType(), clang::Expr::isGLValue(), clang::Type::isReferenceType(), clang::ento::SVal::isUnknown(), clang::ento::SVal::isZeroConstant(), clang::ento::SValBuilder::makeNull(), and clang::ento::CheckerManager::runCheckersForPreStmt().
Referenced by Visit().
void ExprEngine::VisitCommonDeclRefExpr | ( | const Expr * | DR, |
const NamedDecl * | D, | ||
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Transfer function logic for DeclRefExprs and BlockDeclRefExprs.
Definition at line 1842 of file ExprEngine.cpp.
References clang::ento::NodeBuilderContext::blockCount(), clang::ento::SVal::castAs(), clang::ento::SValBuilder::conjureSymbolVal(), clang::ento::StmtNodeBuilder::generateNode(), getContext(), clang::ento::SValBuilder::getFunctionPointer(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), clang::Expr::isGLValue(), clang::ento::SValBuilder::makeIntVal(), and clang::ProgramPoint::PostLValueKind.
Referenced by Visit(), and VisitMemberExpr().
void ExprEngine::VisitCompoundLiteralExpr | ( | const CompoundLiteralExpr * | CL, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitCompoundLiteralExpr - Transfer function logic for compound literals.
Definition at line 410 of file ExprEngineC.cpp.
References clang::ento::StmtNodeBuilder::generateNode(), clang::CompoundLiteralExpr::getInitializer(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), clang::Expr::getType(), clang::Type::isArrayType(), clang::Expr::isGLValue(), and State.
Referenced by Visit().
void ExprEngine::VisitCXXBindTemporaryExpr | ( | const CXXBindTemporaryExpr * | BTE, |
ExplodedNodeSet & | PreVisit, | ||
ExplodedNodeSet & | Dst | ||
) |
Definition at line 712 of file ExprEngine.cpp.
References clang::ento::StmtNodeBuilder::generateNode(), getAnalysisManager(), and Node.
Referenced by Visit().
void ExprEngine::VisitCXXCatchStmt | ( | const CXXCatchStmt * | CS, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Definition at line 482 of file ExprEngineCXX.cpp.
References clang::ento::ExplodedNodeSet::Add(), clang::ento::NodeBuilderContext::blockCount(), clang::ento::SValBuilder::conjureSymbolVal(), clang::ento::StmtNodeBuilder::generateNode(), clang::CXXCatchStmt::getExceptionDecl(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), and clang::ValueDecl::getType().
Referenced by Visit().
void ExprEngine::VisitCXXConstructExpr | ( | const CXXConstructExpr * | E, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Definition at line 177 of file ExprEngineCXX.cpp.
References clang::ento::ExplodedNodeSet::Add(), clang::ento::ExplodedNodeSet::begin(), clang::CXXConstructExpr::CK_Complete, clang::CXXConstructExpr::CK_Delegating, clang::CXXConstructExpr::CK_NonVirtualBase, clang::CXXConstructExpr::CK_VirtualBase, defaultEvalCall(), clang::ento::ExplodedNodeSet::end(), clang::ento::StoreManager::evalDerivedToBase(), clang::ento::StmtNodeBuilder::generateNode(), clang::ento::SVal::getAsRegion(), clang::ento::ProgramStateManager::getCallEventManager(), clang::StackFrameContext::getCallSite(), getCheckerManager(), clang::CXXConstructExpr::getConstructionKind(), clang::CXXConstructExpr::getConstructor(), getContext(), clang::LocationContext::getCurrentStackFrame(), clang::CallEventManager::getCXXConstructorCall(), clang::ento::SValBuilder::getCXXThis(), clang::LocationContext::getDecl(), clang::ento::ExplodedNode::getLocationContext(), getRegionForConstructedObject(), clang::ento::ExplodedNode::getState(), getStateManager(), getStoreManager(), getSValBuilder(), clang::Expr::getType(), clang::CXXConstructorDecl::isCopyOrMoveConstructor(), clang::FunctionDecl::isTrivial(), clang::ento::SValBuilder::makeZeroVal(), clang::ProgramPoint::PreStmtKind, clang::CXXConstructExpr::requiresZeroInitialization(), clang::ento::CheckerManager::runCheckersForPostCall(), clang::ento::CheckerManager::runCheckersForPostStmt(), clang::ento::CheckerManager::runCheckersForPreCall(), and clang::ento::CheckerManager::runCheckersForPreStmt().
Referenced by Visit().
void ExprEngine::VisitCXXDeleteExpr | ( | const CXXDeleteExpr * | CDE, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Definition at line 475 of file ExprEngineCXX.cpp.
References clang::ento::StmtNodeBuilder::generateNode(), and clang::ento::ExplodedNode::getState().
Referenced by Visit().
void ExprEngine::VisitCXXDestructor | ( | QualType | ObjectType, |
const MemRegion * | Dest, | ||
const Stmt * | S, | ||
bool | IsBaseDtor, | ||
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Definition at line 299 of file ExprEngineCXX.cpp.
References defaultEvalCall(), clang::Type::getAsCXXRecordDecl(), clang::ento::SVal::getAsRegion(), clang::ento::ProgramStateManager::getCallEventManager(), getCheckerManager(), getContext(), clang::CallEventManager::getCXXDestructorCall(), clang::CXXRecordDecl::getDestructor(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), getStateManager(), makeZeroElementRegion(), clang::ento::CheckerManager::runCheckersForPostCall(), and clang::ento::CheckerManager::runCheckersForPreCall().
Referenced by ProcessAutomaticObjDtor(), ProcessBaseDtor(), ProcessDeleteDtor(), ProcessMemberDtor(), and ProcessTemporaryDtor().
void ExprEngine::VisitCXXNewAllocatorCall | ( | const CXXNewExpr * | CNE, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Definition at line 344 of file ExprEngineCXX.cpp.
References clang::ento::ExplodedNodeSet::begin(), defaultEvalCall(), clang::ento::ExplodedNodeSet::end(), clang::ento::ProgramStateManager::getCallEventManager(), getCheckerManager(), getContext(), clang::ento::ExplodedNode::getLocationContext(), clang::CXXNewExpr::getStartLoc(), clang::ento::ExplodedNode::getState(), getStateManager(), clang::ento::CheckerManager::runCheckersForPostCall(), and clang::ento::CheckerManager::runCheckersForPreCall().
Referenced by ProcessNewAllocator().
void ExprEngine::VisitCXXNewExpr | ( | const CXXNewExpr * | CNE, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Definition at line 370 of file ExprEngineCXX.cpp.
References clang::ento::NodeBuilderContext::blockCount(), clang::ento::SVal::castAs(), clang::ento::SValBuilder::conjureSymbolVal(), evalBind(), clang::ento::SValBuilder::evalCast(), clang::ento::StmtNodeBuilder::generateNode(), clang::Type::getAs(), clang::QualType::getBaseTypeIdentifier(), clang::ento::ProgramStateManager::getCallEventManager(), clang::ento::SValBuilder::getConjuredHeapSymbolVal(), getContext(), clang::CallEventManager::getCXXAllocatorCall(), clang::ento::StoreManager::GetElementZeroRegion(), clang::CXXNewExpr::getInitializer(), clang::ento::ExplodedNode::getLocationContext(), clang::FunctionDecl::getNumParams(), clang::CXXNewExpr::getOperatorNew(), clang::FunctionDecl::getParamDecl(), clang::CXXNewExpr::getPlacementArg(), clang::ento::NodeBuilder::getResults(), clang::ento::ExplodedNode::getState(), getStateManager(), getStoreManager(), clang::Expr::getType(), clang::ValueDecl::getType(), clang::CXXNewExpr::isArray(), clang::FunctionDecl::isReservedGlobalPlacementOperator(), clang::FunctionDecl::isVariadic(), clang::Result, clang::ento::ExplodedNodeSet::size(), and clang::ento::NodeBuilder::takeNodes().
Referenced by Visit().
void ExprEngine::VisitCXXThisExpr | ( | const CXXThisExpr * | TE, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Definition at line 501 of file ExprEngineCXX.cpp.
References clang::ento::StmtNodeBuilder::generateNode(), getContext(), clang::ento::MemRegionManager::getCXXThisRegion(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::SValBuilder::getRegionManager(), clang::ento::ExplodedNode::getState(), and clang::Expr::getType().
Referenced by Visit().
void ExprEngine::VisitDeclStmt | ( | const DeclStmt * | DS, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitDeclStmt - Transfer function logic for DeclStmts.
Definition at line 443 of file ExprEngineC.cpp.
References clang::ento::NodeBuilder::addNodes(), clang::ento::ExplodedNodeSet::begin(), clang::ento::NodeBuilderContext::blockCount(), clang::ento::SValBuilder::conjureSymbolVal(), clang::DeclStmt::decl_begin(), clang::ento::ExplodedNodeSet::end(), evalBind(), clang::ento::StmtNodeBuilder::generateNode(), clang::ento::SVal::getAs(), getCheckerManager(), getContext(), clang::VarDecl::getInit(), clang::ento::AnalysisManager::getLangOpts(), clang::ento::ExplodedNode::getLocationContext(), clang::ASTContext::getPointerType(), clang::ento::NodeBuilder::getResults(), clang::ento::ExplodedNode::getState(), clang::ValueDecl::getType(), clang::ento::ExplodedNodeSet::insert(), clang::Type::isRecordType(), clang::Type::isReferenceType(), clang::ento::SVal::isUnknown(), clang::ento::CheckerManager::runCheckersForPostStmt(), clang::ento::CheckerManager::runCheckersForPreStmt(), and clang::ento::NodeBuilder::takeNodes().
Referenced by Visit().
void ExprEngine::VisitGCCAsmStmt | ( | const GCCAsmStmt * | A, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitGCCAsmStmt - Transfer function logic for inline asm.
Definition at line 2367 of file ExprEngine.cpp.
References clang::ento::StmtNodeBuilder::generateNode(), clang::ento::SVal::getAs(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), clang::AsmStmt::outputs(), and X.
Referenced by Visit().
void ExprEngine::VisitGuardedExpr | ( | const Expr * | Ex, |
const Expr * | L, | ||
const Expr * | R, | ||
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitGuardedExpr - Transfer function logic for ?, __builtin_choose.
Definition at line 634 of file ExprEngineC.cpp.
References clang::ento::NodeBuilderContext::blockCount(), clang::ProgramPoint::castAs(), clang::ento::SValBuilder::conjureSymbolVal(), clang::ento::StmtNodeBuilder::generateNode(), clang::CFGElement::getAs(), clang::ProgramPoint::getAs(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), clang::Expr::IgnoreParens(), clang::ento::ExplodedNode::pred_begin(), clang::CFGBlock::rbegin(), and clang::CFGBlock::rend().
Referenced by Visit().
void ExprEngine::VisitIncrementDecrementOperator | ( | const UnaryOperator * | U, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Handle ++ and – (both pre- and post-increment).
Definition at line 890 of file ExprEngineC.cpp.
References clang::ento::NodeBuilder::addNodes(), clang::ento::ExplodedNodeSet::begin(), clang::ento::NodeBuilderContext::blockCount(), clang::BO_Add, clang::BO_Sub, clang::ento::SVal::castAs(), clang::ento::SValBuilder::conjureSymbolVal(), clang::ento::ExplodedNodeSet::end(), evalBinOp(), clang::ento::SValBuilder::evalEQ(), evalLoad(), evalStore(), clang::ento::StmtNodeBuilder::generateNode(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), clang::UnaryOperator::getSubExpr(), clang::Expr::getType(), clang::Expr::IgnoreParens(), clang::ento::ExplodedNodeSet::insert(), clang::Type::isAnyPointerType(), clang::Expr::isGLValue(), clang::UnaryOperator::isIncrementDecrementOp(), clang::UnaryOperator::isIncrementOp(), clang::Type::isIntegralOrEnumerationType(), clang::ento::Loc::isLocType(), clang::UnaryOperator::isPostfix(), clang::ento::SVal::isUnknown(), clang::ento::SValBuilder::makeArrayIndex(), clang::ento::SValBuilder::makeIntVal(), clang::ento::SValBuilder::makeZeroVal(), clang::Result, and clang::ento::NodeBuilder::takeNodes().
Referenced by VisitUnaryOperator().
void ExprEngine::VisitInitListExpr | ( | const InitListExpr * | E, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Definition at line 585 of file ExprEngineC.cpp.
References clang::ento::BasicValueFactory::consVals(), clang::ento::StmtNodeBuilder::generateNode(), getBasicVals(), clang::ASTContext::getCanonicalType(), getContext(), clang::ento::BasicValueFactory::getEmptySValList(), clang::InitListExpr::getInit(), clang::ento::ExplodedNode::getLocationContext(), clang::InitListExpr::getNumInits(), clang::ento::ExplodedNode::getState(), getSValBuilder(), clang::Expr::getType(), clang::Type::isAnyComplexType(), clang::Type::isArrayType(), clang::Expr::isGLValue(), clang::Type::isRecordType(), clang::Type::isVectorType(), clang::ento::SValBuilder::makeCompoundVal(), clang::ento::SValBuilder::makeZeroVal(), clang::InitListExpr::rbegin(), and clang::InitListExpr::rend().
Referenced by Visit().
void ExprEngine::VisitLogicalExpr | ( | const BinaryOperator * | B, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitLogicalExpr - Transfer function logic for '&&', '||'.
Definition at line 516 of file ExprEngineC.cpp.
References clang::BO_LAnd, clang::BO_LOr, clang::ento::SVal::castAs(), clang::CFGElement::castAs(), clang::ProgramPoint::castAs(), clang::CFGBlock::empty(), clang::ento::SValBuilder::evalCast(), clang::ProgramPoint::getAs(), clang::BlockEdge::getDst(), clang::ento::ExplodedNode::getLocation(), clang::ento::ExplodedNode::getLocationContext(), clang::BinaryOperator::getOpcode(), clang::BlockEdge::getSrc(), clang::ento::ExplodedNode::getState(), clang::CFGTerminator::getStmt(), getSValBuilder(), clang::CFGBlock::getTerminator(), clang::Expr::getType(), clang::ento::SValBuilder::makeIntVal(), P, clang::ento::ExplodedNode::pred_begin(), clang::ento::ExplodedNode::pred_size(), clang::CFGBlock::rbegin(), clang::CFGBlock::succ_begin(), clang::CFGBlock::succ_size(), and X.
Referenced by Visit().
void ExprEngine::VisitLvalArraySubscriptExpr | ( | const ArraySubscriptExpr * | Ex, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitArraySubscriptExpr - Transfer function for array accesses.
Definition at line 1897 of file ExprEngine.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ento::ExplodedNodeSet::end(), clang::ento::StmtNodeBuilder::generateNode(), clang::ArraySubscriptExpr::getBase(), getCheckerManager(), clang::ArraySubscriptExpr::getIdx(), clang::ento::AnalysisManager::getLangOpts(), clang::Expr::getType(), clang::Expr::IgnoreParens(), clang::QualType::isCForbiddenLValueType(), clang::Expr::isGLValue(), clang::ProgramPoint::PostLValueKind, and clang::ento::CheckerManager::runCheckersForPreStmt().
Referenced by Visit().
void ExprEngine::VisitLvalObjCIvarRefExpr | ( | const ObjCIvarRefExpr * | DR, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Transfer function logic for computing the lvalue of an Objective-C ivar.
Definition at line 22 of file ExprEngineObjC.cpp.
References clang::ento::StmtNodeBuilder::generateNode(), clang::ObjCIvarRefExpr::getBase(), getCheckerManager(), clang::ObjCIvarRefExpr::getDecl(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), and clang::ento::CheckerManager::runCheckersForPostStmt().
Referenced by Visit().
void ExprEngine::VisitMemberExpr | ( | const MemberExpr * | M, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitMemberExpr - Transfer function for member expressions.
Definition at line 1926 of file ExprEngine.cpp.
References clang::ento::NodeBuilder::addNodes(), clang::ento::ExplodedNodeSet::begin(), clang::CK_ArrayToPointerDecay, clang::ento::ExplodedNodeSet::end(), evalLoad(), clang::ento::StmtNodeBuilder::generateNode(), clang::MemberExpr::getBase(), getCheckerManager(), clang::ento::SValBuilder::getFunctionPointer(), clang::MemberExpr::getMemberDecl(), clang::Expr::getType(), clang::ValueDecl::getType(), clang::Type::isArrayType(), clang::Expr::isGLValue(), clang::Type::isReferenceType(), clang::ProgramPoint::PostLValueKind, clang::ento::CheckerManager::runCheckersForPostStmt(), clang::ento::CheckerManager::runCheckersForPreStmt(), clang::ento::NodeBuilder::takeNodes(), and VisitCommonDeclRefExpr().
Referenced by Visit().
void ExprEngine::VisitMSAsmStmt | ( | const MSAsmStmt * | A, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitMSAsmStmt - Transfer function logic for MS inline asm.
Definition at line 2390 of file ExprEngine.cpp.
References clang::ento::StmtNodeBuilder::generateNode(), and clang::ento::ExplodedNode::getState().
Referenced by Visit().
void ExprEngine::VisitObjCAtSynchronizedStmt | ( | const ObjCAtSynchronizedStmt * | S, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Transfer function logic for ObjCAtSynchronizedStmts.
Definition at line 39 of file ExprEngineObjC.cpp.
References getCheckerManager(), and clang::ento::CheckerManager::runCheckersForPreStmt().
Referenced by Visit().
void ExprEngine::VisitObjCForCollectionStmt | ( | const ObjCForCollectionStmt * | S, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitObjCForCollectionStmt - Transfer function logic for ObjCForCollectionStmt.
Definition at line 45 of file ExprEngineObjC.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ento::NodeBuilderContext::blockCount(), clang::ento::SymbolManager::conjureSymbol(), clang::ento::ExplodedNodeSet::end(), clang::ento::StmtNodeBuilder::generateNode(), clang::ento::SVal::getAs(), getCheckerManager(), clang::ObjCForCollectionStmt::getElement(), clang::VarDecl::getInit(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), clang::ento::Loc::isLocType(), clang::ento::SValBuilder::makeIntVal(), clang::ento::SValBuilder::makeLoc(), clang::ento::SValBuilder::makeTruthVal(), and clang::ento::CheckerManager::runCheckersForPostStmt().
Referenced by Visit().
void ExprEngine::VisitObjCMessage | ( | const ObjCMessageExpr * | ME, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
Definition at line 135 of file ExprEngineObjC.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ento::SVal::castAs(), clang::ento::CallEventRef< T >::cloneWithState(), defaultEvalCall(), clang::ento::ExplodedNodeSet::end(), clang::ento::StmtNodeBuilder::generateNode(), clang::ento::StmtNodeBuilder::generateSink(), clang::ento::ProgramStateManager::getCallEventManager(), getCheckerManager(), clang::ento::ExplodedNode::getLocationContext(), clang::CallEventManager::getObjCMethodCall(), clang::ento::ExplodedNode::getState(), getStateManager(), clang::ObjCNoReturn::isImplicitNoReturn(), clang::ento::SVal::isUndef(), clang::ento::CheckerManager::runCheckersForPostCall(), clang::ento::CheckerManager::runCheckersForPostObjCMessage(), clang::ento::CheckerManager::runCheckersForPreCall(), clang::ento::CheckerManager::runCheckersForPreObjCMessage(), and State.
Referenced by Visit().
void ExprEngine::VisitOffsetOfExpr | ( | const OffsetOfExpr * | Ex, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitOffsetOfExpr - Transfer function for offsetof.
Definition at line 697 of file ExprEngineC.cpp.
References clang::Expr::EvaluateAsInt(), clang::ento::StmtNodeBuilder::generateNode(), clang::Type::getAs(), getContext(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ExplodedNode::getState(), clang::Expr::getType(), clang::ASTContext::getTypeSize(), clang::Type::isBuiltinType(), clang::Type::isSignedIntegerType(), clang::ento::SValBuilder::makeIntVal(), and X.
Referenced by Visit().
void ExprEngine::VisitReturnStmt | ( | const ReturnStmt * | R, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitReturnStmt - Transfer function logic for return statements.
Definition at line 991 of file ExprEngineCallAndReturn.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ento::ExplodedNodeSet::end(), clang::ento::StmtNodeBuilder::generateNode(), getCheckerManager(), clang::ReturnStmt::getRetValue(), and clang::ento::CheckerManager::runCheckersForPreStmt().
Referenced by Visit().
void ExprEngine::VisitUnaryExprOrTypeTraitExpr | ( | const UnaryExprOrTypeTraitExpr * | Ex, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitUnaryExprOrTypeTraitExpr - Transfer function for sizeof.
Definition at line 716 of file ExprEngineC.cpp.
References clang::ento::ExplodedNodeSet::begin(), clang::ento::ExplodedNodeSet::end(), clang::Expr::EvaluateKnownConstInt(), clang::CharUnits::fromQuantity(), clang::ento::StmtNodeBuilder::generateNode(), clang::Type::getAs(), getCheckerManager(), getContext(), clang::UnaryExprOrTypeTraitExpr::getKind(), clang::CharUnits::getQuantity(), clang::Expr::getType(), clang::UnaryExprOrTypeTraitExpr::getTypeOfArgument(), clang::Type::isConstantSizeType(), clang::Type::isIncompleteType(), clang::Type::isVariableArrayType(), clang::ento::SValBuilder::makeIntVal(), clang::ento::CheckerManager::runCheckersForPostStmt(), clang::ento::CheckerManager::runCheckersForPreStmt(), and clang::UETT_SizeOf.
Referenced by Visit().
void ExprEngine::VisitUnaryOperator | ( | const UnaryOperator * | B, |
ExplodedNode * | Pred, | ||
ExplodedNodeSet & | Dst | ||
) |
VisitUnaryOperator - Transfer function logic for unary operators.
Definition at line 758 of file ExprEngineC.cpp.
References clang::ento::NodeBuilder::addNodes(), clang::ento::ExplodedNodeSet::begin(), clang::BO_EQ, clang::ento::SVal::castAs(), clang::ento::ExplodedNodeSet::end(), evalBinOp(), evalComplement(), evalMinus(), clang::ento::StmtNodeBuilder::generateNode(), clang::ento::SVal::getAs(), getBasicVals(), getCheckerManager(), clang::UnaryOperator::getOpcode(), clang::UnaryOperator::getSubExpr(), clang::Expr::getType(), getValue(), clang::Expr::IgnoreParens(), clang::Type::isAnyComplexType(), clang::Expr::isGLValue(), clang::ento::SVal::isUnknownOrUndef(), clang::ento::SValBuilder::makeNull(), clang::ento::SValBuilder::makeZeroVal(), clang::Result, clang::ento::CheckerManager::runCheckersForPostStmt(), clang::ento::CheckerManager::runCheckersForPreStmt(), clang::ento::NodeBuilder::takeNodes(), clang::UO_AddrOf, clang::UO_Deref, clang::UO_Extension, clang::UO_Imag, clang::UO_LNot, clang::UO_Minus, clang::UO_Not, clang::UO_Plus, clang::UO_Real, VisitIncrementDecrementOperator(), and X.
Referenced by Visit().
|
overridevirtual |
wantsRegionChangeUpdate - Called by ProgramStateManager to determine if a region change should trigger a processRegionChanges update.
Implements clang::ento::SubEngine.
Definition at line 264 of file ExprEngine.cpp.
References getCheckerManager(), and clang::ento::CheckerManager::wantsRegionChangeUpdate().
|
inline |
Definition at line 316 of file ExprEngine.h.
References clang::ento::CoreEngine::wasBlocksExhausted().