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

Move block shape check #2471

Merged
merged 5 commits into from
Feb 17, 2025
Merged

Move block shape check #2471

merged 5 commits into from
Feb 17, 2025

Conversation

chriseth
Copy link
Member

@chriseth chriseth commented Feb 11, 2025

Fixes point 2 of #2327

@chriseth chriseth force-pushed the move_block_shape_check branch 4 times, most recently from a21f908 to 12f7f10 Compare February 12, 2025 16:17
@chriseth chriseth force-pushed the move_block_shape_check branch from 12f7f10 to 0dc07f2 Compare February 12, 2025 16:17
/// have another one in row `i + block_size`.
fn check_block_shape(&self, code: &[Effect<T, Variable>]) -> Result<(), String> {
for (column_id, row_offsets) in written_rows_per_column(code) {
let row_offsets: BTreeSet<_> = row_offsets.into_iter().collect();
Copy link
Collaborator

Choose a reason for hiding this comment

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

isnt this already a BTreeSet?

) -> BTreeMap<u64, BTreeSet<i32>> {
code.iter()
.filter_map(|e| match e {
Effect::MachineCall(id, _, arguments) => match &arguments[0] {
Copy link
Collaborator

Choose a reason for hiding this comment

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

does this need to handle branches?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, good point, thanks!

@chriseth chriseth added this pull request to the merge queue Feb 17, 2025
Merged via the queue into main with commit e6a7f86 Feb 17, 2025
16 checks passed
@chriseth chriseth deleted the move_block_shape_check branch February 17, 2025 11:51
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