isl_aff_ceil: compute ceil(e/m) as floor((e + m - 1)/m)
[platform/upstream/isl.git] / test_inputs / codegen / cloog / reservoir-lim-lam3.c
1 for (int c1 = 5; c1 <= 5 * M; c1 += 1) {
2   for (int c3 = max(2, floord(-M + c1, 4)); c3 < min((c1 + 1) / 3 - 2, M); c3 += 1)
3     for (int c5 = max(-M - c3 + (M + c1) / 2 - 2, 1); c5 < min(c3, -2 * c3 + (c1 + c3) / 2 - 2); c5 += 1)
4       S1(c1 - 2 * c3 - 2 * c5 - 5, c3, c5);
5   for (int c3 = max(1, floord(-M + c1, 4)); c3 < (c1 + 1) / 5; c3 += 1)
6     S2(c1 - 4 * c3 - 3, c3);
7   if (c1 % 5 == 0)
8     S4(c1 / 5);
9   for (int c3 = max(-((c1 - 1) % 3) + 3, -3 * M - c1 + 3 * ((M + c1) / 2) + 1); c3 < (c1 + 1) / 5; c3 += 3)
10     S3((c1 - 2 * c3 - 1) / 3, c3);
11 }