Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/pr113623.c

raw
1 typedef struct A A;
2 typedef struct B B;
3 struct A { char *a; long b; };
4 enum { C, D };
5 typedef struct { A *c; A *d; } E;
6 typedef enum { F } G;
7 typedef enum { H } I;
8 struct B { A *e, *f, *g, *h; char i; } j;
9 int k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, aa, ab, ac, ad, ae, af;
10 int ag, ah, ai, aj, ak, al, am, an, ao, ap;
11 E aq;
12 G ar;
13 I as;
14 char at;
15
16 static int
17 foo (char *c, long d)
18 {
19 switch (d) {
20 case 7:
21 switch (c[6])
22 case 'd':
23 if (ao)
24 case 'h':
25 if (an)
26 case 'r':
27 if (am)
28 case 's':
29 if (al)
30 if (ak)
31 return C;
32 /* FALLTHRU */
33 case 8:
34 switch (c[7])
35 case 'e':
36 if (aj)
37 case 'h':
38 if (ai)
39 case 'n':
40 if (ah)
41 case 'y':
42 if (ag)
43 case 9:
44 switch (c[8])
45 case 'l':
46 case 0:
47 switch (c[9])
48 case 'e':
49 if (af)
50 if (ae)
51 case 'n':
52 if (ad)
53 case 't':
54 if (ac)
55 case 'y':
56 if (ab)
57 case 1:
58 switch (c[0])
59 case 'r':
60 case 2:
61 switch (c[1])
62 case 'e':
63 case 3:
64 switch (c[2])
65 case 'd':
66 if (aa)
67 case 'e':
68 if (z)
69 case 'h':
70 if (y)
71 case 'l':
72 if (x)
73 case 'n':
74 if (w)
75 case 's':
76 if (v)
77 case 4:
78 switch (c[3])
79 case 'h':
80 if (u)
81 case 't':
82 if (t)
83 case 5:
84 switch (c[4])
85 case 'e':
86 if (s)
87 case 'g':
88 if (r)
89 case 6:
90 switch (c[5])
91 case 'e':
92 if (q)
93 if (p)
94 case 'g':
95 if (o)
96 case 'n':
97 if (n)
98 if (m)
99 case 7:
100 switch (c[6])
101 case 'e':
102 if (l)
103 case 'g':
104 if (k)
105 return D;
106 }
107 return 0;
108 }
109
110 void bar (void);
111
112 static int
113 baz (B *x)
114 {
115 aq.c = x->e;
116 aq.d = x->f;
117 ap = foo (x->e->a, x->e->b);
118 if (x->i)
119 bar ();
120 x->g = aq.c;
121 x->h = aq.d;
122 return 0;
123 }
124
125 void
126 qux (void)
127 {
128 for (; at;)
129 switch (as)
130 {
131 case H:
132 baz (&j);
133 j.f->b = 0;
134 if (ar)
135 baz (&j);
136 }
137 }