mirror of
https://github.com/github/codeql.git
synced 2025-12-26 13:46:31 +01:00
11 lines
313 B
Plaintext
11 lines
313 B
Plaintext
|
|
import python
|
|
|
|
import semmle.python.Comparisons
|
|
|
|
from ComparisonControlBlock comp, SsaVariable v, CompareOp op, float k, BasicBlock b
|
|
where
|
|
comp.controls(v.getAUse(), op, k, b)
|
|
|
|
select comp.getTest().getLocation().getStartLine(), v.getId() + " " + op.repr() + " " + k, b.getNode(0).getLocation().getStartLine()
|