X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fcic%2FcicUniv.mli;h=8a24614c2a814482838d09be95c148ebd179d52a;hb=e9b09b14538f770b9e65083c24e3e9cf487df648;hp=eb3c50866f73482a578f0f8376bd376c8e124236;hpb=55b82bd235d82ff7f0a40d980effe1efde1f5073;p=helm.git diff --git a/helm/software/components/cic/cicUniv.mli b/helm/software/components/cic/cicUniv.mli index eb3c50866..8a24614c2 100644 --- a/helm/software/components/cic/cicUniv.mli +++ b/helm/software/components/cic/cicUniv.mli @@ -27,7 +27,7 @@ (* The strings contains an unreadable message *) -exception UniverseInconsistency of string +exception UniverseInconsistency of string Lazy.t (* Cic.Type of universe @@ -57,17 +57,27 @@ val name_universe: universe -> UriManager.uri -> universe *) val empty_ugraph: universe_graph +(* an universe that does nothing: i.e. no constraints are kept, no merges.. *) +val oblivion_ugraph: universe_graph + +(* one of the previous two, no set to empty_ugraph *) +val default_ugraph: universe_graph + + (* These are the real functions to add eq/ge/gt constraints to the passed graph, returning an updated graph or raising UniverseInconsistency *) val add_eq: - ?fast:bool -> universe -> universe -> universe_graph -> universe_graph + universe -> universe -> universe_graph -> universe_graph val add_ge: - ?fast:bool -> universe -> universe -> universe_graph -> universe_graph + universe -> universe -> universe_graph -> universe_graph val add_gt: - ?fast:bool -> universe -> universe -> universe_graph -> universe_graph + universe -> universe -> universe_graph -> universe_graph + +val do_rank: universe_graph -> int list * universe list +val get_rank: universe -> int (* debug function to print the graph to standard error @@ -127,6 +137,7 @@ val restart_numbering: returns the universe number (used to save it do xml) *) val univno: universe -> int +val univuri: universe -> UriManager.uri (** re-hash-cons URIs contained in the given universe so that phisicaly * equality could be enforced. Mainly used by @@ -136,7 +147,7 @@ val recons_graph: universe_graph -> universe_graph (** re-hash-cons a single universe *) val recons_univ: universe -> universe - (** consistency chek that should be done before committin the graph to the + (** consistency check that should be done before committin the graph to the * cache *) val assert_univs_have_uri: universe_graph -> universe list-> unit @@ -146,9 +157,4 @@ val assert_univ: universe -> unit val compare: universe -> universe -> int val eq: universe -> universe -> bool -(* - Benchmarking stuff -*) -val get_spent_time: unit -> float -val reset_spent_time: unit -> unit - +val is_anon: universe -> bool