diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-01-28 13:27:27 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 13:27:27 -0600 |
commit | 3234db430074e278258e6d687c07146a59769a92 (patch) | |
tree | 17db55e1ff335c3998e1c4e172d174dc9f6e3b21 /src/theory/ee_setup_info.h | |
parent | 4cd2d73366aba081a38900ddc2f4f172ce9ed2f8 (diff) |
Use standard equality engine information in quantifiers state (#5824)
This refactors quantifiers so that it uses the standard interfaces for setting up an equality engine and using it via TheoryState.
This eliminates the need for several special interfaces including getMasterEqualityEngine, CombinationEngine::getCoreEqualityEngine, and most uses of EqualityQuery.
Diffstat (limited to 'src/theory/ee_setup_info.h')
-rw-r--r-- | src/theory/ee_setup_info.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/theory/ee_setup_info.h b/src/theory/ee_setup_info.h index 78f2f211e..7770cfc49 100644 --- a/src/theory/ee_setup_info.h +++ b/src/theory/ee_setup_info.h @@ -37,13 +37,21 @@ class EqualityEngineNotify; */ struct EeSetupInfo { - EeSetupInfo() : d_notify(nullptr), d_constantsAreTriggers(true) {} + EeSetupInfo() + : d_notify(nullptr), d_constantsAreTriggers(true), d_useMaster(false) + { + } /** The notification class of the theory */ eq::EqualityEngineNotify* d_notify; /** The name of the equality engine */ std::string d_name; /** Constants are triggers */ bool d_constantsAreTriggers; + /** + * Whether we want our state to use the master equality engine. This should + * be true exclusively for the theory of quantifiers. + */ + bool d_useMaster; }; } // namespace theory |