(body)
return -1
This function finds the first print of something
This function finds the first print of something
This function finds the first print of something
def _find_first_print(body):
    """ This function finds the first print of something """
    for (i, inst) in enumerate(body):
        if isinstance(inst, ir.Print):
            return i
    return -1
def _find_first_print ( body ) : for ( i , inst ) in enumerate ( body ) : if isinstance ( inst , ir . Print ) : return i return - 1