X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnReference.ml;h=2692075e02796a5c3958e066854513d2de720059;hb=13ea06251e64004ad537d5c71b4082af52085ff0;hp=d83fee65ab20ca6d67acefe078c0cfa295293a9e;hpb=1859726f40a0a14c2e1b4f1b44041ce1e552f729;p=helm.git diff --git a/helm/software/components/ng_kernel/nReference.ml b/helm/software/components/ng_kernel/nReference.ml index d83fee65a..2692075e0 100644 --- a/helm/software/components/ng_kernel/nReference.ml +++ b/helm/software/components/ng_kernel/nReference.ml @@ -113,9 +113,16 @@ let string_of_reference (Ref (_,u,indinfo)) = | Con (i,j) -> s2 ^ ".con(" ^ string_of_int i ^ "," ^ string_of_int j ^ ")" ;; +let mk_constructor j = function + | Ref (d, u, Ind i) -> + reference_of_string (string_of_reference (Ref (d, u, Con (i,j)))) + | _ -> assert false +;; + let reference_of_ouri u indinfo = let u = NUri.nuri_of_ouri u in - reference_of_string (string_of_reference (Ref (~-1,u,indinfo))) + reference_of_string (string_of_reference (Ref (max_int,u,indinfo))) ;; let ouri_of_reference (Ref (_,u,_)) = NUri.ouri_of_nuri u;; +