Immediate dominator/post-dominator trees and dominance frontiers.
Summary
Functions
Checks if a dominates b in the given idom map.
Computes the dominance frontier for each node.
Computes the immediate dominator map for a directed graph.
Computes the immediate post-dominator map.
Builds a dominator tree from an immediate dominator map.
Functions
Checks if a dominates b in the given idom map.
Computes the dominance frontier for each node.
The dominance frontier of a node N is the set of nodes where N's dominance ends — where a node has a predecessor dominated by N but is not itself strictly dominated by N.
Computes the immediate dominator map for a directed graph.
Returns %{vertex => immediate_dominator}. The root vertex maps to itself.
Computes the immediate post-dominator map.
Reverses the CFG and computes dominators from the exit node.
Builds a dominator tree from an immediate dominator map.
Returns a Graph.t() where edges go from dominator to dominated.