source:
CIVL/examples/experimental/multInLoopCond.cvl@
367a390
| Last change on this file since 367a390 was ea777aa, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 280 bytes | |
| Rev | Line | |
|---|---|---|
| [3ff27cf] | 1 | #include <civlc.cvh> |
| [6cc497b] | 2 | /* Commandline execution: |
| 3 | * civl verify multInLoopCond.cvl | |
| 4 | * */ | |
| [13953d1] | 5 | $input int N; |
| 6 | $input int M; | |
| [3ff27cf] | 7 | $assume(N > 0 && N < 3); |
| 8 | $assume(M > 0 && M < 3); | |
| 9 | $assume(N*M<=4); | |
| [13953d1] | 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.
