Files
codeql/python/ql/test/library-tests/ControlFlow/splitting/SuccessorCount.ql
2020-03-30 11:59:10 +02:00

9 lines
264 B
Plaintext

import python
from ControlFlowNode p, Scope s
where
p.getScope() = s and
(exists(p.getATrueSuccessor()) or exists(p.getAFalseSuccessor())) and
s instanceof Function
select p.getLocation().getStartLine(), s.getName(), p, strictcount(p.getASuccessor())