diff options
Diffstat (limited to 'src/printer/smt2/smt2_printer.cpp')
-rw-r--r-- | src/printer/smt2/smt2_printer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp index 5758b1101..e926c350f 100644 --- a/src/printer/smt2/smt2_printer.cpp +++ b/src/printer/smt2/smt2_printer.cpp @@ -291,7 +291,8 @@ void Smt2Printer::toStream(std::ostream& out, const Command* c, tryToStream<SetOptionCommand>(out, c) || tryToStream<GetOptionCommand>(out, c) || tryToStream<DatatypeDeclarationCommand>(out, c) || - tryToStream<CommentCommand>(out, c)) { + tryToStream<CommentCommand>(out, c) || + tryToStream<EmptyCommand>(out, c)) { return; } @@ -462,6 +463,9 @@ static void toStream(std::ostream& out, const CommentCommand* c) { out << "(set-info :notes \"" << c->getComment() << "\")"; } +static void toStream(std::ostream& out, const EmptyCommand* c) { +} + template <class T> static bool tryToStream(std::ostream& out, const Command* c) { if(typeid(*c) == typeid(T)) { |