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 intomainfrom
spec.prose
Jul 6, 2023
Merged

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

Conversation

@rossberg
Copy link
Member

@rossberg rossberg commented Jul 4, 2023

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
Copy link
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

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

LGTM % comments


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
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
Member Author

Choose a reason for hiding this comment

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

Fixed.


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
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
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.


a. Trap.

12. Let :math:`\fieldval` be the :ref:`field value <syntax-fieldval>` :math:`S.\SARRAYS[a].\AIFIELDS[i]`.
Copy link
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
Member Author

Choose a reason for hiding this comment

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

Fixed.

rossberg and others added 2 commits July 6, 2023 08:28
Co-authored-by: Thomas Lively <tlively@google.com>
Copy link
Member Author

@rossberg rossberg left a comment

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!


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
Member Author

Choose a reason for hiding this comment

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

Fixed.


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
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.


a. Trap.

12. Let :math:`\fieldval` be the :ref:`field value <syntax-fieldval>` :math:`S.\SARRAYS[a].\AIFIELDS[i]`.
Copy link
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