From 596122af75f167c1b560ad55147e2c92ca2286c6 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 27 Sep 2010 10:47:25 +0200 Subject: [PATCH] isl_basic_map_gauss: normalize resulting constraints When isl_basic_map_gauss is called from isl_basic_map_simplify, the constraints get normalized already. However, sometimes the calling functions wants to only perform isl_basic_map_gauss and then the constraints should still be normalized. Signed-off-by: Sven Verdoolaege --- isl_map_simplify.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/isl_map_simplify.c b/isl_map_simplify.c index d862f9a2..a82f2392 100644 --- a/isl_map_simplify.c +++ b/isl_map_simplify.c @@ -393,6 +393,7 @@ static void eliminate_var_using_equality(struct isl_basic_map *bmap, if (progress) *progress = 1; isl_seq_elim(bmap->eq[k], eq, 1+pos, 1+total, NULL); + isl_seq_normalize(bmap->ctx, bmap->eq[k], 1 + total); } for (k = 0; k < bmap->n_ineq; ++k) { @@ -401,6 +402,7 @@ static void eliminate_var_using_equality(struct isl_basic_map *bmap, if (progress) *progress = 1; isl_seq_elim(bmap->ineq[k], eq, 1+pos, 1+total, NULL); + isl_seq_normalize(bmap->ctx, bmap->ineq[k], 1 + total); ISL_F_CLR(bmap, ISL_BASIC_MAP_NORMALIZED); } -- 2.11.4.GIT