; LLVM IR from AlgoGenesis/C :: Greedy Algorithms/Indian denomination problem (Program)

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

@__const.main.arr = external hidden unnamed_addr constant [10 x i32], align 16
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [10 x i32], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 40, ptr %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.arr, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 10, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %4)
  %15 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
  %16 = load i32, ptr %3, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  call void @qsort(ptr noundef %15, i64 noundef %17, i64 noundef 4, ptr noundef @compare)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = mul i64 %19, 4
  %21 = call noalias ptr @malloc(i64 noundef %20) #7
  store ptr %21, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %69, %0
  %23 = load i32, ptr %8, align 4, !tbaa !5
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %72

27:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = load i32, ptr %8, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = sdiv i32 %28, %32
  store i32 %33, ptr %10, align 4, !tbaa !5
  %34 = load i32, ptr %10, align 4, !tbaa !5
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %36 = add nsw i32 %35, %34
  store i32 %36, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %52, %27
  %38 = load i32, ptr %11, align 4, !tbaa !5
  %39 = load i32, ptr %10, align 4, !tbaa !5
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %55

42:                                               ; preds = %37
  %43 = load i32, ptr %8, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = load ptr, ptr %6, align 8, !tbaa !9
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %7, align 4, !tbaa !5
  %50 = sext i32 %48 to i64
  %51 = getelementptr inbounds i32, ptr %47, i64 %50
  store i32 %46, ptr %51, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %42
  %53 = load i32, ptr %11, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %11, align 4, !tbaa !5
  br label %37, !llvm.loop !11

55:                                               ; preds = %41
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = load i32, ptr %4, align 4, !tbaa !5
  %62 = load i32, ptr %8, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = sdiv i32 %61, %65
  %67 = mul nsw i32 %60, %66
  %68 = sub nsw i32 %56, %67
  store i32 %68, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %69

69:                                               ; preds = %55
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %8, align 4, !tbaa !5
  br label %22, !llvm.loop !13

72:                                               ; preds = %26
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %73)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %87, %72
  %76 = load i32, ptr %12, align 4, !tbaa !5
  %77 = load i32, ptr %7, align 4, !tbaa !5
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %90

80:                                               ; preds = %75
  %81 = load ptr, ptr %6, align 8, !tbaa !9
  %82 = load i32, ptr %12, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds i32, ptr %81, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %85)
  br label %87

87:                                               ; preds = %80
  %88 = load i32, ptr %12, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %12, align 4, !tbaa !5
  br label %75, !llvm.loop !14

90:                                               ; preds = %79
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %92 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %92) #6
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %2) #6
  %93 = load i32, ptr %1, align 4
  ret i32 %93
}

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

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 memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

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 = { "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 "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 #6 = { nounwind }
attributes #7 = { 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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !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"

@__const.main.arr = external hidden unnamed_addr constant [10 x i32], align 16
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [10 x i32], align 16
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %1, ptr noundef nonnull align 16 dereferenceable(40) @__const.main.arr, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %2)
  call void @qsort(ptr noundef nonnull %1, i64 noundef 10, i64 noundef 4, ptr noundef nonnull @compare) #7
  %5 = load i32, ptr %2, align 4, !tbaa !5
  %.fr = freeze i32 %5
  %6 = sext i32 %.fr to i64
  %7 = shl nsw i64 %6, 2
  %8 = call noalias ptr @malloc(i64 noundef %7) #8
  %9 = load i32, ptr %1, align 16, !tbaa !5
  %.fr48 = freeze i32 %9
  %10 = sdiv i32 %.fr, %.fr48
  %11 = srem i32 %.fr, %.fr48
  %12 = icmp sgt i32 %10, 0
  br i1 %12, label %.lr.ph.preheader, label %._crit_edge

.lr.ph33.preheader:                               ; preds = %._crit_edge.9
  %wide.trip.count47 = zext nneg i32 %.1.lcssa.9 to i64
  br label %.lr.ph33

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

.lr.ph.preheader216:                              ; 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
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %.fr48, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> 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 ]
  %13 = getelementptr inbounds i32, ptr %8, i64 %index
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  store <4 x i32> %broadcast.splat, ptr %13, align 4, !tbaa !5
  store <4 x i32> %broadcast.splat, ptr %14, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %15 = icmp eq i64 %index.next, %n.vec
  br i1 %15, label %middle.block, label %vector.body, !llvm.loop !9

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.preheader216

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %0
  %.1.lcssa = phi i32 [ 0, %0 ], [ %10, %middle.block ], [ %10, %.lr.ph ]
  %16 = getelementptr inbounds i8, ptr %1, i64 4
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %.fr49 = freeze i32 %17
  %18 = sdiv i32 %11, %.fr49
  %19 = srem i32 %11, %.fr49
  %20 = add nsw i32 %18, %10
  %21 = icmp sgt i32 %18, 0
  br i1 %21, label %.lr.ph.preheader.1, label %._crit_edge.1

.lr.ph.preheader.1:                               ; preds = %._crit_edge
  %22 = zext nneg i32 %.1.lcssa to i64
  %23 = zext nneg i32 %18 to i64
  %min.iters.check58 = icmp ult i32 %18, 8
  br i1 %min.iters.check58, label %.lr.ph.1.preheader, label %vector.ph59

vector.ph59:                                      ; preds = %.lr.ph.preheader.1
  %n.vec61 = and i64 %23, 2147483640
  %ind.end = add nuw nsw i64 %n.vec61, %22
  %ind.end63 = trunc nuw nsw i64 %n.vec61 to i32
  %broadcast.splatinsert67 = insertelement <4 x i32> poison, i32 %.fr49, i64 0
  %broadcast.splat68 = shufflevector <4 x i32> %broadcast.splatinsert67, <4 x i32> poison, <4 x i32> zeroinitializer
  %invariant.gep = getelementptr i32, ptr %8, i64 %22
  br label %vector.body65

