4 #include <polylib/polylibgmp.h>
7 struct isl_ctx *isl_ctx_alloc()
9 struct isl_ctx *ctx = NULL;
11 ctx = isl_alloc_type(NULL, struct isl_ctx);
17 isl_int_init(ctx->one);
18 isl_int_set_si(ctx->one, 1);
23 ctx->MaxRays = POL_NO_DUAL | POL_INTEGER;
32 void isl_ctx_ref(struct isl_ctx *ctx)
37 void isl_ctx_deref(struct isl_ctx *ctx)
39 isl_assert(ctx, ctx->ref > 0, return);
43 void isl_ctx_free(struct isl_ctx *ctx)
47 isl_assert(ctx, ctx->ref == 0, return);
48 isl_blk_clear_cache(ctx);
49 isl_int_clear(ctx->one);