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

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

Small changes to the side effect remover required changes to the oracle for
this test doWhile.

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

  • Property mode set to 100644
File size: 497 bytes
RevLine 
[aad342c]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 {
[29a6092]14 {
15 int $sef$0 = i;
16 i = i - 1;
17 sum = sum + $sef$0;
18 }
[aad342c]19 $sef$1 = f(i);
20 }while($sef$1);
21 }
22 i = 10;
23 sum = 0;
24 do
25 {
[29a6092]26 {sum = sum + i;}
[aad342c]27 i = i - 1;
28 }while(i);
29 i = 10;
30 sum = 0;
31 {
32 int $sef$2;
33 do
34 {
[29a6092]35 {sum = sum + i;}
[aad342c]36 $sef$2 = i;
37 i = i - 1;
38 }while($sef$2);
39 }
40}
Note: See TracBrowser for help on using the repository browser.