X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=basis_reduction_templ.c;h=7f4b28f06c9fc95557fc06e1e27d8ef4d2aa01e6;hb=de51a9bc4da5dd3f1f9f57c2362da6f9752c44e0;hp=4f6145d42ad339bce63cfcee0d4964b9dae54e28;hpb=41664cabbbca0d3bb3bec0fb2162c43322b56b13;p=platform%2Fupstream%2Fisl.git diff --git a/basis_reduction_templ.c b/basis_reduction_templ.c index 4f6145d..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 @@ -11,7 +11,9 @@ */ #include +#include #include +#include #include "isl_basis_reduction.h" static void save_alpha(GBR_LP *lp, int first, int n, GBR_type *alpha) @@ -327,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; @@ -336,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);