Skip to content

[spec] Mechanization spec changes - #2357

Open
DCupello1 wants to merge 7 commits into
WebAssembly:mainfrom
Wasm-DSL:mechanization-spec-changes
Open

DCupello1 wants to merge 7 commits into
WebAssembly:mainfrom
Wasm-DSL:mechanization-spec-changes

Conversation

@DCupello1

Copy link
Copy Markdown
Contributor

These are all of the changes that were found on the soundness proof and have not been pushed yet to upstream.

The changes were also ported to 1.0 for the case of #2302.

@rossberg PTAL. This should be pretty similar to Wasm-DSL#241, but had to do resolve some conflicts so might have forgotten/wrote something wrong.

Should now have the correct commits.

@rossberg rossberg left a comment

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.

Excellent, thanks!

Comment thread specification/wasm-2.0/1-syntax.spectec Outdated
def $unpack(lanetype) : numtype

def $size(valtype) : nat hint(show |%|) hint(partial)
def $vsize(vectype) : nat hint(show |%|)

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.

Suggested change
def $vsize(vectype) : nat hint(show |%|)
def $vsize(vectype) : nat hint(show |%|)

Comment thread specification/wasm-2.0/6-typing.spectec Outdated
-- if C.TYPES[x] = t_1* -> t_2*
-- (if t =/= BOT)*
-- Expr_ok: C ++ {LOCALS t_1* t*, LABELS (t_2*), RETURN (t_2*)} |- expr : t_2*
-- Expr_ok: {LOCALS t_1* t*, LABELS (t_2*), RETURN (t_2*)} ++ C |- expr : t_2*

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.

Is this one necessary? The order is a bit less natural this way.

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.

Its not, but I was hesitant to change it since the proofs atm use the other ordering. I decided now to just have it the more natural way and then change the proofs later.

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

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.

Same question here.

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.

This is a typo, it should have been the other way around.

@rossberg

Copy link
Copy Markdown
Member

@DCupello1, you need to join the CG to contribute code.

This branch has not been deployed

No deployments
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