Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSValBuilder.h287 return nonloc::ConcreteInt( in makeIntVal()
298 nonloc::ConcreteInt makeIntVal(const llvm::APSInt& integer) { in makeIntVal()
299 return nonloc::ConcreteInt(BasicVals.getValue(integer)); in makeIntVal()
302 loc::ConcreteInt makeIntLocVal(const llvm::APSInt &integer) { in makeIntLocVal()
303 return loc::ConcreteInt(BasicVals.getValue(integer)); in makeIntLocVal()
346 nonloc::ConcreteInt makeTruthVal(bool b, QualType type) { in makeTruthVal()
350 nonloc::ConcreteInt makeTruthVal(bool b) { in makeTruthVal()
351 return nonloc::ConcreteInt(BasicVals.getTruthValue(b)); in makeTruthVal()
357 loc::ConcreteInt makeNullWithType(QualType type) { in makeNullWithType()
385 loc::ConcreteInt makeLoc(const llvm::APSInt &integer) { in makeLoc()
[all …]
H A DSVals.def55 LOC_SVAL(ConcreteInt, Loc)
58 SVAL_RANGE(Loc, ConcreteInt, MemRegionVal)
61 NONLOC_SVAL(ConcreteInt, NonLoc)
H A DSVals.h305 class ConcreteInt : public NonLoc {
307 explicit ConcreteInt(const llvm::APSInt &V) : NonLoc(ConcreteIntKind, &V) {} in ConcreteInt() function
471 class ConcreteInt : public Loc {
473 explicit ConcreteInt(const llvm::APSInt &V) : Loc(ConcreteIntKind, &V) {} in ConcreteInt() function
/freebsd-14.2/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()
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()
907 if (std::optional<loc::ConcreteInt> rInt = rhs.getAs<loc::ConcreteInt>()) { in evalBinOpLL()
1123 rhs.getAs<nonloc::ConcreteInt>()) { in evalBinOpLN()
1124 if (std::optional<loc::ConcreteInt> lhsInt = in evalBinOpLN()
1125 lhs.getAs<loc::ConcreteInt>()) { in evalBinOpLN()
1209 if (std::optional<loc::ConcreteInt> X = V.getAs<loc::ConcreteInt>()) in getConcreteValue()
[all …]
H A DSValBuilder.cpp126 if (std::optional<nonloc::ConcreteInt> CI = in convertToArrayIndex()
127 val.getAs<nonloc::ConcreteInt>()) { in convertToArrayIndex()
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()
669 SVal VisitConcreteInt(loc::ConcreteInt V) { in VisitConcreteInt()
[all …]
H A DStore.cpp462 if (Base.isUnknownOrUndef() || isa<loc::ConcreteInt>(Base)) in getLValueElement()
491 if (!isa<nonloc::ConcreteInt>(BaseIdx)) in getLValueElement()
495 BaseIdx.castAs<nonloc::ConcreteInt>().getValue(); in getLValueElement()
500 if (!isa<nonloc::ConcreteInt>(Offset)) { in getLValueElement()
508 const llvm::APSInt& OffI = Offset.castAs<nonloc::ConcreteInt>().getValue(); in getLValueElement()
512 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.cpp291 return loc::ConcreteInt(NewV); in getSVal()
293 return nonloc::ConcreteInt(NewV); in getSVal()
333 nonloc::ConcreteInt Min(BVF.getMinValue(indexTy)); in assumeInBoundDual()
H A DRegionStore.cpp865 if (std::optional<nonloc::ConcreteInt> ExtentCI = in collectSubRegionBindings()
866 Extent.getAs<nonloc::ConcreteInt>()) { in collectSubRegionBindings()
1367 if (isa<loc::ConcreteInt>(Array)) in ArrayToPointer()
1393 if (L.getAs<loc::ConcreteInt>()) { in getBinding()
1695 if (auto CI = V.getAs<nonloc::ConcreteInt>()) { in convertOffsetsFromSvalToUnsigneds()
1924 if (const auto CI = R->getIndex().getAs<nonloc::ConcreteInt>()) { in getBindingForElement()
2361 if (L.getAs<loc::ConcreteInt>()) in bind()
/freebsd-14.2/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 DArrayBoundCheckerV2.cpp142 static std::pair<NonLoc, nonloc::ConcreteInt>
143 getSimplifiedOffsets(NonLoc offset, nonloc::ConcreteInt extent, in getSimplifiedOffsets()
155 return std::pair<NonLoc, nonloc::ConcreteInt>(offset, extent); in getSimplifiedOffsets()
171 return std::pair<NonLoc, nonloc::ConcreteInt>(offset, extent); in getSimplifiedOffsets()
184 if (auto ConcreteThreshold = Threshold.getAs<nonloc::ConcreteInt>()) { in compareValueToThreshold()
187 if (auto ConcreteThreshold = Threshold.getAs<nonloc::ConcreteInt>()) { in compareValueToThreshold()
236 if (auto ConcreteVal = SV.getAs<nonloc::ConcreteInt>()) { in getConcreteValue()
256 if (auto ConcreteIdx = Offset.getAs<nonloc::ConcreteInt>()) in getPrecedesMsgs()
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 DIteratorRangeChecker.cpp132 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1)))); in checkPreCall()
206 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1)))); in verifyIncrement()
212 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1)))); in verifyDecrement()
295 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.cpp54 auto ProtLoc = ProtVal.getAs<nonloc::ConcreteInt>(); in checkPreCall()
H A DContainerModeling.cpp439 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))), in handlePushBack()
468 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))), in handlePopBack()
513 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))), in handlePushFront()
550 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))), in handlePopFront()
675 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))), in handleEraseAfter()
1027 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 DDebugContainerModeling.cpp109 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0)))); in analyzerContainerDataField()
H A DEnumCastOutOfRangeChecker.cpp92 C.getSVal(CE->getSubExpr()).getAs<nonloc::ConcreteInt>(); in reportWarning()
H A DIteratorModeling.cpp507 if (const auto TruthVal = RetVal.getAs<nonloc::ConcreteInt>()) { in processComparison()
546 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1)))); in handleIncrement()
572 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1)))); in handleDecrement()
/freebsd-14.2/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()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
H A DMPIChecker.cpp168 ElementCount.castAs<nonloc::ConcreteInt>().getValue(); in allRegionsUsedByWait()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedPointee.cpp146 if (V.isUnknown() || isa<loc::ConcreteInt>(V)) { in isDereferencableUninit()

12