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

Broken slot operation inlining side effect tracking #17

Open
toxamin opened this issue Oct 13, 2023 · 0 comments
Open

Broken slot operation inlining side effect tracking #17

toxamin opened this issue Oct 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@toxamin
Copy link
Contributor

toxamin commented Oct 13, 2023

When given the following script:

local saved_value
local new_value = somefunc()
local to_ret = new_value - saved_value
saved_value = new_value
return to_ret

Metaworm's luadec incorrectly inlines the SUB to the return, as follows:

local r0_0 = nil
local r1_0 = somefunc()
r0_0 = r1_0
return r1_0 - r0_0
@metaworm metaworm added the bug Something isn't working label Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants