Home
last modified time | relevance | path

Searched refs:DefinedSVal (Results 1 – 25 of 26) 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.cpp59 REGISTER_MAP_WITH_PROGRAMSTATE(ArraySizeMap, SymbolRef, DefinedSVal) in REGISTER_MAP_WITH_PROGRAMSTATE() argument
76 State->set<ArraySizeMap>(ArraySym, SizeV.castAs<DefinedSVal>())); in REGISTER_MAP_WITH_PROGRAMSTATE()
119 const DefinedSVal *Size = State->get<ArraySizeMap>(ArraySym); in checkPreStmt()
129 DefinedSVal Idx = IdxVal.castAs<DefinedSVal>(); in checkPreStmt()
DNonNullParamChecker.cpp76 Optional<DefinedSVal> DV = V.getAs<DefinedSVal>(); in checkPreCall()
99 DV = V.getAs<DefinedSVal>(); in checkPreCall()
DDivZeroChecker.cpp61 Optional<DefinedSVal> DV = Denom.getAs<DefinedSVal>(); in checkPreStmt()
DVLASizeChecker.cpp113 DefinedSVal sizeD = sizeV.castAs<DefinedSVal>(); in checkPreStmt()
DPthreadLockChecker.cpp101 DefinedSVal retVal = X.castAs<DefinedSVal>(); in AcquireLock()
DUnixAPIChecker.cpp118 DefinedSVal maskedFlags = maskedFlagsUC.castAs<DefinedSVal>(); in CheckOpen()
203 state->assume(argVal.castAs<DefinedSVal>()); in IsZeroByteAllocation()
DStreamChecker.cpp213 DefinedSVal RetVal = svalBuilder.conjureSymbolVal(0, CE, LCtx, C.blockCount()) in OpenFileAux()
214 .castAs<DefinedSVal>(); in OpenFileAux()
340 Optional<DefinedSVal> DV = SV.getAs<DefinedSVal>(); in CheckNullStream()
DObjCAtSyncChecker.cpp63 llvm::tie(notNullState, nullState) = state->assume(V.castAs<DefinedSVal>()); in checkPreStmt()
DBasicObjCFoundationChecks.cpp421 Optional<DefinedSVal> DefArgVal = ArgVal.getAs<DefinedSVal>(); in checkPreStmt()
427 DefinedSVal zero = in checkPreStmt()
428 svalBuilder.makeZeroVal(Arg->getType()).castAs<DefinedSVal>(); in checkPreStmt()
DMacOSKeychainAPIChecker.cpp424 if (State->assume(ArgSVal.castAs<DefinedSVal>(), false) && in checkPreStmt()
DMallocChecker.cpp579 DefinedSVal RetVal = svalBuilder.getConjuredHeapSymbolVal(CE, LCtx, Count) in MallocMemAux()
580 .castAs<DefinedSVal>(); in MallocMemAux()
DCStringChecker.cpp204 Optional<DefinedSVal> val = V.getAs<DefinedSVal>(); in REGISTER_MAP_WITH_PROGRAMSTATE()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSVals.h227 class DefinedSVal : public DefinedOrUnknownSVal {
235 DefinedSVal() {} in DefinedSVal() function
236 explicit DefinedSVal(const void *d, bool isLoc, unsigned ValKind) in DefinedSVal() function
254 KnownSVal(const DefinedSVal &V) : SVal(V) {} in KnownSVal()
258 class NonLoc : public DefinedSVal {
262 : DefinedSVal(d, false, SubKind) {} in NonLoc()
274 class Loc : public DefinedSVal {
278 : DefinedSVal(const_cast<void*>(D), true, SubKind) {} in Loc()
DConstraintManager.h68 DefinedSVal Cond,
75 ProgramStatePair assumeDual(ProgramStateRef State, DefinedSVal Cond) { in assumeDual()
DSValBuilder.h195 DefinedSVal getMetadataSymbolVal(
199 DefinedSVal getFunctionPointer(const FunctionDecl *func);
201 DefinedSVal getBlockPointer(const BlockDecl *block, CanQualType locTy,
248 DefinedSVal makeIntVal(uint64_t integer, QualType type) { in makeIntVal()
DProgramState.h636 ->assume(this, Cond.castAs<DefinedSVal>(), Assumption); in assume()
645 ->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()
DSValBuilder.cpp161 DefinedSVal SValBuilder::getMetadataSymbolVal(const void *symbolTag, in getMetadataSymbolVal()
192 DefinedSVal SValBuilder::getFunctionPointer(const FunctionDecl *func) { in getFunctionPointer()
196 DefinedSVal SValBuilder::getBlockPointer(const BlockDecl *block, in getBlockPointer()
DSimpleConstraintManager.h36 ProgramStateRef assume(ProgramStateRef state, DefinedSVal Cond,
DBugReporterVisitors.cpp259 if (RValue.getAs<DefinedSVal>()) in visitNodeInitial()
273 if (State->assume(V.castAs<DefinedSVal>(), true)) { in visitNodeInitial()
702 SuppressInlineDefensiveChecksVisitor(DefinedSVal Value, const ExplodedNode *N) in SuppressInlineDefensiveChecksVisitor()
906 new TrackConstraintBRVisitor(V.castAs<DefinedSVal>(), false); in trackNullOrUndefValue()
912 new SuppressInlineDefensiveChecksVisitor(V.castAs<DefinedSVal>(), in trackNullOrUndefValue()
DSimpleConstraintManager.cpp59 DefinedSVal Cond, in assume()
DExprEngineC.cpp879 DefinedSVal V2 = V2_untested.castAs<DefinedSVal>(); in VisitIncrementDecrementOperator()
DProgramState.cpp324 return CM.assume(this, inBound.castAs<DefinedSVal>(), Assumption); in assumeInBound()
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/
DBugReporterVisitor.h131 DefinedSVal Constraint;
136 TrackConstraintBRVisitor(DefinedSVal constraint, bool assumption) in TrackConstraintBRVisitor()
288 DefinedSVal V;
301 SuppressInlineDefensiveChecksVisitor(DefinedSVal Val, const ExplodedNode *N);

12