Skip to content

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

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

xbauch
Copy link
Contributor

@xbauch xbauch commented Sep 14, 2018

No description provided.

Copy link
Contributor

@allredj allredj left a 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

// NOLINTNEXTLINE(build/deprecated)
assert(reference_counter!=0);
PRECONDITION_WITH_DIAGNOSTICS(
reference_counter != 0, "All references were already removed.");
Copy link
Member

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)

Copy link
Contributor

@allredj allredj left a 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

@xbauch
Copy link
Contributor Author

xbauch commented Sep 18, 2018

Lower cases and full dot fixed.

Copy link
Collaborator

@tautschnig tautschnig left a 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.

@@ -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");
Copy link
Collaborator

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 !=

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");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add spacing around >=

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");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spacing around >=

@xbauch
Copy link
Contributor Author

xbauch commented Sep 19, 2018

Added spaces around infix operators, squashed to one commit.

@tautschnig
Copy link
Collaborator

Please rebase now that #2986 is merged (to make CI pass).

@xbauch xbauch merged commit e0dbf2a into diffblue:develop Sep 19, 2018
Copy link
Contributor

@allredj allredj left a 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

@xbauch xbauch deleted the cleanup_minibdd branch December 4, 2018 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants