Skip to content

Commit

Permalink
Merge pull request #464 from ShinWonho/array
Browse files Browse the repository at this point in the history
Fix `array.get/set` reduction rule
  • Loading branch information
rossberg authored Nov 3, 2023
2 parents 253badd + 13bb5d1 commit 78d73e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion document/core/exec/instructions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ Reference Instructions
(\iff & \expanddt(F.\AMODULE.\MITYPES[x]) = \TARRAY~\X{ft} \\
\land & \val = \unpackval^{\sx^?}_{\X{ft}}(S.\SARRAYS[a].\AIFIELDS[i]))
\end{array} \\
S; F; (\REFARRAYADDR~a)~(\I32.\CONST~i)~(\ARRAYGET\K{\_}\sx^?~x) &\stepto& \val
S; F; (\REFARRAYADDR~a)~(\I32.\CONST~i)~(\ARRAYGET\K{\_}\sx^?~x) &\stepto& \TRAP
& (\otherwise) \\
S; F; (\REFNULL~t)~(\I32.\CONST~i)~(\ARRAYGET\K{\_}\sx^?~x) &\stepto& \TRAP
\end{array}
Expand Down Expand Up @@ -958,6 +958,8 @@ Reference Instructions
(\iff & \expanddt(F.\AMODULE.\MITYPES[x]) = \TSTRUCT~\X{ft}^n \\
\land & S' = S \with \SARRAYS[a].\AIFIELDS[i] = \packval_{\X{ft}}(\val))
\end{array} \\
S; F; (\REFARRAYADDR~a)~(\I32.\CONST~i)~\val~(\ARRAYSET~x) &\stepto& \TRAP
& (\otherwise) \\
S; F; (\REFNULL~t)~(\I32.\CONST~i)~\val~(\ARRAYSET~x) &\stepto& \TRAP
\end{array}
Expand Down

0 comments on commit 78d73e8

Please sign in to comment.