def PrintDebugInfoForUtterance(ctm_edits_out_handle, split_lines_of_cur_utterance, segments_for_utterance, deleted_segments_for_utterance):
    info_to_print = []
    for n in range(len(segments_for_utterance)):
        segment = segments_for_utterance[n]
        start_string = (((('start-segment-' + str((n + 1))) + '[') + segment.DebugInfo()) + ']')
        info_to_print.append((segment.StartTime(), start_string))
        end_string = ('end-segment-' + str((n + 1)))
        info_to_print.append((segment.EndTime(), end_string))
    for n in range(len(deleted_segments_for_utterance)):
        segment = deleted_segments_for_utterance[n]
        start_string = (((('start-deleted-segment-' + str((n + 1))) + '[') + segment.DebugInfo()) + ']')
        info_to_print.append((segment.StartTime(), start_string))
        end_string = ('end-deleted-segment-' + str((n + 1)))
        info_to_print.append((segment.EndTime(), end_string))
    info_to_print = sorted(info_to_print)
    for i in range(len(split_lines_of_cur_utterance)):
        split_line = split_lines_of_cur_utterance[i]
        split_line[0] += (('[' + str(i)) + ']')
        start_time = float(split_line[2])
        end_time = (start_time + float(split_line[3]))
        split_line_copy = list(split_line)
        while ((len(info_to_print) > 0) and (info_to_print[0][0] <= end_time)):
            (segment_start, string) = info_to_print[0]
            info_to_print = info_to_print[1:]
            split_line_copy.append(((string + '=') + TimeToString(segment_start, args.frame_length)))
        print(' '.join(split_line_copy), file=ctm_edits_out_handle)
def PrintDebugInfoForUtterance(ctm_edits_out_handle, split_lines_of_cur_utterance, segments_for_utterance, deleted_segments_for_utterance):
    info_to_print = []
    for n in range(len(segments_for_utterance)):
        segment = segments_for_utterance[n]
        start_string = (((('start-segment-' + str((n + 1))) + '[') + segment.DebugInfo()) + ']')
        info_to_print.append((segment.StartTime(), start_string))
        end_string = ('end-segment-' + str((n + 1)))
        info_to_print.append((segment.EndTime(), end_string))
    for n in range(len(deleted_segments_for_utterance)):
        segment = deleted_segments_for_utterance[n]
        start_string = (((('start-deleted-segment-' + str((n + 1))) + '[') + segment.DebugInfo()) + ']')
        info_to_print.append((segment.StartTime(), start_string))
        end_string = ('end-deleted-segment-' + str((n + 1)))
        info_to_print.append((segment.EndTime(), end_string))
    info_to_print = sorted(info_to_print)
    for i in range(len(split_lines_of_cur_utterance)):
        split_line = split_lines_of_cur_utterance[i]
        split_line[0] += (('[' + str(i)) + ']')
        start_time = float(split_line[2])
        end_time = (start_time + float(split_line[3]))
        split_line_copy = list(split_line)
        while ((len(info_to_print) > 0) and (info_to_print[0][0] <= end_time)):
            (segment_start, string) = info_to_print[0]
            info_to_print = info_to_print[1:]
            split_line_copy.append(((string + '=') + TimeToString(segment_start, args.frame_length)))
        print(' '.join(split_line_copy), file=ctm_edits_out_handle)