mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
Will need subsequent PRs fixing up test failures (due to deprecated methods moving around), but other than that everything should be straight-forward.
8 lines
311 B
Plaintext
8 lines
311 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()
|