barvinok/options.h: put stats first in barvinok_options
[barvinok.git] / polyhedron_sample.c
blob03fb56a479bd248726fa094fd4d2e8e617839283
1 #include <barvinok/options.h>
2 #include <barvinok/sample.h>
3 #include "config.h"
5 int main(int argc, char **argv)
7 Matrix *M;
8 Polyhedron *P;
9 Vector *sample;
10 struct barvinok_options *bv_options = barvinok_options_new_with_defaults();
12 M = Matrix_Read();
13 P = Constraints2Polyhedron(M, bv_options->MaxRays);
14 Matrix_Free(M);
16 sample = Polyhedron_Sample(P, bv_options);
17 if (sample) {
18 assert(in_domain(P, sample->p));
19 Vector_Print(stdout, P_VALUE_FMT, sample);
20 Vector_Free(sample);
23 Polyhedron_Free(P);
24 barvinok_options_free(bv_options);