Fix unit tests for ineq for CBQI BV. (#1456)
authorAina Niemetz <aina.niemetz@gmail.com>
Fri, 29 Dec 2017 04:27:58 +0000 (20:27 -0800)
committerGitHub <noreply@github.com>
Fri, 29 Dec 2017 04:27:58 +0000 (20:27 -0800)
test/unit/theory/theory_quantifiers_bv_inverter_white.h

index 48df04845835f7b067aa576c4aa7e0fcdf9de6c2..e1d95005067a6c7e18fbc70c4a984266c3767ccf 100644 (file)
@@ -103,9 +103,9 @@ class TheoryQuantifiersBvInverter : public CxxTest::TestSuite
               || ksc == IMPLIES);
     Node scl = ksc == IMPLIES ? sc[0] : bv::utils::mkTrue();
     Node body = idx == 0
-      ? d_nm->mkNode(pol ? EQUAL : DISTINCT, d_nm->mkNode(k, d_x, d_s), d_t)
-      : d_nm->mkNode(pol ? EQUAL : DISTINCT, d_nm->mkNode(k, d_s, d_x), d_t);
-    Node scr = d_nm->mkNode(EXISTS, d_bvarlist, body);
+      ? d_nm->mkNode(litk, d_nm->mkNode(k, d_x, d_s), d_t)
+      : d_nm->mkNode(litk, d_nm->mkNode(k, d_s, d_x), d_t);
+    Node scr = d_nm->mkNode(EXISTS, d_bvarlist, pol ? body : body.notNode());
     Expr a = d_nm->mkNode(DISTINCT, scl, scr).toExpr();
     Result res = d_smt->checkSat(a);
     if (res.d_sat == Result::SAT)