diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-03 15:40:42 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-03 15:40:42 +0000 |
commit | 32461e170b16d2f6cbcd04830bf68ce2a6372db5 (patch) | |
tree | 59c8813624c9072d2ecd14526658d6751e5a9674 /lib/Solver/CexCachingSolver.cpp | |
parent | d55171601a0537506ddd05d37a1dabe372454a6d (diff) | |
download | klee-32461e170b16d2f6cbcd04830bf68ce2a6372db5.tar.gz |
Kill off specialized ref<> forwarding methods, in the interest of making it a
more standard reference counting wrapper. - The only interesting changes here are in Ref.h, everything else is just updating foo.method to use foo->method instead. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Solver/CexCachingSolver.cpp')
-rw-r--r-- | lib/Solver/CexCachingSolver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Solver/CexCachingSolver.cpp b/lib/Solver/CexCachingSolver.cpp index 79bc985d..db15632b 100644 --- a/lib/Solver/CexCachingSolver.cpp +++ b/lib/Solver/CexCachingSolver.cpp @@ -139,7 +139,7 @@ bool CexCachingSolver::lookupAssignment(const Query &query, KeyType key(query.constraints.begin(), query.constraints.end()); ref<Expr> neg = Expr::createNot(query.expr); if (neg.isConstant()) { - if (!neg.getConstantValue()) { + if (!neg->getConstantValue()) { result = (Assignment*) 0; return true; } @@ -154,7 +154,7 @@ bool CexCachingSolver::getAssignment(const Query& query, Assignment *&result) { KeyType key(query.constraints.begin(), query.constraints.end()); ref<Expr> neg = Expr::createNot(query.expr); if (neg.isConstant()) { - if (!neg.getConstantValue()) { + if (!neg->getConstantValue()) { result = (Assignment*) 0; return true; } @@ -219,7 +219,7 @@ bool CexCachingSolver::computeValidity(const Query& query, ref<Expr> q = a->evaluate(query.expr); assert(q.isConstant() && "assignment evaluation did not result in constant"); - if (q.getConstantValue()) { + if (q->getConstantValue()) { if (!getAssignment(query, a)) return false; result = !a ? Solver::True : Solver::Unknown; |