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

Method instruction_from_expr_index

rust/src/medium_level_il/function.rs:72–84  ·  view source on GitHub ↗
(
        &self,
        expr_index: MediumLevelInstructionIndex,
    )

Source from the content-addressed store, hash-verified

70 }
71
72 pub fn instruction_from_expr_index(
73 &self,
74 expr_index: MediumLevelInstructionIndex,
75 ) -> Option<MediumLevelILInstruction> {
76 if expr_index.0 >= self.expression_count() {
77 None
78 } else {
79 Some(MediumLevelILInstruction::new_expr(
80 self.to_owned(),
81 expr_index,
82 ))
83 }
84 }
85
86 pub fn instruction_count(&self) -> usize {
87 unsafe { BNGetMediumLevelILInstructionCount(self.handle) }

Callers 1

lift_operandMethod · 0.45

Calls 2

expression_countMethod · 0.45
to_ownedMethod · 0.45

Tested by

no test coverage detected