diff options
Diffstat (limited to 'src/printer/smt2/smt2_printer.cpp')
-rw-r--r-- | src/printer/smt2/smt2_printer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 << ")"; |