Skip to content

Automatically initialize all variables with fixed values #48

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

Open
alastairreid opened this issue Feb 24, 2025 · 0 comments
Open

Automatically initialize all variables with fixed values #48

alastairreid opened this issue Feb 24, 2025 · 0 comments

Comments

@alastairreid
Copy link

A recent spec bug turned out to be due to an uninitialized ASL variable. Or, more accurately, an uninitialized field of a local variable.

This was hard to reproduce because it changed if you piped output to a file or if you compiled on a different machine.

To make things more consistent, it would be nice if ASLi initialized all variables when it creates them.
And to avoid the risk that the initial value that ASLi chooses happens to make the code work, we could have an option to change the initializer: if it works with initial value of 0 and with initial value of deadbeef or ffffffff, then it is probably ok.

A

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