1 /* PR tree-optimization/32573 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3" } */
4
5 long long bar (void *);
6
7 int
foo(void * x,long long * y)8 foo (void *x, long long *y)
9 {
10 char a[256];
11 int i = 0;
12 long long b;
13 int c;
14 int d = 0;
15 int e = 0;
16 unsigned f = 0;
17 b = bar (x);
18 c = (unsigned) b;
19 while (d < b && d < 65557)
20 {
21 f = *(unsigned *) &a[0];
22 for (i = c - 4; i > 0; i--)
23 if (a[i + 0] == 0x50
24 && a[i + 1] == 0x4B
25 && a[i + 3] == 0x06)
26 {
27 e = 1;
28 break;
29 }
30 }
31 return !e;
32 }
33