mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
18 lines
385 B
Plaintext
18 lines
385 B
Plaintext
import python
|
|
private import LegacyPointsTo
|
|
|
|
from string txt, Value val
|
|
where
|
|
exists(string s |
|
|
txt = "u'" + s + "'" and val = Value::forUnicode(s)
|
|
or
|
|
txt = "b'" + s + "'" and val = Value::forBytes(s)
|
|
|
|
|
s in ["a", "b", "c", "d"]
|
|
)
|
|
or
|
|
exists(int i | txt = i.toString() and val = Value::forInt(i) |
|
|
i in [1 .. 10] or i in [1000 .. 1010]
|
|
)
|
|
select txt, val
|