; LLVM IR from TyrantLucifer/DataStructure :: Graph/C (Kruskal)

; 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.Graph = type { ptr, ptr, i32, i32 }
%struct.Edge = type { i32, i32, i32 }

@.str = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @initEdge(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: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; 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 @sortEdge(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @kruskal(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.Graph, ptr %11, i32 0, i32 2
  %13 = load i32, ptr %12, align 8, !tbaa !9
  %14 = sext i32 %13 to i64
  %15 = mul i64 4, %14
  %16 = call noalias ptr @malloc(i64 noundef %15) #5
  store ptr %16, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !12
  br label %17

17:                                               ; preds = %30, %1
  %18 = load i32, ptr %4, align 4, !tbaa !12
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.Graph, ptr %19, i32 0, i32 2
  %21 = load i32, ptr %20, align 8, !tbaa !9
  %22 = icmp slt i32 %18, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %33

24:                                               ; preds = %17
  %25 = load i32, ptr %4, align 4, !tbaa !12
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = load i32, ptr %4, align 4, !tbaa !12
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds i32, ptr %26, i64 %28
  store i32 %25, ptr %29, align 4, !tbaa !12
  br label %30

30:                                               ; preds = %24
  %31 = load i32, ptr %4, align 4, !tbaa !12
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %4, align 4, !tbaa !12
  br label %17, !llvm.loop !13

33:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = call ptr @initEdge(ptr noundef %34)
  store ptr %35, ptr %5, align 8, !tbaa !5
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  call void @sortEdge(ptr noundef %36, ptr noundef %37)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !12
  br label %38

38:                                               ; preds = %130, %33
  %39 = load i32, ptr %6, align 4, !tbaa !12
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.Graph, ptr %40, i32 0, i32 3
  %42 = load i32, ptr %41, align 4, !tbaa !15
  %43 = icmp slt i32 %39, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %38
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %133

45:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = load i32, ptr %6, align 4, !tbaa !12
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds %struct.Edge, ptr %47, i64 %49
  %51 = getelementptr inbounds %struct.Edge, ptr %50, i32 0, i32 0
  %52 = load i32, ptr %51, align 4, !tbaa !16
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i32, ptr %46, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !12
  store i32 %55, ptr %8, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = load i32, ptr %6, align 4, !tbaa !12
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds %struct.Edge, ptr %57, i64 %59
  %61 = getelementptr inbounds %struct.Edge, ptr %60, i32 0, i32 1
  %62 = load i32, ptr %61, align 4, !tbaa !18
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds i32, ptr %56, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !12
  store i32 %65, ptr %9, align 4, !tbaa !12
  %66 = load i32, ptr %8, align 4, !tbaa !12
  %67 = load i32, ptr %9, align 4, !tbaa !12
  %68 = icmp ne i32 %66, %67
  br i1 %68, label %69, label %129

69:                                               ; preds = %45
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.Graph, ptr %70, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !19
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = load i32, ptr %6, align 4, !tbaa !12
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds %struct.Edge, ptr %73, i64 %75
  %77 = getelementptr inbounds %struct.Edge, ptr %76, i32 0, i32 0
  %78 = load i32, ptr %77, align 4, !tbaa !16
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i8, ptr %72, i64 %79
  %81 = load i8, ptr %80, align 1, !tbaa !20
  %82 = sext i8 %81 to i32
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.Graph, ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !19
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = load i32, ptr %6, align 4, !tbaa !12
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds %struct.Edge, ptr %86, i64 %88
  %90 = getelementptr inbounds %struct.Edge, ptr %89, i32 0, i32 1
  %91 = load i32, ptr %90, align 4, !tbaa !18
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %85, i64 %92
  %94 = load i8, ptr %93, align 1, !tbaa !20
  %95 = sext i8 %94 to i32
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = load i32, ptr %6, align 4, !tbaa !12
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds %struct.Edge, ptr %96, i64 %98
  %100 = getelementptr inbounds %struct.Edge, ptr %99, i32 0, i32 2
  %101 = load i32, ptr %100, align 4, !tbaa !21
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %82, i32 noundef %95, i32 noundef %101)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !12
  br label %103

103:                                              ; preds = %125, %69
  %104 = load i32, ptr %10, align 4, !tbaa !12
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.Graph, ptr %105, i32 0, i32 2
  %107 = load i32, ptr %106, align 8, !tbaa !9
  %108 = icmp slt i32 %104, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %103
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %128

110:                                              ; preds = %103
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = load i32, ptr %10, align 4, !tbaa !12
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds i32, ptr %111, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !12
  %116 = load i32, ptr %9, align 4, !tbaa !12
  %117 = icmp eq i32 %115, %116
  br i1 %117, label %118, label %124

118:                                              ; preds = %110
  %119 = load i32, ptr %8, align 4, !tbaa !12
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = load i32, ptr %10, align 4, !tbaa !12
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i32, ptr %120, i64 %122
  store i32 %119, ptr %123, align 4, !tbaa !12
  br label %124

124:                                              ; preds = %118, %110
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %10, align 4, !tbaa !12
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %10, align 4, !tbaa !12
  br label %103, !llvm.loop !22

128:                                              ; preds = %109
  br label %129

129:                                              ; preds = %128, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %6, align 4, !tbaa !12
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %6, align 4, !tbaa !12
  br label %38, !llvm.loop !23

133:                                              ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

declare i32 @printf(ptr noundef, ...) #3

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 = { 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 #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 }
attributes #5 = { 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, !11, i64 16}
!10 = !{!"Graph", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!10, !11, i64 20}
!16 = !{!17, !11, i64 0}
!17 = !{!"Edge", !11, i64 0, !11, i64 4, !11, i64 8}
!18 = !{!17, !11, i64 4}
!19 = !{!10, !6, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{!17, !11, i64 8}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}


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

@.str = external hidden unnamed_addr constant [25 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @kruskal(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 16
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = sext i32 %3 to i64
  %5 = shl nsw i64 %4, 2
  %6 = tail call noalias ptr @malloc(i64 noundef %5) #3
  %7 = icmp sgt i32 %3, 0
  br i1 %7, label %.lr.ph.preheader, label %._crit_edge

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

.lr.ph.preheader86:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.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>
  %8 = getelementptr inbounds i32, ptr %6, i64 %index
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  store <4 x i32> %vec.ind, ptr %8, align 4, !tbaa !11
  store <4 x i32> %step.add, ptr %9, align 4, !tbaa !11
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %10 = icmp eq i64 %index.next, %n.vec
  br i1 %10, label %middle.block, label %vector.body, !llvm.loop !12

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

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %1
  %11 = tail call ptr @initEdge(ptr noundef %0)
  tail call void @sortEdge(ptr noundef %11, ptr noundef %0)
  %12 = getelementptr inbounds i8, ptr %0, i64 20
  %13 = load i32, ptr %12, align 4, !tbaa !16
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph47, label %._crit_edge48

.lr.ph:                                           ; preds = %.lr.ph.preheader86, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader86 ]
  %15 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv
  %16 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %16, ptr %15, align 4, !tbaa !11
  %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 !17

._crit_edge48:                                    ; preds = %.loopexit, %._crit_edge
  ret void

.lr.ph47:                                         ; preds = %._crit_edge, %.loopexit
  %indvars.iv55 = phi i64 [ %indvars.iv.next56, %.loopexit ], [ 0, %._crit_edge ]
  %17 = getelementptr inbounds %struct.Edge, ptr %11, i64 %indvars.iv55
  %18 = load i32, ptr %17, align 4, !tbaa !18
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds i32, ptr %6, i64 %19
  %21 = load i32, ptr %20, align 4, !tbaa !11
  %22 = getelementptr inbounds i8, ptr %17, i64 4
  %23 = load i32, ptr %22, align 4, !tbaa !20
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds i32, ptr %6, i64 %24
  %26 = load i32, ptr %25, align 4, !tbaa !11
  %.not = icmp eq i32 %21, %26
  br i1 %.not, label %.loopexit, label %27

27:                                               ; preds = %.lr.ph47
  %28 = load ptr, ptr %0, align 8, !tbaa !21
  %29 = getelementptr inbounds i8, ptr %28, i64 %19
  %30 = load i8, ptr %29, align 1, !tbaa !22
  %31 = sext i8 %30 to i32
  %32 = getelementptr inbounds i8, ptr %28, i64 %24
  %33 = load i8, ptr %32, align 1, !tbaa !22
  %34 = sext i8 %33 to i32
  %35 = getelementptr inbounds i8, ptr %17, i64 8
  %36 = load i32, ptr %35, align 4, !tbaa !23
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %31, i32 noundef %34, i32 noundef %36)
  %38 = load i32, ptr %2, align 8, !tbaa !5
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %.lr.ph44.preheader, label %.loopexit

.lr.ph44.preheader:                               ; preds = %27
  %wide.trip.count53 = zext nneg i32 %38 to i64
  %min.iters.check61 = icmp ult i32 %38, 8
  br i1 %min.iters.check61, label %.lr.ph44.preheader85, label %vector.ph62

vector.ph62:                                      ; preds = %.lr.ph44.preheader
  %n.vec64 = and i64 %wide.trip.count53, 2147483640
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %26, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body66

vector.body66:                                    ; preds = %pred.store.continue82, %vector.ph62
  %index67 = phi i64 [ 0, %vector.ph62 ], [ %index.next83, %pred.store.continue82 ]
  %40 = or disjoint i64 %index67, 4
  %41 = getelementptr inbounds i32, ptr %6, i64 %index67
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  %wide.load = load <4 x i32>, ptr %41, align 4, !tbaa !11
  %wide.load68 = load <4 x i32>, ptr %42, align 4, !tbaa !11
  %43 = icmp eq <4 x i32> %wide.load, %broadcast.splat
  %44 = icmp eq <4 x i32> %wide.load68, %broadcast.splat
  %45 = extractelement <4 x i1> %43, i64 0
  br i1 %45, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body66
  %46 = getelementptr inbounds i32, ptr %6, i64 %index67
  store i32 %21, ptr %46, align 4, !tbaa !11
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body66
  %47 = extractelement <4 x i1> %43, i64 1
  br i1 %47, label %pred.store.if69, label %pred.store.continue70

pred.store.if69:                                  ; preds = %pred.store.continue
  %48 = or disjoint i64 %index67, 1
  %49 = getelementptr inbounds i32, ptr %6, i64 %48
  store i32 %21, ptr %49, align 4, !tbaa !11
  br label %pred.store.continue70

pred.store.continue70:                            ; preds = %pred.store.if69, %pred.store.continue
  %50 = extractelement <4 x i1> %43, i64 2
  br i1 %50, label %pred.store.if71, label %pred.store.continue72

pred.store.if71:                                  ; preds = %pred.store.continue70
  %51 = or disjoint i64 %index67, 2
  %52 = getelementptr inbounds i32, ptr %6, i64 %51
  store i32 %21, ptr %52, align 4, !tbaa !11
  br label %pred.store.continue72

pred.store.continue72:                            ; preds = %pred.store.if71, %pred.store.continue70
  %53 = extractelement <4 x i1> %43, i64 3
  br i1 %53, label %pred.store.if73, label %pred.store.continue74

pred.store.if73:                                  ; preds = %pred.store.continue72
  %54 = or disjoint i64 %index67, 3
  %55 = getelementptr inbounds i32, ptr %6, i64 %54
  store i32 %21, ptr %55, align 4, !tbaa !11
  br label %pred.store.continue74

pred.store.continue74:                            ; preds = %pred.store.if73, %pred.store.continue72
  %56 = extractelement <4 x i1> %44, i64 0
  br i1 %56, label %pred.store.if75, label %pred.store.continue76

pred.store.if75:                                  ; preds = %pred.store.continue74
  %57 = getelementptr inbounds i32, ptr %6, i64 %40
  store i32 %21, ptr %57, align 4, !tbaa !11
  br label %pred.store.continue76

pred.store.continue76:                            ; preds = %pred.store.if75, %pred.store.continue74
  %58 = extractelement <4 x i1> %44, i64 1
  br i1 %58, label %pred.store.if77, label %pred.store.continue78

pred.store.if77:                                  ; preds = %pred.store.continue76
  %59 = or disjoint i64 %index67, 5
  %60 = getelementptr inbounds i32, ptr %6, i64 %59
  store i32 %21, ptr %60, align 4, !tbaa !11
  br label %pred.store.continue78

pred.store.continue78:                            ; preds = %pred.store.if77, %pred.store.continue76
  %61 = extractelement <4 x i1> %44, i64 2
  br i1 %61, label %pred.store.if79, label %pred.store.continue80

pred.store.if79:                                  ; preds = %pred.store.continue78
  %62 = or disjoint i64 %index67, 6
  %63 = getelementptr inbounds i32, ptr %6, i64 %62
  store i32 %21, ptr %63, align 4, !tbaa !11
  br label %pred.store.continue80

pred.store.continue80:                            ; preds = %pred.store.if79, %pred.store.continue78
  %64 = extractelement <4 x i1> %44, i64 3
  br i1 %64, label %pred.store.if81, label %pred.store.continue82

pred.store.if81:                                  ; preds = %pred.store.continue80
  %65 = or disjoint i64 %index67, 7
  %66 = getelementptr inbounds i32, ptr %6, i64 %65
  store i32 %21, ptr %66, align 4, !tbaa !11
  br label %pred.store.continue82

pred.store.continue82:                            ; preds = %pred.store.if81, %pred.store.continue80
  %index.next83 = add nuw i64 %index67, 8
  %67 = icmp eq i64 %index.next83, %n.vec64
  br i1 %67, label %middle.block59, label %vector.body66, !llvm.loop !24

middle.block59:                                   ; preds = %pred.store.continue82
  %cmp.n84 = icmp eq i64 %n.vec64, %wide.trip.count53
  br i1 %cmp.n84, label %.loopexit, label %.lr.ph44.preheader85

.lr.ph44.preheader85:                             ; preds = %middle.block59, %.lr.ph44.preheader
  %indvars.iv50.ph = phi i64 [ 0, %.lr.ph44.preheader ], [ %n.vec64, %middle.block59 ]
  br label %.lr.ph44

.lr.ph44:                                         ; preds = %.lr.ph44.preheader85, %72
  %indvars.iv50 = phi i64 [ %indvars.iv.next51, %72 ], [ %indvars.iv50.ph, %.lr.ph44.preheader85 ]
  %68 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv50
  %69 = load i32, ptr %68, align 4, !tbaa !11
  %70 = icmp eq i32 %69, %26
  br i1 %70, label %71, label %72

71:                                               ; preds = %.lr.ph44
  store i32 %21, ptr %68, align 4, !tbaa !11
  br label %72

72:                                               ; preds = %.lr.ph44, %71
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %exitcond54.not = icmp eq i64 %indvars.iv.next51, %wide.trip.count53
  br i1 %exitcond54.not, label %.loopexit, label %.lr.ph44, !llvm.loop !25

.loopexit:                                        ; preds = %72, %middle.block59, %27, %.lr.ph47
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %73 = load i32, ptr %12, align 4, !tbaa !16
  %74 = sext i32 %73 to i64
  %75 = icmp slt i64 %indvars.iv.next56, %74
  br i1 %75, label %.lr.ph47, label %._crit_edge48, !llvm.loop !26
}

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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 = { 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 #2 = { 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 #3 = { 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, !10, i64 16}
!6 = !{!"Graph", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13, !14, !15}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = !{!6, !10, i64 20}
!17 = distinct !{!17, !13, !15, !14}
!18 = !{!19, !10, i64 0}
!19 = !{!"Edge", !10, i64 0, !10, i64 4, !10, i64 8}
!20 = !{!19, !10, i64 4}
!21 = !{!6, !7, i64 0}
!22 = !{!8, !8, i64 0}
!23 = !{!19, !10, i64 8}
!24 = distinct !{!24, !13, !14, !15}
!25 = distinct !{!25, !13, !15, !14}
!26 = distinct !{!26, !13}


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