From d54a368a5d9ac5a0c4dc7f80d2738eed069517d8 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Fri, 7 Mar 2014 15:16:01 +0000 Subject: [PATCH] Hocus-pocus code to use the old (and deprecated) implementation of Hashtbl.hash because the new one changes the behaviour of automation, breaking the library. --- matita/components/ng_paramodulation/nCicBlob.ml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/matita/components/ng_paramodulation/nCicBlob.ml b/matita/components/ng_paramodulation/nCicBlob.ml index 9e17f86d5..be5158452 100644 --- a/matita/components/ng_paramodulation/nCicBlob.ml +++ b/matita/components/ng_paramodulation/nCicBlob.ml @@ -55,11 +55,16 @@ with type t = NCic.term and type input = NCic.term = struct | NReference.Fix(_,_,h) -> h | _ -> 0 +external old_hash_param : + int -> int -> 'a -> int = "caml_hash_univ_param" "noalloc";; + +let old_hash = old_hash_param 10 100;; + let compare_refs (NReference.Ref (u1,r1)) (NReference.Ref (u2,r2)) = let x = height_of_ref r2 - height_of_ref r1 in if x = 0 then - Hashtbl.hash (NUri.string_of_uri u1,r1) - - Hashtbl.hash (NUri.string_of_uri u2,r2) + old_hash (NUri.string_of_uri u1,r1) - + old_hash (NUri.string_of_uri u2,r2) else x let rec compare x y = -- 2.39.2