Home
last modified time | relevance | path

Searched refs:DefinedSVal (Results 1 – 25 of 28) 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()
124 const DefinedSVal *Size = State->get<ArraySizeMap>(ArraySym); in checkPreStmt()
134 DefinedSVal Idx = IdxVal.castAs<DefinedSVal>(); in checkPreStmt()
DVLASizeChecker.cpp116 DefinedSVal sizeD = sizeV.castAs<DefinedSVal>(); in checkPreStmt()
140 if (Optional<DefinedSVal> LessThanZeroDVal = in checkPreStmt()
141 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()
DBasicObjCFoundationChecks.cpp574 Optional<DefinedSVal> DefArgVal = ArgVal.getAs<DefinedSVal>(); in checkPreStmt()
580 DefinedSVal zero = in checkPreStmt()
581 svalBuilder.makeZeroVal(Arg->getType()).castAs<DefinedSVal>(); in checkPreStmt()
890 Optional<DefinedSVal> KnownCollection = CollectionVal.getAs<DefinedSVal>(); in checkCollectionNonNil()
961 Optional<DefinedSVal> CountGreaterThanZero = in assumeCollectionNonEmpty()
962 CountGreaterThanZeroVal.getAs<DefinedSVal>(); in assumeCollectionNonEmpty()
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()
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.cpp733 DefinedSVal MaskedFlags = MaskedFlagsUC.castAs<DefinedSVal>(); in performKernelMalloc()
884 Optional<DefinedSVal> DefArgVal = in ProcessZeroAllocation()
885 State->getSVal(Arg, C.getLocationContext()).getAs<DefinedSVal>(); in ProcessZeroAllocation()
893 DefinedSVal Zero = in ProcessZeroAllocation()
894 SvalBuilder.makeZeroVal(Arg->getType()).castAs<DefinedSVal>(); in ProcessZeroAllocation()
1098 DefinedSVal RetVal = svalBuilder.getConjuredHeapSymbolVal(CE, LCtx, Count) in MallocMemAux()
1099 .castAs<DefinedSVal>(); in MallocMemAux()
DCStringChecker.cpp222 Optional<DefinedSVal> val = V.getAs<DefinedSVal>(); in REGISTER_MAP_WITH_PROGRAMSTATE()
1884 DefinedSVal zeroVal = svalBuilder.makeIntVal(0, CE->getType()); in evalStrcmpCommon()
1891 DefinedSVal compareWithZeroVal = compareWithZero.castAs<DefinedSVal>(); in evalStrcmpCommon()
/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()
DSVals.def58 ABSTRACT_SVAL(DefinedSVal, DefinedOrUnknownSVal)
59 ABSTRACT_SVAL_WITH_KIND(Loc, DefinedSVal)
63 ABSTRACT_SVAL_WITH_KIND(NonLoc, DefinedSVal)
DSValBuilder.h201 DefinedSVal getMetadataSymbolVal(
205 DefinedSVal getFunctionPointer(const FunctionDecl *func);
207 DefinedSVal getBlockPointer(const BlockDecl *block, CanQualType locTy,
261 DefinedSVal makeIntVal(uint64_t integer, QualType type) { in makeIntVal()
DConstraintManager.h68 DefinedSVal Cond,
75 ProgramStatePair assumeDual(ProgramStateRef State, DefinedSVal Cond) { in assumeDual()
DProgramState.h649 ->assume(this, Cond.castAs<DefinedSVal>(), Assumption); in assume()
658 ->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.cpp265 if (RValue.getAs<DefinedSVal>()) in visitNodeInitial()
786 SuppressInlineDefensiveChecksVisitor(DefinedSVal Value, const ExplodedNode *N) in SuppressInlineDefensiveChecksVisitor()
1052 V.castAs<DefinedSVal>(), false)); in trackNullOrUndefValue()
1055 if (Optional<DefinedSVal> DV = V.getAs<DefinedSVal>()) { in trackNullOrUndefValue()
DExprEngineC.cpp952 DefinedSVal V2 = V2_untested.castAs<DefinedSVal>(); in VisitIncrementDecrementOperator()
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/
DBugReporterVisitor.h132 DefinedSVal Constraint;
142 TrackConstraintBRVisitor(DefinedSVal constraint, bool assumption) in TrackConstraintBRVisitor()
307 DefinedSVal V;
320 SuppressInlineDefensiveChecksVisitor(DefinedSVal Val, const ExplodedNode *N);

12