(inst: &Instruction, rooted: &mut FxIndexSet<Word>)
| 83 | } |
| 84 | |
| 85 | fn root(inst: &Instruction, rooted: &mut FxIndexSet<Word>) -> bool { |
| 86 | let mut any = false; |
| 87 | if let Some(id) = inst.result_type { |
| 88 | any |= rooted.insert(id); |
| 89 | } |
| 90 | for op in &inst.operands { |
| 91 | if let Some(id) = op.id_ref_any() { |
| 92 | any |= rooted.insert(id); |
| 93 | } |
| 94 | } |
| 95 | any |
| 96 | } |
| 97 | |
| 98 | fn is_rooted(inst: &Instruction, rooted: &FxIndexSet<Word>) -> bool { |
| 99 | if let Some(result_id) = inst.result_id { |
no test coverage detected