* ZAC des vignes, 4 rue Jacques Monod, 91893 Orsay, France
*/
+#include <isl_ctx_private.h>
+#include <isl_map_private.h>
#include <isl/set.h>
#include <isl/seq.h>
#include <isl_morph.h>
#include <isl_vertices_private.h>
#include <isl_polynomial_private.h>
#include <isl_bernstein.h>
-#include <isl_map_private.h>
struct bernstein_data {
enum isl_fold type;
*/
static int is_tight(int *k, int n, int d, isl_cell *cell)
{
- int i, j;
+ int i;
for (i = 0; i < n; ++i) {
int v;
isl_set *dom;
isl_ctx *ctx;
+ if (!poly)
+ goto error;
+
nvar = isl_qpolynomial_dim(poly, isl_dim_set) - 1;
n_vertices = cell->n_vertices;
return isl_cell_foreach_simplex(cell,
&bernstein_coefficients_cell, user);
- subs = isl_alloc_array(data->poly->dim->ctx, isl_qpolynomial *,
- 1 + nvar);
+ subs = isl_alloc_array(ctx, isl_qpolynomial *, 1 + nvar);
if (!subs)
goto error;