def getBuiltinLoopBreakNextCode(to_name, value, emit, context):
    emit(
        "%s = %s;" % (
            to_name,
            "ITERATOR_NEXT( %s )" % value,
        )
    )

    getReleaseCode(
        release_name = value,
        emit         = emit,
        context      = context
    )

    break_target = context.getLoopBreakTarget()
    if type(break_target) is tuple:
        break_indicator_code = "%s = true;" % break_target[1]
        break_target = break_target[0]
    else:
        break_indicator_code = ""

    emit(
        template_loop_break_next % {
            "to_name" : to_name,
            "break_indicator_code" : break_indicator_code,
            "break_target" : break_target,
            "release_temps"    : indented(
                getErrorExitReleaseCode(context),
                2
            ),
            "line_number_code" : indented(
                getLineNumberUpdateCode(context),
                2
            ),
            "exception_target" : context.getExceptionEscape()
        }
    )

    context.addCleanupTempName(to_name)
dataset/ETHPy150Open kayhayen/Nuitka/nuitka/codegen/IteratorCodes.py/getBuiltinLoopBreakNextCode/original