diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-12-10 09:07:47 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-10 09:07:47 -0600 |
commit | ee5fed52332ec6baddc8ecd8f8e04a644990bf29 (patch) | |
tree | e93025f800e1a5f8d851859c19734ed575f605e9 /src/smt | |
parent | 2b4e146c3a090e21b64d48ebb4308e5ec58a8c4b (diff) |
Allow unsat cores with sygus inference (#3550)
Diffstat (limited to 'src/smt')
-rw-r--r-- | src/smt/smt_engine.cpp | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index 80296f400..0276684d6 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -1338,19 +1338,6 @@ void SmtEngine::setDefaults() { << endl; options::unconstrainedSimp.set(false); } - if (options::sygusInference()) - { - if (options::sygusInference.wasSetByUser()) - { - throw OptionException( - "sygus inference not supported with unsat cores/proofs/incremental " - "solving"); - } - Notice() << "SmtEngine: turning off sygus inference to support unsat " - "cores/proofs/incremental solving" - << std::endl; - options::sygusInference.set(false); - } } else { @@ -1371,6 +1358,22 @@ void SmtEngine::setDefaults() { } } + if (options::incrementalSolving() || options::proof()) + { + if (options::sygusInference()) + { + if (options::sygusInference.wasSetByUser()) + { + throw OptionException( + "sygus inference not supported with proofs/incremental solving"); + } + Notice() << "SmtEngine: turning off sygus inference to support " + "proofs/incremental solving" + << std::endl; + options::sygusInference.set(false); + } + } + // Disable options incompatible with unsat cores and proofs or output an // error if enabled explicitly if (options::unsatCores() || options::proof()) |