Revision 1b57e111
Added by Teme Kahsai almost 8 years ago
src/options.ml | ||
---|---|---|
15 | 15 |
let include_path = |
16 | 16 |
if (!include_dir != ".") then Version.prefix ^ !include_dir |
17 | 17 |
else Version.include_path |
18 |
|
|
18 |
|
|
19 | 19 |
|
20 | 20 |
|
21 | 21 |
|
... | ... | |
52 | 52 |
|
53 | 53 |
let salsa_enabled = ref true |
54 | 54 |
|
55 |
let sfunction = ref "" |
|
56 |
|
|
55 | 57 |
let set_mpfr prec = |
56 | 58 |
if prec > 0 then ( |
57 | 59 |
mpfr := true; |
... | ... | |
60 | 62 |
) |
61 | 63 |
else |
62 | 64 |
failwith "mpfr requires a positive integer" |
63 |
|
|
65 |
|
|
64 | 66 |
let options = |
65 | 67 |
[ "-d", Arg.Set_string dest_dir, |
66 | 68 |
"uses the specified directory \x1b[4mdir\x1b[0m as root for generated/imported object and C files <default: .>"; |
... | ... | |
87 | 89 |
"-print_clocks", Arg.Set print_clocks, "prints node clocks"; |
88 | 90 |
"-O", Arg.Set_int optimization, "changes optimization \x1b[4mlevel\x1b[0m <default: 2>"; |
89 | 91 |
"-verbose", Arg.Set_int verbose_level, "changes verbose \x1b[4mlevel\x1b[0m <default: 1>"; |
92 |
"-horn-sfunction", Arg.Set_string sfunction, "Get the endpoint predicate of the sfunction"; |
|
90 | 93 |
"-version", Arg.Unit print_version, " displays the version";] |
91 | 94 |
|
92 | 95 |
|
93 | 96 |
let plugin_opt (name, activate, options) = |
94 | 97 |
( "-" ^ name , Arg.Unit activate, "activate plugin " ^ name ) :: |
95 | 98 |
(List.map (fun (opt, act, desc) -> "-" ^ name ^ opt, act, desc) options) |
96 |
|
|
99 |
|
|
97 | 100 |
|
98 | 101 |
let get_witness_dir filename = |
99 | 102 |
(* Make sure the directory exists *) |
Also available in: Unified diff
adding sfunction support