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

Method eval

dom.go:100–108  ·  view source on GitHub ↗

eval implements the EVAL part of the LT algorithm.

(v *node)

Source from the content-addressed store, hash-verified

98
99// eval implements the EVAL part of the LT algorithm.
100func (lt *ltState) eval(v *node) *node {
101 u := v
102 for ; lt.ancestor[v.dom.index] != nil; v = lt.ancestor[v.dom.index] {
103 if lt.sdom[v.dom.index].dom.pre < lt.sdom[u.dom.index].dom.pre {
104 u = v
105 }
106 }
107 return u
108}
109
110// link implements the LINK part of the LT algorithm.
111func (lt *ltState) link(v, w *node) {

Callers 1

buildDomTreeFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected