-
Notifications
You must be signed in to change notification settings - Fork 9
/
main.ml
29 lines (26 loc) · 1.31 KB
/
main.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
(* ========================================================================== *)
(* FPTaylor: A Tool for Rigorous Estimation of Round-off Errors *)
(* *)
(* Author: Alexey Solovyev, University of Utah *)
(* *)
(* This file is distributed under the terms of the MIT license *)
(* ========================================================================== *)
(* -------------------------------------------------------------------------- *)
(* FPTaylor's main function *)
(* -------------------------------------------------------------------------- *)
let main () =
Log.report `Main "FPTaylor, version %s" Version.version;
Config.init [];
let input_files = Config.input_files () in
if input_files = [] then begin
let prog_name = Sys.argv.(0) in
Printf.printf
"\nUsage: %s [--opt_name opt_value ...] [-c config1 ...] \
input_file1 [input_file2 ...]\n\n\
Run '%s --help' to see a list of available options.\n\n"
prog_name prog_name;
exit 1
end;
Fptaylor.validate_options ();
Fptaylor.fptaylor input_files |> ignore
let () = main ()