angr.sim_variable

class angr.sim_variable.SimVariable

Bases: Serializable

The base class for all other classes of variables.

__init__(size, ident=None, name=None, region=None, category=None)
Parameters:
  • ident (str | None) – A unique identifier provided by user or the program. Usually a string.

  • name (str | None) – Name of this variable.

  • size (int)

  • region (int | None)

ident
name
region: int | None
category: str | None
renamed
candidate_names
size
copy()
Return type:

Self

loc_repr(arch)

The representation that shows up in a GUI

Parameters:

arch (Arch)

property is_function_argument
property bits: int
property key: tuple[str | int | None, ...]
clear_hash()
class angr.sim_variable.SimConstantVariable

Bases: SimVariable

Describes a constant variable.

value
copy()
Return type:

SimConstantVariable

property key: tuple[str | int | None, ...]
class angr.sim_variable.SimTemporaryVariable

Bases: SimVariable

Describes a temporary variable.

tmp_id
copy()
Return type:

SimTemporaryVariable

property key: tuple[str | int | None, ...]
class angr.sim_variable.SimRegisterVariable

Bases: SimVariable

Describes a register variable.

reg
property key: tuple[str | int | None, ...]
copy()
Return type:

SimRegisterVariable

class angr.sim_variable.SimComboRegisterVariable

Bases: SimVariable

A variable that spans multiple registers combined into a single value.

reg_offsets
property bits
copy()
Return type:

SimComboRegisterVariable

class angr.sim_variable.SimMemoryVariable

Bases: SimVariable

Describes a memory variable; the base class for other types of memory variables.

addr
copy()
Return type:

SimMemoryVariable

property key: tuple[str | int | None, ...]
class angr.sim_variable.SimStackVariable

Bases: SimMemoryVariable

Describes a stack variable.

base
offset
base_addr
copy()
Return type:

SimStackVariable

property key: tuple[str | int | None, ...]