isl_polytope_scan: use isl_tab_from_basic_set
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 26 Sep 2009 13:05:07 +0000 (15:05 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 9 Oct 2009 08:41:15 +0000 (10:41 +0200)
polytope_scan.c

index 721e050..a69ba9c 100644 (file)
@@ -93,16 +93,16 @@ static struct isl_mat *isl_basic_set_samples(struct isl_basic_set *bset)
        if (!min || !max || !samples || !snap)
                goto error;
 
+       tab = isl_tab_from_basic_set(bset);
+
        if (1)
-               B = isl_basic_set_reduced_basis(bset);
+               B = isl_tab_reduced_basis(tab);
        else
                B = isl_mat_identity(bset->ctx, dim);
        B = isl_mat_lin_to_aff(B);
        if (!B)
                goto error;
 
-       tab = isl_tab_from_basic_set(bset);
-
        level = 0;
        init = 1;