]> matita.cs.unibo.it Git - helm.git/commitdiff
Comparison of two applications with a different number of arguments not
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 16 Mar 2010 17:57:49 +0000 (17:57 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 16 Mar 2010 17:57:49 +0000 (17:57 +0000)
implemented yet.

helm/software/components/ng_paramodulation/orderings.ml

index 7743e3726c024f55f9213dfa26f08f0c168b4630..024056ea221d6e2f4ec1c1f4f093716dc19655c2 100644 (file)
@@ -403,6 +403,7 @@ module LPO (B : Terms.Blob) = struct
                   | XLT -> if check_subterms t (l_ol,tl1) then XLT
                     else XINCOMPARABLE
                   | XEQ -> 
+                     (try
                       let lex = List.fold_left2
                         (fun acc si ti -> if acc = XEQ then lpo si ti else acc)
                         XEQ tl1 tl2
@@ -415,6 +416,7 @@ module LPO (B : Terms.Blob) = struct
                         if List.for_all (fun x -> lpo x t = XLT) tl1 then XLT
                       else XINCOMPARABLE
                     | o -> o)   
+                      with Invalid_argument _ -> assert false)
               | XINCOMPARABLE -> XINCOMPARABLE
               | _ -> assert false
           end