vector.body65:                                    ; preds = %vector.body65, %vector.ph59
  %index66 = phi i64 [ 0, %vector.ph59 ], [ %index.next69, %vector.body65 ]
  %gep = getelementptr i32, ptr %invariant.gep, i64 %index66
  %24 = getelementptr inbounds i8, ptr %gep, i64 16
  store <4 x i32> %broadcast.splat68, ptr %gep, align 4, !tbaa !5
  store <4 x i32> %broadcast.splat68, ptr %24, align 4, !tbaa !5
  %index.next69 = add nuw i64 %index66, 8
  %25 = icmp eq i64 %index.next69, %n.vec61
  br i1 %25, label %middle.block56, label %vector.body65, !llvm.loop !13

middle.block56:                                   ; preds = %vector.body65
  %cmp.n70 = icmp eq i64 %n.vec61, %23
  br i1 %cmp.n70, label %._crit_edge.loopexit.1, label %.lr.ph.1.preheader

.lr.ph.1.preheader:                               ; preds = %middle.block56, %.lr.ph.preheader.1
  %indvars.iv.1.ph = phi i64 [ %22, %.lr.ph.preheader.1 ], [ %ind.end, %middle.block56 ]
  %.02227.1.ph = phi i32 [ 0, %.lr.ph.preheader.1 ], [ %ind.end63, %middle.block56 ]
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph.1.preheader, %.lr.ph.1
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %.lr.ph.1 ], [ %indvars.iv.1.ph, %.lr.ph.1.preheader ]
  %.02227.1 = phi i32 [ %27, %.lr.ph.1 ], [ %.02227.1.ph, %.lr.ph.1.preheader ]
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %26 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv.1
  store i32 %.fr49, ptr %26, align 4, !tbaa !5
  %27 = add nuw nsw i32 %.02227.1, 1
  %exitcond.1.not = icmp eq i32 %27, %18
  br i1 %exitcond.1.not, label %._crit_edge.loopexit.1, label %.lr.ph.1, !llvm.loop !14

._crit_edge.loopexit.1:                           ; preds = %.lr.ph.1, %middle.block56
  %indvars.iv.next.1.lcssa = phi i64 [ %ind.end, %middle.block56 ], [ %indvars.iv.next.1, %.lr.ph.1 ]
  %28 = trunc nsw i64 %indvars.iv.next.1.lcssa to i32
  br label %._crit_edge.1

._crit_edge.1:                                    ; preds = %._crit_edge.loopexit.1, %._crit_edge
  %.1.lcssa.1 = phi i32 [ %.1.lcssa, %._crit_edge ], [ %28, %._crit_edge.loopexit.1 ]
  %29 = getelementptr inbounds i8, ptr %1, i64 8
  %30 = load i32, ptr %29, align 8, !tbaa !5
  %.fr50 = freeze i32 %30
  %31 = sdiv i32 %19, %.fr50
  %32 = srem i32 %19, %.fr50
  %33 = add nsw i32 %31, %20
  %34 = icmp sgt i32 %31, 0
  br i1 %34, label %.lr.ph.preheader.2, label %._crit_edge.2

.lr.ph.preheader.2:                               ; preds = %._crit_edge.1
  %35 = sext i32 %.1.lcssa.1 to i64
  %36 = zext nneg i32 %31 to i64
  %min.iters.check73 = icmp ult i32 %31, 8
  br i1 %min.iters.check73, label %.lr.ph.2.preheader, label %vector.ph74

vector.ph74:                                      ; preds = %.lr.ph.preheader.2
  %n.vec76 = and i64 %36, 2147483640
  %ind.end77 = add nsw i64 %n.vec76, %35
  %ind.end79 = trunc nuw nsw i64 %n.vec76 to i32
  %broadcast.splatinsert84 = insertelement <4 x i32> poison, i32 %.fr50, i64 0
  %broadcast.splat85 = shufflevector <4 x i32> %broadcast.splatinsert84, <4 x i32> poison, <4 x i32> zeroinitializer
  %invariant.gep226 = getelementptr i32, ptr %8, i64 %35
  br label %vector.body81

vector.body81:                                    ; preds = %vector.body81, %vector.ph74
  %index82 = phi i64 [ 0, %vector.ph74 ], [ %index.next86, %vector.body81 ]
  %gep227 = getelementptr i32, ptr %invariant.gep226, i64 %index82
  %37 = getelementptr inbounds i8, ptr %gep227, i64 16
  store <4 x i32> %broadcast.splat85, ptr %gep227, align 4, !tbaa !5
  store <4 x i32> %broadcast.splat85, ptr %37, align 4, !tbaa !5
  %index.next86 = add nuw i64 %index82, 8
  %38 = icmp eq i64 %index.next86, %n.vec76
  br i1 %38, label %middle.block71, label %vector.body81, !llvm.loop !15

middle.block71:                                   ; preds = %vector.body81
  %cmp.n87 = icmp eq i64 %n.vec76, %36
  br i1 %cmp.n87, label %._crit_edge.loopexit.2, label %.lr.ph.2.preheader

.lr.ph.2.preheader:                               ; preds = %middle.block71, %.lr.ph.preheader.2
  %indvars.iv.2.ph = phi i64 [ %35, %.lr.ph.preheader.2 ], [ %ind.end77, %middle.block71 ]
  %.02227.2.ph = phi i32 [ 0, %.lr.ph.preheader.2 ], [ %ind.end79, %middle.block71 ]
  br label %.lr.ph.2

