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
18 #include <isl/space.h>
21 #include <isl/printer.h>
22 #include <isl/local_space.h>
23 #include <isl/aff_type.h>
25 #include <isl/map_type.h>
27 #if defined(__cplusplus)
33 * All structures are reference counted to allow reuse without duplication.
34 * A *_copy operation will increase the reference count, while a *_free
35 * operation will decrease the reference count and only actually release
36 * the structures when the reference count drops to zero.
38 * Functions that return an isa structure will in general _destroy_
39 * all argument isa structures (the obvious execption begin the _copy
40 * functions). A pointer passed to such a function may therefore
41 * never be used after the function call. If you want to keep a
42 * reference to the old structure(s), use the appropriate _copy function.
45 unsigned isl_basic_map_n_in(const struct isl_basic_map
*bmap
);
46 unsigned isl_basic_map_n_out(const struct isl_basic_map
*bmap
);
47 unsigned isl_basic_map_n_param(const struct isl_basic_map
*bmap
);
48 unsigned isl_basic_map_n_div(const struct isl_basic_map
*bmap
);
49 unsigned isl_basic_map_total_dim(const struct isl_basic_map
*bmap
);
50 unsigned isl_basic_map_dim(__isl_keep isl_basic_map
*bmap
,
51 enum isl_dim_type type
);
53 unsigned isl_map_n_in(const struct isl_map
*map
);
54 unsigned isl_map_n_out(const struct isl_map
*map
);
55 unsigned isl_map_n_param(const struct isl_map
*map
);
56 unsigned isl_map_dim(__isl_keep isl_map
*map
, enum isl_dim_type type
);
58 isl_ctx
*isl_basic_map_get_ctx(__isl_keep isl_basic_map
*bmap
);
59 isl_ctx
*isl_map_get_ctx(__isl_keep isl_map
*map
);
60 __isl_give isl_space
*isl_basic_map_get_space(__isl_keep isl_basic_map
*bmap
);
61 __isl_give isl_space
*isl_map_get_space(__isl_keep isl_map
*map
);
63 __isl_give isl_aff
*isl_basic_map_get_div(__isl_keep isl_basic_map
*bmap
,
66 __isl_give isl_local_space
*isl_basic_map_get_local_space(
67 __isl_keep isl_basic_map
*bmap
);
69 __isl_give isl_basic_map
*isl_basic_map_set_tuple_name(
70 __isl_take isl_basic_map
*bmap
, enum isl_dim_type type
, const char *s
);
71 const char *isl_basic_map_get_tuple_name(__isl_keep isl_basic_map
*bmap
,
72 enum isl_dim_type type
);
73 const char *isl_map_get_tuple_name(__isl_keep isl_map
*map
,
74 enum isl_dim_type type
);
75 __isl_give isl_map
*isl_map_set_tuple_name(__isl_take isl_map
*map
,
76 enum isl_dim_type type
, const char *s
);
77 const char *isl_basic_map_get_dim_name(__isl_keep isl_basic_map
*bmap
,
78 enum isl_dim_type type
, unsigned pos
);
79 const char *isl_map_get_dim_name(__isl_keep isl_map
*map
,
80 enum isl_dim_type type
, unsigned pos
);
81 __isl_give isl_basic_map
*isl_basic_map_set_dim_name(
82 __isl_take isl_basic_map
*bmap
,
83 enum isl_dim_type type
, unsigned pos
, const char *s
);
84 __isl_give isl_map
*isl_map_set_dim_name(__isl_take isl_map
*map
,
85 enum isl_dim_type type
, unsigned pos
, const char *s
);
87 __isl_give isl_map
*isl_map_set_dim_id(__isl_take isl_map
*map
,
88 enum isl_dim_type type
, unsigned pos
, __isl_take isl_id
*id
);
89 int isl_basic_map_has_dim_id(__isl_keep isl_basic_map
*bmap
,
90 enum isl_dim_type type
, unsigned pos
);
91 int isl_map_has_dim_id(__isl_keep isl_map
*map
,
92 enum isl_dim_type type
, unsigned pos
);
93 __isl_give isl_id
*isl_map_get_dim_id(__isl_keep isl_map
*map
,
94 enum isl_dim_type type
, unsigned pos
);
95 __isl_give isl_map
*isl_map_set_tuple_id(__isl_take isl_map
*map
,
96 enum isl_dim_type type
, __isl_take isl_id
*id
);
97 __isl_give isl_map
*isl_map_reset_tuple_id(__isl_take isl_map
*map
,
98 enum isl_dim_type type
);
99 int isl_map_has_tuple_id(__isl_keep isl_map
*map
, enum isl_dim_type type
);
100 __isl_give isl_id
*isl_map_get_tuple_id(__isl_keep isl_map
*map
,
101 enum isl_dim_type type
);
103 int isl_map_find_dim_by_id(__isl_keep isl_map
*map
, enum isl_dim_type type
,
104 __isl_keep isl_id
*id
);
105 int isl_map_find_dim_by_name(__isl_keep isl_map
*map
, enum isl_dim_type type
,
108 int isl_basic_map_is_rational(__isl_keep isl_basic_map
*bmap
);
110 struct isl_basic_map
*isl_basic_map_alloc(struct isl_ctx
*ctx
,
111 unsigned nparam
, unsigned in
, unsigned out
, unsigned extra
,
112 unsigned n_eq
, unsigned n_ineq
);
113 __isl_give isl_basic_map
*isl_basic_map_identity(__isl_take isl_space
*dim
);
114 struct isl_basic_map
*isl_basic_map_identity_like(struct isl_basic_map
*model
);
115 struct isl_basic_map
*isl_basic_map_finalize(struct isl_basic_map
*bmap
);
116 void isl_basic_map_free(__isl_take isl_basic_map
*bmap
);
117 __isl_give isl_basic_map
*isl_basic_map_copy(__isl_keep isl_basic_map
*bmap
);
118 struct isl_basic_map
*isl_basic_map_extend(struct isl_basic_map
*base
,
119 unsigned nparam
, unsigned n_in
, unsigned n_out
, unsigned extra
,
120 unsigned n_eq
, unsigned n_ineq
);
121 struct isl_basic_map
*isl_basic_map_extend_constraints(
122 struct isl_basic_map
*base
, unsigned n_eq
, unsigned n_ineq
);
123 __isl_give isl_basic_map
*isl_basic_map_equal(
124 __isl_take isl_space
*dim
, unsigned n_equal
);
125 __isl_give isl_basic_map
*isl_basic_map_less_at(__isl_take isl_space
*dim
,
127 __isl_give isl_basic_map
*isl_basic_map_more_at(__isl_take isl_space
*dim
,
129 __isl_give isl_basic_map
*isl_basic_map_empty(__isl_take isl_space
*dim
);
130 struct isl_basic_map
*isl_basic_map_empty_like(struct isl_basic_map
*model
);
131 struct isl_basic_map
*isl_basic_map_empty_like_map(struct isl_map
*model
);
132 __isl_give isl_basic_map
*isl_basic_map_universe(__isl_take isl_space
*dim
);
133 __isl_give isl_basic_map
*isl_basic_map_nat_universe(__isl_take isl_space
*dim
);
134 __isl_give isl_basic_map
*isl_basic_map_universe_like(
135 __isl_keep isl_basic_map
*bmap
);
136 __isl_give isl_basic_map
*isl_basic_map_remove_redundancies(
137 __isl_take isl_basic_map
*bmap
);
138 __isl_give isl_map
*isl_map_remove_redundancies(__isl_take isl_map
*map
);
139 __isl_give isl_basic_map
*isl_map_simple_hull(__isl_take isl_map
*map
);
142 __isl_give isl_basic_map
*isl_basic_map_intersect_domain(
143 __isl_take isl_basic_map
*bmap
,
144 __isl_take isl_basic_set
*bset
);
146 __isl_give isl_basic_map
*isl_basic_map_intersect_range(
147 __isl_take isl_basic_map
*bmap
,
148 __isl_take isl_basic_set
*bset
);
150 __isl_give isl_basic_map
*isl_basic_map_intersect(
151 __isl_take isl_basic_map
*bmap1
,
152 __isl_take isl_basic_map
*bmap2
);
154 __isl_give isl_map
*isl_basic_map_union(
155 __isl_take isl_basic_map
*bmap1
,
156 __isl_take isl_basic_map
*bmap2
);
158 __isl_give isl_basic_map
*isl_basic_map_apply_domain(
159 __isl_take isl_basic_map
*bmap1
,
160 __isl_take isl_basic_map
*bmap2
);
162 __isl_give isl_basic_map
*isl_basic_map_apply_range(
163 __isl_take isl_basic_map
*bmap1
,
164 __isl_take isl_basic_map
*bmap2
);
166 __isl_give isl_basic_map
*isl_basic_map_affine_hull(
167 __isl_take isl_basic_map
*bmap
);
169 __isl_give isl_basic_map
*isl_basic_map_reverse(__isl_take isl_basic_map
*bmap
);
170 __isl_give isl_basic_set
*isl_basic_map_domain(__isl_take isl_basic_map
*bmap
);
171 __isl_give isl_basic_set
*isl_basic_map_range(__isl_take isl_basic_map
*bmap
);
172 __isl_give isl_basic_map
*isl_basic_map_domain_map(
173 __isl_take isl_basic_map
*bmap
);
174 __isl_give isl_basic_map
*isl_basic_map_range_map(
175 __isl_take isl_basic_map
*bmap
);
176 __isl_give isl_basic_map
*isl_basic_map_remove_dims(
177 __isl_take isl_basic_map
*bmap
,
178 enum isl_dim_type type
, unsigned first
, unsigned n
);
179 __isl_give isl_basic_map
*isl_basic_map_eliminate(
180 __isl_take isl_basic_map
*bmap
,
181 enum isl_dim_type type
, unsigned first
, unsigned n
);
182 __isl_give isl_basic_map
*isl_basic_map_from_basic_set(
183 __isl_take isl_basic_set
*bset
, __isl_take isl_space
*dim
);
184 struct isl_basic_set
*isl_basic_set_from_basic_map(struct isl_basic_map
*bmap
);
186 __isl_give isl_basic_map
*isl_basic_map_sample(__isl_take isl_basic_map
*bmap
);
187 struct isl_basic_map
*isl_basic_map_simplify(struct isl_basic_map
*bmap
);
189 __isl_give isl_basic_map
*isl_basic_map_detect_equalities(
190 __isl_take isl_basic_map
*bmap
);
191 __isl_give isl_basic_map
*isl_basic_map_read_from_file(isl_ctx
*ctx
,
194 __isl_give isl_basic_map
*isl_basic_map_read_from_str(isl_ctx
*ctx
,
196 __isl_give isl_map
*isl_map_read_from_file(isl_ctx
*ctx
, FILE *input
);
198 __isl_give isl_map
*isl_map_read_from_str(isl_ctx
*ctx
, const char *str
);
199 void isl_basic_map_dump(__isl_keep isl_basic_map
*bmap
);
200 void isl_basic_map_print(__isl_keep isl_basic_map
*bmap
, FILE *out
, int indent
,
201 const char *prefix
, const char *suffix
, unsigned output_format
);
202 void isl_map_dump(__isl_keep isl_map
*map
);
203 void isl_map_print(__isl_keep isl_map
*map
, FILE *out
, int indent
,
204 unsigned output_format
);
205 __isl_give isl_printer
*isl_printer_print_basic_map(
206 __isl_take isl_printer
*printer
, __isl_keep isl_basic_map
*bmap
);
207 __isl_give isl_printer
*isl_printer_print_map(__isl_take isl_printer
*printer
,
208 __isl_keep isl_map
*map
);
209 __isl_give isl_basic_map
*isl_basic_map_fix_si(__isl_take isl_basic_map
*bmap
,
210 enum isl_dim_type type
, unsigned pos
, int value
);
211 __isl_give isl_basic_map
*isl_basic_map_lower_bound_si(
212 __isl_take isl_basic_map
*bmap
,
213 enum isl_dim_type type
, unsigned pos
, int value
);
215 struct isl_basic_map
*isl_basic_map_sum(
216 struct isl_basic_map
*bmap1
, struct isl_basic_map
*bmap2
);
217 struct isl_basic_map
*isl_basic_map_neg(struct isl_basic_map
*bmap
);
218 struct isl_basic_map
*isl_basic_map_floordiv(struct isl_basic_map
*bmap
,
221 struct isl_map
*isl_map_sum(struct isl_map
*map1
, struct isl_map
*map2
);
222 struct isl_map
*isl_map_neg(struct isl_map
*map
);
223 struct isl_map
*isl_map_floordiv(struct isl_map
*map
, isl_int d
);
226 int isl_basic_map_is_equal(
227 __isl_keep isl_basic_map
*bmap1
,
228 __isl_keep isl_basic_map
*bmap2
);
230 __isl_give isl_map
*isl_basic_map_partial_lexmax(
231 __isl_take isl_basic_map
*bmap
, __isl_take isl_basic_set
*dom
,
232 __isl_give isl_set
**empty
);
233 __isl_give isl_map
*isl_basic_map_partial_lexmin(
234 __isl_take isl_basic_map
*bmap
, __isl_take isl_basic_set
*dom
,
235 __isl_give isl_set
**empty
);
236 __isl_give isl_map
*isl_map_partial_lexmax(
237 __isl_take isl_map
*map
, __isl_take isl_set
*dom
,
238 __isl_give isl_set
**empty
);
239 __isl_give isl_map
*isl_map_partial_lexmin(
240 __isl_take isl_map
*map
, __isl_take isl_set
*dom
,
241 __isl_give isl_set
**empty
);
243 __isl_give isl_map
*isl_basic_map_lexmin(__isl_take isl_basic_map
*bmap
);
245 __isl_give isl_map
*isl_basic_map_lexmax(__isl_take isl_basic_map
*bmap
);
247 __isl_give isl_map
*isl_map_lexmin(__isl_take isl_map
*map
);
249 __isl_give isl_map
*isl_map_lexmax(__isl_take isl_map
*map
);
250 __isl_give isl_pw_multi_aff
*isl_basic_map_partial_lexmin_pw_multi_aff(
251 __isl_take isl_basic_map
*bmap
, __isl_take isl_basic_set
*dom
,
252 __isl_give isl_set
**empty
);
253 __isl_give isl_pw_multi_aff
*isl_basic_map_partial_lexmax_pw_multi_aff(
254 __isl_take isl_basic_map
*bmap
, __isl_take isl_basic_set
*dom
,
255 __isl_give isl_set
**empty
);
256 __isl_give isl_pw_multi_aff
*isl_basic_map_lexmin_pw_multi_aff(
257 __isl_take isl_basic_map
*bmap
);
259 void isl_basic_map_print_internal(__isl_keep isl_basic_map
*bmap
,
260 FILE *out
, int indent
);
262 struct isl_basic_map
*isl_map_copy_basic_map(struct isl_map
*map
);
263 __isl_give isl_map
*isl_map_drop_basic_map(__isl_take isl_map
*map
,
264 __isl_keep isl_basic_map
*bmap
);
266 int isl_basic_map_plain_is_fixed(__isl_keep isl_basic_map
*bmap
,
267 enum isl_dim_type type
, unsigned pos
, isl_int
*val
);
269 int isl_basic_map_image_is_bounded(__isl_keep isl_basic_map
*bmap
);
270 int isl_basic_map_is_universe(__isl_keep isl_basic_map
*bmap
);
271 int isl_basic_map_plain_is_empty(__isl_keep isl_basic_map
*bmap
);
272 int isl_basic_map_fast_is_empty(__isl_keep isl_basic_map
*bmap
);
274 int isl_basic_map_is_empty(__isl_keep isl_basic_map
*bmap
);
276 int isl_basic_map_is_subset(__isl_keep isl_basic_map
*bmap1
,
277 __isl_keep isl_basic_map
*bmap2
);
278 int isl_basic_map_is_strict_subset(__isl_keep isl_basic_map
*bmap1
,
279 __isl_keep isl_basic_map
*bmap2
);
281 struct isl_map
*isl_map_alloc(struct isl_ctx
*ctx
,
282 unsigned nparam
, unsigned in
, unsigned out
, int n
,
284 __isl_give isl_map
*isl_map_universe(__isl_take isl_space
*dim
);
285 __isl_give isl_map
*isl_map_nat_universe(__isl_take isl_space
*dim
);
286 __isl_give isl_map
*isl_map_empty(__isl_take isl_space
*dim
);
287 struct isl_map
*isl_map_empty_like(struct isl_map
*model
);
288 struct isl_map
*isl_map_empty_like_basic_map(struct isl_basic_map
*model
);
289 struct isl_map
*isl_map_dup(struct isl_map
*map
);
290 __isl_give isl_map
*isl_map_add_basic_map(__isl_take isl_map
*map
,
291 __isl_take isl_basic_map
*bmap
);
292 __isl_give isl_map
*isl_map_identity(__isl_take isl_space
*dim
);
293 struct isl_map
*isl_map_identity_like(struct isl_map
*model
);
294 struct isl_map
*isl_map_identity_like_basic_map(struct isl_basic_map
*model
);
295 __isl_give isl_map
*isl_map_lex_lt_first(__isl_take isl_space
*dim
, unsigned n
);
296 __isl_give isl_map
*isl_map_lex_le_first(__isl_take isl_space
*dim
, unsigned n
);
297 __isl_give isl_map
*isl_map_lex_lt(__isl_take isl_space
*set_dim
);
298 __isl_give isl_map
*isl_map_lex_le(__isl_take isl_space
*set_dim
);
299 __isl_give isl_map
*isl_map_lex_gt_first(__isl_take isl_space
*dim
, unsigned n
);
300 __isl_give isl_map
*isl_map_lex_ge_first(__isl_take isl_space
*dim
, unsigned n
);
301 __isl_give isl_map
*isl_map_lex_gt(__isl_take isl_space
*set_dim
);
302 __isl_give isl_map
*isl_map_lex_ge(__isl_take isl_space
*set_dim
);
303 struct isl_map
*isl_map_finalize(struct isl_map
*map
);
304 void isl_map_free(__isl_take isl_map
*map
);
305 __isl_give isl_map
*isl_map_copy(__isl_keep isl_map
*map
);
306 struct isl_map
*isl_map_extend(struct isl_map
*base
,
307 unsigned nparam
, unsigned n_in
, unsigned n_out
);
309 __isl_give isl_map
*isl_map_reverse(__isl_take isl_map
*map
);
311 __isl_give isl_map
*isl_map_union(
312 __isl_take isl_map
*map1
,
313 __isl_take isl_map
*map2
);
314 struct isl_map
*isl_map_union_disjoint(
315 struct isl_map
*map1
, struct isl_map
*map2
);
317 __isl_give isl_map
*isl_map_intersect_domain(
318 __isl_take isl_map
*map
,
319 __isl_take isl_set
*set
);
321 __isl_give isl_map
*isl_map_intersect_range(
322 __isl_take isl_map
*map
,
323 __isl_take isl_set
*set
);
325 __isl_give isl_map
*isl_map_apply_domain(
326 __isl_take isl_map
*map1
,
327 __isl_take isl_map
*map2
);
329 __isl_give isl_map
*isl_map_apply_range(
330 __isl_take isl_map
*map1
,
331 __isl_take isl_map
*map2
);
332 __isl_give isl_map
*isl_map_product(__isl_take isl_map
*map1
,
333 __isl_take isl_map
*map2
);
334 __isl_give isl_basic_map
*isl_basic_map_domain_product(
335 __isl_take isl_basic_map
*bmap1
, __isl_take isl_basic_map
*bmap2
);
336 __isl_give isl_basic_map
*isl_basic_map_range_product(
337 __isl_take isl_basic_map
*bmap1
, __isl_take isl_basic_map
*bmap2
);
338 __isl_give isl_map
*isl_map_domain_product(__isl_take isl_map
*map1
,
339 __isl_take isl_map
*map2
);
340 __isl_give isl_map
*isl_map_range_product(__isl_take isl_map
*map1
,
341 __isl_take isl_map
*map2
);
342 __isl_give isl_basic_map
*isl_basic_map_flat_product(
343 __isl_take isl_basic_map
*bmap1
, __isl_take isl_basic_map
*bmap2
);
344 __isl_give isl_map
*isl_map_flat_product(__isl_take isl_map
*map1
,
345 __isl_take isl_map
*map2
);
346 __isl_give isl_basic_map
*isl_basic_map_flat_range_product(
347 __isl_take isl_basic_map
*bmap1
, __isl_take isl_basic_map
*bmap2
);
348 __isl_give isl_map
*isl_map_flat_domain_product(__isl_take isl_map
*map1
,
349 __isl_take isl_map
*map2
);
350 __isl_give isl_map
*isl_map_flat_range_product(__isl_take isl_map
*map1
,
351 __isl_take isl_map
*map2
);
353 __isl_give isl_map
*isl_map_intersect(__isl_take isl_map
*map1
,
354 __isl_take isl_map
*map2
);
356 __isl_give isl_map
*isl_map_intersect_params(__isl_take isl_map
*map
,
357 __isl_take isl_set
*params
);
359 __isl_give isl_map
*isl_map_subtract(
360 __isl_take isl_map
*map1
,
361 __isl_take isl_map
*map2
);
362 __isl_give isl_map
*isl_map_subtract_domain(__isl_take isl_map
*map
,
363 __isl_take isl_set
*dom
);
364 __isl_give isl_map
*isl_map_subtract_range(__isl_take isl_map
*map
,
365 __isl_take isl_set
*dom
);
367 __isl_give isl_map
*isl_map_complement(__isl_take isl_map
*map
);
368 struct isl_map
*isl_map_fix_input_si(struct isl_map
*map
,
369 unsigned input
, int value
);
370 __isl_give isl_map
*isl_map_fix_si(__isl_take isl_map
*map
,
371 enum isl_dim_type type
, unsigned pos
, int value
);
372 __isl_give isl_map
*isl_map_lower_bound_si(__isl_take isl_map
*map
,
373 enum isl_dim_type type
, unsigned pos
, int value
);
374 __isl_give isl_map
*isl_map_upper_bound_si(__isl_take isl_map
*map
,
375 enum isl_dim_type type
, unsigned pos
, int value
);
377 __isl_give isl_basic_set
*isl_basic_map_deltas(__isl_take isl_basic_map
*bmap
);
379 __isl_give isl_set
*isl_map_deltas(__isl_take isl_map
*map
);
380 __isl_give isl_basic_map
*isl_basic_map_deltas_map(
381 __isl_take isl_basic_map
*bmap
);
382 __isl_give isl_map
*isl_map_deltas_map(__isl_take isl_map
*map
);
384 __isl_give isl_map
*isl_map_detect_equalities(__isl_take isl_map
*map
);
386 __isl_give isl_basic_map
*isl_map_affine_hull(__isl_take isl_map
*map
);
387 __isl_give isl_basic_map
*isl_map_convex_hull(__isl_take isl_map
*map
);
389 __isl_give isl_basic_map
*isl_map_polyhedral_hull(__isl_take isl_map
*map
);
390 __isl_give isl_basic_map
*isl_basic_map_add(__isl_take isl_basic_map
*bmap
,
391 enum isl_dim_type type
, unsigned n
);
392 __isl_give isl_map
*isl_map_add_dims(__isl_take isl_map
*map
,
393 enum isl_dim_type type
, unsigned n
);
394 __isl_give isl_map
*isl_map_insert_dims(__isl_take isl_map
*map
,
395 enum isl_dim_type type
, unsigned pos
, unsigned n
);
396 __isl_give isl_basic_map
*isl_basic_map_move_dims(
397 __isl_take isl_basic_map
*bmap
,
398 enum isl_dim_type dst_type
, unsigned dst_pos
,
399 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
400 __isl_give isl_map
*isl_map_move_dims(__isl_take isl_map
*map
,
401 enum isl_dim_type dst_type
, unsigned dst_pos
,
402 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
403 __isl_give isl_basic_map
*isl_basic_map_project_out(
404 __isl_take isl_basic_map
*bmap
,
405 enum isl_dim_type type
, unsigned first
, unsigned n
);
406 __isl_give isl_map
*isl_map_project_out(__isl_take isl_map
*map
,
407 enum isl_dim_type type
, unsigned first
, unsigned n
);
408 __isl_give isl_basic_map
*isl_basic_map_remove_divs(
409 __isl_take isl_basic_map
*bmap
);
410 __isl_give isl_map
*isl_map_remove_divs(__isl_take isl_map
*map
);
411 __isl_give isl_map
*isl_map_eliminate(__isl_take isl_map
*map
,
412 enum isl_dim_type type
, unsigned first
, unsigned n
);
413 __isl_give isl_map
*isl_map_remove_dims(__isl_take isl_map
*map
,
414 enum isl_dim_type type
, unsigned first
, unsigned n
);
415 struct isl_map
*isl_map_remove_inputs(struct isl_map
*map
,
416 unsigned first
, unsigned n
);
418 __isl_give isl_map
*isl_map_equate(__isl_take isl_map
*map
,
419 enum isl_dim_type type1
, int pos1
, enum isl_dim_type type2
, int pos2
);
420 __isl_give isl_map
*isl_map_oppose(__isl_take isl_map
*map
,
421 enum isl_dim_type type1
, int pos1
, enum isl_dim_type type2
, int pos2
);
424 __isl_give isl_map
*isl_set_identity(__isl_take isl_set
*set
);
427 int isl_basic_set_is_wrapping(__isl_keep isl_basic_set
*bset
);
429 int isl_set_is_wrapping(__isl_keep isl_set
*set
);
430 __isl_give isl_basic_set
*isl_basic_map_wrap(__isl_take isl_basic_map
*bmap
);
431 __isl_give isl_set
*isl_map_wrap(__isl_take isl_map
*map
);
432 __isl_give isl_basic_map
*isl_basic_set_unwrap(__isl_take isl_basic_set
*bset
);
433 __isl_give isl_map
*isl_set_unwrap(__isl_take isl_set
*set
);
435 __isl_give isl_basic_map
*isl_basic_map_flatten(__isl_take isl_basic_map
*bmap
);
437 __isl_give isl_map
*isl_map_flatten(__isl_take isl_map
*map
);
439 __isl_give isl_basic_map
*isl_basic_map_flatten_domain(
440 __isl_take isl_basic_map
*bmap
);
442 __isl_give isl_basic_map
*isl_basic_map_flatten_range(
443 __isl_take isl_basic_map
*bmap
);
445 __isl_give isl_map
*isl_map_flatten_domain(__isl_take isl_map
*map
);
447 __isl_give isl_map
*isl_map_flatten_range(__isl_take isl_map
*map
);
449 __isl_give isl_basic_set
*isl_basic_set_flatten(__isl_take isl_basic_set
*bset
);
451 __isl_give isl_set
*isl_set_flatten(__isl_take isl_set
*set
);
452 __isl_give isl_map
*isl_set_flatten_map(__isl_take isl_set
*set
);
453 __isl_give isl_set
*isl_map_params(__isl_take isl_map
*map
);
454 __isl_give isl_set
*isl_map_domain(__isl_take isl_map
*bmap
);
455 __isl_give isl_set
*isl_map_range(__isl_take isl_map
*map
);
456 __isl_give isl_map
*isl_map_domain_map(__isl_take isl_map
*map
);
457 __isl_give isl_map
*isl_map_range_map(__isl_take isl_map
*map
);
459 __isl_give isl_map
*isl_map_from_basic_map(__isl_take isl_basic_map
*bmap
);
460 __isl_give isl_map
*isl_map_from_domain(__isl_take isl_set
*set
);
461 __isl_give isl_basic_map
*isl_basic_map_from_domain(
462 __isl_take isl_basic_set
*bset
);
463 __isl_give isl_basic_map
*isl_basic_map_from_range(
464 __isl_take isl_basic_set
*bset
);
465 struct isl_map
*isl_map_from_range(struct isl_set
*set
);
466 __isl_give isl_basic_map
*isl_basic_map_from_domain_and_range(
467 __isl_take isl_basic_set
*domain
, __isl_take isl_basic_set
*range
);
468 __isl_give isl_map
*isl_map_from_domain_and_range(__isl_take isl_set
*domain
,
469 __isl_take isl_set
*range
);
470 __isl_give isl_map
*isl_map_from_set(__isl_take isl_set
*set
,
471 __isl_take isl_space
*dim
);
472 struct isl_set
*isl_set_from_map(struct isl_map
*map
);
474 __isl_give isl_basic_map
*isl_map_sample(__isl_take isl_map
*map
);
476 int isl_map_plain_is_empty(__isl_keep isl_map
*map
);
477 int isl_map_fast_is_empty(__isl_keep isl_map
*map
);
478 int isl_map_plain_is_universe(__isl_keep isl_map
*map
);
480 int isl_map_is_empty(__isl_keep isl_map
*map
);
482 int isl_map_is_subset(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
484 int isl_map_is_strict_subset(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
486 int isl_map_is_equal(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
487 int isl_map_plain_is_single_valued(__isl_keep isl_map
*map
);
489 int isl_map_is_single_valued(__isl_keep isl_map
*map
);
490 int isl_map_plain_is_injective(__isl_keep isl_map
*map
);
492 int isl_map_is_injective(__isl_keep isl_map
*map
);
494 int isl_map_is_bijective(__isl_keep isl_map
*map
);
495 int isl_map_is_translation(__isl_keep isl_map
*map
);
496 int isl_map_has_equal_space(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
498 int isl_basic_map_can_zip(__isl_keep isl_basic_map
*bmap
);
499 int isl_map_can_zip(__isl_keep isl_map
*map
);
500 __isl_give isl_basic_map
*isl_basic_map_zip(__isl_take isl_basic_map
*bmap
);
501 __isl_give isl_map
*isl_map_zip(__isl_take isl_map
*map
);
503 __isl_give isl_map
*isl_map_make_disjoint(__isl_take isl_map
*map
);
504 __isl_give isl_map
*isl_basic_map_compute_divs(__isl_take isl_basic_map
*bmap
);
505 __isl_give isl_map
*isl_map_compute_divs(__isl_take isl_map
*map
);
506 __isl_give isl_map
*isl_map_align_divs(__isl_take isl_map
*map
);
508 int isl_basic_map_involves_dims(__isl_keep isl_basic_map
*bmap
,
509 enum isl_dim_type type
, unsigned first
, unsigned n
);
510 int isl_map_involves_dims(__isl_keep isl_map
*map
,
511 enum isl_dim_type type
, unsigned first
, unsigned n
);
513 void isl_map_print_internal(__isl_keep isl_map
*map
, FILE *out
, int indent
);
515 int isl_map_plain_input_is_fixed(__isl_keep isl_map
*map
,
516 unsigned in
, isl_int
*val
);
517 int isl_map_plain_is_fixed(__isl_keep isl_map
*map
,
518 enum isl_dim_type type
, unsigned pos
, isl_int
*val
);
519 int isl_map_fast_is_fixed(__isl_keep isl_map
*map
,
520 enum isl_dim_type type
, unsigned pos
, isl_int
*val
);
523 __isl_give isl_basic_map
*isl_basic_map_gist(__isl_take isl_basic_map
*bmap
,
524 __isl_take isl_basic_map
*context
);
526 __isl_give isl_map
*isl_map_gist(__isl_take isl_map
*map
,
527 __isl_take isl_map
*context
);
529 __isl_give isl_map
*isl_map_gist_domain(__isl_take isl_map
*map
,
530 __isl_take isl_set
*context
);
531 __isl_give isl_map
*isl_map_gist_range(__isl_take isl_map
*map
,
532 __isl_take isl_set
*context
);
533 __isl_give isl_map
*isl_map_gist_params(__isl_take isl_map
*map
,
534 __isl_take isl_set
*context
);
535 __isl_give isl_map
*isl_map_gist_basic_map(__isl_take isl_map
*map
,
536 __isl_take isl_basic_map
*context
);
539 __isl_give isl_map
*isl_map_coalesce(__isl_take isl_map
*map
);
541 int isl_map_plain_is_equal(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
542 int isl_map_fast_is_equal(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
544 uint32_t isl_map_get_hash(__isl_keep isl_map
*map
);
547 int isl_map_foreach_basic_map(__isl_keep isl_map
*map
,
548 int (*fn
)(__isl_take isl_basic_map
*bmap
, void *user
), void *user
);
550 __isl_give isl_map
*isl_set_lifting(__isl_take isl_set
*set
);
552 __isl_give isl_map
*isl_map_power(__isl_take isl_map
*map
, int *exact
);
553 __isl_give isl_map
*isl_map_reaching_path_lengths(__isl_take isl_map
*map
,
555 __isl_give isl_map
*isl_map_transitive_closure(__isl_take isl_map
*map
,
558 __isl_give isl_map
*isl_map_lex_le_map(__isl_take isl_map
*map1
,
559 __isl_take isl_map
*map2
);
560 __isl_give isl_map
*isl_map_lex_lt_map(__isl_take isl_map
*map1
,
561 __isl_take isl_map
*map2
);
562 __isl_give isl_map
*isl_map_lex_ge_map(__isl_take isl_map
*map1
,
563 __isl_take isl_map
*map2
);
564 __isl_give isl_map
*isl_map_lex_gt_map(__isl_take isl_map
*map1
,
565 __isl_take isl_map
*map2
);
567 __isl_give isl_map
*isl_map_align_params(__isl_take isl_map
*map
,
568 __isl_take isl_space
*model
);
570 __isl_give isl_mat
*isl_basic_map_equalities_matrix(
571 __isl_keep isl_basic_map
*bmap
, enum isl_dim_type c1
,
572 enum isl_dim_type c2
, enum isl_dim_type c3
,
573 enum isl_dim_type c4
, enum isl_dim_type c5
);
574 __isl_give isl_mat
*isl_basic_map_inequalities_matrix(
575 __isl_keep isl_basic_map
*bmap
, enum isl_dim_type c1
,
576 enum isl_dim_type c2
, enum isl_dim_type c3
,
577 enum isl_dim_type c4
, enum isl_dim_type c5
);
578 __isl_give isl_basic_map
*isl_basic_map_from_constraint_matrices(
579 __isl_take isl_space
*dim
,
580 __isl_take isl_mat
*eq
, __isl_take isl_mat
*ineq
, enum isl_dim_type c1
,
581 enum isl_dim_type c2
, enum isl_dim_type c3
,
582 enum isl_dim_type c4
, enum isl_dim_type c5
);
584 __isl_give isl_basic_map
*isl_basic_map_from_aff(__isl_take isl_aff
*aff
);
585 __isl_give isl_basic_map
*isl_basic_map_from_multi_aff(
586 __isl_take isl_multi_aff
*maff
);
587 __isl_give isl_basic_map
*isl_basic_map_from_aff_list(
588 __isl_take isl_space
*domain_dim
, __isl_take isl_aff_list
*list
);
590 __isl_give isl_pw_aff
*isl_map_dim_max(__isl_take isl_map
*map
, int pos
);
592 #if defined(__cplusplus)