| 1 |
(* |
| 2 |
* Compute Tarjan's dominator derived graph from a dominator tree. |
| 3 |
* This is used partly to computing path expressions. Alternatively, |
| 4 |
* it can also be used for testing for reducibility. In particular, |
| 5 |
* cycles involving more than one node represent irreducible loops |
| 6 |
* in the flow graph. |
| 7 |
* |
| 8 |
* -- Allen |
| 9 |
*) |
| 10 |
|
| 11 |
signature DERIVED_GRAPH = |
| 12 |
sig |
| 13 |
structure Dom : DOMINATOR_TREE |
| 14 |
type ('n,'e) derived_graph = ('n,'e Graph.edge,unit) Graph.graph |
| 15 |
|
| 16 |
val derived_graph : (* O(n+e) *) |
| 17 |
('n,'e,'g) Dom.dominator_tree -> ('n,'e) derived_graph |
| 18 |
end |