4 #include <polylib/polylibgmp.h>
5 #include "ev_operations.h"
9 struct option options
[] = {
10 { "convert", no_argument
, 0, 'c' },
11 { "size", no_argument
, 0, 's' },
16 int main(int argc
, char **argv
)
26 while ((c
= getopt_long(argc
, argv
, "cs", options
, &ind
)) != -1) {
38 A
= Constraints2Polyhedron(M
, 600);
41 C
= Constraints2Polyhedron(M
, 600);
43 Polyhedron_Print(stdout
, P_VALUE_FMT
, A
);
44 Polyhedron_Print(stdout
, P_VALUE_FMT
, C
);
45 param_name
= Read_ParamNames(stdin
, C
->Dimension
);
46 en
= barvinok_enumerate(A
, C
, 600);
47 Enumeration_Print(stdout
, en
, param_name
);
49 printf("\nSize: %d\n", Enumeration_size(en
));
51 Enumeration_mod2table(en
, C
->Dimension
);
52 Enumeration_Print(stdout
, en
, param_name
);
54 printf("\nSize: %d\n", Enumeration_size(en
));
57 Free_ParamNames(param_name
, C
->Dimension
);