Skip to content

Conversation

@mkannwischer
Copy link
Contributor

This commit is the first of a series of commits reducing the stack usage of verification.
It is hoisted out from #751

This commit places the t1 and w1 buffers into a union saving K KiB of memory. Operations using it are slightly reordered such that their lifetime does not overlap.
As CBMC struggles with unions (issue 8813), we use the same workaround present in signing: Use a struct by default, and a union when MLD_CONFIG_REDUCE_RAM is set.

@mkannwischer mkannwischer marked this pull request as ready for review January 9, 2026 08:47
@mkannwischer mkannwischer requested a review from a team as a code owner January 9, 2026 08:47
This commit is the first of a series of commits reducing the stack usage of
verification.
It is hoisted out from #751

This commit places the t1 and w1 buffers into a union saving K KiB of memory.
Operations using it are slightly reordered such that their lifetime does not
overlap.
As CBMC struggles with unions (issue 8813), we use the same workaround
present in signing: Use a struct by default, and a union when
MLD_CONFIG_REDUCE_RAM is set.

Signed-off-by: Matthias J. Kannwischer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants