mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
track assumptions when calling check-sat. regression detected by Tjark Weber running core extraction
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
53b3edc8cc
commit
3d73fe55c7
|
@ -1473,7 +1473,19 @@ 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 {
|
||||||
r = m_solver->check_sat(num_assumptions, assumptions);
|
if (produce_unsat_cores()) {
|
||||||
|
expr_ref_vector asms(m());
|
||||||
|
asms.append(num_assumptions, assumptions);
|
||||||
|
for (unsigned i = 0; 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;
|
||||||
|
|
Loading…
Reference in a new issue