miasm
Reverse engineering framework
modularintervals Namespace Reference

Functions

def gen_all_intervals (size)
 
def interval_elements (interv)
 
def test (left, right)
 

Variables

int size = 4
 
 left
 
 right
 
 right_int = list(range(1 << size))
 
tuple mask = (1 << size) - 1
 

Function Documentation

◆ gen_all_intervals()

def modularintervals.gen_all_intervals (   size)
Return every possible interval for element of @size bit
-> 2**(2**size) (number of partition)

◆ interval_elements()

def modularintervals.interval_elements (   interv)
Generator on element of an interval
Here is the caller graph for this function:

◆ test()

def modularintervals.test (   left,
  right 
)
Launch tests on left OP right
Here is the call graph for this function:

Variable Documentation

◆ left

modularintervals.left

◆ mask

tuple modularintervals.mask = (1 << size) - 1

◆ right

modularintervals.right

◆ right_int

modularintervals.right_int = list(range(1 << size))

◆ size

int modularintervals.size = 4