diff options
Diffstat (limited to 'src/smt/smt_engine.cpp')
-rw-r--r-- | src/smt/smt_engine.cpp | 56 |
1 files changed, 5 insertions, 51 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index cd8bd1d7b..279761b43 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -231,7 +231,7 @@ void SmtEngine::finishInit() // dump out a set-logic command only when raw-benchmark is disabled to avoid // dumping the command twice. - if (Dump.isOn("benchmark") && !Dump.isOn("raw-benchmark")) + if (Dump.isOn("benchmark")) { LogicInfo everything; everything.lock(); @@ -338,12 +338,6 @@ void SmtEngine::setLogic(const std::string& s) try { setLogic(LogicInfo(s)); - // dump out a set-logic command - if (Dump.isOn("raw-benchmark")) - { - getPrinter().toStreamCmdSetBenchmarkLogic( - d_env->getDumpOut(), getLogicInfo().getLogicString()); - } } catch (IllegalArgumentException& e) { @@ -643,12 +637,6 @@ void SmtEngine::defineFunctionsRec( debugCheckFunctionBody(formulas[i], formals[i], funcs[i]); } - if (Dump.isOn("raw-benchmark")) - { - getPrinter().toStreamCmdDefineFunctionRec( - d_env->getDumpOut(), funcs, formals, formulas); - } - NodeManager* nm = getNodeManager(); for (unsigned i = 0, size = funcs.size(); i < size; i++) { @@ -679,9 +667,9 @@ void SmtEngine::defineFunctionsRec( Node boundVars = nm->mkNode(kind::BOUND_VAR_LIST, formals[i]); lem = nm->mkNode(kind::FORALL, boundVars, lem, aexpr); } - // assert the quantified formula - // notice we don't call assertFormula directly, since this would - // duplicate the output on raw-benchmark. + // Assert the quantified formula. Notice we don't call assertFormula + // directly, since we should call a private member method since we have + // already ensuring this SmtEngine is initialized above. // add define recursive definition to the assertions d_asserts->addDefineFunDefinition(lem, global); } @@ -968,11 +956,6 @@ Result SmtEngine::assertFormula(const Node& formula) Trace("smt") << "SmtEngine::assertFormula(" << formula << ")" << endl; - if (Dump.isOn("raw-benchmark")) - { - getPrinter().toStreamCmdAssert(d_env->getDumpOut(), formula); - } - // Substitute out any abstract values in ex Node n = d_absValues->substituteAbstractValues(formula); @@ -990,11 +973,6 @@ void SmtEngine::declareSygusVar(Node var) { SmtScope smts(this); d_sygusSolver->declareSygusVar(var); - if (Dump.isOn("raw-benchmark")) - { - getPrinter().toStreamCmdDeclareVar(d_env->getDumpOut(), var, var.getType()); - } - // don't need to set that the conjecture is stale } void SmtEngine::declareSynthFun(Node func, @@ -1006,16 +984,6 @@ void SmtEngine::declareSynthFun(Node func, finishInit(); d_state->doPendingPops(); d_sygusSolver->declareSynthFun(func, sygusType, isInv, vars); - - // !!! TEMPORARY: We cannot construct a SynthFunCommand since we cannot - // construct a Term-level Grammar from a Node-level sygus TypeNode. Thus we - // must print the command using the Node-level utility method for now. - - if (Dump.isOn("raw-benchmark")) - { - getPrinter().toStreamCmdSynthFun( - d_env->getDumpOut(), func, vars, isInv, sygusType); - } } void SmtEngine::declareSynthFun(Node func, bool isInv, @@ -1031,10 +999,6 @@ void SmtEngine::assertSygusConstraint(Node constraint) SmtScope smts(this); finishInit(); d_sygusSolver->assertSygusConstraint(constraint); - if (Dump.isOn("raw-benchmark")) - { - getPrinter().toStreamCmdConstraint(d_env->getDumpOut(), constraint); - } } void SmtEngine::assertSygusInvConstraint(Node inv, @@ -1045,11 +1009,6 @@ void SmtEngine::assertSygusInvConstraint(Node inv, SmtScope smts(this); finishInit(); d_sygusSolver->assertSygusInvConstraint(inv, pre, trans, post); - if (Dump.isOn("raw-benchmark")) - { - getPrinter().toStreamCmdInvConstraint( - d_env->getDumpOut(), inv, pre, trans, post); - } } Result SmtEngine::checkSynth() @@ -1200,12 +1159,7 @@ std::string SmtEngine::getModel(const std::vector<TypeNode>& declaredSorts, // completely accessible by the user. This is currently not rigorously // enforced. An alternative design would be to have this method implemented // at the API level, but this makes exceptions in the text interface less - // intuitive and makes it impossible to implement raw-benchmark at the - // SmtEngine level. - if (Dump.isOn("raw-benchmark")) - { - getPrinter().toStreamCmdGetModel(d_env->getDumpOut()); - } + // intuitive. TheoryModel* tm = getAvailableModel("get model"); // use the smt::Model model utility for printing const Options& opts = d_env->getOptions(); |