| 1038 | return SSAVariable(var, dest_version) |
| 1039 | |
| 1040 | def _get_int_list(self, operand_index: int) -> List[int]: |
| 1041 | count = ctypes.c_ulonglong() |
| 1042 | operand_list = core.BNMediumLevelILGetOperandList(self.function.handle, self.expr_index, operand_index, count) |
| 1043 | assert operand_list is not None, "core.BNMediumLevelILGetOperandList returned None" |
| 1044 | value: List[int] = [] |
| 1045 | try: |
| 1046 | for j in range(count.value): |
| 1047 | value.append(operand_list[j]) |
| 1048 | return value |
| 1049 | finally: |
| 1050 | core.BNMediumLevelILFreeOperandList(operand_list) |
| 1051 | |
| 1052 | def _get_var_list(self, operand_index1: int, operand_index2: int) -> List[variable.Variable]: |
| 1053 | # We keep this extra parameter around because when this function is called |