diff options
| author | coqbot-app[bot] | 2021-01-07 09:32:34 +0000 |
|---|---|---|
| committer | GitHub | 2021-01-07 09:32:34 +0000 |
| commit | 331592e05f6f222da40489a94abdcdd3ef4b6394 (patch) | |
| tree | 190e7e1202e48bafe6cd137910d7449f6d814850 /lib/acyclicGraph.mli | |
| parent | ad9fdf76897ada659dc1ca6d2d931452f6361f93 (diff) | |
| parent | f821438c9759c4788d597688b25cb78f2a2c01c4 (diff) | |
Merge PR #13718: Move printing and sorting out of AcyclicGraph
Reviewed-by: SkySkimmer
Diffstat (limited to 'lib/acyclicGraph.mli')
| -rw-r--r-- | lib/acyclicGraph.mli | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/lib/acyclicGraph.mli b/lib/acyclicGraph.mli index e9f05ed74d..8c9d2e6461 100644 --- a/lib/acyclicGraph.mli +++ b/lib/acyclicGraph.mli @@ -65,18 +65,12 @@ module Make (Point:Point) : sig val choose : (Point.t -> bool) -> t -> Point.t -> Point.t option - val sort : (int -> Point.t) -> Point.t list -> t -> t - (** [sort mk first g] builds a totally ordered graph. The output - graph should imply the input graph (and the implication will be - strict most of the time), but is not necessarily minimal. The - lowest points in the result are identified with [first]. - Moreover, it adds levels [Type.n] to identify the points (not in - [first]) at level n. An artificial constraint (last first < mk - (length first)) is added to ensure that they are not merged. - Note: the result is unspecified if the input graph already - contains [mk n] nodes. *) - - val pr : (Point.t -> Pp.t) -> t -> Pp.t - - val dump : (constraint_type -> Point.t -> Point.t -> unit) -> t -> unit + (** {5 High-level representation} *) + + type node = + | Alias of Point.t + | Node of bool Point.Map.t (** Nodes v s.t. u < v (true) or u <= v (false) *) + type repr = node Point.Map.t + val repr : t -> repr + end |
