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 #include <isl/stdint.h>
22 #if defined(__cplusplus)
26 unsigned isl_basic_set_n_dim(__isl_keep isl_basic_set
*bset
);
27 unsigned isl_basic_set_n_param(__isl_keep isl_basic_set
*bset
);
28 unsigned isl_basic_set_total_dim(__isl_keep
const isl_basic_set
*bset
);
29 unsigned isl_basic_set_dim(__isl_keep isl_basic_set
*bset
,
30 enum isl_dim_type type
);
32 unsigned isl_set_n_dim(__isl_keep isl_set
*set
);
33 unsigned isl_set_n_param(__isl_keep isl_set
*set
);
34 unsigned isl_set_dim(__isl_keep isl_set
*set
, enum isl_dim_type type
);
36 isl_ctx
*isl_basic_set_get_ctx(__isl_keep isl_basic_set
*bset
);
37 isl_ctx
*isl_set_get_ctx(__isl_keep isl_set
*set
);
38 __isl_give isl_space
*isl_basic_set_get_space(__isl_keep isl_basic_set
*bset
);
39 __isl_give isl_space
*isl_set_get_space(__isl_keep isl_set
*set
);
40 __isl_give isl_set
*isl_set_reset_space(__isl_take isl_set
*set
,
41 __isl_take isl_space
*dim
);
43 __isl_give isl_aff
*isl_basic_set_get_div(__isl_keep isl_basic_set
*bset
,
46 __isl_give isl_local_space
*isl_basic_set_get_local_space(
47 __isl_keep isl_basic_set
*bset
);
49 const char *isl_basic_set_get_tuple_name(__isl_keep isl_basic_set
*bset
);
50 isl_bool
isl_set_has_tuple_name(__isl_keep isl_set
*set
);
51 const char *isl_set_get_tuple_name(__isl_keep isl_set
*set
);
52 __isl_give isl_basic_set
*isl_basic_set_set_tuple_name(
53 __isl_take isl_basic_set
*set
, const char *s
);
54 __isl_give isl_set
*isl_set_set_tuple_name(__isl_take isl_set
*set
,
56 const char *isl_basic_set_get_dim_name(__isl_keep isl_basic_set
*bset
,
57 enum isl_dim_type type
, unsigned pos
);
58 __isl_give isl_basic_set
*isl_basic_set_set_dim_name(
59 __isl_take isl_basic_set
*bset
,
60 enum isl_dim_type type
, unsigned pos
, const char *s
);
61 isl_bool
isl_set_has_dim_name(__isl_keep isl_set
*set
,
62 enum isl_dim_type type
, unsigned pos
);
63 const char *isl_set_get_dim_name(__isl_keep isl_set
*set
,
64 enum isl_dim_type type
, unsigned pos
);
65 __isl_give isl_set
*isl_set_set_dim_name(__isl_take isl_set
*set
,
66 enum isl_dim_type type
, unsigned pos
, const char *s
);
68 __isl_give isl_id
*isl_basic_set_get_dim_id(__isl_keep isl_basic_set
*bset
,
69 enum isl_dim_type type
, unsigned pos
);
70 __isl_give isl_basic_set
*isl_basic_set_set_tuple_id(
71 __isl_take isl_basic_set
*bset
, __isl_take isl_id
*id
);
72 __isl_give isl_set
*isl_set_set_dim_id(__isl_take isl_set
*set
,
73 enum isl_dim_type type
, unsigned pos
, __isl_take isl_id
*id
);
74 isl_bool
isl_set_has_dim_id(__isl_keep isl_set
*set
,
75 enum isl_dim_type type
, unsigned pos
);
76 __isl_give isl_id
*isl_set_get_dim_id(__isl_keep isl_set
*set
,
77 enum isl_dim_type type
, unsigned pos
);
78 __isl_give isl_set
*isl_set_set_tuple_id(__isl_take isl_set
*set
,
79 __isl_take isl_id
*id
);
80 __isl_give isl_set
*isl_set_reset_tuple_id(__isl_take isl_set
*set
);
81 isl_bool
isl_set_has_tuple_id(__isl_keep isl_set
*set
);
82 __isl_give isl_id
*isl_set_get_tuple_id(__isl_keep isl_set
*set
);
83 __isl_give isl_set
*isl_set_reset_user(__isl_take isl_set
*set
);
85 int isl_set_find_dim_by_id(__isl_keep isl_set
*set
, enum isl_dim_type type
,
86 __isl_keep isl_id
*id
);
87 int isl_set_find_dim_by_name(__isl_keep isl_set
*set
, enum isl_dim_type type
,
90 int isl_basic_set_is_rational(__isl_keep isl_basic_set
*bset
);
92 __isl_null isl_basic_set
*isl_basic_set_free(__isl_take isl_basic_set
*bset
);
93 __isl_give isl_basic_set
*isl_basic_set_copy(__isl_keep isl_basic_set
*bset
);
94 __isl_give isl_basic_set
*isl_basic_set_empty(__isl_take isl_space
*space
);
95 __isl_give isl_basic_set
*isl_basic_set_universe(__isl_take isl_space
*space
);
96 __isl_give isl_basic_set
*isl_basic_set_nat_universe(__isl_take isl_space
*dim
);
97 __isl_give isl_basic_set
*isl_basic_set_positive_orthant(
98 __isl_take isl_space
*space
);
99 void isl_basic_set_print_internal(__isl_keep isl_basic_set
*bset
,
100 FILE *out
, int indent
);
102 __isl_give isl_basic_set
*isl_basic_set_intersect(
103 __isl_take isl_basic_set
*bset1
,
104 __isl_take isl_basic_set
*bset2
);
106 __isl_give isl_basic_set
*isl_basic_set_intersect_params(
107 __isl_take isl_basic_set
*bset1
, __isl_take isl_basic_set
*bset2
);
109 __isl_give isl_basic_set
*isl_basic_set_apply(
110 __isl_take isl_basic_set
*bset
,
111 __isl_take isl_basic_map
*bmap
);
112 __isl_give isl_basic_set
*isl_basic_set_preimage_multi_aff(
113 __isl_take isl_basic_set
*bset
, __isl_take isl_multi_aff
*ma
);
115 __isl_give isl_basic_set
*isl_basic_set_affine_hull(
116 __isl_take isl_basic_set
*bset
);
117 __isl_give isl_basic_set
*isl_basic_set_remove_dims(
118 __isl_take isl_basic_set
*bset
,
119 enum isl_dim_type type
, unsigned first
, unsigned n
);
121 __isl_give isl_basic_set
*isl_basic_set_sample(__isl_take isl_basic_set
*bset
);
123 __isl_give isl_basic_set
*isl_basic_set_detect_equalities(
124 __isl_take isl_basic_set
*bset
);
125 __isl_give isl_basic_set
*isl_basic_set_remove_redundancies(
126 __isl_take isl_basic_set
*bset
);
127 __isl_give isl_set
*isl_set_remove_redundancies(__isl_take isl_set
*set
);
128 __isl_give isl_basic_set
*isl_basic_set_list_intersect(
129 __isl_take
struct isl_basic_set_list
*list
);
131 __isl_give isl_set
*isl_set_list_union(__isl_take isl_set_list
*list
);
133 __isl_give isl_basic_set
*isl_basic_set_read_from_file(isl_ctx
*ctx
,
136 __isl_give isl_basic_set
*isl_basic_set_read_from_str(isl_ctx
*ctx
,
138 __isl_give isl_set
*isl_set_read_from_file(isl_ctx
*ctx
, FILE *input
);
140 __isl_give isl_set
*isl_set_read_from_str(isl_ctx
*ctx
, const char *str
);
141 void isl_basic_set_dump(__isl_keep isl_basic_set
*bset
);
142 void isl_set_dump(__isl_keep isl_set
*set
);
143 __isl_give isl_printer
*isl_printer_print_basic_set(
144 __isl_take isl_printer
*printer
, __isl_keep isl_basic_set
*bset
);
145 __isl_give isl_printer
*isl_printer_print_set(__isl_take isl_printer
*printer
,
146 __isl_keep isl_set
*map
);
147 __isl_give isl_basic_set
*isl_basic_set_fix_si(__isl_take isl_basic_set
*bset
,
148 enum isl_dim_type type
, unsigned pos
, int value
);
149 __isl_give isl_basic_set
*isl_basic_set_fix_val(__isl_take isl_basic_set
*bset
,
150 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*v
);
151 __isl_give isl_set
*isl_set_fix_si(__isl_take isl_set
*set
,
152 enum isl_dim_type type
, unsigned pos
, int value
);
153 __isl_give isl_set
*isl_set_lower_bound_si(__isl_take isl_set
*set
,
154 enum isl_dim_type type
, unsigned pos
, int value
);
155 __isl_give isl_basic_set
*isl_basic_set_lower_bound_val(
156 __isl_take isl_basic_set
*bset
, enum isl_dim_type type
, unsigned pos
,
157 __isl_take isl_val
*value
);
158 __isl_give isl_set
*isl_set_lower_bound_val(__isl_take isl_set
*set
,
159 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*value
);
160 __isl_give isl_set
*isl_set_upper_bound_si(__isl_take isl_set
*set
,
161 enum isl_dim_type type
, unsigned pos
, int value
);
162 __isl_give isl_basic_set
*isl_basic_set_upper_bound_val(
163 __isl_take isl_basic_set
*bset
, enum isl_dim_type type
, unsigned pos
,
164 __isl_take isl_val
*value
);
165 __isl_give isl_set
*isl_set_upper_bound_val(__isl_take isl_set
*set
,
166 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*value
);
168 __isl_give isl_set
*isl_set_equate(__isl_take isl_set
*set
,
169 enum isl_dim_type type1
, int pos1
, enum isl_dim_type type2
, int pos2
);
172 isl_bool
isl_basic_set_is_equal(__isl_keep isl_basic_set
*bset1
,
173 __isl_keep isl_basic_set
*bset2
);
174 isl_bool
isl_basic_set_is_disjoint(__isl_keep isl_basic_set
*bset1
,
175 __isl_keep isl_basic_set
*bset2
);
177 __isl_give isl_set
*isl_basic_set_partial_lexmin(
178 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
179 __isl_give isl_set
**empty
);
180 __isl_give isl_set
*isl_basic_set_partial_lexmax(
181 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
182 __isl_give isl_set
**empty
);
183 __isl_give isl_set
*isl_set_partial_lexmin(
184 __isl_take isl_set
*set
, __isl_take isl_set
*dom
,
185 __isl_give isl_set
**empty
);
186 __isl_give isl_set
*isl_set_partial_lexmax(
187 __isl_take isl_set
*set
, __isl_take isl_set
*dom
,
188 __isl_give isl_set
**empty
);
190 __isl_give isl_set
*isl_basic_set_lexmin(__isl_take isl_basic_set
*bset
);
192 __isl_give isl_set
*isl_basic_set_lexmax(__isl_take isl_basic_set
*bset
);
194 __isl_give isl_set
*isl_set_lexmin(__isl_take isl_set
*set
);
196 __isl_give isl_set
*isl_set_lexmax(__isl_take isl_set
*set
);
197 __isl_give isl_pw_multi_aff
*isl_basic_set_partial_lexmin_pw_multi_aff(
198 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
199 __isl_give isl_set
**empty
);
200 __isl_give isl_pw_multi_aff
*isl_basic_set_partial_lexmax_pw_multi_aff(
201 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
202 __isl_give isl_set
**empty
);
203 __isl_give isl_pw_multi_aff
*isl_set_lexmin_pw_multi_aff(
204 __isl_take isl_set
*set
);
205 __isl_give isl_pw_multi_aff
*isl_set_lexmax_pw_multi_aff(
206 __isl_take isl_set
*set
);
209 __isl_give isl_set
*isl_basic_set_union(
210 __isl_take isl_basic_set
*bset1
,
211 __isl_take isl_basic_set
*bset2
);
213 int isl_basic_set_compare_at(struct isl_basic_set
*bset1
,
214 struct isl_basic_set
*bset2
, int pos
);
215 int isl_set_follows_at(__isl_keep isl_set
*set1
,
216 __isl_keep isl_set
*set2
, int pos
);
218 __isl_give isl_basic_set
*isl_basic_set_params(__isl_take isl_basic_set
*bset
);
219 __isl_give isl_basic_set
*isl_basic_set_from_params(
220 __isl_take isl_basic_set
*bset
);
221 __isl_give isl_set
*isl_set_params(__isl_take isl_set
*set
);
222 __isl_give isl_set
*isl_set_from_params(__isl_take isl_set
*set
);
224 isl_stat
isl_basic_set_dims_get_sign(__isl_keep isl_basic_set
*bset
,
225 enum isl_dim_type type
, unsigned pos
, unsigned n
, int *signs
);
227 isl_bool
isl_basic_set_plain_is_universe(__isl_keep isl_basic_set
*bset
);
228 isl_bool
isl_basic_set_is_universe(__isl_keep isl_basic_set
*bset
);
229 isl_bool
isl_basic_set_plain_is_empty(__isl_keep isl_basic_set
*bset
);
231 isl_bool
isl_basic_set_is_empty(__isl_keep isl_basic_set
*bset
);
232 isl_bool
isl_basic_set_is_bounded(__isl_keep isl_basic_set
*bset
);
234 isl_bool
isl_basic_set_is_subset(__isl_keep isl_basic_set
*bset1
,
235 __isl_keep isl_basic_set
*bset2
);
236 isl_bool
isl_basic_set_plain_is_equal(__isl_keep isl_basic_set
*bset1
,
237 __isl_keep isl_basic_set
*bset2
);
239 __isl_give isl_set
*isl_set_empty(__isl_take isl_space
*dim
);
240 __isl_give isl_set
*isl_set_universe(__isl_take isl_space
*dim
);
241 __isl_give isl_set
*isl_set_nat_universe(__isl_take isl_space
*dim
);
242 __isl_give isl_set
*isl_set_copy(__isl_keep isl_set
*set
);
243 __isl_null isl_set
*isl_set_free(__isl_take isl_set
*set
);
245 __isl_give isl_set
*isl_set_from_basic_set(__isl_take isl_basic_set
*bset
);
247 __isl_give isl_basic_set
*isl_set_sample(__isl_take isl_set
*set
);
249 __isl_give isl_point
*isl_basic_set_sample_point(__isl_take isl_basic_set
*bset
);
251 __isl_give isl_point
*isl_set_sample_point(__isl_take isl_set
*set
);
253 __isl_give isl_set
*isl_set_detect_equalities(__isl_take isl_set
*set
);
255 __isl_give isl_basic_set
*isl_set_affine_hull(__isl_take isl_set
*set
);
256 __isl_give isl_basic_set
*isl_set_convex_hull(__isl_take isl_set
*set
);
258 __isl_give isl_basic_set
*isl_set_polyhedral_hull(__isl_take isl_set
*set
);
259 __isl_give isl_basic_set
*isl_set_simple_hull(__isl_take isl_set
*set
);
261 __isl_give isl_basic_set
*isl_set_unshifted_simple_hull(
262 __isl_take isl_set
*set
);
263 __isl_give isl_basic_set
*isl_set_plain_unshifted_simple_hull(
264 __isl_take isl_set
*set
);
265 __isl_give isl_basic_set
*isl_set_unshifted_simple_hull_from_set_list(
266 __isl_take isl_set
*set
, __isl_take isl_set_list
*list
);
267 __isl_give isl_basic_set
*isl_set_bounded_simple_hull(__isl_take isl_set
*set
);
269 __isl_give isl_set
*isl_set_union_disjoint(
270 __isl_take isl_set
*set1
, __isl_take isl_set
*set2
);
272 __isl_give isl_set
*isl_set_union(
273 __isl_take isl_set
*set1
,
274 __isl_take isl_set
*set2
);
275 __isl_give isl_set
*isl_set_product(__isl_take isl_set
*set1
,
276 __isl_take isl_set
*set2
);
277 __isl_give isl_basic_set
*isl_basic_set_flat_product(
278 __isl_take isl_basic_set
*bset1
, __isl_take isl_basic_set
*bset2
);
279 __isl_give isl_set
*isl_set_flat_product(__isl_take isl_set
*set1
,
280 __isl_take isl_set
*set2
);
282 __isl_give isl_set
*isl_set_intersect(
283 __isl_take isl_set
*set1
,
284 __isl_take isl_set
*set2
);
286 __isl_give isl_set
*isl_set_intersect_params(__isl_take isl_set
*set
,
287 __isl_take isl_set
*params
);
289 __isl_give isl_set
*isl_set_subtract(
290 __isl_take isl_set
*set1
,
291 __isl_take isl_set
*set2
);
293 __isl_give isl_set
*isl_set_complement(__isl_take isl_set
*set
);
295 __isl_give isl_set
*isl_set_apply(
296 __isl_take isl_set
*set
,
297 __isl_take isl_map
*map
);
298 __isl_give isl_set
*isl_set_preimage_multi_aff(__isl_take isl_set
*set
,
299 __isl_take isl_multi_aff
*ma
);
300 __isl_give isl_set
*isl_set_preimage_pw_multi_aff(__isl_take isl_set
*set
,
301 __isl_take isl_pw_multi_aff
*pma
);
302 __isl_give isl_set
*isl_set_preimage_multi_pw_aff(__isl_take isl_set
*set
,
303 __isl_take isl_multi_pw_aff
*mpa
);
304 __isl_give isl_set
*isl_set_fix_val(__isl_take isl_set
*set
,
305 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*v
);
306 struct isl_set
*isl_set_fix_dim_si(struct isl_set
*set
,
307 unsigned dim
, 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_dims(__isl_take isl_basic_set
*bset
,
314 enum isl_dim_type type
, unsigned n
);
316 __isl_give isl_basic_set
*isl_basic_set_add(__isl_take isl_basic_set
*bset
,
317 enum isl_dim_type type
, unsigned n
);
318 __isl_give isl_set
*isl_set_add_dims(__isl_take isl_set
*set
,
319 enum isl_dim_type type
, unsigned n
);
320 __isl_give isl_basic_set
*isl_basic_set_move_dims(__isl_take isl_basic_set
*bset
,
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_set
*isl_set_move_dims(__isl_take isl_set
*set
,
324 enum isl_dim_type dst_type
, unsigned dst_pos
,
325 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
326 __isl_give isl_basic_set
*isl_basic_set_project_out(
327 __isl_take isl_basic_set
*bset
,
328 enum isl_dim_type type
, unsigned first
, unsigned n
);
329 __isl_give isl_set
*isl_set_project_out(__isl_take isl_set
*set
,
330 enum isl_dim_type type
, unsigned first
, unsigned n
);
331 __isl_give isl_map
*isl_set_project_onto_map(__isl_take isl_set
*set
,
332 enum isl_dim_type type
, unsigned first
, unsigned n
);
333 __isl_give isl_basic_set
*isl_basic_set_remove_divs(
334 __isl_take isl_basic_set
*bset
);
335 __isl_give isl_basic_set
*isl_basic_set_eliminate(
336 __isl_take isl_basic_set
*bset
,
337 enum isl_dim_type type
, unsigned first
, unsigned n
);
338 __isl_give isl_set
*isl_set_eliminate(__isl_take isl_set
*set
,
339 enum isl_dim_type type
, unsigned first
, unsigned n
);
340 __isl_give isl_set
*isl_set_eliminate_dims(__isl_take isl_set
*set
,
341 unsigned first
, unsigned n
);
342 __isl_give isl_set
*isl_set_remove_dims(__isl_take isl_set
*bset
,
343 enum isl_dim_type type
, unsigned first
, unsigned n
);
344 __isl_give isl_basic_set
*isl_basic_set_remove_divs_involving_dims(
345 __isl_take isl_basic_set
*bset
,
346 enum isl_dim_type type
, unsigned first
, unsigned n
);
347 __isl_give isl_set
*isl_set_remove_divs_involving_dims(__isl_take isl_set
*set
,
348 enum isl_dim_type type
, unsigned first
, unsigned n
);
349 __isl_give isl_basic_set
*isl_basic_set_remove_unknown_divs(
350 __isl_take isl_basic_set
*bset
);
351 __isl_give isl_set
*isl_set_remove_unknown_divs(__isl_take isl_set
*set
);
352 __isl_give isl_set
*isl_set_remove_divs(__isl_take isl_set
*set
);
353 __isl_give isl_set
*isl_set_split_dims(__isl_take isl_set
*set
,
354 enum isl_dim_type type
, unsigned first
, unsigned n
);
356 __isl_give isl_basic_set
*isl_basic_set_drop_constraints_involving_dims(
357 __isl_take isl_basic_set
*bset
,
358 enum isl_dim_type type
, unsigned first
, unsigned n
);
359 __isl_give isl_basic_set
*isl_basic_set_drop_constraints_not_involving_dims(
360 __isl_take isl_basic_set
*bset
,
361 enum isl_dim_type type
, unsigned first
, unsigned n
);
362 __isl_give isl_set
*isl_set_drop_constraints_involving_dims(
363 __isl_take isl_set
*set
,
364 enum isl_dim_type type
, unsigned first
, unsigned n
);
365 __isl_give isl_set
*isl_set_drop_constraints_not_involving_dims(
366 __isl_take isl_set
*set
,
367 enum isl_dim_type type
, unsigned first
, unsigned n
);
369 isl_bool
isl_basic_set_involves_dims(__isl_keep isl_basic_set
*bset
,
370 enum isl_dim_type type
, unsigned first
, unsigned n
);
371 isl_bool
isl_set_involves_dims(__isl_keep isl_set
*set
,
372 enum isl_dim_type type
, unsigned first
, unsigned n
);
374 void isl_set_print_internal(__isl_keep isl_set
*set
, FILE *out
, int indent
);
375 isl_bool
isl_set_plain_is_empty(__isl_keep isl_set
*set
);
376 isl_bool
isl_set_plain_is_universe(__isl_keep isl_set
*set
);
377 isl_bool
isl_set_is_params(__isl_keep isl_set
*set
);
379 isl_bool
isl_set_is_empty(__isl_keep isl_set
*set
);
380 isl_bool
isl_set_is_bounded(__isl_keep isl_set
*set
);
382 isl_bool
isl_set_is_subset(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
384 isl_bool
isl_set_is_strict_subset(__isl_keep isl_set
*set1
,
385 __isl_keep isl_set
*set2
);
387 isl_bool
isl_set_is_equal(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
389 isl_bool
isl_set_is_disjoint(__isl_keep isl_set
*set1
,
390 __isl_keep isl_set
*set2
);
391 isl_bool
isl_set_is_singleton(__isl_keep isl_set
*set
);
392 isl_bool
isl_set_is_box(__isl_keep isl_set
*set
);
393 isl_bool
isl_set_has_equal_space(__isl_keep isl_set
*set1
,
394 __isl_keep isl_set
*set2
);
396 __isl_give isl_set
*isl_set_sum(__isl_take isl_set
*set1
,
397 __isl_take isl_set
*set2
);
398 __isl_give isl_basic_set
*isl_basic_set_neg(__isl_take isl_basic_set
*bset
);
399 __isl_give isl_set
*isl_set_neg(__isl_take isl_set
*set
);
401 __isl_give isl_set
*isl_set_make_disjoint(__isl_take isl_set
*set
);
402 __isl_give isl_set
*isl_basic_set_compute_divs(__isl_take isl_basic_set
*bset
);
403 __isl_give isl_set
*isl_set_compute_divs(__isl_take isl_set
*set
);
405 __isl_give isl_set
*isl_set_align_divs(__isl_take isl_set
*set
);
407 __isl_give isl_val
*isl_set_plain_get_val_if_fixed(__isl_keep isl_set
*set
,
408 enum isl_dim_type type
, unsigned pos
);
409 isl_bool
isl_set_dim_is_bounded(__isl_keep isl_set
*set
,
410 enum isl_dim_type type
, unsigned pos
);
411 isl_bool
isl_set_dim_has_lower_bound(__isl_keep isl_set
*set
,
412 enum isl_dim_type type
, unsigned pos
);
413 isl_bool
isl_set_dim_has_upper_bound(__isl_keep isl_set
*set
,
414 enum isl_dim_type type
, unsigned pos
);
415 isl_bool
isl_set_dim_has_any_lower_bound(__isl_keep isl_set
*set
,
416 enum isl_dim_type type
, unsigned pos
);
417 isl_bool
isl_set_dim_has_any_upper_bound(__isl_keep isl_set
*set
,
418 enum isl_dim_type type
, unsigned pos
);
421 __isl_give isl_basic_set
*isl_basic_set_gist(__isl_take isl_basic_set
*bset
,
422 __isl_take isl_basic_set
*context
);
423 __isl_give isl_set
*isl_set_gist_basic_set(__isl_take isl_set
*set
,
424 __isl_take isl_basic_set
*context
);
426 __isl_give isl_set
*isl_set_gist(__isl_take isl_set
*set
,
427 __isl_take isl_set
*context
);
428 __isl_give isl_set
*isl_set_gist_params(__isl_take isl_set
*set
,
429 __isl_take isl_set
*context
);
430 isl_stat
isl_set_dim_residue_class_val(__isl_keep isl_set
*set
,
431 int pos
, __isl_give isl_val
**modulo
, __isl_give isl_val
**residue
);
434 __isl_give isl_set
*isl_set_coalesce(__isl_take isl_set
*set
);
436 int isl_set_plain_cmp(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
437 isl_bool
isl_set_plain_is_equal(__isl_keep isl_set
*set1
,
438 __isl_keep isl_set
*set2
);
439 isl_bool
isl_set_plain_is_disjoint(__isl_keep isl_set
*set1
,
440 __isl_keep isl_set
*set2
);
442 uint32_t isl_set_get_hash(struct isl_set
*set
);
444 int isl_set_n_basic_set(__isl_keep isl_set
*set
);
446 isl_stat
isl_set_foreach_basic_set(__isl_keep isl_set
*set
,
447 isl_stat (*fn
)(__isl_take isl_basic_set
*bset
, void *user
), void *user
);
448 __isl_give isl_basic_set_list
*isl_set_get_basic_set_list(
449 __isl_keep isl_set
*set
);
451 isl_stat
isl_set_foreach_point(__isl_keep isl_set
*set
,
452 isl_stat (*fn
)(__isl_take isl_point
*pnt
, void *user
), void *user
);
453 __isl_give isl_val
*isl_set_count_val(__isl_keep isl_set
*set
);
456 __isl_give isl_basic_set
*isl_basic_set_from_point(__isl_take isl_point
*pnt
);
458 __isl_give isl_set
*isl_set_from_point(__isl_take isl_point
*pnt
);
459 __isl_give isl_basic_set
*isl_basic_set_box_from_points(
460 __isl_take isl_point
*pnt1
, __isl_take isl_point
*pnt2
);
461 __isl_give isl_set
*isl_set_box_from_points(__isl_take isl_point
*pnt1
,
462 __isl_take isl_point
*pnt2
);
464 __isl_give isl_basic_set
*isl_basic_set_lift(__isl_take isl_basic_set
*bset
);
465 __isl_give isl_set
*isl_set_lift(__isl_take isl_set
*set
);
467 __isl_give isl_map
*isl_set_lex_le_set(__isl_take isl_set
*set1
,
468 __isl_take isl_set
*set2
);
469 __isl_give isl_map
*isl_set_lex_lt_set(__isl_take isl_set
*set1
,
470 __isl_take isl_set
*set2
);
471 __isl_give isl_map
*isl_set_lex_ge_set(__isl_take isl_set
*set1
,
472 __isl_take isl_set
*set2
);
473 __isl_give isl_map
*isl_set_lex_gt_set(__isl_take isl_set
*set1
,
474 __isl_take isl_set
*set2
);
476 int isl_set_size(__isl_keep isl_set
*set
);
478 __isl_give isl_basic_set
*isl_basic_set_align_params(
479 __isl_take isl_basic_set
*bset
, __isl_take isl_space
*model
);
480 __isl_give isl_set
*isl_set_align_params(__isl_take isl_set
*set
,
481 __isl_take isl_space
*model
);
483 __isl_give isl_mat
*isl_basic_set_equalities_matrix(
484 __isl_keep isl_basic_set
*bset
, enum isl_dim_type c1
,
485 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
486 __isl_give isl_mat
*isl_basic_set_inequalities_matrix(
487 __isl_keep isl_basic_set
*bset
, enum isl_dim_type c1
,
488 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
489 __isl_give isl_basic_set
*isl_basic_set_from_constraint_matrices(
490 __isl_take isl_space
*dim
,
491 __isl_take isl_mat
*eq
, __isl_take isl_mat
*ineq
, enum isl_dim_type c1
,
492 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
494 __isl_give isl_mat
*isl_basic_set_reduced_basis(__isl_keep isl_basic_set
*bset
);
496 __isl_give isl_basic_set
*isl_basic_set_coefficients(
497 __isl_take isl_basic_set
*bset
);
498 __isl_give isl_basic_set_list
*isl_basic_set_list_coefficients(
499 __isl_take isl_basic_set_list
*list
);
500 __isl_give isl_basic_set
*isl_set_coefficients(__isl_take isl_set
*set
);
501 __isl_give isl_basic_set
*isl_basic_set_solutions(
502 __isl_take isl_basic_set
*bset
);
503 __isl_give isl_basic_set
*isl_set_solutions(__isl_take isl_set
*set
);
505 __isl_give isl_pw_aff
*isl_set_dim_max(__isl_take isl_set
*set
, int pos
);
506 __isl_give isl_pw_aff
*isl_set_dim_min(__isl_take isl_set
*set
, int pos
);
508 __isl_give
char *isl_basic_set_to_str(__isl_keep isl_basic_set
*bset
);
509 __isl_give
char *isl_set_to_str(__isl_keep isl_set
*set
);
511 #if defined(__cplusplus)