diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-07-15 00:20:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 05:20:11 +0000 |
commit | 17eb04b4e06a8b6d6ac18098d9efa961c49f6863 (patch) | |
tree | 58cc34d70db0bea1a04dad2714f4f796cea299a2 /src/theory/ee_manager_distributed.h | |
parent | 20db536832e9f2da6ed06917eedcad4101194ffc (diff) |
Move master equality engine notification to own file (#6877)
Preparation for central equality engine.
Diffstat (limited to 'src/theory/ee_manager_distributed.h')
-rw-r--r-- | src/theory/ee_manager_distributed.h | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/src/theory/ee_manager_distributed.h b/src/theory/ee_manager_distributed.h index 0bf184a57..8c7bb2618 100644 --- a/src/theory/ee_manager_distributed.h +++ b/src/theory/ee_manager_distributed.h @@ -22,6 +22,7 @@ #include <memory> #include "theory/ee_manager.h" +#include "theory/quantifiers/master_eq_notify.h" namespace cvc5 { namespace theory { @@ -59,38 +60,8 @@ class EqEngineManagerDistributed : public EqEngineManager void notifyModel(bool incomplete) override; private: - /** notify class for master equality engine */ - class MasterNotifyClass : public theory::eq::EqualityEngineNotify - { - public: - MasterNotifyClass(QuantifiersEngine* qe) : d_quantEngine(qe) {} - /** - * Called when a new equivalence class is created in the master equality - * engine. - */ - void eqNotifyNewClass(TNode t) override; - - bool eqNotifyTriggerPredicate(TNode predicate, bool value) override - { - return true; - } - bool eqNotifyTriggerTermEquality(TheoryId tag, - TNode t1, - TNode t2, - bool value) override - { - return true; - } - void eqNotifyConstantTermMerge(TNode t1, TNode t2) override {} - void eqNotifyMerge(TNode t1, TNode t2) override {} - void eqNotifyDisequal(TNode t1, TNode t2, TNode reason) override {} - - private: - /** Pointer to quantifiers engine */ - QuantifiersEngine* d_quantEngine; - }; /** The master equality engine notify class */ - std::unique_ptr<MasterNotifyClass> d_masterEENotify; + std::unique_ptr<quantifiers::MasterNotifyClass> d_masterEENotify; /** The master equality engine. */ std::unique_ptr<eq::EqualityEngine> d_masterEqualityEngine; /** The equality engine of the shared solver / shared terms database. */ |