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/theory/theory_model.cpp | |
parent | cbc5adb5d4f131ea6bf9a40b0c27fecf67353b4d (diff) |
Add comment field for model, resolves hack for printing sep logic models.
Diffstat (limited to 'src/theory/theory_model.cpp')
-rw-r--r-- | src/theory/theory_model.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/theory/theory_model.cpp b/src/theory/theory_model.cpp index f43a2aa7f..062ae78ed 100644 --- a/src/theory/theory_model.cpp +++ b/src/theory/theory_model.cpp @@ -64,6 +64,11 @@ void TheoryModel::reset(){ d_eeContext->push(); } +void TheoryModel::getComments(std::ostream& out) const { + Trace("model-builder") << "get comments..." << std::endl; + out << d_comment_str.str(); +} + Node TheoryModel::getValue(TNode n, bool useDontCares) const { //apply substitutions Node nn = d_substitutions.apply(n); @@ -937,6 +942,12 @@ void TheoryEngineModelBuilder::buildModel(Model* m, bool fullModel) //modelBuilder-specific initialization processBuildModel( tm, fullModel ); + // Collect model comments from the theories + if( fullModel ){ + Trace("model-builder") << "TheoryEngineModelBuilder: Collect model comments..." << std::endl; + d_te->collectModelComments(tm); + } + #ifdef CVC4_ASSERTIONS if (fullModel) { // Check that every term evaluates to its representative in the model |