; LLVM IR from nickmqb/muon :: bootstrap/mu.ll_string (replace__)

; 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 }
%struct.tag_____StringBuilder__ = type { ptr, i32, 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: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @StringBuilder__write__(ptr noundef, ptr, i32) #4

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @string__replace__(ptr %0, i32 %1, ptr %2, i32 %3, ptr %4, i32 %5) #4 {
  %7 = alloca %struct.string__, align 8
  %8 = alloca %struct.string__, align 8
  %9 = alloca %struct.string__, align 8
  %10 = alloca %struct.string__, align 8
  %11 = alloca %struct.tag_____StringBuilder__, align 8
  %12 = alloca %struct.tag_____StringBuilder__, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %struct.string__, align 8
  %24 = alloca %struct.string__, align 8
  %25 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 0
  store ptr %0, ptr %25, align 8
  %26 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 1
  store i32 %1, ptr %26, align 8
  %27 = getelementptr inbounds { ptr, i32 }, ptr %9, i32 0, i32 0
  store ptr %2, ptr %27, align 8
  %28 = getelementptr inbounds { ptr, i32 }, ptr %9, i32 0, i32 1
  store i32 %3, ptr %28, align 8
  %29 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 0
  store ptr %4, ptr %29, align 8
  %30 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 1
  store i32 %5, ptr %30, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %31 = getelementptr inbounds %struct.string__, ptr %8, i32 0, i32 1
  %32 = load i32, ptr %31, align 8, !tbaa !12
  %33 = getelementptr inbounds %struct.string__, ptr %9, i32 0, i32 1
  %34 = load i32, ptr %33, align 8, !tbaa !12
  %35 = sub nsw i32 %32, %34
  store i32 %35, ptr %15, align 4, !tbaa !10
  br label %36

36:                                               ; preds = %133, %6
  br label %37

37:                                               ; preds = %36
  %38 = load i32, ptr %14, align 4, !tbaa !10
  %39 = load i32, ptr %15, align 4, !tbaa !10
  %40 = icmp sle i32 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  br label %134

42:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %43 = load i32, ptr %14, align 4, !tbaa !10
  store i32 %43, ptr %16, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !10
  br label %44

44:                                               ; preds = %98, %42
  br label %45

45:                                               ; preds = %44
  %46 = load i32, ptr %17, align 4, !tbaa !10
  %47 = getelementptr inbounds %struct.string__, ptr %9, i32 0, i32 1
  %48 = load i32, ptr %47, align 8, !tbaa !12
  %49 = icmp slt i32 %46, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %45
  br label %99

51:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store ptr %8, ptr %18, align 8, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %52 = load i32, ptr %16, align 4, !tbaa !10
  store i32 %52, ptr %19, align 4, !tbaa !10
  %53 = load i32, ptr %19, align 4, !tbaa !10
  %54 = load ptr, ptr %18, align 8, !tbaa !6
  %55 = getelementptr inbounds %struct.string__, ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 8, !tbaa !12
  %57 = icmp ult i32 %53, %56
  br i1 %57, label %61, label %58

58:                                               ; preds = %51
  %59 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %60 = load ptr, ptr %59, align 8, !tbaa !6
  call void %60(i32 noundef -3)
  br label %61

61:                                               ; preds = %58, %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store ptr %9, ptr %20, align 8, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %62 = load i32, ptr %17, align 4, !tbaa !10
  store i32 %62, ptr %21, align 4, !tbaa !10
  %63 = load i32, ptr %21, align 4, !tbaa !10
  %64 = load ptr, ptr %20, align 8, !tbaa !6
  %65 = getelementptr inbounds %struct.string__, ptr %64, i32 0, i32 1
  %66 = load i32, ptr %65, align 8, !tbaa !12
  %67 = icmp ult i32 %63, %66
  br i1 %67, label %71, label %68

68:                                               ; preds = %61
  %69 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %70 = load ptr, ptr %69, align 8, !tbaa !6
  call void %70(i32 noundef -3)
  br label %71

71:                                               ; preds = %68, %61
  %72 = load ptr, ptr %18, align 8, !tbaa !6
  %73 = getelementptr inbounds %struct.string__, ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !14
  %75 = load i32, ptr %19, align 4, !tbaa !10
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds i8, ptr %74, i64 %76
  %78 = load i8, ptr %77, align 1, !tbaa !15
  %79 = sext i8 %78 to i32
  %80 = load ptr, ptr %20, align 8, !tbaa !6
  %81 = getelementptr inbounds %struct.string__, ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !14
  %83 = load i32, ptr %21, align 4, !tbaa !10
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds i8, ptr %82, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !15
  %87 = sext i8 %86 to i32
  %88 = icmp eq i32 %79, %87
  br i1 %88, label %89, label %94

89:                                               ; preds = %71
  %90 = load i32, ptr %16, align 4, !tbaa !10
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %16, align 4, !tbaa !10
  %92 = load i32, ptr %17, align 4, !tbaa !10
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %17, align 4, !tbaa !10
  br label %95

94:                                               ; preds = %71
  store i32 6, ptr %22, align 4
  br label %96

95:                                               ; preds = %89
  store i32 0, ptr %22, align 4
  br label %96

96:                                               ; preds = %95, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %97 = load i32, ptr %22, align 4
  switch i32 %97, label %157 [
    i32 0, label %98
    i32 6, label %100
  ]

98:                                               ; preds = %96
  br label %44

99:                                               ; preds = %50
  br label %100

100:                                              ; preds = %99, %96
  %101 = load i32, ptr %17, align 4, !tbaa !10
  %102 = getelementptr inbounds %struct.string__, ptr %9, i32 0, i32 1
  %103 = load i32, ptr %102, align 8, !tbaa !12
  %104 = icmp eq i32 %101, %103
  br i1 %104, label %105, label %130

105:                                              ; preds = %100
  %106 = load i32, ptr %13, align 4, !tbaa !10
  %107 = load i32, ptr %14, align 4, !tbaa !10
  %108 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8
  %110 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 1
  %111 = load i32, ptr %110, align 8
  %112 = call { ptr, i32 } @string__slice__(ptr %109, i32 %111, i32 noundef %106, i32 noundef %107)
  %113 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 0
  %114 = extractvalue { ptr, i32 } %112, 0
  store ptr %114, ptr %113, align 8
  %115 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 1
  %116 = extractvalue { ptr, i32 } %112, 1
  store i32 %116, ptr %115, align 8
  %117 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8
  %119 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 1
  %120 = load i32, ptr %119, align 8
  call void @StringBuilder__write__(ptr noundef %12, ptr %118, i32 %120)
  %121 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8
  %123 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 1
  %124 = load i32, ptr %123, align 8
  call void @StringBuilder__write__(ptr noundef %12, ptr %122, i32 %124)
  %125 = load i32, ptr %14, align 4, !tbaa !10
  %126 = getelementptr inbounds %struct.string__, ptr %9, i32 0, i32 1
  %127 = load i32, ptr %126, align 8, !tbaa !12
  %128 = add nsw i32 %125, %127
  store i32 %128, ptr %14, align 4, !tbaa !10
  %129 = load i32, ptr %14, align 4, !tbaa !10
  store i32 %129, ptr %13, align 4, !tbaa !10
  br label %133

130:                                              ; preds = %100
  %131 = load i32, ptr %14, align 4, !tbaa !10
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %14, align 4, !tbaa !10
  br label %133

133:                                              ; preds = %130, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %36

134:                                              ; preds = %41
  %135 = load i32, ptr %13, align 4, !tbaa !10
  %136 = getelementptr inbounds %struct.string__, ptr %8, i32 0, i32 1
  %137 = load i32, ptr %136, align 8, !tbaa !12
  %138 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8
  %140 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 1
  %141 = load i32, ptr %140, align 8
  %142 = call { ptr, i32 } @string__slice__(ptr %139, i32 %141, i32 noundef %135, i32 noundef %137)
  %143 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 0
  %144 = extractvalue { ptr, i32 } %142, 0
  store ptr %144, ptr %143, align 8
  %145 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 1
  %146 = extractvalue { ptr, i32 } %142, 1
  store i32 %146, ptr %145, align 8
  %147 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 0
  %148 = load ptr, ptr %147, align 8
  %149 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 1
  %150 = load i32, ptr %149, align 8
  call void @StringBuilder__write__(ptr noundef %12, ptr %148, i32 %150)
  %151 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef %12)
  %152 = getelementptr inbounds { ptr, i32 }, ptr %7, i32 0, i32 0
  %153 = extractvalue { ptr, i32 } %151, 0
  store ptr %153, ptr %152, align 8
  %154 = getelementptr inbounds { ptr, i32 }, ptr %7, i32 0, i32 1
  %155 = extractvalue { ptr, i32 } %151, 1
  store i32 %155, ptr %154, align 8
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  %156 = load { ptr, i32 }, ptr %7, align 8
  ret { ptr, i32 } %156

