diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-08-12 09:18:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-12 09:18:24 -0500 |
commit | c5a7dc772788ea3f1d568da0d8ef4effca080b9c (patch) | |
tree | 09fa1ad24590ed4512cbc22ee71c9c813ad6408a | |
parent | 558ceb2f64877fa2cc5f1cd448147e529b5c1c02 (diff) |
Fix connection to master equality engine in sets (#4877)
This corrects an issue introduced by a merge of a previous commit (b5b2858) which dropped the connection from sets to its master equality engine.
Fixes several issues in sets regressions, including a timeout in regress0.
-rw-r--r-- | src/theory/sets/theory_sets.cpp | 5 | ||||
-rw-r--r-- | src/theory/sets/theory_sets.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/theory/sets/theory_sets.cpp b/src/theory/sets/theory_sets.cpp index 17caac4f7..021db5bd3 100644 --- a/src/theory/sets/theory_sets.cpp +++ b/src/theory/sets/theory_sets.cpp @@ -203,6 +203,11 @@ eq::EqualityEngine* TheorySets::getEqualityEngine() return &d_equalityEngine; } +void TheorySets::setMasterEqualityEngine(eq::EqualityEngine* eq) +{ + d_equalityEngine.setMasterEqualityEngine(eq); +} + /**************************** eq::NotifyClass *****************************/ bool TheorySets::NotifyClass::eqNotifyTriggerEquality(TNode equality, diff --git a/src/theory/sets/theory_sets.h b/src/theory/sets/theory_sets.h index f1b59e419..505ba9547 100644 --- a/src/theory/sets/theory_sets.h +++ b/src/theory/sets/theory_sets.h @@ -65,6 +65,7 @@ class TheorySets : public Theory PPAssertStatus ppAssert(TNode in, SubstitutionMap& outSubstitutions) override; void presolve() override; void propagate(Effort) override; + void setMasterEqualityEngine(eq::EqualityEngine* eq) override; bool isEntailed(Node n, bool pol); /* equality engine */ virtual eq::EqualityEngine* getEqualityEngine() override; |