class documentation

Basic block in a control flow graph. Contains a list of statements executed in a program without any control jumps. A block of statements is exited through one of its exits. Exits are a list of Links that represent control flow jumps.

Method __init__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Method at Get the line number of the first statement of the block in the program.
Method get_calls Get a string containing the calls to other functions inside the block.
Method get_source Get a string containing the Python source code corresponding to the statements in the block.
Method is_empty Check if the block is empty.
Class Variable __slots__ Undocumented
Instance Variable exits Undocumented
Instance Variable func_calls Undocumented
Instance Variable id Undocumented
Instance Variable predecessors Undocumented
Instance Variable statements Undocumented
def __init__(self, id): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def __str__(self): (source)

Undocumented

def at(self): (source)

Get the line number of the first statement of the block in the program.

def get_calls(self): (source)

Get a string containing the calls to other functions inside the block. Returns: A string containing the names of the functions called inside the block.

def get_source(self): (source)

Get a string containing the Python source code corresponding to the statements in the block. Returns: A string containing the source code of the statements.

def is_empty(self): (source)

Check if the block is empty. Returns: A boolean indicating if the block is empty (True) or not (False).

__slots__: list[str] = (source)

Undocumented

Undocumented

func_calls: list = (source)

Undocumented

Undocumented

predecessors: list = (source)

Undocumented

statements: list = (source)

Undocumented