3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-11 05:30:51 +00:00

fix #7404, relates to #7400.

This commit is contained in:
Nikolaj Bjorner 2024-09-27 11:36:10 +01:00
parent d047b86439
commit 01cf0427b4
6 changed files with 55 additions and 10 deletions

View file

@ -98,6 +98,7 @@ void simplify_tactic::operator()(goal_ref const & in,
(*m_imp)(*(in.get()));
in->inc_depth();
result.push_back(in.get());
m_clean = false;
}
catch (rewriter_exception & ex) {
throw tactic_exception(ex.msg());
@ -106,10 +107,13 @@ void simplify_tactic::operator()(goal_ref const & in,
void simplify_tactic::cleanup() {
if (m_clean)
return;
ast_manager & m = m_imp->m();
params_ref p = std::move(m_params);
m_imp->~imp();
new (m_imp) imp(m, p);
m_clean = true;
}
void simplify_tactic::collect_statistics(statistics& st) const {