MCPcopy Create free account
hub / github.com/adonovan/spaghetti / ltState

Struct ltState

dom.go:76–81  ·  view source on GitHub ↗

ltState holds the working state for Lengauer-Tarjan algorithm (during which domInfo.pre is repurposed for CFG DFS preorder number).

Source from the content-addressed store, hash-verified

74// ltState holds the working state for Lengauer-Tarjan algorithm
75// (during which domInfo.pre is repurposed for CFG DFS preorder number).
76type ltState struct {
77 // Each slice is indexed by domInfo.index.
78 sdom []*node // b's semidominator
79 parent []*node // b's parent in DFS traversal of CFG
80 ancestor []*node // b's ancestor with least sdom
81}
82
83// dfs implements the depth-first search part of the LT algorithm.
84func (lt *ltState) dfs(v *node, i int32, preorder []*node) int32 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected