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
13 #include <isl/map_type.h>
14 #include <isl/aff_type.h>
17 #include <isl/point.h>
18 #include <isl/local_space.h>
20 #if defined(__cplusplus)
24 unsigned isl_basic_set_n_dim(__isl_keep isl_basic_set *bset);
25 unsigned isl_basic_set_n_param(__isl_keep isl_basic_set *bset);
26 unsigned isl_basic_set_total_dim(const struct isl_basic_set *bset);
27 unsigned isl_basic_set_dim(__isl_keep isl_basic_set *bset,
28 enum isl_dim_type type);
30 unsigned isl_set_n_dim(__isl_keep isl_set *set);
31 unsigned isl_set_n_param(__isl_keep isl_set *set);
32 unsigned isl_set_dim(__isl_keep isl_set *set, enum isl_dim_type type);
34 isl_ctx *isl_basic_set_get_ctx(__isl_keep isl_basic_set *bset);
35 isl_ctx *isl_set_get_ctx(__isl_keep isl_set *set);
36 __isl_give isl_space *isl_basic_set_get_space(__isl_keep isl_basic_set *bset);
37 __isl_give isl_space *isl_set_get_space(__isl_keep isl_set *set);
38 __isl_give isl_set *isl_set_reset_space(__isl_take isl_set *set,
39 __isl_take isl_space *dim);
41 __isl_give isl_aff *isl_basic_set_get_div(__isl_keep isl_basic_set *bset,
44 __isl_give isl_local_space *isl_basic_set_get_local_space(
45 __isl_keep isl_basic_set *bset);
47 const char *isl_basic_set_get_tuple_name(__isl_keep isl_basic_set *bset);
48 int isl_set_has_tuple_name(__isl_keep isl_set *set);
49 const char *isl_set_get_tuple_name(__isl_keep isl_set *set);
50 __isl_give isl_basic_set *isl_basic_set_set_tuple_name(
51 __isl_take isl_basic_set *set, const char *s);
52 __isl_give isl_set *isl_set_set_tuple_name(__isl_take isl_set *set,
54 const char *isl_basic_set_get_dim_name(__isl_keep isl_basic_set *bset,
55 enum isl_dim_type type, unsigned pos);
56 __isl_give isl_basic_set *isl_basic_set_set_dim_name(
57 __isl_take isl_basic_set *bset,
58 enum isl_dim_type type, unsigned pos, const char *s);
59 int isl_set_has_dim_name(__isl_keep isl_set *set,
60 enum isl_dim_type type, unsigned pos);
61 const char *isl_set_get_dim_name(__isl_keep isl_set *set,
62 enum isl_dim_type type, unsigned pos);
63 __isl_give isl_set *isl_set_set_dim_name(__isl_take isl_set *set,
64 enum isl_dim_type type, unsigned pos, const char *s);
66 __isl_give isl_id *isl_basic_set_get_dim_id(__isl_keep isl_basic_set *bset,
67 enum isl_dim_type type, unsigned pos);
68 __isl_give isl_set *isl_set_set_dim_id(__isl_take isl_set *set,
69 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
70 int isl_set_has_dim_id(__isl_keep isl_set *set,
71 enum isl_dim_type type, unsigned pos);
72 __isl_give isl_id *isl_set_get_dim_id(__isl_keep isl_set *set,
73 enum isl_dim_type type, unsigned pos);
74 __isl_give isl_set *isl_set_set_tuple_id(__isl_take isl_set *set,
75 __isl_take isl_id *id);
76 __isl_give isl_set *isl_set_reset_tuple_id(__isl_take isl_set *set);
77 int isl_set_has_tuple_id(__isl_keep isl_set *set);
78 __isl_give isl_id *isl_set_get_tuple_id(__isl_keep isl_set *set);
80 int isl_set_find_dim_by_id(__isl_keep isl_set *set, enum isl_dim_type type,
81 __isl_keep isl_id *id);
82 int isl_set_find_dim_by_name(__isl_keep isl_set *set, enum isl_dim_type type,
85 int isl_basic_set_is_rational(__isl_keep isl_basic_set *bset);
87 struct isl_basic_set *isl_basic_set_alloc(struct isl_ctx *ctx,
88 unsigned nparam, unsigned dim, unsigned extra,
89 unsigned n_eq, unsigned n_ineq);
90 struct isl_basic_set *isl_basic_set_extend(struct isl_basic_set *base,
91 unsigned nparam, unsigned dim, unsigned extra,
92 unsigned n_eq, unsigned n_ineq);
93 struct isl_basic_set *isl_basic_set_extend_constraints(
94 struct isl_basic_set *base, unsigned n_eq, unsigned n_ineq);
95 struct isl_basic_set *isl_basic_set_finalize(struct isl_basic_set *bset);
96 void isl_basic_set_free(__isl_take isl_basic_set *bset);
97 __isl_give isl_basic_set *isl_basic_set_copy(__isl_keep isl_basic_set *bset);
98 struct isl_basic_set *isl_basic_set_dup(struct isl_basic_set *bset);
99 __isl_give isl_basic_set *isl_basic_set_empty(__isl_take isl_space *dim);
100 struct isl_basic_set *isl_basic_set_empty_like(struct isl_basic_set *bset);
101 __isl_give isl_basic_set *isl_basic_set_universe(__isl_take isl_space *dim);
102 __isl_give isl_basic_set *isl_basic_set_nat_universe(__isl_take isl_space *dim);
103 struct isl_basic_set *isl_basic_set_universe_like(struct isl_basic_set *bset);
104 __isl_give isl_basic_set *isl_basic_set_universe_like_set(
105 __isl_keep isl_set *model);
106 struct isl_basic_set *isl_basic_set_interval(struct isl_ctx *ctx,
107 isl_int min, isl_int max);
108 __isl_give isl_basic_set *isl_basic_set_positive_orthant(
109 __isl_take isl_space *space);
110 void isl_basic_set_print_internal(__isl_keep isl_basic_set *bset,
111 FILE *out, int indent);
113 __isl_give isl_basic_set *isl_basic_set_intersect(
114 __isl_take isl_basic_set *bset1,
115 __isl_take isl_basic_set *bset2);
117 __isl_give isl_basic_set *isl_basic_set_intersect_params(
118 __isl_take isl_basic_set *bset1, __isl_take isl_basic_set *bset2);
120 __isl_give isl_basic_set *isl_basic_set_apply(
121 __isl_take isl_basic_set *bset,
122 __isl_take isl_basic_map *bmap);
124 __isl_give isl_basic_set *isl_basic_set_affine_hull(
125 __isl_take isl_basic_set *bset);
126 __isl_give isl_basic_set *isl_basic_set_remove_dims(
127 __isl_take isl_basic_set *bset,
128 enum isl_dim_type type, unsigned first, unsigned n);
130 __isl_give isl_basic_set *isl_basic_set_sample(__isl_take isl_basic_set *bset);
131 struct isl_basic_set *isl_basic_set_simplify(struct isl_basic_set *bset);
133 __isl_give isl_basic_set *isl_basic_set_detect_equalities(
134 __isl_take isl_basic_set *bset);
135 __isl_give isl_basic_set *isl_basic_set_remove_redundancies(
136 __isl_take isl_basic_set *bset);
137 __isl_give isl_set *isl_set_remove_redundancies(__isl_take isl_set *set);
138 __isl_give isl_basic_set *isl_basic_set_list_product(
139 __isl_take struct isl_basic_set_list *list);
141 __isl_give isl_basic_set *isl_basic_set_read_from_file(isl_ctx *ctx,
144 __isl_give isl_basic_set *isl_basic_set_read_from_str(isl_ctx *ctx,
146 __isl_give isl_set *isl_set_read_from_file(isl_ctx *ctx, FILE *input);
148 __isl_give isl_set *isl_set_read_from_str(isl_ctx *ctx, const char *str);
149 void isl_basic_set_dump(__isl_keep isl_basic_set *bset);
150 void isl_set_dump(__isl_keep isl_set *set);
151 __isl_give isl_printer *isl_printer_print_basic_set(
152 __isl_take isl_printer *printer, __isl_keep isl_basic_set *bset);
153 __isl_give isl_printer *isl_printer_print_set(__isl_take isl_printer *printer,
154 __isl_keep isl_set *map);
155 void isl_basic_set_print(__isl_keep isl_basic_set *bset, FILE *out, int indent,
156 const char *prefix, const char *suffix, unsigned output_format);
157 void isl_set_print(__isl_keep struct isl_set *set, FILE *out, int indent,
158 unsigned output_format);
159 __isl_give isl_basic_set *isl_basic_set_fix(__isl_take isl_basic_set *bset,
160 enum isl_dim_type type, unsigned pos, isl_int value);
161 __isl_give isl_basic_set *isl_basic_set_fix_si(__isl_take isl_basic_set *bset,
162 enum isl_dim_type type, unsigned pos, int value);
163 __isl_give isl_set *isl_set_fix_si(__isl_take isl_set *set,
164 enum isl_dim_type type, unsigned pos, int value);
165 __isl_give isl_set *isl_set_lower_bound_si(__isl_take isl_set *set,
166 enum isl_dim_type type, unsigned pos, int value);
167 __isl_give isl_set *isl_set_lower_bound(__isl_take isl_set *set,
168 enum isl_dim_type type, unsigned pos, isl_int value);
169 __isl_give isl_set *isl_set_upper_bound_si(__isl_take isl_set *set,
170 enum isl_dim_type type, unsigned pos, int value);
171 __isl_give isl_set *isl_set_upper_bound(__isl_take isl_set *set,
172 enum isl_dim_type type, unsigned pos, isl_int value);
174 __isl_give isl_set *isl_set_equate(__isl_take isl_set *set,
175 enum isl_dim_type type1, int pos1, enum isl_dim_type type2, int pos2);
177 struct isl_basic_set *isl_basic_set_from_underlying_set(
178 struct isl_basic_set *bset, struct isl_basic_set *like);
179 struct isl_set *isl_set_from_underlying_set(
180 struct isl_set *set, struct isl_basic_set *like);
181 struct isl_set *isl_set_to_underlying_set(struct isl_set *set);
184 int isl_basic_set_is_equal(
185 struct isl_basic_set *bset1, struct isl_basic_set *bset2);
187 __isl_give isl_set *isl_basic_set_partial_lexmin(
188 __isl_take isl_basic_set *bset, __isl_take isl_basic_set *dom,
189 __isl_give isl_set **empty);
190 __isl_give isl_set *isl_basic_set_partial_lexmax(
191 __isl_take isl_basic_set *bset, __isl_take isl_basic_set *dom,
192 __isl_give isl_set **empty);
193 __isl_give isl_set *isl_set_partial_lexmin(
194 __isl_take isl_set *set, __isl_take isl_set *dom,
195 __isl_give isl_set **empty);
196 __isl_give isl_set *isl_set_partial_lexmax(
197 __isl_take isl_set *set, __isl_take isl_set *dom,
198 __isl_give isl_set **empty);
200 __isl_give isl_set *isl_basic_set_lexmin(__isl_take isl_basic_set *bset);
202 __isl_give isl_set *isl_basic_set_lexmax(__isl_take isl_basic_set *bset);
204 __isl_give isl_set *isl_set_lexmin(__isl_take isl_set *set);
206 __isl_give isl_set *isl_set_lexmax(__isl_take isl_set *set);
207 __isl_give isl_pw_multi_aff *isl_basic_set_partial_lexmin_pw_multi_aff(
208 __isl_take isl_basic_set *bset, __isl_take isl_basic_set *dom,
209 __isl_give isl_set **empty);
210 __isl_give isl_pw_multi_aff *isl_basic_set_partial_lexmax_pw_multi_aff(
211 __isl_take isl_basic_set *bset, __isl_take isl_basic_set *dom,
212 __isl_give isl_set **empty);
215 __isl_give isl_set *isl_basic_set_union(
216 __isl_take isl_basic_set *bset1,
217 __isl_take isl_basic_set *bset2);
219 int isl_basic_set_compare_at(struct isl_basic_set *bset1,
220 struct isl_basic_set *bset2, int pos);
221 int isl_set_follows_at(__isl_keep isl_set *set1,
222 __isl_keep isl_set *set2, int pos);
224 __isl_give isl_basic_set *isl_basic_set_params(__isl_take isl_basic_set *bset);
225 __isl_give isl_set *isl_set_params(__isl_take isl_set *set);
226 __isl_give isl_set *isl_set_from_params(__isl_take isl_set *set);
228 int isl_basic_set_dims_get_sign(__isl_keep isl_basic_set *bset,
229 enum isl_dim_type type, unsigned pos, unsigned n, int *signs);
231 int isl_basic_set_is_universe(__isl_keep isl_basic_set *bset);
232 int isl_basic_set_plain_is_empty(__isl_keep isl_basic_set *bset);
233 int isl_basic_set_fast_is_empty(__isl_keep isl_basic_set *bset);
235 int isl_basic_set_is_empty(__isl_keep isl_basic_set *bset);
236 int isl_basic_set_is_bounded(__isl_keep isl_basic_set *bset);
238 int isl_basic_set_is_subset(__isl_keep isl_basic_set *bset1,
239 __isl_keep isl_basic_set *bset2);
241 struct isl_set *isl_set_alloc(struct isl_ctx *ctx,
242 unsigned nparam, unsigned dim, int n, unsigned flags);
243 struct isl_set *isl_set_extend(struct isl_set *base,
244 unsigned nparam, unsigned dim);
245 __isl_give isl_set *isl_set_empty(__isl_take isl_space *dim);
246 struct isl_set *isl_set_empty_like(struct isl_set *set);
247 __isl_give isl_set *isl_set_universe(__isl_take isl_space *dim);
248 __isl_give isl_set *isl_set_nat_universe(__isl_take isl_space *dim);
249 __isl_give isl_set *isl_set_universe_like(__isl_keep isl_set *model);
250 __isl_give isl_set *isl_set_add_basic_set(__isl_take isl_set *set,
251 __isl_take isl_basic_set *bset);
252 struct isl_set *isl_set_finalize(struct isl_set *set);
253 __isl_give isl_set *isl_set_copy(__isl_keep isl_set *set);
254 void *isl_set_free(__isl_take isl_set *set);
255 struct isl_set *isl_set_dup(struct isl_set *set);
257 __isl_give isl_set *isl_set_from_basic_set(__isl_take isl_basic_set *bset);
259 __isl_give isl_basic_set *isl_set_sample(__isl_take isl_set *set);
260 __isl_give isl_point *isl_basic_set_sample_point(__isl_take isl_basic_set *bset);
261 __isl_give isl_point *isl_set_sample_point(__isl_take isl_set *set);
263 __isl_give isl_set *isl_set_detect_equalities(__isl_take isl_set *set);
265 __isl_give isl_basic_set *isl_set_affine_hull(__isl_take isl_set *set);
266 __isl_give isl_basic_set *isl_set_convex_hull(__isl_take isl_set *set);
268 __isl_give isl_basic_set *isl_set_polyhedral_hull(__isl_take isl_set *set);
269 __isl_give isl_basic_set *isl_set_simple_hull(__isl_take isl_set *set);
270 struct isl_basic_set *isl_set_bounded_simple_hull(struct isl_set *set);
271 __isl_give isl_set *isl_set_recession_cone(__isl_take isl_set *set);
273 struct isl_set *isl_set_union_disjoint(
274 struct isl_set *set1, struct isl_set *set2);
276 __isl_give isl_set *isl_set_union(
277 __isl_take isl_set *set1,
278 __isl_take isl_set *set2);
279 __isl_give isl_set *isl_set_product(__isl_take isl_set *set1,
280 __isl_take isl_set *set2);
281 __isl_give isl_basic_set *isl_basic_set_flat_product(
282 __isl_take isl_basic_set *bset1, __isl_take isl_basic_set *bset2);
283 __isl_give isl_set *isl_set_flat_product(__isl_take isl_set *set1,
284 __isl_take isl_set *set2);
286 __isl_give isl_set *isl_set_intersect(
287 __isl_take isl_set *set1,
288 __isl_take isl_set *set2);
290 __isl_give isl_set *isl_set_intersect_params(__isl_take isl_set *set,
291 __isl_take isl_set *params);
293 __isl_give isl_set *isl_set_subtract(
294 __isl_take isl_set *set1,
295 __isl_take isl_set *set2);
297 __isl_give isl_set *isl_set_complement(__isl_take isl_set *set);
299 __isl_give isl_set *isl_set_apply(
300 __isl_take isl_set *set,
301 __isl_take isl_map *map);
302 __isl_give isl_set *isl_set_fix(__isl_take isl_set *set,
303 enum isl_dim_type type, unsigned pos, isl_int value);
304 struct isl_set *isl_set_fix_dim_si(struct isl_set *set,
305 unsigned dim, int value);
306 struct isl_set *isl_set_lower_bound_dim(struct isl_set *set,
307 unsigned dim, isl_int value);
308 __isl_give isl_basic_set *isl_basic_set_insert_dims(
309 __isl_take isl_basic_set *bset,
310 enum isl_dim_type type, unsigned pos, unsigned n);
311 __isl_give isl_set *isl_set_insert_dims(__isl_take isl_set *set,
312 enum isl_dim_type type, unsigned pos, unsigned n);
313 __isl_give isl_basic_set *isl_basic_set_add(__isl_take isl_basic_set *bset,
314 enum isl_dim_type type, unsigned n);
315 __isl_give isl_set *isl_set_add_dims(__isl_take isl_set *set,
316 enum isl_dim_type type, unsigned n);
317 __isl_give isl_basic_set *isl_basic_set_move_dims(__isl_take isl_basic_set *bset,
318 enum isl_dim_type dst_type, unsigned dst_pos,
319 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
320 __isl_give isl_set *isl_set_move_dims(__isl_take isl_set *set,
321 enum isl_dim_type dst_type, unsigned dst_pos,
322 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
323 __isl_give isl_basic_set *isl_basic_set_project_out(
324 __isl_take isl_basic_set *bset,
325 enum isl_dim_type type, unsigned first, unsigned n);
326 __isl_give isl_set *isl_set_project_out(__isl_take isl_set *set,
327 enum isl_dim_type type, unsigned first, unsigned n);
328 __isl_give isl_basic_set *isl_basic_set_remove_divs(
329 __isl_take isl_basic_set *bset);
330 __isl_give isl_basic_set *isl_basic_set_eliminate(
331 __isl_take isl_basic_set *bset,
332 enum isl_dim_type type, unsigned first, unsigned n);
333 __isl_give isl_set *isl_set_eliminate(__isl_take isl_set *set,
334 enum isl_dim_type type, unsigned first, unsigned n);
335 struct isl_set *isl_set_eliminate_dims(struct isl_set *set,
336 unsigned first, unsigned n);
337 __isl_give isl_set *isl_set_remove_dims(__isl_take isl_set *bset,
338 enum isl_dim_type type, unsigned first, unsigned n);
339 __isl_give isl_basic_set *isl_basic_set_remove_divs_involving_dims(
340 __isl_take isl_basic_set *bset,
341 enum isl_dim_type type, unsigned first, unsigned n);
342 __isl_give isl_set *isl_set_remove_divs_involving_dims(__isl_take isl_set *set,
343 enum isl_dim_type type, unsigned first, unsigned n);
344 __isl_give isl_set *isl_set_remove_unknown_divs(__isl_take isl_set *set);
345 __isl_give isl_set *isl_set_remove_divs(__isl_take isl_set *set);
346 __isl_give isl_set *isl_set_split_dims(__isl_take isl_set *set,
347 enum isl_dim_type type, unsigned first, unsigned n);
349 int isl_basic_set_involves_dims(__isl_keep isl_basic_set *bset,
350 enum isl_dim_type type, unsigned first, unsigned n);
351 int isl_set_involves_dims(__isl_keep isl_set *set,
352 enum isl_dim_type type, unsigned first, unsigned n);
354 void isl_set_print_internal(__isl_keep isl_set *set, FILE *out, int indent);
355 int isl_set_plain_is_empty(__isl_keep isl_set *set);
356 int isl_set_fast_is_empty(__isl_keep isl_set *set);
357 int isl_set_plain_is_universe(__isl_keep isl_set *set);
358 int isl_set_fast_is_universe(__isl_keep isl_set *set);
359 int isl_set_is_params(__isl_keep isl_set *set);
361 int isl_set_is_empty(__isl_keep isl_set *set);
362 int isl_set_is_bounded(__isl_keep isl_set *set);
364 int isl_set_is_subset(__isl_keep isl_set *set1, __isl_keep isl_set *set2);
366 int isl_set_is_strict_subset(__isl_keep isl_set *set1, __isl_keep isl_set *set2);
368 int isl_set_is_equal(__isl_keep isl_set *set1, __isl_keep isl_set *set2);
369 int isl_set_is_singleton(__isl_keep isl_set *set);
370 int isl_set_is_box(__isl_keep isl_set *set);
371 int isl_set_has_equal_space(__isl_keep isl_set *set1, __isl_keep isl_set *set2);
373 __isl_give isl_set *isl_set_sum(__isl_take isl_set *set1,
374 __isl_take isl_set *set2);
375 __isl_give isl_basic_set *isl_basic_set_neg(__isl_take isl_basic_set *bset);
376 __isl_give isl_set *isl_set_neg(__isl_take isl_set *set);
378 __isl_give isl_set *isl_set_make_disjoint(__isl_take isl_set *set);
379 struct isl_set *isl_basic_set_compute_divs(struct isl_basic_set *bset);
380 __isl_give isl_set *isl_set_compute_divs(__isl_take isl_set *set);
381 __isl_give isl_set *isl_set_align_divs(__isl_take isl_set *set);
383 struct isl_basic_set *isl_set_copy_basic_set(struct isl_set *set);
384 struct isl_set *isl_set_drop_basic_set(struct isl_set *set,
385 struct isl_basic_set *bset);
387 int isl_basic_set_plain_dim_is_fixed(__isl_keep isl_basic_set *bset,
388 unsigned dim, isl_int *val);
390 int isl_set_plain_is_fixed(__isl_keep isl_set *set,
391 enum isl_dim_type type, unsigned pos, isl_int *val);
392 int isl_set_plain_dim_is_fixed(__isl_keep isl_set *set,
393 unsigned dim, isl_int *val);
394 int isl_set_fast_dim_is_fixed(__isl_keep isl_set *set,
395 unsigned dim, isl_int *val);
396 int isl_set_plain_dim_has_fixed_lower_bound(__isl_keep isl_set *set,
397 unsigned dim, isl_int *val);
398 int isl_set_dim_is_bounded(__isl_keep isl_set *set,
399 enum isl_dim_type type, unsigned pos);
400 int isl_set_dim_has_any_lower_bound(__isl_keep isl_set *set,
401 enum isl_dim_type type, unsigned pos);
402 int isl_set_dim_has_any_upper_bound(__isl_keep isl_set *set,
403 enum isl_dim_type type, unsigned pos);
406 __isl_give isl_basic_set *isl_basic_set_gist(__isl_take isl_basic_set *bset,
407 __isl_take isl_basic_set *context);
408 __isl_give isl_set *isl_set_gist_basic_set(__isl_take isl_set *set,
409 __isl_take isl_basic_set *context);
411 __isl_give isl_set *isl_set_gist(__isl_take isl_set *set,
412 __isl_take isl_set *context);
413 __isl_give isl_set *isl_set_gist_params(__isl_take isl_set *set,
414 __isl_take isl_set *context);
415 int isl_basic_set_dim_residue_class(struct isl_basic_set *bset,
416 int pos, isl_int *modulo, isl_int *residue);
417 int isl_set_dim_residue_class(struct isl_set *set,
418 int pos, isl_int *modulo, isl_int *residue);
421 __isl_give isl_set *isl_set_coalesce(__isl_take isl_set *set);
423 int isl_set_plain_is_equal(__isl_keep isl_set *set1, __isl_keep isl_set *set2);
424 int isl_set_fast_is_equal(__isl_keep isl_set *set1, __isl_keep isl_set *set2);
425 int isl_set_plain_is_disjoint(__isl_keep isl_set *set1,
426 __isl_keep isl_set *set2);
427 int isl_set_fast_is_disjoint(__isl_keep isl_set *set1,
428 __isl_keep isl_set *set2);
430 uint32_t isl_set_get_hash(struct isl_set *set);
432 int isl_set_dim_is_unique(struct isl_set *set, unsigned dim);
434 int isl_set_n_basic_set(__isl_keep isl_set *set);
436 int isl_set_foreach_basic_set(__isl_keep isl_set *set,
437 int (*fn)(__isl_take isl_basic_set *bset, void *user), void *user);
439 int isl_set_foreach_point(__isl_keep isl_set *set,
440 int (*fn)(__isl_take isl_point *pnt, void *user), void *user);
441 int isl_set_count(__isl_keep isl_set *set, isl_int *count);
442 int isl_basic_set_count_upto(__isl_keep isl_basic_set *bset,
443 isl_int max, isl_int *count);
444 int isl_set_count_upto(__isl_keep isl_set *set, isl_int max, isl_int *count);
446 __isl_give isl_basic_set *isl_basic_set_from_point(__isl_take isl_point *pnt);
447 __isl_give isl_set *isl_set_from_point(__isl_take isl_point *pnt);
448 __isl_give isl_basic_set *isl_basic_set_box_from_points(
449 __isl_take isl_point *pnt1, __isl_take isl_point *pnt2);
450 __isl_give isl_set *isl_set_box_from_points(__isl_take isl_point *pnt1,
451 __isl_take isl_point *pnt2);
453 __isl_give isl_basic_set *isl_basic_set_lift(__isl_take isl_basic_set *bset);
454 __isl_give isl_set *isl_set_lift(__isl_take isl_set *set);
456 __isl_give isl_map *isl_set_lex_le_set(__isl_take isl_set *set1,
457 __isl_take isl_set *set2);
458 __isl_give isl_map *isl_set_lex_lt_set(__isl_take isl_set *set1,
459 __isl_take isl_set *set2);
460 __isl_give isl_map *isl_set_lex_ge_set(__isl_take isl_set *set1,
461 __isl_take isl_set *set2);
462 __isl_give isl_map *isl_set_lex_gt_set(__isl_take isl_set *set1,
463 __isl_take isl_set *set2);
465 int isl_set_size(__isl_keep isl_set *set);
467 __isl_give isl_basic_set *isl_basic_set_align_params(
468 __isl_take isl_basic_set *bset, __isl_take isl_space *model);
469 __isl_give isl_set *isl_set_align_params(__isl_take isl_set *set,
470 __isl_take isl_space *model);
472 __isl_give isl_mat *isl_basic_set_equalities_matrix(
473 __isl_keep isl_basic_set *bset, enum isl_dim_type c1,
474 enum isl_dim_type c2, enum isl_dim_type c3, enum isl_dim_type c4);
475 __isl_give isl_mat *isl_basic_set_inequalities_matrix(
476 __isl_keep isl_basic_set *bset, enum isl_dim_type c1,
477 enum isl_dim_type c2, enum isl_dim_type c3, enum isl_dim_type c4);
478 __isl_give isl_basic_set *isl_basic_set_from_constraint_matrices(
479 __isl_take isl_space *dim,
480 __isl_take isl_mat *eq, __isl_take isl_mat *ineq, enum isl_dim_type c1,
481 enum isl_dim_type c2, enum isl_dim_type c3, enum isl_dim_type c4);
483 __isl_give isl_mat *isl_basic_set_reduced_basis(__isl_keep isl_basic_set *bset);
485 __isl_give isl_basic_set *isl_basic_set_coefficients(
486 __isl_take isl_basic_set *bset);
487 __isl_give isl_basic_set *isl_set_coefficients(__isl_take isl_set *set);
488 __isl_give isl_basic_set *isl_basic_set_solutions(
489 __isl_take isl_basic_set *bset);
490 __isl_give isl_basic_set *isl_set_solutions(__isl_take isl_set *set);
492 __isl_give isl_pw_aff *isl_set_dim_max(__isl_take isl_set *set, int pos);
493 __isl_give isl_pw_aff *isl_set_dim_min(__isl_take isl_set *set, int pos);
495 __isl_give char *isl_set_to_str(__isl_keep isl_set *set);
497 #if defined(__cplusplus)