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

[Eva] Minor simplifications following the rewriting of Hptmap shapes.

parent fd474a6b
No related branches found
No related tags found
No related merge requests found
......@@ -404,11 +404,8 @@ struct
let empty_left _ = empty (* zone over which to fold is empty *) in
let empty_right z = empty_map z in
let both b itvs map_b = conv b (both itvs map_b) in
let fmap =
Zone.fold2_join_heterogeneous
~cache ~empty_left ~empty_right ~both ~join ~empty
in
fun z m -> fmap z m
Zone.fold2_join_heterogeneous
~cache ~empty_left ~empty_right ~both ~join ~empty
let shape x = x
......
......@@ -415,9 +415,7 @@ module Set = struct
let both _ _ _ = Empty in
let join t1 t2 = Node (t1, t2) in
let empty = Empty in
let f = fold2_join_heterogeneous
~cache ~empty_left ~empty_right ~both ~join ~empty
in
fun eqs1 eqs2 -> f eqs1 eqs2
fold2_join_heterogeneous
~cache ~empty_left ~empty_right ~both ~join ~empty
end
......@@ -388,11 +388,8 @@ module G = struct
| Some i -> MC.singleton b i
in
let join = MC.merge_disjoint in
let f =
MV.fold2_join_heterogeneous
~cache ~empty_left ~empty_right ~both ~join ~empty
in
fun mv1 mv2 -> f mv1 mv2
MV.fold2_join_heterogeneous
~cache ~empty_left ~empty_right ~both ~join ~empty
(* compute pointwise [mv - mc] *)
let mv_minus_mc =
......@@ -411,11 +408,8 @@ module G = struct
MV.singleton b v'
in
let join = MV.merge_disjoint in
let f =
MV.fold2_join_heterogeneous
~cache ~empty_left ~empty_right ~both ~join ~empty
in
fun mv mc -> f mv mc
MV.fold2_join_heterogeneous
~cache ~empty_left ~empty_right ~both ~join ~empty
(* Implementation of the 'forget' operation. [nb] loop iterations have
elapsed, and during one iteration, variables are incremented by [coeffs].
......
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