mirror of
https://github.com/Z3Prover/z3
synced 2025-06-05 21:53:23 +00:00
enable smt tactic to be used even if cores are enabled, as long as no cores are tracked, fixes issue #189
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
af23f226bf
commit
424f34d3d9
1 changed files with 2 additions and 2 deletions
|
@ -210,9 +210,9 @@ public:
|
||||||
ptr_vector<expr> assumptions;
|
ptr_vector<expr> assumptions;
|
||||||
ref<filter_model_converter> fmc;
|
ref<filter_model_converter> fmc;
|
||||||
if (in->unsat_core_enabled()) {
|
if (in->unsat_core_enabled()) {
|
||||||
if (in->proofs_enabled())
|
|
||||||
throw tactic_exception("smt tactic does not support simultaneous generation of proofs and unsat cores");
|
|
||||||
extract_clauses_and_dependencies(in, clauses, assumptions, bool2dep, fmc);
|
extract_clauses_and_dependencies(in, clauses, assumptions, bool2dep, fmc);
|
||||||
|
if (in->proofs_enabled() && !assumptions.empty())
|
||||||
|
throw tactic_exception("smt tactic does not support simultaneous generation of proofs and unsat cores");
|
||||||
for (unsigned i = 0; i < clauses.size(); ++i) {
|
for (unsigned i = 0; i < clauses.size(); ++i) {
|
||||||
m_ctx->assert_expr(clauses[i].get());
|
m_ctx->assert_expr(clauses[i].get());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue