4
4
5
5
# flow = ByteFlow.from_bytecode(foo)
6
6
# #pprint(flow.scfg)
7
- # flow = flow .restructure()
7
+ # flow.restructure()
8
8
# #pprint(flow.scfg)
9
9
# # pprint(rtsflow.scfg)
10
10
# ByteFlowRenderer().render_byteflow(flow).view()
@@ -42,7 +42,7 @@ def foo(x):
42
42
return c
43
43
44
44
flow = ByteFlow .from_bytecode (foo )
45
- flow = flow .restructure ()
45
+ flow .restructure ()
46
46
47
47
# if case
48
48
self ._run (foo , flow , {"x" : 1 })
@@ -57,7 +57,7 @@ def foo(x):
57
57
return c
58
58
59
59
flow = ByteFlow .from_bytecode (foo )
60
- flow = flow .restructure ()
60
+ flow .restructure ()
61
61
62
62
# loop bypass case
63
63
self ._run (foo , flow , {"x" : 0 })
@@ -76,7 +76,7 @@ def foo(x):
76
76
return c
77
77
78
78
flow = ByteFlow .from_bytecode (foo )
79
- flow = flow .restructure ()
79
+ flow .restructure ()
80
80
81
81
# loop bypass case
82
82
self ._run (foo , flow , {"x" : 0 })
@@ -95,7 +95,7 @@ def foo(x):
95
95
return c
96
96
97
97
flow = ByteFlow .from_bytecode (foo )
98
- flow = flow .restructure ()
98
+ flow .restructure ()
99
99
100
100
# loop bypass case
101
101
self ._run (foo , flow , {"x" : 0 })
@@ -119,7 +119,7 @@ def foo(x):
119
119
return c
120
120
121
121
flow = ByteFlow .from_bytecode (foo )
122
- flow = flow .restructure ()
122
+ flow .restructure ()
123
123
124
124
# no loop
125
125
self ._run (foo , flow , {"x" : 0 })
@@ -143,7 +143,7 @@ def foo(x):
143
143
return c
144
144
145
145
flow = ByteFlow .from_bytecode (foo )
146
- flow = flow .restructure ()
146
+ flow .restructure ()
147
147
148
148
# loop bypass
149
149
self ._run (foo , flow , {"x" : 0 })
@@ -159,7 +159,7 @@ def foo(x, y):
159
159
return (x > 0 and x < 10 ) or (y > 0 and y < 10 )
160
160
161
161
flow = ByteFlow .from_bytecode (foo )
162
- flow = flow .restructure ()
162
+ flow .restructure ()
163
163
164
164
self ._run (foo , flow , {"x" : 5 , "y" : 5 })
165
165
@@ -173,7 +173,7 @@ def foo(s, e):
173
173
return c
174
174
175
175
flow = ByteFlow .from_bytecode (foo )
176
- flow = flow .restructure ()
176
+ flow .restructure ()
177
177
178
178
# no looping
179
179
self ._run (foo , flow , {"s" : 0 , "e" : 0 })
@@ -190,5 +190,5 @@ def foo(s, e):
190
190
self ._run (foo , flow , {"s" : 23 , "e" : 28 })
191
191
192
192
193
- if __name__ == "__main__" :
194
- unittest .main ()
193
+ # if __name__ == "__main__":
194
+ # unittest.main()
0 commit comments