binaryninja.function.Variable

class Variable(func, source_type, index, storage, name=None, var_type=None, identifier=None)[source]

Note

This object is a “passive” object. Any changes you make to it will not be reflected in the core and vice-versa. If you wish to update a core version of this object you should use the appropriate API.

__init__(func, source_type, index, storage, name=None, var_type=None, identifier=None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(func, source_type, index, storage)

Initialize self.

from_identifier(func, identifier[, name, …])

to_BNVariable()

Attributes

dead_store_elimination

function

Function where the variable is defined

identifier

index

name

Name of the variable, set to an empty string to delete

source_type

VariableSourceType

storage

Stack offset for StackVariableSourceType, register index for RegisterVariableSourceType

type