Home
last modified time | relevance | path

Searched refs:DefinedSVal (Results 1 – 25 of 27) sorted by relevance

12

/external/clang/lib/StaticAnalyzer/Checkers/
DBoolAssignmentChecker.cpp72 Optional<DefinedSVal> DV = val.getAs<DefinedSVal>(); in checkBind()
84 DefinedSVal zeroVal = svalBuilder.makeIntVal(0, valTy); in checkBind()
89 Optional<DefinedSVal> greaterThanEqualToZero = in checkBind()
90 greaterThanOrEqualToZeroVal.getAs<DefinedSVal>(); in checkBind()
120 DefinedSVal OneVal = svalBuilder.makeIntVal(1, valTy); in checkBind()
125 Optional<DefinedSVal> lessThanEqToOne = in checkBind()
126 lessThanEqToOneVal.getAs<DefinedSVal>(); in checkBind()
DObjCContainersChecker.cpp64 REGISTER_MAP_WITH_PROGRAMSTATE(ArraySizeMap, SymbolRef, DefinedSVal) in REGISTER_MAP_WITH_PROGRAMSTATE() argument
81 State->set<ArraySizeMap>(ArraySym, SizeV.castAs<DefinedSVal>())); in REGISTER_MAP_WITH_PROGRAMSTATE()
125 const DefinedSVal *Size = State->get<ArraySizeMap>(ArraySym); in checkPreStmt()
135 DefinedSVal Idx = IdxVal.castAs<DefinedSVal>(); in checkPreStmt()
DVLASizeChecker.cpp117 DefinedSVal sizeD = sizeV.castAs<DefinedSVal>(); in checkPreStmt()
141 if (Optional<DefinedSVal> LessThanZeroDVal = in checkPreStmt()
142 LessThanZeroVal.getAs<DefinedSVal>()) { in checkPreStmt()
DNonNullParamChecker.cpp97 Optional<DefinedSVal> DV = V.getAs<DefinedSVal>(); in checkPreCall()
120 DV = V.getAs<DefinedSVal>(); in checkPreCall()
DDivZeroChecker.cpp61 Optional<DefinedSVal> DV = Denom.getAs<DefinedSVal>(); in checkPreStmt()
DUnixAPIChecker.cpp145 DefinedSVal maskedFlags = maskedFlagsUC.castAs<DefinedSVal>(); in CheckOpen()
222 state->assume(argVal.castAs<DefinedSVal>()); in IsZeroByteAllocation()
DStreamChecker.cpp215 DefinedSVal RetVal = svalBuilder.conjureSymbolVal(nullptr, CE, LCtx, in OpenFileAux()
217 .castAs<DefinedSVal>(); in OpenFileAux()
343 Optional<DefinedSVal> DV = SV.getAs<DefinedSVal>(); in CheckNullStream()
DBasicObjCFoundationChecks.cpp575 Optional<DefinedSVal> DefArgVal = ArgVal.getAs<DefinedSVal>(); in checkPreStmt()
581 DefinedSVal zero = in checkPreStmt()
582 svalBuilder.makeZeroVal(Arg->getType()).castAs<DefinedSVal>(); in checkPreStmt()
892 Optional<DefinedSVal> KnownCollection = CollectionVal.getAs<DefinedSVal>(); in checkCollectionNonNil()
963 Optional<DefinedSVal> CountGreaterThanZero = in assumeCollectionNonEmpty()
964 CountGreaterThanZeroVal.getAs<DefinedSVal>(); in assumeCollectionNonEmpty()
DObjCAtSyncChecker.cpp63 std::tie(notNullState, nullState) = state->assume(V.castAs<DefinedSVal>()); in checkPreStmt()
DTestAfterDivZeroChecker.cpp139 Optional<DefinedSVal> DSV = S.getAs<DefinedSVal>(); in isZero()
DPthreadLockChecker.cpp138 DefinedSVal retVal = X.castAs<DefinedSVal>(); in AcquireLock()
DMallocChecker.cpp723 DefinedSVal MaskedFlags = MaskedFlagsUC.castAs<DefinedSVal>(); in performKernelMalloc()
873 Optional<DefinedSVal> DefArgVal = in ProcessZeroAllocation()
874 State->getSVal(Arg, C.getLocationContext()).getAs<DefinedSVal>(); in ProcessZeroAllocation()
882 DefinedSVal Zero = in ProcessZeroAllocation()
883 SvalBuilder.makeZeroVal(Arg->getType()).castAs<DefinedSVal>(); in ProcessZeroAllocation()
1090 DefinedSVal RetVal = svalBuilder.getConjuredHeapSymbolVal(CE, LCtx, Count) in MallocMemAux()
1091 .castAs<DefinedSVal>(); in MallocMemAux()
DMacOSKeychainAPIChecker.cpp431 if (State->assume(ArgSVal.castAs<DefinedSVal>(), false) && in checkPreStmt()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSVals.h235 class DefinedSVal : public DefinedOrUnknownSVal {
243 DefinedSVal() {} in DefinedSVal() function
244 explicit DefinedSVal(const void *d, bool isLoc, unsigned ValKind) in DefinedSVal() function
262 KnownSVal(const DefinedSVal &V) : SVal(V) {} in KnownSVal()
266 class NonLoc : public DefinedSVal {
270 : DefinedSVal(d, false, SubKind) {} in NonLoc()
282 class Loc : public DefinedSVal {
286 : DefinedSVal(const_cast<void*>(D), true, SubKind) {} in Loc()
DSValBuilder.h196 DefinedSVal getMetadataSymbolVal(
200 DefinedSVal getFunctionPointer(const FunctionDecl *func);
202 DefinedSVal getBlockPointer(const BlockDecl *block, CanQualType locTy,
256 DefinedSVal makeIntVal(uint64_t integer, QualType type) { in makeIntVal()
DConstraintManager.h68 DefinedSVal Cond,
75 ProgramStatePair assumeDual(ProgramStateRef State, DefinedSVal Cond) { in assumeDual()
DProgramState.h648 ->assume(this, Cond.castAs<DefinedSVal>(), Assumption); in assume()
657 ->assumeDual(this, Cond.castAs<DefinedSVal>()); in assume()
/external/clang/lib/StaticAnalyzer/Core/
DConstraintManager.cpp21 static DefinedSVal getLocFromSymbol(const ProgramStateRef &State, in getLocFromSymbol()
31 DefinedSVal V = Loc::isLocType(Ty) ? getLocFromSymbol(State, Sym) in checkNull()
DSimpleConstraintManager.cpp69 DefinedSVal Cond, in assume()
81 Cond = SVB.evalCast(*LV, SVB.getContext().BoolTy, T).castAs<DefinedSVal>(); in assume()
DSValBuilder.cpp182 DefinedSVal SValBuilder::getMetadataSymbolVal(const void *symbolTag, in getMetadataSymbolVal()
216 DefinedSVal SValBuilder::getFunctionPointer(const FunctionDecl *func) { in getFunctionPointer()
220 DefinedSVal SValBuilder::getBlockPointer(const BlockDecl *block, in getBlockPointer()
DSimpleConstraintManager.h36 ProgramStateRef assume(ProgramStateRef state, DefinedSVal Cond,
DBugReporterVisitors.cpp264 if (RValue.getAs<DefinedSVal>()) in visitNodeInitial()
782 SuppressInlineDefensiveChecksVisitor(DefinedSVal Value, const ExplodedNode *N) in SuppressInlineDefensiveChecksVisitor()
994 V.castAs<DefinedSVal>(), false)); in trackNullOrUndefValue()
997 if (Optional<DefinedSVal> DV = V.getAs<DefinedSVal>()) { in trackNullOrUndefValue()
DExprEngineC.cpp941 DefinedSVal V2 = V2_untested.castAs<DefinedSVal>(); in VisitIncrementDecrementOperator()
DProgramState.cpp347 return CM.assume(this, inBound.castAs<DefinedSVal>(), Assumption); in assumeInBound()
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/
DBugReporterVisitor.h131 DefinedSVal Constraint;
141 TrackConstraintBRVisitor(DefinedSVal constraint, bool assumption) in TrackConstraintBRVisitor()
306 DefinedSVal V;
319 SuppressInlineDefensiveChecksVisitor(DefinedSVal Val, const ExplodedNode *N);

12