jjdredd / ljd

LuaJIT raw-bytecode decompiler
MIT License
10 stars 7 forks source link

decompilation errors #1

Open tywony opened 9 years ago

tywony commented 9 years ago
File "main.py", line 123, in <module>
    retval = main()
  File "main.py", line 104, in main
    ljd.ast.unwarper.unwarp(ast)
  File "/tmp/ljd/ljd/ast/unwarper.py", line 36, in unwarp
    _run_step(_unwarp_ifs, node)
  File "/tmp/ljd/ast/unwarper.py", line 43, in _run_step
    statements.contents = step(statements.contents, **kargs)
  File "/tmp/ljd/ast/unwarper.py", line 153, in _unwarp_ifs
    blocks, topmost_end)
  File "/tmp/ljd/ast/unwarper.py", line 176, in _extract_if_body
    end = _find_branching_end(blocks[start_index:], topmost_end)
  File "/tmp/ljd/ast/unwarper.py", line 1070, in _find_branching_end
    assert block == end
AssertionError
jjdredd commented 9 years ago

I'm aware of the problems with stripped a well as not stripped bytecode. ATM I'm getting more intimate with the unwarper code, though slotworks need attention too. I decided to start with it because it's the most gentle part of ljd. Are you interensted in working with stripped bytecode?