diff options
Diffstat (limited to 'src/printer/cvc')
-rw-r--r-- | src/printer/cvc/cvc_printer.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/printer/cvc/cvc_printer.cpp b/src/printer/cvc/cvc_printer.cpp index 1df59adc4..f779a1bdc 100644 --- a/src/printer/cvc/cvc_printer.cpp +++ b/src/printer/cvc/cvc_printer.cpp @@ -597,7 +597,8 @@ void CvcPrinter::toStream(std::ostream& out, const Command* c, tryToStream<GetOptionCommand>(out, c) || tryToStream<DatatypeDeclarationCommand>(out, c) || tryToStream<CommentCommand>(out, c) || - tryToStream<EmptyCommand>(out, c)) { + tryToStream<EmptyCommand>(out, c) || + tryToStream<EchoCommand>(out, c)) { return; } @@ -807,6 +808,10 @@ static void toStream(std::ostream& out, const CommentCommand* c) throw() { static void toStream(std::ostream& out, const EmptyCommand* c) throw() { } +static void toStream(std::ostream& out, const EchoCommand* c) throw() { + out << "ECHO \"" << c->getOutput() << "\";"; +} + template <class T> static bool tryToStream(std::ostream& out, const Command* c) throw() { if(typeid(*c) == typeid(T)) { |