/external/clang/lib/StaticAnalyzer/Core/ |
SValBuilder.cpp | 0 // SValBuilder.cpp - Basic class for all SValBuilder implementations -*- C++ -*- 10 // This file defines SValBuilder, the base class for all (complete) SValBuilder 15 #include "clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h" 30 void SValBuilder::anchor() { } 32 DefinedOrUnknownSVal SValBuilder::makeZeroVal(QualType type) { 44 NonLoc SValBuilder::makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op, 54 NonLoc SValBuilder::makeNonLoc(const llvm::APSInt& lhs, 62 NonLoc SValBuilder::makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op [all...] |
SimpleConstraintManager.h | 26 SValBuilder &SVB; 28 SimpleConstraintManager(SubEngine *subengine, SValBuilder &SB)
|
Android.mk | 52 SValBuilder.cpp \
|
SVals.cpp | 195 SVal nonloc::ConcreteInt::evalBinOp(SValBuilder &svalBuilder, 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());
|
CallEvent.cpp | 305 SValBuilder &SVB, 340 SValBuilder &SVB = getState()->getStateManager().getSValBuilder(); 531 SValBuilder &SVB = StateMgr.getSValBuilder(); 601 SValBuilder &SVB = getState()->getStateManager().getSValBuilder(); 642 SValBuilder &SVB = getState()->getStateManager().getSValBuilder(); [all...] |
Environment.cpp | 70 SValBuilder& svalBuilder) const { 94 // Known constants; defer to SValBuilder. 95 return svalBuilder.getConstantVal(cast<Expr>(S)).getValue(); 100 return getSVal(EnvironmentEntry(RE, LCtx), svalBuilder);
|
MemRegion.cpp | 24 #include "clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h" 183 DefinedOrUnknownSVal TypedValueRegion::getExtent(SValBuilder &svalBuilder) const { 184 ASTContext &Ctx = svalBuilder.getContext(); 188 return nonloc::SymbolVal(svalBuilder.getSymbolManager().getExtentSymbol(this)); 193 QualType sizeTy = svalBuilder.getArrayIndexType(); 194 return svalBuilder.makeIntVal(size.getQuantity(), sizeTy); 197 DefinedOrUnknownSVal FieldRegion::getExtent(SValBuilder &svalBuilder) const { 202 DefinedOrUnknownSVal Extent = DeclRegion::getExtent(svalBuilder); [all...] |
SimpleConstraintManager.cpp | 73 SValBuilder &SVB = state->getStateManager().getSValBuilder();
|
SimpleSValBuilder.cpp | 1 // SimpleSValBuilder.cpp - A basic SValBuilder -----------------------*- C++ -*- 10 // This file defines SimpleSValBuilder, a basic implementation of SValBuilder. 14 #include "clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h" 22 class SimpleSValBuilder : public SValBuilder { 31 : SValBuilder(alloc, context, stateMgr) {} 52 SValBuilder *ento::createSimpleSValBuilder(llvm::BumpPtrAllocator &alloc, [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
ArrayBoundCheckerV2.cpp | 60 SValBuilder &svalBuilder, 68 static SVal computeExtentBegin(SValBuilder &svalBuilder, 73 return svalBuilder.makeZeroArrayIndex(); 100 SValBuilder &svalBuilder = checkerContext.getSValBuilder(); 102 RegionRawOffsetV2::computeOffset(state, svalBuilder, location); 111 SVal extentBegin = computeExtentBegin(svalBuilder, rawOffset.getRegion()); 115 svalBuilder.evalBinOpNN(state, BO_LT, rawOffset.getByteOffset(), *NV [all...] |
BuiltinFunctionChecker.cpp | 70 SValBuilder& svalBuilder = C.getSValBuilder(); 71 DefinedOrUnknownSVal Extent = R->getExtent(svalBuilder); 73 svalBuilder.evalEQ(state, Extent, Size); 88 SValBuilder &SVB = C.getSValBuilder();
|
BoolAssignmentChecker.cpp | 80 SValBuilder &svalBuilder = C.getSValBuilder(); 84 DefinedSVal zeroVal = svalBuilder.makeIntVal(0, valTy); 86 svalBuilder.evalBinOp(state, BO_GE, *DV, zeroVal, 87 svalBuilder.getConditionType()); 93 // The SValBuilder cannot construct a valid SVal for this condition. 120 DefinedSVal OneVal = svalBuilder.makeIntVal(1, valTy); 122 svalBuilder.evalBinOp(state, BO_LE, *DV, OneVal, 123 svalBuilder.getConditionType()); 129 // The SValBuilder cannot construct a valid SVal for this condition [all...] |
CastSizeChecker.cpp | 115 SValBuilder &svalBuilder = C.getSValBuilder(); 116 SVal extent = SR->getExtent(svalBuilder); 117 const llvm::APSInt *extentInt = svalBuilder.getKnownValue(state, extent);
|
VLASizeChecker.cpp | 135 SValBuilder &svalBuilder = C.getSValBuilder(); 138 DefinedOrUnknownSVal Zero = svalBuilder.makeZeroVal(Ty); 140 SVal LessThanZeroVal = svalBuilder.evalBinOp(state, BO_LT, sizeD, Zero, Ty); 157 svalBuilder.evalCast(sizeD, SizeTy, SE->getType()).castAs<NonLoc>(); 161 SVal EleSizeVal = svalBuilder.makeIntVal(EleSize.getQuantity(), SizeTy); 164 SVal ArraySizeVal = svalBuilder.evalBinOpNN( 170 state->getRegion(VD, LC)->getExtent(svalBuilder); 173 svalBuilder.evalEQ(state, Extent, ArraySize);
|
CStringChecker.cpp | 222 SValBuilder &svalBuilder = C.getSValBuilder(); 223 DefinedOrUnknownSVal zero = svalBuilder.makeZeroVal(Ty); 224 return state->assume(svalBuilder.evalEQ(state, *val, zero)); 293 SValBuilder &svalBuilder = C.getSValBuilder(); 295 svalBuilder.convertToArrayIndex(superReg->getExtent(svalBuilder)); 357 SValBuilder &svalBuilder = C.getSValBuilder() [all...] |
MacOSKeychainAPIChecker.cpp | 112 SValBuilder &Builder, 118 SValBuilder &Builder) const { 236 SValBuilder &Builder,
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
Environment.h | 28 class SValBuilder; 77 SVal getSVal(const EnvironmentEntry &E, SValBuilder &svalBuilder) const;
|
SVals.h | 39 class SValBuilder; 348 SVal evalBinOp(SValBuilder &svalBuilder, BinaryOperator::Opcode Op, 351 ConcreteInt evalComplement(SValBuilder &svalBuilder) const; 353 ConcreteInt evalMinus(SValBuilder &svalBuilder) const; 369 friend class ento::SValBuilder; 411 friend class ento::SValBuilder; 437 friend class ento::SValBuilder; [all...] |
SValBuilder.h | 0 // SValBuilder.h - Construction of SVals from evaluating expressions -*- C++ -*- 10 // This file defines SValBuilder, a class that defines the interface for 31 class SValBuilder { 62 SValBuilder(llvm::BumpPtrAllocator &alloc, ASTContext &context, 71 virtual ~SValBuilder() {} 325 SValBuilder* createSimpleSValBuilder(llvm::BumpPtrAllocator &alloc,
|
MemRegion.h | 40 class SValBuilder; 426 virtual DefinedOrUnknownSVal getExtent(SValBuilder &svalBuilder) const { 461 DefinedOrUnknownSVal getExtent(SValBuilder &svalBuilder) const override; 521 DefinedOrUnknownSVal getExtent(SValBuilder &svalBuilder) const override; 725 DefinedOrUnknownSVal getExtent(SValBuilder &svalBuilder) const override; 761 DefinedOrUnknownSVal getExtent(SValBuilder &svalBuilder) const override [all...] |
CheckerContext.h | 157 SValBuilder &getSValBuilder() {
|
Store.h | 18 #include "clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h" 42 SValBuilder &svalBuilder; 88 return svalBuilder.makeLoc(MRMgr.getVarRegion(VD, LC));
|
ExprEngine.h | 74 /// svalBuilder - SValBuilder object that creates SVals from expressions. 75 SValBuilder &svalBuilder; 131 SValBuilder &getSValBuilder() { return svalBuilder; } 306 // FIXME: Remove when we migrate over to just using SValBuilder. 467 return X.isValid() ? svalBuilder.evalMinus(X.castAs<NonLoc>()) : X; 471 return X.isValid() ? svalBuilder.evalComplement(X.castAs<NonLoc>()) : X; 478 return svalBuilder.evalBinOpNN(state, op, L, R, T) [all...] |
ProgramState.h | 22 #include "clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h" 465 std::unique_ptr<SValBuilder> svalBuilder; 487 ASTContext &getContext() { return svalBuilder->getContext(); } 488 const ASTContext &getContext() const { return svalBuilder->getContext(); } 491 return svalBuilder->getBasicValueFactory(); 494 SValBuilder &getSValBuilder() { 495 return *svalBuilder; 499 return svalBuilder->getSymbolManager(); 502 return svalBuilder->getSymbolManager() [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
BugReporter.h | 542 SValBuilder& getSValBuilder() {
|