summaryrefslogtreecommitdiff
path: root/src/printer
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-12-15 17:16:07 -0600
committerGitHub <noreply@github.com>2020-12-15 17:16:07 -0600
commitd027f24ed72556c240b43c0fa3282927f9344c3e (patch)
tree9e33bf117fdbca28227a6a9d0b540031bb942cd9 /src/printer
parent2fda6c574c75fcc85f0d828a0af9435154eb1a96 (diff)
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).
Diffstat (limited to 'src/printer')
-rw-r--r--src/printer/smt2/smt2_printer.cpp6
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 << ")";
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback