source:
CIVL/examples/backend/quantified.cvl@
c1381dd
| Last change on this file since c1381dd was fc77f0c, checked in by , 10 years ago | |
|---|---|
|
|
| File size: 253 bytes | |
| Line | |
|---|---|
| 1 | #include <stdio.h> |
| 2 | #include <civlc.cvh> |
| 3 | |
| 4 | $input int n; |
| 5 | $assume (n>=0); |
| 6 | $input int a[n]; |
| 7 | $input int b[n]; |
| 8 | |
| 9 | void main(){ |
| 10 | $assert( |
| 11 | ($forall {int i | i > 0 && i < n} a[i]) |
| 12 | && ($forall {int i | i >= 1 && i <= 5} b[i]) |
| 13 | ); |
| 14 | } |
| 15 | |
| 16 |
Note:
See TracBrowser
for help on using the repository browser.
