Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
72332617
Commit
72332617
authored
4 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Removes deprecated and invisible parameters.
parent
a4fde52a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/value/value_parameters.ml
+0
-96
0 additions, 96 deletions
src/plugins/value/value_parameters.ml
src/plugins/value/value_parameters.mli
+0
-2
0 additions, 2 deletions
src/plugins/value/value_parameters.mli
with
0 additions
and
98 deletions
src/plugins/value/value_parameters.ml
+
0
−
96
View file @
72332617
...
@@ -493,23 +493,6 @@ let () = WarnPointerComparison.set_possible_values ["all"; "pointer"; "none"]
...
@@ -493,23 +493,6 @@ let () = WarnPointerComparison.set_possible_values ["all"; "pointer"; "none"]
let
()
=
add_correctness_dep
WarnPointerComparison
.
parameter
let
()
=
add_correctness_dep
WarnPointerComparison
.
parameter
let
()
=
WarnPointerComparison
.
add_aliases
[
"-val-warn-undefined-pointer-comparison"
]
let
()
=
WarnPointerComparison
.
add_aliases
[
"-val-warn-undefined-pointer-comparison"
]
let
()
=
Parameter_customize
.
set_group
alarms
let
()
=
Parameter_customize
.
is_invisible
()
module
WarnLeftShiftNegative
=
True
(
struct
let
option_name
=
"-val-warn-left-shift-negative"
let
help
=
"Emit alarms when left-shifting negative integers"
end
)
let
()
=
add_correctness_dep
WarnLeftShiftNegative
.
parameter
let
()
=
WarnLeftShiftNegative
.
add_update_hook
(
fun
_
v
->
warning
"This option is deprecated. Use %s instead"
Kernel
.
LeftShiftNegative
.
name
;
Kernel
.
LeftShiftNegative
.
set
v
)
let
()
=
Parameter_customize
.
set_group
alarms
let
()
=
Parameter_customize
.
set_group
alarms
module
WarnSignedConvertedDowncast
=
module
WarnSignedConvertedDowncast
=
False
False
...
@@ -1192,28 +1175,6 @@ module ValShowProgress =
...
@@ -1192,28 +1175,6 @@ module ValShowProgress =
end
)
end
)
let
()
=
ValShowProgress
.
add_aliases
[
"-val-show-progress"
]
let
()
=
ValShowProgress
.
add_aliases
[
"-val-show-progress"
]
let
()
=
Parameter_customize
.
set_group
messages
let
()
=
Parameter_customize
.
is_invisible
()
module
ValShowInitialState
=
True
(
struct
let
option_name
=
"-val-show-initial-state"
(* deprecated in Silicon *)
let
help
=
"[deprecated] Show initial state before analysis starts. \
This option has been replaced by \
-eva-msg-key=[-]initial-state and has no effect anymore."
end
)
let
()
=
ValShowInitialState
.
add_set_hook
(
fun
_
new_
->
if
new_
then
Kernel
.
warning
"@[Option -val-show-initial-state has no effect, \
it has been replaced by -eva-msg-key=initial-state@]"
else
Kernel
.
warning
"@[Option -no-val-show-initial-state has no effect, \
it has been replaced by -eva-msg-key=-initial-state@]"
)
let
()
=
Parameter_customize
.
set_group
messages
let
()
=
Parameter_customize
.
set_group
messages
module
ValShowPerf
=
module
ValShowPerf
=
False
False
...
@@ -1258,34 +1219,6 @@ module PrintCallstacks =
...
@@ -1258,34 +1219,6 @@ module PrintCallstacks =
end
)
end
)
let
()
=
PrintCallstacks
.
add_aliases
[
"-val-print-callstacks"
]
let
()
=
PrintCallstacks
.
add_aliases
[
"-val-print-callstacks"
]
let
()
=
Parameter_customize
.
set_group
messages
let
()
=
Parameter_customize
.
is_invisible
()
module
AlarmsWarnings
=
True
(
struct
let
option_name
=
"-val-warn-on-alarms"
let
help
=
"[DEPRECATED: use warning key alarm to manage alarms] \
If set (default), possible alarms are printed in \
the analysis log as warnings, otherwise as plain feedback"
end
)
let
()
=
AlarmsWarnings
.
add_set_hook
(
fun
_
f
->
match
get_warn_status
wkey_alarm
with
|
Log
.
Wabort
|
Log
.
Werror
|
Log
.
Werror_once
->
warning
"alarms already set to produce an error. \
Ignoring -val-warn-on-alarms"
|
Log
.
Winactive
|
Log
.
Wactive
|
Log
.
Wfeedback
->
set_warn_status
wkey_alarm
(
if
f
then
Log
.
Wactive
else
Log
.
Wfeedback
)
|
Log
.
Wonce
|
Log
.
Wfeedback_once
->
(* Keep the 'once' status. Note that this will only happen if user
is mixing old and new style of warning management, thus it becomes
difficult to interpret the desired action.
*)
set_warn_status
wkey_alarm
(
if
f
then
Log
.
Wonce
else
Log
.
Wfeedback_once
))
let
()
=
Parameter_customize
.
set_group
messages
let
()
=
Parameter_customize
.
set_group
messages
module
ReportRedStatuses
=
module
ReportRedStatuses
=
String
String
...
@@ -1324,35 +1257,6 @@ module InterpreterMode =
...
@@ -1324,35 +1257,6 @@ module InterpreterMode =
end
)
end
)
let
()
=
InterpreterMode
.
add_aliases
[
"-val-interpreter-mode"
]
let
()
=
InterpreterMode
.
add_aliases
[
"-val-interpreter-mode"
]
let
()
=
Parameter_customize
.
set_group
interpreter
let
()
=
Parameter_customize
.
is_invisible
()
module
ObviouslyTerminatesFunctions
=
Fundec_set
(
struct
let
option_name
=
"-obviously-terminates-function"
let
arg_name
=
"f"
let
help
=
"deprecated"
end
)
let
()
=
add_dep
ObviouslyTerminatesFunctions
.
parameter
let
()
=
ObviouslyTerminatesFunctions
.
add_update_hook
(
fun
_
_
->
warning
"Option -obviously-terminates-function is no longer supported. \
Ignoring."
)
let
()
=
Parameter_customize
.
set_group
interpreter
let
()
=
Parameter_customize
.
is_invisible
()
module
ObviouslyTerminatesAll
=
False
(
struct
let
option_name
=
"-obviously-terminates"
let
help
=
"undocumented and deprecated"
end
)
let
()
=
add_dep
ObviouslyTerminatesAll
.
parameter
let
()
=
ObviouslyTerminatesAll
.
add_update_hook
(
fun
_
_
->
warning
"Option -obviously-terminates is no longer supported. \
Ignoring."
)
let
()
=
Parameter_customize
.
set_group
interpreter
let
()
=
Parameter_customize
.
set_group
interpreter
module
StopAtNthAlarm
=
module
StopAtNthAlarm
=
Int
(
struct
Int
(
struct
...
...
This diff is collapsed.
Click to expand it.
src/plugins/value/value_parameters.mli
+
0
−
2
View file @
72332617
...
@@ -131,12 +131,10 @@ module SplitReturnFunction:
...
@@ -131,12 +131,10 @@ module SplitReturnFunction:
module
SplitGlobalStrategy
:
State_builder
.
Ref
with
type
data
=
Split_strategy
.
t
module
SplitGlobalStrategy
:
State_builder
.
Ref
with
type
data
=
Split_strategy
.
t
module
ValShowProgress
:
Parameter_sig
.
Bool
module
ValShowProgress
:
Parameter_sig
.
Bool
module
ValShowInitialState
:
Parameter_sig
.
Bool
module
ValShowPerf
:
Parameter_sig
.
Bool
module
ValShowPerf
:
Parameter_sig
.
Bool
module
ValPerfFlamegraphs
:
Parameter_sig
.
String
module
ValPerfFlamegraphs
:
Parameter_sig
.
String
module
ShowSlevel
:
Parameter_sig
.
Int
module
ShowSlevel
:
Parameter_sig
.
Int
module
PrintCallstacks
:
Parameter_sig
.
Bool
module
PrintCallstacks
:
Parameter_sig
.
Bool
module
AlarmsWarnings
:
Parameter_sig
.
Bool
module
ReportRedStatuses
:
Parameter_sig
.
String
module
ReportRedStatuses
:
Parameter_sig
.
String
module
NumerorsLogFile
:
Parameter_sig
.
String
module
NumerorsLogFile
:
Parameter_sig
.
String
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment