Polly 20.0.0git
closure.c
Go to the documentation of this file.
1#include <assert.h>
2#include <isl/map.h>
3#include <isl/options.h>
4
5int main(int argc, char **argv)
6{
7 struct isl_ctx *ctx;
8 struct isl_map *map;
9 struct isl_options *options;
11 isl_bool exact;
12
13 options = isl_options_new_with_defaults();
15 argc = isl_options_parse(options, argc, argv, ISL_ARG_ALL);
16
17 ctx = isl_ctx_alloc_with_options(&isl_options_args, options);
18
19 p = isl_printer_to_file(ctx, stdout);
20
21 map = isl_map_read_from_file(ctx, stdin);
23 if (!exact)
24 p = isl_printer_print_str(p, "# NOT exact\n");
29 p = isl_printer_print_str(p, "# coalesced\n");
33
35
36 isl_ctx_free(ctx);
37
38 return 0;
39}
#define ISL_ARG_ALL
Definition: arg.h:288
isl_ctx * isl_ctx_alloc_with_options(struct isl_args *args, __isl_take void *opt)
isl_bool
Definition: ctx.h:89
void isl_ctx_free(isl_ctx *ctx)
Definition: isl_ctx.c:288
const char * map
Definition: isl_test.c:1783
const char * p
Definition: isl_test.c:8643
#define assert(exp)
__isl_give isl_map * isl_map_transitive_closure(__isl_take isl_map *map, isl_bool *exact)
__isl_give isl_map * isl_map_read_from_file(isl_ctx *ctx, FILE *input)
Definition: isl_input.c:3316
__isl_give isl_printer * isl_printer_print_map(__isl_take isl_printer *printer, __isl_keep isl_map *map)
Definition: isl_output.c:1593
__isl_export __isl_give isl_map * isl_map_coalesce(__isl_take isl_map *map)
__isl_null isl_map * isl_map_free(__isl_take isl_map *map)
Definition: isl_map.c:6421
__isl_give isl_map * isl_map_compute_divs(__isl_take isl_map *map)
Definition: isl_map.c:8086
__isl_null isl_printer * isl_printer_free(__isl_take isl_printer *printer)
Definition: isl_printer.c:269
__isl_give isl_printer * isl_printer_to_file(isl_ctx *ctx, FILE *file)
Definition: isl_printer.c:217
__isl_give isl_printer * isl_printer_print_str(__isl_take isl_printer *p, const char *s)
Definition: isl_printer.c:617
__isl_give isl_printer * isl_printer_end_line(__isl_take isl_printer *p)
Definition: isl_printer.c:667