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

Method instruction_from_expr_index

rust/src/high_level_il/function.rs:37–49  ·  view source on GitHub ↗
(
        &self,
        expr_index: HighLevelInstructionIndex,
    )

Source from the content-addressed store, hash-verified

35 }
36
37 pub fn instruction_from_expr_index(
38 &self,
39 expr_index: HighLevelInstructionIndex,
40 ) -> Option<HighLevelILInstruction> {
41 if expr_index.0 >= self.expression_count() {
42 None
43 } else {
44 Some(HighLevelILInstruction::new_expr(
45 self.to_owned(),
46 expr_index,
47 ))
48 }
49 }
50
51 // TODO: This returns an expression index!
52 pub fn root_instruction_index(&self) -> HighLevelInstructionIndex {

Callers 2

lift_operandMethod · 0.45

Calls 2

expression_countMethod · 0.45
to_ownedMethod · 0.45

Tested by

no test coverage detected