Skip to content

Remove unused parameter in value_set_analysis #2444

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
Jun 24, 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
4 changes: 1 addition & 3 deletions src/pointer-analysis/value_set_analysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Author: Daniel Kroening, [email protected]
void value_sets_to_xml(
std::function<const value_sett &(goto_programt::const_targett)> get_value_set,
const goto_programt &goto_program,
const irep_idt &identifier,
xmlt &dest)
{
source_locationt previous_location;
Expand Down Expand Up @@ -85,7 +84,7 @@ void convert(
{
xmlt &f=dest.new_element("function");
f.new_element("identifier").data=id2string(f_it->first);
value_set_analysis.convert(f_it->second.body, f_it->first, f);
value_set_analysis.convert(f_it->second.body, f);
}
}

Expand All @@ -98,6 +97,5 @@ void convert(

value_set_analysis.convert(
goto_program,
"",
dest.new_element("program"));
}
3 changes: 0 additions & 3 deletions src/pointer-analysis/value_set_analysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class xmlt;
void value_sets_to_xml(
std::function<const value_sett &(goto_programt::const_targett)> get_value_set,
const goto_programt &goto_program,
const irep_idt &identifier,
xmlt &dest);

template<class VSDT>
Expand All @@ -42,13 +41,11 @@ class value_set_analysis_templatet:

void convert(
const goto_programt &goto_program,
const irep_idt &identifier,
xmlt &dest) const
{
value_sets_to_xml(
[this](locationt l) { return (*this)[l].value_set; },
goto_program,
identifier,
dest);
}

Expand Down