luac-parser-rs
luac-parser-rs copied to clipboard
"and or" syntax cannot be correctly recognized
lua version: 5.1 The code of "and or" syntax cannot be correctly recognized, and a non-existent label of goto will be generated in the output result
example:
original code:
r6 = r5 > 0 and ((r5 - r4) / r5) or 0;
decompiled code:
if r5 > 0 then
r6 = (r5 - r4) / r5 or 0
else
goto label_74 -- block#22 is visited secondly
end