source: CIVL/mods/dev.civl.abc/examples/side-effects/out_shortCircuit.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: 540 bytes
Line 
1//===================== shortCircuit.c =====================
2int f(int);
3int g(int);
4int main()
5{
6 int i = 0;
7 int j = 0;
8 {
9 int $sef$0;
10 if (!(i > 5))
11 $sef$0 = 0;
12 else
13 {
14 int $sef$2 = f(i);
15 int $sef$3 = $sef$2 < i;
16 i = i + 1;
17 $sef$0 = $sef$3;
18 }
19 int $sef$1;
20 int $sef$4 = j < 3;
21 j = j + 1;
22 if ($sef$4)
23 $sef$1 = 1;
24 else
25 {
26 int $sef$5 = g(4);
27 i = i - 1;
28 $sef$1 = $sef$5 > i;
29 }
30 if (($sef$0 && $sef$1) || (j == 10))
31 i = i - j;
32 }
33}
Note: See TracBrowser for help on using the repository browser.