in
(match Subst.merge_subst_if_possible subst subst' with
| None -> ok what leftorright tl
- | Some s -> Some (s, equation, leftorright))
+ | Some s -> Some (s, equation, leftorright <> pos ))
with
| Inference.MatchingFailure
| CicUnification.UnificationFailure _ -> ok what leftorright tl