add support for generating ASTs from schedule relations
[platform/upstream/isl.git] / test_inputs / codegen / cloog / vasilache.c
1 {
2   S1();
3   S2();
4   for (int c1 = 0; c1 <= N - 1; c1 += 1)
5     for (int c3 = 0; c3 <= N - 1; c3 += 1) {
6       S4(c1, c3);
7       S5(c1, c3);
8     }
9   for (int c1 = 0; c1 <= N - 1; c1 += 1)
10     for (int c3 = 0; c3 <= N - 1; c3 += 1)
11       for (int c5 = 0; c5 <= (N - 1) / 32; c5 += 1) {
12         S7(c1, c3, c5, 32 * c5);
13         for (int c7 = 32 * c5 + 1; c7 <= min(N - 1, 32 * c5 + 31); c7 += 1) {
14           S6(c1, c3, c5, c7 - 1);
15           S7(c1, c3, c5, c7);
16         }
17         if (N >= 32 * c5 + 33) {
18           S6(c1, c3, c5, 32 * c5 + 31);
19         } else
20           S6(c1, c3, c5, N - 1);
21       }
22   S8();
23 }