Skip to content

Commit

Permalink
Update constant expression validation rules (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 authored Apr 19, 2023
1 parent 02bac88 commit 7612271
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions document/core/valid/instructions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1604,6 +1604,8 @@ Constant Expressions

* either of the form :math:`t.\CONST~c`,

* or of the form :math:`\K{i}\X{nn}\K{.}\ibinop`, where :math:`\ibinop` is limited to :math:`\ADD`, :math:`\SUB`, or :math:`\MUL`.

* or of the form :math:`\REFNULL`,

* or of the form :math:`\REFFUNC~x`,
Expand All @@ -1619,18 +1621,9 @@ Constant Expressions
.. math::
\frac{
\ibinop \in \{\ADD, \SUB, \MUL\}
}{
C \vdashinstrconst t.\CONST~c \const
}
\qquad
\frac{
}{
C \vdashinstrconst \REFNULL~t \const
}
\qquad
\frac{
}{
C \vdashinstrconst \REFFUNC~x \const
C \vdashinstrconst \K{i}\X{nn}\K{.}\ibinop \const
}
.. math::
Expand Down

0 comments on commit 7612271

Please sign in to comment.