Skip to content

Remove unused parameter from value_set_fivrt::flatten_rec #2544

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
Jul 7, 2018
Merged
Show file tree
Hide file tree
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
7 changes: 3 additions & 4 deletions src/pointer-analysis/value_set_fivr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ void value_set_fivrt::flatten(
#endif

flatten_seent seen;
flatten_rec(e, dest, seen, from_function, from_target_index);
flatten_rec(e, dest, seen, from_function);

#if 0
std::cout << "FLATTEN: Done.\n";
Expand All @@ -232,8 +232,7 @@ void value_set_fivrt::flatten_rec(
const entryt &e,
object_mapt &dest,
flatten_seent &seen,
unsigned at_function,
unsigned at_index) const
unsigned at_function) const
{
#if 0
std::cout << "FLATTEN_REC: " << e.identifier << e.suffix << '\n';
Expand Down Expand Up @@ -294,7 +293,7 @@ void value_set_fivrt::flatten_rec(
if(r_it->function==at_function)
{
object_mapt temp;
flatten_rec(fi->second, temp, seen, r_it->function, r_it->from);
flatten_rec(fi->second, temp, seen, r_it->function);

for(object_map_dt::iterator t_it=temp.write().begin();
t_it!=temp.write().end();
Expand Down
3 changes: 1 addition & 2 deletions src/pointer-analysis/value_set_fivr.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,7 @@ class value_set_fivrt
const entryt&,
object_mapt&,
flatten_seent&,
unsigned from_function,
unsigned from_index) const;
unsigned from_function) const;

bool recursive_find(
const irep_idt &ident,
Expand Down