MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / ssa_variable_uses

Method ssa_variable_uses

rust/src/medium_level_il/function.rs:488–496  ·  view source on GitHub ↗

Gets all the instructions that use the given SSA variable.

(&self, ssa_variable: &SSAVariable)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

to_ownedMethod · 0.45

Tested by

no test coverage detected