-
Notifications
You must be signed in to change notification settings - Fork 73
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
Fix ref.null semantics #478
Changes from 2 commits
c038c9c
aecb95d
2770996
ae8fb92
ac19ae2
c91f0a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ Any of the aformentioned references can furthermore be wrapped up as an *externa | |
\production{vector} & \vecc &::=& | ||
\V128.\CONST~\i128 \\ | ||
\production{reference} & \reff &::=& | ||
\REFNULL~t \\&&|& | ||
\REFNULL~t & (\iff t \neq \typeidx) \\&&|& | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is correct in spirit, but technically, since meta variables are existentially quantified, a negation like this doesn't do the right thing – you can always take a different type index to make it true. I think you need to say some like "t = absheaptype ∨ t = deftype". Or perhaps spell it out as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
\REFI31NUM~\u31 \\&&|& | ||
\REFSTRUCTADDR~\structaddr \\&&|& | ||
\REFARRAYADDR~\arrayaddr \\&&|& | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a variation of this note still applies, since we only reduce some ref.null's.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.