2 #include <barvinok/options.h>
3 #include <bound_common.h>
8 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_bound_bernstein(
9 __isl_take isl_pw_qpolynomial
*pwqp
, enum isl_fold type
)
15 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_upper_bound(
16 __isl_take isl_pw_qpolynomial
*pwqp
)
19 return isl_pw_qpolynomial_bound(pwqp
, isl_fold_max
, BV_BOUND_BERNSTEIN
);
21 return isl_pw_qpolynomial_bound(pwqp
, isl_fold_max
, BV_BOUND_RANGE
);
25 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_bound(
26 __isl_take isl_pw_qpolynomial
*pwqp
, enum isl_fold type
, int method
)
28 if (method
== BV_BOUND_BERNSTEIN
)
29 return isl_pw_qpolynomial_bound_bernstein(pwqp
, type
);
31 return isl_pw_qpolynomial_bound_range(pwqp
, type
, NULL
);