source:
CIVL/examples/backend/quantified.cvl@
f31d6bc
| Last change on this file since f31d6bc was fc77f0c, checked in by , 10 years ago | |
|---|---|
|
|
| File size: 253 bytes | |
| Rev | Line | |
|---|---|---|
| [fc77f0c] | 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.