.lr.ph.2:                                         ; preds = %.lr.ph.2.preheader, %.lr.ph.2
  %indvars.iv.2 = phi i64 [ %indvars.iv.next.2, %.lr.ph.2 ], [ %indvars.iv.2.ph, %.lr.ph.2.preheader ]
  %.02227.2 = phi i32 [ %40, %.lr.ph.2 ], [ %.02227.2.ph, %.lr.ph.2.preheader ]
  %indvars.iv.next.2 = add nsw i64 %indvars.iv.2, 1
  %39 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv.2
  store i32 %.fr50, ptr %39, align 4, !tbaa !5
  %40 = add nuw nsw i32 %.02227.2, 1
  %exitcond.2.not = icmp eq i32 %40, %31
  br i1 %exitcond.2.not, label %._crit_edge.loopexit.2, label %.lr.ph.2, !llvm.loop !16

._crit_edge.loopexit.2:                           ; preds = %.lr.ph.2, %middle.block71
  %indvars.iv.next.2.lcssa = phi i64 [ %ind.end77, %middle.block71 ], [ %indvars.iv.next.2, %.lr.ph.2 ]
  %41 = trunc nsw i64 %indvars.iv.next.2.lcssa to i32
  br label %._crit_edge.2

._crit_edge.2:                                    ; preds = %._crit_edge.loopexit.2, %._crit_edge.1
  %.1.lcssa.2 = phi i32 [ %.1.lcssa.1, %._crit_edge.1 ], [ %41, %._crit_edge.loopexit.2 ]
  %42 = getelementptr inbounds i8, ptr %1, i64 12
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %.fr51 = freeze i32 %43
  %44 = sdiv i32 %32, %.fr51
  %45 = srem i32 %32, %.fr51
  %46 = add nsw i32 %44, %33
  %47 = icmp sgt i32 %44, 0
  br i1 %47, label %.lr.ph.preheader.3, label %._crit_edge.3

.lr.ph.preheader.3:                               ; preds = %._crit_edge.2
  %48 = sext i32 %.1.lcssa.2 to i64
  %49 = zext nneg i32 %44 to i64
  %min.iters.check90 = icmp ult i32 %44, 8
  br i1 %min.iters.check90, label %.lr.ph.3.preheader, label %vector.ph91

vector.ph91:                                      ; preds = %.lr.ph.preheader.3
  %n.vec93 = and i64 %49, 2147483640
  %ind.end94 = add nsw i64 %n.vec93, %48
  %ind.end96 = trunc nuw nsw i64 %n.vec93 to i32
  %broadcast.splatinsert101 = insertelement <4 x i32> poison, i32 %.fr51, i64 0
  %broadcast.splat102 = shufflevector <4 x i32> %broadcast.splatinsert101, <4 x i32> poison, <4 x i32> zeroinitializer
  %invariant.gep228 = getelementptr i32, ptr %8, i64 %48
  br label %vector.body98

vector.body98:                                    ; preds = %vector.body98, %vector.ph91
  %index99 = phi i64 [ 0, %vector.ph91 ], [ %index.next103, %vector.body98 ]
  %gep229 = getelementptr i32, ptr %invariant.gep228, i64 %index99
  %50 = getelementptr inbounds i8, ptr %gep229, i64 16
  store <4 x i32> %broadcast.splat102, ptr %gep229, align 4, !tbaa !5
  store <4 x i32> %broadcast.splat102, ptr %50, align 4, !tbaa !5
  %index.next103 = add nuw i64 %index99, 8
  %51 = icmp eq i64 %index.next103, %n.vec93
  br i1 %51, label %middle.block88, label %vector.body98, !llvm.loop !17

middle.block88:                                   ; preds = %vector.body98
  %cmp.n104 = icmp eq i64 %n.vec93, %49
  br i1 %cmp.n104, label %._crit_edge.loopexit.3, label %.lr.ph.3.preheader

.lr.ph.3.preheader:                               ; preds = %middle.block88, %.lr.ph.preheader.3
  %indvars.iv.3.ph = phi i64 [ %48, %.lr.ph.preheader.3 ], [ %ind.end94, %middle.block88 ]
  %.02227.3.ph = phi i32 [ 0, %.lr.ph.preheader.3 ], [ %ind.end96, %middle.block88 ]
  br label %.lr.ph.3

.lr.ph.3:                                         ; preds = %.lr.ph.3.preheader, %.lr.ph.3
  %indvars.iv.3 = phi i64 [ %indvars.iv.next.3, %.lr.ph.3 ], [ %indvars.iv.3.ph, %.lr.ph.3.preheader ]
  %.02227.3 = phi i32 [ %53, %.lr.ph.3 ], [ %.02227.3.ph, %.lr.ph.3.preheader ]
  %indvars.iv.next.3 = add nsw i64 %indvars.iv.3, 1
  %52 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv.3
  store i32 %.fr51, ptr %52, align 4, !tbaa !5
  %53 = add nuw nsw i32 %.02227.3, 1
  %exitcond.3.not = icmp eq i32 %53, %44
  br i1 %exitcond.3.not, label %._crit_edge.loopexit.3, label %.lr.ph.3, !llvm.loop !18

._crit_edge.loopexit.3:                           ; preds = %.lr.ph.3, %middle.block88
  %indvars.iv.next.3.lcssa = phi i64 [ %ind.end94, %middle.block88 ], [ %indvars.iv.next.3, %.lr.ph.3 ]
  %54 = trunc nsw i64 %indvars.iv.next.3.lcssa to i32
  br label %._crit_edge.3

