| /llvm-project-15.0.7/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 | 115 SVal S = Succ->getSVal(E); in REGISTER_SET_WITH_PROGRAMSTATE() 205 SVal S = C.getSVal(B->getRHS()); in checkPreStmt() 226 SVal Val = C.getSVal(LRHS ? B->getLHS() : B->getRHS()); in checkBranchCondition() 235 Val = C.getSVal(I->getSubExpr()); in checkBranchCondition() 240 Val = C.getSVal(U->getSubExpr()); in checkBranchCondition() 247 SVal Val = C.getSVal(IE->getSubExpr()); in checkBranchCondition() 252 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 | 406 StInBound->getSVal(ER).isUndef()) { in CheckLocation() 432 SVal BufVal = C.getSVal(Buffer.Expression); in CheckBufferAccess() 444 SVal LengthVal = C.getSVal(Size.Expression); in CheckBufferAccess() 955 SVal LengthVal = state->getSVal(Size, LCtx); in IsFirstBufInBound() 1101 SVal MemVal = C.getSVal(DstBuffer); in memsetAux() 1102 SVal SizeVal = C.getSVal(Size); in memsetAux() 2223 SVal DstVal = State->getSVal(Dst, LCtx); in evalStdCopyCommon() 2247 SVal SizeVal = C.getSVal(Size.Expression); in evalMemset() 2295 SVal SizeVal = C.getSVal(Size.Expression); in evalBzero() 2310 SVal MemVal = C.getSVal(Buffer.Expression); in evalBzero() [all …]
|
| H A D | ExprInspectionChecker.cpp | 141 SVal AssertionVal = State->getSVal(Assertion, LC); in getArgumentValueString() 203 const MemRegion *MR = C.getSVal(Arg).getAsRegion(); in getArgRegion() 259 SVal V = C.getSVal(Arg); in analyzerExplain() 294 SVal V = C.getSVal(Arg); in analyzerValue() 309 QualType Ty = C.getSVal(Arg).getType(C.getASTContext()); in analyzerDumpSValType() 319 SVal V = C.getSVal(Arg); in analyzerDump() 379 SVal Val = C.getSVal(Arg); in analyzerWarnOnDeadSymbol() 450 SymbolRef Sym = C.getSVal(CE->getArg(0)).getAsSymbol(); in analyzerDenote() 531 SVal ArgVal = C.getSVal(CE->getArg(0)); in analyzerExpress()
|
| 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 | 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 | 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 | UndefCapturedBlockVarChecker.cpp | 57 auto *R = cast<BlockDataRegion>(C.getSVal(BE).getAsRegion()); in checkPostStmt() 73 state->getSVal(I.getOriginalRegion()).getAs<UndefinedVal>()) { in checkPostStmt()
|
| H A D | UndefBranchChecker.cpp | 51 return St->getSVal(Ex, LCtx).isUndef(); in MatchesCriteria() 66 SVal X = Ctx.getSVal(Condition); in checkBranchCondition()
|
| 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 | 142 if (State->isNull(C.getSVal(E)).isConstrainedTrue()) { in warnIfNilExpr() 441 SVal TheTypeVal = C.getSVal(CE->getArg(1)); in checkPreStmt() 461 SVal TheValueExpr = C.getSVal(CE->getArg(2)); in checkPreStmt() 859 SVal CollectionVal = C.getSVal(FCS->getCollection()); in checkCollectionNonNil() 898 ElementLoc = State->getSVal(Element, LCtx).getAs<Loc>(); in checkElementNonNil() 905 SVal Val = State->getSVal(*ElementLoc); in checkElementNonNil() 949 SymbolRef CollectionS = C.getSVal(FCS->getCollection()).getAsSymbol(); in assumeCollectionNonEmpty() 1034 SymbolRef CountS = C.getSVal(MsgExpr).getAsSymbol(); in checkPostObjCMessage() 1176 SVal Val = C.getSVal(NonNullExpr); in assumeExprIsNonNull()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineC.cpp | 57 SVal LeftV = state->getSVal(LHS, LCtx); in VisitBinaryOperator() 58 SVal RightV = state->getSVal(RHS, LCtx); in VisitBinaryOperator() 140 SVal V = state->getSVal(LHS, LCtx); in VisitBinaryOperator() 270 SVal OrigV = state->getSVal(Ex, LCtx); in handleLValueBitCast() 345 SVal V = state->getSVal(Ex, LCtx); in VisitCast() 352 SVal V = state->getSVal(Ex, LCtx); in VisitCast() 373 SVal V = state->getSVal(Ex, LCtx); in VisitCast() 418 SVal V = state->getSVal(Ex, LCtx); in VisitCast() 516 SVal V = state->getSVal(Ex, LCtx); in VisitCast() 1020 SVal V = state->getSVal(Ex, LCtx); in VisitUnaryOperator() [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 | 78 V = Pred->getState()->getSVal(*L); in performTrivialCopy() 139 SVal ThisVal = State->getSVal(ThisPtr); in computeObjectUnderConstruction() 535 Base = State->getSVal(ME, LCtx); in bindRequiredArrayElementToEnvironment() 648 SVal ThisVal = State->getSVal(ThisPtr); in handleConstructor() 907 SVal RetVal = State->getSVal(CNE, LCtx); in VisitCXXNewAllocatorCall() 1021 SVal V = State->getSVal(Init, LCtx); in VisitCXXNewExpr() 1119 SVal V = state->getSVal(loc::MemRegionVal(R)); in VisitCXXThisExpr() 1159 InitVal = State->getSVal(InitVal.getAsRegion()); in VisitLambdaExpr() 1163 InitVal = State->getSVal(InitExpr, LocCtxt); in VisitLambdaExpr() 1174 InitVal = State->getSVal(SizeExpr, LocCtxt); in VisitLambdaExpr() [all …]
|
| H A D | ExprEngine.cpp | 301 SVal V = state->getSVal(L); in getInitialState() 425 SVal InitVal = State->getSVal(Init, LC); in createTemporaryRegionIfNeeded() 1163 SVal ArgVal = State->getSVal(Arg, LCtx); in ProcessDeleteDtor() 2260 return state->getSVal(Ex, LCtx); in RecoverCastedSymbol() 2759 V = state->getSVal(R); in VisitCommonDeclRefExpr() 2791 Base = state->getSVal(R); in VisitCommonDeclRefExpr() 2820 V = state->getSVal(R); in VisitCommonDeclRefExpr() 2831 V = state->getSVal(R); in VisitCommonDeclRefExpr() 2939 Base = state->getSVal(R); in VisitArrayInitLoopExpr() 3063 L = state->getSVal(R); in VisitMemberExpr() [all …]
|
| H A D | BugReporterVisitors.cpp | 648 const SVal V = State->getSVal(FR); in findRegionOfInterestInRecord() 738 V = State->getSVal(MR, PT); in maybeEmitNoteForParameters() 1015 SVal V = State->getSVal(Ret, CalleeSFC); in visitNodeInitial() 1448 if (Succ->getState()->getSVal(R) != V) in VisitNode() 1605 SVal V = StoreSite->getSVal(S); in VisitNode() 2170 SVal LVal = LVNode->getSVal(Inner); in handle() 2298 SVal RetVal = ExprNode->getSVal(E); in handle() 2303 RetVal = State->getSVal(*LValue); in handle() 2517 SVal V = N->getSVal(Receiver); in getNilReceiver() 2788 SVal V = state->getSVal(R); in patternMatch() [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 | 310 return getSVal(ArgE); in getArgSVal() 324 return getSVal(E); in getReturnValue() 630 return getSVal(getOriginExpr()->getCallee()).getAsFunctionDecl(); in getDecl() 642 return getSVal(CE->getCallee()).getAsFunctionDecl(); in getDecl() 682 SVal ThisVal = getSVal(Base); in getCXXThisVal() 814 const MemRegion *DataReg = getSVal(Callee).getAsRegion(); in getBlockRegion() 946 return getSVal(RecE); in getReceiverSVal() 964 SVal RecVal = getSVal(getOriginExpr()->getInstanceReceiver()); in isReceiverSelfOrSuper() 1375 SVal ThisVal = State->getSVal(ThisPtr); in getCaller() 1398 SVal ThisVal = State->getSVal(ThisPtr); in getCaller()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/ |
| H A D | UninitializedPointee.cpp | 139 SVal V = State->getSVal(FR); in isDereferencableUninit() 204 SVal PointeeV = State->getSVal(R); in isDereferencableUninit() 225 SVal V = State->getSVal(FR); in dereference() 244 while (const MemRegion *Tmp = State->getSVal(R, DynT).getAsRegion()) { in dereference()
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | ProgramState.h | 372 SVal getSVal(const Stmt *S, const LocationContext *LCtx) const; 378 SVal getSVal(Loc LV, QualType T = QualType()) const; 385 SVal getSVal(const MemRegion* R, QualType T = QualType()) const; 803 inline SVal ProgramState::getSVal(const Stmt *Ex, in getSVal() function 805 return Env.getSVal(EnvironmentEntry(Ex, LCtx), in getSVal() 816 return getSVal(S, LCtx); in getSValAsScalarOrLoc() 826 inline SVal ProgramState::getSVal(const MemRegion* R, QualType T) const { in getSVal() function
|