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

[Eva] Trace_partitioning.fill joins states instead of keeping only the new ones.

parent aefb889a
No related branches found
No related tags found
No related merge requests found
...@@ -203,13 +203,13 @@ struct ...@@ -203,13 +203,13 @@ struct
flow flow
let fill ~(into : tank) (flow : flow) : unit = let fill ~(into : tank) (flow : flow) : unit =
let erase _key dest src =
if Extlib.has_some src
then src
else dest
in
let new_states = Flow.to_partition flow in let new_states = Flow.to_partition flow in
into.tank_states <- Partition.merge erase into.tank_states new_states let join _key dest src = match dest, src with
| Some dest, Some src -> Some (Domain.join dest src)
| Some v, None | None, Some v -> Some v
| None, None -> None
in
into.tank_states <- Partition.merge join into.tank_states new_states
let transfer = Flow.transfer_states let transfer = Flow.transfer_states
......
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