; LLVM IR from mirohs/gc :: util (split_lines)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.String = type { ptr, i32, i32 }
%struct.StringArray = type { i32, i32, [0 x %struct.String] }
%struct.StringNode = type { %struct.String, ptr }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [56 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [14 x i8], align 1
@__func__.split_lines = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i64 } @make_string2(ptr noundef, i32 noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @new_string_node(ptr, i64, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @new_string_array(i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local ptr @split_lines(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca %struct.String, align 8
  %8 = alloca %struct.String, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %17

14:                                               ; preds = %1
  %15 = load ptr, ptr @stderr, align 8, !tbaa !5
  %16 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 516, ptr noundef @__func__.split_lines) #5
  call void @exit(i32 noundef 1) #6
  unreachable

17:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %18, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %63, %17
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = load i8, ptr %20, align 1, !tbaa !11
  %22 = icmp ne i8 %21, 0
  br i1 %22, label %23, label %66

23:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = load i8, ptr %24, align 1, !tbaa !11
  store i8 %25, ptr %6, align 1, !tbaa !11
  %26 = load i8, ptr %6, align 1, !tbaa !11
  %27 = sext i8 %26 to i32
  %28 = icmp eq i32 %27, 10
  br i1 %28, label %33, label %29

29:                                               ; preds = %23
  %30 = load i8, ptr %6, align 1, !tbaa !11
  %31 = sext i8 %30 to i32
  %32 = icmp eq i32 %31, 13
  br i1 %32, label %33, label %63

33:                                               ; preds = %29, %23
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = ptrtoint ptr %35 to i64
  %38 = ptrtoint ptr %36 to i64
  %39 = sub i64 %37, %38
  %40 = trunc i64 %39 to i32
  %41 = call { ptr, i64 } @make_string2(ptr noundef %34, i32 noundef %40)
  %42 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  %43 = extractvalue { ptr, i64 } %41, 0
  store ptr %43, ptr %42, align 8
  %44 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  %45 = extractvalue { ptr, i64 } %41, 1
  store i64 %45, ptr %44, align 8
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8
  %49 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  %50 = load i64, ptr %49, align 8
  %51 = call ptr @new_string_node(ptr %48, i64 %50, ptr noundef %46)
  store ptr %51, ptr %4, align 8, !tbaa !5
  %52 = load i8, ptr %6, align 1, !tbaa !11
  %53 = sext i8 %52 to i32
  %54 = icmp eq i32 %53, 13
  br i1 %54, label %55, label %58

55:                                               ; preds = %33
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i32 1
  store ptr %57, ptr %3, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %55, %33
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 1
  store ptr %60, ptr %2, align 8, !tbaa !5
  %61 = load i32, ptr %5, align 4, !tbaa !9
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %5, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %58, %29
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i32 1
  store ptr %65, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  br label %19, !llvm.loop !12

66:                                               ; preds = %19
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = icmp ne ptr %67, null
  br i1 %68, label %76, label %69

69:                                               ; preds = %66
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = icmp eq ptr %70, null
  br i1 %71, label %72, label %97

72:                                               ; preds = %69
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = icmp ugt ptr %73, %74
  br i1 %75, label %76, label %97

76:                                               ; preds = %72, %66
  %77 = load ptr, ptr %2, align 8, !tbaa !5
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = ptrtoint ptr %78 to i64
  %81 = ptrtoint ptr %79 to i64
  %82 = sub i64 %80, %81
  %83 = trunc i64 %82 to i32
  %84 = call { ptr, i64 } @make_string2(ptr noundef %77, i32 noundef %83)
  %85 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %86 = extractvalue { ptr, i64 } %84, 0
  store ptr %86, ptr %85, align 8
  %87 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %88 = extractvalue { ptr, i64 } %84, 1
  store i64 %88, ptr %87, align 8
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8
  %92 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %93 = load i64, ptr %92, align 8
  %94 = call ptr @new_string_node(ptr %91, i64 %93, ptr noundef %89)
  store ptr %94, ptr %4, align 8, !tbaa !5
  %95 = load i32, ptr %5, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %5, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %76, %72, %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %98 = load i32, ptr %5, align 4, !tbaa !9
  %99 = call ptr @new_string_array(i32 noundef %98)
  store ptr %99, ptr %9, align 8, !tbaa !5
  %100 = load i32, ptr %5, align 4, !tbaa !9
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.StringArray, ptr %101, i32 0, i32 0
  store i32 %100, ptr %102, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %103 = load i32, ptr %5, align 4, !tbaa !9
  %104 = sub nsw i32 %103, 1
  store i32 %104, ptr %10, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %128, %97
  %106 = load i32, ptr %10, align 4, !tbaa !9
  %107 = icmp sge i32 %106, 0
  br i1 %107, label %109, label %108

108:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %131

109:                                              ; preds = %105
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = icmp eq ptr %110, null
  br i1 %111, label %112, label %115

112:                                              ; preds = %109
  %113 = load ptr, ptr @stderr, align 8, !tbaa !5
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.57, ptr noundef @.str.1, i32 noundef 538) #5
  call void @exit(i32 noundef 1) #6
  unreachable

115:                                              ; preds = %109
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.StringArray, ptr %116, i32 0, i32 2
  %118 = load i32, ptr %10, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [0 x %struct.String], ptr %117, i64 0, i64 %119
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.StringNode, ptr %121, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %120, ptr align 8 %122, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %123, ptr %11, align 8, !tbaa !5
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.StringNode, ptr %124, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8, !tbaa !15
  store ptr %126, ptr %4, align 8, !tbaa !5
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %127) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %128

128:                                              ; preds = %115
  %129 = load i32, ptr %10, align 4, !tbaa !9
  %130 = add nsw i32 %129, -1
  store i32 %130, ptr %10, align 4, !tbaa !9
  br label %105, !llvm.loop !18

131:                                              ; preds = %108
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = icmp eq ptr %132, null
  br i1 %133, label %137, label %134

134:                                              ; preds = %131
  %135 = load ptr, ptr @stderr, align 8, !tbaa !5
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.28, ptr noundef @.str.1, i32 noundef 544, ptr noundef @.str.58, ptr noundef @.str.59) #5
  call void @exit(i32 noundef 1) #6
  unreachable

