-
Notifications
You must be signed in to change notification settings - Fork 277
Error handling cleanup in solvers/floatbv #2945
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
Error handling cleanup in solvers/floatbv #2945
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passed Diffblue compatibility checks (cbmc commit: 9df60c6).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/84700185
src/solvers/floatbv/float_bv.cpp
Outdated
@@ -810,9 +812,9 @@ exprt float_bvt::relation( | |||
not_exprt(nan)); | |||
} | |||
else | |||
assert(0); | |||
UNREACHABLE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this else
branch should just be removed? It's redundant with the code afterwards.
src/solvers/floatbv/float_utils.cpp
Outdated
@@ -646,15 +644,16 @@ literalt float_utilst::relation( | |||
!NaN); | |||
} | |||
else | |||
assert(0); | |||
UNREACHABLE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant with the code afterwards, just remove the else
branch
9df60c6
to
98538b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passed Diffblue compatibility checks (cbmc commit: 98538b4).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85736377
98538b4
to
0dce179
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passed Diffblue compatibility checks (cbmc commit: 0dce179).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/86879780
No description provided.