summaryrefslogtreecommitdiff
path: root/src/printer
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2016-07-06 13:33:55 -0500
committerajreynol <andrew.j.reynolds@gmail.com>2016-07-06 13:33:55 -0500
commit673bb476c2a1b51abbc95acb0afaf4e3b8a9feb7 (patch)
treeff5b597fe15afaeb83eae9e32d732f6bf27bff67 /src/printer
parentcbc5adb5d4f131ea6bf9a40b0c27fecf67353b4d (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.cpp8
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;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback