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

; 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
@__func__.split = external hidden unnamed_addr constant [6 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

; 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(ptr noundef %0, i8 noundef signext %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.String, align 8
  %9 = alloca %struct.String, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i8 %1, ptr %4, align 1, !tbaa !9
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %18

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

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

20:                                               ; preds = %54, %18
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = load i8, ptr %21, align 1, !tbaa !9
  %23 = icmp ne i8 %22, 0
  br i1 %23, label %24, label %57

24:                                               ; preds = %20
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = load i8, ptr %25, align 1, !tbaa !9
  %27 = sext i8 %26 to i32
  %28 = load i8, ptr %4, align 1, !tbaa !9
  %29 = sext i8 %28 to i32
  %30 = icmp eq i32 %27, %29
  br i1 %30, label %31, label %54

31:                                               ; preds = %24
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = ptrtoint ptr %33 to i64
  %36 = ptrtoint ptr %34 to i64
  %37 = sub i64 %35, %36
  %38 = trunc i64 %37 to i32
  %39 = call { ptr, i64 } @make_string2(ptr noundef %32, i32 noundef %38)
  %40 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %41 = extractvalue { ptr, i64 } %39, 0
  store ptr %41, ptr %40, align 8
  %42 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %43 = extractvalue { ptr, i64 } %39, 1
  store i64 %43, ptr %42, align 8
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8
  %47 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %48 = load i64, ptr %47, align 8
  %49 = call ptr @new_string_node(ptr %46, i64 %48, ptr noundef %44)
  store ptr %49, ptr %6, align 8, !tbaa !5
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 1
  store ptr %51, ptr %3, align 8, !tbaa !5
  %52 = load i32, ptr %7, align 4, !tbaa !10
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %7, align 4, !tbaa !10
  br label %54

54:                                               ; preds = %31, %24
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i32 1
  store ptr %56, ptr %5, align 8, !tbaa !5
  br label %20, !llvm.loop !12

57:                                               ; preds = %20
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = icmp ne ptr %58, null
  br i1 %59, label %67, label %60

60:                                               ; preds = %57
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %88

63:                                               ; preds = %60
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = icmp ugt ptr %64, %65
  br i1 %66, label %67, label %88

67:                                               ; preds = %63, %57
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = ptrtoint ptr %69 to i64
  %72 = ptrtoint ptr %70 to i64
  %73 = sub i64 %71, %72
  %74 = trunc i64 %73 to i32
  %75 = call { ptr, i64 } @make_string2(ptr noundef %68, i32 noundef %74)
  %76 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %77 = extractvalue { ptr, i64 } %75, 0
  store ptr %77, ptr %76, align 8
  %78 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %79 = extractvalue { ptr, i64 } %75, 1
  store i64 %79, ptr %78, align 8
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8
  %83 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %84 = load i64, ptr %83, align 8
  %85 = call ptr @new_string_node(ptr %82, i64 %84, ptr noundef %80)
  store ptr %85, ptr %6, align 8, !tbaa !5
  %86 = load i32, ptr %7, align 4, !tbaa !10
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %7, align 4, !tbaa !10
  br label %88

88:                                               ; preds = %67, %63, %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %89 = load i32, ptr %7, align 4, !tbaa !10
  %90 = call ptr @new_string_array(i32 noundef %89)
  store ptr %90, ptr %10, align 8, !tbaa !5
  %91 = load i32, ptr %7, align 4, !tbaa !10
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.StringArray, ptr %92, i32 0, i32 0
  store i32 %91, ptr %93, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %94 = load i32, ptr %7, align 4, !tbaa !10
  %95 = sub nsw i32 %94, 1
  store i32 %95, ptr %11, align 4, !tbaa !10
  br label %96

96:                                               ; preds = %119, %88
  %97 = load i32, ptr %11, align 4, !tbaa !10
  %98 = icmp sge i32 %97, 0
  br i1 %98, label %100, label %99

99:                                               ; preds = %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %122

100:                                              ; preds = %96
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = icmp eq ptr %101, null
  br i1 %102, label %103, label %106

103:                                              ; preds = %100
  %104 = load ptr, ptr @stderr, align 8, !tbaa !5
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.57, ptr noundef @.str.1, i32 noundef 468) #5
  call void @exit(i32 noundef 1) #6
  unreachable

106:                                              ; preds = %100
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.StringArray, ptr %107, i32 0, i32 2
  %109 = load i32, ptr %11, align 4, !tbaa !10
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [0 x %struct.String], ptr %108, i64 0, i64 %110
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.StringNode, ptr %112, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %111, ptr align 8 %113, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %114, ptr %12, align 8, !tbaa !5
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.StringNode, ptr %115, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !15
  store ptr %117, ptr %6, align 8, !tbaa !5
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %118) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %119

119:                                              ; preds = %106
  %120 = load i32, ptr %11, align 4, !tbaa !10
  %121 = add nsw i32 %120, -1
  store i32 %121, ptr %11, align 4, !tbaa !10
  br label %96, !llvm.loop !18

122:                                              ; preds = %99
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = icmp eq ptr %123, null
  br i1 %124, label %128, label %125

125:                                              ; preds = %122
  %126 = load ptr, ptr @stderr, align 8, !tbaa !5
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.28, ptr noundef @.str.1, i32 noundef 474, ptr noundef @.str.58, ptr noundef @.str.59) #5
  call void @exit(i32 noundef 1) #6
  unreachable

128:                                              ; preds = %122
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret ptr %129
}

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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{i64 0, i64 8, !5, i64 8, i64 4, !10, i64 12, i64 4, !10}
!15 = !{!16, !6, i64 16}
!16 = !{!"StringNode", !17, i64 0, !6, i64 16}
!17 = !{!"String", !6, i64 0, !11, i64 8, !11, 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
@__func__.split = external hidden unnamed_addr constant [6 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

; 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(ptr noundef %0, i8 noundef signext %1) local_unnamed_addr #2 {
  %3 = icmp eq ptr %0, null
  br i1 %3, label %5, label %.preheader

.preheader:                                       ; preds = %2
  %4 = load i8, ptr %0, align 1, !tbaa !5
  %.not48 = icmp eq i8 %4, 0
  br i1 %.not48, label %._crit_edge, label %.lr.ph

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

.lr.ph:                                           ; preds = %.preheader, %21
  %8 = phi i8 [ %23, %21 ], [ %4, %.preheader ]
  %.052 = phi ptr [ %.1, %21 ], [ %0, %.preheader ]
  %.03851 = phi ptr [ %22, %21 ], [ %0, %.preheader ]
  %.03950 = phi ptr [ %.140, %21 ], [ null, %.preheader ]
  %.04149 = phi i32 [ %.142, %21 ], [ 0, %.preheader ]
  %9 = icmp eq i8 %8, %1
  br i1 %9, label %10, label %21

10:                                               ; preds = %.lr.ph
  %11 = ptrtoint ptr %.03851 to i64
  %12 = ptrtoint ptr %.052 to i64
  %13 = sub i64 %11, %12
  %14 = trunc i64 %13 to i32
  %15 = tail call { ptr, i64 } @make_string2(ptr noundef %.052, i32 noundef %14)
  %16 = extractvalue { ptr, i64 } %15, 0
  %17 = extractvalue { ptr, i64 } %15, 1
  %18 = tail call ptr @new_string_node(ptr %16, i64 %17, ptr noundef %.03950)
  %19 = getelementptr inbounds i8, ptr %.03851, i64 1
  %20 = add nsw i32 %.04149, 1
  br label %21

21:                                               ; preds = %10, %.lr.ph
  %.142 = phi i32 [ %20, %10 ], [ %.04149, %.lr.ph ]
  %.140 = phi ptr [ %18, %10 ], [ %.03950, %.lr.ph ]
  %.1 = phi ptr [ %19, %10 ], [ %.052, %.lr.ph ]
  %22 = getelementptr inbounds i8, ptr %.03851, i64 1
  %23 = load i8, ptr %22, align 1, !tbaa !5
  %.not = icmp eq i8 %23, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !10

._crit_edge:                                      ; preds = %21, %.preheader
  %.041.lcssa = phi i32 [ 0, %.preheader ], [ %.142, %21 ]
  %.039.lcssa = phi ptr [ null, %.preheader ], [ %.140, %21 ]
  %.038.lcssa = phi ptr [ %0, %.preheader ], [ %22, %21 ]
  %.0.lcssa = phi ptr [ %0, %.preheader ], [ %.1, %21 ]
  %.not46 = icmp ne ptr %.039.lcssa, null
  %24 = icmp ugt ptr %.038.lcssa, %.0.lcssa
  %or.cond = select i1 %.not46, i1 true, i1 %24
  br i1 %or.cond, label %25, label %35

25:                                               ; preds = %._crit_edge
  %26 = ptrtoint ptr %.038.lcssa to i64
  %27 = ptrtoint ptr %.0.lcssa to i64
  %28 = sub i64 %26, %27
  %29 = trunc i64 %28 to i32
  %30 = tail call { ptr, i64 } @make_string2(ptr noundef %.0.lcssa, i32 noundef %29)
  %31 = extractvalue { ptr, i64 } %30, 0
  %32 = extractvalue { ptr, i64 } %30, 1
  %33 = tail call ptr @new_string_node(ptr %31, i64 %32, ptr noundef %.039.lcssa)
  %34 = add nsw i32 %.041.lcssa, 1
  br label %35

35:                                               ; preds = %._crit_edge, %25
  %.243 = phi i32 [ %34, %25 ], [ %.041.lcssa, %._crit_edge ]
  %.2 = phi ptr [ %33, %25 ], [ null, %._crit_edge ]
  %36 = tail call ptr @new_string_array(i32 noundef %.243)
  store i32 %.243, ptr %36, align 8, !tbaa !12
  %37 = icmp sgt i32 %.243, 0
  br i1 %37, label %.lr.ph60, label %._crit_edge61

.lr.ph60:                                         ; preds = %35
  %38 = getelementptr inbounds i8, ptr %36, i64 8
  %39 = zext nneg i32 %.243 to i64
  br label %41

._crit_edge61:                                    ; preds = %46, %35
  %.3.lcssa = phi ptr [ %.2, %35 ], [ %49, %46 ]
  %40 = icmp eq ptr %.3.lcssa, null
  br i1 %40, label %54, label %51

41:                                               ; preds = %.lr.ph60, %46
  %indvars.iv = phi i64 [ %39, %.lr.ph60 ], [ %indvars.iv.next, %46 ]
  %.357 = phi ptr [ %.2, %.lr.ph60 ], [ %49, %46 ]
  %42 = icmp eq ptr %.357, null
  br i1 %42, label %43, label %46

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

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

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

54:                                               ; preds = %._crit_edge61
  ret ptr %36
}

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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !6, i64 0}
!14 = !{i64 0, i64 8, !8, i64 8, i64 4, !12, i64 12, i64 4, !12}
!15 = !{!16, !9, i64 16}
!16 = !{!"StringNode", !17, i64 0, !9, i64 16}
!17 = !{!"String", !9, 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