``get_basic_block_at`` returns the BasicBlock at the given HLIL instruction ``index``. :param int index: Index of the HLIL instruction of the BasicBlock to retrieve. :Example: >>> current_il_function.get_basic_block_at(current_il_index)
(self, index: int)
| 2611 | return function.HighLevelILBasicBlockList(self) |
| 2612 | |
| 2613 | def get_basic_block_at(self, index: int) -> Optional['basicblock.BasicBlock']: |
| 2614 | """ |
| 2615 | ``get_basic_block_at`` returns the BasicBlock at the given HLIL instruction ``index``. |
| 2616 | |
| 2617 | :param int index: Index of the HLIL instruction of the BasicBlock to retrieve. |
| 2618 | :Example: |
| 2619 | >>> current_il_function.get_basic_block_at(current_il_index) |
| 2620 | <llil block: x86@19-26> |
| 2621 | """ |
| 2622 | block = core.BNGetHighLevelILBasicBlockForInstruction(self.handle, index) |
| 2623 | if not block: |
| 2624 | return None |
| 2625 | |
| 2626 | view = None |
| 2627 | if self._source_function is not None: |
| 2628 | view = self._source_function.view |
| 2629 | |
| 2630 | return HighLevelILBasicBlock(block, self, view) |
| 2631 | |
| 2632 | def traverse(self, cb: Callable[['HighLevelILInstruction', Any], Any], *args: Any, **kwargs: Any) -> Iterator[Any]: |
| 2633 | """ |
nothing calls this directly
no test coverage detected