source:
CIVL/mods/dev.civl.abc/examples/contract/memLocation1.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 194 bytes | |
| Line | |
|---|---|
| 1 | #pragma CIVL ACSL |
| 2 | /*@ requires \valid(t + (0 .. n-1)); |
| 3 | @ assigns t[0 .. n-1]; |
| 4 | @ assigns *(t + (0 .. n-1)); |
| 5 | @*/ |
| 6 | void reset_array(int* t, int n) { |
| 7 | int i; |
| 8 | for (i=0;i<n;i++) |
| 9 | t[i]=0; |
| 10 | } |
Note:
See TracBrowser
for help on using the repository browser.
