miasm
Reverse engineering framework
miasm.expression.expression_helper.Variables_Identifier Class Reference
Inheritance diagram for miasm.expression.expression_helper.Variables_Identifier:
Collaboration diagram for miasm.expression.expression_helper.Variables_Identifier:

Public Member Functions

def __init__ (self, expr, var_prefix="v")
 
def is_var_identifier (self, expr)
 
def find_variables_rec (self, expr)
 
def vars (self)
 
def equation (self)
 
def __str__ (self)
 

Public Attributes

 var_indice
 
 var_asked
 
 var_prefix
 

Detailed Description

Identify variables in an expression.
Returns:
- variables with their corresponding values
- original expression with variables translated

Constructor & Destructor Documentation

◆ __init__()

def miasm.expression.expression_helper.Variables_Identifier.__init__ (   self,
  expr,
  var_prefix = "v" 
)
Set the expression @expr to handle and launch variable identification
process
@expr: Expr instance
@var_prefix: (optional) prefix of the variable name, default is 'v'

Member Function Documentation

◆ __str__()

def miasm.expression.expression_helper.Variables_Identifier.__str__ (   self)
Here is the call graph for this function:

◆ equation()

def miasm.expression.expression_helper.Variables_Identifier.equation (   self)
Here is the caller graph for this function:

◆ find_variables_rec()

def miasm.expression.expression_helper.Variables_Identifier.find_variables_rec (   self,
  expr 
)
Recursive method called by find_variable to expand @expr.
Set @var_names and @var_values.
This implementation is faster than an expression visitor because
we do not rebuild each expression.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_var_identifier()

def miasm.expression.expression_helper.Variables_Identifier.is_var_identifier (   self,
  expr 
)

◆ vars()

def miasm.expression.expression_helper.Variables_Identifier.vars (   self)
Here is the caller graph for this function:

Member Data Documentation

◆ var_asked

miasm.expression.expression_helper.Variables_Identifier.var_asked

◆ var_indice

miasm.expression.expression_helper.Variables_Identifier.var_indice

◆ var_prefix

miasm.expression.expression_helper.Variables_Identifier.var_prefix

The documentation for this class was generated from the following file: