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(const struct 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
*dim
);
95 __isl_give isl_basic_set
*isl_basic_set_universe(__isl_take isl_space
*dim
);
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_basic_set
*isl_basic_set_list_product(
132 __isl_take
struct isl_basic_set_list
*list
);
134 __isl_give isl_set
*isl_set_list_union(__isl_take isl_set_list
*list
);
136 __isl_give isl_basic_set
*isl_basic_set_read_from_file(isl_ctx
*ctx
,
139 __isl_give isl_basic_set
*isl_basic_set_read_from_str(isl_ctx
*ctx
,
141 __isl_give isl_set
*isl_set_read_from_file(isl_ctx
*ctx
, FILE *input
);
143 __isl_give isl_set
*isl_set_read_from_str(isl_ctx
*ctx
, const char *str
);
144 void isl_basic_set_dump(__isl_keep isl_basic_set
*bset
);
145 void isl_set_dump(__isl_keep isl_set
*set
);
146 __isl_give isl_printer
*isl_printer_print_basic_set(
147 __isl_take isl_printer
*printer
, __isl_keep isl_basic_set
*bset
);
148 __isl_give isl_printer
*isl_printer_print_set(__isl_take isl_printer
*printer
,
149 __isl_keep isl_set
*map
);
150 __isl_give isl_basic_set
*isl_basic_set_fix_si(__isl_take isl_basic_set
*bset
,
151 enum isl_dim_type type
, unsigned pos
, int value
);
152 __isl_give isl_basic_set
*isl_basic_set_fix_val(__isl_take isl_basic_set
*bset
,
153 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*v
);
154 __isl_give isl_set
*isl_set_fix_si(__isl_take isl_set
*set
,
155 enum isl_dim_type type
, unsigned pos
, int value
);
156 __isl_give isl_set
*isl_set_lower_bound_si(__isl_take isl_set
*set
,
157 enum isl_dim_type type
, unsigned pos
, int 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_set
*isl_set_upper_bound_val(__isl_take isl_set
*set
,
163 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*value
);
165 __isl_give isl_set
*isl_set_equate(__isl_take isl_set
*set
,
166 enum isl_dim_type type1
, int pos1
, enum isl_dim_type type2
, int pos2
);
169 isl_bool
isl_basic_set_is_equal(__isl_keep isl_basic_set
*bset1
,
170 __isl_keep isl_basic_set
*bset2
);
171 isl_bool
isl_basic_set_is_disjoint(__isl_keep isl_basic_set
*bset1
,
172 __isl_keep isl_basic_set
*bset2
);
174 __isl_give isl_set
*isl_basic_set_partial_lexmin(
175 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
176 __isl_give isl_set
**empty
);
177 __isl_give isl_set
*isl_basic_set_partial_lexmax(
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_set_partial_lexmin(
181 __isl_take isl_set
*set
, __isl_take isl_set
*dom
,
182 __isl_give isl_set
**empty
);
183 __isl_give isl_set
*isl_set_partial_lexmax(
184 __isl_take isl_set
*set
, __isl_take isl_set
*dom
,
185 __isl_give isl_set
**empty
);
187 __isl_give isl_set
*isl_basic_set_lexmin(__isl_take isl_basic_set
*bset
);
189 __isl_give isl_set
*isl_basic_set_lexmax(__isl_take isl_basic_set
*bset
);
191 __isl_give isl_set
*isl_set_lexmin(__isl_take isl_set
*set
);
193 __isl_give isl_set
*isl_set_lexmax(__isl_take isl_set
*set
);
194 __isl_give isl_pw_multi_aff
*isl_basic_set_partial_lexmin_pw_multi_aff(
195 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
196 __isl_give isl_set
**empty
);
197 __isl_give isl_pw_multi_aff
*isl_basic_set_partial_lexmax_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_set_lexmin_pw_multi_aff(
201 __isl_take isl_set
*set
);
202 __isl_give isl_pw_multi_aff
*isl_set_lexmax_pw_multi_aff(
203 __isl_take isl_set
*set
);
206 __isl_give isl_set
*isl_basic_set_union(
207 __isl_take isl_basic_set
*bset1
,
208 __isl_take isl_basic_set
*bset2
);
210 int isl_basic_set_compare_at(struct isl_basic_set
*bset1
,
211 struct isl_basic_set
*bset2
, int pos
);
212 int isl_set_follows_at(__isl_keep isl_set
*set1
,
213 __isl_keep isl_set
*set2
, int pos
);
215 __isl_give isl_basic_set
*isl_basic_set_params(__isl_take isl_basic_set
*bset
);
216 __isl_give isl_basic_set
*isl_basic_set_from_params(
217 __isl_take isl_basic_set
*bset
);
218 __isl_give isl_set
*isl_set_params(__isl_take isl_set
*set
);
219 __isl_give isl_set
*isl_set_from_params(__isl_take isl_set
*set
);
221 int isl_basic_set_dims_get_sign(__isl_keep isl_basic_set
*bset
,
222 enum isl_dim_type type
, unsigned pos
, unsigned n
, int *signs
);
224 isl_bool
isl_basic_set_plain_is_universe(__isl_keep isl_basic_set
*bset
);
225 isl_bool
isl_basic_set_is_universe(__isl_keep isl_basic_set
*bset
);
226 isl_bool
isl_basic_set_plain_is_empty(__isl_keep isl_basic_set
*bset
);
228 isl_bool
isl_basic_set_is_empty(__isl_keep isl_basic_set
*bset
);
229 isl_bool
isl_basic_set_is_bounded(__isl_keep isl_basic_set
*bset
);
231 isl_bool
isl_basic_set_is_subset(__isl_keep isl_basic_set
*bset1
,
232 __isl_keep isl_basic_set
*bset2
);
233 isl_bool
isl_basic_set_plain_is_equal(__isl_keep isl_basic_set
*bset1
,
234 __isl_keep isl_basic_set
*bset2
);
236 __isl_give isl_set
*isl_set_empty(__isl_take isl_space
*dim
);
237 __isl_give isl_set
*isl_set_universe(__isl_take isl_space
*dim
);
238 __isl_give isl_set
*isl_set_nat_universe(__isl_take isl_space
*dim
);
239 __isl_give isl_set
*isl_set_copy(__isl_keep isl_set
*set
);
240 __isl_null isl_set
*isl_set_free(__isl_take isl_set
*set
);
242 __isl_give isl_set
*isl_set_from_basic_set(__isl_take isl_basic_set
*bset
);
244 __isl_give isl_basic_set
*isl_set_sample(__isl_take isl_set
*set
);
246 __isl_give isl_point
*isl_basic_set_sample_point(__isl_take isl_basic_set
*bset
);
248 __isl_give isl_point
*isl_set_sample_point(__isl_take isl_set
*set
);
250 __isl_give isl_set
*isl_set_detect_equalities(__isl_take isl_set
*set
);
252 __isl_give isl_basic_set
*isl_set_affine_hull(__isl_take isl_set
*set
);
253 __isl_give isl_basic_set
*isl_set_convex_hull(__isl_take isl_set
*set
);
255 __isl_give isl_basic_set
*isl_set_polyhedral_hull(__isl_take isl_set
*set
);
256 __isl_give isl_basic_set
*isl_set_simple_hull(__isl_take isl_set
*set
);
258 __isl_give isl_basic_set
*isl_set_unshifted_simple_hull(
259 __isl_take isl_set
*set
);
260 __isl_give isl_basic_set
*isl_set_plain_unshifted_simple_hull(
261 __isl_take isl_set
*set
);
262 __isl_give isl_basic_set
*isl_set_unshifted_simple_hull_from_set_list(
263 __isl_take isl_set
*set
, __isl_take isl_set_list
*list
);
264 struct isl_basic_set
*isl_set_bounded_simple_hull(struct isl_set
*set
);
266 __isl_give isl_set
*isl_set_recession_cone(__isl_take isl_set
*set
);
268 struct isl_set
*isl_set_union_disjoint(
269 struct isl_set
*set1
, struct isl_set
*set2
);
271 __isl_give isl_set
*isl_set_union(
272 __isl_take isl_set
*set1
,
273 __isl_take isl_set
*set2
);
274 __isl_give isl_set
*isl_set_product(__isl_take isl_set
*set1
,
275 __isl_take isl_set
*set2
);
276 __isl_give isl_basic_set
*isl_basic_set_flat_product(
277 __isl_take isl_basic_set
*bset1
, __isl_take isl_basic_set
*bset2
);
278 __isl_give isl_set
*isl_set_flat_product(__isl_take isl_set
*set1
,
279 __isl_take isl_set
*set2
);
281 __isl_give isl_set
*isl_set_intersect(
282 __isl_take isl_set
*set1
,
283 __isl_take isl_set
*set2
);
285 __isl_give isl_set
*isl_set_intersect_params(__isl_take isl_set
*set
,
286 __isl_take isl_set
*params
);
288 __isl_give isl_set
*isl_set_subtract(
289 __isl_take isl_set
*set1
,
290 __isl_take isl_set
*set2
);
292 __isl_give isl_set
*isl_set_complement(__isl_take isl_set
*set
);
294 __isl_give isl_set
*isl_set_apply(
295 __isl_take isl_set
*set
,
296 __isl_take isl_map
*map
);
297 __isl_give isl_set
*isl_set_preimage_multi_aff(__isl_take isl_set
*set
,
298 __isl_take isl_multi_aff
*ma
);
299 __isl_give isl_set
*isl_set_preimage_pw_multi_aff(__isl_take isl_set
*set
,
300 __isl_take isl_pw_multi_aff
*pma
);
301 __isl_give isl_set
*isl_set_preimage_multi_pw_aff(__isl_take isl_set
*set
,
302 __isl_take isl_multi_pw_aff
*mpa
);
303 __isl_give isl_set
*isl_set_fix_val(__isl_take isl_set
*set
,
304 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*v
);
305 struct isl_set
*isl_set_fix_dim_si(struct isl_set
*set
,
306 unsigned dim
, int value
);
307 __isl_give isl_basic_set
*isl_basic_set_insert_dims(
308 __isl_take isl_basic_set
*bset
,
309 enum isl_dim_type type
, unsigned pos
, unsigned n
);
310 __isl_give isl_set
*isl_set_insert_dims(__isl_take isl_set
*set
,
311 enum isl_dim_type type
, unsigned pos
, unsigned n
);
312 __isl_give isl_basic_set
*isl_basic_set_add_dims(__isl_take isl_basic_set
*bset
,
313 enum isl_dim_type type
, unsigned n
);
315 __isl_give isl_basic_set
*isl_basic_set_add(__isl_take isl_basic_set
*bset
,
316 enum isl_dim_type type
, unsigned n
);
317 __isl_give isl_set
*isl_set_add_dims(__isl_take isl_set
*set
,
318 enum isl_dim_type type
, unsigned n
);
319 __isl_give isl_basic_set
*isl_basic_set_move_dims(__isl_take isl_basic_set
*bset
,
320 enum isl_dim_type dst_type
, unsigned dst_pos
,
321 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
322 __isl_give isl_set
*isl_set_move_dims(__isl_take isl_set
*set
,
323 enum isl_dim_type dst_type
, unsigned dst_pos
,
324 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
325 __isl_give isl_basic_set
*isl_basic_set_project_out(
326 __isl_take isl_basic_set
*bset
,
327 enum isl_dim_type type
, unsigned first
, unsigned n
);
328 __isl_give isl_set
*isl_set_project_out(__isl_take isl_set
*set
,
329 enum isl_dim_type type
, unsigned first
, unsigned n
);
330 __isl_give isl_map
*isl_set_project_onto_map(__isl_take isl_set
*set
,
331 enum isl_dim_type type
, unsigned first
, unsigned n
);
332 __isl_give isl_basic_set
*isl_basic_set_remove_divs(
333 __isl_take isl_basic_set
*bset
);
334 __isl_give isl_basic_set
*isl_basic_set_eliminate(
335 __isl_take isl_basic_set
*bset
,
336 enum isl_dim_type type
, unsigned first
, unsigned n
);
337 __isl_give isl_set
*isl_set_eliminate(__isl_take isl_set
*set
,
338 enum isl_dim_type type
, unsigned first
, unsigned n
);
339 struct isl_set
*isl_set_eliminate_dims(struct isl_set
*set
,
340 unsigned first
, unsigned n
);
341 __isl_give isl_set
*isl_set_remove_dims(__isl_take isl_set
*bset
,
342 enum isl_dim_type type
, unsigned first
, unsigned n
);
343 __isl_give isl_basic_set
*isl_basic_set_remove_divs_involving_dims(
344 __isl_take isl_basic_set
*bset
,
345 enum isl_dim_type type
, unsigned first
, unsigned n
);
346 __isl_give isl_set
*isl_set_remove_divs_involving_dims(__isl_take isl_set
*set
,
347 enum isl_dim_type type
, unsigned first
, unsigned n
);
348 __isl_give isl_basic_set
*isl_basic_set_remove_unknown_divs(
349 __isl_take isl_basic_set
*bset
);
350 __isl_give isl_set
*isl_set_remove_unknown_divs(__isl_take isl_set
*set
);
351 __isl_give isl_set
*isl_set_remove_divs(__isl_take isl_set
*set
);
352 __isl_give isl_set
*isl_set_split_dims(__isl_take isl_set
*set
,
353 enum isl_dim_type type
, unsigned first
, unsigned n
);
355 __isl_give isl_basic_set
*isl_basic_set_drop_constraints_involving_dims(
356 __isl_take isl_basic_set
*bset
,
357 enum isl_dim_type type
, unsigned first
, unsigned n
);
358 __isl_give isl_basic_set
*isl_basic_set_drop_constraints_not_involving_dims(
359 __isl_take isl_basic_set
*bset
,
360 enum isl_dim_type type
, unsigned first
, unsigned n
);
361 __isl_give isl_set
*isl_set_drop_constraints_involving_dims(
362 __isl_take isl_set
*set
,
363 enum isl_dim_type type
, unsigned first
, unsigned n
);
364 __isl_give isl_set
*isl_set_drop_constraints_not_involving_dims(
365 __isl_take isl_set
*set
,
366 enum isl_dim_type type
, unsigned first
, unsigned n
);
368 isl_bool
isl_basic_set_involves_dims(__isl_keep isl_basic_set
*bset
,
369 enum isl_dim_type type
, unsigned first
, unsigned n
);
370 isl_bool
isl_set_involves_dims(__isl_keep isl_set
*set
,
371 enum isl_dim_type type
, unsigned first
, unsigned n
);
373 void isl_set_print_internal(__isl_keep isl_set
*set
, FILE *out
, int indent
);
374 isl_bool
isl_set_plain_is_empty(__isl_keep isl_set
*set
);
375 isl_bool
isl_set_plain_is_universe(__isl_keep isl_set
*set
);
376 isl_bool
isl_set_is_params(__isl_keep isl_set
*set
);
378 isl_bool
isl_set_is_empty(__isl_keep isl_set
*set
);
379 int isl_set_is_bounded(__isl_keep isl_set
*set
);
381 isl_bool
isl_set_is_subset(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
383 isl_bool
isl_set_is_strict_subset(__isl_keep isl_set
*set1
,
384 __isl_keep isl_set
*set2
);
386 isl_bool
isl_set_is_equal(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
388 isl_bool
isl_set_is_disjoint(__isl_keep isl_set
*set1
,
389 __isl_keep isl_set
*set2
);
390 isl_bool
isl_set_is_singleton(__isl_keep isl_set
*set
);
391 isl_bool
isl_set_is_box(__isl_keep isl_set
*set
);
392 isl_bool
isl_set_has_equal_space(__isl_keep isl_set
*set1
,
393 __isl_keep isl_set
*set2
);
395 __isl_give isl_set
*isl_set_sum(__isl_take isl_set
*set1
,
396 __isl_take isl_set
*set2
);
397 __isl_give isl_basic_set
*isl_basic_set_neg(__isl_take isl_basic_set
*bset
);
398 __isl_give isl_set
*isl_set_neg(__isl_take isl_set
*set
);
400 __isl_give isl_set
*isl_set_make_disjoint(__isl_take isl_set
*set
);
401 struct isl_set
*isl_basic_set_compute_divs(struct isl_basic_set
*bset
);
402 __isl_give isl_set
*isl_set_compute_divs(__isl_take isl_set
*set
);
403 __isl_give isl_set
*isl_set_align_divs(__isl_take isl_set
*set
);
406 struct isl_basic_set
*isl_set_copy_basic_set(struct isl_set
*set
);
408 struct isl_set
*isl_set_drop_basic_set(struct isl_set
*set
,
409 struct isl_basic_set
*bset
);
411 __isl_give isl_val
*isl_set_plain_get_val_if_fixed(__isl_keep isl_set
*set
,
412 enum isl_dim_type type
, unsigned pos
);
413 int isl_set_dim_is_bounded(__isl_keep isl_set
*set
,
414 enum isl_dim_type type
, unsigned pos
);
415 isl_bool
isl_set_dim_has_lower_bound(__isl_keep isl_set
*set
,
416 enum isl_dim_type type
, unsigned pos
);
417 isl_bool
isl_set_dim_has_upper_bound(__isl_keep isl_set
*set
,
418 enum isl_dim_type type
, unsigned pos
);
419 isl_bool
isl_set_dim_has_any_lower_bound(__isl_keep isl_set
*set
,
420 enum isl_dim_type type
, unsigned pos
);
421 isl_bool
isl_set_dim_has_any_upper_bound(__isl_keep isl_set
*set
,
422 enum isl_dim_type type
, unsigned pos
);
425 __isl_give isl_basic_set
*isl_basic_set_gist(__isl_take isl_basic_set
*bset
,
426 __isl_take isl_basic_set
*context
);
427 __isl_give isl_set
*isl_set_gist_basic_set(__isl_take isl_set
*set
,
428 __isl_take isl_basic_set
*context
);
430 __isl_give isl_set
*isl_set_gist(__isl_take isl_set
*set
,
431 __isl_take isl_set
*context
);
432 __isl_give isl_set
*isl_set_gist_params(__isl_take isl_set
*set
,
433 __isl_take isl_set
*context
);
434 isl_stat
isl_set_dim_residue_class_val(__isl_keep isl_set
*set
,
435 int pos
, __isl_give isl_val
**modulo
, __isl_give isl_val
**residue
);
438 __isl_give isl_set
*isl_set_coalesce(__isl_take isl_set
*set
);
440 int isl_set_plain_cmp(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
441 isl_bool
isl_set_plain_is_equal(__isl_keep isl_set
*set1
,
442 __isl_keep isl_set
*set2
);
443 isl_bool
isl_set_plain_is_disjoint(__isl_keep isl_set
*set1
,
444 __isl_keep isl_set
*set2
);
446 uint32_t isl_set_get_hash(struct isl_set
*set
);
449 int isl_set_dim_is_unique(struct isl_set
*set
, unsigned dim
);
451 int isl_set_n_basic_set(__isl_keep isl_set
*set
);
453 isl_stat
isl_set_foreach_basic_set(__isl_keep isl_set
*set
,
454 isl_stat (*fn
)(__isl_take isl_basic_set
*bset
, void *user
), void *user
);
455 __isl_give isl_basic_set_list
*isl_set_get_basic_set_list(
456 __isl_keep isl_set
*set
);
458 isl_stat
isl_set_foreach_point(__isl_keep isl_set
*set
,
459 isl_stat (*fn
)(__isl_take isl_point
*pnt
, void *user
), void *user
);
460 __isl_give isl_val
*isl_set_count_val(__isl_keep isl_set
*set
);
463 __isl_give isl_basic_set
*isl_basic_set_from_point(__isl_take isl_point
*pnt
);
465 __isl_give isl_set
*isl_set_from_point(__isl_take isl_point
*pnt
);
466 __isl_give isl_basic_set
*isl_basic_set_box_from_points(
467 __isl_take isl_point
*pnt1
, __isl_take isl_point
*pnt2
);
468 __isl_give isl_set
*isl_set_box_from_points(__isl_take isl_point
*pnt1
,
469 __isl_take isl_point
*pnt2
);
471 __isl_give isl_basic_set
*isl_basic_set_lift(__isl_take isl_basic_set
*bset
);
472 __isl_give isl_set
*isl_set_lift(__isl_take isl_set
*set
);
474 __isl_give isl_map
*isl_set_lex_le_set(__isl_take isl_set
*set1
,
475 __isl_take isl_set
*set2
);
476 __isl_give isl_map
*isl_set_lex_lt_set(__isl_take isl_set
*set1
,
477 __isl_take isl_set
*set2
);
478 __isl_give isl_map
*isl_set_lex_ge_set(__isl_take isl_set
*set1
,
479 __isl_take isl_set
*set2
);
480 __isl_give isl_map
*isl_set_lex_gt_set(__isl_take isl_set
*set1
,
481 __isl_take isl_set
*set2
);
483 int isl_set_size(__isl_keep isl_set
*set
);
485 __isl_give isl_basic_set
*isl_basic_set_align_params(
486 __isl_take isl_basic_set
*bset
, __isl_take isl_space
*model
);
487 __isl_give isl_set
*isl_set_align_params(__isl_take isl_set
*set
,
488 __isl_take isl_space
*model
);
490 __isl_give isl_mat
*isl_basic_set_equalities_matrix(
491 __isl_keep isl_basic_set
*bset
, enum isl_dim_type c1
,
492 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
493 __isl_give isl_mat
*isl_basic_set_inequalities_matrix(
494 __isl_keep isl_basic_set
*bset
, enum isl_dim_type c1
,
495 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
496 __isl_give isl_basic_set
*isl_basic_set_from_constraint_matrices(
497 __isl_take isl_space
*dim
,
498 __isl_take isl_mat
*eq
, __isl_take isl_mat
*ineq
, enum isl_dim_type c1
,
499 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
501 __isl_give isl_mat
*isl_basic_set_reduced_basis(__isl_keep isl_basic_set
*bset
);
503 __isl_give isl_basic_set
*isl_basic_set_coefficients(
504 __isl_take isl_basic_set
*bset
);
505 __isl_give isl_basic_set
*isl_set_coefficients(__isl_take isl_set
*set
);
506 __isl_give isl_basic_set
*isl_basic_set_solutions(
507 __isl_take isl_basic_set
*bset
);
508 __isl_give isl_basic_set
*isl_set_solutions(__isl_take isl_set
*set
);
510 __isl_give isl_pw_aff
*isl_set_dim_max(__isl_take isl_set
*set
, int pos
);
511 __isl_give isl_pw_aff
*isl_set_dim_min(__isl_take isl_set
*set
, int pos
);
513 __isl_give
char *isl_basic_set_to_str(__isl_keep isl_basic_set
*bset
);
514 __isl_give
char *isl_set_to_str(__isl_keep isl_set
*set
);
516 #if defined(__cplusplus)