diff options
Diffstat (limited to 'src/printer/smt2/smt2_printer.cpp')
-rw-r--r-- | src/printer/smt2/smt2_printer.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp index 25d3bf35a..a1ee99d8f 100644 --- a/src/printer/smt2/smt2_printer.cpp +++ b/src/printer/smt2/smt2_printer.cpp @@ -423,7 +423,8 @@ void Smt2Printer::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; } @@ -661,6 +662,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)) { |