diff options
author | Tim King <taking@cs.nyu.edu> | 2017-11-28 09:07:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-28 09:07:14 -0800 |
commit | 45497438b85dfc408c974a788e28525f0b5717b9 (patch) | |
tree | 75929fcefcb17d5ba58bdffc136ba2ce49b2d622 /src/printer/smt1/smt1_printer.cpp | |
parent | d552ca179b8723a93c6e0dae61242ceb1ccaa717 (diff) |
Removing throw specifiers from internal Printer hierarchy. (#1393)
Diffstat (limited to 'src/printer/smt1/smt1_printer.cpp')
-rw-r--r-- | src/printer/smt1/smt1_printer.cpp | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/src/printer/smt1/smt1_printer.cpp b/src/printer/smt1/smt1_printer.cpp index b67274ce2..ac3c2f970 100644 --- a/src/printer/smt1/smt1_printer.cpp +++ b/src/printer/smt1/smt1_printer.cpp @@ -31,26 +31,35 @@ namespace CVC4 { namespace printer { namespace smt1 { -void Smt1Printer::toStream(std::ostream& out, TNode n, - int toDepth, bool types, size_t dag) const throw() { +void Smt1Printer::toStream( + std::ostream& out, TNode n, int toDepth, bool types, size_t dag) const +{ n.toStream(out, toDepth, types, dag, language::output::LANG_SMTLIB_V2_5); }/* Smt1Printer::toStream() */ -void Smt1Printer::toStream(std::ostream& out, const Command* c, - int toDepth, bool types, size_t dag) const throw() { +void Smt1Printer::toStream(std::ostream& out, + const Command* c, + int toDepth, + bool types, + size_t dag) const +{ c->toStream(out, toDepth, types, dag, language::output::LANG_SMTLIB_V2_5); }/* Smt1Printer::toStream() */ -void Smt1Printer::toStream(std::ostream& out, const CommandStatus* s) const throw() { +void Smt1Printer::toStream(std::ostream& out, const CommandStatus* s) const +{ s->toStream(out, language::output::LANG_SMTLIB_V2_5); }/* Smt1Printer::toStream() */ - -void Smt1Printer::toStream(std::ostream& out, const Model& m) const throw() { +void Smt1Printer::toStream(std::ostream& out, const Model& m) const +{ Printer::getPrinter(language::output::LANG_SMTLIB_V2_5)->toStream(out, m); } -void Smt1Printer::toStream(std::ostream& out, const Model& m, const Command* c) const throw() { +void Smt1Printer::toStream(std::ostream& out, + const Model& m, + const Command* c) const +{ // shouldn't be called; only the non-Command* version above should be Unreachable(); } |