(blocks: &[Block], id: Word)
| 46 | } |
| 47 | |
| 48 | fn label_to_index(blocks: &[Block], id: Word) -> usize { |
| 49 | blocks |
| 50 | .iter() |
| 51 | .position(|b| b.label_id().unwrap() == id) |
| 52 | .unwrap() |
| 53 | } |
| 54 | |
| 55 | fn compute_reachable(blocks: &[Block]) -> Vec<bool> { |
| 56 | fn recurse(blocks: &[Block], reachable: &mut [bool], block: usize) { |
no test coverage detected