]> matita.cs.unibo.it Git - helm.git/commitdiff
fixed bug in compute_equality_weight caused by wrong assumption on function
authorAlberto Griggio <griggio@fbk.eu>
Wed, 31 Aug 2005 23:08:10 +0000 (23:08 +0000)
committerAlberto Griggio <griggio@fbk.eu>
Wed, 31 Aug 2005 23:08:10 +0000 (23:08 +0000)
arguments evaluation order

helm/ocaml/paramodulation/utils.ml

index f2ece4baa9f8478716212d4bf13e89d42b5b40ff..525ed9ca2b457fcbce005fe5707b208b69ecb6be 100644 (file)
@@ -107,8 +107,8 @@ let compute_equality_weight ty left right =
 (*     metasw := List.fold_left (fun s (i, _) -> IntSet.add i s) !metasw m; *)
     w
   in
-  (weight_of ty) + (weight_of left) + (weight_of right) +
-    !metasw
+  let w = (weight_of ty) + (weight_of left) + (weight_of right) in
+  w + !metasw
 (*     (4 * IntSet.cardinal !metasw) *)
 ;;