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
);
130 __isl_give isl_basic_set
*isl_basic_set_list_product(
131 __isl_take
struct isl_basic_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_set
*isl_set_lower_bound_val(__isl_take isl_set
*set
,
156 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*value
);
157 __isl_give isl_set
*isl_set_upper_bound_si(__isl_take isl_set
*set
,
158 enum isl_dim_type type
, unsigned pos
, int value
);
159 __isl_give isl_set
*isl_set_upper_bound_val(__isl_take isl_set
*set
,
160 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*value
);
162 __isl_give isl_set
*isl_set_equate(__isl_take isl_set
*set
,
163 enum isl_dim_type type1
, int pos1
, enum isl_dim_type type2
, int pos2
);
166 isl_bool
isl_basic_set_is_equal(__isl_keep isl_basic_set
*bset1
,
167 __isl_keep isl_basic_set
*bset2
);
168 isl_bool
isl_basic_set_is_disjoint(__isl_keep isl_basic_set
*bset1
,
169 __isl_keep isl_basic_set
*bset2
);
171 __isl_give isl_set
*isl_basic_set_partial_lexmin(
172 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
173 __isl_give isl_set
**empty
);
174 __isl_give isl_set
*isl_basic_set_partial_lexmax(
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_set_partial_lexmin(
178 __isl_take isl_set
*set
, __isl_take isl_set
*dom
,
179 __isl_give isl_set
**empty
);
180 __isl_give isl_set
*isl_set_partial_lexmax(
181 __isl_take isl_set
*set
, __isl_take isl_set
*dom
,
182 __isl_give isl_set
**empty
);
184 __isl_give isl_set
*isl_basic_set_lexmin(__isl_take isl_basic_set
*bset
);
186 __isl_give isl_set
*isl_basic_set_lexmax(__isl_take isl_basic_set
*bset
);
188 __isl_give isl_set
*isl_set_lexmin(__isl_take isl_set
*set
);
190 __isl_give isl_set
*isl_set_lexmax(__isl_take isl_set
*set
);
191 __isl_give isl_pw_multi_aff
*isl_basic_set_partial_lexmin_pw_multi_aff(
192 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
193 __isl_give isl_set
**empty
);
194 __isl_give isl_pw_multi_aff
*isl_basic_set_partial_lexmax_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_set_lexmin_pw_multi_aff(
198 __isl_take isl_set
*set
);
199 __isl_give isl_pw_multi_aff
*isl_set_lexmax_pw_multi_aff(
200 __isl_take isl_set
*set
);
203 __isl_give isl_set
*isl_basic_set_union(
204 __isl_take isl_basic_set
*bset1
,
205 __isl_take isl_basic_set
*bset2
);
207 int isl_basic_set_compare_at(struct isl_basic_set
*bset1
,
208 struct isl_basic_set
*bset2
, int pos
);
209 int isl_set_follows_at(__isl_keep isl_set
*set1
,
210 __isl_keep isl_set
*set2
, int pos
);
212 __isl_give isl_basic_set
*isl_basic_set_params(__isl_take isl_basic_set
*bset
);
213 __isl_give isl_basic_set
*isl_basic_set_from_params(
214 __isl_take isl_basic_set
*bset
);
215 __isl_give isl_set
*isl_set_params(__isl_take isl_set
*set
);
216 __isl_give isl_set
*isl_set_from_params(__isl_take isl_set
*set
);
218 int isl_basic_set_dims_get_sign(__isl_keep isl_basic_set
*bset
,
219 enum isl_dim_type type
, unsigned pos
, unsigned n
, int *signs
);
221 isl_bool
isl_basic_set_is_universe(__isl_keep isl_basic_set
*bset
);
222 isl_bool
isl_basic_set_plain_is_empty(__isl_keep isl_basic_set
*bset
);
224 isl_bool
isl_basic_set_is_empty(__isl_keep isl_basic_set
*bset
);
225 int isl_basic_set_is_bounded(__isl_keep isl_basic_set
*bset
);
227 isl_bool
isl_basic_set_is_subset(__isl_keep isl_basic_set
*bset1
,
228 __isl_keep isl_basic_set
*bset2
);
229 isl_bool
isl_basic_set_plain_is_equal(__isl_keep isl_basic_set
*bset1
,
230 __isl_keep isl_basic_set
*bset2
);
232 __isl_give isl_set
*isl_set_empty(__isl_take isl_space
*dim
);
233 __isl_give isl_set
*isl_set_universe(__isl_take isl_space
*dim
);
234 __isl_give isl_set
*isl_set_nat_universe(__isl_take isl_space
*dim
);
235 __isl_give isl_set
*isl_set_add_basic_set(__isl_take isl_set
*set
,
236 __isl_take isl_basic_set
*bset
);
237 __isl_give isl_set
*isl_set_copy(__isl_keep isl_set
*set
);
238 __isl_null isl_set
*isl_set_free(__isl_take isl_set
*set
);
240 __isl_give isl_set
*isl_set_from_basic_set(__isl_take isl_basic_set
*bset
);
242 __isl_give isl_basic_set
*isl_set_sample(__isl_take isl_set
*set
);
243 __isl_give isl_point
*isl_basic_set_sample_point(__isl_take isl_basic_set
*bset
);
244 __isl_give isl_point
*isl_set_sample_point(__isl_take isl_set
*set
);
246 __isl_give isl_set
*isl_set_detect_equalities(__isl_take isl_set
*set
);
248 __isl_give isl_basic_set
*isl_set_affine_hull(__isl_take isl_set
*set
);
249 __isl_give isl_basic_set
*isl_set_convex_hull(__isl_take isl_set
*set
);
251 __isl_give isl_basic_set
*isl_set_polyhedral_hull(__isl_take isl_set
*set
);
252 __isl_give isl_basic_set
*isl_set_simple_hull(__isl_take isl_set
*set
);
253 __isl_give isl_basic_set
*isl_set_unshifted_simple_hull(
254 __isl_take isl_set
*set
);
255 __isl_give isl_basic_set
*isl_set_unshifted_simple_hull_from_set_list(
256 __isl_take isl_set
*set
, __isl_take isl_set_list
*list
);
257 struct isl_basic_set
*isl_set_bounded_simple_hull(struct isl_set
*set
);
258 __isl_give isl_set
*isl_set_recession_cone(__isl_take isl_set
*set
);
260 struct isl_set
*isl_set_union_disjoint(
261 struct isl_set
*set1
, struct isl_set
*set2
);
263 __isl_give isl_set
*isl_set_union(
264 __isl_take isl_set
*set1
,
265 __isl_take isl_set
*set2
);
266 __isl_give isl_set
*isl_set_product(__isl_take isl_set
*set1
,
267 __isl_take isl_set
*set2
);
268 __isl_give isl_basic_set
*isl_basic_set_flat_product(
269 __isl_take isl_basic_set
*bset1
, __isl_take isl_basic_set
*bset2
);
270 __isl_give isl_set
*isl_set_flat_product(__isl_take isl_set
*set1
,
271 __isl_take isl_set
*set2
);
273 __isl_give isl_set
*isl_set_intersect(
274 __isl_take isl_set
*set1
,
275 __isl_take isl_set
*set2
);
277 __isl_give isl_set
*isl_set_intersect_params(__isl_take isl_set
*set
,
278 __isl_take isl_set
*params
);
280 __isl_give isl_set
*isl_set_subtract(
281 __isl_take isl_set
*set1
,
282 __isl_take isl_set
*set2
);
284 __isl_give isl_set
*isl_set_complement(__isl_take isl_set
*set
);
286 __isl_give isl_set
*isl_set_apply(
287 __isl_take isl_set
*set
,
288 __isl_take isl_map
*map
);
289 __isl_give isl_set
*isl_set_preimage_multi_aff(__isl_take isl_set
*set
,
290 __isl_take isl_multi_aff
*ma
);
291 __isl_give isl_set
*isl_set_preimage_pw_multi_aff(__isl_take isl_set
*set
,
292 __isl_take isl_pw_multi_aff
*pma
);
293 __isl_give isl_set
*isl_set_preimage_multi_pw_aff(__isl_take isl_set
*set
,
294 __isl_take isl_multi_pw_aff
*mpa
);
295 __isl_give isl_set
*isl_set_fix_val(__isl_take isl_set
*set
,
296 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*v
);
297 struct isl_set
*isl_set_fix_dim_si(struct isl_set
*set
,
298 unsigned dim
, int value
);
299 __isl_give isl_basic_set
*isl_basic_set_insert_dims(
300 __isl_take isl_basic_set
*bset
,
301 enum isl_dim_type type
, unsigned pos
, unsigned n
);
302 __isl_give isl_set
*isl_set_insert_dims(__isl_take isl_set
*set
,
303 enum isl_dim_type type
, unsigned pos
, unsigned n
);
304 __isl_give isl_basic_set
*isl_basic_set_add_dims(__isl_take isl_basic_set
*bset
,
305 enum isl_dim_type type
, unsigned n
);
307 __isl_give isl_basic_set
*isl_basic_set_add(__isl_take isl_basic_set
*bset
,
308 enum isl_dim_type type
, unsigned n
);
309 __isl_give isl_set
*isl_set_add_dims(__isl_take isl_set
*set
,
310 enum isl_dim_type type
, unsigned n
);
311 __isl_give isl_basic_set
*isl_basic_set_move_dims(__isl_take isl_basic_set
*bset
,
312 enum isl_dim_type dst_type
, unsigned dst_pos
,
313 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
314 __isl_give isl_set
*isl_set_move_dims(__isl_take isl_set
*set
,
315 enum isl_dim_type dst_type
, unsigned dst_pos
,
316 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
317 __isl_give isl_basic_set
*isl_basic_set_project_out(
318 __isl_take isl_basic_set
*bset
,
319 enum isl_dim_type type
, unsigned first
, unsigned n
);
320 __isl_give isl_set
*isl_set_project_out(__isl_take isl_set
*set
,
321 enum isl_dim_type type
, unsigned first
, unsigned n
);
322 __isl_give isl_basic_set
*isl_basic_set_remove_divs(
323 __isl_take isl_basic_set
*bset
);
324 __isl_give isl_basic_set
*isl_basic_set_eliminate(
325 __isl_take isl_basic_set
*bset
,
326 enum isl_dim_type type
, unsigned first
, unsigned n
);
327 __isl_give isl_set
*isl_set_eliminate(__isl_take isl_set
*set
,
328 enum isl_dim_type type
, unsigned first
, unsigned n
);
329 struct isl_set
*isl_set_eliminate_dims(struct isl_set
*set
,
330 unsigned first
, unsigned n
);
331 __isl_give isl_set
*isl_set_remove_dims(__isl_take isl_set
*bset
,
332 enum isl_dim_type type
, unsigned first
, unsigned n
);
333 __isl_give isl_basic_set
*isl_basic_set_remove_divs_involving_dims(
334 __isl_take isl_basic_set
*bset
,
335 enum isl_dim_type type
, unsigned first
, unsigned n
);
336 __isl_give isl_set
*isl_set_remove_divs_involving_dims(__isl_take isl_set
*set
,
337 enum isl_dim_type type
, unsigned first
, unsigned n
);
338 __isl_give isl_basic_set
*isl_basic_set_remove_unknown_divs(
339 __isl_take isl_basic_set
*bset
);
340 __isl_give isl_set
*isl_set_remove_unknown_divs(__isl_take isl_set
*set
);
341 __isl_give isl_set
*isl_set_remove_divs(__isl_take isl_set
*set
);
342 __isl_give isl_set
*isl_set_split_dims(__isl_take isl_set
*set
,
343 enum isl_dim_type type
, unsigned first
, unsigned n
);
345 __isl_give isl_basic_set
*isl_basic_set_drop_constraints_involving_dims(
346 __isl_take isl_basic_set
*bset
,
347 enum isl_dim_type type
, unsigned first
, unsigned n
);
348 __isl_give isl_basic_set
*isl_basic_set_drop_constraints_not_involving_dims(
349 __isl_take isl_basic_set
*bset
,
350 enum isl_dim_type type
, unsigned first
, unsigned n
);
351 __isl_give isl_set
*isl_set_drop_constraints_involving_dims(
352 __isl_take isl_set
*set
,
353 enum isl_dim_type type
, unsigned first
, unsigned n
);
355 isl_bool
isl_basic_set_involves_dims(__isl_keep isl_basic_set
*bset
,
356 enum isl_dim_type type
, unsigned first
, unsigned n
);
357 isl_bool
isl_set_involves_dims(__isl_keep isl_set
*set
,
358 enum isl_dim_type type
, unsigned first
, unsigned n
);
360 void isl_set_print_internal(__isl_keep isl_set
*set
, FILE *out
, int indent
);
361 isl_bool
isl_set_plain_is_empty(__isl_keep isl_set
*set
);
362 isl_bool
isl_set_plain_is_universe(__isl_keep isl_set
*set
);
363 isl_bool
isl_set_is_params(__isl_keep isl_set
*set
);
365 isl_bool
isl_set_is_empty(__isl_keep isl_set
*set
);
366 int isl_set_is_bounded(__isl_keep isl_set
*set
);
368 isl_bool
isl_set_is_subset(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
370 isl_bool
isl_set_is_strict_subset(__isl_keep isl_set
*set1
,
371 __isl_keep isl_set
*set2
);
373 isl_bool
isl_set_is_equal(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
375 isl_bool
isl_set_is_disjoint(__isl_keep isl_set
*set1
,
376 __isl_keep isl_set
*set2
);
377 isl_bool
isl_set_is_singleton(__isl_keep isl_set
*set
);
378 int isl_set_is_box(__isl_keep isl_set
*set
);
379 int isl_set_has_equal_space(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
381 __isl_give isl_set
*isl_set_sum(__isl_take isl_set
*set1
,
382 __isl_take isl_set
*set2
);
383 __isl_give isl_basic_set
*isl_basic_set_neg(__isl_take isl_basic_set
*bset
);
384 __isl_give isl_set
*isl_set_neg(__isl_take isl_set
*set
);
386 __isl_give isl_set
*isl_set_make_disjoint(__isl_take isl_set
*set
);
387 struct isl_set
*isl_basic_set_compute_divs(struct isl_basic_set
*bset
);
388 __isl_give isl_set
*isl_set_compute_divs(__isl_take isl_set
*set
);
389 __isl_give isl_set
*isl_set_align_divs(__isl_take isl_set
*set
);
391 struct isl_basic_set
*isl_set_copy_basic_set(struct isl_set
*set
);
392 struct isl_set
*isl_set_drop_basic_set(struct isl_set
*set
,
393 struct isl_basic_set
*bset
);
395 __isl_give isl_val
*isl_set_plain_get_val_if_fixed(__isl_keep isl_set
*set
,
396 enum isl_dim_type type
, unsigned pos
);
397 int isl_set_dim_is_bounded(__isl_keep isl_set
*set
,
398 enum isl_dim_type type
, unsigned pos
);
399 isl_bool
isl_set_dim_has_lower_bound(__isl_keep isl_set
*set
,
400 enum isl_dim_type type
, unsigned pos
);
401 isl_bool
isl_set_dim_has_upper_bound(__isl_keep isl_set
*set
,
402 enum isl_dim_type type
, unsigned pos
);
403 isl_bool
isl_set_dim_has_any_lower_bound(__isl_keep isl_set
*set
,
404 enum isl_dim_type type
, unsigned pos
);
405 isl_bool
isl_set_dim_has_any_upper_bound(__isl_keep isl_set
*set
,
406 enum isl_dim_type type
, unsigned pos
);
409 __isl_give isl_basic_set
*isl_basic_set_gist(__isl_take isl_basic_set
*bset
,
410 __isl_take isl_basic_set
*context
);
411 __isl_give isl_set
*isl_set_gist_basic_set(__isl_take isl_set
*set
,
412 __isl_take isl_basic_set
*context
);
414 __isl_give isl_set
*isl_set_gist(__isl_take isl_set
*set
,
415 __isl_take isl_set
*context
);
416 __isl_give isl_set
*isl_set_gist_params(__isl_take isl_set
*set
,
417 __isl_take isl_set
*context
);
418 isl_stat
isl_set_dim_residue_class_val(__isl_keep isl_set
*set
,
419 int pos
, __isl_give isl_val
**modulo
, __isl_give isl_val
**residue
);
422 __isl_give isl_set
*isl_set_coalesce(__isl_take isl_set
*set
);
424 int isl_set_plain_cmp(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
425 isl_bool
isl_set_plain_is_equal(__isl_keep isl_set
*set1
,
426 __isl_keep isl_set
*set2
);
427 isl_bool
isl_set_plain_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 isl_stat
isl_set_foreach_basic_set(__isl_keep isl_set
*set
,
437 isl_stat (*fn
)(__isl_take isl_basic_set
*bset
, void *user
), void *user
);
439 isl_stat
isl_set_foreach_point(__isl_keep isl_set
*set
,
440 isl_stat (*fn
)(__isl_take isl_point
*pnt
, void *user
), void *user
);
441 __isl_give isl_val
*isl_set_count_val(__isl_keep isl_set
*set
);
443 __isl_give isl_basic_set
*isl_basic_set_from_point(__isl_take isl_point
*pnt
);
444 __isl_give isl_set
*isl_set_from_point(__isl_take isl_point
*pnt
);
445 __isl_give isl_basic_set
*isl_basic_set_box_from_points(
446 __isl_take isl_point
*pnt1
, __isl_take isl_point
*pnt2
);
447 __isl_give isl_set
*isl_set_box_from_points(__isl_take isl_point
*pnt1
,
448 __isl_take isl_point
*pnt2
);
450 __isl_give isl_basic_set
*isl_basic_set_lift(__isl_take isl_basic_set
*bset
);
451 __isl_give isl_set
*isl_set_lift(__isl_take isl_set
*set
);
453 __isl_give isl_map
*isl_set_lex_le_set(__isl_take isl_set
*set1
,
454 __isl_take isl_set
*set2
);
455 __isl_give isl_map
*isl_set_lex_lt_set(__isl_take isl_set
*set1
,
456 __isl_take isl_set
*set2
);
457 __isl_give isl_map
*isl_set_lex_ge_set(__isl_take isl_set
*set1
,
458 __isl_take isl_set
*set2
);
459 __isl_give isl_map
*isl_set_lex_gt_set(__isl_take isl_set
*set1
,
460 __isl_take isl_set
*set2
);
462 int isl_set_size(__isl_keep isl_set
*set
);
464 __isl_give isl_basic_set
*isl_basic_set_align_params(
465 __isl_take isl_basic_set
*bset
, __isl_take isl_space
*model
);
466 __isl_give isl_set
*isl_set_align_params(__isl_take isl_set
*set
,
467 __isl_take isl_space
*model
);
469 __isl_give isl_mat
*isl_basic_set_equalities_matrix(
470 __isl_keep isl_basic_set
*bset
, enum isl_dim_type c1
,
471 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
472 __isl_give isl_mat
*isl_basic_set_inequalities_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_basic_set
*isl_basic_set_from_constraint_matrices(
476 __isl_take isl_space
*dim
,
477 __isl_take isl_mat
*eq
, __isl_take isl_mat
*ineq
, enum isl_dim_type c1
,
478 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
480 __isl_give isl_mat
*isl_basic_set_reduced_basis(__isl_keep isl_basic_set
*bset
);
482 __isl_give isl_basic_set
*isl_basic_set_coefficients(
483 __isl_take isl_basic_set
*bset
);
484 __isl_give isl_basic_set
*isl_set_coefficients(__isl_take isl_set
*set
);
485 __isl_give isl_basic_set
*isl_basic_set_solutions(
486 __isl_take isl_basic_set
*bset
);
487 __isl_give isl_basic_set
*isl_set_solutions(__isl_take isl_set
*set
);
489 __isl_give isl_pw_aff
*isl_set_dim_max(__isl_take isl_set
*set
, int pos
);
490 __isl_give isl_pw_aff
*isl_set_dim_min(__isl_take isl_set
*set
, int pos
);
492 __isl_give
char *isl_set_to_str(__isl_keep isl_set
*set
);
494 #if defined(__cplusplus)