Skip to content
Snippets Groups Projects
Commit 054665ec authored by David Bühler's avatar David Bühler
Browse files

[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
...@@ -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
......
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment