3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 12:08:18 +00:00

cleanup more in dependent_expr_state_tactic to reduce mem consumption

This commit is contained in:
Nuno Lopes 2022-12-09 11:34:53 +00:00
parent ca6fed8b25
commit c6f9c09d70
2 changed files with 5 additions and 4 deletions

View file

@ -32,7 +32,6 @@ public:
m_fml(fml), m_fml(fml),
m_proof(p), m_proof(p),
m_dep(d) { m_dep(d) {
SASSERT(fml);
m.inc_ref(fml); m.inc_ref(fml);
m.inc_ref(d); m.inc_ref(d);
m.inc_ref(p); m.inc_ref(p);

View file

@ -49,7 +49,7 @@ public:
m(m), m(m),
m_params(p), m_params(p),
m_factory(f), m_factory(f),
m_dep(m, m.mk_true(), nullptr, nullptr) m_dep(m, nullptr, nullptr, nullptr)
{} {}
/** /**
@ -115,13 +115,13 @@ public:
} }
catch (rewriter_exception& ex) { catch (rewriter_exception& ex) {
throw tactic_exception(ex.msg()); throw tactic_exception(ex.msg());
} }
m_goal->elim_true(); m_goal->elim_true();
m_goal->elim_redundancies(); m_goal->elim_redundancies();
m_goal->inc_depth(); m_goal->inc_depth();
if (in->models_enabled()) if (in->models_enabled())
in->add(m_model_trail->get_model_converter().get()); in->add(m_model_trail->get_model_converter().get());
result.push_back(in.get()); result.push_back(in.get());
cleanup(); cleanup();
} }
@ -130,6 +130,8 @@ public:
m_simp->collect_statistics(m_st); m_simp->collect_statistics(m_st);
m_simp = nullptr; m_simp = nullptr;
m_model_trail = nullptr; m_model_trail = nullptr;
m_goal = nullptr;
m_dep = dependent_expr(m, nullptr, nullptr, nullptr);
} }
void collect_statistics(statistics & st) const override { void collect_statistics(statistics & st) const override {