From: trevor_hansen Date: Sat, 10 Jul 2010 14:24:13 +0000 (+0000) Subject: Bugfix. Properly print out the counter example of booleans. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=59b4016030407d78412be76a20f5c47adef3f835;p=francis%2Fstp.git Bugfix. Properly print out the counter example of booleans. git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@950 e59a4935-1847-0410-ae03-e826735625c1 --- diff --git a/src/absrefine_counterexample/CounterExample.cpp b/src/absrefine_counterexample/CounterExample.cpp index 5191713..a96882e 100644 --- a/src/absrefine_counterexample/CounterExample.cpp +++ b/src/absrefine_counterexample/CounterExample.cpp @@ -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; } }