4 #include <barvinok/util.h>
5 #include <barvinok/barvinok.h>
11 #define getopt_long(a,b,c,d,e) getopt(a,b,c)
14 #define PRINT_STATS 256
15 struct option options
[] = {
16 { "print-stats", no_argument
, &print_stats
, PRINT_STATS
},
17 { "version", no_argument
, 0, 'V' },
22 int main(int argc
, char **argv
)
27 struct barvinok_options
*bv_options
= barvinok_options_new_with_defaults();
29 while ((c
= getopt_long(argc
, argv
, "V", options
, &ind
)) != -1) {
32 printf(barvinok_version());
38 A
= Polyhedron_Read(bv_options
->MaxRays
);
40 Polyhedron_Print(stdout
, P_VALUE_FMT
, A
);
41 barvinok_count_with_options(A
, &cb
, bv_options
);
42 value_print(stdout
, P_VALUE_FMT
, cb
);
45 barvinok_stats_print(&bv_options
->stats
, stdout
);