Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Prose for basic struct/array instructions#393

Merged
rossberg merged 4 commits into
mainfrom
spec.prose
Jul 6, 2023
Merged

Prose for basic struct/array instructions#393
rossberg merged 4 commits into
mainfrom
spec.prose

Conversation

@rossberg

@rossberg rossberg commented Jul 4, 2023

Copy link
Copy Markdown
Member

Leaving out type unrolling for now, since that's defined in #377.

@rossberg rossberg requested a review from tlively July 4, 2023 13:41
@rossberg rossberg mentioned this pull request Jun 27, 2023
53 tasks

@tlively tlively left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % comments

Comment thread document/core/exec/instructions.rst Outdated
Comment thread document/core/exec/instructions.rst Outdated
Comment thread document/core/exec/instructions.rst Outdated
Comment thread document/core/exec/instructions.rst Outdated
Comment thread document/core/exec/instructions.rst Outdated

6. Pop the :math:`n` values :math:`\val^\ast` from the stack.

8. For every value :math:`\val_i` in :math:`\val^\ast`:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skipped number 7.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Comment thread document/core/exec/instructions.rst Outdated
Comment thread document/core/exec/instructions.rst Outdated

17. For each consecutive subsequence :math:`{b'}^n` of :math:`b^\ast`:

a. Let :math:`k_i` be the integer for which :math:`\bytes_{\X{ft}}(k_i)` is :math:`{b'}^n`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work even if t is a floating point type?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to "constant"; also adjusted metavariable to c.

Comment thread document/core/exec/instructions.rst Outdated

a. Trap.

12. Let :math:`\fieldval` be the :ref:`field value <syntax-fieldval>` :math:`S.\SARRAYS[a].\AIFIELDS[i]`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Count should resume at 14.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Comment thread document/core/exec/instructions.rst Outdated
rossberg and others added 2 commits July 6, 2023 08:28
Co-authored-by: Thomas Lively <tlively@google.com>

@rossberg rossberg left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the thorough review!

Comment thread document/core/exec/instructions.rst Outdated

6. Pop the :math:`n` values :math:`\val^\ast` from the stack.

8. For every value :math:`\val_i` in :math:`\val^\ast`:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Comment thread document/core/exec/instructions.rst Outdated

17. For each consecutive subsequence :math:`{b'}^n` of :math:`b^\ast`:

a. Let :math:`k_i` be the integer for which :math:`\bytes_{\X{ft}}(k_i)` is :math:`{b'}^n`.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to "constant"; also adjusted metavariable to c.

Comment thread document/core/exec/instructions.rst Outdated

a. Trap.

12. Let :math:`\fieldval` be the :ref:`field value <syntax-fieldval>` :math:`S.\SARRAYS[a].\AIFIELDS[i]`.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@rossberg rossberg merged commit 6a8d4f1 into main Jul 6, 2023
@rossberg rossberg deleted the spec.prose branch July 6, 2023 07:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants