Skip to content

Commit

Permalink
cleanup more in dependent_expr_state_tactic to reduce mem consumption
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Dec 9, 2022
1 parent ca6fed8 commit c6f9c09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/ast/simplifiers/dependent_expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class dependent_expr {
m_fml(fml),
m_proof(p),
m_dep(d) {
SASSERT(fml);
m.inc_ref(fml);
m.inc_ref(d);
m.inc_ref(p);
Expand Down
8 changes: 5 additions & 3 deletions src/tactic/dependent_expr_state_tactic.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class dependent_expr_state_tactic : public tactic, public dependent_expr_state {
m(m),
m_params(p),
m_factory(f),
m_dep(m, m.mk_true(), nullptr, nullptr)
m_dep(m, nullptr, nullptr, nullptr)
{}

/**
Expand Down Expand Up @@ -115,13 +115,13 @@ class dependent_expr_state_tactic : public tactic, public dependent_expr_state {
}
catch (rewriter_exception& ex) {
throw tactic_exception(ex.msg());
}
}
m_goal->elim_true();
m_goal->elim_redundancies();
m_goal->inc_depth();
if (in->models_enabled())
in->add(m_model_trail->get_model_converter().get());
result.push_back(in.get());
result.push_back(in.get());
cleanup();
}

Expand All @@ -130,6 +130,8 @@ class dependent_expr_state_tactic : public tactic, public dependent_expr_state {
m_simp->collect_statistics(m_st);
m_simp = nullptr;
m_model_trail = nullptr;
m_goal = nullptr;
m_dep = dependent_expr(m, nullptr, nullptr, nullptr);
}

void collect_statistics(statistics & st) const override {
Expand Down

0 comments on commit c6f9c09

Please sign in to comment.