; LLVM IR from HarshCasper/NeoAlgo :: C/graphs (Kruskal_Algorithm)

; 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.edge_list = type { [30 x %struct.edge], i32 }
%struct.edge = type { i32, i32, i32 }

@elist = external dso_local global %struct.edge_list, align 4
@n = external dso_local global i32, align 4
@Graph = external dso_local global [30 x [30 x i32]], align 16
@spanlist = external dso_local global %struct.edge_list, align 4

; Function Attrs: nounwind uwtable
define dso_local void @kruskalAlgo() #0 {
  %1 = alloca [30 x i32], align 16
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 120, ptr %1) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr getelementptr inbounds (%struct.edge_list, ptr @elist, i32 0, i32 1), align 4, !tbaa !5
  store i32 1, ptr %2, align 4, !tbaa !10
  br label %6

6:                                                ; preds = %53, %0
  %7 = load i32, ptr %2, align 4, !tbaa !10
  %8 = load i32, ptr @n, align 4, !tbaa !10
  %9 = icmp slt i32 %7, %8
  br i1 %9, label %10, label %56

10:                                               ; preds = %6
  store i32 0, ptr %3, align 4, !tbaa !10
  br label %11

11:                                               ; preds = %49, %10
  %12 = load i32, ptr %3, align 4, !tbaa !10
  %13 = load i32, ptr %2, align 4, !tbaa !10
  %14 = icmp slt i32 %12, %13
  br i1 %14, label %15, label %52

15:                                               ; preds = %11
  %16 = load i32, ptr %2, align 4, !tbaa !10
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [30 x [30 x i32]], ptr @Graph, i64 0, i64 %17
  %19 = load i32, ptr %3, align 4, !tbaa !10
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [30 x i32], ptr %18, i64 0, i64 %20
  %22 = load i32, ptr %21, align 4, !tbaa !10
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %48

24:                                               ; preds = %15
  %25 = load i32, ptr %2, align 4, !tbaa !10
  %26 = load i32, ptr getelementptr inbounds (%struct.edge_list, ptr @elist, i32 0, i32 1), align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [30 x %struct.edge], ptr @elist, i64 0, i64 %27
  %29 = getelementptr inbounds %struct.edge, ptr %28, i32 0, i32 0
  store i32 %25, ptr %29, align 4, !tbaa !11
  %30 = load i32, ptr %3, align 4, !tbaa !10
  %31 = load i32, ptr getelementptr inbounds (%struct.edge_list, ptr @elist, i32 0, i32 1), align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [30 x %struct.edge], ptr @elist, i64 0, i64 %32
  %34 = getelementptr inbounds %struct.edge, ptr %33, i32 0, i32 1
  store i32 %30, ptr %34, align 4, !tbaa !13
  %35 = load i32, ptr %2, align 4, !tbaa !10
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [30 x [30 x i32]], ptr @Graph, i64 0, i64 %36
  %38 = load i32, ptr %3, align 4, !tbaa !10
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [30 x i32], ptr %37, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !10
  %42 = load i32, ptr getelementptr inbounds (%struct.edge_list, ptr @elist, i32 0, i32 1), align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [30 x %struct.edge], ptr @elist, i64 0, i64 %43
  %45 = getelementptr inbounds %struct.edge, ptr %44, i32 0, i32 2
  store i32 %41, ptr %45, align 4, !tbaa !14
  %46 = load i32, ptr getelementptr inbounds (%struct.edge_list, ptr @elist, i32 0, i32 1), align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr getelementptr inbounds (%struct.edge_list, ptr @elist, i32 0, i32 1), align 4, !tbaa !5
  br label %48

48:                                               ; preds = %24, %15
  br label %49

49:                                               ; preds = %48
  %50 = load i32, ptr %3, align 4, !tbaa !10
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %3, align 4, !tbaa !10
  br label %11, !llvm.loop !15

52:                                               ; preds = %11
  br label %53

