pet_scop_collect_arrays: only collect siblings of accessed fields
[pet.git] / tests / decl8.c
blobf3016d66d8359454226c3a2065863fd06088d710
1 void f(int n, float b[n])
3 #pragma scop
4 float a[n];
6 for (int i = 0; i < n; i++)
7 a[i] = b[i];
9 for (int i = 0; i < n; i++) {
10 float b[n][n];
11 b[i][i] = a[i] + 1;
12 a[i] = b[i][i];
15 for (int i = 0; i < n; i++)
16 b[i] = a[i];
17 #pragma endscop