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

1 2

  /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 44 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 287 SValBuilder &SVB,
322 SValBuilder &SVB = getState()->getStateManager().getSValBuilder();
491 SValBuilder &SVB = StateMgr.getSValBuilder();
561 SValBuilder &SVB = getState()->getStateManager().getSValBuilder();
585 SValBuilder &SVB = getState()->getStateManager().getSValBuilder();
887 SValBuilder &SVB = getState()->getStateManager().getSValBuilder();
938 SValBuilder &SVB = State->getStateManager().getSValBuilder()
    [all...]
Environment.cpp 70 SValBuilder& svalBuilder) const {
93 // Known constants; defer to SValBuilder.
94 return svalBuilder.getConstantVal(cast<Expr>(S)).getValue();
99 return getSVal(EnvironmentEntry(RE, LCtx), svalBuilder);
SimpleConstraintManager.cpp 73 SValBuilder &SVB = state->getStateManager().getSValBuilder();
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...]
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 69 SValBuilder& svalBuilder = C.getSValBuilder();
70 DefinedOrUnknownSVal Extent = R->getExtent(svalBuilder);
72 svalBuilder.evalEQ(state, Extent, Size);
87 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 213 SValBuilder &svalBuilder = C.getSValBuilder();
214 DefinedOrUnknownSVal zero = svalBuilder.makeZeroVal(Ty);
215 return state->assume(svalBuilder.evalEQ(state, *val, zero));
284 SValBuilder &svalBuilder = C.getSValBuilder();
286 svalBuilder.convertToArrayIndex(superReg->getExtent(svalBuilder));
348 SValBuilder &svalBuilder = C.getSValBuilder()
    [all...]
MacOSKeychainAPIChecker.cpp 113 SValBuilder &Builder,
119 SValBuilder &Builder) const {
238 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.
463 return X.isValid() ? svalBuilder.evalMinus(X.castAs<NonLoc>()) : X;
467 return X.isValid() ? svalBuilder.evalComplement(X.castAs<NonLoc>()) : X;
474 return svalBuilder.evalBinOpNN(state, op, L, R, T)
    [all...]
ProgramState.h 22 #include "clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h"
458 std::unique_ptr<SValBuilder> svalBuilder;
480 ASTContext &getContext() { return svalBuilder->getContext(); }
481 const ASTContext &getContext() const { return svalBuilder->getContext(); }
484 return svalBuilder->getBasicValueFactory();
487 SValBuilder &getSValBuilder() {
488 return *svalBuilder;
492 return svalBuilder->getSymbolManager();
495 return svalBuilder->getSymbolManager()
    [all...]
  /external/clang/include/clang/StaticAnalyzer/Core/BugReporter/
BugReporter.h 542 SValBuilder& getSValBuilder() {

Completed in 1971 milliseconds

1 2