Skip to content

Clean up ansi_c_convert_typet's interface #5599

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
Dec 1, 2022

Conversation

tautschnig
Copy link
Collaborator

The need to invoke read() was only specified in a comment. Make the
constructor take care of this. Also, make the constructor initialise all
members rather than leaving this to clear(), which is thus no longer
necessary. Finally, do not unnecessarily inherit from messaget (there is
no is-a relationship).

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

@codecov
Copy link

codecov bot commented Nov 15, 2020

Codecov Report

Base: 78.38% // Head: 78.33% // Decreases project coverage by -0.04% ⚠️

Coverage data is based on head (93c14fe) compared to base (9100d23).
Patch coverage: 29.16% of modified lines in pull request are covered.

❗ Current head 93c14fe differs from pull request most recent head 794f6f7. Consider uploading reports for the commit 794f6f7 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5599      +/-   ##
===========================================
- Coverage    78.38%   78.33%   -0.05%     
===========================================
  Files         1647     1645       -2     
  Lines       190362   190341      -21     
===========================================
- Hits        149213   149112     -101     
- Misses       41149    41229      +80     
Impacted Files Coverage Δ
src/ansi-c/ansi_c_convert_type.cpp 80.04% <2.17%> (-0.38%) ⬇️
src/cpp/cpp_convert_type.cpp 72.09% <50.00%> (-0.64%) ⬇️
src/ansi-c/ansi_c_convert_type.h 100.00% <100.00%> (ø)
src/ansi-c/c_typecheck_type.cpp 77.34% <100.00%> (-0.03%) ⬇️
src/util/replace_symbol.cpp 77.31% <0.00%> (-4.47%) ⬇️
src/util/validate_types.cpp 90.00% <0.00%> (-3.34%) ⬇️
src/ansi-c/c_typecheck_code.cpp 77.36% <0.00%> (-2.81%) ⬇️
src/util/simplify_expr_int.cpp 86.03% <0.00%> (-2.05%) ⬇️
src/util/pointer_predicates.cpp 93.10% <0.00%> (-2.02%) ⬇️
.../contracts/dynamic-frames/dfcc_wrapper_program.cpp 98.36% <0.00%> (-1.42%) ⬇️
... and 68 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@tautschnig tautschnig force-pushed the cleanup-ansi_c_convert_type branch 2 times, most recently from 33de0af to 70d174c Compare April 7, 2021 16:41
@tautschnig tautschnig force-pushed the cleanup-ansi_c_convert_type branch 2 times, most recently from 2301de3 to e27cb89 Compare May 7, 2021 12:59
@tautschnig tautschnig force-pushed the cleanup-ansi_c_convert_type branch from e27cb89 to 572b316 Compare May 19, 2021 11:58
@tautschnig tautschnig force-pushed the cleanup-ansi_c_convert_type branch from 572b316 to 35e31f7 Compare October 27, 2022 10:03
@tautschnig tautschnig force-pushed the cleanup-ansi_c_convert_type branch from 35e31f7 to f213afe Compare October 27, 2022 13:14
@tautschnig tautschnig requested review from nwetzler and removed request for chrisr-diffblue November 4, 2022 22:13
@tautschnig tautschnig force-pushed the cleanup-ansi_c_convert_type branch 2 times, most recently from f668aac to 93c14fe Compare November 21, 2022 08:40
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.

Sounds like there should have been 3 commits, but ok.

Use a message handler instead.
The need to invoke read() was only specified in a comment. Make the
constructor take care of this. Also, make the constructor initialise all
members rather than leaving this to clear(), which is thus no longer
necessary.
@tautschnig tautschnig force-pushed the cleanup-ansi_c_convert_type branch from 93c14fe to 794f6f7 Compare December 1, 2022 19:59
@tautschnig
Copy link
Collaborator Author

Sounds like there should have been 3 commits, but ok.

I turned it into 2 commits, breaking up the smaller one of the two turned out to be rather cumbersome and it wasn't really clear anymore where to put which change.

@tautschnig tautschnig merged commit b01b9b7 into diffblue:develop Dec 1, 2022
@tautschnig tautschnig deleted the cleanup-ansi_c_convert_type branch December 1, 2022 21:11
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.

5 participants