Skip to content

AI transformers now get function identifiers #3132

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 2 commits into from
Nov 5, 2018
Merged

Conversation

kroening
Copy link
Member

@kroening kroening commented Oct 9, 2018

  • Each commit message has a non-empty body, explaining why the change was made.
  • My contribution is formatted in line with CODING_STANDARD.md.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • 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).
  • 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.

Copy link
Collaborator

@martin-cs martin-cs left a comment

Choose a reason for hiding this comment

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

The first commit making consistent the use of locations : yes, definitely accept. i thought I'd already fixed this but it looks like that hasn't been merged yet.

The second commit : why? It doesn't say why the API needs to change.

{
operator()(goto_function, ns);
replace(goto_function, ns);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this removed? This seems unrelated to the change described in the commit message.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've put it back in, with a function identifier.

@owen-mc-diffblue
Copy link
Contributor

@martin-cs I assume it is because of #3126

@martin-cs
Copy link
Collaborator

@owen-jones-diffblue : thank you; that does make more sense.

@kroening kroening force-pushed the ai-function-ids branch 2 times, most recently from 261dfc9 to 04c5277 Compare October 11, 2018 08:19
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: 261dfc9).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/87594310
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: 04c5277).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/87596523

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.

Looks good except as noted by @owen-jones-diffblue: using isn't currently the recommended approach. Also, it would be nice if the commit message could please say that this is part of the larger effort that #3126 is.

@tautschnig tautschnig assigned kroening and unassigned tautschnig Oct 11, 2018
@kroening
Copy link
Member Author

kroening commented Nov 5, 2018

Using vs typedef: see PR #3270

Copy link
Contributor

@chrisr-diffblue chrisr-diffblue left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me (even if my team will need to do a bit of rebasing fixup for some of our branches). I'd echo the comments about adding a bit of extra rationale to the commit messages.

@kroening
Copy link
Member Author

kroening commented Nov 5, 2018

@chrisr-diffblue Done!

This enables removing the function identifiers from the goto program
instructions.
@tautschnig tautschnig merged commit 52bc0a8 into develop Nov 5, 2018
@tautschnig tautschnig deleted the ai-function-ids branch November 5, 2018 19:13
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: 09b5ac1).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/90316108

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.

7 participants