3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

Fix dealloc order in hypotheses_reducer::reset()

This commit is contained in:
Arie Gurfinkel 2018-05-17 08:51:33 -07:00
parent 689414d055
commit 9d4784baf6

View file

@ -174,14 +174,15 @@ proof_ref theory_axiom_reducer::reduce(proof* pr) {
}
void hypothesis_reducer::reset() {
m_cache.reset();
m_units.reset();
m_active_hyps.reset();
m_parent_hyps.reset();
for (auto t : m_pinned_active_hyps) dealloc(t);
m_pinned_active_hyps.reset();
m_active_hyps.reset();
m_units.reset();
m_cache.reset();
for (auto t : m_pinned_parent_hyps) dealloc(t);
m_pinned_parent_hyps.reset();
for (auto t : m_pinned_active_hyps) dealloc(t);
m_pinned_active_hyps.reset();
m_pinned.reset();
}
void hypothesis_reducer::compute_hypsets(proof *pr) {