Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / graphite / pr37928.c
blob3c33f3a46372feafb8485ebe0a89c454428a484e
1 /* { dg-options "-O3" } */
3 int get_state(int size, int *node, int *hash)
5 int i=0;
6 while(hash[i])
8 if(node[hash[i]] == 0)
9 return hash[i]-1;
10 i++;
11 if(i==5)
12 i=0;
14 return -1;
17 void foo (int);
19 int gate1(int size, int *node, int *hash)
21 int i, j ;
22 int add_size=0;
23 for(i=0; i<size; i++)
25 j = get_state(size,node, hash);
26 if(j == -1)
28 add_size++;
32 foo (size+add_size);