forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflowtest.py
More file actions
73 lines (58 loc) · 905 Bytes
/
flowtest.py
File metadata and controls
73 lines (58 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
def definitions(p1): # Multiple defns of same variable
v1 = 0
v1
v1 = 1
v1
v2 = 2
if p1:
v1 = 1
v2 = 2
else:
v2 = 2
v1
v2
def lloop(): #Loop
v3 = 0
while 1:
v3
def gloop(): #Loop and global
global d1
d1 = 0
g1
while g2:
g3
def deletion():
global g4
del g4
g5
v4 = 0
del v4
v4
def if_else():
if cond1:
left
else:
right
merged
def try_except():
try:
try_body1()
try_body2()
except ExceptionL if cond2 else ExceptionR:
except_handler
fall_through1
def try_finally():
try:
try_body3()
try_body4()
finally:
final_body
fall_through2
def normal_args(arg0, arg1):
arg0
arg1
def special_args(*vararg, **kwarg):
vararg
kwarg
#A comment
#at the end of the file