source: CIVL/mods/dev.civl.abc/examples/side-effects/out_doWhile.c@ a8a5acb

main test-branch
Last change on this file since a8a5acb 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: 492 bytes
Line 
1//======================== doWhile.c =======================
2int f(int i)
3{
4 return i > 0;
5}
6int main()
7{
8 int sum = 0;
9 int i = 10;
10 {
11 int $sef$1;
12 do
13 {
14 int $sef$0 = i;
15 i = i - 1;
16 sum = sum + $sef$0;
17 $sef$1 = f(i);
18 }while($sef$1);
19 }
20 i = 10;
21 sum = 0;
22 do
23 {
24 sum = sum + i;
25 i = i - 1;
26 }while(i);
27 i = 10;
28 sum = 0;
29 {
30 int $sef$2;
31 do
32 {
33 sum = sum + i;
34 $sef$2 = i;
35 i = i - 1;
36 }while($sef$2);
37 }
38}
Note: See TracBrowser for help on using the repository browser.