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