summaryrefslogtreecommitdiff
path: root/src/smt/smt_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/smt/smt_engine.cpp')
-rw-r--r--src/smt/smt_engine.cpp7
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() {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback