Polyhedron_Lattice_Width_Directions: do not skip duplicate directions
commit61ea7fd84fd16e809220044143d571f0f8228aa5
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 1 Dec 2016 11:05:59 +0000 (1 12:05 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 23 Dec 2016 12:14:32 +0000 (23 13:14 +0100)
tree29eb9ddc5c39f47b3fbf107ccd9b4aa3f8e89182
parentc94ef11f901275908e174a89f8309fe7f4ca4c03
Polyhedron_Lattice_Width_Directions: do not skip duplicate directions

For non-parametric polytopes, a given direction always yields the same
width, but this is not the case for parametric polytopes.
For example, the new test case is flattest in the (1,0) direction,
with width n/2 or 10, depending on the value of the parameter n.
If the width in the (1,0) direction is only computed once,
then only one of those widths is found and the other is replaced
by the width n found in other directions.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
lattice_width.c
tests/iscc/lattice_width-1 [new file with mode: 0644]