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