Latest available version: IDA and decompilers v8.4.240320sp1 see all releases
Hex-Rays logo State-of-the-art binary code analysis tools
email icon
lvars_t Struct Reference

Vector of local variables. More...

#include <hexrays.hpp>

Inheritance diagram for lvars_t:

Public Member Functions

int find_input_lvar (const vdloc_t &argloc, int _size)
 Find input variable at the specified location. More...
 
int find_stkvar (sval_t spoff, int width)
 Find stack variable at the specified location. More...
 
lvar_tfind (const lvar_locator_t &ll)
 Find variable at the specified location. More...
 
int find_lvar (const vdloc_t &location, int width, int defblk=-1) const
 Find variable at the specified location. More...
 

Detailed Description

Vector of local variables.

Definition at line 1393 of file hexrays.hpp.

Member Function Documentation

◆ find()

lvar_t * lvars_t::find ( const lvar_locator_t ll)

Find variable at the specified location.

Parameters
llvariable location
Returns
pointer to variable or nullptr

Definition at line 10072 of file hexrays.hpp.

◆ find_input_lvar()

int lvars_t::find_input_lvar ( const vdloc_t argloc,
int  _size 
)

Find input variable at the specified location.

Parameters
arglocvariable location
_sizevariable size
Returns
-1 if failed, otherwise the index into the variables vector.

Definition at line 1399 of file hexrays.hpp.

◆ find_lvar()

int lvars_t::find_lvar ( const vdloc_t location,
int  width,
int  defblk = -1 
) const

Find variable at the specified location.

Parameters
locationvariable location
widthvariable size
defblkdefinition block of the lvar. -1 means any block
Returns
-1 if failed, otherwise the index into the variables vector.

Definition at line 10078 of file hexrays.hpp.

◆ find_stkvar()

int lvars_t::find_stkvar ( sval_t  spoff,
int  width 
)

Find stack variable at the specified location.

Parameters
spoffoffset from the minimal sp
widthvariable size
Returns
-1 if failed, otherwise the index into the variables vector.

Definition at line 10066 of file hexrays.hpp.