This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathoptions.ml
136 lines (84 loc) · 2.72 KB
/
options.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
let () = Plugin.is_share_visible ()
module Self = Plugin.Register (struct
let name = "StaDy"
let shortname = "stady"
let help = "Counter-Example Generation by Dynamic Analysis"
end)
module PP = Self
include PP
module Enabled = Self.False (struct
let option_name = "-stady"
let help = ""
end)
module Version = Self.False (struct
let option_name = "-stady-version"
let help = "print the version"
end)
module PathCrawler_Options = Self.String (struct
let option_name = "-stady-pc-options"
let help = "command line options for PathCrawler"
let arg_name = "options"
let default = ""
end)
module Socket_Type = Self.String (struct
let option_name = "-stady-socket"
let help = "use internet socket or unix socket or standard i/o"
let arg_name = "internet | unix | stdio"
let default = "internet"
end)
let () = Socket_Type.set_possible_values ["internet"; "unix"; "stdio"]
module Functions = Self.String_list (struct
let option_name = "-stady-fct"
let arg_name = "f,..."
let help = ""
end)
module Behaviors = Self.String_list (struct
let option_name = "-stady-bhv"
let arg_name = "b,..."
let help = ""
end)
module Properties = Self.String_list (struct
let option_name = "-stady-prop"
let arg_name = "p,..."
let help = ""
end)
module SWD = Self.String_list (struct
let option_name = "-stady-swd"
let help = "detect contract weaknesses"
let arg_name = "label,..."
end)
module Simulate_Functions = Self.String_list (struct
let option_name = "-stady-sim-fct"
let arg_name = "f,..."
let help = "simulate a function execution based on its postcondition"
end)
module Timeout = Self.Int (struct
let option_name = "-stady-timeout"
let help =
"timeout for the test generator (in seconds), no timeout if n <= 0 \
(default: no timeout)"
let arg_name = "n"
let default = 0
end)
module Stop_When_Assert_Violated = Self.False (struct
let option_name = "-stady-stop-when-assert-violated"
let help = "stop the test generation at the first violated assertion"
end)
module Precondition = Self.String (struct
let option_name = "-stady-precondition"
let help = "add a precondition to the entry point function"
let arg_name = "predicate"
let default = ""
end)
module Replace_Functions = Self.String (struct
let option_name = "-stady-rpl-fct"
let help = "replace ACSL logic functions with C functions"
let arg_name = "ACSL_fct/C_fct,..."
let default = ""
end)
(* Debug Keys *)
let dkey_input_domain = Self.register_category "input_domain"
let dkey_generated_pl = Self.register_category "generated-pl"
let dkey_socket = Self.register_category "socket"
let dkey_generated_c = Self.register_category "generated-c"
let dkey_insertions = Self.register_category "insertions"