add support for generating ASTs from schedule relations
[isl.git] / test_inputs / codegen / cloog / reservoir-cholesky2.c
blobc4d918550f29753ec1134352380175004c8d41b5
1 for (int c1 = 2; c1 <= 3 * M - 1; c1 += 1) {
2 if ((c1 - 2) % 3 == 0)
3 S1((c1 + 1) / 3);
4 for (int c3 = -floord(-c1 + 1, 3) + 1; c3 <= min(c1 - 2, M); c3 += 1)
5 for (int c5 = c1 - (c1 + c3) / 2 + 1; c5 <= min(c1 - c3, c3); c5 += 1)
6 S3(c1 - c3 - c5 + 1, c3, c5);
7 if (c1 + 1 >= 3 * ((c1 + floord(-c1 - 1, 3) + 1) / 2) && 3 * ((c1 + floord(-c1 - 1, 3) + 1) / 2) + 1 >= c1)
8 for (int c3 = ((c1 + floord(-c1 - 1, 3) + 1) % 2) - floord(-c1 - 1, 3) + 1; c3 <= min(c1, M); c3 += 2)
9 S2((c1 - c3 + 2) / 2, c3);