Skip to content

Commit b72187b

Browse files
authored
[spec] Fix missing address type in segment typing (#1877)
1 parent 0efec8e commit b72187b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

document/core/valid/modules.rst

+9-7
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ Element segments :math:`\elem` are classified by the :ref:`reference type <synta
385385

386386
* The table :math:`C.\CTABLES[x]` must be defined in the context.
387387

388-
* Let :math:`\limits~t` be the :ref:`table type <syntax-tabletype>` :math:`C.\CTABLES[x]`.
388+
* Let :math:`\X{at}~\limits~t` be the :ref:`table type <syntax-tabletype>` :math:`C.\CTABLES[x]`.
389389

390-
* The expression :math:`\expr` must be :ref:`valid <valid-expr>` with :ref:`result type <syntax-resulttype>` :math:`[\I32]`.
390+
* The expression :math:`\expr` must be :ref:`valid <valid-expr>` with :ref:`result type <syntax-resulttype>` :math:`[\X{at}]`.
391391

392392
* The expression :math:`\expr` must be :ref:`constant <valid-constant>`.
393393

@@ -396,9 +396,9 @@ Element segments :math:`\elem` are classified by the :ref:`reference type <synta
396396
.. math::
397397
\frac{
398398
\begin{array}{@{}c@{}}
399-
C.\CTABLES[x] = \limits~t
399+
C.\CTABLES[x] = \X{at}~\limits~t
400400
\\
401-
C \vdashexpr \expr : [\I32]
401+
C \vdashexpr \expr : [\X{at}]
402402
\qquad
403403
C \vdashexprconst \expr \const
404404
\end{array}
@@ -466,17 +466,19 @@ Data segments :math:`\data` are not classified by any type but merely checked fo
466466

467467
* The memory :math:`C.\CMEMS[x]` must be defined in the context.
468468

469-
* The expression :math:`\expr` must be :ref:`valid <valid-expr>` with :ref:`result type <syntax-resulttype>` :math:`[\I32]`.
469+
* Let :math:`\X{at}~\limits` be the :ref:`memory type <syntax-memtype>` :math:`C.\CMEMS[x]`.
470+
471+
* The expression :math:`\expr` must be :ref:`valid <valid-expr>` with :ref:`result type <syntax-resulttype>` :math:`[\X{at}]`.
470472

471473
* The expression :math:`\expr` must be :ref:`constant <valid-constant>`.
472474

473475
* Then the data mode is valid.
474476

475477
.. math::
476478
\frac{
477-
C.\CMEMS[x] = \limits
479+
C.\CMEMS[x] = \X{at}~\limits
478480
\qquad
479-
C \vdashexpr \expr : [\I32]
481+
C \vdashexpr \expr : [\X{at}]
480482
\qquad
481483
C \vdashexprconst \expr \const
482484
}{

0 commit comments

Comments
 (0)