From: Andrea Asperti Date: Fri, 22 Dec 2006 10:30:59 +0000 (+0000) Subject: The function uri_of_term now works also if the explciit substitution list X-Git-Tag: 0.4.95@7852~712 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=468a9129943234ff4f9cb8798fe01241c7d65efc;p=helm.git The function uri_of_term now works also if the explciit substitution list is not empty. --- diff --git a/components/cic/cicUtil.ml b/components/cic/cicUtil.ml index 6e07a4995..31b47f672 100644 --- a/components/cic/cicUtil.ml +++ b/components/cic/cicUtil.ml @@ -61,7 +61,8 @@ let clean_up_local_context subst metasenv n l = None , _ -> None | _ , t -> t) cc l with - Invalid_argument _ -> assert false) + Invalid_argument _ -> + assert false) let is_closed = let module C = Cic in @@ -165,12 +166,12 @@ let term_of_uri uri = | Not_found -> raise (UriManager.IllFormedUri s) let uri_of_term = function - | Cic.Const (uri, []) - | Cic.Var (uri, []) -> uri - | Cic.MutInd (baseuri, tyno, []) -> + | Cic.Const (uri, _) + | Cic.Var (uri, _) -> uri + | Cic.MutInd (baseuri, tyno, _) -> UriManager.uri_of_string (sprintf "%s#xpointer(1/%d)" (UriManager.string_of_uri baseuri) (tyno+1)) - | Cic.MutConstruct (baseuri, tyno, consno, []) -> + | Cic.MutConstruct (baseuri, tyno, consno, _) -> UriManager.uri_of_string (sprintf "%s#xpointer(1/%d/%d)" (UriManager.string_of_uri baseuri) (tyno + 1) consno)