Module ida_gdl :: Class FlowChart
[frames] | no frames]

Class FlowChart

object --+
         |
        FlowChart

Flowchart class used to determine basic blocks. Check ex_gdl_qflow_chart.py for sample usage.

Instance Methods
 
__init__(self, f=None, bounds=None, flags=0)
Constructor
 
refresh(self)
Refreshes the flow chart
 
__iter__(self)
 
__getitem__(self, index)
Returns a basic block

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
  size
Number of blocks in the flow chart

Inherited from object: __class__

Method Details

__init__(self, f=None, bounds=None, flags=0)
(Constructor)

 

Constructor

Parameters:
  • f - A func_t type, use get_func(ea) to get a reference
  • bounds - A tuple of the form (start, end). Used if "f" is None
  • flags - one of the FC_xxxx flags. One interesting flag is FC_PREDS
Overrides: object.__init__

__getitem__(self, index)
(Indexing operator)

 

Returns a basic block

Returns:
BasicBlock

Property Details

size

Number of blocks in the flow chart

Get Method:
unreachable(self)