isl_basic_set_sort_constraints: take into account all coefficients
[isl.git] / test_inputs / codegen / cloog / reservoir-lim-lam3.c
blob894c2414f62cff1d96775443faea373f50ad15cc
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(-2 * c3 + (c1 + c3) / 2 - 2, c3); 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);