Home
last modified time | relevance | path

Searched refs:ConcreteInt (Results 1 – 25 of 35) sorted by relevance

12

/src/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ !
H A DSValBuilder.h281 return nonloc::ConcreteInt(BasicVals.getValue(0, ArrayIndexTy)); in makeZeroArrayIndex()
285 return nonloc::ConcreteInt(BasicVals.getValue(idx, ArrayIndexTy)); in makeArrayIndex()
290 nonloc::ConcreteInt makeIntVal(const IntegerLiteral* integer) { in makeIntVal()
291 return nonloc::ConcreteInt( in makeIntVal()
296 nonloc::ConcreteInt makeBoolVal(const ObjCBoolLiteralExpr *boolean) { in makeBoolVal()
300 nonloc::ConcreteInt makeBoolVal(const CXXBoolLiteralExpr *boolean);
302 nonloc::ConcreteInt makeIntVal(const llvm::APSInt& integer) { in makeIntVal()
303 return nonloc::ConcreteInt(BasicVals.getValue(integer)); in makeIntVal()
306 loc::ConcreteInt makeIntLocVal(const llvm::APSInt &integer) { in makeIntLocVal()
307 return loc::ConcreteInt(BasicVals.getValue(integer)); in makeIntLocVal()
[all …]
H A DSVals.def55 LOC_SVAL(ConcreteInt, Loc)
58 SVAL_RANGE(Loc, ConcreteInt, MemRegionVal)
61 NONLOC_SVAL(ConcreteInt, NonLoc)
H A DSVals.h297 class ConcreteInt : public NonLoc {
299 explicit ConcreteInt(const llvm::APSInt &V) : NonLoc(ConcreteIntKind, &V) {} in ConcreteInt() function
463 class ConcreteInt : public Loc {
465 explicit ConcreteInt(const llvm::APSInt &V) : Loc(ConcreteIntKind, &V) {} in ConcreteInt() function
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ !
H A DSVals.cpp113 if (auto CI = getAs<nonloc::ConcreteInt>()) in getAsInteger()
115 if (auto CI = getAs<loc::ConcreteInt>()) in getAsInteger()
145 template <class ConcreteInt> QualType VisitConcreteInt(ConcreteInt CI) { in VisitConcreteInt()
247 return getAs<nonloc::ConcreteInt>() || getAs<loc::ConcreteInt>(); in isConstant()
251 if (std::optional<loc::ConcreteInt> LV = getAs<loc::ConcreteInt>()) in isConstant()
253 if (std::optional<nonloc::ConcreteInt> NV = getAs<nonloc::ConcreteInt>()) in isConstant()
300 const auto &Value = castAs<nonloc::ConcreteInt>().getValue(); in dumpToStream()
366 os << castAs<loc::ConcreteInt>().getValue().getZExtValue() << " (Loc)"; in dumpToStream()
H A DSimpleSValBuilder.cpp183 return nonloc::ConcreteInt(Result); in MakeSymIntVal()
239 nonloc::ConcreteInt(Bound), SVB.getConditionType()); in isInRelation()
317 return SVB.evalBinOpNN(State, Op, nonloc::ConcreteInt(LInt), in doRearrangeUnchecked()
318 nonloc::ConcreteInt(RInt), ResultTy) in doRearrangeUnchecked()
500 llvm::APSInt i = rhs.castAs<nonloc::ConcreteInt>().getValue(); in evalBinOpNN()
525 llvm::APSInt LHSValue = lhs.castAs<nonloc::ConcreteInt>().getValue(); in evalBinOpNN()
562 return nonloc::ConcreteInt(*Result); in evalBinOpNN()
696 rhs = nonloc::ConcreteInt(*newRHS); in evalBinOpNN()
858 auto L = lhs.castAs<loc::ConcreteInt>(); in evalBinOpLL()
873 if (std::optional<loc::ConcreteInt> rInt = rhs.getAs<loc::ConcreteInt>()) { in evalBinOpLL()
[all …]
H A DSValBuilder.cpp126 if (std::optional<nonloc::ConcreteInt> CI = in convertToArrayIndex()
127 val.getAs<nonloc::ConcreteInt>()) { in convertToArrayIndex()
136 nonloc::ConcreteInt SValBuilder::makeBoolVal(const CXXBoolLiteralExpr *boolean){ in makeBoolVal()
444 if (std::optional<nonloc::ConcreteInt> rInt = in makeSymExprValNN()
445 RHS.getAs<nonloc::ConcreteInt>()) in makeSymExprValNN()
449 if (std::optional<nonloc::ConcreteInt> lInt = in makeSymExprValNN()
450 LHS.getAs<nonloc::ConcreteInt>()) in makeSymExprValNN()
459 return makeIntVal(-X.castAs<nonloc::ConcreteInt>().getValue()); in evalMinus()
471 return makeIntVal(~X.castAs<nonloc::ConcreteInt>().getValue()); in evalComplement()
533 if (auto RV = rhs.getAs<loc::ConcreteInt>()) { in evalBinOp()
[all …]
H A DStore.cpp462 if (Base.isUnknownOrUndef() || isa<loc::ConcreteInt>(Base)) in getLValueElement()
501 if (!isa<nonloc::ConcreteInt>(BaseIdx)) in getLValueElement()
505 BaseIdx.castAs<nonloc::ConcreteInt>().getValue(); in getLValueElement()
510 if (!isa<nonloc::ConcreteInt>(Offset)) { in getLValueElement()
518 const llvm::APSInt& OffI = Offset.castAs<nonloc::ConcreteInt>().getValue(); in getLValueElement()
522 nonloc::ConcreteInt NewIdx(svalBuilder.getBasicValueFactory().getValue(BaseIdxI + in getLValueElement()
H A DSimpleConstraintManager.cpp78 bool b = Cond.castAs<nonloc::ConcreteInt>().getValue() != 0; in assumeAux()
123 const llvm::APSInt &IntVal = Value.castAs<nonloc::ConcreteInt>().getValue(); in assumeInclusiveRangeInternal()
H A DProgramState.cpp305 return loc::ConcreteInt(NewV); in getSVal()
307 return nonloc::ConcreteInt(NewV); in getSVal()
347 nonloc::ConcreteInt Min(BVF.getMinValue(indexTy)); in assumeInBoundDual()
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ !
H A DDebugIteratorModeling.cpp100 }, nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0)))); in analyzerIteratorPosition()
108 }, loc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0)))); in analyzerIteratorContainer()
116 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get((P->isValid())))); in analyzerIteratorValidity()
117 }, nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0)))); in analyzerIteratorValidity()
H A DIterator.cpp237 const auto IntDistOp = Distance.getAs<nonloc::ConcreteInt>(); in advancePosition()
242 nonloc::ConcreteInt IntDist = *IntDistOp; in advancePosition()
245 IntDist = nonloc::ConcreteInt(BVF.getValue(-IntDist.getValue())); in advancePosition()
277 nonloc::ConcreteInt(Max), SVB.getConditionType()); in assumeNoOverflow()
287 nonloc::ConcreteInt(Min), SVB.getConditionType()); in assumeNoOverflow()
H A DReturnPointerRangeChecker.cpp89 const auto ConcreteElementCount = ElementCount.getAs<nonloc::ConcreteInt>(); in checkPreStmt()
90 const auto ConcreteIdx = Idx.getAs<nonloc::ConcreteInt>(); in checkPreStmt()
H A DArrayBoundCheckerV2.cpp241 static std::pair<NonLoc, nonloc::ConcreteInt>
242 getSimplifiedOffsets(NonLoc offset, nonloc::ConcreteInt extent, in getSimplifiedOffsets()
254 return std::pair<NonLoc, nonloc::ConcreteInt>(offset, extent); in getSimplifiedOffsets()
270 return std::pair<NonLoc, nonloc::ConcreteInt>(offset, extent); in getSimplifiedOffsets()
293 if (auto ConcreteThreshold = Threshold.getAs<nonloc::ConcreteInt>()) { in compareValueToThreshold()
365 if (auto ConcreteVal = SV.getAs<nonloc::ConcreteInt>()) { in getConcreteValue()
H A DIteratorRangeChecker.cpp137 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1)))); in checkPreCall()
211 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1)))); in verifyIncrement()
217 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1)))); in verifyDecrement()
300 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0))), in isZero()
H A DBitwiseShiftChecker.cpp176 if (auto ConcreteRight = Right.getAs<nonloc::ConcreteInt>()) in checkOvershift()
248 const auto Left = Ctx.getSVal(LHS).getAs<nonloc::ConcreteInt>(); in checkLeftShiftOverflow()
274 if (const auto ConcreteRight = Right.getAs<nonloc::ConcreteInt>()) { in checkLeftShiftOverflow()
H A DMmapWriteExecChecker.cpp53 auto ProtLoc = ProtVal.getAs<nonloc::ConcreteInt>(); in checkPreCall()
H A DContainerModeling.cpp444 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))), in handlePushBack()
473 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))), in handlePopBack()
518 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))), in handlePushFront()
555 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))), in handlePopFront()
680 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))), in handleEraseAfter()
1036 const auto DiffInt = Diff.getAs<nonloc::ConcreteInt>(); in rebaseSymbol()
H A DCheckPlacementNew.cpp107 const auto SizeOfTargetCI = SizeOfTarget.getAs<nonloc::ConcreteInt>(); in checkPlaceCapacityIsSufficient()
110 const auto SizeOfPlaceCI = SizeOfPlace.getAs<nonloc::ConcreteInt>(); in checkPlaceCapacityIsSufficient()
H A DEnumCastOutOfRangeChecker.cpp92 C.getSVal(CE->getSubExpr()).getAs<nonloc::ConcreteInt>(); in reportWarning()
H A DDebugContainerModeling.cpp109 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0)))); in analyzerContainerDataField()
H A DIteratorModeling.cpp508 if (const auto TruthVal = RetVal.getAs<nonloc::ConcreteInt>()) { in processComparison()
547 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1)))); in handleIncrement()
573 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1)))); in handleDecrement()
H A DBasicObjCFoundationChecks.cpp455 std::optional<nonloc::ConcreteInt> V = in checkPreStmt()
456 dyn_cast<nonloc::ConcreteInt>(TheTypeVal); in checkPreStmt()
764 if (isa<loc::ConcreteInt>(msg.getArgSVal(I))) in checkPreObjCMessage()
/src/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Checkers/ !
H A DSValExplainer.h79 std::string VisitConcreteInt(loc::ConcreteInt V) { in VisitConcreteInt()
91 std::string VisitConcreteInt(nonloc::ConcreteInt V) { in VisitConcreteInt()
198 if (auto I = R->getIndex().getAs<nonloc::ConcreteInt>()) in VisitElementRegion()
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/ !
H A DMPIChecker.cpp168 ElementCount.castAs<nonloc::ConcreteInt>().getValue(); in allRegionsUsedByWait()
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/ !
H A DUninitializedPointee.cpp146 if (V.isUnknown() || isa<loc::ConcreteInt>(V)) { in isDereferencableUninit()

12