Skip to content

Refactor mem_load_32 and mem_store_32 to use word_of_bytes/get_byte#1339

Merged
tanyongkiam merged 1 commit intomasterfrom
refactor-mem-load-store-32
Feb 21, 2026
Merged

Refactor mem_load_32 and mem_store_32 to use word_of_bytes/get_byte#1339
tanyongkiam merged 1 commit intomasterfrom
refactor-mem-load-store-32

Conversation

@tanyongkiam
Copy link
Copy Markdown
Contributor

Replace manual shift/OR byte reconstruction in mem_load_32 with word_of_bytes, and manual shift extraction in mem_store_32 with get_byte, eliminating duplicate BE/LE code paths in both wordSem and panSem. Old forms preserved as _alt theorems; downstream proofs updated to reference _alt.

@wildptr and @myreen pointed out that the defs that shift words around using w2w are very unwieldy.

Replace manual shift/OR byte reconstruction in mem_load_32 with
word_of_bytes, and manual shift extraction in mem_store_32 with
get_byte, eliminating duplicate BE/LE code paths in both wordSem
and panSem. Old forms preserved as _alt theorems; downstream
proofs updated to reference _alt.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Copy link
Copy Markdown
Contributor

@myreen myreen left a comment

Choose a reason for hiding this comment

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

This is a welcome improvement! Thanks!

@tanyongkiam tanyongkiam merged commit 0bf0c93 into master Feb 21, 2026
1 check passed
@tanyongkiam tanyongkiam deleted the refactor-mem-load-store-32 branch February 21, 2026 09:24
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.

2 participants