mirror of https://github.com/crytic/slither
Add slithir.operation.unroll as a general util (slither.utils.utils). Use unroll on fix_phi operations
parent
43fa54dde3
commit
b539a5f199
@ -0,0 +1,8 @@ |
||||
def unroll(l): |
||||
ret = [] |
||||
for x in l: |
||||
if not isinstance(x, list): |
||||
ret += [x] |
||||
else: |
||||
ret += unroll(x) |
||||
return ret |
Loading…
Reference in new issue