source: CIVL/mods/dev.civl.abc/examples/side-effects/out_funcalls.c

main
Last change on this file was aad342c, checked in by Stephen Siegel <siegel@…>, 3 years ago

Performing huge refactor to incorporate ABC, GMC, and SARL into CIVL repo and use Java modules.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5664 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 426 bytes
Line 
1//======================= funcalls.c =======================
2int f(int a) {
3 return a;
4}
5$system[funcalls] $state_f int g(int a);
6$system[funcalls] $pure int h(int b);
7$abstract int k(int t);
8int main() {
9 int t;
10 int $sef$0 = f(1);
11 int $sef$1 = f(2);
12 t = $sef$0 + $sef$1;
13 t = g(1) + g(2);
14 t = k(1) * k(g(2));
15 int $sef$2 = f(9);
16 t = k(3) + $sef$2;
17 t = k(h(t));
18 int $sef$3 = f(6);
19 t = k(5) + k($sef$3);
20}
21
Note: See TracBrowser for help on using the repository browser.