summaryrefslogtreecommitdiff
path: root/src/printer/tptp/tptp_printer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/printer/tptp/tptp_printer.cpp')
-rw-r--r--src/printer/tptp/tptp_printer.cpp28
1 files changed, 19 insertions, 9 deletions
diff --git a/src/printer/tptp/tptp_printer.cpp b/src/printer/tptp/tptp_printer.cpp
index 102419ec4..ceee07bf1 100644
--- a/src/printer/tptp/tptp_printer.cpp
+++ b/src/printer/tptp/tptp_printer.cpp
@@ -33,22 +33,28 @@ namespace CVC4 {
namespace printer {
namespace tptp {
-void TptpPrinter::toStream(std::ostream& out, TNode n,
- int toDepth, bool types, size_t dag) const throw() {
+void TptpPrinter::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);
}/* TptpPrinter::toStream() */
-void TptpPrinter::toStream(std::ostream& out, const Command* c,
- int toDepth, bool types, size_t dag) const throw() {
+void TptpPrinter::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);
}/* TptpPrinter::toStream() */
-void TptpPrinter::toStream(std::ostream& out, const CommandStatus* s) const throw() {
+void TptpPrinter::toStream(std::ostream& out, const CommandStatus* s) const
+{
s->toStream(out, language::output::LANG_SMTLIB_V2_5);
}/* TptpPrinter::toStream() */
-
-void TptpPrinter::toStream(std::ostream& out, const Model& m) const throw() {
+void TptpPrinter::toStream(std::ostream& out, const Model& m) const
+{
out << "% SZS output start FiniteModel for " << m.getInputName() << endl;
for(size_t i = 0; i < m.getNumCommands(); ++i) {
this->Printer::toStreamUsing(language::output::LANG_SMTLIB_V2_5, out, m, m.getCommand(i));
@@ -56,11 +62,15 @@ void TptpPrinter::toStream(std::ostream& out, const Model& m) const throw() {
out << "% SZS output end FiniteModel for " << m.getInputName() << endl;
}
-void TptpPrinter::toStream(std::ostream& out, const Model& m, const Command* c) const throw() {
+void TptpPrinter::toStream(std::ostream& out,
+ const Model& m,
+ const Command* c) const
+{
// shouldn't be called; only the non-Command* version above should be
Unreachable();
}
-void TptpPrinter::toStream(std::ostream& out, const UnsatCore& core) const throw() {
+void TptpPrinter::toStream(std::ostream& out, const UnsatCore& core) const
+{
out << "% SZS output start UnsatCore " << std::endl;
SmtEngine * smt = core.getSmtEngine();
Assert( smt!=NULL );
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback