1 double u[1782225]; 2 foo(int N,int * res)3void foo(int N, int *res) 4 { 5 int i; 6 double a, b; 7 double sum = 0.0; 8 9 for (i = 0; i < N; i++) 10 sum += u[i]; 11 12 for (i = 0; i < N; i++) 13 { 14 a = u[i]; 15 u[i] = i * i; 16 b = u[i]; 17 sum += a + b; 18 } 19 20 *res = sum + N; 21 } 22 23 /* { dg-final { scan-tree-dump-times "number of SCoPs: 1" 1 "graphite"} } */ 24