diff options
author | ajreynol <andrew.j.reynolds@gmail.com> | 2016-07-06 13:33:55 -0500 |
---|---|---|
committer | ajreynol <andrew.j.reynolds@gmail.com> | 2016-07-06 13:33:55 -0500 |
commit | 673bb476c2a1b51abbc95acb0afaf4e3b8a9feb7 (patch) | |
tree | ff5b597fe15afaeb83eae9e32d732f6bf27bff67 /src/printer | |
parent | cbc5adb5d4f131ea6bf9a40b0c27fecf67353b4d (diff) |
Add comment field for model, resolves hack for printing sep logic models.
Diffstat (limited to 'src/printer')
-rw-r--r-- | src/printer/smt2/smt2_printer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp index 35e6f1a73..4cdf5a9fb 100644 --- a/src/printer/smt2/smt2_printer.cpp +++ b/src/printer/smt2/smt2_printer.cpp @@ -1061,6 +1061,14 @@ void Smt2Printer::toStream(std::ostream& out, const UnsatCore& core, const std:: void Smt2Printer::toStream(std::ostream& out, const Model& m) const throw() { + //print the model comments + std::stringstream c; + m.getComments( c ); + std::string ln; + while( std::getline( c, ln ) ){ + out << "; " << ln << std::endl; + } + //print the model out << "(model" << endl; this->Printer::toStream(out, m); out << ")" << endl; |