1
|
(* ----------------------------------------------------------------------------
|
2
|
* SchedMCore - A MultiCore Scheduling Framework
|
3
|
* Copyright (C) 2009-2011, ONERA, Toulouse, FRANCE - LIFL, Lille, FRANCE
|
4
|
*
|
5
|
* This file is part of Prelude
|
6
|
*
|
7
|
* Prelude is free software; you can redistribute it and/or
|
8
|
* modify it under the terms of the GNU Lesser General Public License
|
9
|
* as published by the Free Software Foundation ; either version 2 of
|
10
|
* the License, or (at your option) any later version.
|
11
|
*
|
12
|
* Prelude is distributed in the hope that it will be useful, but
|
13
|
* WITHOUT ANY WARRANTY ; without even the implied warranty of
|
14
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
15
|
* Lesser General Public License for more details.
|
16
|
*
|
17
|
* You should have received a copy of the GNU Lesser General Public
|
18
|
* License along with this program ; if not, write to the Free Software
|
19
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
20
|
* USA
|
21
|
*---------------------------------------------------------------------------- *)
|
22
|
|
23
|
let version = "1.2"
|
24
|
let main_node = ref ""
|
25
|
let static_mem = ref true
|
26
|
let print_types = ref true
|
27
|
let print_clocks = ref true
|
28
|
let delay_calculus = ref true
|
29
|
let track_exceptions = ref true
|
30
|
let ansi = ref false
|
31
|
let check = ref false
|
32
|
let c_spec = ref false
|
33
|
let java = ref false
|
34
|
let dest_dir = ref ""
|
35
|
let verbose_level = ref 1
|
36
|
let nb_mutants = ref 1000
|
37
|
|
38
|
let common_options =
|
39
|
[ "-print_types", Arg.Set print_types, "prints node types";
|
40
|
"-print_clocks", Arg.Set print_clocks, "prints node clocks";
|
41
|
"-verbose", Arg.Set_int verbose_level, " changes verbose level <default: 1>";
|
42
|
"-version", Arg.Unit (fun () -> print_endline version), " displays the version";]
|
43
|
|
44
|
let lustrec_options =
|
45
|
[ "-d", Arg.Set_string dest_dir, "produces code in the specified directory";
|
46
|
"-node", Arg.Set_string main_node, "specifies the main node";
|
47
|
"-init", Arg.Set delay_calculus, "performs an initialisation analysis for Lustre nodes";
|
48
|
"-dynamic", Arg.Clear static_mem, "specifies a dynamic allocation scheme for main Lustre node (default: static)";
|
49
|
"-ansi", Arg.Set ansi, "specifies that generated C code is ansi C90 compliant (default is C99)";
|
50
|
"-check-access", Arg.Set check, "checks at runtime that array accesses always lie within bounds (default: no check)";
|
51
|
"-c-spec", Arg.Set c_spec,
|
52
|
"generates a C encoding of the specification instead of ACSL contracts and annotations. Only meaningful for the C backend";
|
53
|
"-java", Arg.Set java, "generates Java output instead of C";
|
54
|
] @ common_options
|
55
|
|
56
|
let lustrem_options =
|
57
|
[ "-d", Arg.Set_string dest_dir, "produces mutants in the specified directory";
|
58
|
"-nb", Arg.Set_int nb_mutants, "Number of mutants to produce (default 1000)"
|
59
|
]
|
60
|
@ common_options
|
61
|
|
62
|
(* Local Variables: *)
|
63
|
(* compile-command:"make -C .." *)
|
64
|
(* End: *)
|