1 #include <barvinok/options.h>
2 #include <barvinok/evalue.h>
3 #include <barvinok/util.h>
6 void dump_polytope(Polyhedron
*P
)
11 fprintf(stdout
, "%d %d\n", nr
=P
->NbConstraints
, nc
=P
->Dimension
+2);
12 for (i
=0; i
< nr
; i
++) {
13 for (j
=0; j
< nc
; j
++) {
14 value_print(stdout
," "P_VALUE_FMT
" ", P
->Constraint
[i
][j
]);
16 fprintf(stdout
, "\n");
20 int main(int argc
, char **argv
)
25 const char **param_name
;
27 struct barvinok_options
*options
= barvinok_options_new_with_defaults();
30 A
= Constraints2Polyhedron(M
, options
->MaxRays
);
33 C
= Constraints2Polyhedron(M
, options
->MaxRays
);
35 param_name
= Read_ParamNames(stdin
, C
->Dimension
);
36 A
= remove_equalities_p(A
, A
->Dimension
-C
->Dimension
, 0, options
->MaxRays
);
41 for (i
= 0; i
< C
->Dimension
; ++i
)
42 printf("%s ", param_name
[i
]);
44 Free_ParamNames(param_name
, C
->Dimension
);
47 barvinok_options_free(options
);