Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Jul 11, 2023
1 parent 6f6ff28 commit dd2cf49
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion document/core/syntax/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ Convention
.. note::
This definition computes an approximation of the reference type that is inhabited by all values from :math:`\X{rt}_1` except those from :math:`\X{rt}_2`.
Since the type system does not have general union types,
the defnition only affects the presence of null and cannot express the absence of other values.
the definition only affects the presence of null and cannot express the absence of other values.


.. index:: ! value type, number type, vector type, reference type, ! bottom type
Expand Down
2 changes: 1 addition & 1 deletion document/core/util/macros.def
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
.. |TARRAY| mathdef:: \xref{syntax/types}{syntax-strtype}{\K{array}}
.. |TSUB| mathdef:: \xref{syntax/types}{syntax-subtype}{\K{sub}}
.. |TREC| mathdef:: \xref{syntax/types}{syntax-rectype}{\K{rec}}
.. |TFINAL| mathdef:: \xref{syntax/types}{syntax-subtype}{\K{filan}}
.. |TFINAL| mathdef:: \xref{syntax/types}{syntax-subtype}{\K{final}}

.. |MVAR| mathdef:: \xref{syntax/types}{syntax-mut}{\K{var}}
.. |MCONST| mathdef:: \xref{syntax/types}{syntax-mut}{\K{const}}
Expand Down
6 changes: 3 additions & 3 deletions document/core/valid/instructions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ Reference Instructions

* The :ref:`reference type <syntax-reftype>` :math:`\X{rt}` must be :ref:`valid <valid-reftype>`.

* Then the instruction is valid with type :math:`[\X{rt}'] \to [\I32]` for any :ref:`valid <valid-reftype>` :ref:`reference type <syntax-reftype>` :math:`\X{rt}'` that :ref:`matches <match-reftype>` :math:`\X{rt}`.
* Then the instruction is valid with type :math:`[\X{rt}'] \to [\I32]` for any :ref:`valid <valid-reftype>` :ref:`reference type <syntax-reftype>` :math:`\X{rt}'` for which :math:`\X{rt}` :ref:`matches <match-reftype>` :math:`\X{rt}'`.

.. math::
\frac{
Expand All @@ -270,7 +270,7 @@ Reference Instructions

* The :ref:`reference type <syntax-reftype>` :math:`\X{rt}` must be :ref:`valid <valid-reftype>`.

* Then the instruction is valid with type :math:`[\X{rt}'] \to [\X{rt}]` for any :ref:`valid <valid-reftype>` :ref:`reference type <syntax-reftype>` :math:`\X{rt}'` that :ref:`matches <match-reftype>` :math:`\X{rt}`.
* Then the instruction is valid with type :math:`[\X{rt}'] \to [\X{rt}]` for any :ref:`valid <valid-reftype>` :ref:`reference type <syntax-reftype>` :math:`\X{rt}'` for which :math:`\X{rt}` :ref:`matches <match-reftype>` :math:`\X{rt}'`.

.. math::
\frac{
Expand Down Expand Up @@ -579,7 +579,7 @@ Aggregate Reference Instructions

.. math::
\frac{
\expand(C.\CTYPES[x]) = \TSTRUCT~(\MVAR~\X{st})
\expand(C.\CTYPES[x]) = \TARRAY~(\MVAR~\X{st})
}{
C \vdashinstr \ARRAYSET~x : [(\REF~\NULL~x)~\I32~\unpacktype(\X{st})] \to []
}
Expand Down
2 changes: 1 addition & 1 deletion document/core/valid/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ Imports :math:`\import` and import descriptions :math:`\importdesc` are classifi

.. math::
\frac{
C.\CTYPES[x] = \TFUNC~\functype
\expand(C.\CTYPES[x]) = \TFUNC~\functype
}{
C \vdashimportdesc \IDFUNC~x : \ETFUNC~C.\CTYPES[x]
}
Expand Down
2 changes: 1 addition & 1 deletion document/core/valid/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Block Types

.. math::
\frac{
C.\CTYPES[\typeidx] = \TFUNC~[t_1^\ast] \toF [t_2^\ast]
\expand(C.\CTYPES[\typeidx]) = \TFUNC~[t_1^\ast] \toF [t_2^\ast]
}{
C \vdashblocktype \typeidx : [t_1^\ast] \to [t_2^\ast]
}
Expand Down

0 comments on commit dd2cf49

Please sign in to comment.