summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/skolemize.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-01-26 12:43:50 -0600
committerGitHub <noreply@github.com>2021-01-26 12:43:50 -0600
commitca648afb2a7574991b1dc9817c1b8e2546548073 (patch)
tree30bcc19878be364e9e2c61bc10e9974acf198f30 /src/theory/quantifiers/skolemize.cpp
parent022dbeb9e2dc925cf0dcffb75ea57aedf09395de (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/skolemize.cpp')
-rw-r--r--src/theory/quantifiers/skolemize.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/theory/quantifiers/skolemize.cpp b/src/theory/quantifiers/skolemize.cpp
index 61dd0c15e..901b7ad82 100644
--- a/src/theory/quantifiers/skolemize.cpp
+++ b/src/theory/quantifiers/skolemize.cpp
@@ -29,13 +29,14 @@ namespace theory {
namespace quantifiers {
Skolemize::Skolemize(QuantifiersEngine* qe,
- context::UserContext* u,
+ QuantifiersState& qs,
ProofNodeManager* pnm)
: d_quantEngine(qe),
- d_skolemized(u),
+ d_skolemized(qs.getUserContext()),
d_pnm(pnm),
d_epg(pnm == nullptr ? nullptr
- : new EagerProofGenerator(pnm, u, "Skolemize::epg"))
+ : new EagerProofGenerator(
+ pnm, qs.getUserContext(), "Skolemize::epg"))
{
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback