3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 13:28:47 +00:00

fix core extraction for QF_BV theory/inc_sat_solver based on regressions pointed out by Matthias Heizmann and Tjark Weber

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2016-07-09 12:35:54 -07:00
parent 8f862f8fed
commit 0a6b03808c

View file

@ -1473,19 +1473,7 @@ void cmd_context::check_sat(unsigned num_assumptions, expr * const * assumptions
scoped_timer timer(timeout, &eh); scoped_timer timer(timeout, &eh);
scoped_rlimit _rlimit(m().limit(), rlimit); scoped_rlimit _rlimit(m().limit(), rlimit);
try { try {
if (produce_unsat_cores()) { r = m_solver->check_sat(num_assumptions, assumptions);
expr_ref_vector asms(m());
asms.append(num_assumptions, assumptions);
for (unsigned i = 0; false && i < m_assertion_names.size(); ++i) {
if (m_assertion_names[i]) {
asms.push_back(m_assertion_names[i]);
}
}
r = m_solver->check_sat(asms);
}
else {
r = m_solver->check_sat(num_assumptions, assumptions);
}
} }
catch (z3_error & ex) { catch (z3_error & ex) {
throw ex; throw ex;