properly handle generic conditions in for loops
commitdea1a9924f64008a45b490a11de17dc000834ef4
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 28 Jul 2011 09:13:06 +0000 (28 11:13 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 28 Jul 2011 10:11:12 +0000 (28 12:11 +0200)
treececa0426cea1ad99525428151f4b08506a3faf6d
parent94b398b0d6b1b53cf0cd82458edbc2eb7678da5b
properly handle generic conditions in for loops

Pet accepts any affine condition in a for loop, but the construction
of the corresponding iteration domain would assume that the condition
represents an upper bound on the loop iterator, meaning that if it
is valid for a particular value of the loop iterator, it is also
valid for all previous values.
In general, we need to explicitly impose the constraint that the condition
also holds for all previous iterations.

New test case inspired by the PolyOpt manual.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc
tests/generic_condition.c [new file with mode: 0644]
tests/generic_condition.scop [new file with mode: 0644]