]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_paramodulation/foUtils.ml
Small changes for debugging
[helm.git] / helm / software / components / ng_paramodulation / foUtils.ml
index e42f1b5b9745993ef7202dd631a3bc0784c29ebf..826687afc788b49d842b639d83467c94b88fd5de 100644 (file)
@@ -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)