(&self)
| 105 | } |
| 106 | |
| 107 | pub fn basic_blocks(&self) -> Array<BasicBlock<MediumLevelILBlock>> { |
| 108 | let mut count = 0; |
| 109 | let blocks = unsafe { BNGetMediumLevelILBasicBlockList(self.handle, &mut count) }; |
| 110 | let context = MediumLevelILBlock { |
| 111 | function: self.to_owned(), |
| 112 | }; |
| 113 | unsafe { Array::new(blocks, count, context) } |
| 114 | } |
| 115 | |
| 116 | pub fn var_definitions(&self, var: &Variable) -> Array<MediumLevelILInstruction> { |
| 117 | let mut count = 0; |