-
Notifications
You must be signed in to change notification settings - Fork 273
Cleanup error handling in solvers/miniBDD #2959
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
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: c740461).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/84843475
src/solvers/miniBDD/miniBDD.cpp
Outdated
// NOLINTNEXTLINE(build/deprecated) | ||
assert(reference_counter!=0); | ||
PRECONDITION_WITH_DIAGNOSTICS( | ||
reference_counter != 0, "All references were already removed."); |
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.
start with lower case, no full stop at the end (several occurrences)
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: c29507d).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85156392
Lower cases and full dot fixed. |
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.
Please squash commits before merging.
src/solvers/miniBDD/miniBDD.inc
Outdated
@@ -18,7 +18,7 @@ inline mini_bddt::mini_bddt(class mini_bdd_nodet *_node):node(_node) | |||
|
|||
inline mini_bddt &mini_bddt::operator=(const mini_bddt &x) | |||
{ | |||
assert(&x!=this); | |||
PRECONDITION_WITH_DIAGNOSTICS(&x!=this, "cannot assign itself"); |
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.
Nit-pick: add spacing around !=
src/solvers/miniBDD/miniBDD.inc
Outdated
assert(is_initialized()); | ||
assert(node->node_number>=2); | ||
PRECONDITION_WITH_DIAGNOSTICS(is_initialized(), "BDD has to be initialized"); | ||
PRECONDITION_WITH_DIAGNOSTICS(node->node_number>=2, "only non-terminal nodes have out-going edges"); |
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.
Add spacing around >=
src/solvers/miniBDD/miniBDD.inc
Outdated
assert(is_initialized()); | ||
assert(node->node_number>=2); | ||
PRECONDITION_WITH_DIAGNOSTICS(is_initialized(), "BDD has to be initialized"); | ||
PRECONDITION_WITH_DIAGNOSTICS(node->node_number>=2, "only non-terminal nodes have out-going edges"); |
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.
Spacing around >=
c29507d
to
534d01d
Compare
Added spaces around infix operators, squashed to one commit. |
Please rebase now that #2986 is merged (to make CI pass). |
534d01d
to
004a4a4
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: 004a4a4).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85262185
No description provided.