barvinok 0.41.8
[barvinok.git] / cone_integer_hull.c
blob3c75998ce2556ca24e408df249fa5e7d86a65bc6
1 #include <barvinok/polylib.h>
2 #include <barvinok/options.h>
3 #include "hull.h"
5 int main(int argc, char **argv)
7 Matrix *M;
8 Polyhedron *C;
9 struct barvinok_options *options = barvinok_options_new_with_defaults();
11 argc = barvinok_options_parse(options, argc, argv, ISL_ARG_ALL);
13 M = Matrix_Read();
14 C = Constraints2Polyhedron(M, options->MaxRays);
15 Matrix_Free(M);
17 M = Cone_Integer_Hull(C, NULL, 0, options);
19 Polyhedron_Free(C);
21 Matrix_Print(stdout, P_VALUE_FMT, M);
22 Matrix_Free(M);
24 if (options->print_stats)
25 barvinok_stats_print(options->stats, stdout);
27 barvinok_options_free(options);
28 return 0;