Skip to content

Commit a15e429

Browse files
bgregoirlyonel2017
authored andcommitted
ensure subtitution do not merge exception
1 parent 01e112d commit a15e429

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ecSubst.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,9 @@ let subst_hs_inv (s : subst) (inv : hs_inv) =
11081108
let b = Mp.bindings poe in
11091109
let b = List.map (fun (a,b) -> subst_path s a, subst_form s b) b in
11101110
let poe =
1111-
List.fold (fun m (a,b) -> Mp.add a b m) Mp.empty b
1111+
List.fold (fun m (a,b) ->
1112+
assert (not (Mp.mem a m));
1113+
Mp.add a b m) Mp.empty b
11121114
in
11131115
{ hsi_inv = (p,poe,d); hsi_m = inv.hsi_m }
11141116

0 commit comments

Comments
 (0)