Skip to content

Refactoring in symex, replace nondet_count by a functor #3433

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

Conversation

romainbrenguier
Copy link
Contributor

@romainbrenguier romainbrenguier commented Nov 16, 2018

It is clearer to have a functor that can only be used for generating symbols, than a counter.

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • [na] Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • [na] My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@romainbrenguier romainbrenguier force-pushed the refactor/symex-nondet-count branch 2 times, most recently from 75a09b5 to 7bb258a Compare November 16, 2018 11:42
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: 7bb258a).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/91660004

new_expr.add_source_location() = expr.source_location();
expr.swap(new_expr);
}
else
Copy link
Member

Choose a reason for hiding this comment

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

Braces would be appreciated around a multiline block

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now added

@romainbrenguier romainbrenguier force-pushed the refactor/symex-nondet-count branch from 7bb258a to 8fb2902 Compare November 19, 2018 09:40
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: 8fb2902).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/91839078

Copy link

@majakusber majakusber left a comment

Choose a reason for hiding this comment

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

Looks good and useful.

@romainbrenguier romainbrenguier merged commit 45a4363 into diffblue:develop Nov 19, 2018
@romainbrenguier romainbrenguier deleted the refactor/symex-nondet-count branch November 19, 2018 10:59
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