Skip to content

[TG-3259] Clear string_refinement equations #2054

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/solvers/refinement/string_refinement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,6 @@ decision_proceduret::resultt string_refinementt::dec_solve()
output_equations(debug(), equations, ns);
#endif

// The object `dependencies` is also used by get, so we have to use it as a
// class member but we make sure it is cleared at each `dec_solve` call.
dependencies.clear();
debug() << "dec_solve: compute dependency graph and remove function "
<< "applications captured by the dependencies:" << eom;
std::vector<exprt> local_equations;
Expand All @@ -658,6 +655,7 @@ decision_proceduret::resultt string_refinementt::dec_solve()
if(!add_node(dependencies, eq, generator.array_pool))
local_equations.push_back(eq);
}
equations.clear();

#ifdef DEBUG
dependencies.output_dot(debug());
Expand Down