Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block Machine: Handle case where number of rows is just enough #2070

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

georgwiese
Copy link
Collaborator

@georgwiese georgwiese commented Nov 11, 2024

Before this PR, we used to panic if the number of rows in a block machine was just enough to fit the needed number of blocks. This PR fixes it.

@georgwiese georgwiese changed the title [WIP] Block Machine: Handle case where number of rows is just enough Block Machine: Handle case where number of rows is just enough Nov 11, 2024
@georgwiese georgwiese marked this pull request as ready for review November 11, 2024 16:10
@leonardoalt
Copy link
Member

Test fails

executor/src/witgen/machines/block_machine.rs Outdated Show resolved Hide resolved
self.degree = compute_size_and_log(
&self.name,
// At this point, the still contains the dummy block, which will be removed below.
// Therefore, we subtract the block size here.
Copy link
Member

Choose a reason for hiding this comment

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

This feels kinda hacky..

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm, so I think the hacky part is that the data has a block that will be removed later, right? Which was the case before this PR?

I tried refactoring it, but it's kinda complicated. LMK if you have a suggestion.

parser/src/lib.rs Show resolved Hide resolved
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