/*
* Copyright 2008-2009 Katholieke Universiteit Leuven
*
- * Use of this software is governed by the GNU LGPLv2.1 license
+ * Use of this software is governed by the MIT license
*
* Written by Sven Verdoolaege, K.U.Leuven, Departement
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*/
-#include "isl_mat.h"
-#include "isl_vec.h"
-#include "isl_seq.h"
+#include <isl/mat.h>
+#include <isl/vec.h>
+#include <isl/seq.h>
#include "isl_piplib.h"
#include "isl_sample_piplib.h"
if (!bset)
goto error;
- ctx = bset->ctx;
+ ctx = isl_basic_set_get_ctx(bset);
isl_assert(ctx, isl_basic_set_n_param(bset) == 0, goto error);
- isl_assert(ctx, bset->n_div == 0, goto error);
+ isl_assert(ctx, isl_basic_set_dim(bset, isl_dim_div) == 0, goto error);
dim = isl_basic_set_n_dim(bset);
domain = isl_basic_map_to_pip((struct isl_basic_map *)bset, 0, 0, 0);
if (!domain)