clast generation: don't feed malformed constraints to modulo guard construction
commit9ef54cf4b257e609f33bb385afb2e53494392c4f
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 29 Apr 2011 12:59:14 +0000 (29 14:59 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 29 Apr 2011 13:09:23 +0000 (29 15:09 +0200)
tree4081e425c72096659c7f802743673c60db97f95d
parentc1aebd71ecde197287e6d4dcf361152c8a8061e5
clast generation: don't feed malformed constraints to modulo guard construction

We try to simplify the constraints used during the construction
of a modulo guard.  In the isl backend, we end up calling isl_basic_set_gist,
but this may in some cases result in a constraint set that the caller
is unable to handle.  In particular, the result may contain more than
one existentially quantified variable and this would be treated in the
same way as when there were no existentially quantified variables left.
This then produced an error later on because the constraints are not in
the expected form.

If we end up with more than one existentially quantified variable,
we now just return the original set of constraints.

Reported-by: Louis-Noel Pouchet <pouchet@cse.ohio-state.edu>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
source/isl/constraints.c
test/Makefile.am
test/pouchet.c [new file with mode: 0644]
test/pouchet.cloog [new file with mode: 0644]
test/pouchet.good.c [new file with mode: 0644]