summaryrefslogtreecommitdiff
path: root/src/theory/sep
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2017-12-08 10:14:31 -0600
committerGitHub <noreply@github.com>2017-12-08 10:14:31 -0600
commit564234963dd7e76c8d9b88ef941a6683694e5b53 (patch)
tree313e46520c07d1536fffbad4b7080937cfc09aae /src/theory/sep
parent805d4b7483e51a9b4d24058d493f85700a87f099 (diff)
Make collect model info return a Bool (#1421)
Diffstat (limited to 'src/theory/sep')
-rw-r--r--src/theory/sep/theory_sep.cpp6
-rw-r--r--src/theory/sep/theory_sep.h11
2 files changed, 8 insertions, 9 deletions
diff --git a/src/theory/sep/theory_sep.cpp b/src/theory/sep/theory_sep.cpp
index 71cde2841..0107b80c8 100644
--- a/src/theory/sep/theory_sep.cpp
+++ b/src/theory/sep/theory_sep.cpp
@@ -200,15 +200,15 @@ void TheorySep::computeCareGraph() {
// MODEL GENERATION
/////////////////////////////////////////////////////////////////////////////
-
-void TheorySep::collectModelInfo( TheoryModel* m ){
+bool TheorySep::collectModelInfo(TheoryModel* m)
+{
set<Node> termSet;
// Compute terms appearing in assertions and shared terms
computeRelevantTerms(termSet);
// Send the equality engine information to the model
- m->assertEqualityEngine( &d_equalityEngine, &termSet );
+ return m->assertEqualityEngine(&d_equalityEngine, &termSet);
}
void TheorySep::postProcessModel( TheoryModel* m ){
diff --git a/src/theory/sep/theory_sep.h b/src/theory/sep/theory_sep.h
index 591a495d0..65f076631 100644
--- a/src/theory/sep/theory_sep.h
+++ b/src/theory/sep/theory_sep.h
@@ -109,13 +109,12 @@ class TheorySep : public Theory {
/////////////////////////////////////////////////////////////////////////////
public:
+ bool collectModelInfo(TheoryModel* m) override;
+ void postProcessModel(TheoryModel* m);
- void collectModelInfo(TheoryModel* m);
- void postProcessModel(TheoryModel* m);
-
- /////////////////////////////////////////////////////////////////////////////
- // NOTIFICATIONS
- /////////////////////////////////////////////////////////////////////////////
+ /////////////////////////////////////////////////////////////////////////////
+ // NOTIFICATIONS
+ /////////////////////////////////////////////////////////////////////////////
private:
public:
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback