lib_LTLIBRARIES = libisl.la
noinst_PROGRAMS = isl_test isl_polyhedron_sample isl_pip \
isl_polyhedron_minimize isl_polytope_scan \
- isl_polyhedron_detect_equalities isl_cat
+ isl_polyhedron_detect_equalities isl_cat \
+ isl_closure
TESTS = isl_test
if HAVE_PIPLIB
isl_cat_SOURCES = \
cat.c
+isl_closure_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
+ @GMP_CPPFLAGS@
+isl_closure_LDADD = libisl.la
+isl_closure_SOURCES = \
+ closure.c
+
nodist_pkginclude_HEADERS = \
include/isl_config.h \
include/isl_stdint.h
--- /dev/null
+#include <isl_map.h>
+
+int main(int argc, char **argv)
+{
+ struct isl_ctx *ctx;
+ struct isl_map *map;
+ int exact;
+
+ ctx = isl_ctx_alloc();
+
+ map = isl_map_read_from_file(ctx, stdin, -1);
+ map = isl_map_transitive_closure(map, &exact);
+ if (!exact)
+ printf("# NOT exact\n");
+ isl_map_print(map, stdout, 0, ISL_FORMAT_ISL);
+ map = isl_map_compute_divs(map);
+ map = isl_map_coalesce(map);
+ printf("# coalesced\n");
+ isl_map_print(map, stdout, 0, ISL_FORMAT_ISL);
+ isl_map_free(map);
+
+ isl_ctx_free(ctx);
+
+ return 0;
+}