source:
CIVL/mods/dev.civl.com/examples/mem/readset/structComplex.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 303 bytes | |
| Rev | Line | |
|---|---|---|
| [4501911] | 1 | #include<mem.cvh> |
| 2 | struct S { | |
| 3 | int a[10][10]; | |
| 4 | }; | |
| 5 | ||
| 6 | int main() { | |
| 7 | struct T { | |
| 8 | struct S s[10][10]; | |
| 9 | } t[10][10]; | |
| 10 | ||
| 11 | $read_set_push(); | |
| 12 | t[0][1].s[2][3].a[4][5] = t[1][2].s[3][4].a[5][6]; | |
| 13 | $mem m = $read_set_pop(); | |
| [cc5e108] | 14 | $mem oracle = ($mem)&t[1][2].s[3][4].a[5][6]; |
| [4501911] | 15 | |
| 16 | $assert($mem_equals(m, oracle)); | |
| 17 | } |
Note:
See TracBrowser
for help on using the repository browser.
