HomeSort by relevance Sort by last modified time
    Searched refs:svalBuilder (Results 1 - 25 of 26) sorted by null

1 2

  /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...]
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...]
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);
BuiltinFunctionChecker.cpp 70 SValBuilder& svalBuilder = C.getSValBuilder();
71 DefinedOrUnknownSVal Extent = R->getExtent(svalBuilder);
73 svalBuilder.evalEQ(state, Extent, Size);
88 SValBuilder &SVB = C.getSValBuilder();
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...]
CastSizeChecker.cpp 115 SValBuilder &svalBuilder = C.getSValBuilder();
116 SVal extent = SR->getExtent(svalBuilder);
117 const llvm::APSInt *extentInt = svalBuilder.getKnownValue(state, extent);
StreamChecker.cpp 213 SValBuilder &svalBuilder = C.getSValBuilder();
215 DefinedSVal RetVal = svalBuilder.conjureSymbolVal(nullptr, CE, LCtx,
BasicObjCFoundationChecks.cpp 580 SValBuilder &svalBuilder = C.getSValBuilder();
582 svalBuilder.makeZeroVal(Arg->getType()).castAs<DefinedSVal>();
585 DefinedOrUnknownSVal ArgIsNull = svalBuilder.evalEQ(state, zero, *DefArgVal);
    [all...]
MallocChecker.cpp     [all...]
  /external/clang/lib/StaticAnalyzer/Core/
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());
ExprEngineC.cpp 50 RightV = svalBuilder.conjureSymbolVal(nullptr, B->getRHS(), LCtx,
74 RightV = svalBuilder.conjureSymbolVal(RHS, LCtx, RHS->getType(),
80 LeftV = svalBuilder.conjureSymbolVal(LHS, LCtx, LHS->getType(),
146 V = svalBuilder.evalCast(V, CLHSTy, LTy);
149 SVal Result = svalBuilder.evalCast(evalBinOp(state, Op, V, RightV, CTy),
161 LHSVal = svalBuilder.conjureSymbolVal(nullptr, B->getRHS(), LCtx, LTy,
164 Result = svalBuilder.evalCast(LHSVal, CTy, LTy);
169 LHSVal = svalBuilder.evalCast(Result, LTy, CTy);
194 SVal V = svalBuilder.getBlockPointer(BD, T,
345 // Delegate to SValBuilder to process
    [all...]
Store.cpp 25 : svalBuilder(stateMgr.getSValBuilder()), StateMgr(stateMgr),
26 MRMgr(svalBuilder.getRegionManager()), Ctx(stateMgr.getContext()) {}
47 NonLoc idx = svalBuilder.makeArrayIndex(index);
48 return MRMgr.getElementRegion(EleTy, idx, Base, svalBuilder.getContext());
57 NonLoc idx = svalBuilder.makeZeroArrayIndex();
373 ASTContext &Ctx = svalBuilder.getContext();
381 assert(svalBuilder.getContext().hasSameUnqualifiedType(castTy, T));
385 return svalBuilder.dispatchCast(V, castTy);
443 Offset = svalBuilder.convertToArrayIndex(Offset).castAs<NonLoc>();
469 // SValBuilder here to add the two offsets without checking their types
    [all...]
ExprEngineObjC.cpp 100 SVal TrueV = svalBuilder.makeTruthVal(1);
104 SVal FalseV = svalBuilder.makeTruthVal(0);
117 SVal V = svalBuilder.makeLoc(Sym);
121 SVal nilV = svalBuilder.makeIntVal(0, T);
RegionStore.cpp 649 SValBuilder &svalBuilder;
670 svalBuilder(StateMgr.getSValBuilder()),
799 SValBuilder &SVB, const ClusterBindings &Cluster,
871 SValBuilder &SVB, const ClusterBindings &Cluster,
    [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...]
ExprEngineCXX.cpp 94 SValBuilder &SVB = State->getStateManager().getSValBuilder();
302 SVal ZeroVal = svalBuilder.makeZeroVal(getContext().CharTy);
455 symVal = svalBuilder.getConjuredHeapSymbolVal(CNE, LCtx, blockCount);
457 symVal = svalBuilder.conjureSymbolVal(nullptr, CNE, LCtx, CNE->getType(),
509 Result = svalBuilder.evalCast(PlacementLoc, CNE->getType(),
548 SVal V = svalBuilder.conjureSymbolVal(CS, LCtx, VD->getType(),
564 svalBuilder.getRegionManager().getCXXThisRegion(
578 const MemRegion *R = svalBuilder.getRegionManager().getCXXTempObjectRegion(
ProgramState.cpp 76 svalBuilder(createSimpleSValBuilder(alloc, Ctx, *this)),
313 // FIXME: This should probably be part of SValBuilder.
315 SValBuilder &svalBuilder = SM.getSValBuilder();
316 ASTContext &Ctx = svalBuilder.getContext();
319 BasicValueFactory &BVF = svalBuilder.getBasicValueFactory();
326 SVal newIdx = svalBuilder.evalBinOpNN(this, BO_Add,
333 svalBuilder.evalBinOpNN(this, BO_Add, UpperBound.castAs<NonLoc>(),
340 SVal inBound = svalBuilder.evalBinOpNN(this, BO_LT, newIdx.castAs<NonLoc>(),
ExprEngine.cpp 82 svalBuilder(StateMgr.getSValBuilder()),
132 svalBuilder.makeZeroVal(T),
133 svalBuilder.getConditionType());
169 loc::MemRegionVal L = svalBuilder.getCXXThis(MD, SFC);
470 SVal thisVal = State->getSVal(svalBuilder.getCXXThis(decl, stackFrame));
508 SValBuilder &SVB = getSValBuilder();
    [all...]
  /external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
Environment.h 28 class SValBuilder;
77 SVal getSVal(const EnvironmentEntry &E, SValBuilder &svalBuilder) const;
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...]
Store.h 18 #include "clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h"
42 SValBuilder &svalBuilder;
88 return svalBuilder.makeLoc(MRMgr.getVarRegion(VD, LC));
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...]
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...]

Completed in 859 milliseconds

1 2