(
state: &mut FrameState,
local: u16,
context: &str,
instruction_index: usize,
)
| 1022 | } |
| 1023 | for (index, instruction) in instructions.iter().enumerate() { |
| 1024 | if instruction_ends_block(instruction) && index + 1 < instructions.len() { |
| 1025 | starts.insert(index + 1); |
| 1026 | } |
| 1027 | } |
| 1028 | |
| 1029 | let block_starts = starts.into_iter().collect::<Vec<_>>(); |
| 1030 | let block_ends = block_starts |
| 1031 | .iter() |
| 1032 | .copied() |
| 1033 | .skip(1) |
| 1034 | .chain(std::iter::once(instructions.len())) |
| 1035 | .collect::<Vec<_>>(); |
| 1036 | let mut block_by_instruction = vec![0usize; instructions.len()]; |
no test coverage detected