diff options
Diffstat (limited to 'lib/Solver')
-rw-r--r-- | lib/Solver/CachingSolver.cpp | 2 | ||||
-rw-r--r-- | lib/Solver/CexCachingSolver.cpp | 4 | ||||
-rw-r--r-- | lib/Solver/Solver.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/Solver/CachingSolver.cpp b/lib/Solver/CachingSolver.cpp index d353e485..c0b77429 100644 --- a/lib/Solver/CachingSolver.cpp +++ b/lib/Solver/CachingSolver.cpp @@ -89,7 +89,7 @@ public: the canonicalization process. */ ref<Expr> CachingSolver::canonicalizeQuery(ref<Expr> originalQuery, bool &negationUsed) { - ref<Expr> negatedQuery = Expr::createNot(originalQuery); + ref<Expr> negatedQuery = Expr::createIsZero(originalQuery); // select the "smaller" query to the be canonical representation if (originalQuery.compare(negatedQuery) < 0) { diff --git a/lib/Solver/CexCachingSolver.cpp b/lib/Solver/CexCachingSolver.cpp index 373f42d9..2bdc7418 100644 --- a/lib/Solver/CexCachingSolver.cpp +++ b/lib/Solver/CexCachingSolver.cpp @@ -137,7 +137,7 @@ bool CexCachingSolver::searchForAssignment(KeyType &key, Assignment *&result) { bool CexCachingSolver::lookupAssignment(const Query &query, Assignment *&result) { KeyType key(query.constraints.begin(), query.constraints.end()); - ref<Expr> neg = Expr::createNot(query.expr); + ref<Expr> neg = Expr::createIsZero(query.expr); if (ConstantExpr *CE = dyn_cast<ConstantExpr>(neg)) { if (CE->isFalse()) { result = (Assignment*) 0; @@ -152,7 +152,7 @@ bool CexCachingSolver::lookupAssignment(const Query &query, bool CexCachingSolver::getAssignment(const Query& query, Assignment *&result) { KeyType key(query.constraints.begin(), query.constraints.end()); - ref<Expr> neg = Expr::createNot(query.expr); + ref<Expr> neg = Expr::createIsZero(query.expr); if (ConstantExpr *CE = dyn_cast<ConstantExpr>(neg)) { if (CE->isFalse()) { result = (Assignment*) 0; diff --git a/lib/Solver/Solver.cpp b/lib/Solver/Solver.cpp index f8f9d690..abff5743 100644 --- a/lib/Solver/Solver.cpp +++ b/lib/Solver/Solver.cpp @@ -349,7 +349,7 @@ ValidatingSolver::computeInitialValues(const Query& query, } } ConstraintManager tmp(bindings); - ref<Expr> constraints = Expr::createNot(query.expr); + ref<Expr> constraints = Expr::createIsZero(query.expr); for (ConstraintManager::const_iterator it = query.constraints.begin(), ie = query.constraints.end(); it != ie; ++it) constraints = AndExpr::create(constraints, *it); |