tools/amd_build/pyHIPIFY/hipify-python.py
def disable_asserts(input_string):
    """ Disables regular assert statements
    e.g. "assert(....)" -> "/*assert(....)*/"
    """
    output_string = input_string
    asserts = list(re.finditer(r"\bassert[ ]*\(", input_string))
    for assert_item in asserts:
        p_start, p_end = find_parenthesis_end(input_string, assert_item.end() - 1)
        start = assert_item.start()
        output_string = output_string.replace(input_string[start:p_end + 1], "")
    return output_string
 Disables regular assert statements
    e.g. "assert(....)" -> "/*assert(....)*/"
    
Disables regular assert statements
e.g.
Disables regular assert statements e . g .
def disable_asserts(input_string):
    output_string = input_string
    asserts = list(re.finditer(r"\bassert[ ]*\(", input_string))
    for assert_item in asserts:
        p_start, p_end = find_parenthesis_end(input_string, assert_item.end() - 1)
        start = assert_item.start()
        output_string = output_string.replace(input_string[start:p_end + 1], "")
    return output_string
def disable_asserts ( input_string ) : output_string = input_string asserts = list ( re . finditer ( r"\bassert[ ]*\(" , input_string ) ) for assert_item in asserts : p_start , p_end = find_parenthesis_end ( input_string , assert_item . end ( ) - 1 ) start = assert_item . start ( ) output_string = output_string . replace ( input_string [ start : p_end + 1 ] , "" ) return output_string
Disables regular assert statements
e.g.
Disables regular assert statements e . g .
""" Disables regular assert statements
    e.g. "assert(....)" -> "/*assert(....)*/"
    """
input_string