diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-12-01 21:57:22 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-12-01 21:57:22 +0000 |
commit | dc891429e41187f0ada5e910bea2922e870c6a65 (patch) | |
tree | dc905892a7461fc88e74c689eb512c8b48aa8267 /clang/lib/Checker/GRState.cpp | |
parent | 87240d4b9ce0d7840ff3a4c69788f18cd7de0e72 (diff) | |
download | bcm5719-llvm-dc891429e41187f0ada5e910bea2922e870c6a65.tar.gz bcm5719-llvm-dc891429e41187f0ada5e910bea2922e870c6a65.zip |
Rename all 'EvalXXX' methods in libChecker to
'evalXXX'.
llvm-svn: 120609
Diffstat (limited to 'clang/lib/Checker/GRState.cpp')
-rw-r--r-- | clang/lib/Checker/GRState.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/lib/Checker/GRState.cpp b/clang/lib/Checker/GRState.cpp index 4a55cee1e29..0170e3c2e3b 100644 --- a/clang/lib/Checker/GRState.cpp +++ b/clang/lib/Checker/GRState.cpp @@ -251,27 +251,27 @@ const GRState *GRState::AssumeInBound(DefinedOrUnknownSVal Idx, nonloc::ConcreteInt Min = BVF.getMinValue(IndexTy); // Adjust the index. - SVal NewIdx = SV.EvalBinOpNN(this, BO_Add, + SVal newIdx = SV.evalBinOpNN(this, BO_Add, cast<NonLoc>(Idx), Min, IndexTy); - if (NewIdx.isUnknownOrUndef()) + if (newIdx.isUnknownOrUndef()) return this; // Adjust the upper bound. - SVal NewBound = SV.EvalBinOpNN(this, BO_Add, + SVal NewBound = SV.evalBinOpNN(this, BO_Add, cast<NonLoc>(UpperBound), Min, IndexTy); if (NewBound.isUnknownOrUndef()) return this; // Build the actual comparison. - SVal InBound = SV.EvalBinOpNN(this, BO_LT, - cast<NonLoc>(NewIdx), cast<NonLoc>(NewBound), + SVal inBound = SV.evalBinOpNN(this, BO_LT, + cast<NonLoc>(newIdx), cast<NonLoc>(NewBound), Ctx.IntTy); - if (InBound.isUnknownOrUndef()) + if (inBound.isUnknownOrUndef()) return this; // Finally, let the constraint manager take care of it. ConstraintManager &CM = SM.getConstraintManager(); - return CM.Assume(this, cast<DefinedSVal>(InBound), Assumption); + return CM.Assume(this, cast<DefinedSVal>(inBound), Assumption); } const GRState* GRStateManager::getInitialState(const LocationContext *InitLoc) { |