Home
last modified time | relevance | path

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

/external/clang/lib/StaticAnalyzer/Core/
DSVals.cpp175 return getAs<nonloc::ConcreteInt>() || getAs<loc::ConcreteInt>(); in isConstant()
179 if (Optional<loc::ConcreteInt> LV = getAs<loc::ConcreteInt>()) in isConstant()
181 if (Optional<nonloc::ConcreteInt> NV = getAs<nonloc::ConcreteInt>()) in isConstant()
195 SVal nonloc::ConcreteInt::evalBinOp(SValBuilder &svalBuilder, in evalBinOp()
197 const nonloc::ConcreteInt& R) const { in evalBinOp()
202 return nonloc::ConcreteInt(*X); in evalBinOp()
207 nonloc::ConcreteInt
208 nonloc::ConcreteInt::evalComplement(SValBuilder &svalBuilder) const { in evalComplement()
212 nonloc::ConcreteInt
213 nonloc::ConcreteInt::evalMinus(SValBuilder &svalBuilder) const { in evalMinus()
[all …]
DSimpleSValBuilder.cpp101 if (!val.getAs<nonloc::ConcreteInt>()) in evalCastFromNonLoc()
106 bool b = val.castAs<nonloc::ConcreteInt>().getValue().getBoolValue(); in evalCastFromNonLoc()
115 llvm::APSInt i = val.castAs<nonloc::ConcreteInt>().getValue(); in evalCastFromNonLoc()
169 if (!val.getAs<loc::ConcreteInt>()) in evalCastFromLoc()
172 llvm::APSInt i = val.castAs<loc::ConcreteInt>().getValue(); in evalCastFromLoc()
190 return val.castAs<nonloc::ConcreteInt>().evalMinus(*this); in evalMinus()
199 return X.castAs<nonloc::ConcreteInt>().evalComplement(*this); in evalComplement()
265 return nonloc::ConcreteInt(Result); in MakeSymIntVal()
347 llvm::APSInt i = rhs.castAs<nonloc::ConcreteInt>().getValue(); in evalBinOpNN()
364 llvm::APSInt LHSValue = lhs.castAs<nonloc::ConcreteInt>().getValue(); in evalBinOpNN()
[all …]
DStore.cpp434 if (Base.isUnknownOrUndef() || Base.getAs<loc::ConcreteInt>()) in getLValueElement()
461 if (!BaseIdx.getAs<nonloc::ConcreteInt>()) in getLValueElement()
465 BaseIdx.castAs<nonloc::ConcreteInt>().getValue(); in getLValueElement()
470 if (!Offset.getAs<nonloc::ConcreteInt>()) { in getLValueElement()
479 const llvm::APSInt& OffI = Offset.castAs<nonloc::ConcreteInt>().getValue(); in getLValueElement()
483 nonloc::ConcreteInt NewIdx(svalBuilder.getBasicValueFactory().getValue(BaseIdxI + in getLValueElement()
DSValBuilder.cpp81 if (Optional<nonloc::ConcreteInt> CI = val.getAs<nonloc::ConcreteInt>()) { in convertToArrayIndex()
90 nonloc::ConcreteInt SValBuilder::makeBoolVal(const CXXBoolLiteralExpr *boolean){ in makeBoolVal()
350 if (Optional<nonloc::ConcreteInt> rInt = RHS.getAs<nonloc::ConcreteInt>()) in makeSymExprValNN()
354 if (Optional<nonloc::ConcreteInt> lInt = LHS.getAs<nonloc::ConcreteInt>()) in makeSymExprValNN()
DBugReporterVisitors.cpp532 V.getAs<loc::ConcreteInt>() || V.getAs<nonloc::ConcreteInt>()) { in VisitNode()
581 if (V.getAs<loc::ConcreteInt>()) { in VisitNode()
594 } else if (Optional<nonloc::ConcreteInt> CVal = in VisitNode()
595 V.getAs<nonloc::ConcreteInt>()) { in VisitNode()
623 if (V.getAs<loc::ConcreteInt>()) { in VisitNode()
630 } else if (Optional<nonloc::ConcreteInt> CI = in VisitNode()
631 V.getAs<nonloc::ConcreteInt>()) { in VisitNode()
648 if (V.getAs<loc::ConcreteInt>()) { in VisitNode()
671 } else if (Optional<nonloc::ConcreteInt> CV = in VisitNode()
672 V.getAs<nonloc::ConcreteInt>()) { in VisitNode()
[all …]
DSimpleConstraintManager.cpp182 bool b = Cond.castAs<nonloc::ConcreteInt>().getValue() != 0; in assumeAux()
221 const llvm::APSInt &IntVal = Value.castAs<nonloc::ConcreteInt>().getValue(); in assumeWithinInclusiveRange()
DProgramState.cpp280 return loc::ConcreteInt(NewV); in getSVal()
282 return nonloc::ConcreteInt(NewV); in getSVal()
323 nonloc::ConcreteInt Min(BVF.getMinValue(indexTy)); in assumeInBound()
DMemRegion.cpp1147 if (Optional<nonloc::ConcreteInt> CI = index.getAs<nonloc::ConcreteInt>()) { in getAsArrayOffset()
1303 if (Optional<nonloc::ConcreteInt> CI = in getAsOffset()
1304 Index.getAs<nonloc::ConcreteInt>()) { in getAsOffset()
DRegionStore.cpp812 if (Optional<nonloc::ConcreteInt> ExtentCI = in collectSubRegionBindings()
813 Extent.getAs<nonloc::ConcreteInt>()) { in collectSubRegionBindings()
1359 if (L.getAs<loc::ConcreteInt>()) { in getBinding()
1592 if (Optional<nonloc::ConcreteInt> CI = Idx.getAs<nonloc::ConcreteInt>()) { in getBindingForElement()
1988 if (L.getAs<loc::ConcreteInt>()) in bind()
DExprEngineC.cpp896 nonloc::ConcreteInt X(getBasicVals().getValue(0, Ex->getType())); in VisitUnaryOperator()
DExprEngine.cpp1717 if (V.getAs<loc::ConcreteInt>() || V.getAs<UndefinedVal>()) { in processIndirectGoto()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSValBuilder.h223 return nonloc::ConcreteInt(BasicVals.getValue(0, ArrayIndexTy)); in makeZeroArrayIndex()
227 return nonloc::ConcreteInt(BasicVals.getValue(idx, ArrayIndexTy)); in makeArrayIndex()
232 nonloc::ConcreteInt makeIntVal(const IntegerLiteral* integer) { in makeIntVal()
233 return nonloc::ConcreteInt( in makeIntVal()
238 nonloc::ConcreteInt makeBoolVal(const ObjCBoolLiteralExpr *boolean) { in makeBoolVal()
242 nonloc::ConcreteInt makeBoolVal(const CXXBoolLiteralExpr *boolean);
244 nonloc::ConcreteInt makeIntVal(const llvm::APSInt& integer) { in makeIntVal()
245 return nonloc::ConcreteInt(BasicVals.getValue(integer)); in makeIntVal()
248 loc::ConcreteInt makeIntLocVal(const llvm::APSInt &integer) { in makeIntLocVal()
249 return loc::ConcreteInt(BasicVals.getValue(integer)); in makeIntLocVal()
[all …]
DSVals.h339 class ConcreteInt : public NonLoc {
341 explicit ConcreteInt(const llvm::APSInt& V) : NonLoc(ConcreteIntKind, &V) {} in ConcreteInt() function
349 const ConcreteInt& R) const;
351 ConcreteInt evalComplement(SValBuilder &svalBuilder) const;
353 ConcreteInt evalMinus(SValBuilder &svalBuilder) const;
357 ConcreteInt() {} in ConcreteInt() function
529 class ConcreteInt : public Loc {
531 explicit ConcreteInt(const llvm::APSInt& V) : Loc(ConcreteIntKind, &V) {} in ConcreteInt() function
539 const ConcreteInt& R) const;
543 ConcreteInt() {} in ConcreteInt() function
DMemRegion.h1017 assert((!Idx.getAs<nonloc::ConcreteInt>() || in ElementRegion()
1018 Idx.castAs<nonloc::ConcreteInt>().getValue().isSigned()) && in ElementRegion()
/external/clang/lib/StaticAnalyzer/Checkers/
DStreamChecker.cpp265 Optional<nonloc::ConcreteInt> CI = Whence.getAs<nonloc::ConcreteInt>(); in Fseek()
DBasicObjCFoundationChecks.cpp449 Optional<nonloc::ConcreteInt> V = TheTypeVal.getAs<nonloc::ConcreteInt>(); in checkPreStmt()
790 if (msg.getArgSVal(I).getAs<loc::ConcreteInt>()) in checkPreObjCMessage()
DMallocChecker.cpp1504 if (Optional<nonloc::ConcreteInt> IntVal = V.getAs<nonloc::ConcreteInt>()) in SummarizeValue()
1506 else if (Optional<loc::ConcreteInt> ConstAddr = V.getAs<loc::ConcreteInt>()) in SummarizeValue()
DCStringChecker.cpp574 if (right.getAs<nonloc::ConcreteInt>()) { in checkAdditionOverflow()