source:
CIVL/mods/dev.civl.com/examples/ACSLTransformation/predicate.cvl@
e49edeb
| Last change on this file since e49edeb was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 190 bytes | |
| Rev | Line | |
|---|---|---|
| [d70594d] | 1 | #pragma CIVL ACSL |
| 2 | ||
| 3 | /*@ predicate eq(int * a, int len, int * b) = | |
| 4 | @ \forall int i; 0 <= i && i < len ==> a[i] == b[i]; | |
| 5 | @*/ | |
| 6 | int main(){ | |
| 7 | int a[10], b[10]; | |
| 8 | ||
| 9 | $assert(eq(a, 10, b)); | |
| 10 | } |
Note:
See TracBrowser
for help on using the repository browser.
