From da66d47ddff4315db54bbcd3b8f46cf1040d5fd0 Mon Sep 17 00:00:00 2001 From: Kshitij Bansal Date: Thu, 14 Jun 2012 17:14:30 +0000 Subject: [PATCH] bug ifx, mv --- src/smt/smt_engine.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index 747c92c0c..75d306663 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -329,10 +329,13 @@ SmtEngine::SmtEngine(ExprManager* em) throw(AssertionException) : void SmtEngine::finishInit() { d_decisionEngine = new DecisionEngine(d_context, d_userContext); + d_decisionEngine->init(); // enable appropriate strategies + d_propEngine = new PropEngine(d_theoryEngine, d_decisionEngine, d_context); + d_theoryEngine->setPropEngine(d_propEngine); d_theoryEngine->setDecisionEngine(d_decisionEngine); - // d_decisionEngine->setPropEngine(d_propEngine); + } void SmtEngine::finalOptionsAreSet() { @@ -350,8 +353,6 @@ void SmtEngine::finalOptionsAreSet() { d_fullyInited = true; d_logic.lock(); - d_decisionEngine->init(); - d_propEngine->assertFormula(NodeManager::currentNM()->mkConst(true)); d_propEngine->assertFormula(NodeManager::currentNM()->mkConst(false).notNode()); } @@ -532,7 +533,7 @@ void SmtEngine::setLogicInternal() throw(AssertionException) { d_earlyTheoryPP = false; } // Turn on justification heuristic of the decision engine for QF_BV and QF_AUFBV - if(! Options::current()->repeatSimpSetByUser) { + if(!Options::current()->decisionModeSetByUser) { Options::DecisionMode decMode = //QF_BV ( !d_logic.isQuantified() && -- 2.30.2