cone_integer_hull: optionally print stats
[barvinok.git] / cone_integer_hull.c
blob8ebe40abbd9ee4e11d3594f38b943f7cb51d1a69
1 #include <barvinok/polylib.h>
2 #include <barvinok/options.h>
3 #include "hilbert.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 M = Matrix_Read();
12 C = Constraints2Polyhedron(M, options->MaxRays);
13 Matrix_Free(M);
15 M = Cone_Integer_Hull(C, options);
17 Polyhedron_Free(C);
19 Matrix_Print(stdout, P_VALUE_FMT, M);
20 Matrix_Free(M);
22 if (options->print_stats)
23 barvinok_stats_print(options->stats, stdout);
25 barvinok_options_free(options);
26 return 0;