._crit_edge.3:                                    ; preds = %._crit_edge.loopexit.3, %._crit_edge.2
  %.1.lcssa.3 = phi i32 [ %.1.lcssa.2, %._crit_edge.2 ], [ %54, %._crit_edge.loopexit.3 ]
  %55 = getelementptr inbounds i8, ptr %1, i64 16
  %56 = load i32, ptr %55, align 16, !tbaa !5
  %.fr52 = freeze i32 %56
  %57 = sdiv i32 %45, %.fr52
  %58 = srem i32 %45, %.fr52
  %59 = add nsw i32 %57, %46
  %60 = icmp sgt i32 %57, 0
  br i1 %60, label %.lr.ph.preheader.4, label %._crit_edge.4

.lr.ph.preheader.4:                               ; preds = %._crit_edge.3
  %61 = sext i32 %.1.lcssa.3 to i64
  %62 = zext nneg i32 %57 to i64
  %min.iters.check107 = icmp ult i32 %57, 8
  br i1 %min.iters.check107, label %.lr.ph.4.preheader, label %vector.ph108

vector.ph108:                                     ; preds = %.lr.ph.preheader.4
  %n.vec110 = and i64 %62, 2147483640
  %ind.end111 = add nsw i64 %n.vec110, %61
  %ind.end113 = trunc nuw nsw i64 %n.vec110 to i32
  %broadcast.splatinsert118 = insertelement <4 x i32> poison, i32 %.fr52, i64 0
  %broadcast.splat119 = shufflevector <4 x i32> %broadcast.splatinsert118, <4 x i32> poison, <4 x i32> zeroinitializer
  %invariant.gep230 = getelementptr i32, ptr %8, i64 %61
  br label %vector.body115

vector.body115:                                   ; preds = %vector.body115, %vector.ph108
  %index116 = phi i64 [ 0, %vector.ph108 ], [ %index.next120, %vector.body115 ]
  %gep231 = getelementptr i32, ptr %invariant.gep230, i64 %index116
  %63 = getelementptr inbounds i8, ptr %gep231, i64 16
  store <4 x i32> %broadcast.splat119, ptr %gep231, align 4, !tbaa !5
  store <4 x i32> %broadcast.splat119, ptr %63, align 4, !tbaa !5
  %index.next120 = add nuw i64 %index116, 8
  %64 = icmp eq i64 %index.next120, %n.vec110
  br i1 %64, label %middle.block105, label %vector.body115, !llvm.loop !19

middle.block105:                                  ; preds = %vector.body115
  %cmp.n121 = icmp eq i64 %n.vec110, %62
  br i1 %cmp.n121, label %._crit_edge.loopexit.4, label %.lr.ph.4.preheader

.lr.ph.4.preheader:                               ; preds = %middle.block105, %.lr.ph.preheader.4
  %indvars.iv.4.ph = phi i64 [ %61, %.lr.ph.preheader.4 ], [ %ind.end111, %middle.block105 ]
  %.02227.4.ph = phi i32 [ 0, %.lr.ph.preheader.4 ], [ %ind.end113, %middle.block105 ]
  br label %.lr.ph.4

.lr.ph.4:                                         ; preds = %.lr.ph.4.preheader, %.lr.ph.4
  %indvars.iv.4 = phi i64 [ %indvars.iv.next.4, %.lr.ph.4 ], [ %indvars.iv.4.ph, %.lr.ph.4.preheader ]
  %.02227.4 = phi i32 [ %66, %.lr.ph.4 ], [ %.02227.4.ph, %.lr.ph.4.preheader ]
  %indvars.iv.next.4 = add nsw i64 %indvars.iv.4, 1
  %65 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv.4
  store i32 %.fr52, ptr %65, align 4, !tbaa !5
  %66 = add nuw nsw i32 %.02227.4, 1
  %exitcond.4.not = icmp eq i32 %66, %57
  br i1 %exitcond.4.not, label %._crit_edge.loopexit.4, label %.lr.ph.4, !llvm.loop !20

._crit_edge.loopexit.4:                           ; preds = %.lr.ph.4, %middle.block105
  %indvars.iv.next.4.lcssa = phi i64 [ %ind.end111, %middle.block105 ], [ %indvars.iv.next.4, %.lr.ph.4 ]
  %67 = trunc nsw i64 %indvars.iv.next.4.lcssa to i32
  br label %._crit_edge.4

._crit_edge.4:                                    ; preds = %._crit_edge.loopexit.4, %._crit_edge.3
  %.1.lcssa.4 = phi i32 [ %.1.lcssa.3, %._crit_edge.3 ], [ %67, %._crit_edge.loopexit.4 ]
  %68 = getelementptr inbounds i8, ptr %1, i64 20
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %.fr53 = freeze i32 %69
  %70 = sdiv i32 %58, %.fr53
  %71 = srem i32 %58, %.fr53
  %72 = add nsw i32 %70, %59
  %73 = icmp sgt i32 %70, 0
  br i1 %73, label %.lr.ph.preheader.5, label %._crit_edge.5

.lr.ph.preheader.5:                               ; preds = %._crit_edge.4
  %74 = sext i32 %.1.lcssa.4 to i64
  %75 = zext nneg i32 %70 to i64
  %min.iters.check124 = icmp ult i32 %70, 8
  br i1 %min.iters.check124, label %.lr.ph.5.preheader, label %vector.ph125

vector.ph125:                                     ; preds = %.lr.ph.preheader.5
  %n.vec127 = and i64 %75, 2147483640
  %ind.end128 = add nsw i64 %n.vec127, %74
  %ind.end130 = trunc nuw nsw i64 %n.vec127 to i32
  %broadcast.splatinsert135 = insertelement <4 x i32> poison, i32 %.fr53, i64 0
  %broadcast.splat136 = shufflevector <4 x i32> %broadcast.splatinsert135, <4 x i32> poison, <4 x i32> zeroinitializer
  %invariant.gep232 = getelementptr i32, ptr %8, i64 %74
  br label %vector.body132

