Add witness to cvc printer. (#5057)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Fri, 11 Sep 2020 00:09:11 +0000 (19:09 -0500)
committerGitHub <noreply@github.com>
Fri, 11 Sep 2020 00:09:11 +0000 (19:09 -0500)
src/printer/cvc/cvc_printer.cpp

index 2d59bff715c6e3cabe0d5c8a6fc76e827a8b9b14..02afa715d66a097d65b674c6084f00b522601ddc 100644 (file)
@@ -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);