; LLVM IR from DimitrisJim/leetcode_solutions :: C/Algorithms (1337)

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @cmpv(ptr noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @kWeakestRows(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  %19 = load i32, ptr %7, align 4, !tbaa !9
  %20 = zext i32 %19 to i64
  %21 = call ptr @llvm.stacksave.p0()
  store ptr %21, ptr %11, align 8
  %22 = alloca [2 x i32], i64 %20, align 16
  store i64 %20, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %61, %5
  %24 = load i32, ptr %13, align 4, !tbaa !9
  %25 = load i32, ptr %7, align 4, !tbaa !9
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %64

28:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %47, %28
  %30 = load i32, ptr %16, align 4, !tbaa !9
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = load i32, ptr %31, align 4, !tbaa !9
  %33 = icmp slt i32 %30, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %29
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %50

35:                                               ; preds = %29
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = load i32, ptr %13, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds ptr, ptr %36, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = load i32, ptr %16, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds i32, ptr %40, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !9
  %45 = load i32, ptr %15, align 4, !tbaa !9
  %46 = add nsw i32 %45, %44
  store i32 %46, ptr %15, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %35
  %48 = load i32, ptr %16, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %16, align 4, !tbaa !9
  br label %29, !llvm.loop !11

50:                                               ; preds = %34
  %51 = load i32, ptr %13, align 4, !tbaa !9
  %52 = load i32, ptr %13, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [2 x i32], ptr %22, i64 %53
  %55 = getelementptr inbounds [2 x i32], ptr %54, i64 0, i64 0
  store i32 %51, ptr %55, align 8, !tbaa !9
  %56 = load i32, ptr %15, align 4, !tbaa !9
  %57 = load i32, ptr %13, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [2 x i32], ptr %22, i64 %58
  %60 = getelementptr inbounds [2 x i32], ptr %59, i64 0, i64 1
  store i32 %56, ptr %60, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %61

61:                                               ; preds = %50
  %62 = load i32, ptr %13, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %13, align 4, !tbaa !9
  br label %23, !llvm.loop !13

64:                                               ; preds = %27
  %65 = load i32, ptr %7, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  call void @qsort(ptr noundef %22, i64 noundef %66, i64 noundef 8, ptr noundef @cmpv)
  %67 = load i32, ptr %9, align 4, !tbaa !9
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %67, ptr %68, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = mul i64 %70, 4
  %72 = call noalias ptr @malloc(i64 noundef %71) #6
  store ptr %72, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %88, %64
  %74 = load i32, ptr %18, align 4, !tbaa !9
  %75 = load i32, ptr %9, align 4, !tbaa !9
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %91

78:                                               ; preds = %73
  %79 = load i32, ptr %18, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [2 x i32], ptr %22, i64 %80
  %82 = getelementptr inbounds [2 x i32], ptr %81, i64 0, i64 0
  %83 = load i32, ptr %82, align 8, !tbaa !9
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  %85 = load i32, ptr %18, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i32, ptr %84, i64 %86
  store i32 %83, ptr %87, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %78
  %89 = load i32, ptr %18, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %18, align 4, !tbaa !9
  br label %73, !llvm.loop !14

91:                                               ; preds = %77
  %92 = load ptr, ptr %17, align 8, !tbaa !5
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  %93 = load ptr, ptr %11, align 8
  call void @llvm.stackrestore.p0(ptr %93)
  ret ptr %92
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { "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 allocsize(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 }
attributes #6 = { nounwind allocsize(0) }

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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

; Function Attrs: nounwind uwtable
declare dso_local i32 @cmpv(ptr noundef, ptr noundef) #0

; Function Attrs: nofree nounwind uwtable
define dso_local noalias noundef ptr @kWeakestRows(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #1 {
  %6 = zext i32 %1 to i64
  %7 = alloca [2 x i32], i64 %6, align 16
  %8 = icmp sgt i32 %1, 0
  br i1 %8, label %.preheader.lr.ph, label %._crit_edge33

.preheader.lr.ph:                                 ; preds = %5
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.preheader.us.preheader, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %min.iters.check = icmp ult i32 %1, 4
  br i1 %min.iters.check, label %.preheader.preheader85, label %vector.ph

.preheader.preheader85:                           ; preds = %middle.block, %.preheader.preheader
  %indvars.iv.ph = phi i64 [ 0, %.preheader.preheader ], [ %n.vec, %middle.block ]
  br label %.preheader

vector.ph:                                        ; preds = %.preheader.preheader
  %n.vec = and i64 %6, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i32> [ <i32 0, i32 1>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <2 x i32> %vec.ind, <i32 2, i32 2>
  %11 = or disjoint i64 %index, 2
  %12 = getelementptr inbounds [2 x i32], ptr %7, i64 %index
  %13 = getelementptr inbounds [2 x i32], ptr %7, i64 %11
  %interleaved.vec = shufflevector <2 x i32> %vec.ind, <2 x i32> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x i32> %interleaved.vec, ptr %12, align 16, !tbaa !5
  %interleaved.vec55 = shufflevector <2 x i32> %step.add, <2 x i32> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x i32> %interleaved.vec55, ptr %13, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %vec.ind.next = add <2 x i32> %vec.ind, <i32 4, i32 4>
  %14 = icmp eq i64 %index.next, %n.vec
  br i1 %14, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %6
  br i1 %cmp.n, label %._crit_edge33, label %.preheader.preheader85

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %wide.trip.count40 = zext nneg i32 %9 to i64
  %min.iters.check58 = icmp ult i32 %9, 8
  %n.vec61 = and i64 %wide.trip.count40, 2147483640
  %cmp.n68 = icmp eq i64 %n.vec61, %wide.trip.count40
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %indvars.iv42 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next43, %._crit_edge.us ]
  %15 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv42
  %16 = load ptr, ptr %15, align 8, !tbaa !13
  br i1 %min.iters.check58, label %scalar.ph57.preheader, label %vector.body63

vector.body63:                                    ; preds = %.preheader.us, %vector.body63
  %index64 = phi i64 [ %index.next67, %vector.body63 ], [ 0, %.preheader.us ]
  %vec.phi = phi <4 x i32> [ %19, %vector.body63 ], [ zeroinitializer, %.preheader.us ]
  %vec.phi65 = phi <4 x i32> [ %20, %vector.body63 ], [ zeroinitializer, %.preheader.us ]
  %17 = getelementptr inbounds i32, ptr %16, i64 %index64
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  %wide.load = load <4 x i32>, ptr %17, align 4, !tbaa !5
  %wide.load66 = load <4 x i32>, ptr %18, align 4, !tbaa !5
  %19 = add <4 x i32> %wide.load, %vec.phi
  %20 = add <4 x i32> %wide.load66, %vec.phi65
  %index.next67 = add nuw i64 %index64, 8
  %21 = icmp eq i64 %index.next67, %n.vec61
  br i1 %21, label %middle.block56, label %vector.body63, !llvm.loop !15

middle.block56:                                   ; preds = %vector.body63
  %bin.rdx = add <4 x i32> %20, %19
  %22 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br i1 %cmp.n68, label %._crit_edge.us, label %scalar.ph57.preheader

scalar.ph57.preheader:                            ; preds = %middle.block56, %.preheader.us
  %indvars.iv37.ph = phi i64 [ 0, %.preheader.us ], [ %n.vec61, %middle.block56 ]
  %.02830.us.ph = phi i32 [ 0, %.preheader.us ], [ %22, %middle.block56 ]
  br label %scalar.ph57

scalar.ph57:                                      ; preds = %scalar.ph57.preheader, %scalar.ph57
  %indvars.iv37 = phi i64 [ %indvars.iv.next38, %scalar.ph57 ], [ %indvars.iv37.ph, %scalar.ph57.preheader ]
  %.02830.us = phi i32 [ %25, %scalar.ph57 ], [ %.02830.us.ph, %scalar.ph57.preheader ]
  %23 = getelementptr inbounds i32, ptr %16, i64 %indvars.iv37
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = add nsw i32 %24, %.02830.us
  %indvars.iv.next38 = add nuw nsw i64 %indvars.iv37, 1
  %exitcond41.not = icmp eq i64 %indvars.iv.next38, %wide.trip.count40
  br i1 %exitcond41.not, label %._crit_edge.us, label %scalar.ph57, !llvm.loop !16

._crit_edge.us:                                   ; preds = %scalar.ph57, %middle.block56
  %.lcssa = phi i32 [ %22, %middle.block56 ], [ %25, %scalar.ph57 ]
  %26 = getelementptr inbounds [2 x i32], ptr %7, i64 %indvars.iv42
  %27 = trunc nuw nsw i64 %indvars.iv42 to i32
  store i32 %27, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %26, i64 4
  store i32 %.lcssa, ptr %28, align 4, !tbaa !5
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  %exitcond46.not = icmp eq i64 %indvars.iv.next43, %6
  br i1 %exitcond46.not, label %._crit_edge33, label %.preheader.us, !llvm.loop !17

.preheader:                                       ; preds = %.preheader.preheader85, %.preheader
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader ], [ %indvars.iv.ph, %.preheader.preheader85 ]
  %29 = getelementptr inbounds [2 x i32], ptr %7, i64 %indvars.iv
  %30 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %30, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %29, i64 4
  store i32 0, ptr %31, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %6
  br i1 %exitcond.not, label %._crit_edge33, label %.preheader, !llvm.loop !18

._crit_edge33:                                    ; preds = %.preheader, %._crit_edge.us, %middle.block, %5
  %32 = sext i32 %1 to i64
  call void @qsort(ptr noundef nonnull %7, i64 noundef %32, i64 noundef 8, ptr noundef nonnull @cmpv) #5
  store i32 %3, ptr %4, align 4, !tbaa !5
  %33 = sext i32 %3 to i64
  %34 = shl nsw i64 %33, 2
  %35 = call noalias ptr @malloc(i64 noundef %34) #6
  %36 = icmp sgt i32 %3, 0
  br i1 %36, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %._crit_edge33
  %wide.trip.count50 = zext nneg i32 %3 to i64
  %min.iters.check71 = icmp ult i32 %3, 9
  br i1 %min.iters.check71, label %.lr.ph.preheader81, label %vector.ph72

.lr.ph.preheader81:                               ; preds = %vector.body76, %.lr.ph.preheader
  %indvars.iv47.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec74, %vector.body76 ]
  br label %.lr.ph

vector.ph72:                                      ; preds = %.lr.ph.preheader
  %n.mod.vf73 = and i64 %wide.trip.count50, 7
  %37 = icmp eq i64 %n.mod.vf73, 0
  %38 = select i1 %37, i64 8, i64 %n.mod.vf73
  %n.vec74 = sub nsw i64 %wide.trip.count50, %38
  br label %vector.body76

vector.body76:                                    ; preds = %vector.body76, %vector.ph72
  %index77 = phi i64 [ 0, %vector.ph72 ], [ %index.next80, %vector.body76 ]
  %39 = or disjoint i64 %index77, 4
  %40 = getelementptr inbounds [2 x i32], ptr %7, i64 %index77
  %41 = getelementptr inbounds [2 x i32], ptr %7, i64 %39
  %wide.vec = load <8 x i32>, ptr %40, align 16, !tbaa !5
  %wide.vec78 = load <8 x i32>, ptr %41, align 16, !tbaa !5
  %strided.vec = shufflevector <8 x i32> %wide.vec, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec79 = shufflevector <8 x i32> %wide.vec78, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %42 = getelementptr inbounds i32, ptr %35, i64 %index77
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  store <4 x i32> %strided.vec, ptr %42, align 4, !tbaa !5
  store <4 x i32> %strided.vec79, ptr %43, align 4, !tbaa !5
  %index.next80 = add nuw i64 %index77, 8
  %44 = icmp eq i64 %index.next80, %n.vec74
  br i1 %44, label %.lr.ph.preheader81, label %vector.body76, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph, %._crit_edge33
  ret ptr %35

.lr.ph:                                           ; preds = %.lr.ph.preheader81, %.lr.ph
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %.lr.ph ], [ %indvars.iv47.ph, %.lr.ph.preheader81 ]
  %45 = getelementptr inbounds [2 x i32], ptr %7, i64 %indvars.iv47
  %46 = load i32, ptr %45, align 8, !tbaa !5
  %47 = getelementptr inbounds i32, ptr %35, i64 %indvars.iv47
  store i32 %46, ptr %47, align 4, !tbaa !5
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %exitcond51.not = icmp eq i64 %indvars.iv.next48, %wide.trip.count50
  br i1 %exitcond51.not, label %._crit_edge, label %.lr.ph, !llvm.loop !20
}

; Function Attrs: nofree
declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

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

attributes #0 = { 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 #1 = { nofree 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 = { nofree "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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !10, !11, !12}
!16 = distinct !{!16, !10, !12, !11}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10, !12, !11}
!19 = distinct !{!19, !10, !11, !12}
!20 = distinct !{!20, !10, !12, !11}


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