2 * Copyright 2008-2009 Katholieke Universiteit Leuven
4 * Use of this software is governed by the MIT license
6 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
10 #ifndef ISL_MAP_PRIVATE_H
11 #define ISL_MAP_PRIVATE_H
13 #define isl_basic_set isl_basic_map
14 #define isl_set isl_map
15 #define isl_basic_set_list isl_basic_map_list
16 #define isl_set_list isl_map_list
20 #include <isl_reordering.h>
25 /* A "basic map" is a relation between two sets of variables,
26 * called the "in" and "out" variables.
27 * A "basic set" is a basic map with a zero-dimensional
30 * It is implemented as a set with two extra fields:
31 * n_in is the number of in variables
32 * n_out is the number of out variables
33 * n_in + n_out should be equal to set.dim
35 struct isl_basic_map
{
37 #define ISL_BASIC_MAP_FINAL (1 << 0)
38 #define ISL_BASIC_MAP_EMPTY (1 << 1)
39 #define ISL_BASIC_MAP_NO_IMPLICIT (1 << 2)
40 #define ISL_BASIC_MAP_NO_REDUNDANT (1 << 3)
41 #define ISL_BASIC_MAP_RATIONAL (1 << 4)
42 #define ISL_BASIC_MAP_NORMALIZED (1 << 5)
43 #define ISL_BASIC_MAP_NORMALIZED_DIVS (1 << 6)
44 #define ISL_BASIC_MAP_ALL_EQUALITIES (1 << 7)
45 #define ISL_BASIC_MAP_REDUCED_COEFFICIENTS (1 << 8)
46 #define ISL_BASIC_SET_FINAL (1 << 0)
47 #define ISL_BASIC_SET_EMPTY (1 << 1)
48 #define ISL_BASIC_SET_NO_IMPLICIT (1 << 2)
49 #define ISL_BASIC_SET_NO_REDUNDANT (1 << 3)
50 #define ISL_BASIC_SET_RATIONAL (1 << 4)
51 #define ISL_BASIC_SET_NORMALIZED (1 << 5)
52 #define ISL_BASIC_SET_NORMALIZED_DIVS (1 << 6)
53 #define ISL_BASIC_SET_ALL_EQUALITIES (1 << 7)
54 #define ISL_BASIC_SET_REDUCED_COEFFICIENTS (1 << 8)
73 struct isl_vec
*sample
;
76 struct isl_blk block2
;
80 #define EL isl_basic_set
82 #include <isl_list_templ.h>
84 /* A "map" is a (possibly disjoint) union of basic maps.
85 * A "set" is a (possibly disjoint) union of basic sets.
87 * Currently, the isl_set structure is identical to the isl_map structure
88 * and the library depends on this correspondence internally.
89 * However, users should not depend on this correspondence.
93 #define ISL_MAP_DISJOINT (1 << 0)
94 #define ISL_MAP_NORMALIZED (1 << 1)
95 #define ISL_SET_DISJOINT (1 << 0)
96 #define ISL_SET_NORMALIZED (1 << 1)
106 struct isl_basic_map
*p
[1];
112 #include <isl_list_templ.h>
114 __isl_give isl_basic_set
*isl_basic_set_alloc(isl_ctx
*ctx
,
115 unsigned nparam
, unsigned dim
, unsigned extra
,
116 unsigned n_eq
, unsigned n_ineq
);
117 __isl_give isl_basic_set
*isl_basic_set_extend(__isl_take isl_basic_set
*base
,
118 unsigned nparam
, unsigned dim
, unsigned extra
,
119 unsigned n_eq
, unsigned n_ineq
);
120 __isl_give isl_basic_set
*isl_basic_set_extend_constraints(
121 __isl_take isl_basic_set
*base
, unsigned n_eq
, unsigned n_ineq
);
122 __isl_give isl_basic_set
*isl_basic_set_finalize(
123 __isl_take isl_basic_set
*bset
);
124 __isl_give isl_basic_set
*isl_basic_set_dup(__isl_keep isl_basic_set
*bset
);
125 __isl_give isl_basic_set
*isl_basic_set_simplify(
126 __isl_take isl_basic_set
*bset
);
128 __isl_give isl_basic_map
*isl_basic_map_alloc(isl_ctx
*ctx
,
129 unsigned nparam
, unsigned in
, unsigned out
, unsigned extra
,
130 unsigned n_eq
, unsigned n_ineq
);
131 __isl_give isl_basic_map
*isl_basic_map_mark_final(
132 __isl_take isl_basic_map
*bmap
);
133 __isl_give isl_basic_map
*isl_basic_map_finalize(
134 __isl_take isl_basic_map
*bmap
);
135 __isl_give isl_basic_map
*isl_basic_map_extend(__isl_take isl_basic_map
*base
,
136 unsigned nparam
, unsigned n_in
, unsigned n_out
, unsigned extra
,
137 unsigned n_eq
, unsigned n_ineq
);
138 __isl_give isl_basic_map
*isl_basic_map_extend_constraints(
139 __isl_take isl_basic_map
*base
, unsigned n_eq
, unsigned n_ineq
);
140 __isl_give isl_basic_map
*isl_basic_map_simplify(
141 __isl_take isl_basic_map
*bmap
);
143 __isl_give isl_set
*isl_set_alloc(isl_ctx
*ctx
,
144 unsigned nparam
, unsigned dim
, int n
, unsigned flags
);
145 __isl_give isl_set
*isl_set_add_basic_set(__isl_take isl_set
*set
,
146 __isl_take isl_basic_set
*bset
);
147 __isl_give isl_set
*isl_set_finalize(__isl_take isl_set
*set
);
148 __isl_give isl_set
*isl_set_dup(__isl_keep isl_set
*set
);
150 __isl_give isl_map
*isl_map_alloc(isl_ctx
*ctx
,
151 unsigned nparam
, unsigned in
, unsigned out
, int n
, unsigned flags
);
152 __isl_give isl_map
*isl_map_add_basic_map(__isl_take isl_map
*map
,
153 __isl_take isl_basic_map
*bmap
);
154 __isl_give isl_map
*isl_map_dup(__isl_keep isl_map
*map
);
155 __isl_give isl_map
*isl_map_finalize(__isl_take isl_map
*map
);
157 __isl_give isl_basic_set
*isl_basic_set_from_underlying_set(
158 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*like
);
159 __isl_give isl_set
*isl_set_from_underlying_set(
160 __isl_take isl_set
*set
, __isl_take isl_basic_set
*like
);
161 __isl_give isl_set
*isl_set_to_underlying_set(__isl_take isl_set
*set
);
163 __isl_give isl_map
*isl_map_realign(__isl_take isl_map
*map
,
164 __isl_take isl_reordering
*r
);
165 __isl_give isl_set
*isl_set_realign(__isl_take isl_set
*set
,
166 __isl_take isl_reordering
*r
);
168 __isl_give isl_map
*isl_map_reset(__isl_take isl_map
*map
,
169 enum isl_dim_type type
);
171 __isl_give isl_basic_set
*isl_basic_set_reset_space(
172 __isl_take isl_basic_set
*bset
, __isl_take isl_space
*dim
);
173 __isl_give isl_basic_map
*isl_basic_map_reset_space(
174 __isl_take isl_basic_map
*bmap
, __isl_take isl_space
*dim
);
175 __isl_give isl_map
*isl_map_reset_space(__isl_take isl_map
*map
,
176 __isl_take isl_space
*dim
);
178 unsigned isl_basic_map_offset(struct isl_basic_map
*bmap
,
179 enum isl_dim_type type
);
180 unsigned isl_basic_set_offset(struct isl_basic_set
*bset
,
181 enum isl_dim_type type
);
183 int isl_basic_map_may_be_set(__isl_keep isl_basic_map
*bmap
);
184 int isl_map_may_be_set(__isl_keep isl_map
*map
);
185 int isl_map_compatible_domain(struct isl_map
*map
, struct isl_set
*set
);
186 int isl_basic_map_compatible_domain(struct isl_basic_map
*bmap
,
187 struct isl_basic_set
*bset
);
188 int isl_basic_map_compatible_range(struct isl_basic_map
*bmap
,
189 struct isl_basic_set
*bset
);
191 struct isl_basic_map
*isl_basic_map_extend_space(struct isl_basic_map
*base
,
192 __isl_take isl_space
*dim
, unsigned extra
,
193 unsigned n_eq
, unsigned n_ineq
);
194 struct isl_basic_set
*isl_basic_set_extend_space(struct isl_basic_set
*base
,
195 __isl_take isl_space
*dim
, unsigned extra
,
196 unsigned n_eq
, unsigned n_ineq
);
197 struct isl_basic_set
*isl_basic_set_add_constraints(struct isl_basic_set
*bset1
,
198 struct isl_basic_set
*bset2
, unsigned pos
);
200 struct isl_map
*isl_map_grow(struct isl_map
*map
, int n
);
201 struct isl_set
*isl_set_grow(struct isl_set
*set
, int n
);
203 isl_bool
isl_basic_set_contains(__isl_keep isl_basic_set
*bset
,
204 __isl_keep isl_vec
*vec
);
205 isl_bool
isl_basic_map_contains(__isl_keep isl_basic_map
*bmap
,
206 __isl_keep isl_vec
*vec
);
208 __isl_give isl_basic_set
*isl_basic_set_alloc_space(__isl_take isl_space
*dim
,
209 unsigned extra
, unsigned n_eq
, unsigned n_ineq
);
210 __isl_give isl_set
*isl_set_alloc_space(__isl_take isl_space
*dim
, int n
,
212 __isl_give isl_basic_map
*isl_basic_map_alloc_space(__isl_take isl_space
*dim
,
213 unsigned extra
, unsigned n_eq
, unsigned n_ineq
);
214 __isl_give isl_map
*isl_map_alloc_space(__isl_take isl_space
*dim
, int n
,
217 unsigned isl_basic_map_total_dim(const struct isl_basic_map
*bmap
);
219 int isl_basic_map_alloc_equality(struct isl_basic_map
*bmap
);
220 int isl_basic_set_alloc_equality(struct isl_basic_set
*bset
);
221 int isl_basic_set_free_inequality(struct isl_basic_set
*bset
, unsigned n
);
222 int isl_basic_map_free_equality(struct isl_basic_map
*bmap
, unsigned n
);
223 int isl_basic_set_free_equality(struct isl_basic_set
*bset
, unsigned n
);
224 int isl_basic_set_alloc_inequality(struct isl_basic_set
*bset
);
225 int isl_basic_map_alloc_inequality(struct isl_basic_map
*bmap
);
226 int isl_basic_map_free_inequality(struct isl_basic_map
*bmap
, unsigned n
);
227 int isl_basic_map_alloc_div(struct isl_basic_map
*bmap
);
228 int isl_basic_set_alloc_div(struct isl_basic_set
*bset
);
229 int isl_basic_map_free_div(struct isl_basic_map
*bmap
, unsigned n
);
230 int isl_basic_set_free_div(struct isl_basic_set
*bset
, unsigned n
);
231 void isl_basic_map_inequality_to_equality(
232 struct isl_basic_map
*bmap
, unsigned pos
);
233 int isl_basic_map_drop_equality(struct isl_basic_map
*bmap
, unsigned pos
);
234 int isl_basic_set_drop_equality(struct isl_basic_set
*bset
, unsigned pos
);
235 int isl_basic_set_drop_inequality(struct isl_basic_set
*bset
, unsigned pos
);
236 int isl_basic_map_drop_inequality(struct isl_basic_map
*bmap
, unsigned pos
);
237 __isl_give isl_basic_set
*isl_basic_set_add_eq(__isl_take isl_basic_set
*bset
,
239 __isl_give isl_basic_map
*isl_basic_map_add_eq(__isl_take isl_basic_map
*bmap
,
241 __isl_give isl_basic_set
*isl_basic_set_add_ineq(__isl_take isl_basic_set
*bset
,
243 __isl_give isl_basic_map
*isl_basic_map_add_ineq(__isl_take isl_basic_map
*bmap
,
246 int isl_inequality_negate(struct isl_basic_map
*bmap
, unsigned pos
);
248 struct isl_basic_set
*isl_basic_set_cow(struct isl_basic_set
*bset
);
249 struct isl_basic_map
*isl_basic_map_cow(struct isl_basic_map
*bmap
);
250 struct isl_set
*isl_set_cow(struct isl_set
*set
);
251 struct isl_map
*isl_map_cow(struct isl_map
*map
);
253 uint32_t isl_basic_map_get_hash(__isl_keep isl_basic_map
*bmap
);
255 struct isl_basic_map
*isl_basic_map_set_to_empty(struct isl_basic_map
*bmap
);
256 struct isl_basic_set
*isl_basic_set_set_to_empty(struct isl_basic_set
*bset
);
257 struct isl_basic_set
*isl_basic_set_order_divs(struct isl_basic_set
*bset
);
258 void isl_basic_map_swap_div(struct isl_basic_map
*bmap
, int a
, int b
);
259 struct isl_basic_map
*isl_basic_map_order_divs(struct isl_basic_map
*bmap
);
260 __isl_give isl_map
*isl_map_order_divs(__isl_take isl_map
*map
);
261 struct isl_basic_map
*isl_basic_map_align_divs(
262 struct isl_basic_map
*dst
, struct isl_basic_map
*src
);
263 struct isl_basic_set
*isl_basic_set_align_divs(
264 struct isl_basic_set
*dst
, struct isl_basic_set
*src
);
265 __isl_give isl_map
*isl_map_align_divs_to_basic_map_list(
266 __isl_take isl_map
*map
, __isl_keep isl_basic_map_list
*list
);
267 __isl_give isl_basic_map_list
*isl_basic_map_list_align_divs_to_basic_map(
268 __isl_take isl_basic_map_list
*list
, __isl_keep isl_basic_map
*bmap
);
269 __isl_give isl_basic_map
*isl_basic_map_sort_divs(
270 __isl_take isl_basic_map
*bmap
);
271 __isl_give isl_map
*isl_map_sort_divs(__isl_take isl_map
*map
);
272 struct isl_basic_map
*isl_basic_map_gauss(
273 struct isl_basic_map
*bmap
, int *progress
);
274 struct isl_basic_set
*isl_basic_set_gauss(
275 struct isl_basic_set
*bset
, int *progress
);
276 int isl_basic_map_constraint_cmp(__isl_keep isl_basic_map
*bmap
,
277 isl_int
*c1
, isl_int
*c2
);
278 __isl_give isl_basic_map
*isl_basic_map_sort_constraints(
279 __isl_take isl_basic_map
*bmap
);
280 __isl_give isl_basic_set
*isl_basic_set_sort_constraints(
281 __isl_take isl_basic_set
*bset
);
282 int isl_basic_map_plain_cmp(const __isl_keep isl_basic_map
*bmap1
,
283 const __isl_keep isl_basic_map
*bmap2
);
284 isl_bool
isl_basic_map_plain_is_equal(__isl_keep isl_basic_map
*bmap1
,
285 __isl_keep isl_basic_map
*bmap2
);
286 struct isl_basic_map
*isl_basic_map_normalize_constraints(
287 struct isl_basic_map
*bmap
);
288 struct isl_basic_set
*isl_basic_set_normalize_constraints(
289 struct isl_basic_set
*bset
);
290 struct isl_basic_map
*isl_basic_map_implicit_equalities(
291 struct isl_basic_map
*bmap
);
292 struct isl_basic_set
*isl_basic_map_underlying_set(struct isl_basic_map
*bmap
);
293 __isl_give isl_basic_set
*isl_basic_set_underlying_set(
294 __isl_take isl_basic_set
*bset
);
295 __isl_give isl_basic_set_list
*isl_basic_map_list_underlying_set(
296 __isl_take isl_basic_map_list
*list
);
297 struct isl_set
*isl_map_underlying_set(struct isl_map
*map
);
298 struct isl_basic_map
*isl_basic_map_overlying_set(struct isl_basic_set
*bset
,
299 struct isl_basic_map
*like
);
300 __isl_give isl_basic_map
*isl_basic_map_drop_constraint_involving_unknown_divs(
301 __isl_take isl_basic_map
*bmap
);
302 __isl_give isl_map
*isl_map_drop_constraint_involving_unknown_divs(
303 __isl_take isl_map
*map
);
304 __isl_give isl_basic_set
*isl_basic_set_drop_constraints_involving(
305 __isl_take isl_basic_set
*bset
, unsigned first
, unsigned n
);
306 __isl_give isl_basic_set
*isl_basic_set_drop(__isl_take isl_basic_set
*bset
,
307 enum isl_dim_type type
, unsigned first
, unsigned n
);
308 struct isl_basic_map
*isl_basic_map_drop(struct isl_basic_map
*bmap
,
309 enum isl_dim_type type
, unsigned first
, unsigned n
);
310 struct isl_set
*isl_set_drop(struct isl_set
*set
,
311 enum isl_dim_type type
, unsigned first
, unsigned n
);
312 struct isl_basic_set
*isl_basic_set_drop_dims(
313 struct isl_basic_set
*bset
, unsigned first
, unsigned n
);
314 struct isl_set
*isl_set_drop_dims(
315 struct isl_set
*set
, unsigned first
, unsigned n
);
316 struct isl_map
*isl_map_drop_inputs(
317 struct isl_map
*map
, unsigned first
, unsigned n
);
318 struct isl_map
*isl_map_drop(struct isl_map
*map
,
319 enum isl_dim_type type
, unsigned first
, unsigned n
);
320 __isl_give isl_basic_map
*isl_basic_map_drop_unrelated_constraints(
321 __isl_take isl_basic_map
*bmap
, __isl_take
int *group
);
323 __isl_give isl_basic_map
*isl_basic_map_remove_duplicate_constraints(
324 __isl_take isl_basic_map
*bmap
, int *progress
, int detect_divs
);
325 __isl_give isl_basic_map
*isl_basic_map_detect_inequality_pairs(
326 __isl_take isl_basic_map
*bmap
, int *progress
);
328 struct isl_map
*isl_map_remove_empty_parts(struct isl_map
*map
);
329 struct isl_set
*isl_set_remove_empty_parts(struct isl_set
*set
);
330 __isl_give isl_map
*isl_map_remove_obvious_duplicates(__isl_take isl_map
*map
);
332 struct isl_set
*isl_set_normalize(struct isl_set
*set
);
334 struct isl_set
*isl_set_drop_vars(
335 struct isl_set
*set
, unsigned first
, unsigned n
);
337 struct isl_basic_map
*isl_basic_map_eliminate_vars(
338 struct isl_basic_map
*bmap
, unsigned pos
, unsigned n
);
339 struct isl_basic_set
*isl_basic_set_eliminate_vars(
340 struct isl_basic_set
*bset
, unsigned pos
, unsigned n
);
342 __isl_give isl_map
*isl_map_eliminate(__isl_take isl_map
*map
,
343 enum isl_dim_type type
, unsigned first
, unsigned n
);
344 __isl_give isl_set
*isl_set_eliminate(__isl_take isl_set
*set
,
345 enum isl_dim_type type
, unsigned first
, unsigned n
);
347 int isl_basic_set_constraint_is_redundant(struct isl_basic_set
**bset
,
348 isl_int
*c
, isl_int
*opt_n
, isl_int
*opt_d
);
350 int isl_basic_map_add_div_constraint(__isl_keep isl_basic_map
*bmap
,
351 unsigned div
, int sign
);
352 int isl_basic_map_add_div_constraints(struct isl_basic_map
*bmap
, unsigned div
);
353 __isl_give isl_basic_map
*isl_basic_map_add_known_div_constraints(
354 __isl_take isl_basic_map
*bmap
);
355 struct isl_basic_map
*isl_basic_map_drop_redundant_divs(
356 struct isl_basic_map
*bmap
);
357 struct isl_basic_set
*isl_basic_set_drop_redundant_divs(
358 struct isl_basic_set
*bset
);
360 struct isl_basic_set
*isl_basic_set_recession_cone(struct isl_basic_set
*bset
);
361 struct isl_basic_set
*isl_basic_set_lineality_space(struct isl_basic_set
*bset
);
363 struct isl_basic_set
*isl_basic_set_set_rational(struct isl_basic_set
*bset
);
364 __isl_give isl_set
*isl_set_set_rational(__isl_take isl_set
*set
);
365 __isl_give isl_basic_map
*isl_basic_map_set_rational(
366 __isl_take isl_basic_map
*bmap
);
367 __isl_give isl_map
*isl_map_set_rational(__isl_take isl_map
*map
);
369 int isl_map_has_rational(__isl_keep isl_map
*map
);
370 int isl_set_has_rational(__isl_keep isl_set
*set
);
374 struct isl_basic_set
*isl_basic_set_preimage(struct isl_basic_set
*bset
,
375 struct isl_mat
*mat
);
376 struct isl_set
*isl_set_preimage(struct isl_set
*set
, struct isl_mat
*mat
);
378 __isl_give isl_basic_map
*isl_basic_map_transform_dims(
379 __isl_take isl_basic_map
*bmap
, enum isl_dim_type type
, unsigned first
,
380 __isl_take isl_mat
*trans
);
381 __isl_give isl_basic_set
*isl_basic_set_transform_dims(
382 __isl_take isl_basic_set
*bset
, enum isl_dim_type type
, unsigned first
,
383 __isl_take isl_mat
*trans
);
385 isl_int
*isl_set_wrap_facet(__isl_keep isl_set
*set
,
386 isl_int
*facet
, isl_int
*ridge
);
388 isl_bool
isl_basic_map_contains_point(__isl_keep isl_basic_map
*bmap
,
389 __isl_keep isl_point
*point
);
390 isl_bool
isl_set_contains_point(__isl_keep isl_set
*set
,
391 __isl_keep isl_point
*point
);
393 int isl_basic_set_vars_get_sign(__isl_keep isl_basic_set
*bset
,
394 unsigned first
, unsigned n
, int *signs
);
395 int isl_set_foreach_orthant(__isl_keep isl_set
*set
,
396 int (*fn
)(__isl_take isl_set
*orthant
, int *signs
, void *user
),
399 int isl_basic_map_add_div_constraints_var(__isl_keep isl_basic_map
*bmap
,
400 unsigned pos
, isl_int
*div
);
401 int isl_basic_set_add_div_constraints_var(__isl_keep isl_basic_set
*bset
,
402 unsigned pos
, isl_int
*div
);
403 int isl_basic_map_is_div_constraint(__isl_keep isl_basic_map
*bmap
,
404 isl_int
*constraint
, unsigned div
);
405 int isl_basic_set_is_div_constraint(__isl_keep isl_basic_set
*bset
,
406 isl_int
*constraint
, unsigned div
);
408 __isl_give isl_basic_set
*isl_basic_set_from_local_space(
409 __isl_take isl_local_space
*ls
);
410 __isl_give isl_basic_map
*isl_basic_map_from_local_space(
411 __isl_take isl_local_space
*ls
);
412 __isl_give isl_basic_set
*isl_basic_set_expand_divs(
413 __isl_take isl_basic_set
*bset
, __isl_take isl_mat
*div
, int *exp
);
415 isl_bool
isl_basic_map_div_is_known(__isl_keep isl_basic_map
*bmap
, int div
);
416 isl_bool
isl_basic_map_divs_known(__isl_keep isl_basic_map
*bmap
);
417 isl_bool
isl_map_divs_known(__isl_keep isl_map
*map
);
418 __isl_give isl_mat
*isl_basic_set_get_divs(__isl_keep isl_basic_set
*bset
);
419 __isl_give isl_mat
*isl_basic_map_get_divs(__isl_keep isl_basic_map
*bmap
);
421 __isl_give isl_map
*isl_map_inline_foreach_basic_map(__isl_take isl_map
*map
,
422 __isl_give isl_basic_map
*(*fn
)(__isl_take isl_basic_map
*bmap
));
424 __isl_give isl_map
*isl_map_align_params_map_map_and(
425 __isl_take isl_map
*map1
, __isl_take isl_map
*map2
,
426 __isl_give isl_map
*(*fn
)(__isl_take isl_map
*map1
,
427 __isl_take isl_map
*map2
));
428 isl_bool
isl_map_align_params_map_map_and_test(__isl_keep isl_map
*map1
,
429 __isl_keep isl_map
*map2
,
430 isl_bool (*fn
)(__isl_keep isl_map
*map1
, __isl_keep isl_map
*map2
));
432 int isl_basic_map_foreach_lexopt(__isl_keep isl_basic_map
*bmap
, int max
,
433 int (*fn
)(__isl_take isl_basic_set
*dom
, __isl_take isl_aff_list
*list
,
436 int isl_basic_set_foreach_lexopt(__isl_keep isl_basic_set
*bset
, int max
,
437 int (*fn
)(__isl_take isl_basic_set
*dom
, __isl_take isl_aff_list
*list
,
441 __isl_give isl_set
*isl_set_substitute(__isl_take isl_set
*set
,
442 enum isl_dim_type type
, unsigned pos
, __isl_keep isl_aff
*subs
);
444 __isl_give isl_set
*isl_set_gist_params_basic_set(__isl_take isl_set
*set
,
445 __isl_take isl_basic_set
*context
);
447 int isl_map_compatible_range(__isl_keep isl_map
*map
, __isl_keep isl_set
*set
);
449 isl_bool
isl_basic_map_plain_is_non_empty(__isl_keep isl_basic_map
*bmap
);
450 isl_bool
isl_basic_map_plain_is_single_valued(__isl_keep isl_basic_map
*bmap
);
452 int isl_map_is_set(__isl_keep isl_map
*map
);
454 int isl_basic_set_plain_dim_is_fixed(__isl_keep isl_basic_set
*bset
,
455 unsigned dim
, isl_int
*val
);
457 __isl_give isl_map
*isl_map_plain_gist_basic_map(__isl_take isl_map
*map
,
458 __isl_take isl_basic_map
*context
);
460 __isl_give isl_basic_map
*isl_map_plain_unshifted_simple_hull(
461 __isl_take isl_map
*map
);
462 __isl_give isl_basic_set
*isl_basic_set_plain_affine_hull(
463 __isl_take isl_basic_set
*bset
);
464 __isl_give isl_basic_map
*isl_basic_map_plain_affine_hull(
465 __isl_take isl_basic_map
*bmap
);
467 int isl_basic_set_dim_residue_class(struct isl_basic_set
*bset
,
468 int pos
, isl_int
*modulo
, isl_int
*residue
);
469 int isl_set_dim_residue_class(struct isl_set
*set
,
470 int pos
, isl_int
*modulo
, isl_int
*residue
);
472 __isl_give isl_basic_set
*isl_basic_set_fix(__isl_take isl_basic_set
*bset
,
473 enum isl_dim_type type
, unsigned pos
, isl_int value
);
474 __isl_give isl_basic_map
*isl_basic_map_fix(__isl_take isl_basic_map
*bmap
,
475 enum isl_dim_type type
, unsigned pos
, isl_int value
);
476 __isl_give isl_set
*isl_set_fix(__isl_take isl_set
*set
,
477 enum isl_dim_type type
, unsigned pos
, isl_int value
);
478 int isl_map_plain_is_fixed(__isl_keep isl_map
*map
,
479 enum isl_dim_type type
, unsigned pos
, isl_int
*val
);
481 int isl_basic_map_output_defining_equality(__isl_keep isl_basic_map
*bmap
,
482 int pos
, int *div
, int *ineq
);
484 __isl_give isl_basic_map
*isl_basic_map_reduce_coefficients(
485 __isl_take isl_basic_map
*bmap
);
487 __isl_give isl_basic_map
*isl_basic_map_shift_div(
488 __isl_take isl_basic_map
*bmap
, int div
, int pos
, isl_int shift
);
490 __isl_give isl_basic_map_list
*isl_map_get_basic_map_list(
491 __isl_keep isl_map
*map
);
493 __isl_give isl_map
*isl_map_fixed_power(__isl_take isl_map
*map
, isl_int exp
);
495 int isl_basic_set_count_upto(__isl_keep isl_basic_set
*bset
,
496 isl_int max
, isl_int
*count
);
497 int isl_set_count_upto(__isl_keep isl_set
*set
, isl_int max
, isl_int
*count
);