Files
codeql/python/ql/test/3/library-tests/PointsTo/consts/BooleanConstants.ql
Taus Brock-Nannestad f07a7bf8cf Python: Autoformat everything using qlformat.
Will need subsequent PRs fixing up test failures (due to deprecated
methods moving around), but other than that everything should be
straight-forward.
2020-07-07 15:43:52 +02:00

10 lines
404 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