53:                                               ; preds = %52
  %54 = load i32, ptr %2, align 4, !tbaa !10
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %2, align 4, !tbaa !10
  br label %6, !llvm.loop !17

56:                                               ; preds = %6
  call void @sort()
  store i32 0, ptr %2, align 4, !tbaa !10
  br label %57

57:                                               ; preds = %66, %56
  %58 = load i32, ptr %2, align 4, !tbaa !10
  %59 = load i32, ptr @n, align 4, !tbaa !10
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %61, label %69

61:                                               ; preds = %57
  %62 = load i32, ptr %2, align 4, !tbaa !10
  %63 = load i32, ptr %2, align 4, !tbaa !10
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [30 x i32], ptr %1, i64 0, i64 %64
  store i32 %62, ptr %65, align 4, !tbaa !10
  br label %66

66:                                               ; preds = %61
  %67 = load i32, ptr %2, align 4, !tbaa !10
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %2, align 4, !tbaa !10
  br label %57, !llvm.loop !18

69:                                               ; preds = %57
  store i32 0, ptr getelementptr inbounds (%struct.edge_list, ptr @spanlist, i32 0, i32 1), align 4, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !10
  br label %70

70:                                               ; preds = %105, %69
  %71 = load i32, ptr %2, align 4, !tbaa !10
  %72 = load i32, ptr getelementptr inbounds (%struct.edge_list, ptr @elist, i32 0, i32 1), align 4, !tbaa !5
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %74, label %108

74:                                               ; preds = %70
  %75 = getelementptr inbounds [30 x i32], ptr %1, i64 0, i64 0
  %76 = load i32, ptr %2, align 4, !tbaa !10
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [30 x %struct.edge], ptr @elist, i64 0, i64 %77
  %79 = getelementptr inbounds %struct.edge, ptr %78, i32 0, i32 0
  %80 = load i32, ptr %79, align 4, !tbaa !11
  %81 = call i32 @find(ptr noundef %75, i32 noundef %80)
  store i32 %81, ptr %4, align 4, !tbaa !10
  %82 = getelementptr inbounds [30 x i32], ptr %1, i64 0, i64 0
  %83 = load i32, ptr %2, align 4, !tbaa !10
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [30 x %struct.edge], ptr @elist, i64 0, i64 %84
  %86 = getelementptr inbounds %struct.edge, ptr %85, i32 0, i32 1
  %87 = load i32, ptr %86, align 4, !tbaa !13
  %88 = call i32 @find(ptr noundef %82, i32 noundef %87)
  store i32 %88, ptr %5, align 4, !tbaa !10
  %89 = load i32, ptr %4, align 4, !tbaa !10
  %90 = load i32, ptr %5, align 4, !tbaa !10
  %91 = icmp ne i32 %89, %90
  br i1 %91, label %92, label %104

92:                                               ; preds = %74
  %93 = load i32, ptr getelementptr inbounds (%struct.edge_list, ptr @spanlist, i32 0, i32 1), align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [30 x %struct.edge], ptr @spanlist, i64 0, i64 %94
  %96 = load i32, ptr %2, align 4, !tbaa !10
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [30 x %struct.edge], ptr @elist, i64 0, i64 %97
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %95, ptr align 4 %98, i64 12, i1 false), !tbaa.struct !19
  %99 = load i32, ptr getelementptr inbounds (%struct.edge_list, ptr @spanlist, i32 0, i32 1), align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr getelementptr inbounds (%struct.edge_list, ptr @spanlist, i32 0, i32 1), align 4, !tbaa !5
  %101 = getelementptr inbounds [30 x i32], ptr %1, i64 0, i64 0
  %102 = load i32, ptr %4, align 4, !tbaa !10
  %103 = load i32, ptr %5, align 4, !tbaa !10
  call void @applyUnion(ptr noundef %101, i32 noundef %102, i32 noundef %103)
  br label %104

