From d027f24ed72556c240b43c0fa3282927f9344c3e Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Tue, 15 Dec 2020 17:16:07 -0600 Subject: Improvements related to quantifiers printing (#5678) Also fixes a bug where patterns would be printed with the wrong scope (that included the bound variable list). --- src/printer/smt2/smt2_printer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/printer') diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp index 81445d281..1b7143538 100644 --- a/src/printer/smt2/smt2_printer.cpp +++ b/src/printer/smt2/smt2_printer.cpp @@ -902,15 +902,17 @@ void Smt2Printer::toStream(std::ostream& out, case kind::WITNESS: { out << smtKindString(k, d_variant) << " "; + toStream(out, n[0], toDepth, lbind); + out << " "; if (n.getNumChildren() == 3) { out << "(! "; } - out << n[0] << " "; toStreamWithLetify(out, n[1], toDepth - 1, lbind); if (n.getNumChildren() == 3) { - out << n[2]; + out << " "; + toStream(out, n[2], toDepth, lbind); out << ")"; } out << ")"; -- cgit v1.2.3