2 * Copyright 2008-2009 Katholieke Universiteit Leuven
4 * Use of this software is governed by the GNU LGPLv2.1 license
6 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
22 #include <isl/printer.h>
24 #if defined(__cplusplus)
30 * All structures are reference counted to allow reuse without duplication.
31 * A *_copy operation will increase the reference count, while a *_free
32 * operation will decrease the reference count and only actually release
33 * the structures when the reference count drops to zero.
35 * Functions that return an isa structure will in general _destroy_
36 * all argument isa structures (the obvious execption begin the _copy
37 * functions). A pointer passed to such a function may therefore
38 * never be used after the function call. If you want to keep a
39 * reference to the old structure(s), use the appropriate _copy function.
43 typedef struct isl_basic_map isl_basic_map
;
46 typedef struct isl_basic_set isl_basic_set
;
49 typedef struct isl_map isl_map
;
52 typedef struct isl_set isl_set
;
55 unsigned isl_basic_map_n_in(const struct isl_basic_map
*bmap
);
56 unsigned isl_basic_map_n_out(const struct isl_basic_map
*bmap
);
57 unsigned isl_basic_map_n_param(const struct isl_basic_map
*bmap
);
58 unsigned isl_basic_map_n_div(const struct isl_basic_map
*bmap
);
59 unsigned isl_basic_map_total_dim(const struct isl_basic_map
*bmap
);
60 unsigned isl_basic_map_dim(const struct isl_basic_map
*bmap
,
61 enum isl_dim_type type
);
63 unsigned isl_map_n_in(const struct isl_map
*map
);
64 unsigned isl_map_n_out(const struct isl_map
*map
);
65 unsigned isl_map_n_param(const struct isl_map
*map
);
66 unsigned isl_map_dim(const struct isl_map
*map
, enum isl_dim_type type
);
68 isl_ctx
*isl_basic_map_get_ctx(__isl_keep isl_basic_map
*bmap
);
69 isl_ctx
*isl_map_get_ctx(__isl_keep isl_map
*map
);
70 __isl_give isl_dim
*isl_basic_map_get_dim(__isl_keep isl_basic_map
*bmap
);
71 __isl_give isl_dim
*isl_map_get_dim(__isl_keep isl_map
*map
);
73 struct isl_div
*isl_basic_map_div(struct isl_basic_map
*bmap
, int pos
);
75 __isl_give isl_basic_map
*isl_basic_map_set_tuple_name(
76 __isl_take isl_basic_map
*bmap
, enum isl_dim_type type
, const char *s
);
77 const char *isl_basic_map_get_tuple_name(__isl_keep isl_basic_map
*bmap
,
78 enum isl_dim_type type
);
79 const char *isl_map_get_tuple_name(__isl_keep isl_map
*map
,
80 enum isl_dim_type type
);
81 __isl_give isl_map
*isl_map_set_tuple_name(__isl_take isl_map
*map
,
82 enum isl_dim_type type
, const char *s
);
83 const char *isl_basic_map_get_dim_name(__isl_keep isl_basic_map
*bmap
,
84 enum isl_dim_type type
, unsigned pos
);
85 const char *isl_map_get_dim_name(__isl_keep isl_map
*map
,
86 enum isl_dim_type type
, unsigned pos
);
87 __isl_give isl_basic_map
*isl_basic_map_set_dim_name(
88 __isl_take isl_basic_map
*bmap
,
89 enum isl_dim_type type
, unsigned pos
, const char *s
);
90 __isl_give isl_map
*isl_map_set_dim_name(__isl_take isl_map
*map
,
91 enum isl_dim_type type
, unsigned pos
, const char *s
);
93 int isl_basic_map_is_rational(__isl_keep isl_basic_map
*bmap
);
95 struct isl_basic_map
*isl_basic_map_alloc(struct isl_ctx
*ctx
,
96 unsigned nparam
, unsigned in
, unsigned out
, unsigned extra
,
97 unsigned n_eq
, unsigned n_ineq
);
98 __isl_give isl_basic_map
*isl_basic_map_identity(__isl_take isl_dim
*dim
);
99 struct isl_basic_map
*isl_basic_map_identity_like(struct isl_basic_map
*model
);
100 struct isl_basic_map
*isl_basic_map_finalize(struct isl_basic_map
*bmap
);
101 void isl_basic_map_free(__isl_take isl_basic_map
*bmap
);
102 __isl_give isl_basic_map
*isl_basic_map_copy(__isl_keep isl_basic_map
*bmap
);
103 struct isl_basic_map
*isl_basic_map_extend(struct isl_basic_map
*base
,
104 unsigned nparam
, unsigned n_in
, unsigned n_out
, unsigned extra
,
105 unsigned n_eq
, unsigned n_ineq
);
106 struct isl_basic_map
*isl_basic_map_extend_constraints(
107 struct isl_basic_map
*base
, unsigned n_eq
, unsigned n_ineq
);
108 struct isl_basic_map
*isl_basic_map_equal(
109 struct isl_dim
*dim
, unsigned n_equal
);
110 struct isl_basic_map
*isl_basic_map_less_at(struct isl_dim
*dim
, unsigned pos
);
111 struct isl_basic_map
*isl_basic_map_more_at(struct isl_dim
*dim
, unsigned pos
);
112 __isl_give isl_basic_map
*isl_basic_map_empty(__isl_take isl_dim
*dim
);
113 struct isl_basic_map
*isl_basic_map_empty_like(struct isl_basic_map
*model
);
114 struct isl_basic_map
*isl_basic_map_empty_like_map(struct isl_map
*model
);
115 __isl_give isl_basic_map
*isl_basic_map_universe(__isl_take isl_dim
*dim
);
116 __isl_give isl_basic_map
*isl_basic_map_nat_universe(__isl_take isl_dim
*dim
);
117 __isl_give isl_basic_map
*isl_basic_map_universe_like(
118 __isl_keep isl_basic_map
*bmap
);
119 __isl_give isl_basic_map
*isl_basic_map_remove_redundancies(
120 __isl_take isl_basic_map
*bmap
);
121 __isl_give isl_basic_map
*isl_map_simple_hull(__isl_take isl_map
*map
);
123 __isl_give isl_basic_map
*isl_basic_map_intersect_domain(
124 __isl_take isl_basic_map
*bmap
,
125 __isl_take isl_basic_set
*bset
);
126 __isl_give isl_basic_map
*isl_basic_map_intersect_range(
127 __isl_take isl_basic_map
*bmap
,
128 __isl_take isl_basic_set
*bset
);
129 __isl_give isl_basic_map
*isl_basic_map_intersect(
130 __isl_take isl_basic_map
*bmap1
,
131 __isl_take isl_basic_map
*bmap2
);
132 __isl_give isl_map
*isl_basic_map_union(
133 __isl_take isl_basic_map
*bmap1
,
134 __isl_take isl_basic_map
*bmap2
);
135 __isl_give isl_basic_map
*isl_basic_map_apply_domain(
136 __isl_take isl_basic_map
*bmap1
,
137 __isl_take isl_basic_map
*bmap2
);
138 __isl_give isl_basic_map
*isl_basic_map_apply_range(
139 __isl_take isl_basic_map
*bmap1
,
140 __isl_take isl_basic_map
*bmap2
);
141 __isl_give isl_basic_map
*isl_basic_map_affine_hull(
142 __isl_take isl_basic_map
*bmap
);
143 __isl_give isl_basic_map
*isl_basic_map_reverse(__isl_take isl_basic_map
*bmap
);
144 __isl_give isl_basic_set
*isl_basic_map_domain(__isl_take isl_basic_map
*bmap
);
145 __isl_give isl_basic_set
*isl_basic_map_range(__isl_take isl_basic_map
*bmap
);
146 __isl_give isl_basic_map
*isl_basic_map_domain_map(
147 __isl_take isl_basic_map
*bmap
);
148 __isl_give isl_basic_map
*isl_basic_map_range_map(
149 __isl_take isl_basic_map
*bmap
);
150 __isl_give isl_basic_map
*isl_basic_map_remove_dims(
151 __isl_take isl_basic_map
*bmap
,
152 enum isl_dim_type type
, unsigned first
, unsigned n
);
153 struct isl_basic_map
*isl_basic_map_from_basic_set(struct isl_basic_set
*bset
,
154 struct isl_dim
*dim
);
155 struct isl_basic_set
*isl_basic_set_from_basic_map(struct isl_basic_map
*bmap
);
156 __isl_give isl_basic_map
*isl_basic_map_sample(__isl_take isl_basic_map
*bmap
);
157 struct isl_basic_map
*isl_basic_map_simplify(struct isl_basic_map
*bmap
);
158 struct isl_basic_map
*isl_basic_map_detect_equalities(
159 struct isl_basic_map
*bmap
);
160 __isl_give isl_basic_map
*isl_basic_map_read_from_file(isl_ctx
*ctx
,
161 FILE *input
, int nparam
);
162 __isl_give isl_basic_map
*isl_basic_map_read_from_str(isl_ctx
*ctx
,
163 const char *str
, int nparam
);
164 __isl_give isl_map
*isl_map_read_from_file(struct isl_ctx
*ctx
,
165 FILE *input
, int nparam
);
166 __isl_give isl_map
*isl_map_read_from_str(isl_ctx
*ctx
,
167 const char *str
, int nparam
);
168 void isl_basic_map_dump(__isl_keep isl_basic_map
*bmap
);
169 void isl_basic_map_print(__isl_keep isl_basic_map
*bmap
, FILE *out
, int indent
,
170 const char *prefix
, const char *suffix
, unsigned output_format
);
171 void isl_map_dump(__isl_keep isl_map
*map
);
172 void isl_map_print(__isl_keep isl_map
*map
, FILE *out
, int indent
,
173 unsigned output_format
);
174 __isl_give isl_printer
*isl_printer_print_basic_map(
175 __isl_take isl_printer
*printer
, __isl_keep isl_basic_map
*bmap
);
176 __isl_give isl_printer
*isl_printer_print_map(__isl_take isl_printer
*printer
,
177 __isl_keep isl_map
*map
);
178 struct isl_basic_map
*isl_basic_map_fix_si(struct isl_basic_map
*bmap
,
179 enum isl_dim_type type
, unsigned pos
, int value
);
180 __isl_give isl_basic_map
*isl_basic_map_lower_bound_si(
181 __isl_take isl_basic_map
*bmap
,
182 enum isl_dim_type type
, unsigned pos
, int value
);
184 struct isl_basic_map
*isl_basic_map_sum(
185 struct isl_basic_map
*bmap1
, struct isl_basic_map
*bmap2
);
186 struct isl_basic_map
*isl_basic_map_neg(struct isl_basic_map
*bmap
);
187 struct isl_basic_map
*isl_basic_map_floordiv(struct isl_basic_map
*bmap
,
190 struct isl_map
*isl_map_sum(struct isl_map
*map1
, struct isl_map
*map2
);
191 struct isl_map
*isl_map_neg(struct isl_map
*map
);
192 struct isl_map
*isl_map_floordiv(struct isl_map
*map
, isl_int d
);
194 int isl_basic_map_is_equal(
195 __isl_keep isl_basic_map
*bmap1
,
196 __isl_keep isl_basic_map
*bmap2
);
198 __isl_give isl_map
*isl_basic_map_partial_lexmax(
199 __isl_take isl_basic_map
*bmap
, __isl_take isl_basic_set
*dom
,
200 __isl_give isl_set
**empty
);
201 __isl_give isl_map
*isl_basic_map_partial_lexmin(
202 __isl_take isl_basic_map
*bmap
, __isl_take isl_basic_set
*dom
,
203 __isl_give isl_set
**empty
);
204 __isl_give isl_map
*isl_map_partial_lexmax(
205 __isl_take isl_map
*map
, __isl_take isl_set
*dom
,
206 __isl_give isl_set
**empty
);
207 __isl_give isl_map
*isl_map_partial_lexmin(
208 __isl_take isl_map
*map
, __isl_take isl_set
*dom
,
209 __isl_give isl_set
**empty
);
210 __isl_give isl_map
*isl_basic_map_lexmin(__isl_take isl_basic_map
*bmap
);
211 __isl_give isl_map
*isl_basic_map_lexmax(__isl_take isl_basic_map
*bmap
);
212 __isl_give isl_map
*isl_map_lexmin(__isl_take isl_map
*map
);
213 __isl_give isl_map
*isl_map_lexmax(__isl_take isl_map
*map
);
214 int isl_basic_map_foreach_lexmin(__isl_keep isl_basic_map
*bmap
,
215 int (*fn
)(__isl_take isl_basic_set
*dom
, __isl_take isl_mat
*map
,
219 void isl_basic_map_print_internal(__isl_keep isl_basic_map
*bmap
,
220 FILE *out
, int indent
);
222 struct isl_basic_map
*isl_map_copy_basic_map(struct isl_map
*map
);
223 __isl_give isl_map
*isl_map_drop_basic_map(__isl_take isl_map
*map
,
224 __isl_keep isl_basic_map
*bmap
);
226 int isl_basic_map_plain_is_fixed(struct isl_basic_map
*bmap
,
227 enum isl_dim_type type
, unsigned pos
, isl_int
*val
);
229 int isl_basic_map_image_is_bounded(__isl_keep isl_basic_map
*bmap
);
230 int isl_basic_map_is_universe(__isl_keep isl_basic_map
*bmap
);
231 int isl_basic_map_plain_is_empty(__isl_keep isl_basic_map
*bmap
);
232 int isl_basic_map_fast_is_empty(__isl_keep isl_basic_map
*bmap
);
233 int isl_basic_map_is_empty(__isl_keep isl_basic_map
*bmap
);
234 int isl_basic_map_is_subset(__isl_keep isl_basic_map
*bmap1
,
235 __isl_keep isl_basic_map
*bmap2
);
236 int isl_basic_map_is_strict_subset(__isl_keep isl_basic_map
*bmap1
,
237 __isl_keep isl_basic_map
*bmap2
);
239 struct isl_map
*isl_map_alloc(struct isl_ctx
*ctx
,
240 unsigned nparam
, unsigned in
, unsigned out
, int n
,
242 __isl_give isl_map
*isl_map_universe(__isl_take isl_dim
*dim
);
243 __isl_give isl_map
*isl_map_nat_universe(__isl_take isl_dim
*dim
);
244 __isl_give isl_map
*isl_map_empty(__isl_take isl_dim
*dim
);
245 struct isl_map
*isl_map_empty_like(struct isl_map
*model
);
246 struct isl_map
*isl_map_empty_like_basic_map(struct isl_basic_map
*model
);
247 struct isl_map
*isl_map_dup(struct isl_map
*map
);
248 __isl_give isl_map
*isl_map_add_basic_map(__isl_take isl_map
*map
,
249 __isl_take isl_basic_map
*bmap
);
250 __isl_give isl_map
*isl_map_identity(__isl_take isl_dim
*dim
);
251 struct isl_map
*isl_map_identity_like(struct isl_map
*model
);
252 struct isl_map
*isl_map_identity_like_basic_map(struct isl_basic_map
*model
);
253 __isl_give isl_map
*isl_map_lex_lt_first(__isl_take isl_dim
*dim
, unsigned n
);
254 __isl_give isl_map
*isl_map_lex_le_first(__isl_take isl_dim
*dim
, unsigned n
);
255 __isl_give isl_map
*isl_map_lex_lt(__isl_take isl_dim
*set_dim
);
256 __isl_give isl_map
*isl_map_lex_le(__isl_take isl_dim
*set_dim
);
257 __isl_give isl_map
*isl_map_lex_gt_first(__isl_take isl_dim
*dim
, unsigned n
);
258 __isl_give isl_map
*isl_map_lex_ge_first(__isl_take isl_dim
*dim
, unsigned n
);
259 __isl_give isl_map
*isl_map_lex_gt(__isl_take isl_dim
*set_dim
);
260 __isl_give isl_map
*isl_map_lex_ge(__isl_take isl_dim
*set_dim
);
261 struct isl_map
*isl_map_finalize(struct isl_map
*map
);
262 void isl_map_free(__isl_take isl_map
*map
);
263 __isl_give isl_map
*isl_map_copy(__isl_keep isl_map
*map
);
264 struct isl_map
*isl_map_extend(struct isl_map
*base
,
265 unsigned nparam
, unsigned n_in
, unsigned n_out
);
266 __isl_give isl_map
*isl_map_reverse(__isl_take isl_map
*map
);
267 __isl_give isl_map
*isl_map_union(
268 __isl_take isl_map
*map1
,
269 __isl_take isl_map
*map2
);
270 struct isl_map
*isl_map_union_disjoint(
271 struct isl_map
*map1
, struct isl_map
*map2
);
272 __isl_give isl_map
*isl_map_intersect_domain(
273 __isl_take isl_map
*map
,
274 __isl_take isl_set
*set
);
275 __isl_give isl_map
*isl_map_intersect_range(
276 __isl_take isl_map
*map
,
277 __isl_take isl_set
*set
);
278 __isl_give isl_map
*isl_map_apply_domain(
279 __isl_take isl_map
*map1
,
280 __isl_take isl_map
*map2
);
281 __isl_give isl_map
*isl_map_apply_range(
282 __isl_take isl_map
*map1
,
283 __isl_take isl_map
*map2
);
284 __isl_give isl_map
*isl_map_product(__isl_take isl_map
*map1
,
285 __isl_take isl_map
*map2
);
286 __isl_give isl_basic_map
*isl_basic_map_range_product(
287 __isl_take isl_basic_map
*bmap1
, __isl_take isl_basic_map
*bmap2
);
288 __isl_give isl_map
*isl_map_range_product(__isl_take isl_map
*map1
,
289 __isl_take isl_map
*map2
);
290 __isl_give isl_basic_map
*isl_basic_map_flat_product(
291 __isl_take isl_basic_map
*bmap1
, __isl_take isl_basic_map
*bmap2
);
292 __isl_give isl_map
*isl_map_flat_product(__isl_take isl_map
*map1
,
293 __isl_take isl_map
*map2
);
294 __isl_give isl_map
*isl_map_intersect(__isl_take isl_map
*map1
,
295 __isl_take isl_map
*map2
);
296 __isl_give isl_map
*isl_map_subtract(
297 __isl_take isl_map
*map1
,
298 __isl_take isl_map
*map2
);
299 struct isl_map
*isl_map_fix_input_si(struct isl_map
*map
,
300 unsigned input
, int value
);
301 struct isl_map
*isl_map_fix_si(struct isl_map
*map
,
302 enum isl_dim_type type
, unsigned pos
, int value
);
303 __isl_give isl_map
*isl_map_lower_bound_si(__isl_take isl_map
*map
,
304 enum isl_dim_type type
, unsigned pos
, int value
);
305 __isl_give isl_basic_set
*isl_basic_map_deltas(__isl_take isl_basic_map
*bmap
);
306 __isl_give isl_set
*isl_map_deltas(__isl_take isl_map
*map
);
307 __isl_give isl_basic_map
*isl_basic_map_deltas_map(
308 __isl_take isl_basic_map
*bmap
);
309 __isl_give isl_map
*isl_map_deltas_map(__isl_take isl_map
*map
);
310 struct isl_map
*isl_map_detect_equalities(struct isl_map
*map
);
311 __isl_give isl_basic_map
*isl_map_affine_hull(__isl_take isl_map
*map
);
312 __isl_give isl_basic_map
*isl_map_convex_hull(__isl_take isl_map
*map
);
313 __isl_give isl_basic_map
*isl_map_polyhedral_hull(__isl_take isl_map
*map
);
314 __isl_give isl_basic_map
*isl_basic_map_add(__isl_take isl_basic_map
*bmap
,
315 enum isl_dim_type type
, unsigned n
);
316 __isl_give isl_map
*isl_map_add_dims(__isl_take isl_map
*map
,
317 enum isl_dim_type type
, unsigned n
);
318 __isl_give isl_map
*isl_map_insert(__isl_take isl_map
*map
,
319 enum isl_dim_type type
, unsigned pos
, unsigned n
);
320 __isl_give isl_basic_map
*isl_basic_map_move_dims(
321 __isl_take isl_basic_map
*bmap
,
322 enum isl_dim_type dst_type
, unsigned dst_pos
,
323 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
324 __isl_give isl_map
*isl_map_move_dims(__isl_take isl_map
*map
,
325 enum isl_dim_type dst_type
, unsigned dst_pos
,
326 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
327 __isl_give isl_basic_map
*isl_basic_map_project_out(
328 __isl_take isl_basic_map
*bmap
,
329 enum isl_dim_type type
, unsigned first
, unsigned n
);
330 __isl_give isl_map
*isl_map_project_out(__isl_take isl_map
*map
,
331 enum isl_dim_type type
, unsigned first
, unsigned n
);
332 __isl_give isl_basic_map
*isl_basic_map_remove_divs(
333 __isl_take isl_basic_map
*bmap
);
334 __isl_give isl_map
*isl_map_remove_divs(__isl_take isl_map
*map
);
335 __isl_give isl_map
*isl_map_remove_dims(__isl_take isl_map
*map
,
336 enum isl_dim_type type
, unsigned first
, unsigned n
);
337 struct isl_map
*isl_map_remove_inputs(struct isl_map
*map
,
338 unsigned first
, unsigned n
);
340 __isl_give isl_map
*isl_set_identity(__isl_take isl_set
*set
);
342 int isl_basic_set_is_wrapping(__isl_keep isl_basic_set
*bset
);
343 int isl_set_is_wrapping(__isl_keep isl_set
*set
);
344 __isl_give isl_basic_set
*isl_basic_map_wrap(__isl_take isl_basic_map
*bmap
);
345 __isl_give isl_set
*isl_map_wrap(__isl_take isl_map
*map
);
346 __isl_give isl_basic_map
*isl_basic_set_unwrap(__isl_take isl_basic_set
*bset
);
347 __isl_give isl_map
*isl_set_unwrap(__isl_take isl_set
*set
);
348 __isl_give isl_basic_map
*isl_basic_map_flatten(__isl_take isl_basic_map
*bmap
);
349 __isl_give isl_map
*isl_map_flatten(__isl_take isl_map
*map
);
350 __isl_give isl_basic_set
*isl_basic_set_flatten(__isl_take isl_basic_set
*bset
);
351 __isl_give isl_set
*isl_set_flatten(__isl_take isl_set
*set
);
352 __isl_give isl_map
*isl_set_flatten_map(__isl_take isl_set
*set
);
353 __isl_give isl_set
*isl_map_domain(__isl_take isl_map
*bmap
);
354 __isl_give isl_set
*isl_map_range(__isl_take isl_map
*map
);
355 __isl_give isl_map
*isl_map_domain_map(__isl_take isl_map
*map
);
356 __isl_give isl_map
*isl_map_range_map(__isl_take isl_map
*map
);
357 __isl_give isl_map
*isl_map_from_basic_map(__isl_take isl_basic_map
*bmap
);
358 __isl_give isl_map
*isl_map_from_domain(__isl_take isl_set
*set
);
359 __isl_give isl_basic_map
*isl_basic_map_from_domain(
360 __isl_take isl_basic_set
*bset
);
361 __isl_give isl_basic_map
*isl_basic_map_from_range(
362 __isl_take isl_basic_set
*bset
);
363 struct isl_map
*isl_map_from_range(struct isl_set
*set
);
364 __isl_give isl_basic_map
*isl_basic_map_from_domain_and_range(
365 __isl_take isl_basic_set
*domain
, __isl_take isl_basic_set
*range
);
366 __isl_give isl_map
*isl_map_from_domain_and_range(__isl_take isl_set
*domain
,
367 __isl_take isl_set
*range
);
368 struct isl_map
*isl_map_from_set(struct isl_set
*set
, struct isl_dim
*dim
);
369 struct isl_set
*isl_set_from_map(struct isl_map
*map
);
370 __isl_give isl_basic_map
*isl_map_sample(__isl_take isl_map
*map
);
372 int isl_map_plain_is_empty(__isl_keep isl_map
*map
);
373 int isl_map_fast_is_empty(__isl_keep isl_map
*map
);
374 int isl_map_plain_is_universe(__isl_keep isl_map
*map
);
375 int isl_map_is_empty(__isl_keep isl_map
*map
);
376 int isl_map_is_subset(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
377 int isl_map_is_strict_subset(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
378 int isl_map_is_equal(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
379 int isl_map_is_single_valued(__isl_keep isl_map
*map
);
380 int isl_map_plain_is_injective(__isl_keep isl_map
*map
);
381 int isl_map_is_injective(__isl_keep isl_map
*map
);
382 int isl_map_is_bijective(__isl_keep isl_map
*map
);
383 int isl_map_is_translation(__isl_keep isl_map
*map
);
384 int isl_map_has_equal_dim(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
386 int isl_basic_map_can_zip(__isl_keep isl_basic_map
*bmap
);
387 int isl_map_can_zip(__isl_keep isl_map
*map
);
388 __isl_give isl_basic_map
*isl_basic_map_zip(__isl_take isl_basic_map
*bmap
);
389 __isl_give isl_map
*isl_map_zip(__isl_take isl_map
*map
);
391 __isl_give isl_map
*isl_map_make_disjoint(__isl_take isl_map
*map
);
392 __isl_give isl_map
*isl_basic_map_compute_divs(__isl_take isl_basic_map
*bmap
);
393 __isl_give isl_map
*isl_map_compute_divs(__isl_take isl_map
*map
);
394 __isl_give isl_map
*isl_map_align_divs(__isl_take isl_map
*map
);
396 void isl_map_print_internal(__isl_keep isl_map
*map
, FILE *out
, int indent
);
398 int isl_map_plain_input_is_fixed(__isl_keep isl_map
*map
,
399 unsigned in
, isl_int
*val
);
400 int isl_map_fast_is_fixed(__isl_keep isl_map
*map
,
401 enum isl_dim_type type
, unsigned pos
, isl_int
*val
);
402 int isl_map_plain_is_fixed(struct isl_map
*map
,
403 enum isl_dim_type type
, unsigned pos
, isl_int
*val
);
404 int isl_map_fast_is_fixed(__isl_keep isl_map
*map
,
405 enum isl_dim_type type
, unsigned pos
, isl_int
*val
);
407 __isl_give isl_basic_map
*isl_basic_map_gist(__isl_take isl_basic_map
*bmap
,
408 __isl_take isl_basic_map
*context
);
409 __isl_give isl_map
*isl_map_gist(__isl_take isl_map
*map
,
410 __isl_take isl_map
*context
);
411 __isl_give isl_map
*isl_map_gist_basic_map(__isl_take isl_map
*map
,
412 __isl_take isl_basic_map
*context
);
414 __isl_give isl_map
*isl_map_coalesce(__isl_take isl_map
*map
);
416 int isl_map_plain_is_equal(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
417 int isl_map_fast_is_equal(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
419 uint32_t isl_map_get_hash(__isl_keep isl_map
*map
);
421 int isl_map_foreach_basic_map(__isl_keep isl_map
*map
,
422 int (*fn
)(__isl_take isl_basic_map
*bmap
, void *user
), void *user
);
424 __isl_give isl_map
*isl_set_lifting(__isl_take isl_set
*set
);
426 __isl_give isl_map
*isl_map_power(__isl_take isl_map
*map
, int *exact
);
427 __isl_give isl_map
*isl_map_reaching_path_lengths(__isl_take isl_map
*map
,
429 __isl_give isl_map
*isl_map_transitive_closure(__isl_take isl_map
*map
,
432 __isl_give isl_map
*isl_map_lex_le_map(__isl_take isl_map
*map1
,
433 __isl_take isl_map
*map2
);
434 __isl_give isl_map
*isl_map_lex_lt_map(__isl_take isl_map
*map1
,
435 __isl_take isl_map
*map2
);
436 __isl_give isl_map
*isl_map_lex_ge_map(__isl_take isl_map
*map1
,
437 __isl_take isl_map
*map2
);
438 __isl_give isl_map
*isl_map_lex_gt_map(__isl_take isl_map
*map1
,
439 __isl_take isl_map
*map2
);
441 __isl_give isl_mat
*isl_basic_map_equalities_matrix(
442 __isl_keep isl_basic_map
*bmap
, enum isl_dim_type c1
,
443 enum isl_dim_type c2
, enum isl_dim_type c3
,
444 enum isl_dim_type c4
, enum isl_dim_type c5
);
445 __isl_give isl_mat
*isl_basic_map_inequalities_matrix(
446 __isl_keep isl_basic_map
*bmap
, enum isl_dim_type c1
,
447 enum isl_dim_type c2
, enum isl_dim_type c3
,
448 enum isl_dim_type c4
, enum isl_dim_type c5
);
449 __isl_give isl_basic_map
*isl_basic_map_from_constraint_matrices(
450 __isl_take isl_dim
*dim
,
451 __isl_take isl_mat
*eq
, __isl_take isl_mat
*ineq
, enum isl_dim_type c1
,
452 enum isl_dim_type c2
, enum isl_dim_type c3
,
453 enum isl_dim_type c4
, enum isl_dim_type c5
);
455 #if defined(__cplusplus)