Files
codeql/python/ql/test/library-tests/PointsTo/new/code/a_simple.py
Mark Shannon 9d6df78d44 Python: Dataflow: Remove IterationDefinition ESSA definition and add iteration assignment to ESSA assignment definition.
Enhance points-to and taint-tracking to add operational step sequence to next(iter(seq)) in for statement.
2019-06-21 15:55:27 +01:00

53 lines
689 B
Python

f1 = 1.0
dict
tuple
i1 = 0
s = ()
def func():
pass
class C(object):
pass
def vararg_kwarg(*t, **d):
t
d
def multi_loop(seq):
x = None
for x, y in seq:
x
def with_definition(x):
with x as y:
y
def multi_loop_in_try(x):
try: # This causes additional exception edges, such that:
for p, q in x: # `x` and `p` are not in the same BB.
p
except KeyError:
pass
def f(*args, **kwargs):
not args[0]
not kwargs["x"]
def multi_assign_and_packing(a, b="b", c="c"):
t = 1, 2, 3
w = a, b, c
p, q, r = t
x, y, z = w
p
q
r
x
y
z
g, h, i = a, b, c
g
h
i