Skip to content

Instantly share code, notes, and snippets.

@keithel
Last active July 12, 2024 20:15
Show Gist options
  • Save keithel/9d578d52495aba3ea82e68c93ba88384 to your computer and use it in GitHub Desktop.
Save keithel/9d578d52495aba3ea82e68c93ba88384 to your computer and use it in GitHub Desktop.
# Yields (Function_Pointer_Call (Physical), Routine (Logical))
yield from (
(call_inst.Physical, get_function_pointer_callee(call_inst.Physical))
for call_inst in indirect_call_instructions
if call_inst.Physical and get_function_pointer_callee(call_inst.Physical)
)
# for call_inst in indirect_call_instructions:
# call = call_inst.Physical
# if not call:
# continue
# callee = get_function_pointer_callee(call)
# if not callee:
# continue
# yield (call, callee)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment