summaryrefslogtreecommitdiff
path: root/cil/doc/examples/ex23.txt
blob: d48a1358318ac50884432c1178f19e06159489ab (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
/* Generated by CIL v. 1.3.5 */
/* print_CIL_Input is true */

#line 1 "cilcode.tmp/ex23.c"
int foo(int predicate ) 
{ int x ;

  {
#line 2
  x = 0;
#line 4
  if (predicate == 0) {
    goto switch_0_0;
  } else {
#line 5
    if (predicate == 1) {
      goto switch_0_1;
    } else {
#line 6
      if (predicate == 2) {
        goto switch_0_2;
      } else {
#line 7
        if (predicate == 3) {
          goto switch_0_3;
        } else {
          {
          goto switch_0_default;
#line 3
          if (0) {
            switch_0_0: /* CIL Label */ 
#line 4
            return (111);
            switch_0_1: /* CIL Label */ 
#line 5
            x ++;
            switch_0_2: /* CIL Label */ 
#line 6
            return (x + 3);
            switch_0_3: /* CIL Label */ 
            goto switch_0_break;
            switch_0_default: /* CIL Label */ ;
#line 8
            return (222);
          } else {
            switch_0_break: /* CIL Label */ ;
          }
          }
        }
      }
    }
  }
#line 10
  return (333);
}
}