From 4bfa927dac67bbcadf219f70e61f1d123e33944b Mon Sep 17 00:00:00 2001 From: François Bobot Date: Fri, 27 Jul 2012 13:36:32 +0000 Subject: Merge quantifiers2-trunk: - new syntax for rewrite rules - better rewrite rules theory - remove the rewriting with rewrite rules during ppRewrite temporarily - theory can define their own candidate generator - define a general candidate generator (inefficient ask to every theory) - split inst_match between the pattern matching used for quantifiers (inst_match.*) and the one used for rewrite rules (rr_inst_match.*): - the pattern matching is less exhaustive for quantifiers, - the one for rewrite rules can use efficient-e-matching. --- src/printer/smt2/smt2_printer.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/printer/smt2') diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp index a3b22ac24..892de551c 100644 --- a/src/printer/smt2/smt2_printer.cpp +++ b/src/printer/smt2/smt2_printer.cpp @@ -282,7 +282,7 @@ void Smt2Printer::toStream(std::ostream& out, TNode n, case kind::FORALL: out << "forall "; break; case kind::EXISTS: out << "exists "; break; case kind::BOUND_VAR_LIST: - out << '('; + // the left parenthesis is already printed (before the switch) for(TNode::iterator i = n.begin(), iend = n.end(); i != iend; ) { @@ -290,8 +290,10 @@ void Smt2Printer::toStream(std::ostream& out, TNode n, (*i).toStream(out, toDepth < 0 ? toDepth : toDepth - 1, types, language::output::LANG_SMTLIB_V2); out << ' '; - (*i).getType().toStream(out, toDepth < 0 ? toDepth : toDepth - 1, - false, language::output::LANG_SMTLIB_V2); + out << (*i).getType(); + // The following code do stange things + // (*i).getType().toStream(out, toDepth < 0 ? toDepth : toDepth - 1, + // false, language::output::LANG_SMTLIB_V2); out << ')'; if(++i != iend) { out << ' '; -- cgit v1.2.3