vector.body132:                                   ; preds = %vector.body132, %vector.ph125
  %index133 = phi i64 [ 0, %vector.ph125 ], [ %index.next137, %vector.body132 ]
  %gep233 = getelementptr i32, ptr %invariant.gep232, i64 %index133
  %76 = getelementptr inbounds i8, ptr %gep233, i64 16
  store <4 x i32> %broadcast.splat136, ptr %gep233, align 4, !tbaa !5
  store <4 x i32> %broadcast.splat136, ptr %76, align 4, !tbaa !5
  %index.next137 = add nuw i64 %index133, 8
  %77 = icmp eq i64 %index.next137, %n.vec127
  br i1 %77, label %middle.block122, label %vector.body132, !llvm.loop !21

middle.block122:                                  ; preds = %vector.body132
  %cmp.n138 = icmp eq i64 %n.vec127, %75
  br i1 %cmp.n138, label %._crit_edge.loopexit.5, label %.lr.ph.5.preheader

.lr.ph.5.preheader:                               ; preds = %middle.block122, %.lr.ph.preheader.5
  %indvars.iv.5.ph = phi i64 [ %74, %.lr.ph.preheader.5 ], [ %ind.end128, %middle.block122 ]
  %.02227.5.ph = phi i32 [ 0, %.lr.ph.preheader.5 ], [ %ind.end130, %middle.block122 ]
  br label %.lr.ph.5

.lr.ph.5:                                         ; preds = %.lr.ph.5.preheader, %.lr.ph.5
  %indvars.iv.5 = phi i64 [ %indvars.iv.next.5, %.lr.ph.5 ], [ %indvars.iv.5.ph, %.lr.ph.5.preheader ]
  %.02227.5 = phi i32 [ %79, %.lr.ph.5 ], [ %.02227.5.ph, %.lr.ph.5.preheader ]
  %indvars.iv.next.5 = add nsw i64 %indvars.iv.5, 1
  %78 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv.5
  store i32 %.fr53, ptr %78, align 4, !tbaa !5
  %79 = add nuw nsw i32 %.02227.5, 1
  %exitcond.5.not = icmp eq i32 %79, %70
  br i1 %exitcond.5.not, label %._crit_edge.loopexit.5, label %.lr.ph.5, !llvm.loop !22

._crit_edge.loopexit.5:                           ; preds = %.lr.ph.5, %middle.block122
  %indvars.iv.next.5.lcssa = phi i64 [ %ind.end128, %middle.block122 ], [ %indvars.iv.next.5, %.lr.ph.5 ]
  %80 = trunc nsw i64 %indvars.iv.next.5.lcssa to i32
  br label %._crit_edge.5

._crit_edge.5:                                    ; preds = %._crit_edge.loopexit.5, %._crit_edge.4
  %.1.lcssa.5 = phi i32 [ %.1.lcssa.4, %._crit_edge.4 ], [ %80, %._crit_edge.loopexit.5 ]
  %81 = getelementptr inbounds i8, ptr %1, i64 24
  %82 = load i32, ptr %81, align 8, !tbaa !5
  %83 = sdiv i32 %71, %82
  %84 = srem i32 %71, %82
  %85 = add nsw i32 %83, %72
  %86 = icmp sgt i32 %83, 0
  br i1 %86, label %.lr.ph.preheader.6, label %._crit_edge.6

.lr.ph.preheader.6:                               ; preds = %._crit_edge.5
  %87 = sext i32 %.1.lcssa.5 to i64
  %88 = zext nneg i32 %83 to i64
  %min.iters.check141 = icmp ult i32 %83, 8
  br i1 %min.iters.check141, label %.lr.ph.6.preheader, label %vector.ph142

vector.ph142:                                     ; preds = %.lr.ph.preheader.6
  %n.vec144 = and i64 %88, 2147483640
  %ind.end145 = add nsw i64 %n.vec144, %87
  %ind.end147 = trunc nuw nsw i64 %n.vec144 to i32
  %broadcast.splatinsert152 = insertelement <4 x i32> poison, i32 %82, i64 0
  %broadcast.splat153 = shufflevector <4 x i32> %broadcast.splatinsert152, <4 x i32> poison, <4 x i32> zeroinitializer
  %invariant.gep234 = getelementptr i32, ptr %8, i64 %87
  br label %vector.body149

vector.body149:                                   ; preds = %vector.body149, %vector.ph142
  %index150 = phi i64 [ 0, %vector.ph142 ], [ %index.next154, %vector.body149 ]
  %gep235 = getelementptr i32, ptr %invariant.gep234, i64 %index150
  %89 = getelementptr inbounds i8, ptr %gep235, i64 16
  store <4 x i32> %broadcast.splat153, ptr %gep235, align 4, !tbaa !5
  store <4 x i32> %broadcast.splat153, ptr %89, align 4, !tbaa !5
  %index.next154 = add nuw i64 %index150, 8
  %90 = icmp eq i64 %index.next154, %n.vec144
  br i1 %90, label %middle.block139, label %vector.body149, !llvm.loop !23

middle.block139:                                  ; preds = %vector.body149
  %cmp.n155 = icmp eq i64 %n.vec144, %88
  br i1 %cmp.n155, label %._crit_edge.loopexit.6, label %.lr.ph.6.preheader