104:                                              ; preds = %92, %74
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %2, align 4, !tbaa !10
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %2, align 4, !tbaa !10
  br label %70, !llvm.loop !20

108:                                              ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 120, ptr %1) #3
  ret void
}

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @find(ptr noundef, i32 noundef) #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 void @applyUnion(ptr noundef, i32 noundef, i32 noundef) #0

; 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
declare dso_local void @sort() #0

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 nounwind willreturn memory(argmem: readwrite) }
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, !9, i64 360}
!6 = !{!"edge_list", !7, i64 0, !9, i64 360}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!9, !9, i64 0}
!11 = !{!12, !9, i64 0}
!12 = !{!"edge", !9, i64 0, !9, i64 4, !9, i64 8}
!13 = !{!12, !9, i64 4}
!14 = !{!12, !9, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10}
!20 = distinct !{!20, !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.edge_list = type { [30 x %struct.edge], i32 }
%struct.edge = type { i32, i32, i32 }

@elist = external dso_local local_unnamed_addr global %struct.edge_list, align 4
@n = external dso_local local_unnamed_addr global i32, align 4
@Graph = external dso_local local_unnamed_addr global [30 x [30 x i32]], align 16
@spanlist = external dso_local local_unnamed_addr global %struct.edge_list, align 4

; Function Attrs: nounwind uwtable
define dso_local void @kruskalAlgo() local_unnamed_addr #0 {
  %1 = alloca [30 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %1) #3
  store i32 0, ptr getelementptr inbounds (i8, ptr @elist, i64 360), align 4, !tbaa !5
  %2 = load i32, ptr @n, align 4, !tbaa !10
  %3 = icmp sgt i32 %2, 1
  br i1 %3, label %.preheader.preheader, label %._crit_edge

.preheader.preheader:                             ; preds = %0
  %wide.trip.count46 = zext nneg i32 %2 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %18
  %indvars.iv43 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next44, %18 ]
  %.promoted3233 = phi i32 [ 0, %.preheader.preheader ], [ %.promoted30, %18 ]
  %4 = trunc nuw nsw i64 %indvars.iv43 to i32
  br label %5

5:                                                ; preds = %.preheader, %16
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %16 ]
  %.promoted31 = phi i32 [ %.promoted3233, %.preheader ], [ %.promoted30, %16 ]
  %6 = phi i32 [ %.promoted3233, %.preheader ], [ %17, %16 ]
  %7 = getelementptr inbounds [30 x [30 x i32]], ptr @Graph, i64 0, i64 %indvars.iv43, i64 %indvars.iv
  %8 = load i32, ptr %7, align 4, !tbaa !10
  %.not27 = icmp eq i32 %8, 0
  br i1 %.not27, label %16, label %9

9:                                                ; preds = %5
  %10 = sext i32 %6 to i64
  %11 = getelementptr inbounds [30 x %struct.edge], ptr @elist, i64 0, i64 %10
  store i32 %4, ptr %11, align 4, !tbaa !11
  %12 = getelementptr inbounds [30 x %struct.edge], ptr @elist, i64 0, i64 %10, i32 1
  %13 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %13, ptr %12, align 4, !tbaa !13
  %14 = getelementptr inbounds [30 x %struct.edge], ptr @elist, i64 0, i64 %10, i32 2
  store i32 %8, ptr %14, align 4, !tbaa !14
  %15 = add nsw i32 %6, 1
  store i32 %15, ptr getelementptr inbounds (i8, ptr @elist, i64 360), align 4, !tbaa !5
  br label %16

