isl_tab_relax: make sure no non-negative rows get a negative sample value
[isl.git] / closure.c
blob86556950af35c100e472654f896266e0cece5596
1 #include <isl_map.h>
3 int main(int argc, char **argv)
5 struct isl_ctx *ctx;
6 struct isl_map *map;
7 int exact;
9 ctx = isl_ctx_alloc();
11 map = isl_map_read_from_file(ctx, stdin, -1);
12 map = isl_map_transitive_closure(map, &exact);
13 if (!exact)
14 printf("# NOT exact\n");
15 isl_map_print(map, stdout, 0, ISL_FORMAT_ISL);
16 printf("\n");
17 map = isl_map_compute_divs(map);
18 map = isl_map_coalesce(map);
19 printf("# coalesced\n");
20 isl_map_print(map, stdout, 0, ISL_FORMAT_ISL);
21 printf("\n");
22 isl_map_free(map);
24 isl_ctx_free(ctx);
26 return 0;