Skip to content

boolbv_index: preserve endianness when generating byte extract #6100

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 11, 2021

Conversation

tautschnig
Copy link
Collaborator

byte_extract(...)[index] translated to byte_extract expressions with
config-specified endianness rather than preserving the endianness of the
original byte_extract expression. This, however, is a hardly exercised
code path as the simplifier already did a similar transformation that
did preserve endianness.

  • 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 10, 2021

Codecov Report

Merging #6100 (a419041) into develop (4c14789) will increase coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #6100      +/-   ##
===========================================
+ Coverage    74.52%   74.61%   +0.08%     
===========================================
  Files         1447     1447              
  Lines       157808   157821      +13     
===========================================
+ Hits        117610   117756     +146     
+ Misses       40198    40065     -133     
Impacted Files Coverage Δ
src/solvers/flattening/boolbv_index.cpp 89.72% <100.00%> (+10.77%) ⬆️
src/solvers/smt2/smt2_conv.cpp 60.63% <0.00%> (+0.22%) ⬆️
src/solvers/lowering/byte_operators.cpp 92.16% <0.00%> (+0.36%) ⬆️
src/ansi-c/c_typecast.cpp 79.00% <0.00%> (+0.55%) ⬆️
src/solvers/flattening/boolbv_byte_extract.cpp 82.27% <0.00%> (+12.65%) ⬆️
src/solvers/floatbv/float_bv.cpp 88.33% <0.00%> (+14.47%) ⬆️

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 d76e3ff...a419041. Read the comment docs.

@tautschnig tautschnig assigned tautschnig and unassigned kroening May 10, 2021
@tautschnig tautschnig marked this pull request as draft May 10, 2021 16:37
@tautschnig
Copy link
Collaborator Author

I have meanwhile found some ways to exercise this code, will merge this PR once I have added tests.

@tautschnig tautschnig marked this pull request as ready for review May 10, 2021 19:53
byte_extract(...)[index] translated to byte_extract expressions with
config-specified endianness rather than preserving the endianness of the
original byte_extract expression. This, however, is a hardly exercised
code path as the simplifier already did a similar transformation that
did preserve endianness.
@tautschnig tautschnig merged commit 8f30441 into diffblue:develop May 11, 2021
@tautschnig tautschnig deleted the boolbv_index-oob branch May 11, 2021 00:29
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.

2 participants