luac-parser-rs icon indicating copy to clipboard operation
luac-parser-rs copied to clipboard

"and or" syntax cannot be correctly recognized

Open moeray opened this issue 1 year ago • 0 comments

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

moeray avatar Jul 15 '24 16:07 moeray