2 #include <barvinok/options.h>
3 #include <barvinok/util.h>
9 int main(int argc
, char **argv
)
11 struct barvinok_options
*options
= barvinok_options_new_with_defaults();
19 set_program_name(argv
[0]);
20 argp_parse(&barvinok_argp
, argc
, argv
, 0, 0, options
);
22 P
= Polyhedron_Read(options
->MaxRays
);
24 minmax
= Vector_Alloc(2);
26 if (obj
->Size
== P
->Dimension
) {
27 affine
= Vector_Alloc(P
->Dimension
+1);
28 Vector_Copy(obj
->p
, affine
->p
, P
->Dimension
);
29 value_set_si(affine
->p
[P
->Dimension
], 1);
30 } else if (obj
->Size
== P
->Dimension
+1)
37 res
= polyhedron_range(P
, affine
->p
, one
, &minmax
->p
[0], &minmax
->p
[1],
42 opt
= Polyhedron_Integer_Minimum(P
, obj
->p
, minmax
->p
[0], minmax
->p
[1],
44 Vector_Print(stdout
, P_VALUE_FMT
, opt
);
53 barvinok_options_free(options
);