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_set
*isl_set_set_dim_id(__isl_take isl_set
*set
,
70 enum isl_dim_type type
, unsigned pos
, __isl_take isl_id
*id
);
71 int isl_set_has_dim_id(__isl_keep isl_set
*set
,
72 enum isl_dim_type type
, unsigned pos
);
73 __isl_give isl_id
*isl_set_get_dim_id(__isl_keep isl_set
*set
,
74 enum isl_dim_type type
, unsigned pos
);
75 __isl_give isl_set
*isl_set_set_tuple_id(__isl_take isl_set
*set
,
76 __isl_take isl_id
*id
);
77 __isl_give isl_set
*isl_set_reset_tuple_id(__isl_take isl_set
*set
);
78 int isl_set_has_tuple_id(__isl_keep isl_set
*set
);
79 __isl_give isl_id
*isl_set_get_tuple_id(__isl_keep isl_set
*set
);
81 int isl_set_find_dim_by_id(__isl_keep isl_set
*set
, enum isl_dim_type type
,
82 __isl_keep isl_id
*id
);
83 int isl_set_find_dim_by_name(__isl_keep isl_set
*set
, enum isl_dim_type type
,
86 int isl_basic_set_is_rational(__isl_keep isl_basic_set
*bset
);
88 struct isl_basic_set
*isl_basic_set_alloc(struct isl_ctx
*ctx
,
89 unsigned nparam
, unsigned dim
, unsigned extra
,
90 unsigned n_eq
, unsigned n_ineq
);
91 struct isl_basic_set
*isl_basic_set_extend(struct isl_basic_set
*base
,
92 unsigned nparam
, unsigned dim
, unsigned extra
,
93 unsigned n_eq
, unsigned n_ineq
);
94 struct isl_basic_set
*isl_basic_set_extend_constraints(
95 struct isl_basic_set
*base
, unsigned n_eq
, unsigned n_ineq
);
96 struct isl_basic_set
*isl_basic_set_finalize(struct isl_basic_set
*bset
);
97 void *isl_basic_set_free(__isl_take isl_basic_set
*bset
);
98 __isl_give isl_basic_set
*isl_basic_set_copy(__isl_keep isl_basic_set
*bset
);
99 struct isl_basic_set
*isl_basic_set_dup(struct isl_basic_set
*bset
);
100 __isl_give isl_basic_set
*isl_basic_set_empty(__isl_take isl_space
*dim
);
101 struct isl_basic_set
*isl_basic_set_empty_like(struct isl_basic_set
*bset
);
102 __isl_give isl_basic_set
*isl_basic_set_universe(__isl_take isl_space
*dim
);
103 __isl_give isl_basic_set
*isl_basic_set_nat_universe(__isl_take isl_space
*dim
);
104 struct isl_basic_set
*isl_basic_set_universe_like(struct isl_basic_set
*bset
);
105 __isl_give isl_basic_set
*isl_basic_set_universe_like_set(
106 __isl_keep isl_set
*model
);
107 struct isl_basic_set
*isl_basic_set_interval(struct isl_ctx
*ctx
,
108 isl_int min
, isl_int max
);
109 __isl_give isl_basic_set
*isl_basic_set_positive_orthant(
110 __isl_take isl_space
*space
);
111 void isl_basic_set_print_internal(__isl_keep isl_basic_set
*bset
,
112 FILE *out
, int indent
);
114 __isl_give isl_basic_set
*isl_basic_set_intersect(
115 __isl_take isl_basic_set
*bset1
,
116 __isl_take isl_basic_set
*bset2
);
118 __isl_give isl_basic_set
*isl_basic_set_intersect_params(
119 __isl_take isl_basic_set
*bset1
, __isl_take isl_basic_set
*bset2
);
121 __isl_give isl_basic_set
*isl_basic_set_apply(
122 __isl_take isl_basic_set
*bset
,
123 __isl_take isl_basic_map
*bmap
);
124 __isl_give isl_basic_set
*isl_basic_set_preimage_multi_aff(
125 __isl_take isl_basic_set
*bset
, __isl_take isl_multi_aff
*ma
);
127 __isl_give isl_basic_set
*isl_basic_set_affine_hull(
128 __isl_take isl_basic_set
*bset
);
129 __isl_give isl_basic_set
*isl_basic_set_remove_dims(
130 __isl_take isl_basic_set
*bset
,
131 enum isl_dim_type type
, unsigned first
, unsigned n
);
133 __isl_give isl_basic_set
*isl_basic_set_sample(__isl_take isl_basic_set
*bset
);
134 struct isl_basic_set
*isl_basic_set_simplify(struct isl_basic_set
*bset
);
136 __isl_give isl_basic_set
*isl_basic_set_detect_equalities(
137 __isl_take isl_basic_set
*bset
);
138 __isl_give isl_basic_set
*isl_basic_set_remove_redundancies(
139 __isl_take isl_basic_set
*bset
);
140 __isl_give isl_set
*isl_set_remove_redundancies(__isl_take isl_set
*set
);
141 __isl_give isl_basic_set
*isl_basic_set_list_product(
142 __isl_take
struct isl_basic_set_list
*list
);
144 __isl_give isl_basic_set
*isl_basic_set_read_from_file(isl_ctx
*ctx
,
147 __isl_give isl_basic_set
*isl_basic_set_read_from_str(isl_ctx
*ctx
,
149 __isl_give isl_set
*isl_set_read_from_file(isl_ctx
*ctx
, FILE *input
);
151 __isl_give isl_set
*isl_set_read_from_str(isl_ctx
*ctx
, const char *str
);
152 void isl_basic_set_dump(__isl_keep isl_basic_set
*bset
);
153 void isl_set_dump(__isl_keep isl_set
*set
);
154 __isl_give isl_printer
*isl_printer_print_basic_set(
155 __isl_take isl_printer
*printer
, __isl_keep isl_basic_set
*bset
);
156 __isl_give isl_printer
*isl_printer_print_set(__isl_take isl_printer
*printer
,
157 __isl_keep isl_set
*map
);
158 void isl_basic_set_print(__isl_keep isl_basic_set
*bset
, FILE *out
, int indent
,
159 const char *prefix
, const char *suffix
, unsigned output_format
);
160 void isl_set_print(__isl_keep
struct isl_set
*set
, FILE *out
, int indent
,
161 unsigned output_format
);
162 __isl_give isl_basic_set
*isl_basic_set_fix(__isl_take isl_basic_set
*bset
,
163 enum isl_dim_type type
, unsigned pos
, isl_int value
);
164 __isl_give isl_basic_set
*isl_basic_set_fix_si(__isl_take isl_basic_set
*bset
,
165 enum isl_dim_type type
, unsigned pos
, int value
);
166 __isl_give isl_basic_set
*isl_basic_set_fix_val(__isl_take isl_basic_set
*bset
,
167 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*v
);
168 __isl_give isl_set
*isl_set_fix_si(__isl_take isl_set
*set
,
169 enum isl_dim_type type
, unsigned pos
, int value
);
170 __isl_give isl_set
*isl_set_lower_bound_si(__isl_take isl_set
*set
,
171 enum isl_dim_type type
, unsigned pos
, int value
);
172 __isl_give isl_set
*isl_set_lower_bound(__isl_take isl_set
*set
,
173 enum isl_dim_type type
, unsigned pos
, isl_int value
);
174 __isl_give isl_set
*isl_set_lower_bound_val(__isl_take isl_set
*set
,
175 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*value
);
176 __isl_give isl_set
*isl_set_upper_bound_si(__isl_take isl_set
*set
,
177 enum isl_dim_type type
, unsigned pos
, int value
);
178 __isl_give isl_set
*isl_set_upper_bound(__isl_take isl_set
*set
,
179 enum isl_dim_type type
, unsigned pos
, isl_int value
);
180 __isl_give isl_set
*isl_set_upper_bound_val(__isl_take isl_set
*set
,
181 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*value
);
183 __isl_give isl_set
*isl_set_equate(__isl_take isl_set
*set
,
184 enum isl_dim_type type1
, int pos1
, enum isl_dim_type type2
, int pos2
);
186 struct isl_basic_set
*isl_basic_set_from_underlying_set(
187 struct isl_basic_set
*bset
, struct isl_basic_set
*like
);
188 struct isl_set
*isl_set_from_underlying_set(
189 struct isl_set
*set
, struct isl_basic_set
*like
);
190 struct isl_set
*isl_set_to_underlying_set(struct isl_set
*set
);
193 int isl_basic_set_is_equal(
194 struct isl_basic_set
*bset1
, struct isl_basic_set
*bset2
);
196 __isl_give isl_set
*isl_basic_set_partial_lexmin(
197 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
198 __isl_give isl_set
**empty
);
199 __isl_give isl_set
*isl_basic_set_partial_lexmax(
200 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
201 __isl_give isl_set
**empty
);
202 __isl_give isl_set
*isl_set_partial_lexmin(
203 __isl_take isl_set
*set
, __isl_take isl_set
*dom
,
204 __isl_give isl_set
**empty
);
205 __isl_give isl_set
*isl_set_partial_lexmax(
206 __isl_take isl_set
*set
, __isl_take isl_set
*dom
,
207 __isl_give isl_set
**empty
);
209 __isl_give isl_set
*isl_basic_set_lexmin(__isl_take isl_basic_set
*bset
);
211 __isl_give isl_set
*isl_basic_set_lexmax(__isl_take isl_basic_set
*bset
);
213 __isl_give isl_set
*isl_set_lexmin(__isl_take isl_set
*set
);
215 __isl_give isl_set
*isl_set_lexmax(__isl_take isl_set
*set
);
216 __isl_give isl_pw_multi_aff
*isl_basic_set_partial_lexmin_pw_multi_aff(
217 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
218 __isl_give isl_set
**empty
);
219 __isl_give isl_pw_multi_aff
*isl_basic_set_partial_lexmax_pw_multi_aff(
220 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
221 __isl_give isl_set
**empty
);
222 __isl_give isl_pw_multi_aff
*isl_set_lexmin_pw_multi_aff(
223 __isl_take isl_set
*set
);
224 __isl_give isl_pw_multi_aff
*isl_set_lexmax_pw_multi_aff(
225 __isl_take isl_set
*set
);
228 __isl_give isl_set
*isl_basic_set_union(
229 __isl_take isl_basic_set
*bset1
,
230 __isl_take isl_basic_set
*bset2
);
232 int isl_basic_set_compare_at(struct isl_basic_set
*bset1
,
233 struct isl_basic_set
*bset2
, int pos
);
234 int isl_set_follows_at(__isl_keep isl_set
*set1
,
235 __isl_keep isl_set
*set2
, int pos
);
237 __isl_give isl_basic_set
*isl_basic_set_params(__isl_take isl_basic_set
*bset
);
238 __isl_give isl_basic_set
*isl_basic_set_from_params(
239 __isl_take isl_basic_set
*bset
);
240 __isl_give isl_set
*isl_set_params(__isl_take isl_set
*set
);
241 __isl_give isl_set
*isl_set_from_params(__isl_take isl_set
*set
);
243 int isl_basic_set_dims_get_sign(__isl_keep isl_basic_set
*bset
,
244 enum isl_dim_type type
, unsigned pos
, unsigned n
, int *signs
);
246 int isl_basic_set_is_universe(__isl_keep isl_basic_set
*bset
);
247 int isl_basic_set_plain_is_empty(__isl_keep isl_basic_set
*bset
);
248 int isl_basic_set_fast_is_empty(__isl_keep isl_basic_set
*bset
);
250 int isl_basic_set_is_empty(__isl_keep isl_basic_set
*bset
);
251 int isl_basic_set_is_bounded(__isl_keep isl_basic_set
*bset
);
253 int isl_basic_set_is_subset(__isl_keep isl_basic_set
*bset1
,
254 __isl_keep isl_basic_set
*bset2
);
256 struct isl_set
*isl_set_alloc(struct isl_ctx
*ctx
,
257 unsigned nparam
, unsigned dim
, int n
, unsigned flags
);
258 struct isl_set
*isl_set_extend(struct isl_set
*base
,
259 unsigned nparam
, unsigned dim
);
260 __isl_give isl_set
*isl_set_empty(__isl_take isl_space
*dim
);
261 struct isl_set
*isl_set_empty_like(struct isl_set
*set
);
262 __isl_give isl_set
*isl_set_universe(__isl_take isl_space
*dim
);
263 __isl_give isl_set
*isl_set_nat_universe(__isl_take isl_space
*dim
);
264 __isl_give isl_set
*isl_set_universe_like(__isl_keep isl_set
*model
);
265 __isl_give isl_set
*isl_set_add_basic_set(__isl_take isl_set
*set
,
266 __isl_take isl_basic_set
*bset
);
267 struct isl_set
*isl_set_finalize(struct isl_set
*set
);
268 __isl_give isl_set
*isl_set_copy(__isl_keep isl_set
*set
);
269 void *isl_set_free(__isl_take isl_set
*set
);
270 struct isl_set
*isl_set_dup(struct isl_set
*set
);
272 __isl_give isl_set
*isl_set_from_basic_set(__isl_take isl_basic_set
*bset
);
274 __isl_give isl_basic_set
*isl_set_sample(__isl_take isl_set
*set
);
275 __isl_give isl_point
*isl_basic_set_sample_point(__isl_take isl_basic_set
*bset
);
276 __isl_give isl_point
*isl_set_sample_point(__isl_take isl_set
*set
);
278 __isl_give isl_set
*isl_set_detect_equalities(__isl_take isl_set
*set
);
280 __isl_give isl_basic_set
*isl_set_affine_hull(__isl_take isl_set
*set
);
281 __isl_give isl_basic_set
*isl_set_convex_hull(__isl_take isl_set
*set
);
283 __isl_give isl_basic_set
*isl_set_polyhedral_hull(__isl_take isl_set
*set
);
284 __isl_give isl_basic_set
*isl_set_simple_hull(__isl_take isl_set
*set
);
285 __isl_give isl_basic_set
*isl_set_unshifted_simple_hull(
286 __isl_take isl_set
*set
);
287 struct isl_basic_set
*isl_set_bounded_simple_hull(struct isl_set
*set
);
288 __isl_give isl_set
*isl_set_recession_cone(__isl_take isl_set
*set
);
290 struct isl_set
*isl_set_union_disjoint(
291 struct isl_set
*set1
, struct isl_set
*set2
);
293 __isl_give isl_set
*isl_set_union(
294 __isl_take isl_set
*set1
,
295 __isl_take isl_set
*set2
);
296 __isl_give isl_set
*isl_set_product(__isl_take isl_set
*set1
,
297 __isl_take isl_set
*set2
);
298 __isl_give isl_basic_set
*isl_basic_set_flat_product(
299 __isl_take isl_basic_set
*bset1
, __isl_take isl_basic_set
*bset2
);
300 __isl_give isl_set
*isl_set_flat_product(__isl_take isl_set
*set1
,
301 __isl_take isl_set
*set2
);
303 __isl_give isl_set
*isl_set_intersect(
304 __isl_take isl_set
*set1
,
305 __isl_take isl_set
*set2
);
307 __isl_give isl_set
*isl_set_intersect_params(__isl_take isl_set
*set
,
308 __isl_take isl_set
*params
);
310 __isl_give isl_set
*isl_set_subtract(
311 __isl_take isl_set
*set1
,
312 __isl_take isl_set
*set2
);
314 __isl_give isl_set
*isl_set_complement(__isl_take isl_set
*set
);
316 __isl_give isl_set
*isl_set_apply(
317 __isl_take isl_set
*set
,
318 __isl_take isl_map
*map
);
319 __isl_give isl_set
*isl_set_preimage_multi_aff(__isl_take isl_set
*set
,
320 __isl_take isl_multi_aff
*ma
);
321 __isl_give isl_set
*isl_set_preimage_pw_multi_aff(__isl_take isl_set
*set
,
322 __isl_take isl_pw_multi_aff
*pma
);
323 __isl_give isl_set
*isl_set_fix(__isl_take isl_set
*set
,
324 enum isl_dim_type type
, unsigned pos
, isl_int value
);
325 __isl_give isl_set
*isl_set_fix_val(__isl_take isl_set
*set
,
326 enum isl_dim_type type
, unsigned pos
, __isl_take isl_val
*v
);
327 struct isl_set
*isl_set_fix_dim_si(struct isl_set
*set
,
328 unsigned dim
, int value
);
329 struct isl_set
*isl_set_lower_bound_dim(struct isl_set
*set
,
330 unsigned dim
, isl_int value
);
331 __isl_give isl_basic_set
*isl_basic_set_insert_dims(
332 __isl_take isl_basic_set
*bset
,
333 enum isl_dim_type type
, unsigned pos
, unsigned n
);
334 __isl_give isl_set
*isl_set_insert_dims(__isl_take isl_set
*set
,
335 enum isl_dim_type type
, unsigned pos
, unsigned n
);
336 __isl_give isl_basic_set
*isl_basic_set_add_dims(__isl_take isl_basic_set
*bset
,
337 enum isl_dim_type type
, unsigned n
);
339 __isl_give isl_basic_set
*isl_basic_set_add(__isl_take isl_basic_set
*bset
,
340 enum isl_dim_type type
, unsigned n
);
341 __isl_give isl_set
*isl_set_add_dims(__isl_take isl_set
*set
,
342 enum isl_dim_type type
, unsigned n
);
343 __isl_give isl_basic_set
*isl_basic_set_move_dims(__isl_take isl_basic_set
*bset
,
344 enum isl_dim_type dst_type
, unsigned dst_pos
,
345 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
346 __isl_give isl_set
*isl_set_move_dims(__isl_take isl_set
*set
,
347 enum isl_dim_type dst_type
, unsigned dst_pos
,
348 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
349 __isl_give isl_basic_set
*isl_basic_set_project_out(
350 __isl_take isl_basic_set
*bset
,
351 enum isl_dim_type type
, unsigned first
, unsigned n
);
352 __isl_give isl_set
*isl_set_project_out(__isl_take isl_set
*set
,
353 enum isl_dim_type type
, unsigned first
, unsigned n
);
354 __isl_give isl_basic_set
*isl_basic_set_remove_divs(
355 __isl_take isl_basic_set
*bset
);
356 __isl_give isl_basic_set
*isl_basic_set_eliminate(
357 __isl_take isl_basic_set
*bset
,
358 enum isl_dim_type type
, unsigned first
, unsigned n
);
359 __isl_give isl_set
*isl_set_eliminate(__isl_take isl_set
*set
,
360 enum isl_dim_type type
, unsigned first
, unsigned n
);
361 struct isl_set
*isl_set_eliminate_dims(struct isl_set
*set
,
362 unsigned first
, unsigned n
);
363 __isl_give isl_set
*isl_set_remove_dims(__isl_take isl_set
*bset
,
364 enum isl_dim_type type
, unsigned first
, unsigned n
);
365 __isl_give isl_basic_set
*isl_basic_set_remove_divs_involving_dims(
366 __isl_take isl_basic_set
*bset
,
367 enum isl_dim_type type
, unsigned first
, unsigned n
);
368 __isl_give isl_set
*isl_set_remove_divs_involving_dims(__isl_take isl_set
*set
,
369 enum isl_dim_type type
, unsigned first
, unsigned n
);
370 __isl_give isl_basic_set
*isl_basic_set_remove_unknown_divs(
371 __isl_take isl_basic_set
*bset
);
372 __isl_give isl_set
*isl_set_remove_unknown_divs(__isl_take isl_set
*set
);
373 __isl_give isl_set
*isl_set_remove_divs(__isl_take isl_set
*set
);
374 __isl_give isl_set
*isl_set_split_dims(__isl_take isl_set
*set
,
375 enum isl_dim_type type
, unsigned first
, unsigned n
);
377 __isl_give isl_basic_set
*isl_basic_set_drop_constraints_involving_dims(
378 __isl_take isl_basic_set
*bset
,
379 enum isl_dim_type type
, unsigned first
, unsigned n
);
380 __isl_give isl_basic_set
*isl_basic_set_drop_constraints_not_involving_dims(
381 __isl_take isl_basic_set
*bset
,
382 enum isl_dim_type type
, unsigned first
, unsigned n
);
383 __isl_give isl_set
*isl_set_drop_constraints_involving_dims(
384 __isl_take isl_set
*set
,
385 enum isl_dim_type type
, unsigned first
, unsigned n
);
387 int isl_basic_set_involves_dims(__isl_keep isl_basic_set
*bset
,
388 enum isl_dim_type type
, unsigned first
, unsigned n
);
389 int isl_set_involves_dims(__isl_keep isl_set
*set
,
390 enum isl_dim_type type
, unsigned first
, unsigned n
);
392 void isl_set_print_internal(__isl_keep isl_set
*set
, FILE *out
, int indent
);
393 int isl_set_plain_is_empty(__isl_keep isl_set
*set
);
394 int isl_set_fast_is_empty(__isl_keep isl_set
*set
);
395 int isl_set_plain_is_universe(__isl_keep isl_set
*set
);
396 int isl_set_fast_is_universe(__isl_keep isl_set
*set
);
397 int isl_set_is_params(__isl_keep isl_set
*set
);
399 int isl_set_is_empty(__isl_keep isl_set
*set
);
400 int isl_set_is_bounded(__isl_keep isl_set
*set
);
402 int isl_set_is_subset(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
404 int isl_set_is_strict_subset(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
406 int isl_set_is_equal(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
408 int isl_set_is_disjoint(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
409 int isl_set_is_singleton(__isl_keep isl_set
*set
);
410 int isl_set_is_box(__isl_keep isl_set
*set
);
411 int isl_set_has_equal_space(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
413 __isl_give isl_set
*isl_set_sum(__isl_take isl_set
*set1
,
414 __isl_take isl_set
*set2
);
415 __isl_give isl_basic_set
*isl_basic_set_neg(__isl_take isl_basic_set
*bset
);
416 __isl_give isl_set
*isl_set_neg(__isl_take isl_set
*set
);
418 __isl_give isl_set
*isl_set_make_disjoint(__isl_take isl_set
*set
);
419 struct isl_set
*isl_basic_set_compute_divs(struct isl_basic_set
*bset
);
420 __isl_give isl_set
*isl_set_compute_divs(__isl_take isl_set
*set
);
421 __isl_give isl_set
*isl_set_align_divs(__isl_take isl_set
*set
);
423 struct isl_basic_set
*isl_set_copy_basic_set(struct isl_set
*set
);
424 struct isl_set
*isl_set_drop_basic_set(struct isl_set
*set
,
425 struct isl_basic_set
*bset
);
427 int isl_basic_set_plain_dim_is_fixed(__isl_keep isl_basic_set
*bset
,
428 unsigned dim
, isl_int
*val
);
430 int isl_set_plain_is_fixed(__isl_keep isl_set
*set
,
431 enum isl_dim_type type
, unsigned pos
, isl_int
*val
);
432 int isl_set_plain_dim_is_fixed(__isl_keep isl_set
*set
,
433 unsigned dim
, isl_int
*val
);
434 int isl_set_fast_dim_is_fixed(__isl_keep isl_set
*set
,
435 unsigned dim
, isl_int
*val
);
436 __isl_give isl_val
*isl_set_plain_get_val_if_fixed(__isl_keep isl_set
*set
,
437 enum isl_dim_type type
, unsigned pos
);
438 int isl_set_plain_dim_has_fixed_lower_bound(__isl_keep isl_set
*set
,
439 unsigned dim
, isl_int
*val
);
440 int isl_set_dim_is_bounded(__isl_keep isl_set
*set
,
441 enum isl_dim_type type
, unsigned pos
);
442 int isl_set_dim_has_lower_bound(__isl_keep isl_set
*set
,
443 enum isl_dim_type type
, unsigned pos
);
444 int isl_set_dim_has_upper_bound(__isl_keep isl_set
*set
,
445 enum isl_dim_type type
, unsigned pos
);
446 int isl_set_dim_has_any_lower_bound(__isl_keep isl_set
*set
,
447 enum isl_dim_type type
, unsigned pos
);
448 int isl_set_dim_has_any_upper_bound(__isl_keep isl_set
*set
,
449 enum isl_dim_type type
, unsigned pos
);
452 __isl_give isl_basic_set
*isl_basic_set_gist(__isl_take isl_basic_set
*bset
,
453 __isl_take isl_basic_set
*context
);
454 __isl_give isl_set
*isl_set_gist_basic_set(__isl_take isl_set
*set
,
455 __isl_take isl_basic_set
*context
);
457 __isl_give isl_set
*isl_set_gist(__isl_take isl_set
*set
,
458 __isl_take isl_set
*context
);
459 __isl_give isl_set
*isl_set_gist_params(__isl_take isl_set
*set
,
460 __isl_take isl_set
*context
);
461 int isl_basic_set_dim_residue_class(struct isl_basic_set
*bset
,
462 int pos
, isl_int
*modulo
, isl_int
*residue
);
463 int isl_set_dim_residue_class(struct isl_set
*set
,
464 int pos
, isl_int
*modulo
, isl_int
*residue
);
465 int isl_set_dim_residue_class_val(__isl_keep isl_set
*set
,
466 int pos
, __isl_give isl_val
**modulo
, __isl_give isl_val
**residue
);
469 __isl_give isl_set
*isl_set_coalesce(__isl_take isl_set
*set
);
471 int isl_set_plain_cmp(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
472 int isl_set_plain_is_equal(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
473 int isl_set_fast_is_equal(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
474 int isl_set_plain_is_disjoint(__isl_keep isl_set
*set1
,
475 __isl_keep isl_set
*set2
);
476 int isl_set_fast_is_disjoint(__isl_keep isl_set
*set1
,
477 __isl_keep isl_set
*set2
);
479 uint32_t isl_set_get_hash(struct isl_set
*set
);
481 int isl_set_dim_is_unique(struct isl_set
*set
, unsigned dim
);
483 int isl_set_n_basic_set(__isl_keep isl_set
*set
);
485 int isl_set_foreach_basic_set(__isl_keep isl_set
*set
,
486 int (*fn
)(__isl_take isl_basic_set
*bset
, void *user
), void *user
);
488 int isl_set_foreach_point(__isl_keep isl_set
*set
,
489 int (*fn
)(__isl_take isl_point
*pnt
, void *user
), void *user
);
490 int isl_set_count(__isl_keep isl_set
*set
, isl_int
*count
);
491 int isl_basic_set_count_upto(__isl_keep isl_basic_set
*bset
,
492 isl_int max
, isl_int
*count
);
493 int isl_set_count_upto(__isl_keep isl_set
*set
, isl_int max
, isl_int
*count
);
495 __isl_give isl_basic_set
*isl_basic_set_from_point(__isl_take isl_point
*pnt
);
496 __isl_give isl_set
*isl_set_from_point(__isl_take isl_point
*pnt
);
497 __isl_give isl_basic_set
*isl_basic_set_box_from_points(
498 __isl_take isl_point
*pnt1
, __isl_take isl_point
*pnt2
);
499 __isl_give isl_set
*isl_set_box_from_points(__isl_take isl_point
*pnt1
,
500 __isl_take isl_point
*pnt2
);
502 __isl_give isl_basic_set
*isl_basic_set_lift(__isl_take isl_basic_set
*bset
);
503 __isl_give isl_set
*isl_set_lift(__isl_take isl_set
*set
);
505 __isl_give isl_map
*isl_set_lex_le_set(__isl_take isl_set
*set1
,
506 __isl_take isl_set
*set2
);
507 __isl_give isl_map
*isl_set_lex_lt_set(__isl_take isl_set
*set1
,
508 __isl_take isl_set
*set2
);
509 __isl_give isl_map
*isl_set_lex_ge_set(__isl_take isl_set
*set1
,
510 __isl_take isl_set
*set2
);
511 __isl_give isl_map
*isl_set_lex_gt_set(__isl_take isl_set
*set1
,
512 __isl_take isl_set
*set2
);
514 int isl_set_size(__isl_keep isl_set
*set
);
516 __isl_give isl_basic_set
*isl_basic_set_align_params(
517 __isl_take isl_basic_set
*bset
, __isl_take isl_space
*model
);
518 __isl_give isl_set
*isl_set_align_params(__isl_take isl_set
*set
,
519 __isl_take isl_space
*model
);
521 __isl_give isl_mat
*isl_basic_set_equalities_matrix(
522 __isl_keep isl_basic_set
*bset
, enum isl_dim_type c1
,
523 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
524 __isl_give isl_mat
*isl_basic_set_inequalities_matrix(
525 __isl_keep isl_basic_set
*bset
, enum isl_dim_type c1
,
526 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
527 __isl_give isl_basic_set
*isl_basic_set_from_constraint_matrices(
528 __isl_take isl_space
*dim
,
529 __isl_take isl_mat
*eq
, __isl_take isl_mat
*ineq
, enum isl_dim_type c1
,
530 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
532 __isl_give isl_mat
*isl_basic_set_reduced_basis(__isl_keep isl_basic_set
*bset
);
534 __isl_give isl_basic_set
*isl_basic_set_coefficients(
535 __isl_take isl_basic_set
*bset
);
536 __isl_give isl_basic_set
*isl_set_coefficients(__isl_take isl_set
*set
);
537 __isl_give isl_basic_set
*isl_basic_set_solutions(
538 __isl_take isl_basic_set
*bset
);
539 __isl_give isl_basic_set
*isl_set_solutions(__isl_take isl_set
*set
);
541 __isl_give isl_pw_aff
*isl_set_dim_max(__isl_take isl_set
*set
, int pos
);
542 __isl_give isl_pw_aff
*isl_set_dim_min(__isl_take isl_set
*set
, int pos
);
544 __isl_give
char *isl_set_to_str(__isl_keep isl_set
*set
);
546 #if defined(__cplusplus)