2 * Copyright 2008-2009 Katholieke Universiteit Leuven
4 * Use of this software is governed by the GNU LGPLv2.1 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 #if defined(__cplusplus)
24 unsigned isl_basic_set_n_dim(__isl_keep isl_basic_set
*bset
);
25 unsigned isl_basic_set_n_param(__isl_keep isl_basic_set
*bset
);
26 unsigned isl_basic_set_total_dim(const struct isl_basic_set
*bset
);
27 unsigned isl_basic_set_dim(__isl_keep isl_basic_set
*bset
,
28 enum isl_dim_type type
);
30 unsigned isl_set_n_dim(__isl_keep isl_set
*set
);
31 unsigned isl_set_n_param(__isl_keep isl_set
*set
);
32 unsigned isl_set_dim(__isl_keep isl_set
*set
, enum isl_dim_type type
);
34 isl_ctx
*isl_basic_set_get_ctx(__isl_keep isl_basic_set
*bset
);
35 isl_ctx
*isl_set_get_ctx(__isl_keep isl_set
*set
);
36 __isl_give isl_space
*isl_basic_set_get_space(__isl_keep isl_basic_set
*bset
);
37 __isl_give isl_space
*isl_set_get_space(__isl_keep isl_set
*set
);
38 __isl_give isl_set
*isl_set_reset_space(__isl_take isl_set
*set
,
39 __isl_take isl_space
*dim
);
41 __isl_give isl_aff
*isl_basic_set_get_div(__isl_keep isl_basic_set
*bset
,
44 __isl_give isl_local_space
*isl_basic_set_get_local_space(
45 __isl_keep isl_basic_set
*bset
);
47 const char *isl_basic_set_get_tuple_name(__isl_keep isl_basic_set
*bset
);
48 const char *isl_set_get_tuple_name(__isl_keep isl_set
*set
);
49 __isl_give isl_basic_set
*isl_basic_set_set_tuple_name(
50 __isl_take isl_basic_set
*set
, const char *s
);
51 __isl_give isl_set
*isl_set_set_tuple_name(__isl_take isl_set
*set
,
53 const char *isl_basic_set_get_dim_name(__isl_keep isl_basic_set
*bset
,
54 enum isl_dim_type type
, unsigned pos
);
55 __isl_give isl_basic_set
*isl_basic_set_set_dim_name(
56 __isl_take isl_basic_set
*bset
,
57 enum isl_dim_type type
, unsigned pos
, const char *s
);
58 const char *isl_set_get_dim_name(__isl_keep isl_set
*set
,
59 enum isl_dim_type type
, unsigned pos
);
60 __isl_give isl_set
*isl_set_set_dim_name(__isl_take isl_set
*set
,
61 enum isl_dim_type type
, unsigned pos
, const char *s
);
63 __isl_give isl_set
*isl_set_set_dim_id(__isl_take isl_set
*set
,
64 enum isl_dim_type type
, unsigned pos
, __isl_take isl_id
*id
);
65 int isl_set_has_dim_id(__isl_keep isl_set
*set
,
66 enum isl_dim_type type
, unsigned pos
);
67 __isl_give isl_id
*isl_set_get_dim_id(__isl_keep isl_set
*set
,
68 enum isl_dim_type type
, unsigned pos
);
69 __isl_give isl_set
*isl_set_set_tuple_id(__isl_take isl_set
*set
,
70 __isl_take isl_id
*id
);
71 __isl_give isl_set
*isl_set_reset_tuple_id(__isl_take isl_set
*set
);
72 int isl_set_has_tuple_id(__isl_keep isl_set
*set
);
73 __isl_give isl_id
*isl_set_get_tuple_id(__isl_keep isl_set
*set
);
75 int isl_set_find_dim_by_id(__isl_keep isl_set
*set
, enum isl_dim_type type
,
76 __isl_keep isl_id
*id
);
78 int isl_basic_set_is_rational(__isl_keep isl_basic_set
*bset
);
80 struct isl_basic_set
*isl_basic_set_alloc(struct isl_ctx
*ctx
,
81 unsigned nparam
, unsigned dim
, unsigned extra
,
82 unsigned n_eq
, unsigned n_ineq
);
83 struct isl_basic_set
*isl_basic_set_extend(struct isl_basic_set
*base
,
84 unsigned nparam
, unsigned dim
, unsigned extra
,
85 unsigned n_eq
, unsigned n_ineq
);
86 struct isl_basic_set
*isl_basic_set_extend_constraints(
87 struct isl_basic_set
*base
, unsigned n_eq
, unsigned n_ineq
);
88 struct isl_basic_set
*isl_basic_set_finalize(struct isl_basic_set
*bset
);
89 void isl_basic_set_free(__isl_take isl_basic_set
*bset
);
90 __isl_give isl_basic_set
*isl_basic_set_copy(__isl_keep isl_basic_set
*bset
);
91 struct isl_basic_set
*isl_basic_set_dup(struct isl_basic_set
*bset
);
92 __isl_give isl_basic_set
*isl_basic_set_empty(__isl_take isl_space
*dim
);
93 struct isl_basic_set
*isl_basic_set_empty_like(struct isl_basic_set
*bset
);
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 struct isl_basic_set
*isl_basic_set_universe_like(struct isl_basic_set
*bset
);
97 __isl_give isl_basic_set
*isl_basic_set_universe_like_set(
98 __isl_keep isl_set
*model
);
99 struct isl_basic_set
*isl_basic_set_interval(struct isl_ctx
*ctx
,
100 isl_int min
, isl_int max
);
101 __isl_give isl_basic_set
*isl_basic_set_positive_orthant(
102 __isl_take isl_space
*space
);
103 void isl_basic_set_print_internal(__isl_keep isl_basic_set
*bset
,
104 FILE *out
, int indent
);
106 __isl_give isl_basic_set
*isl_basic_set_intersect(
107 __isl_take isl_basic_set
*bset1
,
108 __isl_take isl_basic_set
*bset2
);
110 __isl_give isl_basic_set
*isl_basic_set_intersect_params(
111 __isl_take isl_basic_set
*bset1
, __isl_take isl_basic_set
*bset2
);
113 __isl_give isl_basic_set
*isl_basic_set_apply(
114 __isl_take isl_basic_set
*bset
,
115 __isl_take isl_basic_map
*bmap
);
117 __isl_give isl_basic_set
*isl_basic_set_affine_hull(
118 __isl_take isl_basic_set
*bset
);
119 __isl_give isl_basic_set
*isl_basic_set_remove_dims(
120 __isl_take isl_basic_set
*bset
,
121 enum isl_dim_type type
, unsigned first
, unsigned n
);
122 struct isl_basic_set
*isl_basic_set_simplify(struct isl_basic_set
*bset
);
124 __isl_give isl_basic_set
*isl_basic_set_detect_equalities(
125 __isl_take isl_basic_set
*bset
);
126 __isl_give isl_basic_set
*isl_basic_set_remove_redundancies(
127 __isl_take isl_basic_set
*bset
);
128 __isl_give isl_set
*isl_set_remove_redundancies(__isl_take isl_set
*set
);
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 void isl_basic_set_print(__isl_keep isl_basic_set
*bset
, FILE *out
, int indent
,
147 const char *prefix
, const char *suffix
, unsigned output_format
);
148 void isl_set_print(__isl_keep
struct isl_set
*set
, FILE *out
, int indent
,
149 unsigned output_format
);
150 __isl_give isl_basic_set
*isl_basic_set_fix(__isl_take isl_basic_set
*bset
,
151 enum isl_dim_type type
, unsigned pos
, isl_int value
);
152 __isl_give isl_basic_set
*isl_basic_set_fix_si(__isl_take isl_basic_set
*bset
,
153 enum isl_dim_type type
, unsigned pos
, int value
);
154 __isl_give isl_set
*isl_set_fix_si(__isl_take isl_set
*set
,
155 enum isl_dim_type type
, unsigned pos
, int value
);
156 __isl_give isl_set
*isl_set_lower_bound_si(__isl_take isl_set
*set
,
157 enum isl_dim_type type
, unsigned pos
, int value
);
159 __isl_give isl_set
*isl_set_equate(__isl_take isl_set
*set
,
160 enum isl_dim_type type1
, int pos1
, enum isl_dim_type type2
, int pos2
);
162 struct isl_basic_set
*isl_basic_set_from_underlying_set(
163 struct isl_basic_set
*bset
, struct isl_basic_set
*like
);
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
);
172 __isl_give isl_set
*isl_basic_set_partial_lexmin(
173 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
174 __isl_give isl_set
**empty
);
175 __isl_give isl_set
*isl_basic_set_partial_lexmax(
176 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
177 __isl_give isl_set
**empty
);
178 __isl_give isl_set
*isl_set_partial_lexmin(
179 __isl_take isl_set
*set
, __isl_take isl_set
*dom
,
180 __isl_give isl_set
**empty
);
181 __isl_give isl_set
*isl_set_partial_lexmax(
182 __isl_take isl_set
*set
, __isl_take isl_set
*dom
,
183 __isl_give isl_set
**empty
);
185 __isl_give isl_set
*isl_basic_set_lexmin(__isl_take isl_basic_set
*bset
);
187 __isl_give isl_set
*isl_basic_set_lexmax(__isl_take isl_basic_set
*bset
);
189 __isl_give isl_set
*isl_set_lexmin(__isl_take isl_set
*set
);
191 __isl_give isl_set
*isl_set_lexmax(__isl_take isl_set
*set
);
192 __isl_give isl_pw_multi_aff
*isl_basic_set_partial_lexmin_pw_multi_aff(
193 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
194 __isl_give isl_set
**empty
);
195 __isl_give isl_pw_multi_aff
*isl_basic_set_partial_lexmax_pw_multi_aff(
196 __isl_take isl_basic_set
*bset
, __isl_take isl_basic_set
*dom
,
197 __isl_give isl_set
**empty
);
200 __isl_give isl_set
*isl_basic_set_union(
201 __isl_take isl_basic_set
*bset1
,
202 __isl_take isl_basic_set
*bset2
);
204 int isl_basic_set_compare_at(struct isl_basic_set
*bset1
,
205 struct isl_basic_set
*bset2
, int pos
);
206 int isl_set_follows_at(__isl_keep isl_set
*set1
,
207 __isl_keep isl_set
*set2
, int pos
);
209 __isl_give isl_basic_set
*isl_basic_set_params(__isl_take isl_basic_set
*bset
);
210 __isl_give isl_set
*isl_set_params(__isl_take isl_set
*set
);
211 __isl_give isl_set
*isl_set_from_params(__isl_take isl_set
*set
);
213 int isl_basic_set_dims_get_sign(__isl_keep isl_basic_set
*bset
,
214 enum isl_dim_type type
, unsigned pos
, unsigned n
, int *signs
);
216 int isl_basic_set_is_universe(__isl_keep isl_basic_set
*bset
);
217 int isl_basic_set_plain_is_empty(__isl_keep isl_basic_set
*bset
);
218 int isl_basic_set_fast_is_empty(__isl_keep isl_basic_set
*bset
);
220 int isl_basic_set_is_empty(__isl_keep isl_basic_set
*bset
);
221 int isl_basic_set_is_bounded(__isl_keep isl_basic_set
*bset
);
223 struct isl_set
*isl_set_alloc(struct isl_ctx
*ctx
,
224 unsigned nparam
, unsigned dim
, int n
, unsigned flags
);
225 struct isl_set
*isl_set_extend(struct isl_set
*base
,
226 unsigned nparam
, unsigned dim
);
227 __isl_give isl_set
*isl_set_empty(__isl_take isl_space
*dim
);
228 struct isl_set
*isl_set_empty_like(struct isl_set
*set
);
229 __isl_give isl_set
*isl_set_universe(__isl_take isl_space
*dim
);
230 __isl_give isl_set
*isl_set_nat_universe(__isl_take isl_space
*dim
);
231 __isl_give isl_set
*isl_set_universe_like(__isl_keep isl_set
*model
);
232 __isl_give isl_set
*isl_set_add_basic_set(__isl_take isl_set
*set
,
233 __isl_take isl_basic_set
*bset
);
234 struct isl_set
*isl_set_finalize(struct isl_set
*set
);
235 __isl_give isl_set
*isl_set_copy(__isl_keep isl_set
*set
);
236 void isl_set_free(__isl_take isl_set
*set
);
237 struct isl_set
*isl_set_dup(struct isl_set
*set
);
239 __isl_give isl_set
*isl_set_from_basic_set(__isl_take isl_basic_set
*bset
);
240 __isl_give isl_basic_set
*isl_set_sample(__isl_take isl_set
*set
);
241 __isl_give isl_point
*isl_basic_set_sample_point(__isl_take isl_basic_set
*bset
);
242 __isl_give isl_point
*isl_set_sample_point(__isl_take isl_set
*set
);
244 __isl_give isl_set
*isl_set_detect_equalities(__isl_take isl_set
*set
);
246 __isl_give isl_basic_set
*isl_set_affine_hull(__isl_take isl_set
*set
);
247 __isl_give isl_basic_set
*isl_set_convex_hull(__isl_take isl_set
*set
);
249 __isl_give isl_basic_set
*isl_set_polyhedral_hull(__isl_take isl_set
*set
);
250 __isl_give isl_basic_set
*isl_set_simple_hull(__isl_take isl_set
*set
);
251 struct isl_basic_set
*isl_set_bounded_simple_hull(struct isl_set
*set
);
252 __isl_give isl_set
*isl_set_recession_cone(__isl_take isl_set
*set
);
254 struct isl_set
*isl_set_union_disjoint(
255 struct isl_set
*set1
, struct isl_set
*set2
);
257 __isl_give isl_set
*isl_set_union(
258 __isl_take isl_set
*set1
,
259 __isl_take isl_set
*set2
);
260 __isl_give isl_set
*isl_set_product(__isl_take isl_set
*set1
,
261 __isl_take isl_set
*set2
);
262 __isl_give isl_basic_set
*isl_basic_set_flat_product(
263 __isl_take isl_basic_set
*bset1
, __isl_take isl_basic_set
*bset2
);
264 __isl_give isl_set
*isl_set_flat_product(__isl_take isl_set
*set1
,
265 __isl_take isl_set
*set2
);
267 __isl_give isl_set
*isl_set_intersect(
268 __isl_take isl_set
*set1
,
269 __isl_take isl_set
*set2
);
271 __isl_give isl_set
*isl_set_intersect_params(__isl_take isl_set
*set
,
272 __isl_take isl_set
*params
);
274 __isl_give isl_set
*isl_set_subtract(
275 __isl_take isl_set
*set1
,
276 __isl_take isl_set
*set2
);
278 __isl_give isl_set
*isl_set_complement(__isl_take isl_set
*set
);
280 __isl_give isl_set
*isl_set_apply(
281 __isl_take isl_set
*set
,
282 __isl_take isl_map
*map
);
283 __isl_give isl_set
*isl_set_fix(__isl_take isl_set
*set
,
284 enum isl_dim_type type
, unsigned pos
, isl_int value
);
285 struct isl_set
*isl_set_fix_dim_si(struct isl_set
*set
,
286 unsigned dim
, int value
);
287 struct isl_set
*isl_set_lower_bound_dim(struct isl_set
*set
,
288 unsigned dim
, isl_int value
);
289 __isl_give isl_set
*isl_set_insert_dims(__isl_take isl_set
*set
,
290 enum isl_dim_type type
, unsigned pos
, unsigned n
);
291 __isl_give isl_basic_set
*isl_basic_set_add(__isl_take isl_basic_set
*bset
,
292 enum isl_dim_type type
, unsigned n
);
293 __isl_give isl_set
*isl_set_add_dims(__isl_take isl_set
*set
,
294 enum isl_dim_type type
, unsigned n
);
295 __isl_give isl_basic_set
*isl_basic_set_move_dims(__isl_take isl_basic_set
*bset
,
296 enum isl_dim_type dst_type
, unsigned dst_pos
,
297 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
298 __isl_give isl_set
*isl_set_move_dims(__isl_take isl_set
*set
,
299 enum isl_dim_type dst_type
, unsigned dst_pos
,
300 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
301 __isl_give isl_basic_set
*isl_basic_set_project_out(
302 __isl_take isl_basic_set
*bset
,
303 enum isl_dim_type type
, unsigned first
, unsigned n
);
304 __isl_give isl_set
*isl_set_project_out(__isl_take isl_set
*set
,
305 enum isl_dim_type type
, unsigned first
, unsigned n
);
306 __isl_give isl_basic_set
*isl_basic_set_remove_divs(
307 __isl_take isl_basic_set
*bset
);
308 __isl_give isl_set
*isl_set_eliminate(__isl_take isl_set
*set
,
309 enum isl_dim_type type
, unsigned first
, unsigned n
);
310 struct isl_set
*isl_set_eliminate_dims(struct isl_set
*set
,
311 unsigned first
, unsigned n
);
312 __isl_give isl_set
*isl_set_remove_dims(__isl_take isl_set
*bset
,
313 enum isl_dim_type type
, unsigned first
, unsigned n
);
314 __isl_give isl_set
*isl_set_remove_divs_involving_dims(__isl_take isl_set
*set
,
315 enum isl_dim_type type
, unsigned first
, unsigned n
);
316 __isl_give isl_set
*isl_set_remove_unknown_divs(__isl_take isl_set
*set
);
317 __isl_give isl_set
*isl_set_remove_divs(__isl_take isl_set
*set
);
318 __isl_give isl_set
*isl_set_split_dims(__isl_take isl_set
*set
,
319 enum isl_dim_type type
, unsigned first
, unsigned n
);
321 int isl_basic_set_involves_dims(__isl_keep isl_basic_set
*bset
,
322 enum isl_dim_type type
, unsigned first
, unsigned n
);
323 int isl_set_involves_dims(__isl_keep isl_set
*set
,
324 enum isl_dim_type type
, unsigned first
, unsigned n
);
326 void isl_set_print_internal(__isl_keep isl_set
*set
, FILE *out
, int indent
);
327 int isl_set_plain_is_empty(__isl_keep isl_set
*set
);
328 int isl_set_fast_is_empty(__isl_keep isl_set
*set
);
329 int isl_set_plain_is_universe(__isl_keep isl_set
*set
);
330 int isl_set_fast_is_universe(__isl_keep isl_set
*set
);
331 int isl_set_is_params(__isl_keep isl_set
*set
);
333 int isl_set_is_empty(__isl_keep isl_set
*set
);
334 int isl_set_is_bounded(__isl_keep isl_set
*set
);
336 int isl_set_is_subset(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
338 int isl_set_is_strict_subset(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
340 int isl_set_is_equal(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
341 int isl_set_is_singleton(__isl_keep isl_set
*set
);
342 int isl_set_is_box(__isl_keep isl_set
*set
);
343 int isl_set_has_equal_space(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
345 __isl_give isl_set
*isl_set_sum(__isl_take isl_set
*set1
,
346 __isl_take isl_set
*set2
);
347 __isl_give isl_basic_set
*isl_basic_set_neg(__isl_take isl_basic_set
*bset
);
348 __isl_give isl_set
*isl_set_neg(__isl_take isl_set
*set
);
350 __isl_give isl_set
*isl_set_make_disjoint(__isl_take isl_set
*set
);
351 struct isl_set
*isl_basic_set_compute_divs(struct isl_basic_set
*bset
);
352 __isl_give isl_set
*isl_set_compute_divs(__isl_take isl_set
*set
);
353 __isl_give isl_set
*isl_set_align_divs(__isl_take isl_set
*set
);
355 struct isl_basic_set
*isl_set_copy_basic_set(struct isl_set
*set
);
356 struct isl_set
*isl_set_drop_basic_set(struct isl_set
*set
,
357 struct isl_basic_set
*bset
);
359 int isl_basic_set_plain_dim_is_fixed(__isl_keep isl_basic_set
*bset
,
360 unsigned dim
, isl_int
*val
);
362 int isl_set_plain_is_fixed(__isl_keep isl_set
*set
,
363 enum isl_dim_type type
, unsigned pos
, isl_int
*val
);
364 int isl_set_plain_dim_is_fixed(__isl_keep isl_set
*set
,
365 unsigned dim
, isl_int
*val
);
366 int isl_set_fast_dim_is_fixed(__isl_keep isl_set
*set
,
367 unsigned dim
, isl_int
*val
);
368 int isl_set_plain_dim_has_fixed_lower_bound(__isl_keep isl_set
*set
,
369 unsigned dim
, isl_int
*val
);
370 int isl_set_dim_is_bounded(__isl_keep isl_set
*set
,
371 enum isl_dim_type type
, unsigned pos
);
372 int isl_set_dim_has_lower_bound(__isl_keep isl_set
*set
,
373 enum isl_dim_type type
, unsigned pos
);
374 int isl_set_dim_has_upper_bound(__isl_keep isl_set
*set
,
375 enum isl_dim_type type
, unsigned pos
);
378 __isl_give isl_basic_set
*isl_basic_set_gist(__isl_take isl_basic_set
*bset
,
379 __isl_take isl_basic_set
*context
);
380 __isl_give isl_set
*isl_set_gist_basic_set(__isl_take isl_set
*set
,
381 __isl_take isl_basic_set
*context
);
383 __isl_give isl_set
*isl_set_gist(__isl_take isl_set
*set
,
384 __isl_take isl_set
*context
);
385 __isl_give isl_set
*isl_set_gist_params(__isl_take isl_set
*set
,
386 __isl_take isl_set
*context
);
387 int isl_basic_set_dim_residue_class(struct isl_basic_set
*bset
,
388 int pos
, isl_int
*modulo
, isl_int
*residue
);
389 int isl_set_dim_residue_class(struct isl_set
*set
,
390 int pos
, isl_int
*modulo
, isl_int
*residue
);
393 __isl_give isl_set
*isl_set_coalesce(__isl_take isl_set
*set
);
395 int isl_set_plain_is_equal(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
396 int isl_set_fast_is_equal(__isl_keep isl_set
*set1
, __isl_keep isl_set
*set2
);
397 int isl_set_plain_is_disjoint(__isl_keep isl_set
*set1
,
398 __isl_keep isl_set
*set2
);
399 int isl_set_fast_is_disjoint(__isl_keep isl_set
*set1
,
400 __isl_keep isl_set
*set2
);
402 uint32_t isl_set_get_hash(struct isl_set
*set
);
404 int isl_set_dim_is_unique(struct isl_set
*set
, unsigned dim
);
406 int isl_set_n_basic_set(__isl_keep isl_set
*set
);
408 int isl_set_foreach_basic_set(__isl_keep isl_set
*set
,
409 int (*fn
)(__isl_take isl_basic_set
*bset
, void *user
), void *user
);
411 int isl_set_foreach_point(__isl_keep isl_set
*set
,
412 int (*fn
)(__isl_take isl_point
*pnt
, void *user
), void *user
);
413 int isl_set_count(__isl_keep isl_set
*set
, isl_int
*count
);
414 int isl_basic_set_count_upto(__isl_keep isl_basic_set
*bset
,
415 isl_int max
, isl_int
*count
);
416 int isl_set_count_upto(__isl_keep isl_set
*set
, isl_int max
, isl_int
*count
);
418 __isl_give isl_basic_set
*isl_basic_set_from_point(__isl_take isl_point
*pnt
);
419 __isl_give isl_set
*isl_set_from_point(__isl_take isl_point
*pnt
);
420 __isl_give isl_basic_set
*isl_basic_set_box_from_points(
421 __isl_take isl_point
*pnt1
, __isl_take isl_point
*pnt2
);
422 __isl_give isl_set
*isl_set_box_from_points(__isl_take isl_point
*pnt1
,
423 __isl_take isl_point
*pnt2
);
425 __isl_give isl_basic_set
*isl_basic_set_lift(__isl_take isl_basic_set
*bset
);
426 __isl_give isl_set
*isl_set_lift(__isl_take isl_set
*set
);
428 __isl_give isl_map
*isl_set_lex_le_set(__isl_take isl_set
*set1
,
429 __isl_take isl_set
*set2
);
430 __isl_give isl_map
*isl_set_lex_lt_set(__isl_take isl_set
*set1
,
431 __isl_take isl_set
*set2
);
432 __isl_give isl_map
*isl_set_lex_ge_set(__isl_take isl_set
*set1
,
433 __isl_take isl_set
*set2
);
434 __isl_give isl_map
*isl_set_lex_gt_set(__isl_take isl_set
*set1
,
435 __isl_take isl_set
*set2
);
437 int isl_set_size(__isl_keep isl_set
*set
);
439 __isl_give isl_set
*isl_set_align_params(__isl_take isl_set
*set
,
440 __isl_take isl_space
*model
);
442 __isl_give isl_mat
*isl_basic_set_equalities_matrix(
443 __isl_keep isl_basic_set
*bset
, enum isl_dim_type c1
,
444 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
445 __isl_give isl_mat
*isl_basic_set_inequalities_matrix(
446 __isl_keep isl_basic_set
*bset
, enum isl_dim_type c1
,
447 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
448 __isl_give isl_basic_set
*isl_basic_set_from_constraint_matrices(
449 __isl_take isl_space
*dim
,
450 __isl_take isl_mat
*eq
, __isl_take isl_mat
*ineq
, enum isl_dim_type c1
,
451 enum isl_dim_type c2
, enum isl_dim_type c3
, enum isl_dim_type c4
);
453 __isl_give isl_mat
*isl_basic_set_reduced_basis(__isl_keep isl_basic_set
*bset
);
455 __isl_give isl_basic_set
*isl_basic_set_coefficients(
456 __isl_take isl_basic_set
*bset
);
457 __isl_give isl_basic_set
*isl_set_coefficients(__isl_take isl_set
*set
);
458 __isl_give isl_basic_set
*isl_basic_set_solutions(
459 __isl_take isl_basic_set
*bset
);
460 __isl_give isl_basic_set
*isl_set_solutions(__isl_take isl_set
*set
);
462 __isl_give isl_pw_aff
*isl_set_dim_max(__isl_take isl_set
*set
, int pos
);
463 __isl_give isl_pw_aff
*isl_set_dim_min(__isl_take isl_set
*set
, int pos
);
465 __isl_give
char *isl_set_to_str(__isl_keep isl_set
*set
);
467 #if defined(__cplusplus)