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>
21 #if defined(__cplusplus)
25 unsigned isl_basic_set_n_dim(__isl_keep isl_basic_set
*bset
);
26 unsigned isl_basic_set_n_param(__isl_keep isl_basic_set
*bset
);
27 unsigned isl_basic_set_total_dim(const struct isl_basic_set
*bset
);
28 unsigned isl_basic_set_dim(__isl_keep isl_basic_set
*bset
,
29 enum isl_dim_type type
);
31 unsigned isl_set_n_dim(__isl_keep isl_set
*set
);
32 unsigned isl_set_n_param(__isl_keep isl_set
*set
);
33 unsigned isl_set_dim(__isl_keep isl_set
*set
, enum isl_dim_type type
);
35 isl_ctx
*isl_basic_set_get_ctx(__isl_keep isl_basic_set
*bset
);
36 isl_ctx
*isl_set_get_ctx(__isl_keep isl_set
*set
);
37 __isl_give isl_space
*isl_basic_set_get_space(__isl_keep isl_basic_set
*bset
);
38 __isl_give isl_space
*isl_set_get_space(__isl_keep isl_set
*set
);
39 __isl_give isl_set
*isl_set_reset_space(__isl_take isl_set
*set
,
40 __isl_take isl_space
*dim
);
42 __isl_give isl_aff
*isl_basic_set_get_div(__isl_keep isl_basic_set
*bset
,
45 __isl_give isl_local_space
*isl_basic_set_get_local_space(
46 __isl_keep isl_basic_set
*bset
);
48 const char *isl_basic_set_get_tuple_name(__isl_keep isl_basic_set
*bset
);
49 int isl_set_has_tuple_name(__isl_keep isl_set
*set
);
50 const char *isl_set_get_tuple_name(__isl_keep isl_set
*set
);
51 __isl_give isl_basic_set
*isl_basic_set_set_tuple_name(
52 __isl_take isl_basic_set
*set
, const char *s
);
53 __isl_give isl_set
*isl_set_set_tuple_name(__isl_take isl_set
*set
,
55 const char *isl_basic_set_get_dim_name(__isl_keep isl_basic_set
*bset
,
56 enum isl_dim_type type
, unsigned pos
);
57 __isl_give isl_basic_set
*isl_basic_set_set_dim_name(
58 __isl_take isl_basic_set
*bset
,
59 enum isl_dim_type type
, unsigned pos
, const char *s
);
60 int isl_set_has_dim_name(__isl_keep isl_set
*set
,
61 enum isl_dim_type type
, unsigned pos
);
62 const char *isl_set_get_dim_name(__isl_keep isl_set
*set
,
63 enum isl_dim_type type
, unsigned pos
);
64 __isl_give isl_set
*isl_set_set_dim_name(__isl_take isl_set
*set
,
65 enum isl_dim_type type
, unsigned pos
, const char *s
);
67 __isl_give isl_id
*isl_basic_set_get_dim_id(__isl_keep isl_basic_set
*bset
,
68 enum isl_dim_type type
, unsigned pos
);
69 __isl_give isl_basic_set
*isl_basic_set_set_tuple_id(
70 __isl_take isl_basic_set
*bset
, __isl_take isl_id
*id
);
71 __isl_give isl_set
*isl_set_set_dim_id(__isl_take isl_set
*set
,
72 enum isl_dim_type type
, unsigned pos
, __isl_take isl_id
*id
);
73 int isl_set_has_dim_id(__isl_keep isl_set
*set
,
74 enum isl_dim_type type
, unsigned pos
);
75 __isl_give isl_id
*isl_set_get_dim_id(__isl_keep isl_set
*set
,
76 enum isl_dim_type type
, unsigned pos
);
77 __isl_give isl_set
*isl_set_set_tuple_id(__isl_take isl_set
*set
,
78 __isl_take isl_id
*id
);
79 __isl_give isl_set
*isl_set_reset_tuple_id(__isl_take isl_set
*set
);
80 int isl_set_has_tuple_id(__isl_keep isl_set
*set
);
81 __isl_give isl_id
*isl_set_get_tuple_id(__isl_keep isl_set
*set
);
82 __isl_give isl_set
*isl_set_reset_user(__isl_take isl_set
*set
);
84 int isl_set_find_dim_by_id(__isl_keep isl_set
*set
, enum isl_dim_type type
,
85 __isl_keep isl_id
*id
);
86 int isl_set_find_dim_by_name(__isl_keep isl_set
*set
, enum isl_dim_type type
,
89 int isl_basic_set_is_rational(__isl_keep isl_basic_set
*bset
);
91 __isl_null isl_basic_set
*isl_basic_set_free(__isl_take isl_basic_set
*bset
);
92 __isl_give isl_basic_set
*isl_basic_set_copy(__isl_keep isl_basic_set
*bset
);
93 __isl_give isl_basic_set
*isl_basic_set_empty(__isl_take isl_space
*dim
);
94 __isl_give isl_basic_set
*isl_basic_set_universe(__isl_take isl_space
*dim
);
95 __isl_give isl_basic_set
*isl_basic_set_nat_universe(__isl_take isl_space
*dim
);
96 __isl_give isl_basic_set
*isl_basic_set_positive_orthant(
97 __isl_take isl_space
*space
);
98 void isl_basic_set_print_internal(__isl_keep isl_basic_set
*bset
,
99 FILE *out
, int indent
);
101 __isl_give isl_basic_set
*isl_basic_set_intersect(
102 __isl_take isl_basic_set
*bset1
,
103 __isl_take isl_basic_set
*bset2
);
105 __isl_give isl_basic_set
*isl_basic_set_intersect_params(
106 __isl_take isl_basic_set
*bset1
, __isl_take isl_basic_set
*bset2
);
108 __isl_give isl_basic_set
*isl_basic_set_apply(
109 __isl_take isl_basic_set
*bset
,
110 __isl_take isl_basic_map
*bmap
);
111 __isl_give isl_basic_set
*isl_basic_set_preimage_multi_aff(
112 __isl_take isl_basic_set
*bset
, __isl_take isl_multi_aff
*ma
);
114 __isl_give isl_basic_set
*isl_basic_set_affine_hull(
115 __isl_take isl_basic_set
*bset
);
116 __isl_give isl_basic_set
*isl_basic_set_remove_dims(
117 __isl_take isl_basic_set
*bset
,
118 enum isl_dim_type type
, unsigned first
, unsigned n
);
120 __isl_give isl_basic_set
*isl_basic_set_sample(__isl_take isl_basic_set
*bset
);
122 __isl_give isl_basic_set
*isl_basic_set_detect_equalities(
123 __isl_take isl_basic_set
*bset
);
124 __isl_give isl_basic_set
*isl_basic_set_remove_redundancies(
125 __isl_take isl_basic_set
*bset
);
126 __isl_give isl_set
*isl_set_remove_redundancies(__isl_take isl_set
*set
);
127 __isl_give isl_basic_set
*isl_basic_set_list_intersect(
128 __isl_take
struct isl_basic_set_list
*list
);
129 __isl_give isl_basic_set
*isl_basic_set_list_product(
130 __isl_take
struct isl_basic_set_list
*list
);
132 __isl_give isl_basic_set
*isl_basic_set_read_from_file(isl_ctx
*ctx
,
135 __isl_give isl_basic_set
*isl_basic_set_read_from_str(isl_ctx
*ctx
,
137 __isl_give isl_set
*isl_set_read_from_file(isl_ctx
*ctx
, FILE *input
);
139 __isl_give isl_set
*isl_set_read_from_str(isl_ctx
*ctx
, const char *str
);
140 void isl_basic_set_dump(__isl_keep isl_basic_set
*bset
);
141 void isl_set_dump(__isl_keep isl_set
*set
);
142 __isl_give isl_printer
*isl_printer_print_basic_set(
143 __isl_take isl_printer
*printer
, __isl_keep isl_basic_set
*bset
);
144 __isl_give isl_printer
*isl_printer_print_set(__isl_take isl_printer
*printer
,
145 __isl_keep isl_set
*map
);
146 __isl_give isl_basic_set
*isl_basic_set_fix_si(__isl_take isl_basic_set
*bset
,
147 enum isl_dim_type type
, unsigned pos
, int value
);
148 __isl_give isl_basic_set
*isl_basic_set_fix_val(__isl_take isl_basic_set
*bset
,
149 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*v
);
150 __isl_give isl_set
*isl_set_fix_si(__isl_take isl_set
*set
,
151 enum isl_dim_type type
, unsigned pos
, int value
);
152 __isl_give isl_set
*isl_set_lower_bound_si(__isl_take isl_set
*set
,
153 enum isl_dim_type type
, unsigned pos
, int value
);
154 __isl_give isl_set
*isl_set_lower_bound_val(__isl_take isl_set
*set
,
155 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*value
);
156 __isl_give isl_set
*isl_set_upper_bound_si(__isl_take isl_set
*set
,
157 enum isl_dim_type type
, unsigned pos
, int value
);
158 __isl_give isl_set
*isl_set_upper_bound_val(__isl_take isl_set
*set
,
159 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*value
);
161 __isl_give isl_set
*isl_set_equate(__isl_take isl_set
*set
,
162 enum isl_dim_type type1
, int pos1
, enum isl_dim_type type2
, int pos2
);
164 struct isl_set
*isl_set_from_underlying_set(
165 struct isl_set
*set
, struct isl_basic_set
*like
);
166 struct isl_set
*isl_set_to_underlying_set(struct isl_set
*set
);
169 int isl_basic_set_is_equal(
170 struct isl_basic_set
*bset1
, struct isl_basic_set
*bset2
);
171 int 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 int isl_basic_set_is_universe(__isl_keep isl_basic_set
*bset
);
225 int isl_basic_set_plain_is_empty(__isl_keep isl_basic_set
*bset
);
227 int isl_basic_set_is_empty(__isl_keep isl_basic_set
*bset
);
228 int isl_basic_set_is_bounded(__isl_keep isl_basic_set
*bset
);
230 int isl_basic_set_is_subset(__isl_keep isl_basic_set
*bset1
,
231 __isl_keep isl_basic_set
*bset2
);
232 int isl_basic_set_plain_is_equal(__isl_keep isl_basic_set
*bset1
,
233 __isl_keep isl_basic_set
*bset2
);
235 struct isl_set
*isl_set_alloc(struct isl_ctx
*ctx
,
236 unsigned nparam
, unsigned dim
, int n
, unsigned flags
);
237 __isl_give isl_set
*isl_set_empty(__isl_take isl_space
*dim
);
238 __isl_give isl_set
*isl_set_universe(__isl_take isl_space
*dim
);
239 __isl_give isl_set
*isl_set_nat_universe(__isl_take isl_space
*dim
);
240 __isl_give isl_set
*isl_set_add_basic_set(__isl_take isl_set
*set
,
241 __isl_take isl_basic_set
*bset
);
242 struct isl_set
*isl_set_finalize(struct isl_set
*set
);
243 __isl_give isl_set
*isl_set_copy(__isl_keep isl_set
*set
);
244 __isl_null isl_set
*isl_set_free(__isl_take isl_set
*set
);
245 struct isl_set
*isl_set_dup(struct isl_set
*set
);
247 __isl_give isl_set
*isl_set_from_basic_set(__isl_take isl_basic_set
*bset
);
249 __isl_give isl_basic_set
*isl_set_sample(__isl_take isl_set
*set
);
250 __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
);
260 __isl_give isl_basic_set
*isl_set_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
);
265 __isl_give isl_set
*isl_set_recession_cone(__isl_take isl_set
*set
);
267 struct isl_set
*isl_set_union_disjoint(
268 struct isl_set
*set1
, struct isl_set
*set2
);
270 __isl_give isl_set
*isl_set_union(
271 __isl_take isl_set
*set1
,
272 __isl_take isl_set
*set2
);
273 __isl_give isl_set
*isl_set_product(__isl_take isl_set
*set1
,
274 __isl_take isl_set
*set2
);
275 __isl_give isl_basic_set
*isl_basic_set_flat_product(
276 __isl_take isl_basic_set
*bset1
, __isl_take isl_basic_set
*bset2
);
277 __isl_give isl_set
*isl_set_flat_product(__isl_take isl_set
*set1
,
278 __isl_take isl_set
*set2
);
280 __isl_give isl_set
*isl_set_intersect(
281 __isl_take isl_set
*set1
,
282 __isl_take isl_set
*set2
);
284 __isl_give isl_set
*isl_set_intersect_params(__isl_take isl_set
*set
,
285 __isl_take isl_set
*params
);
287 __isl_give isl_set
*isl_set_subtract(
288 __isl_take isl_set
*set1
,
289 __isl_take isl_set
*set2
);
291 __isl_give isl_set
*isl_set_complement(__isl_take isl_set
*set
);
293 __isl_give isl_set
*isl_set_apply(
294 __isl_take isl_set
*set
,
295 __isl_take isl_map
*map
);
296 __isl_give isl_set
*isl_set_preimage_multi_aff(__isl_take isl_set
*set
,
297 __isl_take isl_multi_aff
*ma
);
298 __isl_give isl_set
*isl_set_preimage_pw_multi_aff(__isl_take isl_set
*set
,
299 __isl_take isl_pw_multi_aff
*pma
);
300 __isl_give isl_set
*isl_set_preimage_multi_pw_aff(__isl_take isl_set
*set
,
301 __isl_take isl_multi_pw_aff
*mpa
);
302 __isl_give isl_set
*isl_set_fix_val(__isl_take isl_set
*set
,
303 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*v
);
304 struct isl_set
*isl_set_fix_dim_si(struct isl_set
*set
,
305 unsigned dim
, int value
);
306 __isl_give isl_basic_set
*isl_basic_set_insert_dims(
307 __isl_take isl_basic_set
*bset
,
308 enum isl_dim_type type
, unsigned pos
, unsigned n
);
309 __isl_give isl_set
*isl_set_insert_dims(__isl_take isl_set
*set
,
310 enum isl_dim_type type
, unsigned pos
, unsigned n
);
311 __isl_give isl_basic_set
*isl_basic_set_add_dims(__isl_take isl_basic_set
*bset
,
312 enum isl_dim_type type
, unsigned n
);
314 __isl_give isl_basic_set
*isl_basic_set_add(__isl_take isl_basic_set
*bset
,
315 enum isl_dim_type type
, unsigned n
);
316 __isl_give isl_set
*isl_set_add_dims(__isl_take isl_set
*set
,
317 enum isl_dim_type type
, unsigned n
);
318 __isl_give isl_basic_set
*isl_basic_set_move_dims(__isl_take isl_basic_set
*bset
,
319 enum isl_dim_type dst_type
, unsigned dst_pos
,
320 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
321 __isl_give isl_set
*isl_set_move_dims(__isl_take isl_set
*set
,
322 enum isl_dim_type dst_type
, unsigned dst_pos
,
323 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
324 __isl_give isl_basic_set
*isl_basic_set_project_out(
325 __isl_take isl_basic_set
*bset
,
326 enum isl_dim_type type
, unsigned first
, unsigned n
);
327 __isl_give isl_set
*isl_set_project_out(__isl_take isl_set
*set
,
328 enum isl_dim_type type
, unsigned first
, unsigned n
);
329 __isl_give isl_basic_set
*isl_basic_set_remove_divs(
330 __isl_take isl_basic_set
*bset
);
331 __isl_give isl_basic_set
*isl_basic_set_eliminate(
332 __isl_take isl_basic_set
*bset
,
333 enum isl_dim_type type
, unsigned first
, unsigned n
);
334 __isl_give isl_set
*isl_set_eliminate(__isl_take isl_set
*set
,
335 enum isl_dim_type type
, unsigned first
, unsigned n
);
336 struct isl_set
*isl_set_eliminate_dims(struct isl_set
*set
,
337 unsigned first
, unsigned n
);
338 __isl_give isl_set
*isl_set_remove_dims(__isl_take isl_set
*bset
,
339 enum isl_dim_type type
, unsigned first
, unsigned n
);
340 __isl_give isl_basic_set
*isl_basic_set_remove_divs_involving_dims(
341 __isl_take isl_basic_set
*bset
,
342 enum isl_dim_type type
, unsigned first
, unsigned n
);
343 __isl_give isl_set
*isl_set_remove_divs_involving_dims(__isl_take isl_set
*set
,
344 enum isl_dim_type type
, unsigned first
, unsigned n
);
345 __isl_give isl_basic_set
*isl_basic_set_remove_unknown_divs(
346 __isl_take isl_basic_set
*bset
);
347 __isl_give isl_set
*isl_set_remove_unknown_divs(__isl_take isl_set
*set
);
348 __isl_give isl_set
*isl_set_remove_divs(__isl_take isl_set
*set
);
349 __isl_give isl_set
*isl_set_split_dims(__isl_take isl_set
*set
,
350 enum isl_dim_type type
, unsigned first
, unsigned n
);
352 __isl_give isl_basic_set
*isl_basic_set_drop_constraints_involving_dims(
353 __isl_take isl_basic_set
*bset
,
354 enum isl_dim_type type
, unsigned first
, unsigned n
);
355 __isl_give isl_basic_set
*isl_basic_set_drop_constraints_not_involving_dims(
356 __isl_take isl_basic_set
*bset
,
357 enum isl_dim_type type
, unsigned first
, unsigned n
);
358 __isl_give isl_set
*isl_set_drop_constraints_involving_dims(
359 __isl_take isl_set
*set
,
360 enum isl_dim_type type
, unsigned first
, unsigned n
);
362 int isl_basic_set_involves_dims(__isl_keep isl_basic_set
*bset
,
363 enum isl_dim_type type
, unsigned first
, unsigned n
);
364 int isl_set_involves_dims(__isl_keep isl_set
*set
,
365 enum isl_dim_type type
, unsigned first
, unsigned n
);
367 void isl_set_print_internal(__isl_keep isl_set
*set
, FILE *out
, int indent
);
368 int isl_set_plain_is_empty(__isl_keep isl_set
*set
);
369 int isl_set_plain_is_universe(__isl_keep isl_set
*set
);
370 int isl_set_is_params(__isl_keep isl_set
*set
);
372 int isl_set_is_empty(__isl_keep isl_set
*set
);
373 int isl_set_is_bounded(__isl_keep isl_set
*set
);
375 int isl_set_is_subset(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
377 int isl_set_is_strict_subset(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
379 int isl_set_is_equal(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
381 int isl_set_is_disjoint(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
382 int isl_set_is_singleton(__isl_keep isl_set
*set
);
383 int isl_set_is_box(__isl_keep isl_set
*set
);
384 int isl_set_has_equal_space(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
386 __isl_give isl_set
*isl_set_sum(__isl_take isl_set
*set1
,
387 __isl_take isl_set
*set2
);
388 __isl_give isl_basic_set
*isl_basic_set_neg(__isl_take isl_basic_set
*bset
);
389 __isl_give isl_set
*isl_set_neg(__isl_take isl_set
*set
);
391 __isl_give isl_set
*isl_set_make_disjoint(__isl_take isl_set
*set
);
392 struct isl_set
*isl_basic_set_compute_divs(struct isl_basic_set
*bset
);
393 __isl_give isl_set
*isl_set_compute_divs(__isl_take isl_set
*set
);
394 __isl_give isl_set
*isl_set_align_divs(__isl_take isl_set
*set
);
396 struct isl_basic_set
*isl_set_copy_basic_set(struct isl_set
*set
);
397 struct isl_set
*isl_set_drop_basic_set(struct isl_set
*set
,
398 struct isl_basic_set
*bset
);
400 __isl_give isl_val
*isl_set_plain_get_val_if_fixed(__isl_keep isl_set
*set
,
401 enum isl_dim_type type
, unsigned pos
);
402 int isl_set_dim_is_bounded(__isl_keep isl_set
*set
,
403 enum isl_dim_type type
, unsigned pos
);
404 int isl_set_dim_has_lower_bound(__isl_keep isl_set
*set
,
405 enum isl_dim_type type
, unsigned pos
);
406 int isl_set_dim_has_upper_bound(__isl_keep isl_set
*set
,
407 enum isl_dim_type type
, unsigned pos
);
408 int isl_set_dim_has_any_lower_bound(__isl_keep isl_set
*set
,
409 enum isl_dim_type type
, unsigned pos
);
410 int isl_set_dim_has_any_upper_bound(__isl_keep isl_set
*set
,
411 enum isl_dim_type type
, unsigned pos
);
414 __isl_give isl_basic_set
*isl_basic_set_gist(__isl_take isl_basic_set
*bset
,
415 __isl_take isl_basic_set
*context
);
416 __isl_give isl_set
*isl_set_gist_basic_set(__isl_take isl_set
*set
,
417 __isl_take isl_basic_set
*context
);
419 __isl_give isl_set
*isl_set_gist(__isl_take isl_set
*set
,
420 __isl_take isl_set
*context
);
421 __isl_give isl_set
*isl_set_gist_params(__isl_take isl_set
*set
,
422 __isl_take isl_set
*context
);
423 int isl_set_dim_residue_class_val(__isl_keep isl_set
*set
,
424 int pos
, __isl_give isl_val
**modulo
, __isl_give isl_val
**residue
);
427 __isl_give isl_set
*isl_set_coalesce(__isl_take isl_set
*set
);
429 int isl_set_plain_cmp(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
430 int isl_set_plain_is_equal(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
431 int isl_set_plain_is_disjoint(__isl_keep isl_set
*set1
,
432 __isl_keep isl_set
*set2
);
434 uint32_t isl_set_get_hash(struct isl_set
*set
);
436 int isl_set_dim_is_unique(struct isl_set
*set
, unsigned dim
);
438 int isl_set_n_basic_set(__isl_keep isl_set
*set
);
440 int isl_set_foreach_basic_set(__isl_keep isl_set
*set
,
441 int (*fn
)(__isl_take isl_basic_set
*bset
, void *user
), void *user
);
443 int isl_set_foreach_point(__isl_keep isl_set
*set
,
444 int (*fn
)(__isl_take isl_point
*pnt
, void *user
), void *user
);
445 __isl_give isl_val
*isl_set_count_val(__isl_keep isl_set
*set
);
447 __isl_give isl_basic_set
*isl_basic_set_from_point(__isl_take isl_point
*pnt
);
448 __isl_give isl_set
*isl_set_from_point(__isl_take isl_point
*pnt
);
449 __isl_give isl_basic_set
*isl_basic_set_box_from_points(
450 __isl_take isl_point
*pnt1
, __isl_take isl_point
*pnt2
);
451 __isl_give isl_set
*isl_set_box_from_points(__isl_take isl_point
*pnt1
,
452 __isl_take isl_point
*pnt2
);
454 __isl_give isl_basic_set
*isl_basic_set_lift(__isl_take isl_basic_set
*bset
);
455 __isl_give isl_set
*isl_set_lift(__isl_take isl_set
*set
);
457 __isl_give isl_map
*isl_set_lex_le_set(__isl_take isl_set
*set1
,
458 __isl_take isl_set
*set2
);
459 __isl_give isl_map
*isl_set_lex_lt_set(__isl_take isl_set
*set1
,
460 __isl_take isl_set
*set2
);
461 __isl_give isl_map
*isl_set_lex_ge_set(__isl_take isl_set
*set1
,
462 __isl_take isl_set
*set2
);
463 __isl_give isl_map
*isl_set_lex_gt_set(__isl_take isl_set
*set1
,
464 __isl_take isl_set
*set2
);
466 int isl_set_size(__isl_keep isl_set
*set
);
468 __isl_give isl_basic_set
*isl_basic_set_align_params(
469 __isl_take isl_basic_set
*bset
, __isl_take isl_space
*model
);
470 __isl_give isl_set
*isl_set_align_params(__isl_take isl_set
*set
,
471 __isl_take isl_space
*model
);
473 __isl_give isl_mat
*isl_basic_set_equalities_matrix(
474 __isl_keep isl_basic_set
*bset
, enum isl_dim_type c1
,
475 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
476 __isl_give isl_mat
*isl_basic_set_inequalities_matrix(
477 __isl_keep isl_basic_set
*bset
, enum isl_dim_type c1
,
478 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
479 __isl_give isl_basic_set
*isl_basic_set_from_constraint_matrices(
480 __isl_take isl_space
*dim
,
481 __isl_take isl_mat
*eq
, __isl_take isl_mat
*ineq
, enum isl_dim_type c1
,
482 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
484 __isl_give isl_mat
*isl_basic_set_reduced_basis(__isl_keep isl_basic_set
*bset
);
486 __isl_give isl_basic_set
*isl_basic_set_coefficients(
487 __isl_take isl_basic_set
*bset
);
488 __isl_give isl_basic_set
*isl_set_coefficients(__isl_take isl_set
*set
);
489 __isl_give isl_basic_set
*isl_basic_set_solutions(
490 __isl_take isl_basic_set
*bset
);
491 __isl_give isl_basic_set
*isl_set_solutions(__isl_take isl_set
*set
);
493 __isl_give isl_pw_aff
*isl_set_dim_max(__isl_take isl_set
*set
, int pos
);
494 __isl_give isl_pw_aff
*isl_set_dim_min(__isl_take isl_set
*set
, int pos
);
496 __isl_give
char *isl_set_to_str(__isl_keep isl_set
*set
);
498 #if defined(__cplusplus)