From 6fb856f244035ba071d60a158fa800104f50072a Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Wed, 12 Jul 2006 17:13:14 +0000 Subject: [PATCH] added uri_of_carr --- helm/software/components/library/coercDb.ml | 4 ++++ helm/software/components/library/coercDb.mli | 1 + 2 files changed, 5 insertions(+) diff --git a/helm/software/components/library/coercDb.ml b/helm/software/components/library/coercDb.ml index 25bdab180..3a4dac726 100644 --- a/helm/software/components/library/coercDb.ml +++ b/helm/software/components/library/coercDb.ml @@ -41,6 +41,10 @@ let coerc_carr_of_term t = Term t ;; +let uri_of_carr = function + | Uri u -> Some u + | _ -> None + let rec name_of_carr = function | Uri u -> UriManager.name_of_uri u | Sort s -> CicPp.ppsort s diff --git a/helm/software/components/library/coercDb.mli b/helm/software/components/library/coercDb.mli index 95dd96c0b..92d4b7f24 100644 --- a/helm/software/components/library/coercDb.mli +++ b/helm/software/components/library/coercDb.mli @@ -42,6 +42,7 @@ exception EqCarrOnNonMetaClosed val eq_carr: coerc_carr -> coerc_carr -> bool val coerc_carr_of_term: Cic.term -> coerc_carr val name_of_carr: coerc_carr -> string +val uri_of_carr: coerc_carr -> UriManager.uri option val to_list: unit -> -- 2.39.2