157:                                              ; preds = %96
  unreachable
}

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: write) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 = !{i64 0, i64 8, !6, i64 8, i64 4, !10, i64 12, i64 4, !10}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"", !7, i64 0, !11, i64 8}
!14 = !{!13, !7, i64 0}
!15 = !{!8, !8, i64 0}


; 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.tag_____StringBuilder__ = type { ptr, i32, i32 }

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
declare dso_local void @StringBuilder__write__(ptr noundef, ptr, i32) local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @string__replace__(ptr %0, i32 %1, ptr nocapture readonly %2, i32 %3, ptr %4, i32 %5) local_unnamed_addr #3 {
  %7 = alloca %struct.tag_____StringBuilder__, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %7, i8 0, i64 16, i1 false)
  %8 = sub nsw i32 %1, %3
  %.not49 = icmp slt i32 %8, 0
  br i1 %.not49, label %._crit_edge, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %6
  %9 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %smax = tail call i32 @llvm.smax.i32(i32 %3, i32 0)
  %wide.trip.count = zext nneg i32 %smax to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %32
  %.051 = phi i32 [ 0, %.preheader.lr.ph ], [ %.1, %32 ]
  %.02950 = phi i32 [ 0, %.preheader.lr.ph ], [ %.130, %32 ]
  br label %10

