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

[Eva] In partition.ml, shortens the field names of [call_return_policy].

parent 501b9bd4
No related branches found
No related tags found
No related merge requests found
...@@ -160,10 +160,10 @@ type key = { ...@@ -160,10 +160,10 @@ type key = {
} }
type call_return_policy = { type call_return_policy = {
policy_keep_callee_splits: bool; callee_splits: bool;
policy_keep_callee_history: bool; callee_history: bool;
policy_keep_caller_history: bool; caller_history: bool;
policy_history_size: int; history_size: int;
} }
module Key = module Key =
...@@ -255,17 +255,17 @@ struct ...@@ -255,17 +255,17 @@ struct
in { in {
ration_stamp = None; ration_stamp = None;
branches = branches =
Extlib.list_first_n policy.policy_history_size ( Extlib.list_first_n policy.history_size (
(if policy.policy_keep_callee_history then callee.branches else []) @ (if policy.callee_history then callee.branches else []) @
(if policy.policy_keep_caller_history then caller.branches else []) (if policy.caller_history then caller.branches else [])
); );
loops = caller.loops; loops = caller.loops;
splits = splits =
if policy.policy_keep_callee_splits if policy.callee_splits
then SplitMap.merge keep_second caller.splits callee.splits then SplitMap.merge keep_second caller.splits callee.splits
else caller.splits; else caller.splits;
dynamic_splits = dynamic_splits =
if policy.policy_keep_callee_splits if policy.callee_splits
then SplitMap.merge keep_second caller.dynamic_splits callee.dynamic_splits then SplitMap.merge keep_second caller.dynamic_splits callee.dynamic_splits
else caller.dynamic_splits; else caller.dynamic_splits;
} }
......
...@@ -42,10 +42,10 @@ ...@@ -42,10 +42,10 @@
type key type key
type call_return_policy = { type call_return_policy = {
policy_keep_callee_splits: bool; callee_splits: bool;
policy_keep_callee_history: bool; callee_history: bool;
policy_keep_caller_history: bool; caller_history: bool;
policy_history_size: int; history_size: int;
} }
module Key : sig module Key : sig
......
...@@ -141,11 +141,11 @@ struct ...@@ -141,11 +141,11 @@ struct
List.fold_left map_annot [] (get_flow_annot stmt) List.fold_left map_annot [] (get_flow_annot stmt)
let call_return_policy = { let call_return_policy = {
Partition.policy_keep_callee_splits = Partition.callee_splits =
Value_parameters.InterproceduralPartitioningKeepSplits.get (); Value_parameters.InterproceduralPartitioningKeepSplits.get ();
policy_keep_callee_history = callee_history =
Value_parameters.InterproceduralPartitioningKeepHistory.get (); Value_parameters.InterproceduralPartitioningKeepHistory.get ();
policy_keep_caller_history = true; caller_history = true;
policy_history_size = history_size; history_size = history_size;
} }
end end
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