Skip to content

The Error Correction does not work as expected for python3.11. #84

@waaaagit

Description

@waaaagit

template.py

def func(*args, **kwargs):
    print(args, kwargs)

python version

$ python -V
Python 3.12.11

output:

[15:01:56] INFO     Loading __pycache__/template.cpython-311.pyc...                                                                                                                                        decompiler.py:444
           INFO     Detected version as 3.11                                                                                                                                                               decompiler.py:452
           INFO     Loading models for 3.11...                                                                                                                                                                  models.py:95
[15:01:59] WARNING  Using CPU for models                                                                                                                                                                       models.py:125
[15:02:02] INFO     Decompiling pyc __pycache__/template.cpython-311.pyc to decompiled_template.cpython-311.py   decompiler.py:473
           INFO     Masking bytecode for template.cpython-311.pyc...                                                                                                                                       decompiler.py:204
           INFO     Segmenting bytecode for template.cpython-311.pyc...                                                                                                                                    decompiler.py:227
           WARNING  Asking to truncate to max_length but no maximum length is provided and the model has no predefined maximum length. Default to no truncation.                             tokenization_utils_base.py:2912
           INFO     Translating statements for template.cpython-311.pyc...                                                                                                                                 decompiler.py:293
[15:02:04] INFO     Unmasking lines for template.cpython-311.pyc...                                                                                                                                        decompiler.py:217
           INFO     Reconstructing control flow for template.cpython-311.pyc...                                                                                                                            decompiler.py:307
[15:02:05] INFO     Reconstructing source for template.cpython-311.pyc...                                                                                                                                  decompiler.py:326
           INFO     Checking decompilation for template.cpython-311.pyc...                                                                                                                                 decompiler.py:356
           INFO     Trying to fix segmentation for <module>                                                                                                                                                decompiler.py:373
[15:02:06] INFO     Unmasking lines for template.cpython-311.pyc...                                                                                                                                        decompiler.py:217
           INFO     Reconstructing source for template.cpython-311.pyc...                                                                                                                                  decompiler.py:326
           INFO     Checking decompilation for template.cpython-311.pyc...                                                                                                                                 decompiler.py:356
[15:02:07] INFO     Unmasking lines for template.cpython-311.pyc...                                                                                                                                        decompiler.py:217
           INFO     Reconstructing source for template.cpython-311.pyc...                                                                                                                                  decompiler.py:326
           INFO     Checking decompilation for template.cpython-311.pyc...                                                                                                                                 decompiler.py:356
           INFO     Unmasking lines for template.cpython-311.pyc...                                                                                                                                        decompiler.py:217
           INFO     Reconstructing source for template.cpython-311.pyc...                                                                                                                                  decompiler.py:326
           INFO     Checking decompilation for template.cpython-311.pyc...                                                                                                                                 decompiler.py:356
[15:02:08] INFO     Unmasking lines for template.cpython-311.pyc...                                                                                                                                        decompiler.py:217
           INFO     Reconstructing source for template.cpython-311.pyc...                                                                                                                                  decompiler.py:326
[15:02:09] INFO     Checking decompilation for template.cpython-311.pyc...                                                                                                                                 decompiler.py:356
           INFO     Unmasking lines for template.cpython-311.pyc...                                                                                                                                        decompiler.py:217
           INFO     Reconstructing source for template.cpython-311.pyc...                                                                                                                                  decompiler.py:326
           INFO     Checking decompilation for template.cpython-311.pyc...                                                                                                                                 decompiler.py:356
           INFO     Unmasking lines for template.cpython-311.pyc...                                                                                                                                        decompiler.py:217
           INFO     Reconstructing source for template.cpython-311.pyc...                                                                                                                                  decompiler.py:326
           INFO     Checking decompilation for template.cpython-311.pyc...                                                                                                                                 decompiler.py:356
[15:02:10] INFO     Unmasking lines for template.cpython-311.pyc...                                                                                                                                        decompiler.py:217
           INFO     Reconstructing source for template.cpython-311.pyc...                                                                                                                                  decompiler.py:326
           INFO     Checking decompilation for template.cpython-311.pyc...                                                                                                                                 decompiler.py:356
[15:02:11] INFO     Unmasking lines for template.cpython-311.pyc...                                                                                                                                        decompiler.py:217
           INFO     Reconstructing source for template.cpython-311.pyc...                                                                                                                                  decompiler.py:326
           INFO     Checking decompilation for template.cpython-311.pyc...                                                                                                                                 decompiler.py:356
[15:02:13] INFO     Unmasking lines for template.cpython-311.pyc...                                                                                                                                        decompiler.py:217
           INFO     Reconstructing source for template.cpython-311.pyc...                                                                                                                                  decompiler.py:326
           INFO     Checking decompilation for template.cpython-311.pyc...                                                                                                                                 decompiler.py:356
[15:02:23] INFO     Unmasking lines for template.cpython-311.pyc...                                                                                                                                        decompiler.py:217
           INFO     Reconstructing source for template.cpython-311.pyc...                                                                                                                                  decompiler.py:326
           INFO     Checking decompilation for template.cpython-311.pyc...                                                                                                                                 decompiler.py:356
[15:02:24] INFO     Could not fix segmentation for <module>                                                                                                                                                decompiler.py:417
           INFO     Removing compile errors                                                                                                                                                                decompiler.py:175
           INFO     Purging <module>                                                                                                                                                                       decompiler.py:190
           INFO     Checking decompilation for template.cpython-311.pyc...                                                                                                                                 decompiler.py:356
           INFO     <module> was already purged, unable to fix compile errors                                                                                                                              decompiler.py:187
           INFO     Decompilation complete                                                                                                                                                                 decompiler.py:479
           INFO     0.00% code object success rate                                                                                                                                                         decompiler.py:480
           INFO     Result saved to decompiled_template.cpython-311.py 

However the decompiled_template.cpython-311.py is correct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions