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
);
275 int isl_basic_map_is_subset(__isl_keep isl_basic_map
*bmap1
,
276 __isl_keep isl_basic_map
*bmap2
);
277 int isl_basic_map_is_strict_subset(__isl_keep isl_basic_map
*bmap1
,
278 __isl_keep isl_basic_map
*bmap2
);
280 struct isl_map
*isl_map_alloc(struct isl_ctx
*ctx
,
281 unsigned nparam
, unsigned in
, unsigned out
, int n
,
283 __isl_give isl_map
*isl_map_universe(__isl_take isl_space
*dim
);
284 __isl_give isl_map
*isl_map_nat_universe(__isl_take isl_space
*dim
);
285 __isl_give isl_map
*isl_map_empty(__isl_take isl_space
*dim
);
286 struct isl_map
*isl_map_empty_like(struct isl_map
*model
);
287 struct isl_map
*isl_map_empty_like_basic_map(struct isl_basic_map
*model
);
288 struct isl_map
*isl_map_dup(struct isl_map
*map
);
289 __isl_give isl_map
*isl_map_add_basic_map(__isl_take isl_map
*map
,
290 __isl_take isl_basic_map
*bmap
);
291 __isl_give isl_map
*isl_map_identity(__isl_take isl_space
*dim
);
292 struct isl_map
*isl_map_identity_like(struct isl_map
*model
);
293 struct isl_map
*isl_map_identity_like_basic_map(struct isl_basic_map
*model
);
294 __isl_give isl_map
*isl_map_lex_lt_first(__isl_take isl_space
*dim
, unsigned n
);
295 __isl_give isl_map
*isl_map_lex_le_first(__isl_take isl_space
*dim
, unsigned n
);
296 __isl_give isl_map
*isl_map_lex_lt(__isl_take isl_space
*set_dim
);
297 __isl_give isl_map
*isl_map_lex_le(__isl_take isl_space
*set_dim
);
298 __isl_give isl_map
*isl_map_lex_gt_first(__isl_take isl_space
*dim
, unsigned n
);
299 __isl_give isl_map
*isl_map_lex_ge_first(__isl_take isl_space
*dim
, unsigned n
);
300 __isl_give isl_map
*isl_map_lex_gt(__isl_take isl_space
*set_dim
);
301 __isl_give isl_map
*isl_map_lex_ge(__isl_take isl_space
*set_dim
);
302 struct isl_map
*isl_map_finalize(struct isl_map
*map
);
303 void isl_map_free(__isl_take isl_map
*map
);
304 __isl_give isl_map
*isl_map_copy(__isl_keep isl_map
*map
);
305 struct isl_map
*isl_map_extend(struct isl_map
*base
,
306 unsigned nparam
, unsigned n_in
, unsigned n_out
);
308 __isl_give isl_map
*isl_map_reverse(__isl_take isl_map
*map
);
310 __isl_give isl_map
*isl_map_union(
311 __isl_take isl_map
*map1
,
312 __isl_take isl_map
*map2
);
313 struct isl_map
*isl_map_union_disjoint(
314 struct isl_map
*map1
, struct isl_map
*map2
);
316 __isl_give isl_map
*isl_map_intersect_domain(
317 __isl_take isl_map
*map
,
318 __isl_take isl_set
*set
);
320 __isl_give isl_map
*isl_map_intersect_range(
321 __isl_take isl_map
*map
,
322 __isl_take isl_set
*set
);
324 __isl_give isl_map
*isl_map_apply_domain(
325 __isl_take isl_map
*map1
,
326 __isl_take isl_map
*map2
);
328 __isl_give isl_map
*isl_map_apply_range(
329 __isl_take isl_map
*map1
,
330 __isl_take isl_map
*map2
);
331 __isl_give isl_map
*isl_map_product(__isl_take isl_map
*map1
,
332 __isl_take isl_map
*map2
);
333 __isl_give isl_basic_map
*isl_basic_map_domain_product(
334 __isl_take isl_basic_map
*bmap1
, __isl_take isl_basic_map
*bmap2
);
335 __isl_give isl_basic_map
*isl_basic_map_range_product(
336 __isl_take isl_basic_map
*bmap1
, __isl_take isl_basic_map
*bmap2
);
337 __isl_give isl_map
*isl_map_domain_product(__isl_take isl_map
*map1
,
338 __isl_take isl_map
*map2
);
339 __isl_give isl_map
*isl_map_range_product(__isl_take isl_map
*map1
,
340 __isl_take isl_map
*map2
);
341 __isl_give isl_basic_map
*isl_basic_map_flat_product(
342 __isl_take isl_basic_map
*bmap1
, __isl_take isl_basic_map
*bmap2
);
343 __isl_give isl_map
*isl_map_flat_product(__isl_take isl_map
*map1
,
344 __isl_take isl_map
*map2
);
345 __isl_give isl_basic_map
*isl_basic_map_flat_range_product(
346 __isl_take isl_basic_map
*bmap1
, __isl_take isl_basic_map
*bmap2
);
347 __isl_give isl_map
*isl_map_flat_domain_product(__isl_take isl_map
*map1
,
348 __isl_take isl_map
*map2
);
349 __isl_give isl_map
*isl_map_flat_range_product(__isl_take isl_map
*map1
,
350 __isl_take isl_map
*map2
);
352 __isl_give isl_map
*isl_map_intersect(__isl_take isl_map
*map1
,
353 __isl_take isl_map
*map2
);
355 __isl_give isl_map
*isl_map_intersect_params(__isl_take isl_map
*map
,
356 __isl_take isl_set
*params
);
358 __isl_give isl_map
*isl_map_subtract(
359 __isl_take isl_map
*map1
,
360 __isl_take isl_map
*map2
);
361 __isl_give isl_map
*isl_map_subtract_domain(__isl_take isl_map
*map
,
362 __isl_take isl_set
*dom
);
363 __isl_give isl_map
*isl_map_subtract_range(__isl_take isl_map
*map
,
364 __isl_take isl_set
*dom
);
366 __isl_give isl_map
*isl_map_complement(__isl_take isl_map
*map
);
367 struct isl_map
*isl_map_fix_input_si(struct isl_map
*map
,
368 unsigned input
, int value
);
369 __isl_give isl_map
*isl_map_fix_si(__isl_take isl_map
*map
,
370 enum isl_dim_type type
, unsigned pos
, int value
);
371 __isl_give isl_map
*isl_map_lower_bound_si(__isl_take isl_map
*map
,
372 enum isl_dim_type type
, unsigned pos
, int value
);
373 __isl_give isl_map
*isl_map_upper_bound_si(__isl_take isl_map
*map
,
374 enum isl_dim_type type
, unsigned pos
, int value
);
376 __isl_give isl_basic_set
*isl_basic_map_deltas(__isl_take isl_basic_map
*bmap
);
378 __isl_give isl_set
*isl_map_deltas(__isl_take isl_map
*map
);
379 __isl_give isl_basic_map
*isl_basic_map_deltas_map(
380 __isl_take isl_basic_map
*bmap
);
381 __isl_give isl_map
*isl_map_deltas_map(__isl_take isl_map
*map
);
383 __isl_give isl_map
*isl_map_detect_equalities(__isl_take isl_map
*map
);
385 __isl_give isl_basic_map
*isl_map_affine_hull(__isl_take isl_map
*map
);
386 __isl_give isl_basic_map
*isl_map_convex_hull(__isl_take isl_map
*map
);
388 __isl_give isl_basic_map
*isl_map_polyhedral_hull(__isl_take isl_map
*map
);
389 __isl_give isl_basic_map
*isl_basic_map_add(__isl_take isl_basic_map
*bmap
,
390 enum isl_dim_type type
, unsigned n
);
391 __isl_give isl_map
*isl_map_add_dims(__isl_take isl_map
*map
,
392 enum isl_dim_type type
, unsigned n
);
393 __isl_give isl_map
*isl_map_insert_dims(__isl_take isl_map
*map
,
394 enum isl_dim_type type
, unsigned pos
, unsigned n
);
395 __isl_give isl_basic_map
*isl_basic_map_move_dims(
396 __isl_take isl_basic_map
*bmap
,
397 enum isl_dim_type dst_type
, unsigned dst_pos
,
398 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
399 __isl_give isl_map
*isl_map_move_dims(__isl_take isl_map
*map
,
400 enum isl_dim_type dst_type
, unsigned dst_pos
,
401 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
402 __isl_give isl_basic_map
*isl_basic_map_project_out(
403 __isl_take isl_basic_map
*bmap
,
404 enum isl_dim_type type
, unsigned first
, unsigned n
);
405 __isl_give isl_map
*isl_map_project_out(__isl_take isl_map
*map
,
406 enum isl_dim_type type
, unsigned first
, unsigned n
);
407 __isl_give isl_basic_map
*isl_basic_map_remove_divs(
408 __isl_take isl_basic_map
*bmap
);
409 __isl_give isl_map
*isl_map_remove_divs(__isl_take isl_map
*map
);
410 __isl_give isl_map
*isl_map_eliminate(__isl_take isl_map
*map
,
411 enum isl_dim_type type
, unsigned first
, unsigned n
);
412 __isl_give isl_map
*isl_map_remove_dims(__isl_take isl_map
*map
,
413 enum isl_dim_type type
, unsigned first
, unsigned n
);
414 struct isl_map
*isl_map_remove_inputs(struct isl_map
*map
,
415 unsigned first
, unsigned n
);
417 __isl_give isl_map
*isl_map_equate(__isl_take isl_map
*map
,
418 enum isl_dim_type type1
, int pos1
, enum isl_dim_type type2
, int pos2
);
419 __isl_give isl_map
*isl_map_oppose(__isl_take isl_map
*map
,
420 enum isl_dim_type type1
, int pos1
, enum isl_dim_type type2
, int pos2
);
423 __isl_give isl_map
*isl_set_identity(__isl_take isl_set
*set
);
426 int isl_basic_set_is_wrapping(__isl_keep isl_basic_set
*bset
);
428 int isl_set_is_wrapping(__isl_keep isl_set
*set
);
429 __isl_give isl_basic_set
*isl_basic_map_wrap(__isl_take isl_basic_map
*bmap
);
430 __isl_give isl_set
*isl_map_wrap(__isl_take isl_map
*map
);
431 __isl_give isl_basic_map
*isl_basic_set_unwrap(__isl_take isl_basic_set
*bset
);
432 __isl_give isl_map
*isl_set_unwrap(__isl_take isl_set
*set
);
434 __isl_give isl_basic_map
*isl_basic_map_flatten(__isl_take isl_basic_map
*bmap
);
436 __isl_give isl_map
*isl_map_flatten(__isl_take isl_map
*map
);
438 __isl_give isl_basic_map
*isl_basic_map_flatten_domain(
439 __isl_take isl_basic_map
*bmap
);
441 __isl_give isl_basic_map
*isl_basic_map_flatten_range(
442 __isl_take isl_basic_map
*bmap
);
444 __isl_give isl_map
*isl_map_flatten_domain(__isl_take isl_map
*map
);
446 __isl_give isl_map
*isl_map_flatten_range(__isl_take isl_map
*map
);
448 __isl_give isl_basic_set
*isl_basic_set_flatten(__isl_take isl_basic_set
*bset
);
450 __isl_give isl_set
*isl_set_flatten(__isl_take isl_set
*set
);
451 __isl_give isl_map
*isl_set_flatten_map(__isl_take isl_set
*set
);
452 __isl_give isl_set
*isl_map_params(__isl_take isl_map
*map
);
453 __isl_give isl_set
*isl_map_domain(__isl_take isl_map
*bmap
);
454 __isl_give isl_set
*isl_map_range(__isl_take isl_map
*map
);
455 __isl_give isl_map
*isl_map_domain_map(__isl_take isl_map
*map
);
456 __isl_give isl_map
*isl_map_range_map(__isl_take isl_map
*map
);
458 __isl_give isl_map
*isl_map_from_basic_map(__isl_take isl_basic_map
*bmap
);
459 __isl_give isl_map
*isl_map_from_domain(__isl_take isl_set
*set
);
460 __isl_give isl_basic_map
*isl_basic_map_from_domain(
461 __isl_take isl_basic_set
*bset
);
462 __isl_give isl_basic_map
*isl_basic_map_from_range(
463 __isl_take isl_basic_set
*bset
);
464 struct isl_map
*isl_map_from_range(struct isl_set
*set
);
465 __isl_give isl_basic_map
*isl_basic_map_from_domain_and_range(
466 __isl_take isl_basic_set
*domain
, __isl_take isl_basic_set
*range
);
467 __isl_give isl_map
*isl_map_from_domain_and_range(__isl_take isl_set
*domain
,
468 __isl_take isl_set
*range
);
469 __isl_give isl_map
*isl_map_from_set(__isl_take isl_set
*set
,
470 __isl_take isl_space
*dim
);
471 struct isl_set
*isl_set_from_map(struct isl_map
*map
);
473 __isl_give isl_basic_map
*isl_map_sample(__isl_take isl_map
*map
);
475 int isl_map_plain_is_empty(__isl_keep isl_map
*map
);
476 int isl_map_fast_is_empty(__isl_keep isl_map
*map
);
477 int isl_map_plain_is_universe(__isl_keep isl_map
*map
);
479 int isl_map_is_empty(__isl_keep isl_map
*map
);
481 int isl_map_is_subset(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
483 int isl_map_is_strict_subset(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
485 int isl_map_is_equal(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
486 int isl_map_plain_is_single_valued(__isl_keep isl_map
*map
);
488 int isl_map_is_single_valued(__isl_keep isl_map
*map
);
489 int isl_map_plain_is_injective(__isl_keep isl_map
*map
);
491 int isl_map_is_injective(__isl_keep isl_map
*map
);
493 int isl_map_is_bijective(__isl_keep isl_map
*map
);
494 int isl_map_is_translation(__isl_keep isl_map
*map
);
495 int isl_map_has_equal_space(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
497 int isl_basic_map_can_zip(__isl_keep isl_basic_map
*bmap
);
498 int isl_map_can_zip(__isl_keep isl_map
*map
);
499 __isl_give isl_basic_map
*isl_basic_map_zip(__isl_take isl_basic_map
*bmap
);
500 __isl_give isl_map
*isl_map_zip(__isl_take isl_map
*map
);
502 __isl_give isl_map
*isl_map_make_disjoint(__isl_take isl_map
*map
);
503 __isl_give isl_map
*isl_basic_map_compute_divs(__isl_take isl_basic_map
*bmap
);
504 __isl_give isl_map
*isl_map_compute_divs(__isl_take isl_map
*map
);
505 __isl_give isl_map
*isl_map_align_divs(__isl_take isl_map
*map
);
507 int isl_basic_map_involves_dims(__isl_keep isl_basic_map
*bmap
,
508 enum isl_dim_type type
, unsigned first
, unsigned n
);
509 int isl_map_involves_dims(__isl_keep isl_map
*map
,
510 enum isl_dim_type type
, unsigned first
, unsigned n
);
512 void isl_map_print_internal(__isl_keep isl_map
*map
, FILE *out
, int indent
);
514 int isl_map_plain_input_is_fixed(__isl_keep isl_map
*map
,
515 unsigned in
, isl_int
*val
);
516 int isl_map_plain_is_fixed(__isl_keep isl_map
*map
,
517 enum isl_dim_type type
, unsigned pos
, isl_int
*val
);
518 int isl_map_fast_is_fixed(__isl_keep isl_map
*map
,
519 enum isl_dim_type type
, unsigned pos
, isl_int
*val
);
522 __isl_give isl_basic_map
*isl_basic_map_gist(__isl_take isl_basic_map
*bmap
,
523 __isl_take isl_basic_map
*context
);
525 __isl_give isl_map
*isl_map_gist(__isl_take isl_map
*map
,
526 __isl_take isl_map
*context
);
528 __isl_give isl_map
*isl_map_gist_domain(__isl_take isl_map
*map
,
529 __isl_take isl_set
*context
);
530 __isl_give isl_map
*isl_map_gist_range(__isl_take isl_map
*map
,
531 __isl_take isl_set
*context
);
532 __isl_give isl_map
*isl_map_gist_params(__isl_take isl_map
*map
,
533 __isl_take isl_set
*context
);
534 __isl_give isl_map
*isl_map_gist_basic_map(__isl_take isl_map
*map
,
535 __isl_take isl_basic_map
*context
);
538 __isl_give isl_map
*isl_map_coalesce(__isl_take isl_map
*map
);
540 int isl_map_plain_is_equal(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
541 int isl_map_fast_is_equal(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
543 uint32_t isl_map_get_hash(__isl_keep isl_map
*map
);
546 int isl_map_foreach_basic_map(__isl_keep isl_map
*map
,
547 int (*fn
)(__isl_take isl_basic_map
*bmap
, void *user
), void *user
);
549 __isl_give isl_map
*isl_set_lifting(__isl_take isl_set
*set
);
551 __isl_give isl_map
*isl_map_power(__isl_take isl_map
*map
, int *exact
);
552 __isl_give isl_map
*isl_map_reaching_path_lengths(__isl_take isl_map
*map
,
554 __isl_give isl_map
*isl_map_transitive_closure(__isl_take isl_map
*map
,
557 __isl_give isl_map
*isl_map_lex_le_map(__isl_take isl_map
*map1
,
558 __isl_take isl_map
*map2
);
559 __isl_give isl_map
*isl_map_lex_lt_map(__isl_take isl_map
*map1
,
560 __isl_take isl_map
*map2
);
561 __isl_give isl_map
*isl_map_lex_ge_map(__isl_take isl_map
*map1
,
562 __isl_take isl_map
*map2
);
563 __isl_give isl_map
*isl_map_lex_gt_map(__isl_take isl_map
*map1
,
564 __isl_take isl_map
*map2
);
566 __isl_give isl_map
*isl_map_align_params(__isl_take isl_map
*map
,
567 __isl_take isl_space
*model
);
569 __isl_give isl_mat
*isl_basic_map_equalities_matrix(
570 __isl_keep isl_basic_map
*bmap
, enum isl_dim_type c1
,
571 enum isl_dim_type c2
, enum isl_dim_type c3
,
572 enum isl_dim_type c4
, enum isl_dim_type c5
);
573 __isl_give isl_mat
*isl_basic_map_inequalities_matrix(
574 __isl_keep isl_basic_map
*bmap
, enum isl_dim_type c1
,
575 enum isl_dim_type c2
, enum isl_dim_type c3
,
576 enum isl_dim_type c4
, enum isl_dim_type c5
);
577 __isl_give isl_basic_map
*isl_basic_map_from_constraint_matrices(
578 __isl_take isl_space
*dim
,
579 __isl_take isl_mat
*eq
, __isl_take isl_mat
*ineq
, enum isl_dim_type c1
,
580 enum isl_dim_type c2
, enum isl_dim_type c3
,
581 enum isl_dim_type c4
, enum isl_dim_type c5
);
583 __isl_give isl_basic_map
*isl_basic_map_from_aff(__isl_take isl_aff
*aff
);
584 __isl_give isl_basic_map
*isl_basic_map_from_multi_aff(
585 __isl_take isl_multi_aff
*maff
);
586 __isl_give isl_basic_map
*isl_basic_map_from_aff_list(
587 __isl_take isl_space
*domain_dim
, __isl_take isl_aff_list
*list
);
589 __isl_give isl_pw_aff
*isl_map_dim_max(__isl_take isl_map
*map
, int pos
);
591 #if defined(__cplusplus)