Skip to content
Snippets Groups Projects
Commit f440916e authored by Valentin Perrelle's avatar Valentin Perrelle Committed by Virgile Prevosto
Browse files

[Eva] Export a function to enable global value partitioning

parent e00de35e
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,10 @@ module Value_parameters: sig ...@@ -40,6 +40,10 @@ module Value_parameters: sig
to interpret calls to function [kf]. to interpret calls to function [kf].
Raises [Not_found] if there is no builtin of name [name]. *) Raises [Not_found] if there is no builtin of name [name]. *)
val use_builtin: Cil_types.kernel_function -> string -> unit val use_builtin: Cil_types.kernel_function -> string -> unit
(** [use_global_value_partitioning vi] instructs the analysis to use
value partitioning on the global variable [vi]. *)
val use_global_value_partitioning: Cil_types.varinfo -> unit
end end
module Eval_terms: sig module Eval_terms: sig
......
...@@ -800,6 +800,9 @@ module ValuePartitioning = ...@@ -800,6 +800,9 @@ module ValuePartitioning =
end) end)
let () = add_precision_dep ValuePartitioning.parameter let () = add_precision_dep ValuePartitioning.parameter
let use_global_value_partitioning vi =
ValuePartitioning.add vi.Cil_types.vname
let () = Parameter_customize.set_group precision_tuning let () = Parameter_customize.set_group precision_tuning
module SplitLimit = module SplitLimit =
Int Int
......
...@@ -228,6 +228,10 @@ val enabled_domains: unit -> (string * string) list ...@@ -228,6 +228,10 @@ val enabled_domains: unit -> (string * string) list
builtin `b`. *) builtin `b`. *)
val use_builtin: Cil_types.kernel_function -> string -> unit val use_builtin: Cil_types.kernel_function -> string -> unit
(** [use_global_value_partitioning vi] enable value partitioning on the global
variable `vi`. *)
val use_global_value_partitioning: Cil_types.varinfo -> unit
(* (*
Local Variables: Local Variables:
compile-command: "make -C ../../.." compile-command: "make -C ../../.."
......
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