diff options
Diffstat (limited to 'src/printer/cvc')
-rw-r--r-- | src/printer/cvc/cvc_printer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/printer/cvc/cvc_printer.cpp b/src/printer/cvc/cvc_printer.cpp index 0f3d635bd..fa1855ebe 100644 --- a/src/printer/cvc/cvc_printer.cpp +++ b/src/printer/cvc/cvc_printer.cpp @@ -393,7 +393,8 @@ void CvcPrinter::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; } @@ -550,6 +551,9 @@ static void toStream(std::ostream& out, const CommentCommand* c) { out << "% " << 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)) { |