16:                                               ; preds = %5, %9
  %.promoted30 = phi i32 [ %.promoted31, %5 ], [ %15, %9 ]
  %17 = phi i32 [ %6, %5 ], [ %15, %9 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv43
  br i1 %exitcond.not, label %18, label %5, !llvm.loop !15

18:                                               ; preds = %16
  %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
  %exitcond47.not = icmp eq i64 %indvars.iv.next44, %wide.trip.count46
  br i1 %exitcond47.not, label %._crit_edge, label %.preheader, !llvm.loop !17

._crit_edge:                                      ; preds = %18, %0
  tail call void @sort()
  %19 = load i32, ptr @n, align 4, !tbaa !10
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph.preheader, label %._crit_edge37

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

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %21 = getelementptr inbounds [30 x i32], ptr %1, i64 0, i64 %index
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  store <4 x i32> %vec.ind, ptr %21, align 16, !tbaa !10
  store <4 x i32> %step.add, ptr %22, align 16, !tbaa !10
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %23 = icmp eq i64 %index.next, %n.vec
  br i1 %23, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge37, label %.lr.ph.preheader56

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

.lr.ph:                                           ; preds = %.lr.ph.preheader56, %.lr.ph
  %indvars.iv48 = phi i64 [ %indvars.iv.next49, %.lr.ph ], [ %indvars.iv48.ph, %.lr.ph.preheader56 ]
  %24 = getelementptr inbounds [30 x i32], ptr %1, i64 0, i64 %indvars.iv48
  %25 = trunc nuw nsw i64 %indvars.iv48 to i32
  store i32 %25, ptr %24, align 4, !tbaa !10
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %exitcond51.not = icmp eq i64 %indvars.iv.next49, %wide.trip.count
  br i1 %exitcond51.not, label %._crit_edge37, label %.lr.ph, !llvm.loop !21

._crit_edge37:                                    ; preds = %.lr.ph, %middle.block, %._crit_edge
  store i32 0, ptr getelementptr inbounds (i8, ptr @spanlist, i64 360), align 4, !tbaa !5
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @elist, i64 360), align 4, !tbaa !5
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.lr.ph40, label %._crit_edge41

.lr.ph40:                                         ; preds = %._crit_edge37, %40
  %indvars.iv52 = phi i64 [ %indvars.iv.next53, %40 ], [ 0, %._crit_edge37 ]
  %28 = getelementptr inbounds [30 x %struct.edge], ptr @elist, i64 0, i64 %indvars.iv52
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = call i32 @find(ptr noundef nonnull %1, i32 noundef %29)
  %31 = getelementptr inbounds i8, ptr %28, i64 4
  %32 = load i32, ptr %31, align 4, !tbaa !13
  %33 = call i32 @find(ptr noundef nonnull %1, i32 noundef %32)
  %.not = icmp eq i32 %30, %33
  br i1 %.not, label %40, label %34

34:                                               ; preds = %.lr.ph40
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @spanlist, i64 360), align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [30 x %struct.edge], ptr @spanlist, i64 0, i64 %36
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %28, i64 12, i1 false), !tbaa.struct !22
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @spanlist, i64 360), align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr getelementptr inbounds (i8, ptr @spanlist, i64 360), align 4, !tbaa !5
  call void @applyUnion(ptr noundef nonnull %1, i32 noundef %30, i32 noundef %33)
  br label %40

40:                                               ; preds = %.lr.ph40, %34
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %41 = load i32, ptr getelementptr inbounds (i8, ptr @elist, i64 360), align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next53, %42
  br i1 %43, label %.lr.ph40, label %._crit_edge41, !llvm.loop !23

._crit_edge41:                                    ; preds = %40, %._crit_edge37
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %1) #3
  ret void
}

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @sort() local_unnamed_addr #0

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !9, i64 360}
!6 = !{!"edge_list", !7, i64 0, !9, i64 360}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!9, !9, i64 0}
!11 = !{!12, !9, i64 0}
!12 = !{!"edge", !9, i64 0, !9, i64 4, !9, i64 8}
!13 = !{!12, !9, i64 4}
!14 = !{!12, !9, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16, !19, !20}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !16, !20, !19}
!22 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10}
!23 = distinct !{!23, !16}


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