Files
codeql/python/ql/test/3/library-tests/PointsTo/consts/BooleanConstants.ql
2025-11-26 12:30:31 +00:00

10 lines
395 B
Plaintext

import python
private import LegacyPointsTo
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