OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2010-08-26 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
graphite
/
pr37928.c
1
/* { dg-options "-O3" } */
2
3
int get_state(int size, int *node, int *hash)
4
{
5
int i=0;
6
while(hash[i])
7
{
8
if(node[hash[i]] == 0)
9
return hash[i]-1;
10
i++;
11
if(i==5)
12
i=0;
13
}
14
return -1;
15
}
16
17
void foo (int);
18
19
int gate1(int size, int *node, int *hash)
20
{
21
int i, j ;
22
int add_size=0;
23
for(i=0; i<size; i++)
24
{
25
j = get_state(size,node, hash);
26
if(j == -1)
27
{
28
add_size++;
29
}
30
}
31
32
foo (size+add_size);
33
}