Skip to content

remove uses of base_type_eq #6989

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
Jul 5, 2022
Merged

remove uses of base_type_eq #6989

merged 3 commits into from
Jul 5, 2022

Conversation

kroening
Copy link
Member

@kroening kroening commented Jul 3, 2022

  • 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/
  • 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.

@codecov
Copy link

codecov bot commented Jul 3, 2022

Codecov Report

Merging #6989 (e42aaf7) into develop (8eef445) will decrease coverage by 0.02%.
The diff coverage is 83.67%.

@@             Coverage Diff             @@
##           develop    #6989      +/-   ##
===========================================
- Coverage    77.84%   77.82%   -0.03%     
===========================================
  Files         1570     1569       -1     
  Lines       180439   180541     +102     
===========================================
+ Hits        140468   140497      +29     
- Misses       39971    40044      +73     
Impacted Files Coverage Δ
src/goto-instrument/contracts/contracts.h 100.00% <ø> (ø)
src/goto-instrument/horn_encoding.cpp 72.70% <0.00%> (+0.43%) ⬆️
src/goto-symex/goto_symex_state.cpp 91.71% <ø> (ø)
src/goto-symex/goto_symex_state.h 100.00% <ø> (ø)
src/util/replace_symbol.cpp 78.20% <36.95%> (-10.10%) ⬇️
src/linking/linking.cpp 59.36% <67.74%> (+0.62%) ⬆️
src/util/rename_symbol.cpp 76.82% <69.38%> (-3.00%) ⬇️
src/ansi-c/c_typecheck_base.cpp 82.50% <92.30%> (+1.34%) ⬆️
src/goto-symex/field_sensitivity.cpp 91.27% <96.00%> (-0.24%) ⬇️
src/goto-instrument/contracts/contracts.cpp 94.31% <98.87%> (+0.21%) ⬆️
... and 30 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c00319e...e42aaf7. Read the comment docs.

@kroening kroening force-pushed the remove_base_type branch from a166cc2 to ae165e1 Compare July 4, 2022 11:24
@kroening kroening changed the title remove base_type_eq from goto_programt::instructiont::validate remove uses of base_type_eq Jul 4, 2022
@kroening kroening force-pushed the remove_base_type branch from e055075 to d457b14 Compare July 4, 2022 13:29
for(const exprt &op : expr.operands())
{
const typet &op_type=op.type();
if(base_type_eq(op_type, root_type, ns))
if(op_type == root_type)
Copy link
Collaborator

Choose a reason for hiding this comment

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

With this change the ns class member should be removed in a follow-up commit.

@tautschnig tautschnig mentioned this pull request Jul 5, 2022
3 tasks
@kroening kroening marked this pull request as ready for review July 5, 2022 08:26
@kroening kroening force-pushed the remove_base_type branch 2 times, most recently from 3747400 to c729361 Compare July 5, 2022 08:38
@kroening kroening force-pushed the remove_base_type branch from c729361 to 75c8799 Compare July 5, 2022 08:40
base_type_eq has been deprecated since 2019; a previous attempt to remove it
(#4056) has failed.
@kroening kroening force-pushed the remove_base_type branch from 75c8799 to 47cd689 Compare July 5, 2022 08:40
Comment on lines +23 to +22
does_remove_constt::does_remove_constt(const goto_programt &goto_program)
: goto_program(goto_program)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you for adding this commit. The documentation above, however, also needs to be updated (removing lines 21 and 22) to keep doxygen happy.

kroening added 2 commits July 5, 2022 09:48
The last uses have been removed, and base_type_eq has been deprecated since
2019; a previous attempt to remove it (#4056) has failed.
@kroening kroening force-pushed the remove_base_type branch from 47cd689 to e42aaf7 Compare July 5, 2022 08:49
@kroening kroening merged commit 7153dc5 into develop Jul 5, 2022
@kroening kroening deleted the remove_base_type branch July 5, 2022 10:26
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.

3 participants