14#define __isl_calloc(type,size) ((type *)calloc(1, size))
15#define __isl_calloc_type(type) __isl_calloc(type,sizeof(type))
81 "maximal number of operations exceeded",
return -1);
120 const char *file,
int line)
131 const char *file,
int line)
140 fprintf(stderr,
"%s:%d: %s\n", file, line, msg);
145 fprintf(stderr,
"%s:%d: %s\n", file, line, msg);
170 child = *(
void **)(((
char *)opt) +
arg->offset);
191 if (args == &isl_options_args)
200 int opt_allocated = 0;
207 opt = isl_options_new_with_defaults();
256 isl_options_free(opt);
265 opt = isl_options_new_with_defaults();
285 fprintf(stderr,
"operations: %lu\n", ctx->
operations);
294 "isl_ctx not freed as some objects still reference it",
309 isl_options_free(ctx->
opt);
376 return ctx ? ctx->
abort : -1;
void isl_args_free(struct isl_args *args, void *opt)
int isl_args_parse(struct isl_args *args, int argc, char **argv, void *opt, unsigned flags)
#define ISL_ARG_OFFSET_NONE
#define isl_calloc_type(ctx, type)
#define isl_die(ctx, errno, msg, code)
#define isl_assert(ctx, test, code)
void isl_hash_table_clear(struct isl_hash_table *table)
int isl_hash_table_init(struct isl_ctx *ctx, struct isl_hash_table *table, int min_size)
void isl_blk_clear_cache(struct isl_ctx *ctx)
isl_stat isl_stat_non_null(void *obj)
const char * isl_ctx_last_error_file(isl_ctx *ctx)
enum isl_error isl_ctx_last_error(isl_ctx *ctx)
void isl_ctx_free(struct isl_ctx *ctx)
int isl_ctx_aborted(isl_ctx *ctx)
void * isl_realloc_or_die(isl_ctx *ctx, void *ptr, size_t size)
static void * check_non_null(isl_ctx *ctx, void *p, size_t size)
static void print_stats(isl_ctx *ctx)
void isl_handle_error(isl_ctx *ctx, enum isl_error error, const char *msg, const char *file, int line)
#define __isl_calloc_type(type)
void isl_ctx_deref(struct isl_ctx *ctx)
unsigned long isl_ctx_get_max_operations(isl_ctx *ctx)
void isl_ctx_reset_operations(isl_ctx *ctx)
isl_bool isl_bool_ok(int b)
void isl_ctx_resume(isl_ctx *ctx)
void isl_ctx_reset_error(isl_ctx *ctx)
static struct isl_options * find_nested_options(struct isl_args *args, void *opt, struct isl_args *wanted)
void * isl_calloc_or_die(isl_ctx *ctx, size_t nmemb, size_t size)
struct isl_ctx * isl_ctx_alloc()
static struct isl_options * find_nested_isl_options(struct isl_args *args, void *opt)
void isl_ctx_set_error(isl_ctx *ctx, enum isl_error error)
int isl_ctx_last_error_line(isl_ctx *ctx)
void isl_ctx_abort(isl_ctx *ctx)
void isl_ctx_ref(struct isl_ctx *ctx)
int isl_ctx_next_operation(isl_ctx *ctx)
isl_ctx * isl_ctx_alloc_with_options(struct isl_args *args, void *user_opt)
struct isl_options * isl_ctx_options(isl_ctx *ctx)
isl_bool isl_bool_not(isl_bool b)
void * isl_malloc_or_die(isl_ctx *ctx, size_t size)
const char * isl_ctx_last_error_msg(isl_ctx *ctx)
void * isl_ctx_peek_options(isl_ctx *ctx, struct isl_args *args)
void isl_ctx_set_max_operations(isl_ctx *ctx, unsigned long max_operations)
int isl_ctx_parse_options(isl_ctx *ctx, int argc, char **argv, unsigned flags)
void isl_ctx_set_full_error(isl_ctx *ctx, enum isl_error error, const char *msg, const char *file, int line)
#define isl_int_set_si(r, i)
#define ISL_ON_ERROR_ABORT
#define ISL_ON_ERROR_WARN
#define ISL_ON_ERROR_CONTINUE
struct isl_args * user_args
struct isl_hash_table id_table
unsigned long max_operations
unsigned long max_operations