X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_paramodulation%2FfoUtils.ml;h=826687afc788b49d842b639d83467c94b88fd5de;hb=33a4938d5ce3a5c240c0d35b6362c8072f8ba482;hp=e42f1b5b9745993ef7202dd631a3bc0784c29ebf;hpb=fa01419bafd483b5a043a93a2f812a98cf178e22;p=helm.git diff --git a/helm/software/components/ng_paramodulation/foUtils.ml b/helm/software/components/ng_paramodulation/foUtils.ml index e42f1b5b9..826687afc 100644 --- a/helm/software/components/ng_paramodulation/foUtils.ml +++ b/helm/software/components/ng_paramodulation/foUtils.ml @@ -114,11 +114,11 @@ module Utils (B : Orderings.Blob) = struct aux (aux [] ty) proofterm in let lit = - match ty with - | Terms.Node [ Terms.Leaf eq ; ty; l; r ] when B.eq B.eqP eq -> + match B.is_eq ty with + | Some(ty,l,r) -> let o = Order.compare_terms l r in Terms.Equation (l, r, ty, o) - | t -> Terms.Predicate t + | None -> Terms.Predicate ty in let proof = Terms.Exact proofterm in fresh_unit_clause maxvar (0, lit, varlist, proof)