mirror of
https://github.com/Z3Prover/z3
synced 2025-08-11 05:30:51 +00:00
parent
d047b86439
commit
01cf0427b4
6 changed files with 55 additions and 10 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue