mirror of
https://github.com/github/codeql.git
synced 2026-03-05 07:06:47 +01:00
15 lines
411 B
Plaintext
15 lines
411 B
Plaintext
import python
|
|
import semmle.python.pointsto.PointsTo
|
|
|
|
from ControlFlowNode f, Context c, boolean b
|
|
|
|
where
|
|
exists(Object obj |
|
|
PointsTo::points_to(f, c, obj, _, _) and obj.booleanValue() = b
|
|
) and
|
|
not exists(Object obj |
|
|
PointsTo::points_to(f, c, obj, _, _) and not obj.booleanValue() = b
|
|
)
|
|
|
|
select f.getLocation().getFile().getShortName(), f.getLocation().getStartLine(), f.toString(), c.toString(), b
|