diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-01-26 12:43:50 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-26 12:43:50 -0600 |
commit | ca648afb2a7574991b1dc9817c1b8e2546548073 (patch) | |
tree | 30bcc19878be364e9e2c61bc10e9974acf198f30 /src/theory/quantifiers/sygus/synth_conjecture.h | |
parent | 022dbeb9e2dc925cf0dcffb75ea57aedf09395de (diff) |
Refactor quantifiers engine initialization (#5813)
This is a step towards breaking up the quantifiers engine.
The key change is that QuantifiersEngine will not be passed as a pointer to the modules it contains. This PR makes it so that necessary modules take a QuantifiersState, which will eventually be extended as needed with additional query methods. For now, modules will take both until the dependencies on QuantifersEngine are removed.
This required that QuantifiersEngine now lives in TheoryQuantifiers, instead of in TheoryEngine, since the QuantifiersEngine must be initialized with QuantifiersState, which is a member of TheoryQuantifiers. Now, TheoryEngine retrieves the QuantifiersEngine from TheoryQuantifiers prior to finishing initialization on theories.
Diffstat (limited to 'src/theory/quantifiers/sygus/synth_conjecture.h')
-rw-r--r-- | src/theory/quantifiers/sygus/synth_conjecture.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/theory/quantifiers/sygus/synth_conjecture.h b/src/theory/quantifiers/sygus/synth_conjecture.h index 7786f57ad..1d43e30ff 100644 --- a/src/theory/quantifiers/sygus/synth_conjecture.h +++ b/src/theory/quantifiers/sygus/synth_conjecture.h @@ -82,7 +82,9 @@ class EnumValGenerator class SynthConjecture { public: - SynthConjecture(QuantifiersEngine* qe, SygusStatistics& s); + SynthConjecture(QuantifiersEngine* qe, + QuantifiersState& qs, + SygusStatistics& s); ~SynthConjecture(); /** presolve */ void presolve(); @@ -199,6 +201,8 @@ class SynthConjecture private: /** reference to quantifier engine */ QuantifiersEngine* d_qe; + /** Reference to the quantifiers state */ + QuantifiersState& d_qstate; /** reference to the statistics of parent */ SygusStatistics& d_stats; /** term database sygus of d_qe */ |