X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fparamodulation%2Futils.ml;h=c1c9086de1ccf4db4570125ea0f2963bcfd1495f;hb=33a02e0b639217093eb63f30169aaa6ac8c78907;hp=525ed9ca2b457fcbce005fe5707b208b69ecb6be;hpb=fed37f1a768b314bf88e43be1af96f2c507ce933;p=helm.git diff --git a/helm/ocaml/paramodulation/utils.ml b/helm/ocaml/paramodulation/utils.ml index 525ed9ca2..c1c9086de 100644 --- a/helm/ocaml/paramodulation/utils.ml +++ b/helm/ocaml/paramodulation/utils.ml @@ -107,6 +107,8 @@ let compute_equality_weight ty left right = (* metasw := List.fold_left (fun s (i, _) -> IntSet.add i s) !metasw m; *) w in + (* Warning: the following let cannot be expanded since it forces the + right evaluation order!!!! *) let w = (weight_of ty) + (weight_of left) + (weight_of right) in w + !metasw (* (4 * IntSet.cardinal !metasw) *)