add pet_expr_map_top_down
[pet.git] / tests / decl7.c
blob4ef66b1296ee0e43666a80bdd5b028d0f2a024bd
1 void f(int n, float c[n])
3 #pragma scop
4 float a[n];
6 for (int i = 0; i < n; i++)
7 a[i] = c[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];
14 for (int i = 0; i < n; i++) {
15 float b[n][n];
16 b[i][i] = a[i] + 1;
17 a[i] = b[i][i];
20 for (int i = 0; i < n; i++)
21 c[i] = a[i];
22 #pragma endscop