| 1110 | core.BNLowLevelILFreeOperandList(operand_list) |
| 1111 | |
| 1112 | def _get_expr_list(self, operand_index: int) -> List['LowLevelILInstruction']: |
| 1113 | count = ctypes.c_ulonglong() |
| 1114 | operand_list = core.BNLowLevelILGetOperandList(self.function.handle, self.expr_index, operand_index, count) |
| 1115 | assert operand_list is not None, "core.BNLowLevelILGetOperandList returned None" |
| 1116 | result = [] |
| 1117 | try: |
| 1118 | for j in range(count.value): |
| 1119 | result.append(LowLevelILInstruction.create(self.function, operand_list[j], None)) |
| 1120 | return result |
| 1121 | finally: |
| 1122 | core.BNLowLevelILFreeOperandList(operand_list) |
| 1123 | |
| 1124 | def _get_reg_or_flag_list(self, operand_index: int) -> List[Union[ILFlag, ILRegister]]: |
| 1125 | count = ctypes.c_ulonglong() |