.lr.ph.6.preheader:                               ; preds = %middle.block139, %.lr.ph.preheader.6
  %indvars.iv.6.ph = phi i64 [ %87, %.lr.ph.preheader.6 ], [ %ind.end145, %middle.block139 ]
  %.02227.6.ph = phi i32 [ 0, %.lr.ph.preheader.6 ], [ %ind.end147, %middle.block139 ]
  br label %.lr.ph.6

.lr.ph.6:                                         ; preds = %.lr.ph.6.preheader, %.lr.ph.6
  %indvars.iv.6 = phi i64 [ %indvars.iv.next.6, %.lr.ph.6 ], [ %indvars.iv.6.ph, %.lr.ph.6.preheader ]
  %.02227.6 = phi i32 [ %92, %.lr.ph.6 ], [ %.02227.6.ph, %.lr.ph.6.preheader ]
  %indvars.iv.next.6 = add nsw i64 %indvars.iv.6, 1
  %91 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv.6
  store i32 %82, ptr %91, align 4, !tbaa !5
  %92 = add nuw nsw i32 %.02227.6, 1
  %exitcond.6.not = icmp eq i32 %92, %83
  br i1 %exitcond.6.not, label %._crit_edge.loopexit.6, label %.lr.ph.6, !llvm.loop !24

._crit_edge.loopexit.6:                           ; preds = %.lr.ph.6, %middle.block139
  %indvars.iv.next.6.lcssa = phi i64 [ %ind.end145, %middle.block139 ], [ %indvars.iv.next.6, %.lr.ph.6 ]
  %93 = trunc nsw i64 %indvars.iv.next.6.lcssa to i32
  br label %._crit_edge.6

._crit_edge.6:                                    ; preds = %._crit_edge.loopexit.6, %._crit_edge.5
  %.1.lcssa.6 = phi i32 [ %.1.lcssa.5, %._crit_edge.5 ], [ %93, %._crit_edge.loopexit.6 ]
  %.fr.7 = freeze i32 %84
  %94 = getelementptr inbounds i8, ptr %1, i64 28
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %.fr54 = freeze i32 %95
  %96 = sdiv i32 %.fr.7, %.fr54
  %97 = srem i32 %.fr.7, %.fr54
  %98 = add nsw i32 %96, %85
  %99 = icmp sgt i32 %96, 0
  br i1 %99, label %.lr.ph.preheader.7, label %._crit_edge.7

.lr.ph.preheader.7:                               ; preds = %._crit_edge.6
  %100 = sext i32 %.1.lcssa.6 to i64
  %101 = zext nneg i32 %96 to i64
  %min.iters.check158 = icmp ult i32 %96, 8
  br i1 %min.iters.check158, label %.lr.ph.7.preheader, label %vector.ph159

vector.ph159:                                     ; preds = %.lr.ph.preheader.7
  %n.vec161 = and i64 %101, 2147483640
  %ind.end162 = add nsw i64 %n.vec161, %100
  %ind.end164 = trunc nuw nsw i64 %n.vec161 to i32
  %broadcast.splatinsert169 = insertelement <4 x i32> poison, i32 %.fr54, i64 0
  %broadcast.splat170 = shufflevector <4 x i32> %broadcast.splatinsert169, <4 x i32> poison, <4 x i32> zeroinitializer
  %invariant.gep236 = getelementptr i32, ptr %8, i64 %100
  br label %vector.body166

vector.body166:                                   ; preds = %vector.body166, %vector.ph159
  %index167 = phi i64 [ 0, %vector.ph159 ], [ %index.next171, %vector.body166 ]
  %gep237 = getelementptr i32, ptr %invariant.gep236, i64 %index167
  %102 = getelementptr inbounds i8, ptr %gep237, i64 16
  store <4 x i32> %broadcast.splat170, ptr %gep237, align 4, !tbaa !5
  store <4 x i32> %broadcast.splat170, ptr %102, align 4, !tbaa !5
  %index.next171 = add nuw i64 %index167, 8
  %103 = icmp eq i64 %index.next171, %n.vec161
  br i1 %103, label %middle.block156, label %vector.body166, !llvm.loop !25

middle.block156:                                  ; preds = %vector.body166
  %cmp.n172 = icmp eq i64 %n.vec161, %101
  br i1 %cmp.n172, label %._crit_edge.loopexit.7, label %.lr.ph.7.preheader

.lr.ph.7.preheader:                               ; preds = %middle.block156, %.lr.ph.preheader.7
  %indvars.iv.7.ph = phi i64 [ %100, %.lr.ph.preheader.7 ], [ %ind.end162, %middle.block156 ]
  %.02227.7.ph = phi i32 [ 0, %.lr.ph.preheader.7 ], [ %ind.end164, %middle.block156 ]
  br label %.lr.ph.7

.lr.ph.7:                                         ; preds = %.lr.ph.7.preheader, %.lr.ph.7
  %indvars.iv.7 = phi i64 [ %indvars.iv.next.7, %.lr.ph.7 ], [ %indvars.iv.7.ph, %.lr.ph.7.preheader ]
  %.02227.7 = phi i32 [ %105, %.lr.ph.7 ], [ %.02227.7.ph, %.lr.ph.7.preheader ]
  %indvars.iv.next.7 = add nsw i64 %indvars.iv.7, 1
  %104 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv.7
  store i32 %.fr54, ptr %104, align 4, !tbaa !5
  %105 = add nuw nsw i32 %.02227.7, 1
  %exitcond.7.not = icmp eq i32 %105, %96
  br i1 %exitcond.7.not, label %._crit_edge.loopexit.7, label %.lr.ph.7, !llvm.loop !26

._crit_edge.loopexit.7:                           ; preds = %.lr.ph.7, %middle.block156
  %indvars.iv.next.7.lcssa = phi i64 [ %ind.end162, %middle.block156 ], [ %indvars.iv.next.7, %.lr.ph.7 ]
  %106 = trunc nsw i64 %indvars.iv.next.7.lcssa to i32
  br label %._crit_edge.7

