Skip to content

Recognise the proxy slot pattern #95

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

Merged
merged 1 commit into from
Sep 21, 2023
Merged

Recognise the proxy slot pattern #95

merged 1 commit into from
Sep 21, 2023

Conversation

iamrecursion
Copy link
Contributor

Summary

This commit implements a feature for the analyzer to recognise the commonly used proxy-slot pattern. It does this by a limited form of constant folding for values that are likely to be hashes of encoded strings.

This commit also improves the analyzer by causing it to constant fold lengths in memory reads, thereby giving itself more accurate information about the values actually being passed around in the program.

Closes #91
Closes #93

Details

The usual, please!

Checklist

  • Code is formatted by Rustfmt.
  • Documentation has been updated if necessary.

This commit implements a feature for the analyzer to recognise the
commonly used proxy-slot pattern. It does this by a limited form of
constant folding for values that are likely to be hashes of encoded
strings.

This commit also improves the analyzer by causing it to constant fold
lengths in memory reads, thereby giving itself more accurate information
about the values actually being passed around in the program.
@iamrecursion iamrecursion added the enhancement New feature or request label Sep 19, 2023
@iamrecursion iamrecursion self-assigned this Sep 19, 2023
@iamrecursion iamrecursion merged commit 56e5da5 into main Sep 21, 2023
@iamrecursion iamrecursion deleted the wip/ara/proxy-slots branch September 21, 2023 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Missing Obvious Slots [BUG] Ghost Dynamic Arrays
2 participants