summaryrefslogtreecommitdiff
path: root/src/theory/theory_model.cpp
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/theory/theory_model.cpp
parentcbc5adb5d4f131ea6bf9a40b0c27fecf67353b4d (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.cpp11
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
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback