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
)
24 const char **param_name
;
26 struct barvinok_options
*options
= barvinok_options_new_with_defaults();
29 A
= Constraints2Polyhedron(M
, options
->MaxRays
);
32 C
= Constraints2Polyhedron(M
, options
->MaxRays
);
34 param_name
= Read_ParamNames(stdin
, C
->Dimension
);
35 A
= remove_equalities_p(A
, A
->Dimension
-C
->Dimension
, 0, options
->MaxRays
);
40 for (i
= 0; i
< C
->Dimension
; ++i
)
41 printf("%s ", param_name
[i
]);
43 Free_ParamNames(param_name
, C
->Dimension
);
46 barvinok_options_free(options
);