projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78b3f62
)
Fix printing of instantiation patterns (#3305)
author
Andrew Reynolds
<andrew.j.reynolds@gmail.com>
Wed, 25 Sep 2019 15:05:45 +0000
(10:05 -0500)
committer
GitHub
<noreply@github.com>
Wed, 25 Sep 2019 15:05:45 +0000
(10:05 -0500)
src/printer/smt2/smt2_printer.cpp
patch
|
blob
|
history
diff --git
a/src/printer/smt2/smt2_printer.cpp
b/src/printer/smt2/smt2_printer.cpp
index 37a73db2dc27ee87b57515a6e56684bc7a4bea99..df9bee98139a30094b46f6a167b66b7d101911c8 100644
(file)
--- 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;