mirror of
https://github.com/github/codeql.git
synced 2025-12-27 06:06:32 +01:00
15 lines
425 B
Plaintext
15 lines
425 B
Plaintext
|
|
import python
|
|
|
|
import semmle.python.Pruning
|
|
|
|
from Pruner::Constraint c, SsaVariable var, Pruner::UnprunedCfgNode node, int line, string kind
|
|
where line = node.getNode().getLocation().getStartLine() and line > 0 and
|
|
(
|
|
c = Pruner::constraintFromTest(var, node) and kind = "test"
|
|
or
|
|
c = Pruner::constraintFromAssignment(var, node) and kind = "assign"
|
|
)
|
|
select line, node.getNode().toString(), var.getId(), c, kind
|
|
|