| /freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | SValBuilder.h | 287 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 D | SVals.def | 55 LOC_SVAL(ConcreteInt, Loc) 58 SVAL_RANGE(Loc, ConcreteInt, MemRegionVal) 61 NONLOC_SVAL(ConcreteInt, NonLoc)
|
| H A D | SVals.h | 305 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 D | SVals.cpp | 113 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 D | SimpleSValBuilder.cpp | 183 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 D | SValBuilder.cpp | 126 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 D | Store.cpp | 462 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 D | SimpleConstraintManager.cpp | 78 bool b = Cond.castAs<nonloc::ConcreteInt>().getValue() != 0; in assumeAux() 123 const llvm::APSInt &IntVal = Value.castAs<nonloc::ConcreteInt>().getValue(); in assumeInclusiveRangeInternal()
|
| H A D | ProgramState.cpp | 291 return loc::ConcreteInt(NewV); in getSVal() 293 return nonloc::ConcreteInt(NewV); in getSVal() 333 nonloc::ConcreteInt Min(BVF.getMinValue(indexTy)); in assumeInBoundDual()
|
| H A D | RegionStore.cpp | 865 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 D | DebugIteratorModeling.cpp | 100 }, 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 D | ArrayBoundCheckerV2.cpp | 142 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 D | Iterator.cpp | 237 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 D | ReturnPointerRangeChecker.cpp | 89 const auto ConcreteElementCount = ElementCount.getAs<nonloc::ConcreteInt>(); in checkPreStmt() 90 const auto ConcreteIdx = Idx.getAs<nonloc::ConcreteInt>(); in checkPreStmt()
|
| H A D | IteratorRangeChecker.cpp | 132 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 D | BitwiseShiftChecker.cpp | 176 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 D | MmapWriteExecChecker.cpp | 54 auto ProtLoc = ProtVal.getAs<nonloc::ConcreteInt>(); in checkPreCall()
|
| H A D | ContainerModeling.cpp | 439 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 D | CheckPlacementNew.cpp | 107 const auto SizeOfTargetCI = SizeOfTarget.getAs<nonloc::ConcreteInt>(); in checkPlaceCapacityIsSufficient() 110 const auto SizeOfPlaceCI = SizeOfPlace.getAs<nonloc::ConcreteInt>(); in checkPlaceCapacityIsSufficient()
|
| H A D | DebugContainerModeling.cpp | 109 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0)))); in analyzerContainerDataField()
|
| H A D | EnumCastOutOfRangeChecker.cpp | 92 C.getSVal(CE->getSubExpr()).getAs<nonloc::ConcreteInt>(); in reportWarning()
|
| H A D | IteratorModeling.cpp | 507 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 D | SValExplainer.h | 79 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 D | MPIChecker.cpp | 168 ElementCount.castAs<nonloc::ConcreteInt>().getValue(); in allRegionsUsedByWait()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/ |
| H A D | UninitializedPointee.cpp | 146 if (V.isUnknown() || isa<loc::ConcreteInt>(V)) { in isDereferencableUninit()
|