summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2012-06-16 17:37:33 +0000
committerTim King <taking@cs.nyu.edu>2012-06-16 17:37:33 +0000
commitadae14a07b1019d092b4d5aa0cf809f9d0eca66d (patch)
treea400d2a6753e52d01e36ae7ca8f63335d238c466
parent86aa93a619e4697b92c719f478399965ccb96d2d (diff)
Fixing if condition for trivial equalities in arithmetic. Also some whitespace issues in smt_engine.cpp.
-rw-r--r--src/smt/smt_engine.cpp4
-rw-r--r--src/theory/arith/theory_arith.cpp3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp
index e86353eea..a55ced622 100644
--- a/src/smt/smt_engine.cpp
+++ b/src/smt/smt_engine.cpp
@@ -542,7 +542,7 @@ void SmtEngine::setLogicInternal() throw(AssertionException) {
}
// Turn on justification heuristic of the decision engine for QF_BV and QF_AUFBV
if(!Options::current()->decisionModeSetByUser) {
- Options::DecisionMode decMode =
+ Options::DecisionMode decMode =
//QF_BV
( !d_logic.isQuantified() &&
d_logic.isPure(THEORY_BV)
@@ -558,7 +558,7 @@ void SmtEngine::setLogicInternal() throw(AssertionException) {
Trace("smt") << "setting decision mode to " << decMode << std::endl;
NodeManager::currentNM()->getOptions()->decisionMode = decMode;
}
-
+
}
void SmtEngine::setInfo(const std::string& key, const SExpr& value)
diff --git a/src/theory/arith/theory_arith.cpp b/src/theory/arith/theory_arith.cpp
index eb0c99abe..e4284286e 100644
--- a/src/theory/arith/theory_arith.cpp
+++ b/src/theory/arith/theory_arith.cpp
@@ -1104,7 +1104,8 @@ Constraint TheoryArith::constraintFromFactQueue(){
Assert(!isSetup(eq));
Node reEq = Rewriter::rewrite(eq);
if(reEq.getKind() == CONST_BOOLEAN){
- if(reEq.getConst<bool>() != isDistinct){
+ if(reEq.getConst<bool>() == isDistinct){
+ // if is (not true), or false
Assert((reEq.getConst<bool>() && isDistinct) ||
(!reEq.getConst<bool>() && !isDistinct));
d_raiseConflict(assertion);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback