add a new AST generator test case
commitfec681ea08049cbe96b8fec754052a59fb6fc4d0
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 10 Nov 2013 17:00:32 +0000 (10 18:00 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 22 Aug 2014 14:49:38 +0000 (22 16:49 +0200)
tree61cec7569353651e052ac1fd3e03d646c1a15ab8
parent007426f987e5046a218664fa1210e54a13f0be40
add a new AST generator test case

Older versions of isl would produce the following output
for this test case:

    for (int c0 = 2; c0 <= 200; c0 += 64) {
      if (c0 <= 66)
for (int c2 = c0 - 1; c2 <= 120; c2 += 1)
  s2(c0, c2);
      if (c0 >= 66)
for (int c2 = 122; c2 <= c0 + 62; c2 += 1)
  s4(c0, c2);
    }

The constraint c0 <= 66 is redundant with respect to c0 - 1 <= 120,
i.e., c0 <= 121 and the fact that c0 is equal to a multiple of
64 plus 2.

After the reorganization in the previous commit, these extra
constraints are no longer being generated.

Reported-by: Tobias Grosser <tobias@grosser.es>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
test_inputs/codegen/stride7.c [new file with mode: 0644]
test_inputs/codegen/stride7.in [new file with mode: 0644]