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 struct isl_map
*isl_map_fix_input_si(struct isl_map
*map
,
362 unsigned input
, int value
);
363 __isl_give isl_map
*isl_map_fix_si(__isl_take isl_map
*map
,
364 enum isl_dim_type type
, unsigned pos
, int value
);
365 __isl_give isl_map
*isl_map_lower_bound_si(__isl_take isl_map
*map
,
366 enum isl_dim_type type
, unsigned pos
, int value
);
368 __isl_give isl_basic_set
*isl_basic_map_deltas(__isl_take isl_basic_map
*bmap
);
370 __isl_give isl_set
*isl_map_deltas(__isl_take isl_map
*map
);
371 __isl_give isl_basic_map
*isl_basic_map_deltas_map(
372 __isl_take isl_basic_map
*bmap
);
373 __isl_give isl_map
*isl_map_deltas_map(__isl_take isl_map
*map
);
375 __isl_give isl_map
*isl_map_detect_equalities(__isl_take isl_map
*map
);
377 __isl_give isl_basic_map
*isl_map_affine_hull(__isl_take isl_map
*map
);
378 __isl_give isl_basic_map
*isl_map_convex_hull(__isl_take isl_map
*map
);
380 __isl_give isl_basic_map
*isl_map_polyhedral_hull(__isl_take isl_map
*map
);
381 __isl_give isl_basic_map
*isl_basic_map_add(__isl_take isl_basic_map
*bmap
,
382 enum isl_dim_type type
, unsigned n
);
383 __isl_give isl_map
*isl_map_add_dims(__isl_take isl_map
*map
,
384 enum isl_dim_type type
, unsigned n
);
385 __isl_give isl_map
*isl_map_insert_dims(__isl_take isl_map
*map
,
386 enum isl_dim_type type
, unsigned pos
, unsigned n
);
387 __isl_give isl_basic_map
*isl_basic_map_move_dims(
388 __isl_take isl_basic_map
*bmap
,
389 enum isl_dim_type dst_type
, unsigned dst_pos
,
390 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
391 __isl_give isl_map
*isl_map_move_dims(__isl_take isl_map
*map
,
392 enum isl_dim_type dst_type
, unsigned dst_pos
,
393 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
394 __isl_give isl_basic_map
*isl_basic_map_project_out(
395 __isl_take isl_basic_map
*bmap
,
396 enum isl_dim_type type
, unsigned first
, unsigned n
);
397 __isl_give isl_map
*isl_map_project_out(__isl_take isl_map
*map
,
398 enum isl_dim_type type
, unsigned first
, unsigned n
);
399 __isl_give isl_basic_map
*isl_basic_map_remove_divs(
400 __isl_take isl_basic_map
*bmap
);
401 __isl_give isl_map
*isl_map_remove_divs(__isl_take isl_map
*map
);
402 __isl_give isl_map
*isl_map_remove_dims(__isl_take isl_map
*map
,
403 enum isl_dim_type type
, unsigned first
, unsigned n
);
404 struct isl_map
*isl_map_remove_inputs(struct isl_map
*map
,
405 unsigned first
, unsigned n
);
407 __isl_give isl_map
*isl_map_equate(__isl_take isl_map
*map
,
408 enum isl_dim_type type1
, int pos1
, enum isl_dim_type type2
, int pos2
);
409 __isl_give isl_map
*isl_map_oppose(__isl_take isl_map
*map
,
410 enum isl_dim_type type1
, int pos1
, enum isl_dim_type type2
, int pos2
);
413 __isl_give isl_map
*isl_set_identity(__isl_take isl_set
*set
);
416 int isl_basic_set_is_wrapping(__isl_keep isl_basic_set
*bset
);
418 int isl_set_is_wrapping(__isl_keep isl_set
*set
);
419 __isl_give isl_basic_set
*isl_basic_map_wrap(__isl_take isl_basic_map
*bmap
);
420 __isl_give isl_set
*isl_map_wrap(__isl_take isl_map
*map
);
421 __isl_give isl_basic_map
*isl_basic_set_unwrap(__isl_take isl_basic_set
*bset
);
422 __isl_give isl_map
*isl_set_unwrap(__isl_take isl_set
*set
);
424 __isl_give isl_basic_map
*isl_basic_map_flatten(__isl_take isl_basic_map
*bmap
);
426 __isl_give isl_map
*isl_map_flatten(__isl_take isl_map
*map
);
428 __isl_give isl_basic_map
*isl_basic_map_flatten_domain(
429 __isl_take isl_basic_map
*bmap
);
431 __isl_give isl_basic_map
*isl_basic_map_flatten_range(
432 __isl_take isl_basic_map
*bmap
);
434 __isl_give isl_map
*isl_map_flatten_domain(__isl_take isl_map
*map
);
436 __isl_give isl_map
*isl_map_flatten_range(__isl_take isl_map
*map
);
438 __isl_give isl_basic_set
*isl_basic_set_flatten(__isl_take isl_basic_set
*bset
);
440 __isl_give isl_set
*isl_set_flatten(__isl_take isl_set
*set
);
441 __isl_give isl_map
*isl_set_flatten_map(__isl_take isl_set
*set
);
442 __isl_give isl_set
*isl_map_params(__isl_take isl_map
*map
);
443 __isl_give isl_set
*isl_map_domain(__isl_take isl_map
*bmap
);
444 __isl_give isl_set
*isl_map_range(__isl_take isl_map
*map
);
445 __isl_give isl_map
*isl_map_domain_map(__isl_take isl_map
*map
);
446 __isl_give isl_map
*isl_map_range_map(__isl_take isl_map
*map
);
448 __isl_give isl_map
*isl_map_from_basic_map(__isl_take isl_basic_map
*bmap
);
449 __isl_give isl_map
*isl_map_from_domain(__isl_take isl_set
*set
);
450 __isl_give isl_basic_map
*isl_basic_map_from_domain(
451 __isl_take isl_basic_set
*bset
);
452 __isl_give isl_basic_map
*isl_basic_map_from_range(
453 __isl_take isl_basic_set
*bset
);
454 struct isl_map
*isl_map_from_range(struct isl_set
*set
);
455 __isl_give isl_basic_map
*isl_basic_map_from_domain_and_range(
456 __isl_take isl_basic_set
*domain
, __isl_take isl_basic_set
*range
);
457 __isl_give isl_map
*isl_map_from_domain_and_range(__isl_take isl_set
*domain
,
458 __isl_take isl_set
*range
);
459 __isl_give isl_map
*isl_map_from_set(__isl_take isl_set
*set
,
460 __isl_take isl_space
*dim
);
461 struct isl_set
*isl_set_from_map(struct isl_map
*map
);
463 __isl_give isl_basic_map
*isl_map_sample(__isl_take isl_map
*map
);
465 int isl_map_plain_is_empty(__isl_keep isl_map
*map
);
466 int isl_map_fast_is_empty(__isl_keep isl_map
*map
);
467 int isl_map_plain_is_universe(__isl_keep isl_map
*map
);
469 int isl_map_is_empty(__isl_keep isl_map
*map
);
471 int isl_map_is_subset(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
473 int isl_map_is_strict_subset(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
475 int isl_map_is_equal(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
477 int isl_map_is_single_valued(__isl_keep isl_map
*map
);
478 int isl_map_plain_is_injective(__isl_keep isl_map
*map
);
480 int isl_map_is_injective(__isl_keep isl_map
*map
);
482 int isl_map_is_bijective(__isl_keep isl_map
*map
);
483 int isl_map_is_translation(__isl_keep isl_map
*map
);
484 int isl_map_has_equal_space(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
486 int isl_basic_map_can_zip(__isl_keep isl_basic_map
*bmap
);
487 int isl_map_can_zip(__isl_keep isl_map
*map
);
488 __isl_give isl_basic_map
*isl_basic_map_zip(__isl_take isl_basic_map
*bmap
);
489 __isl_give isl_map
*isl_map_zip(__isl_take isl_map
*map
);
491 __isl_give isl_map
*isl_map_make_disjoint(__isl_take isl_map
*map
);
492 __isl_give isl_map
*isl_basic_map_compute_divs(__isl_take isl_basic_map
*bmap
);
493 __isl_give isl_map
*isl_map_compute_divs(__isl_take isl_map
*map
);
494 __isl_give isl_map
*isl_map_align_divs(__isl_take isl_map
*map
);
496 int isl_basic_map_involves_dims(__isl_keep isl_basic_map
*bmap
,
497 enum isl_dim_type type
, unsigned first
, unsigned n
);
498 int isl_map_involves_dims(__isl_keep isl_map
*map
,
499 enum isl_dim_type type
, unsigned first
, unsigned n
);
501 void isl_map_print_internal(__isl_keep isl_map
*map
, FILE *out
, int indent
);
503 int isl_map_plain_input_is_fixed(__isl_keep isl_map
*map
,
504 unsigned in
, isl_int
*val
);
505 int isl_map_plain_is_fixed(__isl_keep isl_map
*map
,
506 enum isl_dim_type type
, unsigned pos
, isl_int
*val
);
507 int isl_map_fast_is_fixed(__isl_keep isl_map
*map
,
508 enum isl_dim_type type
, unsigned pos
, isl_int
*val
);
511 __isl_give isl_basic_map
*isl_basic_map_gist(__isl_take isl_basic_map
*bmap
,
512 __isl_take isl_basic_map
*context
);
514 __isl_give isl_map
*isl_map_gist(__isl_take isl_map
*map
,
515 __isl_take isl_map
*context
);
517 __isl_give isl_map
*isl_map_gist_domain(__isl_take isl_map
*map
,
518 __isl_take isl_set
*context
);
519 __isl_give isl_map
*isl_map_gist_params(__isl_take isl_map
*map
,
520 __isl_take isl_set
*context
);
521 __isl_give isl_map
*isl_map_gist_basic_map(__isl_take isl_map
*map
,
522 __isl_take isl_basic_map
*context
);
525 __isl_give isl_map
*isl_map_coalesce(__isl_take isl_map
*map
);
527 int isl_map_plain_is_equal(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
528 int isl_map_fast_is_equal(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
);
530 uint32_t isl_map_get_hash(__isl_keep isl_map
*map
);
533 int isl_map_foreach_basic_map(__isl_keep isl_map
*map
,
534 int (*fn
)(__isl_take isl_basic_map
*bmap
, void *user
), void *user
);
536 __isl_give isl_map
*isl_set_lifting(__isl_take isl_set
*set
);
538 __isl_give isl_map
*isl_map_power(__isl_take isl_map
*map
, int *exact
);
539 __isl_give isl_map
*isl_map_reaching_path_lengths(__isl_take isl_map
*map
,
541 __isl_give isl_map
*isl_map_transitive_closure(__isl_take isl_map
*map
,
544 __isl_give isl_map
*isl_map_lex_le_map(__isl_take isl_map
*map1
,
545 __isl_take isl_map
*map2
);
546 __isl_give isl_map
*isl_map_lex_lt_map(__isl_take isl_map
*map1
,
547 __isl_take isl_map
*map2
);
548 __isl_give isl_map
*isl_map_lex_ge_map(__isl_take isl_map
*map1
,
549 __isl_take isl_map
*map2
);
550 __isl_give isl_map
*isl_map_lex_gt_map(__isl_take isl_map
*map1
,
551 __isl_take isl_map
*map2
);
553 __isl_give isl_map
*isl_map_align_params(__isl_take isl_map
*map
,
554 __isl_take isl_space
*model
);
556 __isl_give isl_mat
*isl_basic_map_equalities_matrix(
557 __isl_keep isl_basic_map
*bmap
, enum isl_dim_type c1
,
558 enum isl_dim_type c2
, enum isl_dim_type c3
,
559 enum isl_dim_type c4
, enum isl_dim_type c5
);
560 __isl_give isl_mat
*isl_basic_map_inequalities_matrix(
561 __isl_keep isl_basic_map
*bmap
, enum isl_dim_type c1
,
562 enum isl_dim_type c2
, enum isl_dim_type c3
,
563 enum isl_dim_type c4
, enum isl_dim_type c5
);
564 __isl_give isl_basic_map
*isl_basic_map_from_constraint_matrices(
565 __isl_take isl_space
*dim
,
566 __isl_take isl_mat
*eq
, __isl_take isl_mat
*ineq
, enum isl_dim_type c1
,
567 enum isl_dim_type c2
, enum isl_dim_type c3
,
568 enum isl_dim_type c4
, enum isl_dim_type c5
);
570 __isl_give isl_basic_map
*isl_basic_map_from_aff(__isl_take isl_aff
*aff
);
571 __isl_give isl_basic_map
*isl_basic_map_from_multi_aff(
572 __isl_take isl_multi_aff
*maff
);
573 __isl_give isl_basic_map
*isl_basic_map_from_aff_list(
574 __isl_take isl_space
*domain_dim
, __isl_take isl_aff_list
*list
);
576 __isl_give isl_pw_aff
*isl_map_dim_max(__isl_take isl_map
*map
, int pos
);
578 #if defined(__cplusplus)