137:                                              ; preds = %131
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret ptr %138
}

attributes #0 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{i64 0, i64 8, !5, i64 8, i64 4, !9, i64 12, i64 4, !9}
!15 = !{!16, !6, i64 16}
!16 = !{!"StringNode", !17, i64 0, !6, i64 16}
!17 = !{!"String", !6, i64 0, !10, i64 8, !10, i64 12}
!18 = distinct !{!18, !13}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.String = type { ptr, i32, i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [56 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [14 x i8], align 1
@__func__.split_lines = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i64 } @make_string2(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local ptr @new_string_node(ptr, i64, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @new_string_array(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @split_lines(ptr noundef %0) local_unnamed_addr #2 {
  %2 = icmp eq ptr %0, null
  br i1 %2, label %3, label %.preheader

3:                                                ; preds = %1
  %4 = load ptr, ptr @stderr, align 8, !tbaa !5
  %5 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 516, ptr noundef nonnull @__func__.split_lines) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

.preheader:                                       ; preds = %1, %19
  %.048 = phi i32 [ %.149, %19 ], [ 0, %1 ]
  %.045 = phi ptr [ %.146, %19 ], [ null, %1 ]
  %.043 = phi ptr [ %20, %19 ], [ %0, %1 ]
  %.0 = phi ptr [ %.1, %19 ], [ %0, %1 ]
  %6 = load i8, ptr %.043, align 1, !tbaa !9
  switch i8 %6, label %19 [
    i8 0, label %21
    i8 13, label %7
    i8 10, label %7
  ]

7:                                                ; preds = %.preheader, %.preheader
  %8 = icmp eq i8 %6, 13
  %9 = ptrtoint ptr %.043 to i64
  %10 = ptrtoint ptr %.0 to i64
  %11 = sub i64 %9, %10
  %12 = trunc i64 %11 to i32
  %13 = tail call { ptr, i64 } @make_string2(ptr noundef %.0, i32 noundef %12)
  %14 = extractvalue { ptr, i64 } %13, 0
  %15 = extractvalue { ptr, i64 } %13, 1
  %16 = tail call ptr @new_string_node(ptr %14, i64 %15, ptr noundef %.045)
  %spec.select.idx = zext i1 %8 to i64
  %spec.select = getelementptr inbounds i8, ptr %.043, i64 %spec.select.idx
  %17 = getelementptr inbounds i8, ptr %spec.select, i64 1
  %18 = add nsw i32 %.048, 1
  br label %19

19:                                               ; preds = %.preheader, %7
  %.149 = phi i32 [ %18, %7 ], [ %.048, %.preheader ]
  %.146 = phi ptr [ %16, %7 ], [ %.045, %.preheader ]
  %.2 = phi ptr [ %spec.select, %7 ], [ %.043, %.preheader ]
  %.1 = phi ptr [ %17, %7 ], [ %.0, %.preheader ]
  %20 = getelementptr inbounds i8, ptr %.2, i64 1
  br label %.preheader, !llvm.loop !10

21:                                               ; preds = %.preheader
  %.not53 = icmp ne ptr %.045, null
  %22 = icmp ugt ptr %.043, %.0
  %or.cond = select i1 %.not53, i1 true, i1 %22
  br i1 %or.cond, label %23, label %33

23:                                               ; preds = %21
  %24 = ptrtoint ptr %.043 to i64
  %25 = ptrtoint ptr %.0 to i64
  %26 = sub i64 %24, %25
  %27 = trunc i64 %26 to i32
  %28 = tail call { ptr, i64 } @make_string2(ptr noundef %.0, i32 noundef %27)
  %29 = extractvalue { ptr, i64 } %28, 0
  %30 = extractvalue { ptr, i64 } %28, 1
  %31 = tail call ptr @new_string_node(ptr %29, i64 %30, ptr noundef %.045)
  %32 = add nsw i32 %.048, 1
  br label %33

33:                                               ; preds = %21, %23
  %.250 = phi i32 [ %32, %23 ], [ %.048, %21 ]
  %.247 = phi ptr [ %31, %23 ], [ null, %21 ]
  %34 = tail call ptr @new_string_array(i32 noundef %.250)
  store i32 %.250, ptr %34, align 8, !tbaa !12
  %35 = icmp sgt i32 %.250, 0
  br i1 %35, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %33
  %36 = getelementptr inbounds i8, ptr %34, i64 8
  %37 = zext nneg i32 %.250 to i64
  br label %39

._crit_edge:                                      ; preds = %44, %33
  %.3.lcssa = phi ptr [ %.247, %33 ], [ %47, %44 ]
  %38 = icmp eq ptr %.3.lcssa, null
  br i1 %38, label %52, label %49

39:                                               ; preds = %.lr.ph, %44
  %indvars.iv = phi i64 [ %37, %.lr.ph ], [ %indvars.iv.next, %44 ]
  %.356 = phi ptr [ %.247, %.lr.ph ], [ %47, %44 ]
  %40 = icmp eq ptr %.356, null
  br i1 %40, label %41, label %44

41:                                               ; preds = %39
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.57, ptr noundef nonnull @.str.1, i32 noundef 538) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

44:                                               ; preds = %39
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %45 = getelementptr inbounds [0 x %struct.String], ptr %36, i64 0, i64 %indvars.iv.next
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(16) %.356, i64 16, i1 false), !tbaa.struct !14
  %46 = getelementptr inbounds i8, ptr %.356, i64 16
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  tail call void @free(ptr noundef nonnull %.356) #7
  %48 = icmp sgt i64 %indvars.iv, 1
  br i1 %48, label %39, label %._crit_edge, !llvm.loop !18

49:                                               ; preds = %._crit_edge
  %50 = load ptr, ptr @stderr, align 8, !tbaa !5
  %51 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str.28, ptr noundef nonnull @.str.1, i32 noundef 544, ptr noundef nonnull @.str.58, ptr noundef nonnull @.str.59) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

52:                                               ; preds = %._crit_edge
  ret ptr %34
}

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { cold nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{i64 0, i64 8, !5, i64 8, i64 4, !12, i64 12, i64 4, !12}
!15 = !{!16, !6, i64 16}
!16 = !{!"StringNode", !17, i64 0, !6, i64 16}
!17 = !{!"String", !6, i64 0, !13, i64 8, !13, i64 12}
!18 = distinct !{!18, !11}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass