diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-09-26 10:07:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-26 10:07:42 -0500 |
commit | 1fe9c2efe36b126c70097b0f83db5654e0abcabe (patch) | |
tree | 46323cb7c712618a974092bced6f66dd07be3862 /src/theory/ee_manager.cpp | |
parent | 6ad02b5e0599149e0bd1548855aec8ac890f5a87 (diff) |
Connect the shared solver to theory engine (#5103)
This makes SharedSolver the main communication point for TheoryEngine during solving for combination-related solving tasks. This class is a generalization of SharedTermsDatabase, and in the distributed architecture is a wrapper around shared terms database.
It has 5 callbacks in theory engine: for preregistration, preNotifyFact (which calls addSharedTerms on theories), assertSharedEquality, explain, getEqualityStatus.
This PR has no intended behavior changes.
FYI @barrettcw
Diffstat (limited to 'src/theory/ee_manager.cpp')
-rw-r--r-- | src/theory/ee_manager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/theory/ee_manager.cpp b/src/theory/ee_manager.cpp index e473388f0..697689fb9 100644 --- a/src/theory/ee_manager.cpp +++ b/src/theory/ee_manager.cpp @@ -19,7 +19,10 @@ namespace CVC4 { namespace theory { -EqEngineManager::EqEngineManager(TheoryEngine& te) : d_te(te) {} +EqEngineManager::EqEngineManager(TheoryEngine& te, SharedSolver& shs) + : d_te(te), d_sharedSolver(shs) +{ +} const EeTheoryInfo* EqEngineManager::getEeTheoryInfo(TheoryId tid) const { |