Skip to content

Conversation

@sonodtt
Copy link
Contributor

@sonodtt sonodtt commented Sep 4, 2018

Remove all assert() statements, replacing with appropriate INVARIANT, PRECONDITION, etc.

The target files for PR have no throw statements - no cleanup required w.r. to throw statements.


#include <ostream>

#include "invariant.h"

Choose a reason for hiding this comment

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

This was deleted because the corresponding header already includes invariant.h. I'm not a huge fan of this change myself, but it's not harmful.

#include <vector>

#include "deprecate.h"
#include "invariant.h"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove the cassert header now that this move is taking place.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yes. Done. Also in other PRs.

@sonodtt sonodtt force-pushed the invariant-cleanup-util_dir-irep_h_cpp branch from 9b689d9 to 38d41c9 Compare September 4, 2018 15:12
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.

This PR failed Diffblue compatibility checks (cbmc commit: 9b689d9).
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.

Common spurious failures:

  • the cbmc commit has disappeared in the mean time (e.g. in a force-push)
  • the author is not in the list of contributors (e.g. first-time contributors).

@sonodtt sonodtt force-pushed the invariant-cleanup-util_dir-irep_h_cpp branch from 38d41c9 to f0522e7 Compare September 6, 2018 08:33
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.

This PR failed Diffblue compatibility checks (cbmc commit: f0522e7).
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.

Common spurious failures:

  • the cbmc commit has disappeared in the mean time (e.g. in a force-push)
  • the author is not in the list of contributors (e.g. first-time contributors).

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: f0522e7).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/83975679

@hannes-steffenhagen-diffblue hannes-steffenhagen-diffblue merged commit ec250d2 into diffblue:develop Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants