Remove use of Array.memq (absent from ocaml <4.03)

This commit is contained in:
Guillaume Bury 2017-08-25 19:08:52 +02:00
parent 2db3a5a494
commit 631280af9a

View file

@ -71,8 +71,8 @@ module Make(S : Res.S)(A : Arg with type hyp := S.clause
let resolution fmt goal hyp1 hyp2 atom = let resolution fmt goal hyp1 hyp2 atom =
let a = S.St.(atom.var.pa) in let a = S.St.(atom.var.pa) in
let h1, h2 = let h1, h2 =
if Array.memq a hyp1.S.St.atoms then hyp1, hyp2 if Array_util.exists ((==) a) hyp1.S.St.atoms then hyp1, hyp2
else (assert (Array.memq a hyp2.S.St.atoms); hyp2, hyp1) else (assert (Array_util.exists ((==) a) hyp2.S.St.atoms); hyp2, hyp1)
in in
(** Print some debug info *) (** Print some debug info *)
Format.fprintf fmt Format.fprintf fmt