44
55# flow = ByteFlow.from_bytecode(foo)
66# #pprint(flow.scfg)
7- # flow = flow .restructure()
7+ # flow.restructure()
88# #pprint(flow.scfg)
99# # pprint(rtsflow.scfg)
1010# ByteFlowRenderer().render_byteflow(flow).view()
@@ -42,7 +42,7 @@ def foo(x):
4242 return c
4343
4444 flow = ByteFlow .from_bytecode (foo )
45- flow = flow .restructure ()
45+ flow .restructure ()
4646
4747 # if case
4848 self ._run (foo , flow , {"x" : 1 })
@@ -57,7 +57,7 @@ def foo(x):
5757 return c
5858
5959 flow = ByteFlow .from_bytecode (foo )
60- flow = flow .restructure ()
60+ flow .restructure ()
6161
6262 # loop bypass case
6363 self ._run (foo , flow , {"x" : 0 })
@@ -76,7 +76,7 @@ def foo(x):
7676 return c
7777
7878 flow = ByteFlow .from_bytecode (foo )
79- flow = flow .restructure ()
79+ flow .restructure ()
8080
8181 # loop bypass case
8282 self ._run (foo , flow , {"x" : 0 })
@@ -95,7 +95,7 @@ def foo(x):
9595 return c
9696
9797 flow = ByteFlow .from_bytecode (foo )
98- flow = flow .restructure ()
98+ flow .restructure ()
9999
100100 # loop bypass case
101101 self ._run (foo , flow , {"x" : 0 })
@@ -119,7 +119,7 @@ def foo(x):
119119 return c
120120
121121 flow = ByteFlow .from_bytecode (foo )
122- flow = flow .restructure ()
122+ flow .restructure ()
123123
124124 # no loop
125125 self ._run (foo , flow , {"x" : 0 })
@@ -143,7 +143,7 @@ def foo(x):
143143 return c
144144
145145 flow = ByteFlow .from_bytecode (foo )
146- flow = flow .restructure ()
146+ flow .restructure ()
147147
148148 # loop bypass
149149 self ._run (foo , flow , {"x" : 0 })
@@ -159,7 +159,7 @@ def foo(x, y):
159159 return (x > 0 and x < 10 ) or (y > 0 and y < 10 )
160160
161161 flow = ByteFlow .from_bytecode (foo )
162- flow = flow .restructure ()
162+ flow .restructure ()
163163
164164 self ._run (foo , flow , {"x" : 5 , "y" : 5 })
165165
@@ -173,7 +173,7 @@ def foo(s, e):
173173 return c
174174
175175 flow = ByteFlow .from_bytecode (foo )
176- flow = flow .restructure ()
176+ flow .restructure ()
177177
178178 # no looping
179179 self ._run (foo , flow , {"s" : 0 , "e" : 0 })
@@ -190,5 +190,5 @@ def foo(s, e):
190190 self ._run (foo , flow , {"s" : 23 , "e" : 28 })
191191
192192
193- if __name__ == "__main__" :
194- unittest .main ()
193+ # if __name__ == "__main__":
194+ # unittest.main()
0 commit comments