source:
CIVL/mods/dev.civl.abc/examples/side-effects/funcalls.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 242 bytes | |
| Line | |
|---|---|
| 1 | int f(int a){ |
| 2 | return a; |
| 3 | } |
| 4 | |
| 5 | $system $state_f int g(int a); |
| 6 | |
| 7 | $system[funcalls] $pure int h(int b); |
| 8 | |
| 9 | $abstract int k(int t); |
| 10 | |
| 11 | int main(){ |
| 12 | int t; |
| 13 | t=f(1)+f(2); |
| 14 | t=g(1)+g(2); |
| 15 | t=k(1)*k(g(2)); |
| 16 | t=k(3)+f(9); |
| 17 | t=k(h(t)); |
| 18 | t=k(5)+k(f(6)); |
| 19 | } |
Note:
See TracBrowser
for help on using the repository browser.
