summaryrefslogtreecommitdiff
path: root/cil/doc/examples/ex17.txt
blob: 20bbaa7adfa9e06fce3138281d911c5d0b7d5e6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/* Generated by CIL v. 1.3.5 */
/* print_CIL_Input is true */

#line 1 "cilcode.tmp/ex17.c"
int main(void) 
{ int x ;
  int y ;
  int tmp ;
  int z ;
  int tmp___0 ;

  {
#line 2
  if (x) {
#line 2
    tmp = 2;
  } else {
#line 2
    tmp = 4;
  }
#line 2
  y = tmp;
#line 3
  if (x) {
#line 3
    tmp___0 = 1;
  } else {
#line 3
    if (y) {
#line 3
      tmp___0 = 1;
    } else {
#line 3
      tmp___0 = 0;
    }
  }
#line 3
  z = tmp___0;
#line 5
  if (x) {
#line 5
    if (y) {
#line 5
      return (0);
    } else {
#line 5
      return (1);
    }
  } else {
#line 5
    return (1);
  }
#line 8
  if (x) {
#line 8
    if (y) {
      goto _L;
    } else {
      goto _L___0;
    }
  } else {
    _L___0: /* CIL Label */ 
#line 8
    if (z) {
      _L: /* CIL Label */ 
#line 8
      x ++;
#line 8
      y ++;
#line 8
      z ++;
#line 8
      x ++;
#line 8
      y ++;
#line 8
      return (z);
    }
  }
}
}