Skip to content

Use boolbv_width::get_member #6861

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 1 commit into from
May 23, 2022

Conversation

tautschnig
Copy link
Collaborator

boolbv_widtht kept track of the offset and width of struct members, but
we never used that information. Avoid re-computing the same information
(without caching!) in convert_member_struct and thereby simplify its
implementation to the extent that inlining it made the code even
simpler.

  • 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 May 17, 2022

Codecov Report

Merging #6861 (58f3053) into develop (5d74a03) will decrease coverage by 0.00%.
The diff coverage is 75.43%.

@@             Coverage Diff             @@
##           develop    #6861      +/-   ##
===========================================
- Coverage    77.78%   77.78%   -0.01%     
===========================================
  Files         1567     1567              
  Lines       179701   179762      +61     
===========================================
+ Hits        139789   139833      +44     
- Misses       39912    39929      +17     
Impacted Files Coverage Δ
src/analyses/interval_analysis.cpp 0.00% <0.00%> (ø)
src/ansi-c/expr2c.cpp 67.63% <ø> (+0.03%) ⬆️
src/goto-instrument/accelerate/accelerate.cpp 32.28% <0.00%> (+0.33%) ⬆️
.../goto-instrument/accelerate/acceleration_utils.cpp 2.23% <0.00%> (+<0.01%) ⬆️
src/goto-instrument/accelerate/trace_automaton.cpp 0.00% <ø> (ø)
src/goto-instrument/wmm/data_dp.cpp 75.71% <ø> (ø)
src/goto-programs/goto_program.h 90.70% <ø> (ø)
src/jsil/jsil_entry_point.cpp 0.00% <0.00%> (ø)
src/solvers/flattening/arrays.cpp 81.45% <ø> (ø)
src/util/find_symbols.cpp 65.71% <65.48%> (-18.45%) ⬇️
... and 43 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 8a9ab0c...58f3053. Read the comment docs.

boolbv_widtht kept track of the offset and width of struct members, but
we never used that information. Avoid re-computing the same information
(without caching!) in convert_member_struct and thereby simplify its
implementation to the extent that inlining it made the code even
simpler. smt_convt used yet another approach via member_offset_bits when
really it should be using boolbv_widtht::get_member instead.
@tautschnig tautschnig merged commit 68cbf7a into diffblue:develop May 23, 2022
@tautschnig tautschnig deleted the cleanup/use-get_member branch May 23, 2022 18:40
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.

4 participants