Commit 5e907b0
committed
Fix byte update of struct/array elements
A key part of this is factoring out code that was almost-the-same from
lower_byte_update_array_vector and lower_byte_update_struct, but
actually had subtle bugs as documented in regression test included in
this commit.
For consistency, do all offset calculations in bits rather than flipping
back and forth between bits and bytes.1 parent d84744f commit 5e907b0
File tree
3 files changed
+278
-194
lines changed- regression/cbmc/byte_update18
- src/util
3 files changed
+278
-194
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments