/external/clang/lib/StaticAnalyzer/Checkers/ |
D | BoolAssignmentChecker.cpp | 72 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()
|
D | ObjCContainersChecker.cpp | 64 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()
|
D | VLASizeChecker.cpp | 117 DefinedSVal sizeD = sizeV.castAs<DefinedSVal>(); in checkPreStmt() 141 if (Optional<DefinedSVal> LessThanZeroDVal = in checkPreStmt() 142 LessThanZeroVal.getAs<DefinedSVal>()) { in checkPreStmt()
|
D | NonNullParamChecker.cpp | 97 Optional<DefinedSVal> DV = V.getAs<DefinedSVal>(); in checkPreCall() 120 DV = V.getAs<DefinedSVal>(); in checkPreCall()
|
D | DivZeroChecker.cpp | 61 Optional<DefinedSVal> DV = Denom.getAs<DefinedSVal>(); in checkPreStmt()
|
D | UnixAPIChecker.cpp | 145 DefinedSVal maskedFlags = maskedFlagsUC.castAs<DefinedSVal>(); in CheckOpen() 222 state->assume(argVal.castAs<DefinedSVal>()); in IsZeroByteAllocation()
|
D | StreamChecker.cpp | 215 DefinedSVal RetVal = svalBuilder.conjureSymbolVal(nullptr, CE, LCtx, in OpenFileAux() 217 .castAs<DefinedSVal>(); in OpenFileAux() 343 Optional<DefinedSVal> DV = SV.getAs<DefinedSVal>(); in CheckNullStream()
|
D | BasicObjCFoundationChecks.cpp | 575 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()
|
D | ObjCAtSyncChecker.cpp | 63 std::tie(notNullState, nullState) = state->assume(V.castAs<DefinedSVal>()); in checkPreStmt()
|
D | TestAfterDivZeroChecker.cpp | 139 Optional<DefinedSVal> DSV = S.getAs<DefinedSVal>(); in isZero()
|
D | PthreadLockChecker.cpp | 138 DefinedSVal retVal = X.castAs<DefinedSVal>(); in AcquireLock()
|
D | MallocChecker.cpp | 723 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()
|
D | MacOSKeychainAPIChecker.cpp | 431 if (State->assume(ArgSVal.castAs<DefinedSVal>(), false) && in checkPreStmt()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | SVals.h | 235 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()
|
D | SValBuilder.h | 196 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()
|
D | ConstraintManager.h | 68 DefinedSVal Cond, 75 ProgramStatePair assumeDual(ProgramStateRef State, DefinedSVal Cond) { in assumeDual()
|
D | ProgramState.h | 648 ->assume(this, Cond.castAs<DefinedSVal>(), Assumption); in assume() 657 ->assumeDual(this, Cond.castAs<DefinedSVal>()); in assume()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ConstraintManager.cpp | 21 static DefinedSVal getLocFromSymbol(const ProgramStateRef &State, in getLocFromSymbol() 31 DefinedSVal V = Loc::isLocType(Ty) ? getLocFromSymbol(State, Sym) in checkNull()
|
D | SimpleConstraintManager.cpp | 69 DefinedSVal Cond, in assume() 81 Cond = SVB.evalCast(*LV, SVB.getContext().BoolTy, T).castAs<DefinedSVal>(); in assume()
|
D | SValBuilder.cpp | 182 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()
|
D | SimpleConstraintManager.h | 36 ProgramStateRef assume(ProgramStateRef state, DefinedSVal Cond,
|
D | BugReporterVisitors.cpp | 264 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()
|
D | ExprEngineC.cpp | 941 DefinedSVal V2 = V2_untested.castAs<DefinedSVal>(); in VisitIncrementDecrementOperator()
|
D | ProgramState.cpp | 347 return CM.assume(this, inBound.castAs<DefinedSVal>(), Assumption); in assumeInBound()
|
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
D | BugReporterVisitor.h | 131 DefinedSVal Constraint; 141 TrackConstraintBRVisitor(DefinedSVal constraint, bool assumption) in TrackConstraintBRVisitor() 306 DefinedSVal V; 319 SuppressInlineDefensiveChecksVisitor(DefinedSVal Val, const ExplodedNode *N);
|