mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
8 lines
313 B
Plaintext
8 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()
|