]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Bugfix. Properly print out the counter example of booleans.
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sat, 10 Jul 2010 14:24:13 +0000 (14:24 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sat, 10 Jul 2010 14:24:13 +0000 (14:24 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@950 e59a4935-1847-0410-ae03-e826735625c1

src/absrefine_counterexample/CounterExample.cpp

index 51917138769d0d3932d87d5c580c1ec1e36a4abf..a96882e1a581888420df08aadb4de32a4c38c11c 100644 (file)
@@ -762,16 +762,19 @@ namespace BEEV
               {
                 os << " = ";
               }
+
+            ASTNode rhs;
             if (BITVECTOR_TYPE == se.GetType())
               {
-                ASTNode rhs = TermToConstTermUsingModel(se, false);
-                                assert(rhs.isConstant());
-                                printer::PL_Print1(os,rhs,0,false);
+                rhs = TermToConstTermUsingModel(se, false);
               }
             else
               {
-                printer::PL_Print1(os,se,0,false);
+                rhs = ComputeFormulaUsingModel(se);
               }
+            assert(rhs.isConstant());
+            printer::PL_Print1(os, rhs, 0, false);
+
             os << " );" << endl;
           }
       }