Skip to content

goto-symex: use function and called_function fields [blocks: #3126] #3844

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 3 commits into from
Jan 24, 2019

Conversation

tautschnig
Copy link
Collaborator

goto_programt::instructionst::instructiont::function is going to go away, use
the fields that are already available within goto-symex.

  • Each commit message has a non-empty body, explaining why the change was made.
  • n/a Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • n/a 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).
  • n/a My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • n/a 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.

✔️
Passed Diffblue compatibility checks (cbmc commit: fb5bdcf).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/97888387

frame.loop_iterations[goto_programt::loop_id(*state.source.pc)].count;
const auto &loop_id =
goto_programt::loop_id(state.source.function, *state.source.pc);

Copy link
Member

Choose a reason for hiding this comment

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

goto_programt::loop_id returns a temporary, so I would not use a reference here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done, and I've now added a second commit to make sure we use goto_programt::loop_id everywhere.

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

Copy link
Member

@peterschrammel peterschrammel left a comment

Choose a reason for hiding this comment

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

Consider #3828 (comment)

@tautschnig tautschnig force-pushed the function-symex branch 4 times, most recently from c6bdc44 to 67507db Compare January 20, 2019 21:25
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: c6bdc44).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/97968538
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).

The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.

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

The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.

@tautschnig
Copy link
Collaborator Author

@peterschrammel It's perfectly possible that the TG failure is genuine and caused by renaming the function member to function_id. Could you please take a look and possibly create a suitable bump?

Marking this as do-not-merge for now.

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

The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.

@allredj
Copy link
Contributor

allredj commented Jan 24, 2019

@allredj
Copy link
Contributor

allredj commented Jan 24, 2019

@tautschnig could you please rebase this PR onto develop (or at least on top of #3876) so that I can compile with TG?

goto_programt::instructionst::instructiont::function is going to go away, use
the fields that are already available within goto-symex.
This ensures we build loop identifiers in the same way everywhere.
"function" is too ambiguous and "function_identifier" is too long, and mixing
them is even worse.
@tautschnig
Copy link
Collaborator Author

@allredj Rebase done.

@allredj
Copy link
Contributor

allredj commented Jan 24, 2019

@tautschnig thanks. TG bump passing.

@allredj
Copy link
Contributor

allredj commented Jan 24, 2019

Shall I merge?

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

The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.

@tautschnig tautschnig merged commit e2cd2f3 into diffblue:develop Jan 24, 2019
@tautschnig tautschnig deleted the function-symex branch January 24, 2019 13:10
@tautschnig
Copy link
Collaborator Author

@allredj Thanks a lot, was away from my desk - merge done. Please merge the corresponding TG update.

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.

7 participants