Skip to content

Commit abcab5d

Browse files
committed
Adjust for multi-return
1 parent b908a3a commit abcab5d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

document/core/valid/instructions.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,17 +1520,17 @@ Control Instructions
15201520

15211521
* The function :math:`C.\CFUNCS[x]` must be defined in the context.
15221522

1523-
* Let :math:`[t_1^\ast] \to [t_2^?]` be the :ref:`function type <syntax-functype>` :math:`C.\CFUNCS[x]`.
1523+
* Let :math:`[t_1^\ast] \to [t_2^\ast]` be the :ref:`function type <syntax-functype>` :math:`C.\CFUNCS[x]`.
15241524

1525-
* The :ref:`result type <syntax-resulttype>` :math:`[t_2^?]` must be the same as :math:`C.\CRETURN`.
1525+
* The :ref:`result type <syntax-resulttype>` :math:`[t_2^\ast]` must be the same as :math:`C.\CRETURN`.
15261526

15271527
* Then the instruction is valid with type :math:`[t_3^\ast~t_1^\ast] \to [t_4^\ast]`, for any sequences of :ref:`value types <syntax-valtype>` :math:`t_3^\ast` and :math:`t_4^\ast`.
15281528

15291529
.. math::
15301530
\frac{
1531-
C.\CFUNCS[x] = [t_1^\ast] \to [t_2^?]
1531+
C.\CFUNCS[x] = [t_1^\ast] \to [t_2^\ast]
15321532
\qquad
1533-
C.\CRETURN = [t_2^?]
1533+
C.\CRETURN = [t_2^\ast]
15341534
}{
15351535
C \vdashinstr \RETURNCALL~x : [t_3^\ast~t_1^\ast] \to [t_4^\ast]
15361536
}
@@ -1554,9 +1554,9 @@ Control Instructions
15541554

15551555
* The type :math:`C.\CTYPES[y]` must be defined in the context.
15561556

1557-
* Let :math:`[t_1^\ast] \to [t_2^?]` be the :ref:`function type <syntax-functype>` :math:`C.\CTYPES[y]`.
1557+
* Let :math:`[t_1^\ast] \to [t_2^\ast]` be the :ref:`function type <syntax-functype>` :math:`C.\CTYPES[y]`.
15581558

1559-
* The :ref:`result type <syntax-resulttype>` :math:`[t_2^?]` must be the same as :math:`C.\CRETURN`.
1559+
* The :ref:`result type <syntax-resulttype>` :math:`[t_2^\ast]` must be the same as :math:`C.\CRETURN`.
15601560

15611561
* Then the instruction is valid with type :math:`[t_3^\ast~t_1^\ast~\I32] \to [t_4^\ast]`, for any sequences of :ref:`value types <syntax-valtype>` :math:`t_3^\ast` and :math:`t_4^\ast`.
15621562

@@ -1565,9 +1565,9 @@ Control Instructions
15651565
\frac{
15661566
C.\CTABLES[x] = \limits~\FUNCREF
15671567
\qquad
1568-
C.\CTYPES[y] = [t_1^\ast] \to [t_2^?]
1568+
C.\CTYPES[y] = [t_1^\ast] \to [t_2^\ast]
15691569
\qquad
1570-
C.\CRETURN = [t_2^?]
1570+
C.\CRETURN = [t_2^\ast]
15711571
}{
15721572
C \vdashinstr \RETURNCALLINDIRECT~x~y : [t_3^\ast~t_1^\ast~\I32] \to [t_4^\ast]
15731573
}

0 commit comments

Comments
 (0)