isl_ast_build_ast_from_schedule: use "<" if upper bound has negative constant
[platform/upstream/isl.git] / test_inputs / codegen / cloog / vasilache.c
index 974dc04..567e41f 100644 (file)
@@ -1,13 +1,13 @@
 {
   S1();
   S2();
-  for (int c1 = 0; c1 <= N - 1; c1 += 1)
-    for (int c3 = 0; c3 <= N - 1; c3 += 1) {
+  for (int c1 = 0; c1 < N; c1 += 1)
+    for (int c3 = 0; c3 < N; c3 += 1) {
       S4(c1, c3);
       S5(c1, c3);
     }
-  for (int c1 = 0; c1 <= N - 1; c1 += 1)
-    for (int c3 = 0; c3 <= N - 1; c3 += 1)
+  for (int c1 = 0; c1 < N; c1 += 1)
+    for (int c3 = 0; c3 < N; c3 += 1)
       for (int c5 = 0; c5 <= (N - 1) / 32; c5 += 1) {
         S7(c1, c3, c5, 32 * c5);
         for (int c7 = 32 * c5 + 1; c7 <= min(N - 1, 32 * c5 + 31); c7 += 1) {