From b2261930d0fa97f0b40e4f96313db957e8ab9418 Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Wed, 25 Sep 2019 10:05:45 -0500 Subject: [PATCH] Fix printing of instantiation patterns (#3305) --- src/printer/smt2/smt2_printer.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp index 37a73db2d..df9bee981 100644 --- a/src/printer/smt2/smt2_printer.cpp +++ b/src/printer/smt2/smt2_printer.cpp @@ -861,7 +861,8 @@ void Smt2Printer::toStream(std::ostream& out, out << ')'; return; } - case kind::INST_PATTERN: break; + case kind::INST_PATTERN: + case kind::INST_NO_PATTERN: break; case kind::INST_PATTERN_LIST: { for (const Node& nc : n) @@ -873,10 +874,14 @@ void Smt2Printer::toStream(std::ostream& out, out << ":fun-def"; } } - else + else if (nc.getKind() == kind::INST_PATTERN) { out << ":pattern " << nc; } + else if (nc.getKind() == kind::INST_NO_PATTERN) + { + out << ":no-pattern " << nc[0]; + } } return; break; -- 2.30.2