2 #include <barvinok/options.h>
3 #include <barvinok/util.h>
7 int main(int argc
, char **argv
)
9 struct barvinok_options
*options
= barvinok_options_new_with_defaults();
17 argc
= barvinok_options_parse(options
, argc
, argv
, ISL_ARG_ALL
);
19 P
= Polyhedron_Read(options
->MaxRays
);
21 minmax
= Vector_Alloc(2);
23 if (obj
->Size
== P
->Dimension
) {
24 affine
= Vector_Alloc(P
->Dimension
+1);
25 Vector_Copy(obj
->p
, affine
->p
, P
->Dimension
);
26 value_set_si(affine
->p
[P
->Dimension
], 0);
27 } else if (obj
->Size
== P
->Dimension
+1)
34 res
= polyhedron_range(P
, affine
->p
, one
, &minmax
->p
[0], &minmax
->p
[1],
39 opt
= Polyhedron_Integer_Minimum(P
, obj
->p
, minmax
->p
[0], minmax
->p
[1],
41 Vector_Print(stdout
, P_VALUE_FMT
, opt
);
50 barvinok_options_free(options
);