Fix for assertion failure:
authorClark Barrett <barrett@cs.nyu.edu>
Sat, 13 Jun 2015 17:21:40 +0000 (10:21 -0700)
committerClark Barrett <barrett@cs.nyu.edu>
Sat, 13 Jun 2015 17:21:40 +0000 (10:21 -0700)
smt_engine.cpp:1992: Rewriter::rewrite(d_assertions[i]) == d_assertions[i]
when --ite-simp and --repeat-simp are on

src/theory/theory_engine.cpp

index 9b4815fd4c5d7824c29beb250c8cd60f0090bc9c..8d36d9e05cb57df427092cc7ce1e7a151106fb37 100644 (file)
@@ -1589,7 +1589,7 @@ bool TheoryEngine::donePPSimpITE(std::vector<Node>& assertions){
           if(curr != res){
             Node more = aiteu.reduceConstantIteByGCD(res);
             Debug("arith::ite::red") << "  gcd->" << more << endl;
-            assertions[i] = more;
+            assertions[i] = Rewriter::rewrite(more);
           }
         }
       }