Skip to content
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

suspicious unused value in SipsMetric.cpp #2218

Closed
quentin opened this issue Mar 16, 2022 · 2 comments
Closed

suspicious unused value in SipsMetric.cpp #2218

quentin opened this issue Mar 16, 2022 · 2 comments
Labels
bug - triage Bugs with unknown causes that require further investigation

Comments

@quentin
Copy link
Member

quentin commented Mar 16, 2022

Hi, clang found this unused variable value although the involved computation seems important:

double value = log(profileUse.getRelationSize(atom->getQualifiedName()));
value *= (numFree * 1.0) / arity;
}
return cost;

Is a cost.push_back(value); missing or something ?

@b-scholz
Copy link
Member

Yes - that is an issue. Something went wrong here.

@b-scholz b-scholz added the bug - triage Bugs with unknown causes that require further investigation label Mar 17, 2022
@SanaaHamel
Copy link

fixed by #2245

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug - triage Bugs with unknown causes that require further investigation
Projects
None yet
Development

No branches or pull requests

3 participants