mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
17 lines
458 B
Plaintext
17 lines
458 B
Plaintext
// All nodes should be dominated by their associated start node
|
|
import default
|
|
import semmle.code.java.controlflow.Dominance
|
|
|
|
ControlFlowNode reachableIn(Method func) {
|
|
result = func.getBody() or
|
|
result = reachableIn(func).getASuccessor()
|
|
}
|
|
|
|
from Method func, ControlFlowNode entry, ControlFlowNode node
|
|
where
|
|
func.getBody() = entry and
|
|
reachableIn(func) = node and
|
|
entry != node and
|
|
not strictlyDominates(func.getBody(), node)
|
|
select func, node
|