(
stack: &mut Vec<BlockIdx>,
start_depths: &mut [u32],
target: BlockIdx,
depth: u32,
)
| 1846 | } |
| 1847 | |
| 1848 | fn stackdepth_push( |
| 1849 | stack: &mut Vec<BlockIdx>, |
| 1850 | start_depths: &mut [u32], |
| 1851 | target: BlockIdx, |
| 1852 | depth: u32, |
| 1853 | ) { |
| 1854 | let idx = target.idx(); |
| 1855 | let block_depth = &mut start_depths[idx]; |
| 1856 | if depth > *block_depth || *block_depth == u32::MAX { |
| 1857 | *block_depth = depth; |
| 1858 | stack.push(target); |
| 1859 | } |
| 1860 | } |
| 1861 | |
| 1862 | fn iter_blocks(blocks: &[Block]) -> impl Iterator<Item = (BlockIdx, &Block)> + '_ { |
| 1863 | let mut next = BlockIdx(0); |
no test coverage detected