source:
CIVL/mods/dev.civl.com/examples/bench/assignments.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 304 bytes | |
| Line | |
|---|---|
| 1 | #ifdef SIMPLIFY // run CIVL with simplify, slow, so smaller N |
| 2 | #define N 3000 |
| 3 | #else |
| 4 | #define N 10000 |
| 5 | #endif |
| 6 | #define M 100 |
| 7 | |
| 8 | #include <stdio.h> |
| 9 | |
| 10 | int main() { |
| 11 | int x[N][M]; |
| 12 | |
| 13 | printf("N = %d\n", N); |
| 14 | |
| 15 | for (int i = 0; i < N; i++) |
| 16 | x[i] = (int[M])$lambda(int j)i; |
| 17 | |
| 18 | $assert(x[N-1][M-1] == N-1); |
| 19 | } |
Note:
See TracBrowser
for help on using the repository browser.
