-
Notifications
You must be signed in to change notification settings - Fork 101
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
Move block shape check #2471
Conversation
a21f908
to
12f7f10
Compare
12f7f10
to
0dc07f2
Compare
/// 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(); |
There was a problem hiding this comment.
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] { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, good point, thanks!
Fixes point 2 of #2327