From edf2e3ff7b751001901d377c3aacd044a3e15ef4 Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Thu, 10 Sep 2020 19:09:11 -0500 Subject: [PATCH] Add witness to cvc printer. (#5057) --- src/printer/cvc/cvc_printer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.30.2