2 #include <barvinok/evalue.h>
3 #include <barvinok/barvinok.h>
7 int main(int argc
, char **argv
)
11 Polyhedron
*D
, *P
, *N
;
13 int exist
, nparam
, nvar
;
18 A
= Constraints2Polyhedron(M
, MAXRAYS
);
22 while ((*s
=='#') || (sscanf(s
, "E %d", &exist
)<1))
26 while ((*s
=='#') || (sscanf(s
, "P %d", &nparam
)<1))
29 Polyhedron_Print(stdout
, P_VALUE_FMT
, A
);
30 printf("exist: %d, nparam: %d\n", exist
, nparam
);
31 param_name
= Read_ParamNames(stdin
, nparam
);
33 nvar
= A
->Dimension
- exist
- nparam
;
34 D
= pip_projectout(A
, nvar
, exist
, nparam
);
37 evalue_set_si(&sum
, 0, 1);
38 for (P
= D
; P
; P
= N
) {
42 exist
= P
->Dimension
- nvar
- nparam
;
43 EP
= barvinok_enumerate_e(P
, exist
, nparam
, MAXRAYS
);
44 print_evalue(stderr
, EP
, (const char **)param_name
);
47 print_evalue(stderr
, &sum
, (const char **)param_name
);