add isl_mat_normalize_row
[platform/upstream/isl.git] / isl_map_piplib.c
index 55089e8..b1434eb 100644 (file)
@@ -1,10 +1,20 @@
-#include "isl_set.h"
-#include "isl_map.h"
-#include "isl_mat.h"
-#include "isl_seq.h"
+/*
+ * Copyright 2008-2009 Katholieke Universiteit Leuven
+ *
+ * Use of this software is governed by the GNU LGPLv2.1 license
+ *
+ * Written by Sven Verdoolaege, K.U.Leuven, Departement
+ * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
+ */
+
+#include <isl_ctx_private.h>
+#include <isl_map_private.h>
+#include <isl/set.h>
+#include <isl/map.h>
+#include <isl/mat.h>
+#include <isl/seq.h>
 #include "isl_piplib.h"
 #include "isl_map_piplib.h"
-#include "isl_map_private.h"
 
 static void copy_values_from(isl_int *dst, Entier *src, unsigned n)
 {
@@ -222,7 +232,7 @@ static struct isl_map *scan_quast_r(struct scan_data *data, PipQuast *q,
                        if (add_equality(data->ctx, bmap, data->pos, j,
                                                l->vector) < 0)
                                goto error;
-               map = isl_map_add(map, isl_basic_map_copy(bmap));
+               map = isl_map_add_basic_map(map, isl_basic_map_copy(bmap));
                if (isl_basic_map_free_equality(bmap, n_out))
                        goto error;
        } else if (data->rest) {
@@ -231,7 +241,7 @@ static struct isl_map *scan_quast_r(struct scan_data *data, PipQuast *q,
                bset = isl_basic_set_drop_dims(bset, n_in, n_out);
                if (!bset)
                        goto error;
-               *data->rest = isl_set_add(*data->rest, bset);
+               *data->rest = isl_set_add_basic_set(*data->rest, bset);
        }
 
        if (isl_basic_map_free_inequality(bmap, 2*(bmap->n_div - old_n_div)))