Polly 20.0.0git
isl_range.c
Go to the documentation of this file.
1#include <isl_ctx_private.h>
2#include <isl/val.h>
4#include <isl/set.h>
6#include <isl_morph.h>
7#include <isl_range.h>
8
9struct range_data {
11 int *signs;
12 int sign;
15 int tight;
19};
20
23
24/* Check whether the polynomial "poly" has sign "sign" over "bset",
25 * i.e., if sign == 1, check that the lower bound on the polynomial
26 * is non-negative and if sign == -1, check that the upper bound on
27 * the polynomial is non-positive.
28 */
30 __isl_keep isl_qpolynomial *poly, int sign, int *signs)
31{
32 struct range_data data_m;
33 isl_size nparam;
34 isl_space *space;
35 isl_val *opt;
36 isl_bool r;
37 enum isl_fold type;
38
39 nparam = isl_basic_set_dim(bset, isl_dim_param);
40 if (nparam < 0)
41 return isl_bool_error;
42
43 bset = isl_basic_set_copy(bset);
45
47 isl_dim_param, 0, nparam);
49 isl_dim_param, 0, nparam);
50
52 space = isl_space_params(space);
53 space = isl_space_from_domain(space);
54 space = isl_space_add_dims(space, isl_dim_out, 1);
55
56 data_m.test_monotonicity = 0;
57 data_m.signs = signs;
58 data_m.sign = -sign;
59 type = data_m.sign < 0 ? isl_fold_min : isl_fold_max;
60 data_m.pwf = isl_pw_qpolynomial_fold_zero(space, type);
61 data_m.tight = 0;
62 data_m.pwf_tight = NULL;
63
64 if (propagate_on_domain(bset, poly, &data_m) < 0)
65 goto error;
66
67 if (sign > 0)
68 opt = isl_pw_qpolynomial_fold_min(data_m.pwf);
69 else
70 opt = isl_pw_qpolynomial_fold_max(data_m.pwf);
71
72 if (!opt)
74 else if (isl_val_is_nan(opt) ||
75 isl_val_is_infty(opt) ||
78 else
79 r = isl_bool_ok(sign * isl_val_sgn(opt) >= 0);
80
81 isl_val_free(opt);
82
83 return r;
84error:
86 return isl_bool_error;
87}
88
89/* Return 1 if poly is monotonically increasing in the last set variable,
90 * -1 if poly is monotonically decreasing in the last set variable,
91 * 0 if no conclusion,
92 * -2 on error.
93 *
94 * We simply check the sign of p(x+1)-p(x)
95 */
98{
99 isl_ctx *ctx;
100 isl_space *space;
101 isl_qpolynomial *sub = NULL;
102 isl_qpolynomial *diff = NULL;
103 int result = 0;
104 isl_bool s;
105 isl_size nvar;
106
107 nvar = isl_basic_set_dim(bset, isl_dim_set);
108 if (nvar < 0)
109 return -2;
110
113
115 isl_dim_set, nvar - 1);
117 isl_qpolynomial_rat_cst_on_domain(space, ctx->one, ctx->one));
118
120 isl_dim_in, nvar - 1, 1, &sub);
122
123 s = has_sign(bset, diff, 1, data->signs);
124 if (s < 0)
125 goto error;
126 if (s)
127 result = 1;
128 else {
129 s = has_sign(bset, diff, -1, data->signs);
130 if (s < 0)
131 goto error;
132 if (s)
133 result = -1;
134 }
135
138
139 return result;
140error:
143 return -2;
144}
145
146/* Return a positive ("sign" > 0) or negative ("sign" < 0) infinite polynomial
147 * with domain space "space".
148 */
150 int sign)
151{
152 if (sign > 0)
154 else
156}
157
159 __isl_take isl_space *space, unsigned pos, int sign)
160{
161 if (!bound)
162 return signed_infty(space, sign);
163 isl_space_free(space);
165}
166
168{
169 isl_int c;
170 int is_int;
171
172 if (!bound)
173 return 1;
174
175 isl_int_init(c);
177 is_int = isl_int_is_one(c) || isl_int_is_negone(c);
178 isl_int_clear(c);
179
180 return is_int;
181}
182
184 int *signs;
185 int sign;
187};
188
189/* Add term "term" to data->poly if it has sign data->sign.
190 * The sign is determined based on the signs of the parameters
191 * and variables in data->signs. The integer divisions, if
192 * any, are assumed to be non-negative.
193 */
195{
196 struct isl_fixed_sign_data *data = (struct isl_fixed_sign_data *)user;
197 isl_int n;
198 int i;
199 int sign;
200 isl_size nparam;
201 isl_size nvar;
202 isl_size exp;
203
204 nparam = isl_term_dim(term, isl_dim_param);
205 nvar = isl_term_dim(term, isl_dim_set);
206 if (nparam < 0 || nvar < 0)
207 return isl_stat_error;
208
210 isl_term_get_num(term, &n);
211 sign = isl_int_sgn(n);
213
214 for (i = 0; i < nparam; ++i) {
215 if (data->signs[i] > 0)
216 continue;
217 exp = isl_term_get_exp(term, isl_dim_param, i);
218 if (exp < 0)
219 return isl_stat_error;
220 if (exp % 2)
221 sign = -sign;
222 }
223 for (i = 0; i < nvar; ++i) {
224 if (data->signs[nparam + i] > 0)
225 continue;
226 exp = isl_term_get_exp(term, isl_dim_set, i);
227 if (exp < 0)
228 return isl_stat_error;
229 if (exp % 2)
230 sign = -sign;
231 }
232
233 if (sign == data->sign) {
235
236 data->poly = isl_qpolynomial_add(data->poly, t);
237 } else
238 isl_term_free(term);
239
240 return isl_stat_ok;
241}
242
243/* Construct and return a polynomial that consists of the terms
244 * in "poly" that have sign "sign". The integer divisions, if
245 * any, are assumed to be non-negative.
246 */
249{
250 isl_space *space;
251 struct isl_fixed_sign_data data = { signs, sign };
252
255
257 goto error;
258
259 return data.poly;
260error:
262 return NULL;
263}
264
265/* Helper function to add a guarded polynomial to either pwf_tight or pwf,
266 * depending on whether the result has been determined to be tight.
267 */
270{
271 enum isl_fold type = data->sign < 0 ? isl_fold_min : isl_fold_max;
272 isl_set *set;
275
276 bset = isl_basic_set_params(bset);
278
282 if (data->tight)
284 data->pwf_tight, pwf);
285 else
286 data->pwf = isl_pw_qpolynomial_fold_fold(data->pwf, pwf);
287
288 return isl_stat_ok;
289}
290
291/* Plug in "sub" for the variable at position "pos" in "poly".
292 *
293 * If "sub" is an infinite polynomial and if the variable actually
294 * appears in "poly", then calling isl_qpolynomial_substitute
295 * to perform the substitution may result in a NaN result.
296 * In such cases, return positive or negative infinity instead,
297 * depending on whether an upper bound or a lower bound is being computed,
298 * and mark the result as not being tight.
299 */
303{
304 isl_bool involves, infty;
305
307 if (involves < 0)
308 goto error;
309 if (!involves) {
311 return poly;
312 }
313
315 if (infty >= 0 && !infty)
317 if (infty < 0)
318 goto error;
319 if (infty) {
321 data->tight = 0;
324 return signed_infty(space, data->sign);
325 }
326
329
330 return poly;
331error:
334 return NULL;
335}
336
337/* Given a lower and upper bound on the final variable and constraints
338 * on the remaining variables where these bounds are active,
339 * eliminate the variable from data->poly based on these bounds.
340 * If the polynomial has been determined to be monotonic
341 * in the variable, then simply plug in the appropriate bound.
342 * If the current polynomial is tight and if this bound is integer,
343 * then the result is still tight. In all other cases, the results
344 * may not be tight.
345 * Otherwise, plug in the largest bound (in absolute value) in
346 * the positive terms (if an upper bound is wanted) or the negative terms
347 * (if a lower bounded is wanted) and the other bound in the other terms.
348 *
349 * If all variables have been eliminated, then record the result.
350 * Ohterwise, recurse on the next variable.
351 */
354 void *user)
355{
356 struct range_data *data = (struct range_data *)user;
357 int save_tight = data->tight;
359 isl_stat r;
360 isl_size nvar, nparam;
361
362 nvar = isl_basic_set_dim(bset, isl_dim_set);
363 nparam = isl_basic_set_dim(bset, isl_dim_param);
364 if (nvar < 0 || nparam < 0)
365 goto error;
366
367 if (data->monotonicity) {
370 if (data->monotonicity * data->sign > 0) {
371 if (data->tight)
372 data->tight = bound_is_integer(upper, nvar);
373 sub = bound2poly(upper, space, nvar, 1);
374 isl_constraint_free(lower);
375 } else {
376 if (data->tight)
377 data->tight = bound_is_integer(lower, nvar);
378 sub = bound2poly(lower, space, nvar, -1);
379 isl_constraint_free(upper);
380 }
382 poly = plug_in_at_pos(poly, nvar, sub, data);
384 } else {
385 isl_qpolynomial *l, *u;
388 int sign = data->sign * data->signs[nparam + nvar];
389
390 data->tight = 0;
391
392 u = bound2poly(upper, isl_space_copy(space), nvar, 1);
393 l = bound2poly(lower, space, nvar, -1);
394
397
398 pos = plug_in_at_pos(pos, nvar, u, data);
399 neg = plug_in_at_pos(neg, nvar, l, data);
400
403 }
404
405 if (nvar == 0)
406 r = add_guarded_poly(bset, poly, data);
407 else
408 r = propagate_on_domain(bset, poly, data);
409
410 data->tight = save_tight;
411
412 return r;
413error:
414 isl_constraint_free(lower);
415 isl_constraint_free(upper);
416 isl_basic_set_free(bset);
417 return isl_stat_error;
418}
419
420/* Recursively perform range propagation on the polynomial "poly"
421 * defined over the basic set "bset" and collect the results in "data".
422 */
425{
426 isl_bool is_cst;
427 isl_ctx *ctx;
428 isl_qpolynomial *save_poly = data->poly;
429 int save_monotonicity = data->monotonicity;
430 isl_size d;
431
433 is_cst = isl_qpolynomial_is_cst(poly, NULL, NULL);
434 if (d < 0 || is_cst < 0)
435 goto error;
436
437 ctx = isl_basic_set_get_ctx(bset);
438 isl_assert(ctx, d >= 1, goto error);
439
440 if (is_cst) {
441 bset = isl_basic_set_project_out(bset, isl_dim_set, 0, d);
443 return add_guarded_poly(bset, poly, data);
444 }
445
446 if (data->test_monotonicity)
447 data->monotonicity = monotonicity(bset, poly, data);
448 else
449 data->monotonicity = 0;
450 if (data->monotonicity < -1)
451 goto error;
452
453 data->poly = poly;
455 &propagate_on_bound_pair, data) < 0)
456 goto error;
457
458 isl_basic_set_free(bset);
460 data->monotonicity = save_monotonicity;
461 data->poly = save_poly;
462
463 return isl_stat_ok;
464error:
465 isl_basic_set_free(bset);
467 data->monotonicity = save_monotonicity;
468 data->poly = save_poly;
469 return isl_stat_error;
470}
471
473 void *user)
474{
475 struct range_data *data = (struct range_data *)user;
476 isl_ctx *ctx;
480 isl_stat r;
481
482 data->signs = NULL;
483
484 if (nparam < 0 || dim < 0 || total < 0)
485 goto error;
486
487 ctx = isl_basic_set_get_ctx(bset);
488 data->signs = isl_alloc_array(ctx, int, total);
489
491 data->signs + nparam) < 0)
492 goto error;
493 if (isl_basic_set_dims_get_sign(bset, isl_dim_param, 0, nparam,
494 data->signs) < 0)
495 goto error;
496
497 r = propagate_on_domain(bset, isl_qpolynomial_copy(data->poly), data);
498
499 free(data->signs);
500
501 return r;
502error:
503 free(data->signs);
504 isl_basic_set_free(bset);
505 return isl_stat_error;
506}
507
510 struct range_data *data)
511{
514 isl_set *set = NULL;
515
516 if (nparam < 0 || nvar < 0)
517 goto error;
518
519 if (nvar == 0)
520 return add_guarded_poly(bset, poly, data);
521
525
526 data->poly = poly;
527
528 data->test_monotonicity = 1;
530 goto error;
531
534
535 return isl_stat_ok;
536error:
539 return isl_stat_error;
540}
541
544{
545 struct range_data data;
546 isl_stat r;
547
548 data.pwf = bound->pwf;
549 data.pwf_tight = bound->pwf_tight;
550 data.tight = bound->check_tight;
551 if (bound->type == isl_fold_min)
552 data.sign = -1;
553 else
554 data.sign = 1;
555
556 r = qpolynomial_bound_on_domain_range(bset, poly, &data);
557
558 bound->pwf = data.pwf;
559 bound->pwf_tight = data.pwf_tight;
560
561 return r;
562}
polly print import Polly Print Scop import result
__isl_null isl_constraint * isl_constraint_free(__isl_take isl_constraint *c)
isl_stat isl_basic_set_foreach_bound_pair(__isl_keep isl_basic_set *bset, enum isl_dim_type type, unsigned pos, isl_stat(*fn)(__isl_take isl_constraint *lower, __isl_take isl_constraint *upper, __isl_take isl_basic_set *bset, void *user), void *user)
#define __isl_take
Definition: ctx.h:22
isl_stat
Definition: ctx.h:84
@ isl_stat_error
Definition: ctx.h:85
@ isl_stat_ok
Definition: ctx.h:86
#define __isl_give
Definition: ctx.h:19
#define isl_assert(ctx, test, code)
Definition: ctx.h:152
isl_bool isl_bool_ok(int b)
Definition: isl_ctx.c:46
#define isl_alloc_array(ctx, type, n)
Definition: ctx.h:131
#define __isl_keep
Definition: ctx.h:25
int isl_size
Definition: ctx.h:96
isl_bool
Definition: ctx.h:89
@ isl_bool_false
Definition: ctx.h:91
@ isl_bool_error
Definition: ctx.h:90
isl_stat isl_stat(*) void user)
Definition: hmap.h:39
void GMPZAPI() neg(mp_int rop, mp_int op)
void GMPZAPI() sub(mp_int rop, mp_int op1, mp_int op2)
void isl_constraint_get_coefficient(__isl_keep isl_constraint *constraint, enum isl_dim_type type, int pos, isl_int *v)
#define isl_int_is_one(i)
Definition: isl_int.h:32
#define isl_int_is_negone(i)
Definition: isl_int.h:33
#define isl_int_sgn(i)
Definition: isl_int_gmp.h:54
#define isl_int_init(i)
Definition: isl_int_gmp.h:11
#define isl_int_clear(i)
Definition: isl_int_gmp.h:12
static unsigned pos(__isl_keep isl_space *space, enum isl_dim_type type)
Definition: isl_map.c:70
static struct isl_arg_choice bound[]
Definition: isl_options.c:39
__isl_give isl_qpolynomial * isl_qpolynomial_rat_cst_on_domain(__isl_take isl_space *domain, const isl_int n, const isl_int d)
isl_bool isl_qpolynomial_is_cst(__isl_keep isl_qpolynomial *qp, isl_int *n, isl_int *d)
void isl_term_get_num(__isl_keep isl_term *term, isl_int *n)
__isl_give isl_qpolynomial * isl_qpolynomial_terms_of_sign(__isl_keep isl_qpolynomial *poly, int *signs, int sign)
Definition: isl_range.c:247
static isl_stat qpolynomial_bound_on_domain_range(__isl_take isl_basic_set *bset, __isl_take isl_qpolynomial *poly, struct range_data *data)
Definition: isl_range.c:508
isl_stat isl_qpolynomial_bound_on_domain_range(__isl_take isl_basic_set *bset, __isl_take isl_qpolynomial *poly, struct isl_bound *bound)
Definition: isl_range.c:542
static isl_stat propagate_on_domain(__isl_take isl_basic_set *bset, __isl_take isl_qpolynomial *poly, struct range_data *data)
Definition: isl_range.c:423
static __isl_give isl_qpolynomial * signed_infty(__isl_take isl_space *space, int sign)
Definition: isl_range.c:149
static isl_stat basic_guarded_poly_bound(__isl_take isl_basic_set *bset, void *user)
Definition: isl_range.c:472
static __isl_give isl_qpolynomial * bound2poly(__isl_take isl_constraint *bound, __isl_take isl_space *space, unsigned pos, int sign)
Definition: isl_range.c:158
static isl_stat collect_fixed_sign_terms(__isl_take isl_term *term, void *user)
Definition: isl_range.c:194
static int bound_is_integer(__isl_keep isl_constraint *bound, unsigned pos)
Definition: isl_range.c:167
static __isl_give isl_qpolynomial * plug_in_at_pos(__isl_take isl_qpolynomial *poly, int pos, __isl_take isl_qpolynomial *sub, struct range_data *data)
Definition: isl_range.c:300
static isl_bool has_sign(__isl_keep isl_basic_set *bset, __isl_keep isl_qpolynomial *poly, int sign, int *signs)
Definition: isl_range.c:29
static int monotonicity(__isl_keep isl_basic_set *bset, __isl_keep isl_qpolynomial *poly, struct range_data *data)
Definition: isl_range.c:96
static isl_stat add_guarded_poly(__isl_take isl_basic_set *bset, __isl_take isl_qpolynomial *poly, struct range_data *data)
Definition: isl_range.c:268
static isl_stat propagate_on_bound_pair(__isl_take isl_constraint *lower, __isl_take isl_constraint *upper, __isl_take isl_basic_set *bset, void *user)
Definition: isl_range.c:352
const char * poly
Definition: isl_test.c:4018
enum isl_fold type
Definition: isl_test.c:4017
const char * set
Definition: isl_test.c:1356
static __isl_give isl_union_map * total(__isl_take isl_union_map *umap, __isl_give isl_map *(*fn)(__isl_take isl_map *))
t0 *a *b *t *a *b * t
Definition: jacobi_kernel4.c:2
struct isl_set isl_set
Definition: map_type.h:26
struct isl_basic_set isl_basic_set
Definition: map_type.h:20
isl_bool isl_qpolynomial_involves_dims(__isl_keep isl_qpolynomial *qp, enum isl_dim_type type, unsigned first, unsigned n)
isl_size isl_term_get_exp(__isl_keep isl_term *term, enum isl_dim_type type, unsigned pos)
__isl_give isl_val * isl_pw_qpolynomial_fold_min(__isl_take isl_pw_qpolynomial_fold *pwf)
__isl_give isl_qpolynomial * isl_qpolynomial_var_on_domain(__isl_take isl_space *domain, enum isl_dim_type type, unsigned pos)
__isl_give isl_pw_qpolynomial_fold * isl_pw_qpolynomial_fold_fold(__isl_take isl_pw_qpolynomial_fold *pwf1, __isl_take isl_pw_qpolynomial_fold *pwf2)
Definition: isl_fold.c:1115
__isl_give isl_qpolynomial * isl_qpolynomial_infty_on_domain(__isl_take isl_space *domain)
__isl_give isl_qpolynomial * isl_qpolynomial_move_dims(__isl_take isl_qpolynomial *qp, enum isl_dim_type dst_type, unsigned dst_pos, enum isl_dim_type src_type, unsigned src_pos, unsigned n)
__isl_give isl_qpolynomial * isl_qpolynomial_from_constraint(__isl_take isl_constraint *c, enum isl_dim_type type, unsigned pos)
__isl_give isl_qpolynomial * isl_qpolynomial_sub(__isl_take isl_qpolynomial *qp1, __isl_take isl_qpolynomial *qp2)
isl_bool isl_qpolynomial_is_neginfty(__isl_keep isl_qpolynomial *qp)
__isl_give isl_qpolynomial * isl_qpolynomial_copy(__isl_keep isl_qpolynomial *qp)
__isl_give isl_space * isl_qpolynomial_get_domain_space(__isl_keep isl_qpolynomial *qp)
__isl_null isl_qpolynomial * isl_qpolynomial_free(__isl_take isl_qpolynomial *qp)
isl_stat isl_qpolynomial_foreach_term(__isl_keep isl_qpolynomial *qp, isl_stat(*fn)(__isl_take isl_term *term, void *user), void *user)
__isl_null isl_term * isl_term_free(__isl_take isl_term *term)
__isl_give isl_qpolynomial * isl_qpolynomial_project_domain_on_params(__isl_take isl_qpolynomial *qp)
__isl_give isl_qpolynomial * isl_qpolynomial_neginfty_on_domain(__isl_take isl_space *domain)
__isl_give isl_pw_qpolynomial_fold * isl_pw_qpolynomial_fold_alloc(enum isl_fold type, __isl_take isl_set *set, __isl_take isl_qpolynomial_fold *fold)
__isl_give isl_qpolynomial * isl_qpolynomial_zero_on_domain(__isl_take isl_space *domain)
__isl_give isl_qpolynomial_fold * isl_qpolynomial_fold_alloc(enum isl_fold type, __isl_take isl_qpolynomial *qp)
Definition: isl_fold.c:989
__isl_give isl_qpolynomial * isl_qpolynomial_add(__isl_take isl_qpolynomial *qp1, __isl_take isl_qpolynomial *qp2)
__isl_null isl_pw_qpolynomial_fold * isl_pw_qpolynomial_fold_free(__isl_take isl_pw_qpolynomial_fold *pwf)
isl_size isl_term_dim(__isl_keep isl_term *term, enum isl_dim_type type)
__isl_give isl_pw_qpolynomial_fold * isl_pw_qpolynomial_fold_zero(__isl_take isl_space *space, enum isl_fold type)
__isl_give isl_qpolynomial * isl_qpolynomial_substitute(__isl_take isl_qpolynomial *qp, enum isl_dim_type type, unsigned first, unsigned n, __isl_keep isl_qpolynomial **subs)
__isl_give isl_space * isl_qpolynomial_get_space(__isl_keep isl_qpolynomial *qp)
isl_bool isl_qpolynomial_is_infty(__isl_keep isl_qpolynomial *qp)
__isl_give isl_qpolynomial * isl_qpolynomial_from_term(__isl_take isl_term *term)
__isl_give isl_qpolynomial * isl_qpolynomial_drop_dims(__isl_take isl_qpolynomial *qp, enum isl_dim_type type, unsigned first, unsigned n)
isl_ctx * isl_qpolynomial_get_ctx(__isl_keep isl_qpolynomial *qp)
__isl_give isl_val * isl_pw_qpolynomial_fold_max(__isl_take isl_pw_qpolynomial_fold *pwf)
isl_fold
@ isl_fold_min
@ isl_fold_max
isl_size isl_basic_set_dim(__isl_keep isl_basic_set *bset, enum isl_dim_type type)
Definition: isl_map.c:201
__isl_give isl_basic_set * isl_basic_set_project_out(__isl_take isl_basic_set *bset, enum isl_dim_type type, unsigned first, unsigned n)
Definition: isl_map.c:4568
__isl_export __isl_give isl_basic_set * isl_basic_set_params(__isl_take isl_basic_set *bset)
Definition: isl_map.c:5912
__isl_null isl_basic_set * isl_basic_set_free(__isl_take isl_basic_set *bset)
Definition: isl_map.c:1523
__isl_null isl_set * isl_set_free(__isl_take isl_set *set)
Definition: isl_map.c:3513
__isl_give isl_basic_set * isl_basic_set_move_dims(__isl_take isl_basic_set *bset, enum isl_dim_type dst_type, unsigned dst_pos, enum isl_dim_type src_type, unsigned src_pos, unsigned n)
Definition: isl_map.c:4311
__isl_export isl_stat isl_set_foreach_basic_set(__isl_keep isl_set *set, isl_stat(*fn)(__isl_take isl_basic_set *bset, void *user), void *user)
Definition: isl_map.c:11277
__isl_give isl_set * isl_set_split_dims(__isl_take isl_set *set, enum isl_dim_type type, unsigned first, unsigned n)
Definition: isl_map.c:8990
isl_ctx * isl_basic_set_get_ctx(__isl_keep isl_basic_set *bset)
Definition: isl_map.c:386
__isl_constructor __isl_give isl_set * isl_set_from_basic_set(__isl_take isl_basic_set *bset)
Definition: isl_map.c:3482
__isl_give isl_basic_set * isl_basic_set_copy(__isl_keep isl_basic_set *bset)
Definition: isl_map.c:1465
isl_stat isl_basic_set_dims_get_sign(__isl_keep isl_basic_set *bset, enum isl_dim_type type, unsigned pos, unsigned n, int *signs)
Definition: isl_map.c:11652
__isl_null isl_space * isl_space_free(__isl_take isl_space *space)
Definition: isl_space.c:445
__isl_give isl_space * isl_space_from_domain(__isl_take isl_space *space)
Definition: isl_space.c:2148
__isl_export __isl_give isl_space * isl_space_params(__isl_take isl_space *space)
Definition: isl_space.c:2211
__isl_give isl_space * isl_space_copy(__isl_keep isl_space *space)
Definition: isl_space.c:436
__isl_give isl_space * isl_space_add_dims(__isl_take isl_space *space, enum isl_dim_type type, unsigned n)
Definition: isl_space.c:1229
@ isl_dim_param
Definition: space_type.h:15
@ isl_dim_in
Definition: space_type.h:16
@ isl_dim_set
Definition: space_type.h:18
@ isl_dim_all
Definition: space_type.h:20
@ isl_dim_out
Definition: space_type.h:17
isl_basic_set * bset
Definition: isl_bound.h:12
isl_int one
isl_qpolynomial * poly
Definition: isl_range.c:186
isl_pw_qpolynomial_fold * pwf
Definition: isl_range.c:17
struct isl_bound * bound
Definition: isl_range.c:10
int test_monotonicity
Definition: isl_range.c:13
isl_pw_qpolynomial_fold * pwf_tight
Definition: isl_range.c:18
int monotonicity
Definition: isl_range.c:14
int * signs
Definition: isl_range.c:11
int sign
Definition: isl_range.c:12
isl_qpolynomial * poly
Definition: isl_range.c:16
int tight
Definition: isl_range.c:15
__isl_export isl_bool isl_val_is_nan(__isl_keep isl_val *v)
Definition: isl_val.c:1161
__isl_export isl_bool isl_val_is_neginfty(__isl_keep isl_val *v)
Definition: isl_val.c:1181
__isl_export isl_bool isl_val_is_infty(__isl_keep isl_val *v)
Definition: isl_val.c:1171
__isl_export int isl_val_sgn(__isl_keep isl_val *v)
Definition: isl_val.c:1272
__isl_null isl_val * isl_val_free(__isl_take isl_val *v)
Definition: isl_val.c:263
n
Definition: youcefn.c:8