Files
codeql/python/ql/test/2/library-tests/ControlFlow/Exceptions/Likely.ql
2025-11-26 12:30:30 +00:00

9 lines
274 B
Plaintext

import python
private import LegacyPointsTo
from ControlFlowNode r, ControlFlowNode s
where
s = r.getAnExceptionalSuccessor() and
not r.(RaisingNode).unlikelySuccessor(s)
select r.getLocation().getStartLine(), r.toString(), s.getLocation().getStartLine(), s.toString()