Home
last modified time | relevance | path

Searched refs:getSVal (Results 1 – 25 of 52) sorted by relevance

123

/external/clang/lib/StaticAnalyzer/Checkers/
DStreamChecker.cpp246 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()
288 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Ftell()
295 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Rewind()
302 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Fgetpos()
309 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Fsetpos()
316 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Clearerr()
323 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Feof()
[all …]
DPthreadLockChecker.cpp95 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()
DTestAfterDivZeroChecker.cpp119 SVal S = State->getSVal(E, Succ->getLocationContext()); in REGISTER_SET_WITH_PROGRAMSTATE()
207 SVal S = C.getSVal(B->getRHS()); in checkPreStmt()
228 SVal Val = C.getSVal(LRHS ? B->getLHS() : B->getRHS()); in checkBranchCondition()
237 Val = C.getSVal(I->getSubExpr()); in checkBranchCondition()
242 Val = C.getSVal(U->getSubExpr()); in checkBranchCondition()
249 SVal Val = C.getSVal(IE->getSubExpr()); in checkBranchCondition()
254 SVal Val = C.getSVal(Condition); in checkBranchCondition()
DObjCContainersChecker.cpp41 SVal ArrayRef = C.getState()->getSVal(E, C.getLocationContext()); in getArraySym()
64 SVal SizeV = State->getSVal(Size, C.getLocationContext()); in REGISTER_MAP_WITH_PROGRAMSTATE()
70 SVal ArrayRef = State->getSVal(Array, C.getLocationContext()); in REGISTER_MAP_WITH_PROGRAMSTATE()
126 SVal IdxVal = State->getSVal(IdxExpr, C.getLocationContext()); in checkPreStmt()
DUndefResultChecker.cpp42 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()
DCStringChecker.cpp356 SVal BufVal = state->getSVal(FirstBuf, LCtx); in CheckBufferAccess()
368 SVal LengthVal = state->getSVal(Size, LCtx); in CheckBufferAccess()
394 BufVal = state->getSVal(SecondBuf, LCtx); in CheckBufferAccess()
433 SVal firstVal = state->getSVal(First, LCtx); in CheckOverlap()
434 SVal secondVal = state->getSVal(Second, LCtx); in CheckOverlap()
483 SVal LengthVal = state->getSVal(Size, LCtx); in CheckOverlap()
916 SVal sizeVal = state->getSVal(Size, LCtx); in evalCopyCommon()
924 SVal destVal = state->getSVal(Dest, LCtx); in evalCopyCommon()
945 SVal srcVal = state->getSVal(Source, LCtx); in evalCopyCommon()
999 state = InvalidateBuffer(C, state, Dest, C.getSVal(Dest), in evalCopyCommon()
[all …]
DPointerArithChecker.cpp41 SVal LV = state->getSVal(B->getLHS(), LCtx); in checkPreStmt()
42 SVal RV = state->getSVal(B->getRHS(), LCtx); in checkPreStmt()
DPointerSubChecker.cpp44 SVal LV = state->getSVal(B->getLHS(), LCtx); in checkPreStmt()
45 SVal RV = state->getSVal(B->getRHS(), LCtx); in checkPreStmt()
DObjCSelfInitChecker.cpp135 SVal exprVal = C.getState()->getSVal(E, C.getLocationContext()); in isInvalidSelf()
187 SVal V = state->getSVal(Msg.getOriginExpr(), C.getLocationContext()); in checkPostObjCMessage()
256 unsigned selfFlags = getSelfFlags(state->getSVal(argV.castAs<Loc>()), C); in checkPreCall()
287 addSelfFlag(state, state->getSVal(argV.castAs<Loc>()), prevFlags, C); in checkPostCall()
313 addSelfFlag(state, state->getSVal(location.castAs<Loc>()), SelfFlag_Self, in checkLocation()
DUndefBranchChecker.cpp51 return St->getSVal(Ex, LCtx).isUndef(); in MatchesCriteria()
63 SVal X = Ctx.getState()->getSVal(Condition, Ctx.getLocationContext()); in checkBranchCondition()
DUndefCapturedBlockVarChecker.cpp62 cast<BlockDataRegion>(state->getSVal(BE, in checkPostStmt()
79 state->getSVal(I.getOriginalRegion()).getAs<UndefinedVal>()) { in checkPostStmt()
DBuiltinFunctionChecker.cpp50 SVal X = state->getSVal(*(CE->arg_begin()), LCtx); in evalCall()
65 state->getSVal(*(CE->arg_begin()), LCtx).castAs<DefinedOrUnknownSVal>(); in evalCall()
DUnixAPIChecker.cpp99 const SVal V = state->getSVal(oflagsEx, C.getLocationContext()); in CheckOpen()
157 state->getSVal(CE->getArg(0), C.getLocationContext()).getAsRegion(); in CheckPthreadOnce()
244 SVal argVal = state->getSVal(arg, C.getLocationContext()); in BasicAllocationCheck()
272 SVal argVal = state->getSVal(arg, C.getLocationContext()); in CheckCallocZero()
DDynamicTypePropagation.cpp179 const MemRegion *ToR = C.getSVal(CastE).getAsRegion(); in checkPostStmt()
201 const MemRegion *MR = C.getSVal(NewE).getAsRegion(); in checkPostStmt()
249 const MemRegion *ToR = C.getSVal(CastE).getAsRegion(); in getBetterObjCType()
DBasicObjCFoundationChecks.cpp141 if (State->isNull(C.getSVal(E)).isConstrainedTrue()) { in warnIfNilExpr()
446 SVal TheTypeVal = state->getSVal(CE->getArg(1), LCtx); in checkPreStmt()
466 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 …]
DFixedAddressChecker.cpp48 SVal RV = state->getSVal(B->getRHS(), C.getLocationContext()); in checkPreStmt()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineC.cpp40 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()
211 SVal originalV = State->getSVal(loc::MemRegionVal(originalR)); in VisitBlockExpr()
239 evalLoad(Dst, CastE, CastE, subExprNode, state, state->getSVal(Ex, LCtx)); in VisitCast()
285 SVal V = state->getSVal(Ex, LCtx); in VisitCast()
324 SVal V = state->getSVal(Ex, LCtx); in VisitCast()
333 SVal val = state->getSVal(Ex, LCtx); in VisitCast()
341 SVal val = state->getSVal(Ex, LCtx); in VisitCast()
419 SVal V = State->getSVal(CL->getInitializer(), LCtx); in VisitCompoundLiteralExpr()
[all …]
DCallEvent.cpp199 return getSVal(ArgE); in getArgSVal()
213 return getSVal(E); in getReturnValue()
389 return getSVal(getOriginExpr()->getCallee()).getAsFunctionDecl(); in getDecl()
402 return getSVal(CE->getCallee()).getAsFunctionDecl(); in getDecl()
415 SVal ThisVal = getSVal(Base); in getCXXThisVal()
540 const MemRegion *DataReg = getSVal(Callee).getAsRegion(); in getBlockRegion()
624 return getState()->getSVal(getState()->getRegion(SelfDecl, LCtx)); in getSelfSVal()
633 return getSVal(RecE); in getReceiverSVal()
651 SVal RecVal = getSVal(getOriginExpr()->getInstanceReceiver()); in isReceiverSelfOrSuper()
941 SVal ThisVal = State->getSVal(ThisPtr); in getCaller()
[all …]
DExprEngine.cpp120 SVal V = state->getSVal(loc::MemRegionVal(R)); in getInitialState()
143 SVal V = state->getSVal(loc::MemRegionVal(R)); in getInitialState()
160 SVal V = state->getSVal(L); in getInitialState()
177 SVal V = State->getSVal(Ex, LC); in createTemporaryRegionIfNeeded()
460 SVal thisVal = State->getSVal(svalBuilder.getCXXThis(decl, stackFrame)); in ProcessInitializer()
488 SVal LValue = State->getSVal(Init, stackFrame); in ProcessInitializer()
490 InitVal = State->getSVal(*LValueLoc); in ProcessInitializer()
500 InitVal = State->getSVal(BMI->getInit(), stackFrame); in ProcessInitializer()
587 Region = state->getSVal(Region).getAsRegion(); in ProcessAutomaticObjDtor()
601 SVal ArgVal = State->getSVal(Arg, LCtx); in ProcessDeleteDtor()
[all …]
DBugReporterVisitors.cpp207 SVal RetVal = State->getSVal(S, Node->getLocationContext()); in addVisitorIfNecessary()
212 RetVal = State->getSVal(*LValue); in addVisitorIfNecessary()
253 SVal V = State->getSVal(Ret, StackFrame); in visitNodeInitial()
486 if (Succ->getState()->getSVal(R) != V) in VisitNode()
489 if (Pred->getState()->getSVal(R) == V) { in VisitNode()
566 SVal V = State->getSVal(S, PS->getLocationContext()); in VisitNode()
571 State->getSVal(OriginalR).getAs<KnownSVal>()) in VisitNode()
965 SVal LVal = LVState->getSVal(Inner, LVNode->getLocationContext()); in trackNullOrUndefValue()
975 R = LVState->getSVal(Inner, LVNode->getLocationContext()).getAsRegion(); in trackNullOrUndefValue()
1044 RVal = state->getSVal(L->getRegion()); in trackNullOrUndefValue()
[all …]
DExprEngineCXX.cpp66 V = Pred->getState()->getSVal(*L); in performTrivialCopy()
149 SVal ThisVal = State->getSVal(ThisPtr); in getRegionForConstructedObject()
218 SVal ThisVal = State->getSVal(ThisPtr); in VisitCXXConstructExpr()
452 SVal PlacementLoc = State->getSVal(CNE->getPlacementArg(0), LCtx); in VisitCXXNewExpr()
469 evalBind(Dst, CNE, NewN, Result, State->getSVal(Init, LCtx), in VisitCXXNewExpr()
513 SVal V = state->getSVal(loc::MemRegionVal(R)); in VisitCXXThisExpr()
DExprEngineObjC.cpp27 SVal baseVal = state->getSVal(Ex->getBase(), LCtx); in VisitLvalObjCIvarRefExpr()
84 elementV = state->getSVal(elem, Pred->getLocationContext()); in VisitObjCForCollectionStmt()
DEnvironment.cpp69 SVal Environment::getSVal(const EnvironmentEntry &Entry, in getSVal() function in Environment
99 return getSVal(EnvironmentEntry(RE, LCtx), svalBuilder); in getSVal()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DProgramState.h275 SVal getSVal(const Stmt *S, const LocationContext *LCtx) const;
281 SVal getSVal(Loc LV, QualType T = QualType()) const;
288 SVal getSVal(const MemRegion* R) const;
692 inline SVal ProgramState::getSVal(const Stmt *Ex, in getSVal() function
694 return Env.getSVal(EnvironmentEntry(Ex, LCtx), in getSVal()
705 return getSVal(S, LCtx); in getSValAsScalarOrLoc()
715 inline SVal ProgramState::getSVal(const MemRegion* R) const { in getSVal() function
DCheckerContext.h195 SVal getSVal(const Stmt *S) const { in getSVal() function
196 return getState()->getSVal(S, getLocationContext()); in getSVal()

123