isl_tab_compute_reduced_basis: handle empty tables
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 21 Oct 2009 19:04:26 +0000 (21:04 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 21 Oct 2009 20:59:56 +0000 (22:59 +0200)
basis_reduction_templ.c

index bd5f842..7481798 100644 (file)
@@ -60,6 +60,9 @@ struct isl_tab *isl_tab_compute_reduced_basis(struct isl_tab *tab)
        if (!tab)
                return NULL;
 
+       if (tab->empty)
+               return tab;
+
        ctx = tab->mat->ctx;
        dim = tab->n_var;
        B = tab->basis;