/external/clang/lib/StaticAnalyzer/Checkers/ |
D | StreamChecker.cpp | 246 if (!CheckNullStream(state->getSVal(CE->getArg(3), C.getLocationContext()), in Fread() 253 if (!CheckNullStream(state->getSVal(CE->getArg(3), C.getLocationContext()), in Fwrite() 260 if (!(state = CheckNullStream(state->getSVal(CE->getArg(0), in Fseek() 264 SVal Whence = state->getSVal(CE->getArg(2), C.getLocationContext()); in Fseek() 287 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Ftell() 294 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Rewind() 301 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Fgetpos() 308 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Fsetpos() 315 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Clearerr() 322 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Feof() [all …]
|
D | PthreadLockChecker.cpp | 95 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in REGISTER_LIST_WITH_PROGRAMSTATE() 100 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in REGISTER_LIST_WITH_PROGRAMSTATE() 105 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in REGISTER_LIST_WITH_PROGRAMSTATE() 110 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in REGISTER_LIST_WITH_PROGRAMSTATE() 116 ReleaseLock(C, CE, state->getSVal(CE->getArg(0), LCtx)); in REGISTER_LIST_WITH_PROGRAMSTATE() 119 DestroyLock(C, CE, state->getSVal(CE->getArg(0), LCtx)); in REGISTER_LIST_WITH_PROGRAMSTATE() 121 InitLock(C, CE, state->getSVal(CE->getArg(0), LCtx)); in REGISTER_LIST_WITH_PROGRAMSTATE() 134 SVal X = state->getSVal(CE, C.getLocationContext()); in AcquireLock()
|
D | TestAfterDivZeroChecker.cpp | 119 SVal S = State->getSVal(E, Succ->getLocationContext()); in REGISTER_SET_WITH_PROGRAMSTATE() 208 SVal S = C.getSVal(B->getRHS()); in checkPreStmt() 229 SVal Val = C.getSVal(LRHS ? B->getLHS() : B->getRHS()); in checkBranchCondition() 238 Val = C.getSVal(I->getSubExpr()); in checkBranchCondition() 243 Val = C.getSVal(U->getSubExpr()); in checkBranchCondition() 250 SVal Val = C.getSVal(IE->getSubExpr()); in checkBranchCondition() 255 SVal Val = C.getSVal(Condition); in checkBranchCondition()
|
D | UndefResultChecker.cpp | 42 if (state->getSVal(B, LCtx).isUndef()) { in checkPostStmt() 66 if (state->getSVal(B->getLHS(), LCtx).isUndef()) { in checkPostStmt() 70 else if (state->getSVal(B->getRHS(), LCtx).isUndef()) { in checkPostStmt()
|
D | ObjCContainersChecker.cpp | 42 SVal ArrayRef = C.getState()->getSVal(E, C.getLocationContext()); in getArraySym() 69 SVal SizeV = State->getSVal(Size, C.getLocationContext()); in REGISTER_MAP_WITH_PROGRAMSTATE() 75 SVal ArrayRef = State->getSVal(Array, C.getLocationContext()); in REGISTER_MAP_WITH_PROGRAMSTATE() 132 SVal IdxVal = State->getSVal(IdxExpr, C.getLocationContext()); in checkPreStmt()
|
D | CStringChecker.cpp | 365 SVal BufVal = state->getSVal(FirstBuf, LCtx); in CheckBufferAccess() 377 SVal LengthVal = state->getSVal(Size, LCtx); in CheckBufferAccess() 403 BufVal = state->getSVal(SecondBuf, LCtx); in CheckBufferAccess() 442 SVal firstVal = state->getSVal(First, LCtx); in CheckOverlap() 443 SVal secondVal = state->getSVal(Second, LCtx); in CheckOverlap() 492 SVal LengthVal = state->getSVal(Size, LCtx); in CheckOverlap() 841 SVal BufVal = state->getSVal(FirstBuf, LCtx); in IsFirstBufInBound() 843 SVal LengthVal = state->getSVal(Size, LCtx); in IsFirstBufInBound() 997 SVal sizeVal = state->getSVal(Size, LCtx); in evalCopyCommon() 1005 SVal destVal = state->getSVal(Dest, LCtx); in evalCopyCommon() [all …]
|
D | PointerArithChecker.cpp | 41 SVal LV = state->getSVal(B->getLHS(), LCtx); in checkPreStmt() 42 SVal RV = state->getSVal(B->getRHS(), LCtx); in checkPreStmt()
|
D | ObjCSelfInitChecker.cpp | 135 SVal exprVal = C.getState()->getSVal(E, C.getLocationContext()); in isInvalidSelf() 186 SVal V = state->getSVal(Msg.getOriginExpr(), C.getLocationContext()); in checkPostObjCMessage() 255 unsigned selfFlags = getSelfFlags(state->getSVal(argV.castAs<Loc>()), C); in checkPreCall() 286 addSelfFlag(state, state->getSVal(argV.castAs<Loc>()), prevFlags, C); in checkPostCall() 312 addSelfFlag(state, state->getSVal(location.castAs<Loc>()), SelfFlag_Self, in checkLocation()
|
D | PointerSubChecker.cpp | 44 SVal LV = state->getSVal(B->getLHS(), LCtx); in checkPreStmt() 45 SVal RV = state->getSVal(B->getRHS(), LCtx); in checkPreStmt()
|
D | UndefCapturedBlockVarChecker.cpp | 59 cast<BlockDataRegion>(state->getSVal(BE, in checkPostStmt() 76 state->getSVal(I.getOriginalRegion()).getAs<UndefinedVal>()) { in checkPostStmt()
|
D | BuiltinFunctionChecker.cpp | 53 SVal X = state->getSVal(*(CE->arg_begin()), LCtx); in evalCall() 68 state->getSVal(*(CE->arg_begin()), LCtx).castAs<DefinedOrUnknownSVal>(); in evalCall()
|
D | UndefBranchChecker.cpp | 49 return St->getSVal(Ex, LCtx).isUndef(); in MatchesCriteria() 61 SVal X = Ctx.getState()->getSVal(Condition, Ctx.getLocationContext()); in checkBranchCondition()
|
D | UnixAPIChecker.cpp | 131 const SVal V = state->getSVal(oflagsEx, C.getLocationContext()); in CheckOpen() 181 state->getSVal(CE->getArg(0), C.getLocationContext()).getAsRegion(); in CheckPthreadOnce() 268 SVal argVal = state->getSVal(arg, C.getLocationContext()); in BasicAllocationCheck() 296 SVal argVal = state->getSVal(arg, C.getLocationContext()); in CheckCallocZero()
|
D | BasicObjCFoundationChecks.cpp | 141 if (State->isNull(C.getSVal(E)).isConstrainedTrue()) { in warnIfNilExpr() 445 SVal TheTypeVal = state->getSVal(CE->getArg(1), LCtx); in checkPreStmt() 465 SVal TheValueExpr = state->getSVal(CE->getArg(2), LCtx); in checkPreStmt() 574 SVal ArgVal = state->getSVal(Arg, C.getLocationContext()); in checkPreStmt() 891 SVal CollectionVal = C.getSVal(FCS->getCollection()); in checkCollectionNonNil() 930 ElementLoc = State->getSVal(Element, LCtx).getAs<Loc>(); in checkElementNonNil() 937 SVal Val = State->getSVal(*ElementLoc); in checkElementNonNil() 982 State->getSVal(FCS->getCollection(), C.getLocationContext()).getAsSymbol(); in assumeCollectionNonEmpty() 1015 SVal CollectionSentinel = C.getSVal(FCS); in checkPostStmt() 1074 SymbolRef CountS = C.getSVal(MsgExpr).getAsSymbol(); in checkPostObjCMessage() [all …]
|
D | ExprInspectionChecker.cpp | 72 SVal AssertionVal = State->getSVal(Assertion, LC); in getArgumentValueString() 151 SVal Val = C.getSVal(CE->getArg(0)); in analyzerWarnOnDeadSymbol()
|
D | UndefinedArraySubscriptChecker.cpp | 39 if (!C.getSVal(Index).isUndef()) in checkPreStmt()
|
D | FixedAddressChecker.cpp | 48 SVal RV = state->getSVal(B->getRHS(), C.getLocationContext()); in checkPreStmt()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngineC.cpp | 40 SVal LeftV = state->getSVal(LHS, LCtx); in VisitBinaryOperator() 41 SVal RightV = state->getSVal(RHS, LCtx); in VisitBinaryOperator() 132 SVal V = state->getSVal(LHS, LCtx); in VisitBinaryOperator() 230 originalV = State->getSVal(copyExpr, Pred->getLocationContext()); in VisitBlockExpr() 232 originalV = State->getSVal(loc::MemRegionVal(originalR)); in VisitBlockExpr() 261 evalLoad(Dst, CastE, CastE, subExprNode, state, state->getSVal(Ex, LCtx)); in VisitCast() 307 SVal V = state->getSVal(Ex, LCtx); in VisitCast() 346 SVal V = state->getSVal(Ex, LCtx); in VisitCast() 355 SVal val = state->getSVal(Ex, LCtx); in VisitCast() 363 SVal val = state->getSVal(Ex, LCtx); in VisitCast() [all …]
|
D | ExprEngineCXX.cpp | 66 V = Pred->getState()->getSVal(*L); in performTrivialCopy() 132 SVal ThisVal = State->getSVal(ThisPtr); in getRegionForConstructedObject() 274 SVal ThisVal = State->getSVal(ThisPtr); in VisitCXXConstructExpr() 508 SVal PlacementLoc = State->getSVal(CNE->getPlacementArg(0), LCtx); in VisitCXXNewExpr() 525 evalBind(Dst, CNE, NewN, Result, State->getSVal(Init, LCtx), in VisitCXXNewExpr() 569 SVal V = state->getSVal(loc::MemRegionVal(R)); in VisitCXXThisExpr() 597 InitVal = State->getSVal(InitExpr, LocCtxt); in VisitLambdaExpr() 603 InitVal = State->getSVal(SizeExpr, LocCtxt); in VisitLambdaExpr() 612 SVal LambdaRVal = State->getSVal(R); in VisitLambdaExpr()
|
D | CallEvent.cpp | 217 return getSVal(ArgE); in getArgSVal() 231 return getSVal(E); in getReturnValue() 407 return getSVal(getOriginExpr()->getCallee()).getAsFunctionDecl(); in getDecl() 420 return getSVal(CE->getCallee()).getAsFunctionDecl(); in getDecl() 455 SVal ThisVal = getSVal(Base); in getCXXThisVal() 580 const MemRegion *DataReg = getSVal(Callee).getAsRegion(); in getBlockRegion() 682 return getState()->getSVal(getState()->getRegion(SelfDecl, LCtx)); in getSelfSVal() 691 return getSVal(RecE); in getReceiverSVal() 709 SVal RecVal = getSVal(getOriginExpr()->getInstanceReceiver()); in isReceiverSelfOrSuper() 999 SVal ThisVal = State->getSVal(ThisPtr); in getCaller() [all …]
|
D | ExprEngine.cpp | 130 SVal V = state->getSVal(loc::MemRegionVal(R)); in getInitialState() 153 SVal V = state->getSVal(loc::MemRegionVal(R)); in getInitialState() 170 SVal V = state->getSVal(L); in getInitialState() 187 SVal V = State->getSVal(Ex, LC); in createTemporaryRegionIfNeeded() 470 SVal thisVal = State->getSVal(svalBuilder.getCXXThis(decl, stackFrame)); in ProcessInitializer() 502 SVal LValue = State->getSVal(Init, stackFrame); in ProcessInitializer() 504 InitVal = State->getSVal(*LValueLoc); in ProcessInitializer() 514 InitVal = State->getSVal(BMI->getInit(), stackFrame); in ProcessInitializer() 601 Region = state->getSVal(Region).getAsRegion(); in ProcessAutomaticObjDtor() 615 SVal ArgVal = State->getSVal(Arg, LCtx); in ProcessDeleteDtor() [all …]
|
D | BugReporterVisitors.cpp | 202 SVal RetVal = State->getSVal(S, Node->getLocationContext()); in addVisitorIfNecessary() 207 RetVal = State->getSVal(*LValue); in addVisitorIfNecessary() 249 SVal V = State->getSVal(Ret, StackFrame); in visitNodeInitial() 482 if (Succ->getState()->getSVal(R) != V) in VisitNode() 485 if (Pred->getState()->getSVal(R) == V) { in VisitNode() 562 SVal V = State->getSVal(S, PS->getLocationContext()); in VisitNode() 567 State->getSVal(OriginalR).getAs<KnownSVal>()) in VisitNode() 961 SVal LVal = LVState->getSVal(Inner, LVNode->getLocationContext()); in trackNullOrUndefValue() 971 R = LVState->getSVal(Inner, LVNode->getLocationContext()).getAsRegion(); in trackNullOrUndefValue() 1036 RVal = state->getSVal(L->getRegion()); in trackNullOrUndefValue() [all …]
|
D | Environment.cpp | 69 SVal Environment::getSVal(const EnvironmentEntry &Entry, in getSVal() function in Environment 100 return getSVal(EnvironmentEntry(RE, LCtx), svalBuilder); in getSVal()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ProgramState.h | 297 SVal getSVal(const Stmt *S, const LocationContext *LCtx) const; 303 SVal getSVal(Loc LV, QualType T = QualType()) const; 310 SVal getSVal(const MemRegion* R) const; 727 inline SVal ProgramState::getSVal(const Stmt *Ex, in getSVal() function 729 return Env.getSVal(EnvironmentEntry(Ex, LCtx), in getSVal() 740 return getSVal(S, LCtx); in getSValAsScalarOrLoc() 750 inline SVal ProgramState::getSVal(const MemRegion* R) const { in getSVal() function
|
D | CheckerContext.h | 195 SVal getSVal(const Stmt *S) const { in getSVal() function 196 return getState()->getSVal(S, getLocationContext()); in getSVal()
|