isl_ast_codegen.c: update_unrolling_lower_bound: check for overflow
[isl.git] / test_inputs / codegen / unroll6.in
blobb4338e331f98d475c8af7015a10cc438224efa26
1 # Check that the right lower bound is chosen for unrolling.
2 # Older versions of isl would pick a lower bound that resulted
3 # in a number of slices that exceeds the maximal value of an integer
4 # and then only generated code for a truncated number (zero) of slices.
5 [nn, t1, g] -> { A[a, b, c] -> [c] : exists (e0 = [(2 + a)/393216], e1 = [(t1 - c)/128]: 128g = b - c and 393216e0 = 2 + a and 128e1 = t1 - c and c <= 130 and c >= 6 - nn + b and c <= 128 + b and nn >= 137 and t1 >= 0 and c >= 1 and a <= -2 + nn and a >= 1 and nn <= 9223372036854775807 and b >= 1 and b <= -2 + nn and t1 <= 127) }
6 [nn, t1, g] -> { : nn <= 9223372036854775807 and nn >= 137 and t1 >= 0 and t1 <= 127 }
7 { [c] -> unroll[x] }