Home
last modified time | relevance | path

Searched refs:BVF (Results 1 – 15 of 15) sorted by relevance

/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDebugIteratorModeling.cpp97 auto &BVF = C.getSValBuilder().getBasicValueFactory(); in analyzerIteratorPosition() local
100 }, nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0)))); in analyzerIteratorPosition()
105 auto &BVF = C.getSValBuilder().getBasicValueFactory(); in analyzerIteratorContainer() local
108 }, loc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0)))); in analyzerIteratorContainer()
113 auto &BVF = C.getSValBuilder().getBasicValueFactory(); in analyzerIteratorValidity() local
114 analyzerIteratorDataField(CE, C, [&BVF](const IteratorPosition *P) { in analyzerIteratorValidity()
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 DIteratorRangeChecker.cpp129 auto &BVF = C.getSValBuilder().getBasicValueFactory(); in checkPreCall() local
132 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1)))); in checkPreCall()
204 auto &BVF = C.getSValBuilder().getBasicValueFactory(); in verifyIncrement() local
206 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1)))); in verifyIncrement()
210 auto &BVF = C.getSValBuilder().getBasicValueFactory(); in verifyDecrement() local
212 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1)))); in verifyDecrement()
293 auto &BVF = State->getBasicVals(); in isZero() local
295 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0))), in isZero()
H A DBoolAssignmentChecker.cpp84 BasicValueFactory &BVF = svalBuilder.getBasicValueFactory(); in checkBind() local
87 llvm::APSInt Zero = BVF.getValue(0, valTy); in checkBind()
88 llvm::APSInt One = BVF.getValue(1, valTy); in checkBind()
H A DStdLibraryFunctionsChecker.cpp344 applyOnOutOfRange(BVF, ArgT, F); in applyOnRange()
347 applyOnWithinRange(BVF, ArgT, F); in applyOnRange()
941 else if (RMin == BVF.getMinValue(ArgT)) { in appendInsideRangeDesc()
1063 BasicValueFactory &BVF = getBVF(State); in describe() local
1074 BVF.getValue(R.second, T), T, BVF, Out); in describe()
1081 BVF.getValue(R.second, T), T, BVF, Out); in describe()
1121 applyOnRange(Kind, BVF, T, ApplyF); in describeArgumentValue()
1565 const ASTContext &ACtx = BVF.getContext(); in initFunctionSummaries()
1638 BasicValueFactory &BVF; in initFunctionSummaries() member in StdLibraryFunctionsChecker::initFunctionSummaries::GetMaxValue
1641 GetMaxValue(BasicValueFactory &BVF) : BVF(BVF) {} in initFunctionSummaries() argument
[all …]
H A DDebugContainerModeling.cpp107 auto &BVF = C.getSValBuilder().getBasicValueFactory(); in analyzerContainerDataField() local
109 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0)))); in analyzerContainerDataField()
H A DBuiltinFunctionChecker.cpp112 BasicValueFactory &BVF = SVB.getBasicValueFactory(); in evalCall() local
113 BVF.getAPSIntType(CE->getType()).apply(Result); in evalCall()
H A DContainerModeling.cpp434 auto &BVF = SymMgr.getBasicVals(); in handlePushBack() local
439 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))), in handlePushBack()
463 auto &BVF = SymMgr.getBasicVals(); in handlePopBack() local
468 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))), in handlePopBack()
508 auto &BVF = SymMgr.getBasicVals(); in handlePushFront() local
513 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))), in handlePushFront()
545 auto &BVF = SymMgr.getBasicVals(); in handlePopFront() local
550 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))), in handlePopFront()
670 auto &BVF = SymMgr.getBasicVals(); in handleEraseAfter() local
675 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))), in handleEraseAfter()
H A DIterator.cpp231 auto &BVF = State->getStateManager().getBasicVals(); in advancePosition() local
245 IntDist = nonloc::ConcreteInt(BVF.getValue(-IntDist.getValue())); in advancePosition()
H A DIteratorModeling.cpp538 auto &BVF = C.getSymbolManager().getBasicVals(); in handleIncrement() local
546 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1)))); in handleIncrement()
564 auto &BVF = C.getSymbolManager().getBasicVals(); in handleDecrement() local
572 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1)))); in handleDecrement()
H A DCStringChecker.cpp769 BasicValueFactory &BVF = svalBuilder.getBasicValueFactory(); in checkAdditionOverflow() local
772 const llvm::APSInt &maxValInt = BVF.getMaxValue(sizeTy); in checkAdditionOverflow()
875 BasicValueFactory &BVF = svalBuilder.getBasicValueFactory(); in getCStringLengthForRegion() local
876 const llvm::APSInt &maxValInt = BVF.getMaxValue(sizeTy); in getCStringLengthForRegion()
878 const llvm::APSInt *maxLengthInt = BVF.evalAPSInt(BO_Div, maxValInt, in getCStringLengthForRegion()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DRangedConstraintManager.cpp108 BasicValueFactory &BVF = getBasicVals(); in assumeSymInclusiveRange() local
109 APSIntType WraparoundType = BVF.getAPSIntType(Sym->getType()); in assumeSymInclusiveRange()
137 BasicValueFactory &BVF = getBasicVals(); in assumeSymUnsupported() local
145 const llvm::APSInt &Zero = BVF.getValue(0, T); in assumeSymUnsupported()
171 BasicValueFactory &BVF = getBasicVals(); in assumeSymRel() local
172 APSIntType WraparoundType = BVF.getAPSIntType(Sym->getType()); in assumeSymRel()
H A DSValBuilder.cpp964 BasicValueFactory &BVF = VB.getBasicValueFactory(); in VisitSymbolVal() local
965 return VB.makeNonLoc(SE, BO_NE, BVF.getValue(0, SE->getType()), CastTy); in VisitSymbolVal()
1066 BasicValueFactory &BVF = VB.getBasicValueFactory(); in simplifySymbolCast() local
1067 APSIntType CTy = BVF.getAPSIntType(CastTy); in simplifySymbolCast()
1068 APSIntType TTy = BVF.getAPSIntType(T); in simplifySymbolCast()
1080 APSIntType RTy = BVF.getAPSIntType(RT); in simplifySymbolCast()
H A DProgramState.cpp330 BasicValueFactory &BVF = svalBuilder.getBasicValueFactory(); in assumeInBoundDual() local
333 nonloc::ConcreteInt Min(BVF.getMinValue(indexTy)); in assumeInBoundDual()
H A DCallEvent.cpp417 BasicValueFactory &BVF = SVB.getBasicValueFactory(); in processArgument() local
419 llvm::ImmutableList<SVal> CompoundSVals = BVF.getEmptySValList(); in processArgument()
420 CompoundSVals = BVF.prependSVal(Value, CompoundSVals); in processArgument()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSMTConstraintManager.h113 BasicValueFactory &BVF = getBasicVals(); in REGISTER_TRAIT_WITH_PROGRAMSTATE() local
114 ASTContext &Ctx = BVF.getContext(); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
154 return &BVF.getValue(Value); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
167 return &BVF.Convert(SC->getType(), *Value); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
195 return BVF.evalAPSInt(BSE->getOpcode(), ConvertedLHS, ConvertedRHS); in REGISTER_TRAIT_WITH_PROGRAMSTATE()