Skip to content

Remove long deprecated methods #4427

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

tautschnig
Copy link
Collaborator

The first commit is #4423, the other commits are new. This is a cleanup of all entities that have been marked deprecated for more than 6 months except for

  1. Cleanup already in pull requests and
  2. the procedures in the string solver - they have been marked as deprecated since 2017, but actually removing them (where this is even possible, there are still in-tree uses) causes tests to fail.
  • 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
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.

"One of my most productive days was throwing away 1,000 lines of code."

@tautschnig tautschnig force-pushed the remove-long-deprecated-methods branch from 9eb6015 to b8c5745 Compare March 23, 2019 23:14
@tautschnig tautschnig changed the title Remove long deprecated methods [depends-on: #4423] Remove long deprecated methods Mar 23, 2019
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: 9eb6015).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/105559553
Status will be re-evaluated on next push.
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 compatibility was already broken by an earlier 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: b8c5745).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/105560177
Status will be re-evaluated on next push.
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 compatibility was already broken by an earlier merge.

@tautschnig tautschnig force-pushed the remove-long-deprecated-methods branch from b8c5745 to 5f332e4 Compare March 24, 2019 07:14
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: 5f332e4).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/105570026
Status will be re-evaluated on next push.
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 compatibility was already broken by an earlier merge.

@kroening
Copy link
Member

My only problem with this is the removal of

side_effect_exprt(const irep_idt &statement, const typet &_type)

in favour of a variant with source_locationt. We don't do that agenda consistently for all expressions, and it's unclear why that one is singled out.

@tautschnig
Copy link
Collaborator Author

My only problem with this is the removal of side_effect_exprt(const irep_idt &statement, const typet &_type) [...]

Maybe it should just never have been deprecated in the first place? I have no issue not removing that constructor, I just did a rather mechanic removal of long-deprecated constructors. Please advise.

@tautschnig tautschnig force-pushed the remove-long-deprecated-methods branch from 5f332e4 to 6409b21 Compare March 26, 2019 07:42
@tautschnig
Copy link
Collaborator Author

I have now left those constructors that only differ from non-deprecated ones by a source_locationt parameter in the code base. Will merge once CI passes, but we still need to consider whether the deprecation markers should be removed.

@tautschnig tautschnig assigned tautschnig and unassigned kroening Mar 26, 2019
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: 6409b21).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/105802020
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.

@tautschnig tautschnig added the Needs TG approval 🦉 Only merge with explicit approval from test-gen maintainers label Mar 26, 2019
@thk123
Copy link
Contributor

thk123 commented Mar 26, 2019

Updated TG - rebasing this should get the Joel bot to pass

These have been deprecated from more than six months.
It has been deprecated for more than 12 months.
It has been deprecated for 11 months (but actually still had one user,
which has now been fixed).
They have been deprecated since 2017.
They have been deprecated from 9 months.
It has been deprecated for 7 months.
It has been deprecated for 9 months.
@tautschnig tautschnig force-pushed the remove-long-deprecated-methods branch from 6409b21 to d794d17 Compare March 26, 2019 14:17
@tautschnig tautschnig removed the Needs TG approval 🦉 Only merge with explicit approval from test-gen maintainers label Mar 26, 2019
@tautschnig tautschnig merged commit 963b9af into diffblue:develop Mar 26, 2019
@tautschnig tautschnig deleted the remove-long-deprecated-methods branch March 26, 2019 15:15
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: d794d17).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/105859717
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants