diff options
author | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2010-05-25 05:30:40 +0000 |
---|---|---|
committer | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2010-05-25 05:30:40 +0000 |
commit | e87c14798b99ccb586751d291b0eeb3208265bd8 (patch) | |
tree | 8ffab42bc3b5b27d4a0f209adfd274f8741f26cd /src/smt | |
parent | 4ba56dc24c972afae6137e4dd6a05f3957e48bf5 (diff) |
Some initial changes to allow for lemmas on demand.
To be done:
* Add erasable map Clause* to bool to minisat (backtracks with the solver)
* Add map from Clause* to Node (clauses that came from a node)
* Add reference counting Literal -> Node to CNFManager
* If Literal -> Node refcount goes to zero, the clauses of Node can be erased (if eresable)
* If clause is erased for each L in clause L -> Node refcount goes down
Diffstat (limited to 'src/smt')
-rw-r--r-- | src/smt/smt_engine.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index a55c146b8..3b003846c 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -20,6 +20,8 @@ #include "util/exception.h" #include "util/options.h" #include "prop/prop_engine.h" +#include "theory/theory_engine.h" + using namespace CVC4::prop; using CVC4::context::Context; @@ -72,8 +74,11 @@ SmtEngine::SmtEngine(ExprManager* em, const Options* opts) throw () : NodeManagerScope nms(d_nodeManager); d_decisionEngine = new DecisionEngine; - d_theoryEngine = new TheoryEngine(this, d_ctxt); + // We have mutual dependancy here, so we add the prop engine to the theory + // engine later (it is non-essential there) + d_theoryEngine = new TheoryEngine(d_ctxt); d_propEngine = new PropEngine(opts, d_decisionEngine, d_theoryEngine, d_ctxt); + d_theoryEngine->setPropEngine(d_propEngine); } void SmtEngine::shutdown() { |