Skip to content

Commit 888f168

Browse files
committed
Remove unused parameter from update_scores
1 parent 7c1de91 commit 888f168

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/cbmc/fault_localization.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ bool fault_localizationt::check(const lpointst &lpoints,
104104
return true;
105105
}
106106

107-
void fault_localizationt::update_scores(lpointst &lpoints,
108-
const lpoints_valuet &value)
107+
void fault_localizationt::update_scores(lpointst &lpoints)
109108
{
110109
for(auto &l : lpoints)
111110
{
@@ -131,10 +130,10 @@ void fault_localizationt::localize_linear(lpointst &lpoints)
131130
{
132131
v[i]=tvt(tvt::tv_enumt::TV_TRUE);
133132
if(!check(lpoints, v))
134-
update_scores(lpoints, v);
133+
update_scores(lpoints);
135134
v[i]=tvt(tvt::tv_enumt::TV_FALSE);
136135
if(!check(lpoints, v))
137-
update_scores(lpoints, v);
136+
update_scores(lpoints);
138137
v[i]=tvt(tvt::tv_enumt::TV_UNKNOWN);
139138
}
140139
}

src/cbmc/fault_localization.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ class fault_localizationt:
7272
// specify an lpoint combination to check
7373
typedef std::vector<tvt> lpoints_valuet;
7474
bool check(const lpointst &lpoints, const lpoints_valuet &value);
75-
void update_scores(lpointst &lpoints,
76-
const lpoints_valuet &value);
75+
void update_scores(lpointst &lpoints);
7776

7877
// localization method: flip each point
7978
void localize_linear(lpointst &lpoints);

0 commit comments

Comments
 (0)