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

chore: Make ArmState fields private to ensure that every field access is written in terms of r/w and read/write_mem_bytes #51

Merged
merged 9 commits into from
Aug 2, 2024

Conversation

bollu
Copy link
Collaborator

@bollu bollu commented Aug 1, 2024

This cleans up our definitions, and forces us to correctly the read_* and write_* methods. This is important to allow us to reduce all (non)interference reasoning into the r/w functions.

@bollu bollu force-pushed the private-fields-arm-state branch from 1d4a9cc to 9e8e198 Compare August 1, 2024 15:15
@bollu bollu marked this pull request as ready for review August 1, 2024 15:15
@bollu bollu marked this pull request as draft August 1, 2024 15:50
@bollu bollu marked this pull request as ready for review August 1, 2024 16:16
@shigoel shigoel requested a review from pennyannn August 1, 2024 23:39
Arm/State.lean Show resolved Hide resolved
Tests/AES-GCM/AESV8ProgramTests.lean Outdated Show resolved Hide resolved
Tests/AES-GCM/AESV8ProgramTests.lean Outdated Show resolved Hide resolved
@bollu
Copy link
Collaborator Author

bollu commented Aug 2, 2024

@shigoel All comments addressed!

@bollu bollu requested a review from shigoel August 2, 2024 14:22
Copy link
Collaborator

@shigoel shigoel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks, @bollu!

Thanks, @pennyannn, for your review!

@shigoel shigoel merged commit 453e343 into leanprover:main Aug 2, 2024
1 check passed
shigoel pushed a commit that referenced this pull request Aug 6, 2024
### Description:

This fixes a conformance testing error introduced in #51, by reading the
full 128 bits of an SFP register instead of only the lower 64

### Testing:

Conformance testing passed

### License:

By submitting this pull request, I confirm that my contribution is
made under the terms of the Apache 2.0 license.
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

Successfully merging this pull request may close these issues.

3 participants