source: CIVL/mods/dev.civl.abc/examples/side-effects/out_for-se.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: 261 bytes
Line 
1int f(int* x)
2{
3 int $sef$0 = *x;
4
5 *x = (*x) + 1;
6 return $sef$0;
7}
8int main()
9{
10 int y = 0;
11
12 {
13 int i = 0;
14 for(; 1; f(&y))
15 {
16 int $sef$1 = i < 10;
17
18 i = i + 1;
19 if(!$sef$1)
20 break;
21 y = 2 * y;
22 }
23 }
24}
Note: See TracBrowser for help on using the repository browser.