source:
CIVL/mods/dev.civl.com/examples/experimental/multInLoopCond.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 280 bytes | |
| Line | |
|---|---|
| 1 | #include <civlc.cvh> |
| 2 | /* Commandline execution: |
| 3 | * civl verify multInLoopCond.cvl |
| 4 | * */ |
| 5 | $input int N; |
| 6 | $input int M; |
| 7 | $assume(N > 0 && N < 3); |
| 8 | $assume(M > 0 && M < 3); |
| 9 | $assume(N*M<=4); |
| 10 | |
| 11 | void main() { |
| 12 | int k = M*N; |
| 13 | int a[k]; |
| 14 | |
| 15 | for (int i = 0; i < k; i++) { |
| 16 | a[i] = i; |
| 17 | } |
| 18 | } |
Note:
See TracBrowser
for help on using the repository browser.
