Skip to content

Conversation

rossberg
Copy link
Member

Fix #1986.

This fixes the type of offsets in the AST to be u64 and adds respective validation checks, refactoring memarg validity into its own auxiliary judgement.

Unfortunately, the prose generation cannot handle the new relation's shape. My attempts to teach it that were unsuccessful.

@f52985, can you please take a look and amend this PR?

@f52985
Copy link
Contributor

f52985 commented Oct 1, 2025

It appears that I don’t have permission to modify this repository directly.
I pushed the fixed version to the SpecTec repository: (https://github.com/Wasm-DSL/spectec/tree/memarg), so that you can fast-forward to this branch.

The update now simply uses hint(prose ...) to indicate how this relation should be rendered in prose.

@rossberg
Copy link
Member Author

rossberg commented Oct 1, 2025

Cool, thanks! I created a PR and merged it back onto this branch.

@rossberg rossberg changed the title [spec] Fix memarg [WIP] [spec] Fix memarg Oct 1, 2025
@rossberg rossberg merged commit 26b39e1 into main Oct 1, 2025
9 of 12 checks passed
@rossberg rossberg deleted the memarg branch October 1, 2025 16:49
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.

Address type of memory instruction after applying the memory64 proposal

2 participants