-
Notifications
You must be signed in to change notification settings - Fork 273
byte_extract lowering of unions [blocks: #2068] #4187
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Passed Diffblue compatibility checks (cbmc commit: 19b8b80).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/100912495
Refactor the code used for arrays to make it re-usable for vectors and arrays.
We already limited extraction at an uppper bound, but when we know the offset we can also start as late as possible. For structs, for example, we now do not expand components that will be irrelevant to the final result.
No need to construct index_exprt when we can just pick the operand out of a vector.
This makes the unit of measurement explicit and thus should help avoid bits/bytes confusion.
This makes the interface much more explicit about what is or isn't supported at moment.
We previously handled unions like PODs.
19b8b80
to
761ad8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Passed Diffblue compatibility checks (cbmc commit: 761ad8a).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/100979304
We previously handled unions like PODs.
Only the last commit is new, the rest is borrowed from #4124.