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
054665ec
Commit
054665ec
authored
6 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Gui: allows the user to change -eva-precision in the Eva panel.
parent
0c5be590
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/gui_files/register_gui.ml
+12
-4
12 additions, 4 deletions
src/plugins/value/gui_files/register_gui.ml
src/plugins/value/value_parameters.mli
+3
-0
3 additions, 0 deletions
src/plugins/value/value_parameters.mli
with
15 additions
and
4 deletions
src/plugins/value/gui_files/register_gui.ml
+
12
−
4
View file @
054665ec
...
@@ -113,16 +113,24 @@ let value_panel pack (main_ui:main_ui) =
...
@@ -113,16 +113,24 @@ let value_panel pack (main_ui:main_ui) =
GPack
.
table
~
packing
:
(
box
#
pack
~
expand
:
true
~
fill
:
true
)
~
columns
:
2
()
GPack
.
table
~
packing
:
(
box
#
pack
~
expand
:
true
~
fill
:
true
)
~
columns
:
2
()
in
in
let
box_1_1
=
GPack
.
hbox
~
packing
:
(
w
#
attach
~
left
:
1
~
top
:
1
)
()
in
let
box_1_1
=
GPack
.
hbox
~
packing
:
(
w
#
attach
~
left
:
1
~
top
:
1
)
()
in
let
precision_refresh
=
let
tooltip
=
Value_parameters
.
Precision
.
parameter
.
Typed_parameter
.
help
in
Gtk_helper
.
on_int
~
lower
:
(
-
1
)
~
upper
:
11
~
tooltip
box_1_1
"precision (meta-option)"
Value_parameters
.
Precision
.
get
Value_parameters
.
Precision
.
set
in
let
box_1_2
=
GPack
.
hbox
~
packing
:
(
w
#
attach
~
left
:
1
~
top
:
2
)
()
in
let
slevel_refresh
=
let
slevel_refresh
=
let
tooltip
=
let
tooltip
=
Value_parameters
.
SemanticUnrollingLevel
.
parameter
.
Typed_parameter
.
help
Value_parameters
.
SemanticUnrollingLevel
.
parameter
.
Typed_parameter
.
help
in
in
Gtk_helper
.
on_int
~
lower
:
0
~
upper
:
1000000
~
tooltip
Gtk_helper
.
on_int
~
lower
:
0
~
upper
:
1000000
~
tooltip
box_1_
1
"slevel"
box_1_
2
"slevel"
Value_parameters
.
SemanticUnrollingLevel
.
get
Value_parameters
.
SemanticUnrollingLevel
.
get
Value_parameters
.
SemanticUnrollingLevel
.
set
Value_parameters
.
SemanticUnrollingLevel
.
set
in
in
let
box_1_
2
=
GPack
.
hbox
~
packing
:
(
w
#
attach
~
left
:
1
~
top
:
2
)
()
in
let
box_1_
3
=
GPack
.
hbox
~
packing
:
(
w
#
attach
~
left
:
1
~
top
:
3
)
()
in
let
validator
s
=
let
validator
s
=
not
not
(
Kernel_function
.
Set
.
is_empty
(
Kernel_function
.
Set
.
is_empty
...
@@ -130,9 +138,9 @@ let value_panel pack (main_ui:main_ui) =
...
@@ -130,9 +138,9 @@ let value_panel pack (main_ui:main_ui) =
in
in
let
main_refresh
=
Gtk_helper
.
on_string
let
main_refresh
=
Gtk_helper
.
on_string
~
tooltip
:
Kernel
.
MainFunction
.
parameter
.
Typed_parameter
.
help
~
tooltip
:
Kernel
.
MainFunction
.
parameter
.
Typed_parameter
.
help
~
validator
box_1_
2
"main"
Kernel
.
MainFunction
.
get
Kernel
.
MainFunction
.
set
~
validator
box_1_
3
"main"
Kernel
.
MainFunction
.
get
Kernel
.
MainFunction
.
set
in
in
let
refresh
()
=
slevel_refresh
()
;
main_refresh
()
in
let
refresh
()
=
precision_refresh
()
;
slevel_refresh
()
;
main_refresh
()
in
ignore
(
run_button
#
connect
#
pressed
ignore
(
run_button
#
connect
#
pressed
(
fun
()
->
(
fun
()
->
main_ui
#
protect
~
cancelable
:
true
main_ui
#
protect
~
cancelable
:
true
...
...
This diff is collapsed.
Click to expand it.
src/plugins/value/value_parameters.mli
+
3
−
0
View file @
054665ec
...
@@ -149,6 +149,9 @@ module MallocFunctions: Parameter_sig.String_set
...
@@ -149,6 +149,9 @@ module MallocFunctions: Parameter_sig.String_set
module
AllocReturnsNull
:
Parameter_sig
.
Bool
module
AllocReturnsNull
:
Parameter_sig
.
Bool
module
MallocLevel
:
Parameter_sig
.
Int
module
MallocLevel
:
Parameter_sig
.
Int
(** Meta-option *)
module
Precision
:
Parameter_sig
.
Int
val
parameters_correctness
:
Typed_parameter
.
t
list
val
parameters_correctness
:
Typed_parameter
.
t
list
val
parameters_tuning
:
Typed_parameter
.
t
list
val
parameters_tuning
:
Typed_parameter
.
t
list
...
...
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