diff options
author | François Bobot <francois@bobot.eu> | 2012-07-27 13:36:32 +0000 |
---|---|---|
committer | François Bobot <francois@bobot.eu> | 2012-07-27 13:36:32 +0000 |
commit | 4bfa927dac67bbcadf219f70e61f1d123e33944b (patch) | |
tree | f295343430799748de8b9a823f1a3c641c096905 /src/printer | |
parent | 988c97d92fa617c5dccaeb1ef33121bfa6459afc (diff) |
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.
Diffstat (limited to 'src/printer')
-rw-r--r-- | src/printer/smt2/smt2_printer.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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 << ' '; |