X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=basis_reduction_templ.c;h=7f4b28f06c9fc95557fc06e1e27d8ef4d2aa01e6;hb=bebe6a21ae5f0d8eed204ad491154d3dfb916091;hp=dd90a15e671b569c7c0fb5ad6dd9c0f88fa61984;hpb=0dcb90aef1a2934609fdce9d8cf527af8b558d43;p=platform%2Fupstream%2Fisl.git diff --git a/basis_reduction_templ.c b/basis_reduction_templ.c index dd90a15..7f4b28f 100644 --- a/basis_reduction_templ.c +++ b/basis_reduction_templ.c @@ -2,7 +2,7 @@ * Copyright 2006-2007 Universiteit Leiden * 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, Leiden Institute of Advanced Computer Science, * Universiteit Leiden, Niels Bohrweg 1, 2333 CA Leiden, The Netherlands @@ -13,6 +13,7 @@ #include #include #include +#include #include "isl_basis_reduction.h" static void save_alpha(GBR_LP *lp, int first, int n, GBR_type *alpha) @@ -328,7 +329,7 @@ struct isl_mat *isl_basic_set_reduced_basis(struct isl_basic_set *bset) isl_die(bset->ctx, isl_error_invalid, "no parameters allowed", return NULL); - tab = isl_tab_from_basic_set(bset); + tab = isl_tab_from_basic_set(bset, 0); if (!tab) return NULL; @@ -337,7 +338,7 @@ struct isl_mat *isl_basic_set_reduced_basis(struct isl_basic_set *bset) else { isl_mat *eq; unsigned nvar = isl_basic_set_total_dim(bset); - eq = isl_mat_sub_alloc(bset->ctx, bset->eq, 0, bset->n_eq, + eq = isl_mat_sub_alloc6(bset->ctx, bset->eq, 0, bset->n_eq, 1, nvar); eq = isl_mat_left_hermite(eq, 0, NULL, &tab->basis); tab->basis = isl_mat_lin_to_aff(tab->basis);