1 #include <barvinok/evalue.h>
2 #include <barvinok/util.h>
5 #ifdef HAVE_GROWING_CHERNIKOVA
11 void dump_polytope(Polyhedron
*P
)
16 fprintf(stdout
, "%d %d\n", nr
=P
->NbConstraints
, nc
=P
->Dimension
+2);
17 for (i
=0; i
< nr
; i
++) {
18 for (j
=0; j
< nc
; j
++) {
19 value_print(stdout
," "P_VALUE_FMT
" ", P
->Constraint
[i
][j
]);
21 fprintf(stdout
, "\n");
25 int main(int argc
, char **argv
)
34 A
= Constraints2Polyhedron(M
, MAXRAYS
);
37 C
= Constraints2Polyhedron(M
, MAXRAYS
);
39 param_name
= Read_ParamNames(stdin
, C
->Dimension
);
40 A
= remove_equalities_p(A
, A
->Dimension
-C
->Dimension
, 0);
45 for (i
= 0; i
< C
->Dimension
; ++i
)
46 printf("%s ", param_name
[i
]);
48 Free_ParamNames(param_name
, C
->Dimension
);