10:                                               ; preds = %.preheader, %15
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %15 ]
  %.031 = phi i32 [ %.02950, %.preheader ], [ %22, %15 ]
  %exitcond.not = icmp eq i64 %indvars.iv, %wide.trip.count
  br i1 %exitcond.not, label %.split.loop.exit53, label %11

11:                                               ; preds = %10
  %12 = icmp ult i32 %.031, %1
  br i1 %12, label %15, label %13

13:                                               ; preds = %11
  %14 = load ptr, ptr %9, align 8, !tbaa !5
  call void %14(i32 noundef -3) #5
  br label %15

15:                                               ; preds = %13, %11
  %16 = zext i32 %.031 to i64
  %17 = getelementptr inbounds i8, ptr %0, i64 %16
  %18 = load i8, ptr %17, align 1, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv
  %20 = load i8, ptr %19, align 1, !tbaa !9
  %21 = icmp eq i8 %18, %20
  %22 = add nsw i32 %.031, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br i1 %21, label %10, label %.split.loop.exit

.split.loop.exit:                                 ; preds = %15
  %23 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.split.loop.exit53

.split.loop.exit53:                               ; preds = %10, %.split.loop.exit
  %.033.lcssa = phi i32 [ %23, %.split.loop.exit ], [ %smax, %10 ]
  %24 = icmp eq i32 %.033.lcssa, %3
  br i1 %24, label %25, label %30

25:                                               ; preds = %.split.loop.exit53
  %26 = call { ptr, i32 } @string__slice__(ptr %0, i32 %1, i32 noundef %.051, i32 noundef %.02950)
  %27 = extractvalue { ptr, i32 } %26, 0
  %28 = extractvalue { ptr, i32 } %26, 1
  call void @StringBuilder__write__(ptr noundef nonnull %7, ptr %27, i32 %28)
  call void @StringBuilder__write__(ptr noundef nonnull %7, ptr %4, i32 %5)
  %29 = add nsw i32 %.02950, %3
  br label %32

30:                                               ; preds = %.split.loop.exit53
  %31 = add nsw i32 %.02950, 1
  br label %32

32:                                               ; preds = %30, %25
  %.130 = phi i32 [ %29, %25 ], [ %31, %30 ]
  %.1 = phi i32 [ %29, %25 ], [ %.051, %30 ]
  %.not = icmp sgt i32 %.130, %8
  br i1 %.not, label %._crit_edge, label %.preheader

._crit_edge:                                      ; preds = %32, %6
  %.0.lcssa = phi i32 [ 0, %6 ], [ %.1, %32 ]
  %33 = call { ptr, i32 } @string__slice__(ptr %0, i32 %1, i32 noundef %.0.lcssa, i32 noundef %1)
  %34 = extractvalue { ptr, i32 } %33, 0
  %35 = extractvalue { ptr, i32 } %33, 1
  call void @StringBuilder__write__(ptr noundef nonnull %7, ptr %34, i32 %35)
  %36 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef nonnull %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  ret { ptr, i32 } %36
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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}


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