summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaniel Barbosa <hanielbbarbosa@gmail.com>2021-05-07 17:28:44 -0300
committerGitHub <noreply@github.com>2021-05-07 20:28:44 +0000
commitbf62473ea3bed27f13f0eb320cea404ebadb490e (patch)
tree015868df1c08327b490d60ec628b56f8cd751bbb
parent89641ef6aae22610cf544f1e7545178ee6418597 (diff)
Properly printing INST_PATTERN_LIST by itself (#6507)
Previously the SMT2 printer would print pattern lists wrong when they were not printed as part of a binder containing it. This commit fixes this by removing an unused hardcoded restriction that led to issues when printing the ASTs of proof nodes containing patterns.
-rw-r--r--src/printer/smt2/smt2_printer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp
index 9f9492cec..ae8d37713 100644
--- a/src/printer/smt2/smt2_printer.cpp
+++ b/src/printer/smt2/smt2_printer.cpp
@@ -528,8 +528,7 @@ void Smt2Printer::toStream(std::ostream& out,
bool stillNeedToPrintParams = true;
bool forceBinary = false; // force N-ary to binary when outputing children
// operator
- if (n.getNumChildren() != 0 && k != kind::INST_PATTERN_LIST
- && k != kind::CONSTRUCTOR_TYPE)
+ if (n.getNumChildren() != 0 && k != kind::CONSTRUCTOR_TYPE)
{
out << '(';
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback