Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/graphite/scop-10.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
111 | 1 void bar (void); |
2 | |
3 int toto() | |
4 { | |
5 int i, j, k; | |
6 int a[100][100]; | |
7 int b[200]; | |
8 | |
9 for (i = 1; i < 100; i++) | |
10 { | |
11 for (j = 1; j < 100; j++) | |
12 b[i+j] = b[i+j-1] + 2; | |
13 | |
14 if (i * 2 == i + 8) | |
15 { | |
16 for (j = 1; j < 100; j++) | |
17 b[i+j] = b[i+j-1] + 2; | |
18 a[i][i] = 2; | |
19 } | |
20 | |
21 for (k = 1; k < 100; k++) | |
22 b[i+k] = b[i+k-5] + 2; | |
23 } | |
24 | |
131 | 25 return a[3][5] + b[2]; |
111 | 26 } |
27 | |
28 /* { dg-final { scan-tree-dump-times "number of SCoPs: 1" 1 "graphite"} } */ |