1 #include <barvinok/options.h>
2 #include "evalue_convert.h"
3 #include "evalue_read.h"
6 struct convert_options
*convert
;
7 struct barvinok_options
*barvinok
;
10 struct isl_arg options_arg
[] = {
11 ISL_ARG_CHILD(struct options
, convert
, NULL
, convert_options_arg
, NULL
)
12 ISL_ARG_CHILD(struct options
, barvinok
, NULL
, barvinok_options_arg
, NULL
)
16 ISL_ARG_DEF(options
, struct options
, options_arg
)
18 int main(int argc
, char **argv
)
21 const char **all_vars
= NULL
;
24 struct options
*options
= options_new_with_defaults();
27 argc
= options_parse(options
, argc
, argv
, ISL_ARG_ALL
);
29 EP
= evalue_read_from_file(stdin
, NULL
, &all_vars
,
30 &nvar
, &nparam
, options
->barvinok
->MaxRays
);
34 evalue_convert(EP
, options
->convert
, options
->barvinok
->verbose
,
35 nvar
+nparam
, all_vars
);
38 print_evalue(stdout
, EP
, all_vars
);
41 Free_ParamNames(all_vars
, nvar
+nparam
);
42 options_free(options
);