]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/ng_paramodulation/nCicBlob.ml
Porting to ocaml 5
[helm.git] / matita / components / ng_paramodulation / nCicBlob.ml
index be5158452065511f0169d3c9f7b2b38b36e9ba82..9ca541a65ca7afa4a48cfad6c7ee594cc9a5cbf0 100644 (file)
@@ -55,10 +55,10 @@ 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";;
+  external old_hash_param :
+    int -> int -> 'a -> int = "caml_hash_univ_param" (*[@@noalloc]*);;
 
-let old_hash = old_hash_param 10 100;;
+  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
@@ -80,7 +80,7 @@ let old_hash = old_hash_param 10 100;;
     | ( NCic.Meta _ | NCic.Appl _ ), NCic.Const _ -> 1
     | NCic.Appl _, NCic.Meta _ -> ~-1
     | NCic.Meta _, NCic.Appl _ -> 1
-    | _ -> Pervasives.compare x y
+    | _ -> Stdlib.compare x y
        (* was assert false, but why? *)
        
   ;;