Skip to content

Remove unused parameter from update_scores #2473

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 26, 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/cbmc/fault_localization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ bool fault_localizationt::check(const lpointst &lpoints,
return true;
}

void fault_localizationt::update_scores(lpointst &lpoints,
const lpoints_valuet &value)
void fault_localizationt::update_scores(lpointst &lpoints)
{
for(auto &l : lpoints)
{
Expand All @@ -131,10 +130,10 @@ void fault_localizationt::localize_linear(lpointst &lpoints)
{
v[i]=tvt(tvt::tv_enumt::TV_TRUE);
if(!check(lpoints, v))
update_scores(lpoints, v);
update_scores(lpoints);
v[i]=tvt(tvt::tv_enumt::TV_FALSE);
if(!check(lpoints, v))
update_scores(lpoints, v);
update_scores(lpoints);
v[i]=tvt(tvt::tv_enumt::TV_UNKNOWN);
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/cbmc/fault_localization.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ class fault_localizationt:
// specify an lpoint combination to check
typedef std::vector<tvt> lpoints_valuet;
bool check(const lpointst &lpoints, const lpoints_valuet &value);
void update_scores(lpointst &lpoints,
const lpoints_valuet &value);
void update_scores(lpointst &lpoints);

// localization method: flip each point
void localize_linear(lpointst &lpoints);
Expand Down