source:
CIVL/mods/dev.civl.com/examples/backend/arrayLambda.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 207 bytes | |
| Line | |
|---|---|
| 1 | #include<string.h> |
| 2 | |
| 3 | int main() { |
| 4 | int N; |
| 5 | |
| 6 | $havoc(&N); |
| 7 | $assume(N > 0 && N <= 2); |
| 8 | |
| 9 | int a[2 * N]; |
| 10 | int b[N]; |
| 11 | |
| 12 | memcpy(a, b, sizeof(int) * N); |
| 13 | $elaborate(N); |
| 14 | $assert(a); |
| 15 | $assert(b); |
| 16 | return 0; |
| 17 | } |
Note:
See TracBrowser
for help on using the repository browser.
