Decompile mistake with nested if/else + and conditions #160
Labels
bug
A confirmed bug in the code base. User misunderstanding, misuse, or features wanted are not bugs.
control flow
Decompilation control flow is incorrect. Note that different is not the same as incorrect.
Python 3.8
Description
The following code will decompile incorrectly with pyhon 3.8 :
Decompilation result :
As you can see the print and return are still within a condition instead of being one indentation level up.
How to Reproduce
I attach the examples although they are quite easy to reproduce.
toto.zip
Environment
Priority
Up to you.
Additional Context
I lost the source code of the binary release of one of my software.
So, I am in the interesting position where I know very well the original source code, and I am still very interested in recovering it fully, and I can spot mistakes.
In this case, I have a state machine for parsing a file, with deep if/else flow.
And of course, I like open source.
The text was updated successfully, but these errors were encountered: