; LLVM IR from nickmqb/muon :: bootstrap/mu.ll_string (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.tag_____Array__string____ = type { ptr, i32 }
%struct.string__ = type { ptr, i32 }

@top_____abandonFn__ = external dso_local thread_local global ptr, align 8

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #1

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

; 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) #2

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @string__split__(ptr %0, i32 %1, i8 noundef signext %2) #3 {
  %4 = alloca %struct.tag_____Array__string____, align 8
  %5 = alloca %struct.string__, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %struct.string__, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %struct.string__, align 8
  %22 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 0
  store ptr %0, ptr %22, align 8
  %23 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 1
  store i32 %1, ptr %23, align 8
  store i8 %2, ptr %6, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 1, ptr %7, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !8
  br label %24

24:                                               ; preds = %54, %3
  %25 = load i32, ptr %8, align 4, !tbaa !8
  %26 = getelementptr inbounds %struct.string__, ptr %5, i32 0, i32 1
  %27 = load i32, ptr %26, align 8, !tbaa !10
  %28 = icmp slt i32 %25, %27
  br i1 %28, label %29, label %57

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store ptr %5, ptr %9, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %30 = load i32, ptr %8, align 4, !tbaa !8
  store i32 %30, ptr %10, align 4, !tbaa !8
  %31 = load i32, ptr %10, align 4, !tbaa !8
  %32 = load ptr, ptr %9, align 8, !tbaa !13
  %33 = getelementptr inbounds %struct.string__, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 8, !tbaa !10
  %35 = icmp ult i32 %31, %34
  br i1 %35, label %39, label %36

36:                                               ; preds = %29
  %37 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  call void %38(i32 noundef -3)
  br label %39

39:                                               ; preds = %36, %29
  %40 = load ptr, ptr %9, align 8, !tbaa !13
  %41 = getelementptr inbounds %struct.string__, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !14
  %43 = load i32, ptr %10, align 4, !tbaa !8
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds i8, ptr %42, i64 %44
  %46 = load i8, ptr %45, align 1, !tbaa !5
  %47 = sext i8 %46 to i32
  %48 = load i8, ptr %6, align 1, !tbaa !5
  %49 = sext i8 %48 to i32
  %50 = icmp eq i32 %47, %49
  br i1 %50, label %51, label %54

51:                                               ; preds = %39
  %52 = load i32, ptr %7, align 4, !tbaa !8
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %7, align 4, !tbaa !8
  br label %54

54:                                               ; preds = %51, %39
  %55 = load i32, ptr %8, align 4, !tbaa !8
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %8, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %24, !llvm.loop !15

57:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %58 = load i32, ptr %7, align 4, !tbaa !8
  %59 = call { ptr, i32 } @Array__cons__string____(i32 noundef %58)
  %60 = getelementptr inbounds { ptr, i32 }, ptr %4, i32 0, i32 0
  %61 = extractvalue { ptr, i32 } %59, 0
  store ptr %61, ptr %60, align 8
  %62 = getelementptr inbounds { ptr, i32 }, ptr %4, i32 0, i32 1
  %63 = extractvalue { ptr, i32 } %59, 1
  store i32 %63, ptr %62, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !8
  br label %64

64:                                               ; preds = %123, %57
  %65 = load i32, ptr %13, align 4, !tbaa !8
  %66 = getelementptr inbounds %struct.string__, ptr %5, i32 0, i32 1
  %67 = load i32, ptr %66, align 8, !tbaa !10
  %68 = icmp slt i32 %65, %67
  br i1 %68, label %69, label %126

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store ptr %5, ptr %14, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %70 = load i32, ptr %13, align 4, !tbaa !8
  store i32 %70, ptr %15, align 4, !tbaa !8
  %71 = load i32, ptr %15, align 4, !tbaa !8
  %72 = load ptr, ptr %14, align 8, !tbaa !13
  %73 = getelementptr inbounds %struct.string__, ptr %72, i32 0, i32 1
  %74 = load i32, ptr %73, align 8, !tbaa !10
  %75 = icmp ult i32 %71, %74
  br i1 %75, label %79, label %76

76:                                               ; preds = %69
  %77 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %78 = load ptr, ptr %77, align 8, !tbaa !13
  call void %78(i32 noundef -3)
  br label %79

79:                                               ; preds = %76, %69
  %80 = load ptr, ptr %14, align 8, !tbaa !13
  %81 = getelementptr inbounds %struct.string__, ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !14
  %83 = load i32, ptr %15, align 4, !tbaa !8
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds i8, ptr %82, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !5
  %87 = sext i8 %86 to i32
  %88 = load i8, ptr %6, align 1, !tbaa !5
  %89 = sext i8 %88 to i32
  %90 = icmp eq i32 %87, %89
  br i1 %90, label %91, label %123

91:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store ptr %4, ptr %16, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %92 = load i32, ptr %12, align 4, !tbaa !8
  store i32 %92, ptr %17, align 4, !tbaa !8
  %93 = load i32, ptr %17, align 4, !tbaa !8
  %94 = load ptr, ptr %16, align 8, !tbaa !13
  %95 = getelementptr inbounds %struct.tag_____Array__string____, ptr %94, i32 0, i32 1
  %96 = load i32, ptr %95, align 8, !tbaa !17
  %97 = icmp ult i32 %93, %96
  br i1 %97, label %101, label %98

98:                                               ; preds = %91
  %99 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %100 = load ptr, ptr %99, align 8, !tbaa !13
  call void %100(i32 noundef -3)
  br label %101

101:                                              ; preds = %98, %91
  %102 = load ptr, ptr %16, align 8, !tbaa !13
  %103 = getelementptr inbounds %struct.tag_____Array__string____, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !19
  %105 = load i32, ptr %17, align 4, !tbaa !8
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds %struct.string__, ptr %104, i64 %106
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  %108 = load i32, ptr %11, align 4, !tbaa !8
  %109 = load i32, ptr %13, align 4, !tbaa !8
  %110 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8
  %112 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 1
  %113 = load i32, ptr %112, align 8
  %114 = call { ptr, i32 } @string__slice__(ptr %111, i32 %113, i32 noundef %108, i32 noundef %109)
  %115 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %116 = extractvalue { ptr, i32 } %114, 0
  store ptr %116, ptr %115, align 8
  %117 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %118 = extractvalue { ptr, i32 } %114, 1
  store i32 %118, ptr %117, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %107, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  %119 = load i32, ptr %13, align 4, !tbaa !8
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %11, align 4, !tbaa !8
  %121 = load i32, ptr %12, align 4, !tbaa !8
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %12, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %123

123:                                              ; preds = %101, %79
  %124 = load i32, ptr %13, align 4, !tbaa !8
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %13, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %64, !llvm.loop !21

126:                                              ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store ptr %4, ptr %19, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %127 = load i32, ptr %12, align 4, !tbaa !8
  store i32 %127, ptr %20, align 4, !tbaa !8
  %128 = load i32, ptr %20, align 4, !tbaa !8
  %129 = load ptr, ptr %19, align 8, !tbaa !13
  %130 = getelementptr inbounds %struct.tag_____Array__string____, ptr %129, i32 0, i32 1
  %131 = load i32, ptr %130, align 8, !tbaa !17
  %132 = icmp ult i32 %128, %131
  br i1 %132, label %136, label %133

133:                                              ; preds = %126
  %134 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %135 = load ptr, ptr %134, align 8, !tbaa !13
  call void %135(i32 noundef -3)
  br label %136

136:                                              ; preds = %133, %126
  %137 = load ptr, ptr %19, align 8, !tbaa !13
  %138 = getelementptr inbounds %struct.tag_____Array__string____, ptr %137, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8, !tbaa !19
  %140 = load i32, ptr %20, align 4, !tbaa !8
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds %struct.string__, ptr %139, i64 %141
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %143 = load i32, ptr %11, align 4, !tbaa !8
  %144 = getelementptr inbounds %struct.string__, ptr %5, i32 0, i32 1
  %145 = load i32, ptr %144, align 8, !tbaa !10
  %146 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8
  %148 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 1
  %149 = load i32, ptr %148, align 8
  %150 = call { ptr, i32 } @string__slice__(ptr %147, i32 %149, i32 noundef %143, i32 noundef %145)
  %151 = getelementptr inbounds { ptr, i32 }, ptr %21, i32 0, i32 0
  %152 = extractvalue { ptr, i32 } %150, 0
  store ptr %152, ptr %151, align 8
  %153 = getelementptr inbounds { ptr, i32 }, ptr %21, i32 0, i32 1
  %154 = extractvalue { ptr, i32 } %150, 1
  store i32 %154, ptr %153, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %142, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  %155 = load { ptr, i32 }, ptr %4, align 8
  ret { ptr, i32 } %155
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree 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 = { 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 = !{!"int", !6, i64 0}
!10 = !{!11, !9, i64 8}
!11 = !{!"", !12, i64 0, !9, i64 8}
!12 = !{!"any pointer", !6, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!11, !12, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !9, i64 8}
!18 = !{!"tag_____Array__string____", !12, i64 0, !9, i64 8}
!19 = !{!18, !12, i64 0}
!20 = !{i64 0, i64 8, !13, i64 8, i64 4, !8}
!21 = distinct !{!21, !16}


; 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 }

@top_____abandonFn__ = external dso_local thread_local local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #0

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @string__slice__(ptr, i32, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @string__split__(ptr %0, i32 %1, i8 noundef signext %2) local_unnamed_addr #1 {
  %4 = icmp sgt i32 %1, 0
  br i1 %4, label %.lr.ph.preheader, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %3
  %5 = tail call { ptr, i32 } @Array__cons__string____(i32 noundef 1)
  %6 = extractvalue { ptr, i32 } %5, 0
  %7 = extractvalue { ptr, i32 } %5, 1
  br label %._crit_edge63

.lr.ph.preheader:                                 ; preds = %3
  %wide.trip.count = zext nneg i32 %1 to i64
  %min.iters.check = icmp ult i32 %1, 8
  br i1 %min.iters.check, label %.lr.ph.preheader76, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  %broadcast.splatinsert = insertelement <4 x i8> poison, i8 %2, i64 0
  %broadcast.splat = shufflevector <4 x i8> %broadcast.splatinsert, <4 x i8> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ <i32 1, i32 0, i32 0, i32 0>, %vector.ph ], [ %14, %vector.body ]
  %vec.phi74 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %15, %vector.body ]
  %8 = getelementptr inbounds i8, ptr %0, i64 %index
  %9 = getelementptr inbounds i8, ptr %8, i64 4
  %wide.load = load <4 x i8>, ptr %8, align 1, !tbaa !5
  %wide.load75 = load <4 x i8>, ptr %9, align 1, !tbaa !5
  %10 = icmp eq <4 x i8> %wide.load, %broadcast.splat
  %11 = icmp eq <4 x i8> %wide.load75, %broadcast.splat
  %12 = zext <4 x i1> %10 to <4 x i32>
  %13 = zext <4 x i1> %11 to <4 x i32>
  %14 = add <4 x i32> %vec.phi, %12
  %15 = add <4 x i32> %vec.phi74, %13
  %index.next = add nuw i64 %index, 8
  %16 = icmp eq i64 %index.next, %n.vec
  br i1 %16, label %middle.block, label %vector.body, !llvm.loop !8

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %15, %14
  %17 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader76

.lr.ph.preheader76:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %.057.ph = phi i32 [ 1, %.lr.ph.preheader ], [ %17, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader76, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader76 ]
  %.057 = phi i32 [ %spec.select, %.lr.ph ], [ %.057.ph, %.lr.ph.preheader76 ]
  %18 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv
  %19 = load i8, ptr %18, align 1, !tbaa !5
  %20 = icmp eq i8 %19, %2
  %21 = zext i1 %20 to i32
  %spec.select = add nuw nsw i32 %.057, %21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %middle.block
  %spec.select.lcssa = phi i32 [ %17, %middle.block ], [ %spec.select, %.lr.ph ]
  %22 = tail call { ptr, i32 } @Array__cons__string____(i32 noundef %spec.select.lcssa)
  %23 = extractvalue { ptr, i32 } %22, 0
  %24 = extractvalue { ptr, i32 } %22, 1
  br i1 %4, label %.lr.ph62, label %._crit_edge63

.lr.ph62:                                         ; preds = %._crit_edge
  %25 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %wide.trip.count70 = zext nneg i32 %1 to i64
  br label %26

26:                                               ; preds = %.lr.ph62, %44
  %indvars.iv67 = phi i64 [ 0, %.lr.ph62 ], [ %indvars.iv.next68.pre-phi, %44 ]
  %.03660 = phi i32 [ 0, %.lr.ph62 ], [ %.137, %44 ]
  %.03859 = phi i32 [ 0, %.lr.ph62 ], [ %.139, %44 ]
  %27 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv67
  %28 = load i8, ptr %27, align 1, !tbaa !5
  %29 = icmp eq i8 %28, %2
  br i1 %29, label %30, label %._crit_edge72

._crit_edge72:                                    ; preds = %26
  %.pre = add nuw nsw i64 %indvars.iv67, 1
  br label %44

30:                                               ; preds = %26
  %31 = icmp ult i32 %.03859, %24
  br i1 %31, label %34, label %32

32:                                               ; preds = %30
  %33 = load ptr, ptr %25, align 8, !tbaa !13
  tail call void %33(i32 noundef -3) #3
  br label %34

34:                                               ; preds = %32, %30
  %35 = zext i32 %.03859 to i64
  %36 = getelementptr inbounds %struct.string__, ptr %23, i64 %35
  %37 = trunc nuw nsw i64 %indvars.iv67 to i32
  %38 = tail call { ptr, i32 } @string__slice__(ptr nonnull %0, i32 %1, i32 noundef %.03660, i32 noundef %37)
  %39 = extractvalue { ptr, i32 } %38, 0
  %40 = extractvalue { ptr, i32 } %38, 1
  store ptr %39, ptr %36, align 8, !tbaa !13
  %.sroa.44.0..sroa_idx = getelementptr inbounds i8, ptr %36, i64 8
  store i32 %40, ptr %.sroa.44.0..sroa_idx, align 8, !tbaa !15
  %41 = add nuw nsw i64 %indvars.iv67, 1
  %42 = add nsw i32 %.03859, 1
  %43 = trunc nuw nsw i64 %41 to i32
  br label %44

44:                                               ; preds = %._crit_edge72, %34
  %indvars.iv.next68.pre-phi = phi i64 [ %.pre, %._crit_edge72 ], [ %41, %34 ]
  %.139 = phi i32 [ %.03859, %._crit_edge72 ], [ %42, %34 ]
  %.137 = phi i32 [ %.03660, %._crit_edge72 ], [ %43, %34 ]
  %exitcond71.not = icmp eq i64 %indvars.iv.next68.pre-phi, %wide.trip.count70
  br i1 %exitcond71.not, label %._crit_edge63, label %26, !llvm.loop !17

._crit_edge63:                                    ; preds = %44, %._crit_edge.thread, %._crit_edge
  %45 = phi i32 [ %24, %._crit_edge ], [ %7, %._crit_edge.thread ], [ %24, %44 ]
  %46 = phi ptr [ %23, %._crit_edge ], [ %6, %._crit_edge.thread ], [ %23, %44 ]
  %47 = phi { ptr, i32 } [ %22, %._crit_edge ], [ %5, %._crit_edge.thread ], [ %22, %44 ]
  %.038.lcssa = phi i32 [ 0, %._crit_edge ], [ 0, %._crit_edge.thread ], [ %.139, %44 ]
  %.036.lcssa = phi i32 [ 0, %._crit_edge ], [ 0, %._crit_edge.thread ], [ %.137, %44 ]
  %48 = icmp ult i32 %.038.lcssa, %45
  br i1 %48, label %52, label %49

49:                                               ; preds = %._crit_edge63
  %50 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %51 = load ptr, ptr %50, align 8, !tbaa !13
  tail call void %51(i32 noundef -3) #3
  br label %52

52:                                               ; preds = %49, %._crit_edge63
  %53 = zext i32 %.038.lcssa to i64
  %54 = getelementptr inbounds %struct.string__, ptr %46, i64 %53
  %55 = tail call { ptr, i32 } @string__slice__(ptr %0, i32 %1, i32 noundef %.036.lcssa, i32 noundef %1)
  %56 = extractvalue { ptr, i32 } %55, 0
  %57 = extractvalue { ptr, i32 } %55, 1
  store ptr %56, ptr %54, align 8, !tbaa !13
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %54, i64 8
  store i32 %57, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !15
  ret { ptr, i32 } %47
}

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @Array__cons__string____(i32 noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 = distinct !{!8, !9, !10, !11}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!"llvm.loop.isvectorized", i32 1}
!11 = !{!"llvm.loop.unroll.runtime.disable"}
!12 = distinct !{!12, !9, !11, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !6, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !6, i64 0}
!17 = distinct !{!17, !9}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass