Files
codeql/python/ql/test/library-tests/ControlFlow/splitting/SuccessorCount.ql
2019-08-21 14:39:53 +01:00

10 lines
256 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())