3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-22 12:22:05 +00:00

Fix bug in iuc_solver::get_unsat_core() that prevented clean cores

This commit is contained in:
Arie Gurfinkel 2018-06-13 15:11:35 -07:00
parent d38879e478
commit 619f681d28

View file

@ -215,13 +215,12 @@ void iuc_solver::reset_statistics ()
m_learn_core_sw.reset(); m_learn_core_sw.reset();
} }
void iuc_solver::get_unsat_core (expr_ref_vector &core) void iuc_solver::get_unsat_core (expr_ref_vector &core) {
{
m_solver.get_unsat_core (core); m_solver.get_unsat_core (core);
ptr_vector<expr> _core(core.size(), core.c_ptr()); undo_proxies_in_core (core);
undo_proxies_in_core (_core);
} }
void iuc_solver::undo_proxies_in_core (ptr_vector<expr> &r)
void iuc_solver::undo_proxies_in_core (expr_ref_vector &r)
{ {
app_ref e(m); app_ref e(m);
expr_fast_mark1 bg; expr_fast_mark1 bg;