Skip to content

Commit 0062a9c

Browse files
authored
Merge pull request diffblue#2444 from tautschnig/vs-value-set
Remove unused parameter in value_set_analysis
2 parents 0c5a497 + 7621a86 commit 0062a9c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/pointer-analysis/value_set_analysis.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Author: Daniel Kroening, [email protected]
2121
void value_sets_to_xml(
2222
std::function<const value_sett &(goto_programt::const_targett)> get_value_set,
2323
const goto_programt &goto_program,
24-
const irep_idt &identifier,
2524
xmlt &dest)
2625
{
2726
source_locationt previous_location;
@@ -85,7 +84,7 @@ void convert(
8584
{
8685
xmlt &f=dest.new_element("function");
8786
f.new_element("identifier").data=id2string(f_it->first);
88-
value_set_analysis.convert(f_it->second.body, f_it->first, f);
87+
value_set_analysis.convert(f_it->second.body, f);
8988
}
9089
}
9190

@@ -98,6 +97,5 @@ void convert(
9897

9998
value_set_analysis.convert(
10099
goto_program,
101-
"",
102100
dest.new_element("program"));
103101
}

src/pointer-analysis/value_set_analysis.h

-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class xmlt;
2323
void value_sets_to_xml(
2424
std::function<const value_sett &(goto_programt::const_targett)> get_value_set,
2525
const goto_programt &goto_program,
26-
const irep_idt &identifier,
2726
xmlt &dest);
2827

2928
template<class VSDT>
@@ -42,13 +41,11 @@ class value_set_analysis_templatet:
4241

4342
void convert(
4443
const goto_programt &goto_program,
45-
const irep_idt &identifier,
4644
xmlt &dest) const
4745
{
4846
value_sets_to_xml(
4947
[this](locationt l) { return (*this)[l].value_set; },
5048
goto_program,
51-
identifier,
5249
dest);
5350
}
5451

0 commit comments

Comments
 (0)