diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-10-18 19:37:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-18 19:37:11 -0500 |
commit | 547bd91e189b28da9950e12037d1e88079157479 (patch) | |
tree | 7f225e6df081071028c9e6102c902a6224179edf /src/smt/smt_engine.cpp | |
parent | 10707e3ec6f2cab793919f2d1a159e13cdd032a9 (diff) |
Non-implied mode for model cores (#2653)
Diffstat (limited to 'src/smt/smt_engine.cpp')
-rw-r--r-- | src/smt/smt_engine.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index a2dd8276b..63c970920 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -1235,7 +1235,7 @@ void SmtEngine::setDefaults() { } if ((options::checkModels() || options::checkSynthSol() - || options::produceModelCores()) + || options::modelCoresMode() != MODEL_CORES_NONE) && !options::produceAssertions()) { Notice() << "SmtEngine: turning on produce-assertions to support " @@ -1432,7 +1432,7 @@ void SmtEngine::setDefaults() { // cases where we need produce models if (!options::produceModels() && (options::produceAssignments() || options::sygusRewSynthCheck() - || options::produceModelCores() || is_sygus)) + || is_sygus)) { Notice() << "SmtEngine: turning on produce-models" << endl; setOption("produce-models", SExpr("true")); @@ -4263,12 +4263,12 @@ Model* SmtEngine::getModel() { } TheoryModel* m = d_theoryEngine->getModel(); - if (options::produceModelCores()) + if (options::modelCoresMode() != MODEL_CORES_NONE) { // If we enabled model cores, we compute a model core for m based on our // assertions using the model core builder utility std::vector<Expr> easserts = getAssertions(); - ModelCoreBuilder::setModelCore(easserts, m); + ModelCoreBuilder::setModelCore(easserts, m, options::modelCoresMode()); } m->d_inputName = d_filename; return m; |