Fix connection to master equality engine in sets (#4877)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Wed, 12 Aug 2020 14:18:24 +0000 (09:18 -0500)
committerGitHub <noreply@github.com>
Wed, 12 Aug 2020 14:18:24 +0000 (09:18 -0500)
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.

src/theory/sets/theory_sets.cpp
src/theory/sets/theory_sets.h

index 17caac4f7d7bd6f2be58f9794afdb44dffcadb83..021db5bd384abebfae763ec9db81a6033a71a70b 100644 (file)
@@ -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,
index f1b59e419577aed93341329db7de9418fd7d87de..505ba95471672f04b03e4ff42862305b9d359193 100644 (file)
@@ -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;