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

1 2 3 4

  /frameworks/compile/libbcc/tests/debuginfo/host-tests/
aggregate-indirect-arg.cpp 8 // CHECK: $1 = (SVal &)
12 class SVal {
14 ~SVal() {}
19 void bar(SVal &v) {}
22 void foo(SVal v) { bar(v); }
26 SVal v;
  /external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
SVals.h 10 // This file defines SVal, Loc, and NonLoc, classes that represent
24 // Base SVal types.
41 /// SVal - This represents a symbolic expression, which can be either
44 class SVal {
63 explicit SVal(const void *d, bool isLoc, unsigned ValKind)
66 explicit SVal(BaseKind k, const void *D = NULL)
70 explicit SVal() : Data(0), Kind(0) {}
72 /// \brief Convert to the specified SVal type, asserting that this SVal is of
78 SVal& sv = t
    [all...]
Store.h 61 virtual SVal getBinding(Store store, Loc loc, QualType T = QualType()) = 0;
70 virtual StoreRef Bind(Store store, Loc loc, SVal val) = 0;
72 virtual StoreRef BindDefault(Store store, const MemRegion *R, SVal V);
96 virtual SVal getLValueIvar(const ObjCIvarDecl *decl, SVal base);
98 virtual SVal getLValueField(const FieldDecl *D, SVal Base) {
102 virtual SVal getLValueElement(QualType elementType, NonLoc offset, SVal Base);
114 virtual SVal ArrayToPointer(Loc Array, QualType ElementTy) = 0
    [all...]
BasicValueFactory.h 29 llvm::ImmutableList<SVal> L;
32 CompoundValData(QualType t, llvm::ImmutableList<SVal> l)
35 typedef llvm::ImmutableList<SVal>::iterator iterator;
40 llvm::ImmutableList<SVal> L);
73 llvm::ImmutableList<SVal>::Factory SValListFactory;
170 llvm::ImmutableList<SVal> Vals);
175 llvm::ImmutableList<SVal> getEmptySValList() {
179 llvm::ImmutableList<SVal> consVals(SVal X, llvm::ImmutableList<SVal> L)
    [all...]
SValBuilder.h 11 // "symbolical evaluators" which construct an SVal from an expression.
53 virtual SVal evalCastFromNonLoc(NonLoc val, QualType castTy) = 0;
54 virtual SVal evalCastFromLoc(Loc val, QualType castTy) = 0;
59 virtual SVal dispatchCast(SVal val, QualType castTy) = 0;
85 SVal evalCast(SVal val, QualType castTy, QualType originalType);
87 virtual SVal evalMinus(NonLoc val) = 0;
89 virtual SVal evalComplement(NonLoc val) = 0;
93 virtual SVal evalBinOpNN(ProgramStateRef state, BinaryOperator::Opcode op
    [all...]
ProgramState.h 85 Environment Env; // Maps a Stmt to its current SVal.
193 /// \brief Check if the given SVal is constrained to zero or is a zero
195 ConditionTruthVal isNull(SVal V) const;
207 SVal V, bool Invalidate = true) const;
210 SVal V,
213 ProgramStateRef bindLoc(SVal location, SVal V) const;
215 ProgramStateRef bindDefault(SVal loc, SVal V) const;
246 invalidateRegions(ArrayRef<SVal> Regions, const Expr *E
    [all...]
Environment.h 60 typedef llvm::ImmutableMap<EnvironmentEntry, SVal> BindingsTy;
68 SVal lookupExpr(const EnvironmentEntry &E) const;
77 SVal getSVal(const EnvironmentEntry &E, SValBuilder &svalBuilder) const;
116 Environment bindExpr(Environment Env, const EnvironmentEntry &E, SVal V,
ExprEngine.h 266 ProgramStateRef processAssume(ProgramStateRef state, SVal cond,bool assumption);
441 SVal evalMinus(SVal X) {
445 SVal evalComplement(SVal X) {
451 SVal evalBinOp(ProgramStateRef state, BinaryOperator::Opcode op,
456 SVal evalBinOp(ProgramStateRef state, BinaryOperator::Opcode op,
457 NonLoc L, SVal R, QualType T) {
462 SVal evalBinOp(ProgramStateRef ST, BinaryOperator::Opcode Op,
463 SVal LHS, SVal RHS, QualType T)
    [all...]
SubEngine.h 106 SVal cond, bool assumption) = 0;
129 processPointerEscapedOnBind(ProgramStateRef State, SVal Loc, SVal Val) = 0;
  /external/clang/lib/StaticAnalyzer/Checkers/
ArrayBoundCheckerV2.cpp 39 void checkLocation(SVal l, bool isLoad, const Stmt*S,
47 SVal byteOffset;
53 RegionRawOffsetV2(const SubRegion* base, SVal offset)
61 SVal location);
68 static SVal computeExtentBegin(SValBuilder &svalBuilder,
84 void ArrayBoundCheckerV2::checkLocation(SVal location, bool isLoad,
111 SVal extentBegin = computeExtentBegin(svalBuilder, rawOffset.getRegion());
114 SVal lowerBound =
145 SVal upperbound
236 static inline SVal getValue(SVal val, SValBuilder &svalBuilder)
    [all...]
UndefinedAssignmentChecker.cpp 30 void checkBind(SVal location, SVal val, const Stmt *S,
35 void UndefinedAssignmentChecker::checkBind(SVal location, SVal val,
BoolAssignmentChecker.cpp 29 void checkBind(SVal loc, SVal val, const Stmt *S, CheckerContext &C) const;
54 void BoolAssignmentChecker::checkBind(SVal loc, SVal val, const Stmt *S,
85 SVal greaterThanOrEqualToZeroVal =
93 // The SValBuilder cannot construct a valid SVal for this condition.
121 SVal lessThanEqToOneVal =
129 // The SValBuilder cannot construct a valid SVal for this condition.
ObjCSelfInitChecker.cpp 55 static bool isSelfVar(SVal location, CheckerContext &C);
69 void checkLocation(SVal location, bool isLoad, const Stmt *S,
71 void checkBind(SVal loc, SVal val, const Stmt *S, CheckerContext &C) const;
112 static SelfFlagEnum getSelfFlags(SVal val, ProgramStateRef state) {
119 static SelfFlagEnum getSelfFlags(SVal val, CheckerContext &C) {
123 static void addSelfFlag(ProgramStateRef state, SVal val,
125 // We tag the symbol that the SVal wraps.
132 static bool hasSelfFlag(SVal val, SelfFlagEnum flag, CheckerContext &C) {
140 SVal exprVal = C.getState()->getSVal(E, C.getLocationContext())
    [all...]
CStringChecker.cpp 122 ProgramStateRef state, SVal V, QualType Ty);
126 SVal strLength);
127 static SVal getCStringLengthForRegion(CheckerContext &C,
132 SVal getCStringLength(CheckerContext &C,
135 SVal Buf,
141 SVal val) const;
145 const Expr *Ex, SVal V);
154 SVal l) const;
158 SVal l,
197 REGISTER_MAP_WITH_PROGRAMSTATE(CStringLength, const MemRegion *, SVal)
    [all...]
CheckerDocumentation.cpp 128 void checkLocation(SVal Loc, bool IsLoad, const Stmt *S,
138 void checkBind(SVal Loc, SVal Val, const Stmt *S, CheckerContext &) const {}
208 SVal Cond,
ArrayBoundChecker.cpp 30 void checkLocation(SVal l, bool isLoad, const Stmt* S,
35 void ArrayBoundChecker::checkLocation(SVal l, bool isLoad, const Stmt* LoadS,
PointerArithChecker.cpp 41 SVal LV = state->getSVal(B->getLHS(), LCtx);
42 SVal RV = state->getSVal(B->getRHS(), LCtx);
PointerSubChecker.cpp 44 SVal LV = state->getSVal(B->getLHS(), LCtx);
45 SVal RV = state->getSVal(B->getRHS(), LCtx);
PthreadLockChecker.cpp 38 void AcquireLock(CheckerContext &C, const CallExpr *CE, SVal lock,
41 void ReleaseLock(CheckerContext &C, const CallExpr *CE, SVal lock) const;
88 SVal lock, bool isTryLock,
97 SVal X = state->getSVal(CE, C.getLocationContext());
151 SVal lock) const {
  /external/clang/lib/StaticAnalyzer/Core/
SVals.cpp 10 // This file defines SVal, Loc, and NonLoc, classes that represent
24 // Symbol iteration within an SVal.
32 bool SVal::hasConjuredSymbol() const {
51 const FunctionDecl *SVal::getAsFunctionDecl() const {
62 /// \brief If this SVal is a location (subclasses Loc) and wraps a symbol,
69 SymbolRef SVal::getAsLocSymbol(bool IncludeBaseRegions) const {
84 /// Get the symbol in the SVal or its base region.
85 SymbolRef SVal::getLocSymbolInBase() const {
105 /// \brief If this SVal wraps a symbol return that SymbolRef.
111 SymbolRef SVal::getAsSymbol(bool IncludeBaseRegion) const
    [all...]
BasicValueFactory.cpp 24 llvm::ImmutableList<SVal> L) {
36 typedef std::pair<SVal, uintptr_t> SValData;
37 typedef std::pair<SVal, SVal> SValPair;
109 llvm::ImmutableList<SVal> Vals) {
236 const std::pair<SVal, uintptr_t>&
237 BasicValueFactory::getPersistentSValWithData(const SVal& V, uintptr_t Data) {
261 const std::pair<SVal, SVal>&
262 BasicValueFactory::getPersistentSValPair(const SVal& V1, const SVal& V2)
    [all...]
Store.cpp 62 StoreRef StoreManager::BindDefault(Store store, const MemRegion *R, SVal V) {
226 static bool regionMatchesCXXRecordType(SVal V, QualType Ty) {
246 SVal StoreManager::evalDerivedToBase(SVal Derived, const CastExpr *Cast) {
253 SVal Result = Derived;
262 SVal StoreManager::evalDerivedToBase(SVal Derived, const CXXBasePath &Path) {
264 SVal Result = Derived;
273 SVal StoreManager::evalDerivedToBase(SVal Derived, QualType BaseType
    [all...]
RegionStore.cpp 144 typedef llvm::ImmutableMap<BindingKey, SVal> ClusterBindings;
145 typedef llvm::ImmutableMapRef<BindingKey, SVal> ClusterBindingsRef;
146 typedef std::pair<BindingKey, SVal> BindingPair;
179 RegionBindingsRef addBinding(BindingKey K, SVal V) const;
182 BindingKey::Kind k, SVal V) const;
189 const SVal *lookup(BindingKey K) const;
190 const SVal *lookup(const MemRegion *R, BindingKey::Kind k) const;
205 Optional<SVal> getDirectBinding(const MemRegion *R) const;
207 /// getDefaultBinding - Returns an SVal* representing an optional default
209 Optional<SVal> getDefaultBinding(const MemRegion *R) const
    [all...]
ExprEngineC.cpp 40 SVal LeftV = state->getSVal(LHS, LCtx);
41 SVal RightV = state->getSVal(RHS, LCtx);
54 SVal ExprVal = B->isGLValue() ? LeftV : RightV;
86 SVal Result = evalBinOp(state, Op, LeftV, RightV, B->getType());
117 SVal location = LeftV;
125 SVal V = state->getSVal(LHS, LCtx);
142 SVal Result = svalBuilder.evalCast(evalBinOp(state, Op, V, RightV, CTy),
148 SVal LHSVal;
186 SVal V = svalBuilder.getBlockPointer(BE->getBlockDecl(), T,
203 SVal originalV = State->getSVal(loc::MemRegionVal(originalR))
    [all...]
ExprEngineObjC.cpp 27 SVal baseVal = state->getSVal(Ex->getBase(), LCtx);
28 SVal location = state->getLValue(Ex->getDecl(), baseVal);
64 // through an SVal or through the use of MemRegions. This value can
67 // we can test if the SVal is 0 or if the MemRegion is null (depending
76 SVal elementV;
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);
161 SVal recVal = UpdatedMsg->getReceiverSVal()
    [all...]

Completed in 142 milliseconds

1 2 3 4