summaryrefslogtreecommitdiff
path: root/src/printer/cvc/cvc_printer.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-09-10 19:09:11 -0500
committerGitHub <noreply@github.com>2020-09-10 19:09:11 -0500
commitedf2e3ff7b751001901d377c3aacd044a3e15ef4 (patch)
tree2adb2bc4c80a2d763a028b8b5b1c2da933771ef6 /src/printer/cvc/cvc_printer.cpp
parenta8939854b88a4d9ead58ef7191897f0e5f68cefb (diff)
Add witness to cvc printer. (#5057)
Diffstat (limited to 'src/printer/cvc/cvc_printer.cpp')
-rw-r--r--src/printer/cvc/cvc_printer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/printer/cvc/cvc_printer.cpp b/src/printer/cvc/cvc_printer.cpp
index 2d59bff71..02afa715d 100644
--- a/src/printer/cvc/cvc_printer.cpp
+++ b/src/printer/cvc/cvc_printer.cpp
@@ -317,6 +317,13 @@ void CvcPrinter::toStream(
out << ")";
return;
break;
+ case kind::WITNESS:
+ out << "(WITNESS";
+ toStream(out, n[0], depth, types, false);
+ out << " : ";
+ toStream(out, n[1], depth, types, false);
+ out << ')';
+ return;
case kind::DISTINCT:
// distinct not supported directly, blast it away with the rewriter
toStream(out, theory::Rewriter::rewrite(n), depth, types, true);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback