Skip to content

Conversation

@romainbrenguier
Copy link
Contributor

@romainbrenguier romainbrenguier commented Jun 26, 2019

Move the class to its own files and unit test it.

  • Each commit message has a non-empty body, explaining why the change was made.
  • [na] Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • [na] The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • 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.
  • [na] White-space or formatting changes outside the feature-related changed lines are in commits of their own.

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: 9c31050).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/117126740
Status will be re-evaluated on next push.
Common spurious failures include: 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); compatibility was already broken by an earlier merge.

@romainbrenguier
Copy link
Contributor Author

@smowton I've updated the method names

SCENARIO("expr skeleton", "[core][goto-symex][symex-assign][expr-skeleton]")
{
const symbol_exprt foo{"foo", typet{}};
GIVEN("Skeletons `☐`, `☐[index]` and `☐.field1`")

Choose a reason for hiding this comment

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

⛏️ Why use the symbol here? Seems strange..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean ☐? It is used in the same way as in the documentation https://github.com/diffblue/cbmc/pull/4843/files#diff-003f21a13603cd3a681d0d0f440e114bR20

Makes it easier to navigate through the code.
Tests the behavior of apply and compose.
@romainbrenguier romainbrenguier force-pushed the unit-test/expr-skeleton branch from 9c31050 to 948e9f4 Compare July 2, 2019 08:38
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: 948e9f4).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/117637722

@romainbrenguier romainbrenguier merged commit abf7a6d into diffblue:develop Jul 2, 2019
@romainbrenguier romainbrenguier deleted the unit-test/expr-skeleton branch July 2, 2019 10:39
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.

5 participants