miasm
Reverse engineering framework
miasm.core.interval.interval Class Reference
Inheritance diagram for miasm.core.interval.interval:
Collaboration diagram for miasm.core.interval.interval:

Public Member Functions

def __init__ (self, bounds=None)
 
def __iter__ (self)
 
def cannon (self)
 
def __repr__ (self)
 
def __contains__ (self, other)
 
def __eq__ (self, i)
 
def __ne__ (self, other)
 
def union (self, other)
 
def difference (self, other)
 
def intersection (self, other)
 
def __add__ (self, other)
 
def __and__ (self, other)
 
def __sub__ (self, other)
 
def hull (self)
 
def empty (self)
 
def show (self, img_x=1350, img_y=20, dry_run=False)
 
def length (self)
 

Static Public Member Functions

def cannon_list (tmp)
 

Public Attributes

 is_cannon
 
 intervals
 

Detailed Description

Stands for intervals with integer bounds

Offers common methods to work with interval

Constructor & Destructor Documentation

◆ __init__()

def miasm.core.interval.interval.__init__ (   self,
  bounds = None 
)
Instance an interval object
@bounds: (optional) list of (int, int) and/or interval instance

Member Function Documentation

◆ __add__()

def miasm.core.interval.interval.__add__ (   self,
  other 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __and__()

def miasm.core.interval.interval.__and__ (   self,
  other 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __contains__()

def miasm.core.interval.interval.__contains__ (   self,
  other 
)
Here is the call graph for this function:

◆ __eq__()

def miasm.core.interval.interval.__eq__ (   self,
  i 
)
Here is the caller graph for this function:

◆ __iter__()

def miasm.core.interval.interval.__iter__ (   self)
Iterate on intervals
Here is the caller graph for this function:

◆ __ne__()

def miasm.core.interval.interval.__ne__ (   self,
  other 
)
Here is the call graph for this function:

◆ __repr__()

def miasm.core.interval.interval.__repr__ (   self)

◆ __sub__()

def miasm.core.interval.interval.__sub__ (   self,
  other 
)
Here is the call graph for this function:

◆ cannon()

def miasm.core.interval.interval.cannon (   self)

◆ cannon_list()

def miasm.core.interval.interval.cannon_list (   tmp)
static
Return a cannonizes list of intervals
@tmp: list of (int, int)
Here is the call graph for this function:

◆ difference()

def miasm.core.interval.interval.difference (   self,
  other 
)
Return the difference of intervals
@other: interval instance
Here is the call graph for this function:
Here is the caller graph for this function:

◆ empty()

def miasm.core.interval.interval.empty (   self)
Return True iff the interval is empty

◆ hull()

def miasm.core.interval.interval.hull (   self)
Here is the caller graph for this function:

◆ intersection()

def miasm.core.interval.interval.intersection (   self,
  other 
)
Return the intersection of intervals
@other: interval instance
Here is the call graph for this function:
Here is the caller graph for this function:

◆ length()

def miasm.core.interval.interval.length (   self)
Return the cumulated length of intervals
Here is the caller graph for this function:

◆ show()

def miasm.core.interval.interval.show (   self,
  img_x = 1350,
  img_y = 20,
  dry_run = False 
)
show image representing the interval
Here is the call graph for this function:

◆ union()

def miasm.core.interval.interval.union (   self,
  other 
)
Return the union of intervals
@other: interval instance
Here is the caller graph for this function:

Member Data Documentation

◆ intervals

miasm.core.interval.interval.intervals

◆ is_cannon

miasm.core.interval.interval.is_cannon

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