Returns `true` if `block_a` dominates `block_b`. A block is considered to dominate itself. This uses preorder numbers for O(1) constant time performance.
(&self, block_a: Block, block_b: Block)
| 293 | /// A block is considered to dominate itself. |
| 294 | /// This uses preorder numbers for O(1) constant time performance. |
| 295 | pub fn block_dominates(&self, block_a: Block, block_b: Block) -> bool { |
| 296 | let na = &self.nodes[block_a]; |
| 297 | let nb = &self.nodes[block_b]; |
| 298 | na.dom_pre_number <= nb.dom_pre_number && na.dom_pre_max >= nb.dom_pre_max |
| 299 | } |
| 300 | |
| 301 | /// Get an iterator over the direct children of `block` in the dominator tree. |
| 302 | /// |
no outgoing calls
no test coverage detected