codegen_test.sh: avoid use of constructs not supported by /bin/sh on Solaris
[isl.git] / test_inputs / codegen / cloog / darte.c
blob208aafba57c8e5d3ae3265538d9c58686e4c81c9
1 for (int c0 = -n + 1; c0 <= n; c0 += 1) {
2 if (c0 <= 0)
3 for (int c2 = -c0 + 4; c2 <= 2 * n - c0 + 2; c2 += 2)
4 S1(1, -c0 + 1, (c0 + c2 - 2) / 2);
5 for (int c1 = max(-c0 + 4, c0 + 2); c1 <= min(2 * n + c0, 2 * n - c0); c1 += 2) {
6 for (int c2 = c1 + 2; c2 <= 2 * n + c1; c2 += 2)
7 S1((c0 + c1) / 2, (-c0 + c1) / 2, (-c1 + c2) / 2);
8 for (int c2 = 1; c2 <= n; c2 += 1)
9 S2((c0 + c1 - 2) / 2, (-c0 + c1) / 2, c2);
11 if (c0 >= 1)
12 for (int c2 = 1; c2 <= n; c2 += 1)
13 S2(n, n - c0 + 1, c2);