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
bb377037
Commit
bb377037
authored
4 years ago
by
Andre Maroneze
Committed by
David Bühler
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] constrain ranges and values for several options
parent
9e7f7673
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/value/value_parameters.ml
+11
-1
11 additions, 1 deletion
src/plugins/value/value_parameters.ml
with
11 additions
and
1 deletion
src/plugins/value/value_parameters.ml
+
11
−
1
View file @
bb377037
...
@@ -254,6 +254,7 @@ module EqualityCall =
...
@@ -254,6 +254,7 @@ module EqualityCall =
let
default
=
"formals"
let
default
=
"formals"
let
arg_name
=
"none|formals|all"
let
arg_name
=
"none|formals|all"
end
)
end
)
let
()
=
EqualityCall
.
set_possible_values
[
"none"
;
"formals"
;
"all"
]
let
()
=
add_precision_dep
EqualityCall
.
parameter
let
()
=
add_precision_dep
EqualityCall
.
parameter
let
()
=
Parameter_customize
.
set_group
domains
let
()
=
Parameter_customize
.
set_group
domains
...
@@ -302,6 +303,7 @@ module Numerors_Real_Size =
...
@@ -302,6 +303,7 @@ module Numerors_Real_Size =
"Set <n> as the significand size of the MPFR representation \
"Set <n> as the significand size of the MPFR representation \
of reals used by the numerors domain (defaults to 128)"
of reals used by the numerors domain (defaults to 128)"
end
)
end
)
let
()
=
Numerors_Real_Size
.
set_range
1
max_int
let
()
=
add_precision_dep
Numerors_Real_Size
.
parameter
let
()
=
add_precision_dep
Numerors_Real_Size
.
parameter
let
()
=
Parameter_customize
.
set_group
domains
let
()
=
Parameter_customize
.
set_group
domains
...
@@ -569,6 +571,7 @@ module AutomaticContextMaxDepth =
...
@@ -569,6 +571,7 @@ module AutomaticContextMaxDepth =
let
arg_name
=
"n"
let
arg_name
=
"n"
let
help
=
"Use <n> as the depth of the default context for Eva. (defaults to 2)"
let
help
=
"Use <n> as the depth of the default context for Eva. (defaults to 2)"
end
)
end
)
let
()
=
AutomaticContextMaxDepth
.
set_range
0
max_int
let
()
=
add_correctness_dep
AutomaticContextMaxDepth
.
parameter
let
()
=
add_correctness_dep
AutomaticContextMaxDepth
.
parameter
let
()
=
Parameter_customize
.
set_group
initial_context
let
()
=
Parameter_customize
.
set_group
initial_context
...
@@ -666,7 +669,7 @@ module WideningPeriod =
...
@@ -666,7 +669,7 @@ module WideningPeriod =
let
help
=
let
help
=
"After the first widening, widen each <n> iterations (defaults to 2)"
"After the first widening, widen each <n> iterations (defaults to 2)"
end
)
end
)
let
()
=
Widening
Delay
.
set_range
~
min
:
1
~
max
:
max_int
let
()
=
Widening
Period
.
set_range
~
min
:
1
~
max
:
max_int
let
()
=
add_precision_dep
WideningPeriod
.
parameter
let
()
=
add_precision_dep
WideningPeriod
.
parameter
(* --- Partitioning --- *)
(* --- Partitioning --- *)
...
@@ -682,6 +685,7 @@ module SemanticUnrollingLevel =
...
@@ -682,6 +685,7 @@ module SemanticUnrollingLevel =
The larger n, the more precise and expensive the analysis \
The larger n, the more precise and expensive the analysis \
(defaults to 0)"
(defaults to 0)"
end
)
end
)
let
()
=
SemanticUnrollingLevel
.
set_range
0
max_int
let
()
=
add_precision_dep
SemanticUnrollingLevel
.
parameter
let
()
=
add_precision_dep
SemanticUnrollingLevel
.
parameter
let
()
=
Parameter_customize
.
set_group
precision_tuning
let
()
=
Parameter_customize
.
set_group
precision_tuning
...
@@ -941,6 +945,7 @@ module LinearLevel =
...
@@ -941,6 +945,7 @@ module LinearLevel =
appears multiple times, by splitting its value at most n times. \
appears multiple times, by splitting its value at most n times. \
Defaults to 0."
Defaults to 0."
end
)
end
)
let
()
=
LinearLevel
.
set_range
0
max_int
let
()
=
add_precision_dep
LinearLevel
.
parameter
let
()
=
add_precision_dep
LinearLevel
.
parameter
let
()
=
Parameter_customize
.
set_group
precision_tuning
let
()
=
Parameter_customize
.
set_group
precision_tuning
...
@@ -1031,6 +1036,7 @@ module ArrayPrecisionLevel =
...
@@ -1031,6 +1036,7 @@ module ArrayPrecisionLevel =
Array accesses are precise as long as the interval for the index contains \
Array accesses are precise as long as the interval for the index contains \
less than n values. (defaults to 200)"
less than n values. (defaults to 200)"
end
)
end
)
let
()
=
ArrayPrecisionLevel
.
set_range
0
max_int
let
()
=
add_precision_dep
ArrayPrecisionLevel
.
parameter
let
()
=
add_precision_dep
ArrayPrecisionLevel
.
parameter
let
()
=
ArrayPrecisionLevel
.
add_update_hook
let
()
=
ArrayPrecisionLevel
.
add_update_hook
(
fun
_
v
->
Offsetmap
.
set_plevel
v
)
(
fun
_
v
->
Offsetmap
.
set_plevel
v
)
...
@@ -1223,6 +1229,7 @@ module StopAtNthAlarm =
...
@@ -1223,6 +1229,7 @@ module StopAtNthAlarm =
let
arg_name
=
"n"
let
arg_name
=
"n"
let
help
=
"Abort the analysis when the nth alarm is emitted."
let
help
=
"Abort the analysis when the nth alarm is emitted."
end
)
end
)
let
()
=
StopAtNthAlarm
.
set_range
0
max_int
(* -------------------------------------------------------------------------- *)
(* -------------------------------------------------------------------------- *)
(* --- Ugliness required for correctness --- *)
(* --- Ugliness required for correctness --- *)
...
@@ -1273,6 +1280,7 @@ module OracleDepth =
...
@@ -1273,6 +1280,7 @@ module OracleDepth =
let
default
=
2
let
default
=
2
let
arg_name
=
""
let
arg_name
=
""
end
)
end
)
let
()
=
OracleDepth
.
set_range
0
max_int
let
()
=
add_precision_dep
OracleDepth
.
parameter
let
()
=
add_precision_dep
OracleDepth
.
parameter
let
()
=
Parameter_customize
.
set_group
precision_tuning
let
()
=
Parameter_customize
.
set_group
precision_tuning
...
@@ -1285,6 +1293,7 @@ module ReductionDepth =
...
@@ -1285,6 +1293,7 @@ module ReductionDepth =
let
default
=
4
let
default
=
4
let
arg_name
=
""
let
arg_name
=
""
end
)
end
)
let
()
=
ReductionDepth
.
set_range
0
max_int
let
()
=
add_precision_dep
ReductionDepth
.
parameter
let
()
=
add_precision_dep
ReductionDepth
.
parameter
...
@@ -1347,6 +1356,7 @@ module MallocLevel =
...
@@ -1347,6 +1356,7 @@ module MallocLevel =
let
help
=
"Set to [m] the number of precise dynamic allocations \
let
help
=
"Set to [m] the number of precise dynamic allocations \
besides the initial one, for each callstack (defaults to 0)"
besides the initial one, for each callstack (defaults to 0)"
end
)
end
)
let
()
=
MallocLevel
.
set_range
0
max_int
(* -------------------------------------------------------------------------- *)
(* -------------------------------------------------------------------------- *)
(* --- Deprecated aliases --- *)
(* --- Deprecated aliases --- *)
...
...
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