X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=basis_reduction_tab.c;h=6c7b040370f396b5e1af06741aa928322d1578c4;hb=63fb8a7f484648c3caa25351c8c94ac2395ec563;hp=11c43adda81baae54c2bbd19d34a2a641b2afcd4;hpb=3dd551186a6f18654214338a83d141c80885ddf6;p=platform%2Fupstream%2Fisl.git diff --git a/basis_reduction_tab.c b/basis_reduction_tab.c index 11c43ad..6c7b040 100644 --- a/basis_reduction_tab.c +++ b/basis_reduction_tab.c @@ -1,14 +1,15 @@ /* * Copyright 2008-2009 Katholieke Universiteit Leuven * - * Use of this software is governed by the GNU LGPLv2.1 license + * Use of this software is governed by the MIT license * * Written by Sven Verdoolaege, K.U.Leuven, Departement * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium */ #include -#include "isl_seq.h" +#include +#include #include "isl_tab.h" struct tab_lp { @@ -222,7 +223,8 @@ static int add_lp_row(struct tab_lp *lp, isl_int *row, int dim) isl_seq_cpy(lp->row->el + 1, row, lp->dim); isl_seq_neg(lp->row->el + 1 + lp->dim, row, lp->dim); - lp->tab = isl_tab_add_valid_eq(lp->tab, lp->row->el); + if (isl_tab_add_valid_eq(lp->tab, lp->row->el) < 0) + return -1; return lp->neq++; }