Skip to content

[spec] a missing condition in Instr_ok2/frame#2212

Merged
rossberg merged 1 commit into
WebAssembly:mainfrom
zilinc:zilinc/fix-instrs-ok2-frame
Jul 23, 2026
Merged

[spec] a missing condition in Instr_ok2/frame#2212
rossberg merged 1 commit into
WebAssembly:mainfrom
zilinc:zilinc/fix-instrs-ok2-frame

Conversation

@zilinc

@zilinc zilinc commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

This is uncovered in Wasm 2.0's soundness appendix when @maximelegoupil works on the type soundness proof. Back porting it to Wasm 3.0.

-- Frame_ok: s |- f : C'
-- if C'.RETURN = t^n
-- Expr_ok2: s; C' |- instr* : t^n
-- Resulttype_ok: {} |- t^n : OK

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah, yes. At the same time, this line should actually be redundant, shouldn't it? Can you try to remove it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is that what #2183 was trying to fix?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah, you're right! :)

@rossberg
rossberg merged commit 285a903 into WebAssembly:main Jul 23, 2026
10 checks passed
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