Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"and or" syntax cannot be correctly recognized #45

Open
moeray opened this issue Jul 15, 2024 · 0 comments
Open

"and or" syntax cannot be correctly recognized #45

moeray opened this issue Jul 15, 2024 · 0 comments

Comments

@moeray
Copy link

moeray commented Jul 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant