source:
CIVL/mods/dev.civl.abc/examples/contract/por.cvl
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 273 bytes | |
| Line | |
|---|---|
| 1 | #include <civlc.cvh> |
| 2 | #include <memory.cvh> |
| 3 | |
| 4 | void inc(int* n); |
| 5 | |
| 6 | void dec(int* n); |
| 7 | |
| 8 | /*@ depends_on \anyact; |
| 9 | @ assigns \object_of(a), \object_of(b); |
| 10 | @*/ |
| 11 | void test(int* a, int* b); |
| 12 | |
| 13 | /*@ depends_on (\write(n)+\read(n))-(\call(inc, n)+\call(dec, n)); |
| 14 | @*/ |
| 15 | void foo(int* n); |
Note:
See TracBrowser
for help on using the repository browser.
