From 564234963dd7e76c8d9b88ef941a6683694e5b53 Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Fri, 8 Dec 2017 10:14:31 -0600 Subject: Make collect model info return a Bool (#1421) --- src/theory/sep/theory_sep.cpp | 6 +++--- src/theory/sep/theory_sep.h | 11 +++++------ 2 files changed, 8 insertions(+), 9 deletions(-) (limited to 'src/theory/sep') 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 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: -- cgit v1.2.3