4 /* RANGE : normal range for evalutations (-RANGE -> RANGE) */
7 /* SRANGE : small range for evalutations */
10 /* if dimension >= BIDDIM, use SRANGE */
13 /* VSRANGE : very small range for evalutations */
16 /* if dimension >= VBIDDIM, use VSRANGE */
19 static struct argp_option argp_options
[] = {
20 { "verify", 'T', 0, 0 },
21 { "print-all", 'A', 0, 0 },
22 { "min", 'm', "int", 0 },
23 { "max", 'M', "int", 0 },
24 { "range", 'r', "int", 0 },
28 static error_t
parse_opt(int key
, char *arg
, struct argp_state
*state
)
30 struct verify_options
*options
= state
->input
;
35 options
->print_all
= 0;
45 options
->print_all
= 1;
48 options
->m
= atoi(arg
);
52 options
->M
= atoi(arg
);
56 options
->M
= atoi(arg
);
57 options
->m
= -options
->M
;
61 return ARGP_ERR_UNKNOWN
;
66 void verify_options_set_range(struct verify_options
*options
, Polyhedron
*P
)
70 if (P
->Dimension
>= VBIGDIM
)
72 else if (P
->Dimension
>= BIGDIM
)
76 if (options
->M
== INT_MIN
)
78 if (options
->m
== INT_MAX
)
81 if (options
->verify
&& options
->m
> options
->M
) {
82 fprintf(stderr
,"Nothing to do: min > max !\n");
87 struct argp verify_argp
= {
88 argp_options
, parse_opt
, 0, 0