source: CIVL/mods/dev.civl.abc/examples/side-effects/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: 242 bytes
Line 
1int 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
11int 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.