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
*space
);
240 __isl_give isl_set
*isl_set_universe(__isl_take isl_space
*space
);
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
);
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_map
*isl_set_project_onto_map(__isl_take isl_set
*set
,
329 enum isl_dim_type type
, unsigned first
, unsigned n
);
330 __isl_give isl_basic_set
*isl_basic_set_remove_divs(
331 __isl_take isl_basic_set
*bset
);
332 __isl_give isl_basic_set
*isl_basic_set_eliminate(
333 __isl_take isl_basic_set
*bset
,
334 enum isl_dim_type type
, unsigned first
, unsigned n
);
335 __isl_give isl_set
*isl_set_eliminate(__isl_take isl_set
*set
,
336 enum isl_dim_type type
, unsigned first
, unsigned n
);
337 __isl_give isl_set
*isl_set_eliminate_dims(__isl_take isl_set
*set
,
338 unsigned first
, unsigned n
);
339 __isl_give isl_set
*isl_set_remove_dims(__isl_take isl_set
*bset
,
340 enum isl_dim_type type
, unsigned first
, unsigned n
);
341 __isl_give isl_basic_set
*isl_basic_set_remove_divs_involving_dims(
342 __isl_take isl_basic_set
*bset
,
343 enum isl_dim_type type
, unsigned first
, unsigned n
);
344 __isl_give isl_set
*isl_set_remove_divs_involving_dims(__isl_take isl_set
*set
,
345 enum isl_dim_type type
, unsigned first
, unsigned n
);
346 __isl_give isl_basic_set
*isl_basic_set_remove_unknown_divs(
347 __isl_take isl_basic_set
*bset
);
348 __isl_give isl_set
*isl_set_remove_unknown_divs(__isl_take isl_set
*set
);
349 __isl_give isl_set
*isl_set_remove_divs(__isl_take isl_set
*set
);
350 __isl_give isl_set
*isl_set_split_dims(__isl_take isl_set
*set
,
351 enum isl_dim_type type
, unsigned first
, unsigned n
);
353 __isl_give isl_basic_set
*isl_basic_set_drop_constraints_involving_dims(
354 __isl_take isl_basic_set
*bset
,
355 enum isl_dim_type type
, unsigned first
, unsigned n
);
356 __isl_give isl_basic_set
*isl_basic_set_drop_constraints_not_involving_dims(
357 __isl_take isl_basic_set
*bset
,
358 enum isl_dim_type type
, unsigned first
, unsigned n
);
359 __isl_give isl_set
*isl_set_drop_constraints_involving_dims(
360 __isl_take isl_set
*set
,
361 enum isl_dim_type type
, unsigned first
, unsigned n
);
362 __isl_give isl_set
*isl_set_drop_constraints_not_involving_dims(
363 __isl_take isl_set
*set
,
364 enum isl_dim_type type
, unsigned first
, unsigned n
);
366 isl_bool
isl_basic_set_involves_dims(__isl_keep isl_basic_set
*bset
,
367 enum isl_dim_type type
, unsigned first
, unsigned n
);
368 isl_bool
isl_set_involves_dims(__isl_keep isl_set
*set
,
369 enum isl_dim_type type
, unsigned first
, unsigned n
);
371 void isl_set_print_internal(__isl_keep isl_set
*set
, FILE *out
, int indent
);
372 isl_bool
isl_set_plain_is_empty(__isl_keep isl_set
*set
);
373 isl_bool
isl_set_plain_is_universe(__isl_keep isl_set
*set
);
374 isl_bool
isl_set_is_params(__isl_keep isl_set
*set
);
376 isl_bool
isl_set_is_empty(__isl_keep isl_set
*set
);
377 isl_bool
isl_set_is_bounded(__isl_keep isl_set
*set
);
379 isl_bool
isl_set_is_subset(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
381 isl_bool
isl_set_is_strict_subset(__isl_keep isl_set
*set1
,
382 __isl_keep isl_set
*set2
);
384 isl_bool
isl_set_is_equal(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
386 isl_bool
isl_set_is_disjoint(__isl_keep isl_set
*set1
,
387 __isl_keep isl_set
*set2
);
388 isl_bool
isl_set_is_singleton(__isl_keep isl_set
*set
);
389 isl_bool
isl_set_is_box(__isl_keep isl_set
*set
);
390 isl_bool
isl_set_has_equal_space(__isl_keep isl_set
*set1
,
391 __isl_keep isl_set
*set2
);
393 __isl_give isl_set
*isl_set_sum(__isl_take isl_set
*set1
,
394 __isl_take isl_set
*set2
);
395 __isl_give isl_basic_set
*isl_basic_set_neg(__isl_take isl_basic_set
*bset
);
396 __isl_give isl_set
*isl_set_neg(__isl_take isl_set
*set
);
398 __isl_give isl_set
*isl_set_make_disjoint(__isl_take isl_set
*set
);
399 __isl_give isl_set
*isl_basic_set_compute_divs(__isl_take isl_basic_set
*bset
);
400 __isl_give isl_set
*isl_set_compute_divs(__isl_take isl_set
*set
);
402 __isl_give isl_set
*isl_set_align_divs(__isl_take isl_set
*set
);
404 __isl_give isl_val
*isl_set_plain_get_val_if_fixed(__isl_keep isl_set
*set
,
405 enum isl_dim_type type
, unsigned pos
);
406 isl_bool
isl_set_dim_is_bounded(__isl_keep isl_set
*set
,
407 enum isl_dim_type type
, unsigned pos
);
408 isl_bool
isl_set_dim_has_lower_bound(__isl_keep isl_set
*set
,
409 enum isl_dim_type type
, unsigned pos
);
410 isl_bool
isl_set_dim_has_upper_bound(__isl_keep isl_set
*set
,
411 enum isl_dim_type type
, unsigned pos
);
412 isl_bool
isl_set_dim_has_any_lower_bound(__isl_keep isl_set
*set
,
413 enum isl_dim_type type
, unsigned pos
);
414 isl_bool
isl_set_dim_has_any_upper_bound(__isl_keep isl_set
*set
,
415 enum isl_dim_type type
, unsigned pos
);
418 __isl_give isl_basic_set
*isl_basic_set_gist(__isl_take isl_basic_set
*bset
,
419 __isl_take isl_basic_set
*context
);
420 __isl_give isl_set
*isl_set_gist_basic_set(__isl_take isl_set
*set
,
421 __isl_take isl_basic_set
*context
);
423 __isl_give isl_set
*isl_set_gist(__isl_take isl_set
*set
,
424 __isl_take isl_set
*context
);
425 __isl_give isl_set
*isl_set_gist_params(__isl_take isl_set
*set
,
426 __isl_take isl_set
*context
);
427 isl_stat
isl_set_dim_residue_class_val(__isl_keep isl_set
*set
,
428 int pos
, __isl_give isl_val
**modulo
, __isl_give isl_val
**residue
);
430 struct isl_stride_info
;
431 typedef struct isl_stride_info isl_stride_info
;
432 __isl_give isl_val
*isl_stride_info_get_stride(__isl_keep isl_stride_info
*si
);
433 __isl_give isl_aff
*isl_stride_info_get_offset(__isl_keep isl_stride_info
*si
);
434 __isl_null isl_stride_info
*isl_stride_info_free(
435 __isl_take isl_stride_info
*si
);
436 __isl_give isl_stride_info
*isl_set_get_stride_info(__isl_keep isl_set
*set
,
439 __isl_give isl_val
*isl_set_get_stride(__isl_keep isl_set
*set
, int pos
);
442 __isl_give isl_set
*isl_set_coalesce(__isl_take isl_set
*set
);
444 int isl_set_plain_cmp(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
445 isl_bool
isl_set_plain_is_equal(__isl_keep isl_set
*set1
,
446 __isl_keep isl_set
*set2
);
447 isl_bool
isl_set_plain_is_disjoint(__isl_keep isl_set
*set1
,
448 __isl_keep isl_set
*set2
);
450 uint32_t isl_set_get_hash(struct isl_set
*set
);
452 int isl_set_n_basic_set(__isl_keep isl_set
*set
);
454 isl_stat
isl_set_foreach_basic_set(__isl_keep isl_set
*set
,
455 isl_stat (*fn
)(__isl_take isl_basic_set
*bset
, void *user
), void *user
);
456 __isl_give isl_basic_set_list
*isl_set_get_basic_set_list(
457 __isl_keep isl_set
*set
);
459 isl_stat
isl_set_foreach_point(__isl_keep isl_set
*set
,
460 isl_stat (*fn
)(__isl_take isl_point
*pnt
, void *user
), void *user
);
461 __isl_give isl_val
*isl_set_count_val(__isl_keep isl_set
*set
);
464 __isl_give isl_basic_set
*isl_basic_set_from_point(__isl_take isl_point
*pnt
);
466 __isl_give isl_set
*isl_set_from_point(__isl_take isl_point
*pnt
);
467 __isl_give isl_basic_set
*isl_basic_set_box_from_points(
468 __isl_take isl_point
*pnt1
, __isl_take isl_point
*pnt2
);
469 __isl_give isl_set
*isl_set_box_from_points(__isl_take isl_point
*pnt1
,
470 __isl_take isl_point
*pnt2
);
472 __isl_give isl_basic_set
*isl_basic_set_lift(__isl_take isl_basic_set
*bset
);
473 __isl_give isl_set
*isl_set_lift(__isl_take isl_set
*set
);
475 __isl_give isl_map
*isl_set_lex_le_set(__isl_take isl_set
*set1
,
476 __isl_take isl_set
*set2
);
477 __isl_give isl_map
*isl_set_lex_lt_set(__isl_take isl_set
*set1
,
478 __isl_take isl_set
*set2
);
479 __isl_give isl_map
*isl_set_lex_ge_set(__isl_take isl_set
*set1
,
480 __isl_take isl_set
*set2
);
481 __isl_give isl_map
*isl_set_lex_gt_set(__isl_take isl_set
*set1
,
482 __isl_take isl_set
*set2
);
484 int isl_set_size(__isl_keep isl_set
*set
);
486 __isl_give isl_basic_set
*isl_basic_set_align_params(
487 __isl_take isl_basic_set
*bset
, __isl_take isl_space
*model
);
488 __isl_give isl_set
*isl_set_align_params(__isl_take isl_set
*set
,
489 __isl_take isl_space
*model
);
491 __isl_give isl_mat
*isl_basic_set_equalities_matrix(
492 __isl_keep isl_basic_set
*bset
, enum isl_dim_type c1
,
493 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
494 __isl_give isl_mat
*isl_basic_set_inequalities_matrix(
495 __isl_keep isl_basic_set
*bset
, enum isl_dim_type c1
,
496 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
497 __isl_give isl_basic_set
*isl_basic_set_from_constraint_matrices(
498 __isl_take isl_space
*dim
,
499 __isl_take isl_mat
*eq
, __isl_take isl_mat
*ineq
, enum isl_dim_type c1
,
500 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
502 __isl_give isl_mat
*isl_basic_set_reduced_basis(__isl_keep isl_basic_set
*bset
);
504 __isl_give isl_basic_set
*isl_basic_set_coefficients(
505 __isl_take isl_basic_set
*bset
);
506 __isl_give isl_basic_set_list
*isl_basic_set_list_coefficients(
507 __isl_take isl_basic_set_list
*list
);
508 __isl_give isl_basic_set
*isl_set_coefficients(__isl_take isl_set
*set
);
509 __isl_give isl_basic_set
*isl_basic_set_solutions(
510 __isl_take isl_basic_set
*bset
);
511 __isl_give isl_basic_set
*isl_set_solutions(__isl_take isl_set
*set
);
513 __isl_give isl_pw_aff
*isl_set_dim_max(__isl_take isl_set
*set
, int pos
);
514 __isl_give isl_pw_aff
*isl_set_dim_min(__isl_take isl_set
*set
, int pos
);
516 __isl_give
char *isl_basic_set_to_str(__isl_keep isl_basic_set
*bset
);
517 __isl_give
char *isl_set_to_str(__isl_keep isl_set
*set
);
519 #if defined(__cplusplus)