diff options
author | Haniel Barbosa <hanielbbarbosa@gmail.com> | 2021-05-20 15:29:32 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 18:29:32 +0000 |
commit | a0644780130dd0ed86a9486e29aa326b3fe5d804 (patch) | |
tree | 8cd1f0e0b18e67fa91dfff48eac5204eaf4ee3fc /src/smt/smt_engine.cpp | |
parent | 61b14cbbbb1665496913e047d14fedee610efef1 (diff) |
Remove old unsat cores (#6581)
This commit removes the remaining old proof code and the code to produce unsat cores based on it.
Diffstat (limited to 'src/smt/smt_engine.cpp')
-rw-r--r-- | src/smt/smt_engine.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index 0e1ff8878..bd38f630d 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -33,7 +33,6 @@ #include "options/smt_options.h" #include "options/theory_options.h" #include "printer/printer.h" -#include "proof/proof_manager.h" #include "proof/unsat_core.h" #include "prop/prop_engine.h" #include "smt/abduction_solver.h" @@ -91,7 +90,6 @@ SmtEngine::SmtEngine(NodeManager* nm, Options* optr) d_routListener(new ResourceOutListener(*this)), d_snmListener(new SmtNodeManagerListener(*getDumpManager(), d_outMgr)), d_smtSolver(nullptr), - d_proofManager(nullptr), d_model(nullptr), d_checkModels(nullptr), d_pfManager(nullptr), @@ -140,15 +138,6 @@ SmtEngine::SmtEngine(NodeManager* nm, Options* optr) // make the quantifier elimination solver d_quantElimSolver.reset(new QuantElimSolver(*d_smtSolver)); - // The ProofManager is constructed before any other proof objects such as - // SatProof and TheoryProofs. The TheoryProofEngine and the SatProof are - // initialized in TheoryEngine and PropEngine respectively. - Assert(d_proofManager == nullptr); - - // d_proofManager must be created before Options has been finished - // being parsed from the input file. Because of this, we cannot trust - // that d_env->getOption(options::unsatCores) is set correctly yet. - d_proofManager.reset(new ProofManager(getUserContext())); } bool SmtEngine::isFullyInited() const { return d_state->isFullyInited(); } @@ -317,15 +306,6 @@ SmtEngine::~SmtEngine() //destroy all passes before destroying things that they refer to d_pp->cleanup(); - // d_proofManager is always created when proofs are enabled at configure - // time. Because of this, this code should not be wrapped in PROOF() which - // additionally checks flags such as - // d_env->getOption(options::produceProofs). - // - // Note: the proof manager must be destroyed before the theory engine. - // Because the destruction of the proofs depends on contexts owned be the - // theory solvers. - d_proofManager.reset(nullptr); d_pfManager.reset(nullptr); d_ucManager.reset(nullptr); @@ -1403,12 +1383,6 @@ UnsatCore SmtEngine::getUnsatCoreInternal() "Cannot get an unsat core unless immediately preceded by " "UNSAT/ENTAILED response."); } - // use old proof infrastructure - if (!d_pfManager) - { - d_proofManager->traceUnsatCore(); // just to trigger core creation - return UnsatCore(d_proofManager->extractUnsatCore()); - } // generate with new proofs PropEngine* pe = getPropEngine(); Assert(pe != nullptr); |