From ae66405f6fc4af734d84b8eb2752d2706d056814 Mon Sep 17 00:00:00 2001 From: Tim King Date: Thu, 14 Jun 2012 21:24:44 +0000 Subject: [PATCH] Fixing a case for explanation of non-normal form equalities. --- src/theory/arith/theory_arith.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/theory/arith/theory_arith.cpp b/src/theory/arith/theory_arith.cpp index 2c863ba84..eb0c99abe 100644 --- a/src/theory/arith/theory_arith.cpp +++ b/src/theory/arith/theory_arith.cpp @@ -1723,9 +1723,16 @@ Node TheoryArith::explain(TNode n) { return exp; }else if(d_assertionsThatDoNotMatchTheirLiterals.find(n) != d_assertionsThatDoNotMatchTheirLiterals.end()){ c = d_assertionsThatDoNotMatchTheirLiterals[n]; - Node exp = c->explainForPropagation(); - Debug("arith::explain") << "assertions explanation" << n << ":" << exp << endl; - return exp; + if(!c->isSelfExplaining()){ + Node exp = c->explainForPropagation(); + Debug("arith::explain") << "assertions explanation" << n << ":" << exp << endl; + return exp; + }else{ + Debug("arith::explain") << "this is a strange mismatch" << n << endl; + Assert(d_congruenceManager.canExplain(n)); + Debug("arith::explain") << "this is a strange mismatch" << n << endl; + return d_congruenceManager.explain(n); + } }else{ Assert(d_congruenceManager.canExplain(n)); Debug("arith::explain") << "dm explanation" << n << endl; -- 2.30.2