Gets all the instructions that use the given SSA variable.
(&self, ssa_variable: &SSAVariable)
| 486 | |
| 487 | /// Gets all the instructions that use the given SSA variable. |
| 488 | pub fn ssa_variable_uses(&self, ssa_variable: &SSAVariable) -> Array<MediumLevelILInstruction> { |
| 489 | let mut count = 0; |
| 490 | let raw_var = BNVariable::from(ssa_variable.variable); |
| 491 | let uses = unsafe { |
| 492 | BNGetMediumLevelILSSAVarUses(self.handle, &raw_var, ssa_variable.version, &mut count) |
| 493 | }; |
| 494 | assert!(!uses.is_null()); |
| 495 | unsafe { Array::new(uses, count, self.to_owned()) } |
| 496 | } |
| 497 | |
| 498 | pub fn ssa_memory_uses(&self, version: usize) -> Array<MediumLevelILInstruction> { |
| 499 | let mut count = 0; |