._crit_edge.7:                                    ; preds = %._crit_edge.loopexit.7, %._crit_edge.6
  %.1.lcssa.7 = phi i32 [ %.1.lcssa.6, %._crit_edge.6 ], [ %106, %._crit_edge.loopexit.7 ]
  %107 = getelementptr inbounds i8, ptr %1, i64 32
  %108 = load i32, ptr %107, align 16, !tbaa !5
  %.fr55 = freeze i32 %108
  %109 = sdiv i32 %97, %.fr55
  %110 = srem i32 %97, %.fr55
  %111 = add nsw i32 %109, %98
  %112 = icmp sgt i32 %109, 0
  br i1 %112, label %.lr.ph.preheader.8, label %._crit_edge.8

.lr.ph.preheader.8:                               ; preds = %._crit_edge.7
  %113 = sext i32 %.1.lcssa.7 to i64
  %114 = zext nneg i32 %109 to i64
  %min.iters.check175 = icmp ult i32 %109, 8
  br i1 %min.iters.check175, label %.lr.ph.8.preheader, label %vector.ph176

vector.ph176:                                     ; preds = %.lr.ph.preheader.8
  %n.vec178 = and i64 %114, 2147483640
  %ind.end179 = add nsw i64 %n.vec178, %113
  %ind.end181 = trunc nuw nsw i64 %n.vec178 to i32
  %broadcast.splatinsert186 = insertelement <4 x i32> poison, i32 %.fr55, i64 0
  %broadcast.splat187 = shufflevector <4 x i32> %broadcast.splatinsert186, <4 x i32> poison, <4 x i32> zeroinitializer
  %invariant.gep238 = getelementptr i32, ptr %8, i64 %113
  br label %vector.body183

vector.body183:                                   ; preds = %vector.body183, %vector.ph176
  %index184 = phi i64 [ 0, %vector.ph176 ], [ %index.next188, %vector.body183 ]
  %gep239 = getelementptr i32, ptr %invariant.gep238, i64 %index184
  %115 = getelementptr inbounds i8, ptr %gep239, i64 16
  store <4 x i32> %broadcast.splat187, ptr %gep239, align 4, !tbaa !5
  store <4 x i32> %broadcast.splat187, ptr %115, align 4, !tbaa !5
  %index.next188 = add nuw i64 %index184, 8
  %116 = icmp eq i64 %index.next188, %n.vec178
  br i1 %116, label %middle.block173, label %vector.body183, !llvm.loop !27

middle.block173:                                  ; preds = %vector.body183
  %cmp.n189 = icmp eq i64 %n.vec178, %114
  br i1 %cmp.n189, label %._crit_edge.loopexit.8, label %.lr.ph.8.preheader

.lr.ph.8.preheader:                               ; preds = %middle.block173, %.lr.ph.preheader.8
  %indvars.iv.8.ph = phi i64 [ %113, %.lr.ph.preheader.8 ], [ %ind.end179, %middle.block173 ]
  %.02227.8.ph = phi i32 [ 0, %.lr.ph.preheader.8 ], [ %ind.end181, %middle.block173 ]
  br label %.lr.ph.8

.lr.ph.8:                                         ; preds = %.lr.ph.8.preheader, %.lr.ph.8
  %indvars.iv.8 = phi i64 [ %indvars.iv.next.8, %.lr.ph.8 ], [ %indvars.iv.8.ph, %.lr.ph.8.preheader ]
  %.02227.8 = phi i32 [ %118, %.lr.ph.8 ], [ %.02227.8.ph, %.lr.ph.8.preheader ]
  %indvars.iv.next.8 = add nsw i64 %indvars.iv.8, 1
  %117 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv.8
  store i32 %.fr55, ptr %117, align 4, !tbaa !5
  %118 = add nuw nsw i32 %.02227.8, 1
  %exitcond.8.not = icmp eq i32 %118, %109
  br i1 %exitcond.8.not, label %._crit_edge.loopexit.8, label %.lr.ph.8, !llvm.loop !28

._crit_edge.loopexit.8:                           ; preds = %.lr.ph.8, %middle.block173
  %indvars.iv.next.8.lcssa = phi i64 [ %ind.end179, %middle.block173 ], [ %indvars.iv.next.8, %.lr.ph.8 ]
  %119 = trunc nsw i64 %indvars.iv.next.8.lcssa to i32
  br label %._crit_edge.8

._crit_edge.8:                                    ; preds = %._crit_edge.loopexit.8, %._crit_edge.7
  %.1.lcssa.8 = phi i32 [ %.1.lcssa.7, %._crit_edge.7 ], [ %119, %._crit_edge.loopexit.8 ]
  %120 = getelementptr inbounds i8, ptr %1, i64 36
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = sdiv i32 %110, %121
  %123 = srem i32 %110, %121
  %124 = add nsw i32 %122, %111
  %125 = icmp sgt i32 %122, 0
  br i1 %125, label %.lr.ph.preheader.9, label %._crit_edge.9

.lr.ph.preheader.9:                               ; preds = %._crit_edge.8
  %126 = sext i32 %.1.lcssa.8 to i64
  %127 = zext nneg i32 %122 to i64
  %min.iters.check192 = icmp ult i32 %122, 8
  br i1 %min.iters.check192, label %.lr.ph.9.preheader, label %vector.ph193

