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.cpp445 if (Base.isUnknownOrUndef() || Base.getAs<loc::ConcreteInt>()) in getLValueElement()
472 if (!BaseIdx.getAs<nonloc::ConcreteInt>()) in getLValueElement()
476 BaseIdx.castAs<nonloc::ConcreteInt>().getValue(); in getLValueElement()
481 if (!Offset.getAs<nonloc::ConcreteInt>()) { in getLValueElement()
490 const llvm::APSInt& OffI = Offset.castAs<nonloc::ConcreteInt>().getValue(); in getLValueElement()
494 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()
322 if (Optional<nonloc::ConcreteInt> rInt = RHS.getAs<nonloc::ConcreteInt>()) in makeSymExprValNN()
326 if (Optional<nonloc::ConcreteInt> lInt = LHS.getAs<nonloc::ConcreteInt>()) in makeSymExprValNN()
DBugReporterVisitors.cpp536 V.getAs<loc::ConcreteInt>() || V.getAs<nonloc::ConcreteInt>()) { in VisitNode()
585 if (V.getAs<loc::ConcreteInt>()) { in VisitNode()
598 } else if (Optional<nonloc::ConcreteInt> CVal = in VisitNode()
599 V.getAs<nonloc::ConcreteInt>()) { in VisitNode()
627 if (V.getAs<loc::ConcreteInt>()) { in VisitNode()
634 } else if (Optional<nonloc::ConcreteInt> CI = in VisitNode()
635 V.getAs<nonloc::ConcreteInt>()) { in VisitNode()
652 if (V.getAs<loc::ConcreteInt>()) { in VisitNode()
675 } else if (Optional<nonloc::ConcreteInt> CV = in VisitNode()
676 V.getAs<nonloc::ConcreteInt>()) { in VisitNode()
[all …]
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.cpp1143 if (Optional<nonloc::ConcreteInt> CI = index.getAs<nonloc::ConcreteInt>()) { in getAsArrayOffset()
1298 if (Optional<nonloc::ConcreteInt> CI = in getAsOffset()
1299 Index.getAs<nonloc::ConcreteInt>()) { in getAsOffset()
DSimpleConstraintManager.cpp182 bool b = Cond.castAs<nonloc::ConcreteInt>().getValue() != 0; in assumeAux()
DRegionStore.cpp827 if (Optional<nonloc::ConcreteInt> ExtentCI = in collectSubRegionBindings()
828 Extent.getAs<nonloc::ConcreteInt>()) { in collectSubRegionBindings()
1266 if (L.getAs<loc::ConcreteInt>()) { in getBinding()
1495 if (Optional<nonloc::ConcreteInt> CI = Idx.getAs<nonloc::ConcreteInt>()) { in getBindingForElement()
1891 if (L.getAs<loc::ConcreteInt>()) in bind()
DExprEngine.cpp1580 if (V.getAs<loc::ConcreteInt>() || V.getAs<UndefinedVal>()) { in processIndirectGoto()
1665 nonloc::ConcreteInt CaseVal(getBasicVals().getValue(V1)); in processSwitch()
1676 if (CondV.getAs<nonloc::ConcreteInt>()) in processSwitch()
DExprEngineC.cpp873 nonloc::ConcreteInt X(getBasicVals().getValue(0, Ex->getType())); in VisitUnaryOperator()
/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.cpp450 Optional<nonloc::ConcreteInt> V = TheTypeVal.getAs<nonloc::ConcreteInt>(); in checkPreStmt()
790 if (msg.getArgSVal(I).getAs<loc::ConcreteInt>()) in checkPreObjCMessage()
DMallocChecker.cpp1241 if (Optional<nonloc::ConcreteInt> IntVal = V.getAs<nonloc::ConcreteInt>()) in SummarizeValue()
1243 else if (Optional<loc::ConcreteInt> ConstAddr = V.getAs<loc::ConcreteInt>()) in SummarizeValue()
DCStringChecker.cpp566 if (right.getAs<nonloc::ConcreteInt>()) { in checkAdditionOverflow()