/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | BuiltinFunctionChecker.cpp | 69 SValBuilder& svalBuilder = C.getSValBuilder(); local 70 DefinedOrUnknownSVal Extent = R->getExtent(svalBuilder); 72 svalBuilder.evalEQ(state, Extent, Size);
|
H A D | BoolAssignmentChecker.cpp | 80 SValBuilder &svalBuilder = C.getSValBuilder(); local 84 DefinedSVal zeroVal = svalBuilder.makeIntVal(0, valTy); 86 svalBuilder.evalBinOp(state, BO_GE, *DV, zeroVal, 87 svalBuilder.getConditionType()); 120 DefinedSVal OneVal = svalBuilder.makeIntVal(1, valTy); 122 svalBuilder.evalBinOp(state, BO_LE, *DV, OneVal, 123 svalBuilder.getConditionType());
|
H A D | VLASizeChecker.cpp | 131 SValBuilder &svalBuilder = C.getSValBuilder(); local 134 svalBuilder.evalCast(sizeD, SizeTy, SE->getType()).castAs<NonLoc>(); 138 SVal EleSizeVal = svalBuilder.makeIntVal(EleSize.getQuantity(), SizeTy); 141 SVal ArraySizeVal = svalBuilder.evalBinOpNN( 147 state->getRegion(VD, LC)->getExtent(svalBuilder); 150 svalBuilder.evalEQ(state, Extent, ArraySize);
|
H A D | ArrayBoundCheckerV2.cpp | 60 SValBuilder &svalBuilder, 68 static SVal computeExtentBegin(SValBuilder &svalBuilder, argument 73 return svalBuilder.makeZeroArrayIndex(); 100 SValBuilder &svalBuilder = checkerContext.getSValBuilder(); local 102 RegionRawOffsetV2::computeOffset(state, svalBuilder, location); 111 SVal extentBegin = computeExtentBegin(svalBuilder, rawOffset.getRegion()); 115 svalBuilder.evalBinOpNN(state, BO_LT, rawOffset.getByteOffset(), *NV, 116 svalBuilder.getConditionType()); 141 rawOffset.getRegion()->getExtent(svalBuilder); 146 = svalBuilder 236 getValue(SVal val, SValBuilder &svalBuilder) argument 252 addValue(ProgramStateRef state, SVal x, SVal y, SValBuilder &svalBuilder) argument 266 computeOffset(ProgramStateRef state, SValBuilder &svalBuilder, SVal location) argument [all...] |
H A D | StreamChecker.cpp | 211 SValBuilder &svalBuilder = C.getSValBuilder(); local 213 DefinedSVal RetVal = svalBuilder.conjureSymbolVal(0, CE, LCtx, C.blockCount())
|
H A D | CStringChecker.cpp | 210 SValBuilder &svalBuilder = C.getSValBuilder(); 211 DefinedOrUnknownSVal zero = svalBuilder.makeZeroVal(Ty); 212 return state->assume(svalBuilder.evalEQ(state, *val, zero)); 280 SValBuilder &svalBuilder = C.getSValBuilder(); local 282 svalBuilder.convertToArrayIndex(superReg->getExtent(svalBuilder)); 343 SValBuilder &svalBuilder = C.getSValBuilder(); 344 ASTContext &Ctx = svalBuilder.getContext(); 369 NonLoc One = svalBuilder.makeIntVal(1, sizeTy).castAs<NonLoc>(); 370 NonLoc LastOffset = svalBuilder 666 SValBuilder &svalBuilder = C.getSValBuilder(); local 725 SValBuilder &svalBuilder = C.getSValBuilder(); local 1027 SValBuilder &svalBuilder = C.getSValBuilder(); local 1671 SValBuilder &svalBuilder = C.getSValBuilder(); local [all...] |
H A D | MallocChecker.cpp | 755 SValBuilder &svalBuilder = C.getSValBuilder(); local 757 DefinedSVal RetVal = svalBuilder.getConjuredHeapSymbolVal(CE, LCtx, Count) 775 SValBuilder &svalBuilder = C.getSValBuilder(); local 776 DefinedOrUnknownSVal Extent = R->getExtent(svalBuilder); 778 svalBuilder.evalEQ(State, Extent, *DefinedSize); 1419 SValBuilder &svalBuilder = C.getSValBuilder(); local 1422 svalBuilder.evalEQ(state, arg0Val, svalBuilder.makeNull()); 1437 svalBuilder.evalEQ(state, Arg1Val, 1438 svalBuilder 1512 SValBuilder &svalBuilder = C.getSValBuilder(); local [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | SVals.cpp | 195 SVal nonloc::ConcreteInt::evalBinOp(SValBuilder &svalBuilder, argument 199 svalBuilder.getBasicValueFactory().evalAPSInt(Op, getValue(), R.getValue()); 208 nonloc::ConcreteInt::evalComplement(SValBuilder &svalBuilder) const { 209 return svalBuilder.makeIntVal(~getValue()); 213 nonloc::ConcreteInt::evalMinus(SValBuilder &svalBuilder) const { 214 return svalBuilder.makeIntVal(-getValue());
|
H A D | ProgramState.cpp | 76 svalBuilder(createSimpleSValBuilder(alloc, Ctx, *this)), 336 SValBuilder &svalBuilder = SM.getSValBuilder(); local 337 ASTContext &Ctx = svalBuilder.getContext(); 340 BasicValueFactory &BVF = svalBuilder.getBasicValueFactory(); 347 SVal newIdx = svalBuilder.evalBinOpNN(this, BO_Add, 354 svalBuilder.evalBinOpNN(this, BO_Add, UpperBound.castAs<NonLoc>(), 361 SVal inBound = svalBuilder.evalBinOpNN(this, BO_LT, newIdx.castAs<NonLoc>(),
|
H A D | RegionStore.cpp | 651 SValBuilder &svalBuilder; member in class:__anon16523::ClusterAnalysis 682 svalBuilder(StateMgr.getSValBuilder()), 914 collectSubRegionBindings(Bindings, svalBuilder, *Cluster, Top, TopKey, 1055 svalBuilder.conjureSymbolVal(baseR, Ex, LCtx, Ctx.IntTy, Count); 1076 DefinedOrUnknownSVal V = svalBuilder.conjureSymbolVal(baseR, Ex, LCtx, 1085 svalBuilder.conjureSymbolVal(baseR, Ex, LCtx, 1091 DefinedOrUnknownSVal V = svalBuilder.conjureSymbolVal(baseR, Ex, LCtx, 1107 SVal V = svalBuilder.conjureSymbolVal(/* SymbolTag = */ (const void*) GS, Ex, LCtx, 1221 SVal Size = cast<SubRegion>(R)->getExtent(svalBuilder); 1222 const llvm::APSInt *SizeInt = svalBuilder [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | ExprEngine.h | 75 /// svalBuilder - SValBuilder object that creates SVals from expressions. 76 SValBuilder &svalBuilder; member in class:clang::ento::ExprEngine 132 SValBuilder &getSValBuilder() { return svalBuilder; } 442 return X.isValid() ? svalBuilder.evalMinus(X.castAs<NonLoc>()) : X; 446 return X.isValid() ? svalBuilder.evalComplement(X.castAs<NonLoc>()) : X; 453 return svalBuilder.evalBinOpNN(state, op, L, R, T); 458 return R.isValid() ? svalBuilder.evalBinOpNN(state, op, L, 464 return svalBuilder.evalBinOp(ST, Op, LHS, RHS, T);
|
H A D | Store.h | 42 SValBuilder &svalBuilder; member in class:clang::ento::StoreManager 88 return svalBuilder.makeLoc(MRMgr.getVarRegion(VD, LC));
|
H A D | ProgramState.h | 458 OwningPtr<SValBuilder> svalBuilder; member in class:clang::ento::ProgramStateManager 480 ASTContext &getContext() { return svalBuilder->getContext(); } 481 const ASTContext &getContext() const { return svalBuilder->getContext(); } 484 return svalBuilder->getBasicValueFactory(); 488 return *svalBuilder; 492 return svalBuilder->getSymbolManager(); 495 return svalBuilder->getSymbolManager(); 501 return svalBuilder->getRegionManager(); 504 return svalBuilder->getRegionManager(); 698 *getStateManager().svalBuilder); [all...] |