-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local variable 'retn_node' referenced before assignment #9
Comments
Thanks for your feedback. Can you provide your script and binary for me to reproduce easily? |
thanks for your reply. all the function can be deflated except the trace function(which address is 0x4018B0). |
Hi, I had a quick look at it. For a temp fix, you can change the following line to: deflat/flat_control_flow/deflat.py Line 102 in a210659
The
I'll check it later why I added an additional condition, maybe for some corner cases. |
I got these error when ruuning with deflat.py:"local variable 'retn_node' referenced before assignment".
I check the script and find out when the function has no "return code"( no matching condition for if supergraph.out_degree(node) == 0 and len(node.out_branches) == 0), the function cannot work.
The text was updated successfully, but these errors were encountered: