source:
CIVL/mods/dev.civl.abc/examples/contract/acsl_mem_complex.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 248 bytes | |
| Line | |
|---|---|
| 1 | #pragma CIVL ACSL |
| 2 | struct T { |
| 3 | int (*x)[100]; |
| 4 | } ** a; |
| 5 | |
| 6 | struct T (*b)[10]; |
| 7 | |
| 8 | /*@ assigns a[0..10][0..10].x[0 .. 10][0 .. 10]; |
| 9 | @ assigns (*(a + (0 .. 10)))->x[0 .. 10][0 .. 10]; |
| 10 | @ assigns b[0 .. 10][0].x[0][0 .. 10]; |
| 11 | */ |
| 12 | int f() { |
| 13 | return 0; |
| 14 | } |
Note:
See TracBrowser
for help on using the repository browser.
