angr.analyses.calling_convention.utils

angr.analyses.calling_convention.utils.is_sane_register_variable(arch, reg_offset, reg_size, def_cc=None)

Filters all registers that are surly not members of function arguments. This can be seen as a workaround, since VariableRecoveryFast sometimes gives input variables of cc_ndep (which is a VEX-specific register) :-(

Parameters:
  • reg_offset (int) – The register offset.

  • reg_size (int) – The register size.

  • arch (Arch)

  • def_cc (SimCC | type[SimCC] | None)

Returns:

True if it is an acceptable function argument, False otherwise.

Return type:

bool