diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-10-04 13:32:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-04 18:32:20 +0000 |
commit | 5712bdcd06a9f9502c3b5487386e1277702e25f4 (patch) | |
tree | d9f67cd8d5508442fb9329b4d07f3f78944da29d /src/prop | |
parent | 8210ad99ec9ad0a41fd4877878b2d0f20d18304a (diff) |
Make decision engine use env (#7300)
Diffstat (limited to 'src/prop')
-rw-r--r-- | src/prop/prop_engine.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/prop/prop_engine.cpp b/src/prop/prop_engine.cpp index 9060c318c..34dff2ba8 100644 --- a/src/prop/prop_engine.cpp +++ b/src/prop/prop_engine.cpp @@ -79,7 +79,6 @@ PropEngine::PropEngine(TheoryEngine* te, Env& env) d_assumptions(d_env.getUserContext()) { Debug("prop") << "Constructing the PropEngine" << std::endl; - context::Context* satContext = d_env.getContext(); context::UserContext* userContext = d_env.getUserContext(); ProofNodeManager* pnm = d_env.getProofNodeManager(); ResourceManager* rm = d_env.getResourceManager(); @@ -88,17 +87,17 @@ PropEngine::PropEngine(TheoryEngine* te, Env& env) if (dmode == options::DecisionMode::JUSTIFICATION || dmode == options::DecisionMode::STOPONLY) { - d_decisionEngine.reset(new decision::JustificationStrategy( - satContext, userContext, d_skdm.get(), rm)); + d_decisionEngine.reset( + new decision::JustificationStrategy(env, d_skdm.get())); } else if (dmode == options::DecisionMode::JUSTIFICATION_OLD || dmode == options::DecisionMode::STOPONLY_OLD) { - d_decisionEngine.reset(new DecisionEngineOld(satContext, userContext, rm)); + d_decisionEngine.reset(new DecisionEngineOld(env)); } else { - d_decisionEngine.reset(new decision::DecisionEngineEmpty(satContext, rm)); + d_decisionEngine.reset(new decision::DecisionEngineEmpty(env)); } d_satSolver = SatSolverFactory::createCDCLTMinisat(smtStatisticsRegistry()); |