bugfix, enable only QF_LRA, not other arith
authorKshitij Bansal <kshitij@cs.nyu.edu>
Mon, 18 Jun 2012 02:04:37 +0000 (02:04 +0000)
committerKshitij Bansal <kshitij@cs.nyu.edu>
Mon, 18 Jun 2012 02:04:37 +0000 (02:04 +0000)
src/smt/smt_engine.cpp

index b9c15ac71e0b142ead1665a95300dbda883ae95c..97046a1ae8d40077be0323a5e4fb291fb6d55d46 100644 (file)
@@ -573,7 +573,7 @@ void SmtEngine::setLogicInternal() throw(AssertionException) {
        ) ||
       // QF_LRA
       (not d_logic.isQuantified() &&
-       d_logic.isPure(THEORY_ARITH)
+       d_logic.isPure(THEORY_ARITH) && d_logic.isLinear() && !d_logic.isDifferenceLogic() &&  !d_logic.areIntegersUsed()
        ) ||
       // Quantifiers
       d_logic.isQuantified()
@@ -589,7 +589,7 @@ void SmtEngine::setLogicInternal() throw(AssertionException) {
        ) ||
       // QF_LRA
       (not d_logic.isQuantified() &&
-       d_logic.isPure(THEORY_ARITH)
+       d_logic.isPure(THEORY_ARITH) && d_logic.isLinear() && !d_logic.isDifferenceLogic() &&  !d_logic.areIntegersUsed()
        ) ||
       // Quantifiers
       d_logic.isQuantified()