You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a go at trying to add support for SET_ADD but pycdc isn't trying to decompile the inner/local function that contains the SET_ADD opcode. One thing I saw was that in handling the CALL opcode, when the code gets to line 475 of ASTree.cpp what is on the top of the stack is not the local function but the code seems to think it is.
At the point where CALL is handled, the stack has the tuple (1, 2, 3) and then the local function.
Full disclosure, while I have a lot of programming experience, I am new to Python, Python ByteCode and Pycdc.
The text was updated successfully, but these errors were encountered:
SET_ADD opcode is not supported.
Source file (test_set_add.py.txt) contains only: newSet = {element for element in [1, 2, 3]}
Attempt to decompile results in: newSet = (1, 2, 3)()
Disassembly of compiled code attached as test_set_add.das.txt.
test_set_add.py.txt
test_set_add.das.txt
Using Python 3.11
I had a go at trying to add support for SET_ADD but pycdc isn't trying to decompile the inner/local function that contains the SET_ADD opcode. One thing I saw was that in handling the CALL opcode, when the code gets to line 475 of ASTree.cpp what is on the top of the stack is not the local function but the code seems to think it is.
At the point where CALL is handled, the stack has the tuple (1, 2, 3) and then the local function.
Full disclosure, while I have a lot of programming experience, I am new to Python, Python ByteCode and Pycdc.
The text was updated successfully, but these errors were encountered: