1 #include <polylib/polylibgmp.h>
2 #include <barvinok/evalue.h>
3 #include <barvinok/util.h>
6 #ifdef HAVE_GROWING_CHERNIKOVA
12 void dump_polytope(Polyhedron
*P
)
17 fprintf(stdout
, "%d %d\n", nr
=P
->NbConstraints
, nc
=P
->Dimension
+2);
18 for (i
=0; i
< nr
; i
++) {
19 for (j
=0; j
< nc
; j
++) {
20 value_print(stdout
," "P_VALUE_FMT
" ", P
->Constraint
[i
][j
]);
22 fprintf(stdout
, "\n");
26 int main(int argc
, char **argv
)
35 A
= Constraints2Polyhedron(M
, MAXRAYS
);
38 C
= Constraints2Polyhedron(M
, MAXRAYS
);
40 param_name
= Read_ParamNames(stdin
, C
->Dimension
);
41 A
= remove_equalities_p(A
, A
->Dimension
-C
->Dimension
, 0);
46 for (i
= 0; i
< C
->Dimension
; ++i
)
47 printf("%s ", param_name
[i
]);
49 Free_ParamNames(param_name
, C
->Dimension
);