vector.ph193:                                     ; preds = %.lr.ph.preheader.9
  %n.vec195 = and i64 %127, 2147483640
  %ind.end196 = add nsw i64 %n.vec195, %126
  %ind.end198 = trunc nuw nsw i64 %n.vec195 to i32
  %broadcast.splatinsert203 = insertelement <4 x i32> poison, i32 %121, i64 0
  %broadcast.splat204 = shufflevector <4 x i32> %broadcast.splatinsert203, <4 x i32> poison, <4 x i32> zeroinitializer
  %invariant.gep240 = getelementptr i32, ptr %8, i64 %126
  br label %vector.body200

vector.body200:                                   ; preds = %vector.body200, %vector.ph193
  %index201 = phi i64 [ 0, %vector.ph193 ], [ %index.next205, %vector.body200 ]
  %gep241 = getelementptr i32, ptr %invariant.gep240, i64 %index201
  %128 = getelementptr inbounds i8, ptr %gep241, i64 16
  store <4 x i32> %broadcast.splat204, ptr %gep241, align 4, !tbaa !5
  store <4 x i32> %broadcast.splat204, ptr %128, align 4, !tbaa !5
  %index.next205 = add nuw i64 %index201, 8
  %129 = icmp eq i64 %index.next205, %n.vec195
  br i1 %129, label %middle.block190, label %vector.body200, !llvm.loop !29

middle.block190:                                  ; preds = %vector.body200
  %cmp.n206 = icmp eq i64 %n.vec195, %127
  br i1 %cmp.n206, label %._crit_edge.loopexit.9, label %.lr.ph.9.preheader

.lr.ph.9.preheader:                               ; preds = %middle.block190, %.lr.ph.preheader.9
  %indvars.iv.9.ph = phi i64 [ %126, %.lr.ph.preheader.9 ], [ %ind.end196, %middle.block190 ]
  %.02227.9.ph = phi i32 [ 0, %.lr.ph.preheader.9 ], [ %ind.end198, %middle.block190 ]
  br label %.lr.ph.9

.lr.ph.9:                                         ; preds = %.lr.ph.9.preheader, %.lr.ph.9
  %indvars.iv.9 = phi i64 [ %indvars.iv.next.9, %.lr.ph.9 ], [ %indvars.iv.9.ph, %.lr.ph.9.preheader ]
  %.02227.9 = phi i32 [ %131, %.lr.ph.9 ], [ %.02227.9.ph, %.lr.ph.9.preheader ]
  %indvars.iv.next.9 = add nsw i64 %indvars.iv.9, 1
  %130 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv.9
  store i32 %121, ptr %130, align 4, !tbaa !5
  %131 = add nuw nsw i32 %.02227.9, 1
  %exitcond.9.not = icmp eq i32 %131, %122
  br i1 %exitcond.9.not, label %._crit_edge.loopexit.9, label %.lr.ph.9, !llvm.loop !30

._crit_edge.loopexit.9:                           ; preds = %.lr.ph.9, %middle.block190
  %indvars.iv.next.9.lcssa = phi i64 [ %ind.end196, %middle.block190 ], [ %indvars.iv.next.9, %.lr.ph.9 ]
  %132 = trunc nsw i64 %indvars.iv.next.9.lcssa to i32
  br label %._crit_edge.9

._crit_edge.9:                                    ; preds = %._crit_edge.loopexit.9, %._crit_edge.8
  %.1.lcssa.9 = phi i32 [ %.1.lcssa.8, %._crit_edge.8 ], [ %132, %._crit_edge.loopexit.9 ]
  store i32 %123, ptr %2, align 4, !tbaa !5
  %133 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %124)
  %134 = icmp sgt i32 %.1.lcssa.9, 0
  br i1 %134, label %.lr.ph33.preheader, label %._crit_edge34

.lr.ph:                                           ; preds = %.lr.ph.preheader216, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader216 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %135 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv
  store i32 %.fr48, ptr %135, align 4, !tbaa !5
  %exitcond43.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond43.not, label %._crit_edge, label %.lr.ph, !llvm.loop !31

._crit_edge34:                                    ; preds = %.lr.ph33, %._crit_edge.9
  %136 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  call void @free(ptr noundef %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #7
  ret i32 0

.lr.ph33:                                         ; preds = %.lr.ph33.preheader, %.lr.ph33
  %indvars.iv44 = phi i64 [ 0, %.lr.ph33.preheader ], [ %indvars.iv.next45, %.lr.ph33 ]
  %137 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv44
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %138)
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next45, %wide.trip.count47
  br i1 %exitcond.not, label %._crit_edge34, label %.lr.ph33, !llvm.loop !32
}

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

; 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

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 = { 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 #4 = { 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 #5 = { 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 #6 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #7 = { nounwind }
attributes #8 = { 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 = distinct !{!13, !10, !11, !12}
!14 = distinct !{!14, !10, !12, !11}
!15 = distinct !{!15, !10, !11, !12}
!16 = distinct !{!16, !10, !12, !11}
!17 = distinct !{!17, !10, !11, !12}
!18 = distinct !{!18, !10, !12, !11}
!19 = distinct !{!19, !10, !11, !12}
!20 = distinct !{!20, !10, !12, !11}
!21 = distinct !{!21, !10, !11, !12}
!22 = distinct !{!22, !10, !12, !11}
!23 = distinct !{!23, !10, !11, !12}
!24 = distinct !{!24, !10, !12, !11}
!25 = distinct !{!25, !10, !11, !12}
!26 = distinct !{!26, !10, !12, !11}
!27 = distinct !{!27, !10, !11, !12}
!28 = distinct !{!28, !10, !12, !11}
!29 = distinct !{!29, !10, !11, !12}
!30 = distinct !{!30, !10, !12, !11}
!31 = distinct !{!31, !10, !12, !11}
!32 = distinct !{!32, !10}


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