+/*
+ * 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
+ */
+
#ifndef ISL_MAP_H
#define ISL_MAP_H
#include <isl_blk.h>
#include <isl_dim.h>
#include <isl_vec.h>
+#include <isl_mat.h>
#if defined(__cplusplus)
extern "C" {
struct isl_basic_map *isl_basic_map_simplify(struct isl_basic_map *bmap);
struct isl_basic_map *isl_basic_map_detect_equalities(
struct isl_basic_map *bmap);
-#define ISL_FORMAT_POLYLIB 1
-#define ISL_FORMAT_OMEGA 2
__isl_give isl_basic_map *isl_basic_map_read_from_file(isl_ctx *ctx,
- FILE *input, unsigned nparam, unsigned input_format);
+ FILE *input, int nparam);
+__isl_give isl_basic_map *isl_basic_map_read_from_str(isl_ctx *ctx,
+ const char *str, int nparam);
+__isl_give isl_map *isl_map_read_from_file(struct isl_ctx *ctx,
+ FILE *input, int nparam);
+__isl_give isl_map *isl_map_read_from_str(isl_ctx *ctx,
+ const char *str, int nparam);
+#define ISL_FORMAT_ISL 0
+#define ISL_FORMAT_POLYLIB 1
+void isl_basic_map_print(__isl_keep isl_basic_map *bmap, FILE *out, int indent,
+ const char *prefix, const char *suffix, unsigned output_format);
+void isl_map_print(__isl_keep isl_map *map, FILE *out, int indent,
+ unsigned output_format);
struct isl_basic_map *isl_basic_map_fix_si(struct isl_basic_map *bmap,
enum isl_dim_type type, unsigned pos, int value);
__isl_take isl_basic_map *bmap, __isl_take isl_basic_set *dom,
__isl_give isl_set **empty);
__isl_give isl_map *isl_basic_map_lexmin(__isl_take isl_basic_map *bmap);
+__isl_give isl_map *isl_basic_map_lexmax(__isl_take isl_basic_map *bmap);
+int isl_basic_map_foreach_lexmin(__isl_keep isl_basic_map *bmap,
+ int (*fn)(__isl_take isl_basic_set *dom, __isl_take isl_mat *map,
+ void *user),
+ void *user);
void isl_basic_map_dump(__isl_keep isl_basic_map *bmap, FILE *out, int indent);
struct isl_basic_map *isl_map_copy_basic_map(struct isl_map *map);
-struct isl_map *isl_map_drop_basic_map(struct isl_map *map,
- struct isl_basic_map *bmap);
+__isl_give isl_map *isl_map_drop_basic_map(__isl_take isl_map *map,
+ __isl_keep isl_basic_map *bmap);
int isl_basic_map_fast_is_fixed(struct isl_basic_map *bmap,
enum isl_dim_type type, unsigned pos, isl_int *val);
__isl_give isl_basic_map *isl_map_sample(__isl_take isl_map *map);
int isl_map_fast_is_empty(__isl_keep isl_map *map);
+int isl_map_fast_is_universe(__isl_keep isl_map *map);
int isl_map_is_empty(__isl_keep isl_map *map);
int isl_map_is_subset(__isl_keep isl_map *map1, __isl_keep isl_map *map2);
int isl_map_is_strict_subset(__isl_keep isl_map *map1, __isl_keep isl_map *map2);