source:
CIVL/mods/dev.civl.com/examples/reasoning/quantified.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 209 bytes | |
| Line | |
|---|---|
| 1 | $input int N=5; |
| 2 | int m[N][N]; |
| 3 | |
| 4 | int main(){ |
| 5 | int k; |
| 6 | |
| 7 | $havoc(&m); |
| 8 | $assume($forall (int i, j | 0<=i && i<N && 0<=j && j<N) m[i][j]>0); |
| 9 | for(int i=0; i<N; i++) |
| 10 | for(int j=0; j<N; j++) |
| 11 | k=1/m[i][j]; |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
