HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduledom-lt-0.2.3Haskell2010

Data.Graph.Dom

The Lengauer-Tarjan graph dominators algorithm.

1 Lengauer, Tarjan, A Fast Algorithm for Finding Dominators in a Flowgraph, 1979.

2 Muchnick, Advanced Compiler Design and Implementation, 1997.

3 Brisk, Sarrafzadeh, Interference Graphs for Procedures in Static Single Information Form are Interval Graphs, 2007.

  • Strictness

Unless stated otherwise all exposed functions might fully evaluate their input but are not guaranteed to do so.

  • 5 types
  • 16 values
  • Packagedom-lt-0.2.3
  • Exports21
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceDom.hs
valueidom :: Rooted -> [(Node, Node)]
#

Immediate dominators. O(|E|*alpha(|E|,|V|)), where alpha(m,n) is "a functional inverse of Ackermann's function".

This Complexity bound assumes O(1) indexing. Since we're using IntMap, it has an additional lg |V| factor somewhere in there. I'm not sure where.