Files
codeql/python/ql/test/library-tests/PointsTo/new/SourceEdgeDefinitions.ql
2020-03-30 11:59:10 +02:00

8 lines
307 B
Plaintext

import python
import semmle.python.pointsto.PointsTo
import Util
from SsaSourceVariable var, ControlFlowNode use, BasicBlock pred
where var.hasRefinementEdge(use, pred, _) and not var instanceof SpecialSsaSourceVariable
select locate(pred.getLastNode().getLocation(), "ab"), var.(Variable), use.toString()