mirror of
https://github.com/github/codeql.git
synced 2026-04-22 07:15:15 +02:00
17 lines
441 B
Plaintext
17 lines
441 B
Plaintext
// Every reachable node has a dominator
|
|
import default
|
|
import semmle.code.java.controlflow.Dominance
|
|
|
|
/** transitive dominance */
|
|
ControlFlowNode reachableIn(Method func) {
|
|
result = func.getBody().getControlFlowNode() or
|
|
result = reachableIn(func).getASuccessor()
|
|
}
|
|
|
|
from Method func, ControlFlowNode node
|
|
where
|
|
node = reachableIn(func) and
|
|
node != func.getBody().getControlFlowNode() and
|
|
not iDominates(_, node)
|
|
select func, node
|