| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | UndefResultChecker.cpp | 44 SVal Loc = C.getSVal(Ex); in isArrayIndexOutOfBounds() 70 const llvm::APSInt *LHS = SB.getKnownValue(State, C.getSVal(B->getLHS())); in isLeftShiftResultUnrepresentable() 71 const llvm::APSInt *RHS = SB.getKnownValue(State, C.getSVal(B->getRHS())); in isLeftShiftResultUnrepresentable() 78 if (C.getSVal(B).isUndef()) { in checkPostStmt() 102 if (C.getSVal(B->getLHS()).isUndef()) { in checkPostStmt() 106 else if (C.getSVal(B->getRHS()).isUndef()) { in checkPostStmt() 139 SB.getKnownValue(C.getState(), C.getSVal(B->getRHS())); in checkPostStmt() 159 SB.getKnownValue(State, C.getSVal(B->getLHS())); in checkPostStmt() 161 SB.getKnownValue(State, C.getSVal(B->getRHS())); in checkPostStmt()
|
| H A D | PointerArithChecker.cpp | 109 SVal S = State->getSVal(Region); in getPointedRegion() 156 const MemRegion *Region = C.getSVal(E).getAsRegion(); in reportPointerArithMisuse() 228 SVal SV = C.getSVal(CE); in checkPostStmt() 249 SVal AllocedVal = C.getSVal(NE); in checkPostStmt() 264 SVal CastedVal = C.getSVal(CastedExpr); in checkPostStmt() 282 SVal CastedVal = C.getSVal(CastedExpr); in checkPreStmt() 305 SVal Idx = C.getSVal(SubsExpr->getIdx()); in checkPreStmt() 328 SVal RHSVal = C.getSVal(Rhs); in checkPreStmt() 335 SVal LHSVal = C.getSVal(Lhs); in checkPreStmt()
|
| H A D | TestAfterDivZeroChecker.cpp | 116 SVal S = Succ->getSVal(E); in REGISTER_SET_WITH_PROGRAMSTATE() 206 SVal S = C.getSVal(B->getRHS()); in checkPreStmt() 227 SVal Val = C.getSVal(LRHS ? B->getLHS() : B->getRHS()); in checkBranchCondition() 236 Val = C.getSVal(I->getSubExpr()); in checkBranchCondition() 241 Val = C.getSVal(U->getSubExpr()); in checkBranchCondition() 248 SVal Val = C.getSVal(IE->getSubExpr()); in checkBranchCondition() 253 SVal Val = C.getSVal(Condition); in checkBranchCondition()
|
| H A D | InvalidatedIteratorChecker.cpp | 82 SVal SubVal = State->getSVal(UO->getSubExpr(), C.getLocationContext()); in checkPreStmt() 93 SVal LVal = State->getSVal(BO->getLHS(), C.getLocationContext()); in checkPreStmt() 103 SVal LVal = State->getSVal(ASE->getLHS(), C.getLocationContext()); in checkPreStmt() 113 SVal BaseVal = State->getSVal(ME->getBase(), C.getLocationContext()); in checkPreStmt()
|
| H A D | ObjCContainersChecker.cpp | 41 SVal ArrayRef = C.getSVal(E); in getArraySym() 68 SVal SizeV = C.getSVal(Size); in REGISTER_MAP_WITH_PROGRAMSTATE() 74 SVal ArrayRef = C.getSVal(Array); in REGISTER_MAP_WITH_PROGRAMSTATE() 130 SVal IdxVal = C.getSVal(IdxExpr); in checkPreStmt()
|
| H A D | CStringChecker.cpp | 430 StInBound->getSVal(ER).isUndef()) { in CheckLocation() 456 SVal BufVal = C.getSVal(Buffer.Expression); in CheckBufferAccess() 468 SVal LengthVal = C.getSVal(Size.Expression); in CheckBufferAccess() 523 SVal firstVal = state->getSVal(First.Expression, LCtx); in CheckOverlap() 524 SVal secondVal = state->getSVal(Second.Expression, LCtx); in CheckOverlap() 573 SVal LengthVal = state->getSVal(Size.Expression, LCtx); in CheckOverlap() 977 SVal BufVal = state->getSVal(FirstBuf, LCtx); in IsFirstBufInBound() 979 SVal LengthVal = state->getSVal(Size, LCtx); in IsFirstBufInBound() 1125 SVal MemVal = C.getSVal(DstBuffer); in memsetAux() 1126 SVal SizeVal = C.getSVal(Size); in memsetAux() [all …]
|
| H A D | ExprInspectionChecker.cpp | 143 SVal AssertionVal = State->getSVal(Assertion, LC); in getArgumentValueString() 206 const MemRegion *MR = C.getSVal(Arg).getAsRegion(); in getArgRegion() 262 SVal V = C.getSVal(Arg); in analyzerExplain() 297 SVal V = C.getSVal(Arg); in analyzerValue() 312 QualType Ty = C.getSVal(Arg).getType(C.getASTContext()); in analyzerDumpSValType() 322 SVal V = C.getSVal(Arg); in analyzerDump() 381 SVal Val = C.getSVal(Arg); in analyzerWarnOnDeadSymbol() 452 SymbolRef Sym = C.getSVal(CE->getArg(0)).getAsSymbol(); in analyzerDenote() 535 SVal ArgVal = C.getSVal(CE->getArg(0)); in analyzerExpress()
|
| H A D | ObjCSelfInitChecker.cpp | 135 SVal exprVal = C.getSVal(E); in isInvalidSelf() 186 SVal V = C.getSVal(Msg.getOriginExpr()); in checkPostObjCMessage() 256 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()
|
| H A D | PointerSubChecker.cpp | 41 SVal LV = C.getSVal(B->getLHS()); in checkPreStmt() 42 SVal RV = C.getSVal(B->getRHS()); in checkPreStmt()
|
| H A D | CXXSelfAssignmentChecker.cpp | 50 State->getSVal(SVB.getCXXThis(MD, LCtx->getStackFrame())); in checkBeginFunction() 52 auto ParamVal = State->getSVal(Param); in checkBeginFunction()
|
| H A D | IteratorRangeChecker.cpp | 151 SVal SubVal = State->getSVal(UO->getSubExpr(), C.getLocationContext()); in checkPreStmt() 166 SVal LVal = State->getSVal(BO->getLHS(), C.getLocationContext()); in checkPreStmt() 171 SVal RVal = State->getSVal(BO->getRHS(), C.getLocationContext()); in checkPreStmt() 182 SVal LVal = State->getSVal(ASE->getLHS(), C.getLocationContext()); in checkPreStmt() 192 SVal BaseVal = State->getSVal(ME->getBase(), C.getLocationContext()); in checkPreStmt()
|
| H A D | UndefBranchChecker.cpp | 52 return St->getSVal(Ex, LCtx).isUndef(); in MatchesCriteria() 67 SVal X = Ctx.getSVal(Condition); in checkBranchCondition()
|
| H A D | UndefCapturedBlockVarChecker.cpp | 58 auto *R = cast<BlockDataRegion>(C.getSVal(BE).getAsRegion()); in checkPostStmt() 74 state->getSVal(I.getOriginalRegion()).getAs<UndefinedVal>()) { in checkPostStmt()
|
| H A D | DeleteWithNonVirtualDtorChecker.cpp | 64 const MemRegion *MR = C.getSVal(DeletedObj).getAsRegion(); in checkPreStmt() 129 const MemRegion *M = N->getSVal(CastE).getAsRegion(); in VisitNode()
|
| H A D | UnixAPIChecker.cpp | 229 const SVal V = C.getSVal(oflagsEx); in CheckOpenVariant() 284 const MemRegion *R = C.getSVal(CE->getArg(0)).getAsRegion(); in CheckPthreadOnce() 375 SVal argVal = C.getSVal(arg); in BasicAllocationCheck() 403 SVal argVal = C.getSVal(arg); in CheckCallocZero()
|
| H A D | BasicObjCFoundationChecks.cpp | 143 if (State->isNull(C.getSVal(E)).isConstrainedTrue()) { in warnIfNilExpr() 442 SVal TheTypeVal = C.getSVal(CE->getArg(1)); in checkPreStmt() 463 SVal TheValueExpr = C.getSVal(CE->getArg(2)); in checkPreStmt() 861 SVal CollectionVal = C.getSVal(FCS->getCollection()); in checkCollectionNonNil() 901 ElementLoc = State->getSVal(Element, LCtx).getAs<Loc>(); in checkElementNonNil() 908 SVal Val = State->getSVal(*ElementLoc); in checkElementNonNil() 952 SymbolRef CollectionS = C.getSVal(FCS->getCollection()).getAsSymbol(); in assumeCollectionNonEmpty() 1037 SymbolRef CountS = C.getSVal(MsgExpr).getAsSymbol(); in checkPostObjCMessage() 1179 SVal Val = C.getSVal(NonNullExpr); in assumeExprIsNonNull()
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineC.cpp | 58 SVal LeftV = state->getSVal(LHS, LCtx); in VisitBinaryOperator() 59 SVal RightV = state->getSVal(RHS, LCtx); in VisitBinaryOperator() 141 SVal V = state->getSVal(LHS, LCtx); in VisitBinaryOperator() 240 originalV = State->getSVal(copyExpr, LCtx); in VisitBlockExpr() 242 originalV = State->getSVal(loc::MemRegionVal(originalR)); in VisitBlockExpr() 271 SVal OrigV = state->getSVal(Ex, LCtx); in handleLValueBitCast() 299 evalLoad(Dst, CastE, CastE, subExprNode, state, state->getSVal(Ex, LCtx)); in VisitCast() 346 SVal V = state->getSVal(Ex, LCtx); in VisitCast() 353 SVal V = state->getSVal(Ex, LCtx); in VisitCast() 374 SVal V = state->getSVal(Ex, LCtx); in VisitCast() [all …]
|
| H A D | CheckerContext.cpp | 27 SVal L = Pred->getSVal(Callee); in getCalleeDecl() 149 return evalComparison(getSVal(E), BO_GE, V, getState()); in isGreaterOrEqual() 154 return evalComparison(getSVal(E), BO_LT, V, getState()); in isNegative()
|
| H A D | ExprEngineCXX.cpp | 80 V = Pred->getState()->getSVal(*L); in performTrivialCopy() 147 SVal ThisVal = State->getSVal(ThisPtr); in computeObjectUnderConstruction() 563 Base = State->getSVal(ME, LCtx); in bindRequiredArrayElementToEnvironment() 596 State = State->BindExpr(CE, LCtx, State->getSVal(*L, CE->getType())); in handleConstructor() 698 SVal ThisVal = State->getSVal(ThisPtr); in handleConstructor() 957 SVal RetVal = State->getSVal(CNE, LCtx); in VisitCXXNewAllocatorCall() 1076 SVal V = State->getSVal(Init, LCtx); in VisitCXXNewExpr() 1099 SVal PlacementLoc = State->getSVal(CNE->getPlacementArg(0), LCtx); in VisitCXXNewExpr() 1116 evalBind(Dst, CNE, NewN, Result, State->getSVal(Init, LCtx), in VisitCXXNewExpr() 1174 SVal V = state->getSVal(loc::MemRegionVal(R)); in VisitCXXThisExpr() [all …]
|
| H A D | ExprEngine.cpp | 268 SVal V = state->getSVal(loc::MemRegionVal(R)); in getInitialState() 291 SVal V = state->getSVal(loc::MemRegionVal(R)); in getInitialState() 308 SVal V = state->getSVal(L); in getInitialState() 329 SVal InitValWithAdjustments = State->getSVal(InitWithAdjustments, LC); in createTemporaryRegionIfNeeded() 432 SVal InitVal = State->getSVal(Init, LC); in createTemporaryRegionIfNeeded() 1166 SVal thisVal = State->getSVal(svalBuilder.getCXXThis(decl, stackFrame)); in ProcessInitializer() 1200 SVal LValue = State->getSVal(Init, stackFrame); in ProcessInitializer() 1203 InitVal = State->getSVal(*LValueLoc); in ProcessInitializer() 1213 InitVal = State->getSVal(BMI->getInit(), stackFrame); in ProcessInitializer() 1336 const MemRegion *ValueRegion = state->getSVal(Region).getAsRegion(); in ProcessAutomaticObjDtor() [all …]
|
| H A D | BugReporterVisitors.cpp | 222 return State->getSVal(State->getLValue(VD, LCtx)); in getSValForVar() 226 if (auto FieldL = State->getSVal(ME, LCtx).getAs<Loc>()) in getSValForVar() 305 N->getSVal(BO->getLHS()).getAsRegion())) in wasRegionOfInterestModifiedAt() 309 SVal ValueAtN = N->getState()->getSVal(RegionOfInterest); in wasRegionOfInterestModifiedAt() 648 const SVal V = State->getSVal(FR); in findRegionOfInterestInRecord() 738 V = State->getSVal(MR, PT); in maybeEmitNoteForParameters() 751 CallExitBeginN->getState()->getSVal(RegionOfInterest)); in wasModifiedBeforeCallExit() 945 const MemRegion *R = N->getSVal(BO->getLHS()).getAsRegion(); in matchAssignment() 1015 SVal V = State->getSVal(Ret, CalleeSFC); in visitNodeInitial() 1531 if (Succ->getState()->getSVal(R) != V) in VisitNode() [all …]
|
| H A D | ExprEngineObjC.cpp | 26 SVal baseVal = state->getSVal(Ex->getBase(), LCtx); in VisitLvalObjCIvarRefExpr() 114 SVal collectionV = state->getSVal(collection, Pred->getLocationContext()); in VisitObjCForCollectionStmt() 122 elementV = state->getSVal(elem, Pred->getLocationContext()); in VisitObjCForCollectionStmt()
|
| H A D | CallEvent.cpp | 309 return getSVal(ArgE); in getArgSVal() 323 return getSVal(E); in getReturnValue() 666 return getSVal(getOriginExpr()->getCallee()).getAsFunctionDecl(); in getDecl() 678 return getSVal(CE->getCallee()).getAsFunctionDecl(); in getDecl() 718 SVal ThisVal = getSVal(Base); in getCXXThisVal() 850 const MemRegion *DataReg = getSVal(Callee).getAsRegion(); in getBlockRegion() 982 return getSVal(RecE); in getReceiverSVal() 1000 SVal RecVal = getSVal(getOriginExpr()->getInstanceReceiver()); in isReceiverSelfOrSuper() 1411 SVal ThisVal = State->getSVal(ThisPtr); in getCaller() 1434 SVal ThisVal = State->getSVal(ThisPtr); in getCaller()
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/ |
| H A D | UninitializedPointee.cpp | 140 SVal V = State->getSVal(FR); in isDereferencableUninit() 205 SVal PointeeV = State->getSVal(R); in isDereferencableUninit() 226 SVal V = State->getSVal(FR); in dereference() 245 while (const MemRegion *Tmp = State->getSVal(R, DynT).getAsRegion()) { in dereference()
|
| /openbsd-src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | ProgramState.h | 374 SVal getSVal(const Stmt *S, const LocationContext *LCtx) const; 380 SVal getSVal(Loc LV, QualType T = QualType()) const; 387 SVal getSVal(const MemRegion* R, QualType T = QualType()) const; 805 inline SVal ProgramState::getSVal(const Stmt *Ex, in getSVal() function 807 return Env.getSVal(EnvironmentEntry(Ex, LCtx), in getSVal() 818 return getSVal(S, LCtx); in getSValAsScalarOrLoc() 828 inline SVal ProgramState::getSVal(const MemRegion* R, QualType T) const { in getSVal() function
|