Files
codeql/python/ql/test/library-tests/PointsTo/new/SSA.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

13 lines
479 B
Plaintext

import python
private import semmle.python.pointsto.PointsTo
private import semmle.python.pointsto.PointsToContext
import Util
from EssaVariable v, EssaDefinition def, Object o, ClassObject cls
where
def = v.getDefinition() and
not v.getSourceVariable() instanceof SpecialSsaSourceVariable and
PointsTo::ssa_variable_points_to(v, _, o, cls, _)
select locate(def.getLocation(), "abcdegjqmns_"),
v.getRepresentation() + " = " + def.getRepresentation(), repr(o), repr(cls)