Commit c2f986f
committed
fix a bug with inclusion checking on havoc_object
The write set inclusion check on havoc_object(ptr) only checked the
inclusion of (ptr+0) in the write set, but performed havocing of the
entire object (i.e., ptr+0 until ptr+OBJECT_SIZE(ptr)).
The proposed change fixes this behavior and checks the inclusion of the
entire object in the write set.1 parent 516f109 commit c2f986f
File tree
2 files changed
+3
-3
lines changed- regression/contracts/assigns_enforce_20
- src/goto-instrument/contracts
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
942 | 942 | | |
943 | 943 | | |
944 | 944 | | |
945 | | - | |
946 | | - | |
| 945 | + | |
| 946 | + | |
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
| |||
0 commit comments