source:
CIVL/mods/dev.civl.com/examples/ACSLTransformation/predicate-bad_state_depend.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 189 bytes | |
| Line | |
|---|---|
| 1 | #pragma CIVL ACSL |
| 2 | |
| 3 | int x = 9; |
| 4 | |
| 5 | /*@ predicate eq(int a, int b) = |
| 6 | @ a == x && b == x; |
| 7 | @*/ |
| 8 | int main(){ |
| 9 | int a = 9; |
| 10 | int b = 9; |
| 11 | |
| 12 | $assert(eq(a, b)); |
| 13 | x = 8; |
| 14 | $assert(!eq(a, b)); |
| 15 | } |
Note:
See TracBrowser
for help on using the repository browser.
