source:
CIVL/mods/dev.civl.com/examples/ACSLTransformation/predicate.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 190 bytes | |
| Line | |
|---|---|
| 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.
