Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr112282.c

raw
1 /* { dg-do run } */
2 /* { dg-skip-if "memory tight" { ! size20plus } { "-O0" } } */
3
4 #if __SIZEOF_INT__ < 4
5 #define Xint __INT32_TYPE__
6 #else
7 #define Xint int
8 #endif
9
10 int printf(const char *, ...);
11 void abort ();
12 /* We need an abort that isn't noreturn. */
13 void __attribute__((noipa)) my_abort ()
14 {
15 abort ();
16 }
17 int a, g, h, i, v, w = 2, x, y, ab, ac, ad, ae, af, ag;
18 static int f, j, m, n, p, r, u, aa;
19 struct b {
20 Xint c : 20;
21 Xint d : 20;
22 int e : 10;
23 };
24 static struct b l, o, q = {3, 3, 5};
25 int s(int z) {
26 struct b ah;
27 int ai = 1, aj[7] = {1, 1, 1, 1, 1, 1, 1};
28 ak:
29 for (u = -22; u < 2; ++u) {
30 struct b al[8] = {{2, 7, 9}, {8, 7, 1}, {2, 7, 9}, {8, 7, 1}, {2, 7, 9}, {8, 7, 1}, {2, 7, 9}};
31 y = z = 0;
32 for (; z < 2; z++) {
33 int am[18], k;
34 ab = ac = 0;
35 for (; ac < 1; ac++)
36 for (k = 0; k < 9; k++)
37 am[k] = 0;
38 n = 0;
39 while (1) {
40 v = u < 0 || a;
41 h = z < ~u && 4 & q.c;
42 if ((aa <= l.c) > q.d && p)
43 return o.c;
44 if (w)
45 break;
46 return q.e;
47 }
48 a = j;
49 }
50 }
51 for (x = 0; x < 2; x++) {
52 struct b an = {1, 8, 4};
53 int ao[28] = {5, 0, 0, 9, 0, 3, 0, 5, 0, 0, 9, 0, 3, 0, 5, 0, 0, 9, 0, 3, 0, 5, 0, 0, 9, 0, 3, 0};
54 if (q.e) {
55 int ap = ai || l.c + q.c, aq = q.d, ar = p & f;
56 q.d = q.d || ar || ap;
57 p = 0;
58 if (!j && ai)
59 goto as;
60 if (q.d) {
61 printf("", l);
62 q.d = f >> j;
63 }
64 p = l.c = aq;
65 an = q;
66 } else {
67 int at[12][1] = {{9}, {9}, {5}, {9}, {9}, {5}, {9}, {9}, {5}, {9}, {9}, {5}};
68 struct b au;
69 if (o.c)
70 aa = ah.e;
71 if (an.d)
72 ah.e = (j & (aa * m)) ^ au.d;
73 o.c = m + aa;
74 int av = o.c || 0, aw = ai || q.c & l.c, ax = n;
75 if (q.e < ai)
76 q = an;
77 if (r)
78 break;
79 ai = aw - av;
80 an.e = 0;
81 if (ai) {
82 an.e = l.c || 0;
83 f = q.c;
84 ah.e = l.c % q.d;
85 q.c = au.e;
86 if ((q.d && q.c) || ah.e)
87 my_abort ();
88 q.c = 0;
89 if (au.d > m || ah.e)
90 w = au.c | (n & ah.c);
91 as:
92 ae = af = ah.c;
93 int ay = au.d & q.e & au.c || o.c, az = 0 || o.c, ba = m & ah.d;
94 if (n)
95 au.c = au.e = (q.e || ah.d) ^ (o.c + (az / au.e));
96 n = au.c || au.e;
97 if (ba) {
98 printf("", ax);
99 x = q.e | m;
100 continue;
101 }
102 m = ay;
103 n = printf("", au);
104 }
105 if (ah.d)
106 o.c = l.c & o.c & q.c;
107 if (q.d)
108 my_abort ();
109 printf("", an);
110 printf("", q);
111 printf("", au);
112 if (ah.e)
113 while (u++) {
114 struct b al[7] = {{7, 9, 8}, {7, 1, 2}, {7, 9, 8}, {7, 1, 2}, {7, 9, 8}, {7, 1, 2}, {7, 9, 0}};
115 if (an.d) {
116 int d[8] = {0, 1, 0, 1, 0, 1, 0, 1};
117 if (ad)
118 goto ak;
119 while (ag)
120 g = an.d = i = m;
121 f = j;
122 }
123 n++;
124 }
125 f = q.d;
126 }
127 if (l.c && m) {
128 int d[7] = {1, 0, 1, 0, 1, 0, 1};
129 if (x)
130 h = an.d;
131 else
132 g = 0;
133 }
134 }
135 int bb = (q.d ^ ah.c) | aa | (q.e & q.c) | (f & ah.d);
136 if (bb)
137 return x;
138 return 0;
139 }
140 int main() {
141 j = 1;
142 s(0);
143 return 0;
144 }