; LLVM IR from NishkarshRaj/Design-and-Analysis-of-Algorithms :: Linear Sorting (Countsort)

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

@.str = external hidden unnamed_addr constant [51 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1

; 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 [10 x i32], align 16
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca [10 x i32], align 16
  %10 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 40, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #4
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %11

11:                                               ; preds = %18, %0
  %12 = load i32, ptr %3, align 4, !tbaa !5
  %13 = icmp slt i32 %12, 10
  br i1 %13, label %14, label %21

14:                                               ; preds = %11
  %15 = load i32, ptr %3, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %16
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %14
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %3, align 4, !tbaa !5
  br label %11, !llvm.loop !9

21:                                               ; preds = %11
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %4)
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = zext i32 %24 to i64
  %26 = call ptr @llvm.stacksave.p0()
  store ptr %26, ptr %7, align 8
  %27 = alloca i32, i64 %25, align 16
  store i64 %25, ptr %8, align 8
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %37, %21
  %29 = load i32, ptr %3, align 4, !tbaa !5
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %32, label %40

32:                                               ; preds = %28
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds i32, ptr %27, i64 %34
  %36 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %35)
  br label %37

37:                                               ; preds = %32
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %3, align 4, !tbaa !5
  br label %28, !llvm.loop !11

40:                                               ; preds = %28
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %55, %40
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %45, label %58

45:                                               ; preds = %41
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i32, ptr %27, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  store i32 %49, ptr %5, align 4, !tbaa !5
  %50 = load i32, ptr %5, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %52, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %45
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %3, align 4, !tbaa !5
  br label %41, !llvm.loop !12

58:                                               ; preds = %41
  %59 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %70, %58
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = icmp slt i32 %61, 10
  br i1 %62, label %63, label %73

63:                                               ; preds = %60
  %64 = load i32, ptr %3, align 4, !tbaa !5
  %65 = load i32, ptr %3, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %64, i32 noundef %68)
  br label %70

70:                                               ; preds = %63
  %71 = load i32, ptr %3, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %3, align 4, !tbaa !5
  br label %60, !llvm.loop !13

73:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %88, %73
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = icmp slt i32 %75, 10
  br i1 %76, label %77, label %91

77:                                               ; preds = %74
  %78 = load i32, ptr %3, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = load i32, ptr %10, align 4, !tbaa !5
  %83 = add nsw i32 %81, %82
  store i32 %83, ptr %10, align 4, !tbaa !5
  %84 = load i32, ptr %10, align 4, !tbaa !5
  %85 = load i32, ptr %3, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [10 x i32], ptr %9, i64 0, i64 %86
  store i32 %84, ptr %87, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %77
  %89 = load i32, ptr %3, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %3, align 4, !tbaa !5
  br label %74, !llvm.loop !14

91:                                               ; preds = %74
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %103, %91
  %94 = load i32, ptr %3, align 4, !tbaa !5
  %95 = icmp slt i32 %94, 10
  br i1 %95, label %96, label %106

96:                                               ; preds = %93
  %97 = load i32, ptr %3, align 4, !tbaa !5
  %98 = load i32, ptr %3, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [10 x i32], ptr %9, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %97, i32 noundef %101)
  br label %103

103:                                              ; preds = %96
  %104 = load i32, ptr %3, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %3, align 4, !tbaa !5
  br label %93, !llvm.loop !15

106:                                              ; preds = %93
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %114, %106
  %108 = load i32, ptr %3, align 4, !tbaa !5
  %109 = icmp slt i32 %108, 10
  br i1 %109, label %110, label %117

110:                                              ; preds = %107
  %111 = load i32, ptr %3, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %112
  store i32 0, ptr %113, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %110
  %115 = load i32, ptr %3, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %3, align 4, !tbaa !5
  br label %107, !llvm.loop !16

117:                                              ; preds = %107
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %141, %117
  %119 = load i32, ptr %3, align 4, !tbaa !5
  %120 = icmp slt i32 %119, 10
  br i1 %120, label %121, label %144

121:                                              ; preds = %118
  %122 = load i32, ptr %3, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [10 x i32], ptr %9, i64 0, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !5
  store i32 %125, ptr %5, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %133, %121
  %127 = load i32, ptr %3, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = add nsw i32 %130, -1
  store i32 %131, ptr %129, align 4, !tbaa !5
  %132 = icmp ne i32 %130, 0
  br i1 %132, label %133, label %140

133:                                              ; preds = %126
  %134 = load i32, ptr %3, align 4, !tbaa !5
  %135 = load i32, ptr %5, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %136
  store i32 %134, ptr %137, align 4, !tbaa !5
  %138 = load i32, ptr %5, align 4, !tbaa !5
  %139 = add nsw i32 %138, -1
  store i32 %139, ptr %5, align 4, !tbaa !5
  br label %126, !llvm.loop !17

140:                                              ; preds = %126
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %3, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %3, align 4, !tbaa !5
  br label %118, !llvm.loop !18

144:                                              ; preds = %118
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %157, %144
  %147 = load i32, ptr %3, align 4, !tbaa !5
  %148 = load i32, ptr %4, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  %150 = icmp slt i32 %147, %149
  br i1 %150, label %151, label %160

151:                                              ; preds = %146
  %152 = load i32, ptr %3, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %155)
  br label %157

157:                                              ; preds = %151
  %158 = load i32, ptr %3, align 4, !tbaa !5
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %3, align 4, !tbaa !5
  br label %146, !llvm.loop !19

160:                                              ; preds = %146
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #4
  %161 = load ptr, ptr %7, align 8
  call void @llvm.stackrestore.p0(ptr %161)
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %2) #4
  %162 = load i32, ptr %1, align 4
  ret i32 %162
}

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #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 = { "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 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


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

@.str = external hidden unnamed_addr constant [51 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [10 x i32], align 16
  %2 = alloca i32, align 4
  %3 = alloca [10 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %1, i8 0, i64 40, i1 false), !tbaa !5
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %2)
  %6 = load i32, ptr %2, align 4, !tbaa !5
  %7 = zext i32 %6 to i64
  %8 = call ptr @llvm.stacksave.p0()
  %9 = alloca i32, i64 %7, align 16
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph, label %._crit_edge

.preheader42:                                     ; preds = %.lr.ph
  %12 = icmp sgt i32 %16, 0
  br i1 %12, label %.lr.ph46.preheader, label %._crit_edge

.lr.ph46.preheader:                               ; preds = %.preheader42
  %wide.trip.count = zext nneg i32 %16 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %13 = icmp ult i32 %16, 4
  br i1 %13, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph46.preheader.new

.lr.ph46.preheader.new:                           ; preds = %.lr.ph46.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph46

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %14 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %14)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = icmp slt i64 %indvars.iv.next, %17
  br i1 %18, label %.lr.ph, label %.preheader42, !llvm.loop !9

.lr.ph46:                                         ; preds = %.lr.ph46, %.lr.ph46.preheader.new
  %indvars.iv69 = phi i64 [ 0, %.lr.ph46.preheader.new ], [ %indvars.iv.next70.3, %.lr.ph46 ]
  %niter = phi i64 [ 0, %.lr.ph46.preheader.new ], [ %niter.next.3, %.lr.ph46 ]
  %19 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv69
  %20 = load i32, ptr %19, align 16, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %22, align 4, !tbaa !5
  %indvars.iv.next70 = or disjoint i64 %indvars.iv69, 1
  %25 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv.next70
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %28, align 4, !tbaa !5
  %indvars.iv.next70.1 = or disjoint i64 %indvars.iv69, 2
  %31 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv.next70.1
  %32 = load i32, ptr %31, align 8, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %34, align 4, !tbaa !5
  %indvars.iv.next70.2 = or disjoint i64 %indvars.iv69, 3
  %37 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv.next70.2
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %40, align 4, !tbaa !5
  %indvars.iv.next70.3 = add nuw nsw i64 %indvars.iv69, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph46, !llvm.loop !11

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph46, %.lr.ph46.preheader
  %indvars.iv69.unr = phi i64 [ 0, %.lr.ph46.preheader ], [ %indvars.iv.next70.3, %.lr.ph46 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge.loopexit, label %.lr.ph46.epil

.lr.ph46.epil:                                    ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph46.epil
  %indvars.iv69.epil = phi i64 [ %indvars.iv.next70.epil, %.lr.ph46.epil ], [ %indvars.iv69.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph46.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %43 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv69.epil
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %46, align 4, !tbaa !5
  %indvars.iv.next70.epil = add nuw nsw i64 %indvars.iv69.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge.loopexit, label %.lr.ph46.epil, !llvm.loop !12

._crit_edge.loopexit:                             ; preds = %.lr.ph46.epil, %._crit_edge.loopexit.unr-lcssa
  %.pre = load i32, ptr %1, align 16, !tbaa !5
  %.phi.trans.insert = getelementptr inbounds i8, ptr %1, i64 4
  %.pre107 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  %.phi.trans.insert108 = getelementptr inbounds i8, ptr %1, i64 8
  %.pre109 = load i32, ptr %.phi.trans.insert108, align 8, !tbaa !5
  %.phi.trans.insert110 = getelementptr inbounds i8, ptr %1, i64 12
  %.pre111 = load i32, ptr %.phi.trans.insert110, align 4, !tbaa !5
  %.phi.trans.insert112 = getelementptr inbounds i8, ptr %1, i64 16
  %.pre113 = load i32, ptr %.phi.trans.insert112, align 16, !tbaa !5
  %.phi.trans.insert114 = getelementptr inbounds i8, ptr %1, i64 20
  %.pre115 = load i32, ptr %.phi.trans.insert114, align 4, !tbaa !5
  %.phi.trans.insert116 = getelementptr inbounds i8, ptr %1, i64 24
  %.pre117 = load i32, ptr %.phi.trans.insert116, align 8, !tbaa !5
  %.phi.trans.insert118 = getelementptr inbounds i8, ptr %1, i64 28
  %.pre119 = load i32, ptr %.phi.trans.insert118, align 4, !tbaa !5
  %.phi.trans.insert120 = getelementptr inbounds i8, ptr %1, i64 32
  %.pre121 = load i32, ptr %.phi.trans.insert120, align 16, !tbaa !5
  %.phi.trans.insert122 = getelementptr inbounds i8, ptr %1, i64 36
  %.pre123 = load i32, ptr %.phi.trans.insert122, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %0, %._crit_edge.loopexit, %.preheader42
  %.promoted.9 = phi i32 [ %.pre123, %._crit_edge.loopexit ], [ 0, %.preheader42 ], [ 0, %0 ]
  %.promoted.8 = phi i32 [ %.pre121, %._crit_edge.loopexit ], [ 0, %.preheader42 ], [ 0, %0 ]
  %.promoted.7 = phi i32 [ %.pre119, %._crit_edge.loopexit ], [ 0, %.preheader42 ], [ 0, %0 ]
  %.promoted.6 = phi i32 [ %.pre117, %._crit_edge.loopexit ], [ 0, %.preheader42 ], [ 0, %0 ]
  %.promoted.5 = phi i32 [ %.pre115, %._crit_edge.loopexit ], [ 0, %.preheader42 ], [ 0, %0 ]
  %.promoted.4 = phi i32 [ %.pre113, %._crit_edge.loopexit ], [ 0, %.preheader42 ], [ 0, %0 ]
  %.promoted.3 = phi i32 [ %.pre111, %._crit_edge.loopexit ], [ 0, %.preheader42 ], [ 0, %0 ]
  %.promoted.2 = phi i32 [ %.pre109, %._crit_edge.loopexit ], [ 0, %.preheader42 ], [ 0, %0 ]
  %.promoted.1 = phi i32 [ %.pre107, %._crit_edge.loopexit ], [ 0, %.preheader42 ], [ 0, %0 ]
  %.promoted = phi i32 [ %.pre, %._crit_edge.loopexit ], [ 0, %.preheader42 ], [ 0, %0 ]
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 0, i32 noundef %.promoted)
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 1, i32 noundef %.promoted.1)
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 2, i32 noundef %.promoted.2)
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 3, i32 noundef %.promoted.3)
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 4, i32 noundef %.promoted.4)
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 5, i32 noundef %.promoted.5)
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 6, i32 noundef %.promoted.6)
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 7, i32 noundef %.promoted.7)
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 8, i32 noundef %.promoted.8)
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 9, i32 noundef %.promoted.9)
  %60 = add nsw i32 %.promoted.1, %.promoted
  %61 = add nsw i32 %.promoted.2, %60
  %62 = add nsw i32 %.promoted.3, %61
  %63 = add nsw i32 %.promoted.4, %62
  %64 = add nsw i32 %.promoted.5, %63
  %65 = add nsw i32 %.promoted.6, %64
  %66 = add nsw i32 %.promoted.7, %65
  %67 = add nsw i32 %.promoted.8, %66
  %68 = add nsw i32 %.promoted.9, %67
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 0, i32 noundef %.promoted)
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 1, i32 noundef %60)
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 2, i32 noundef %61)
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 3, i32 noundef %62)
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 4, i32 noundef %63)
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 5, i32 noundef %64)
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 6, i32 noundef %65)
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 7, i32 noundef %66)
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 8, i32 noundef %67)
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 9, i32 noundef %68)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %3, i8 0, i64 40, i1 false), !tbaa !5
  %.not4053 = icmp eq i32 %.promoted, 0
  br i1 %.not4053, label %._crit_edge57, label %.lr.ph56.preheader

.lr.ph56.preheader:                               ; preds = %._crit_edge
  %80 = add i32 %.promoted, -1
  %81 = sext i32 %.promoted to i64
  %82 = zext i32 %80 to i64
  %83 = sub nsw i64 %81, %82
  %84 = shl nsw i64 %83, 2
  %scevgep = getelementptr i8, ptr %3, i64 %84
  %85 = zext i32 %.promoted to i64
  %86 = shl nuw nsw i64 %85, 2
  call void @llvm.memset.p0.i64(ptr align 4 %scevgep, i8 0, i64 %86, i1 false), !tbaa !5
  br label %._crit_edge57

._crit_edge57:                                    ; preds = %.lr.ph56.preheader, %._crit_edge
  %.not4053.1 = icmp eq i32 %.promoted.1, 0
  br i1 %.not4053.1, label %._crit_edge57.1, label %.lr.ph56.preheader.1

.lr.ph56.preheader.1:                             ; preds = %._crit_edge57
  %87 = sext i32 %60 to i64
  %88 = zext i32 %.promoted.1 to i64
  %min.iters.check = icmp ult i32 %.promoted.1, 8
  br i1 %min.iters.check, label %.lr.ph56.1.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph56.preheader.1
  %n.vec = and i64 %88, 4294967288
  %ind.end = sub nsw i64 %87, %n.vec
  %.cast = trunc nuw i64 %n.vec to i32
  %ind.end133 = sub i32 %.promoted.1, %.cast
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = sub i64 %87, %index
  %89 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %offset.idx
  %90 = getelementptr inbounds i8, ptr %89, i64 -12
  %91 = getelementptr inbounds i8, ptr %89, i64 -28
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %90, align 4, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %91, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %92 = icmp eq i64 %index.next, %n.vec
  br i1 %92, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %88
  br i1 %cmp.n, label %._crit_edge57.1, label %.lr.ph56.1.preheader

.lr.ph56.1.preheader:                             ; preds = %middle.block, %.lr.ph56.preheader.1
  %indvars.iv87.1.ph = phi i64 [ %87, %.lr.ph56.preheader.1 ], [ %ind.end, %middle.block ]
  %.in.ph = phi i32 [ %.promoted.1, %.lr.ph56.preheader.1 ], [ %ind.end133, %middle.block ]
  br label %.lr.ph56.1

.lr.ph56.1:                                       ; preds = %.lr.ph56.1.preheader, %.lr.ph56.1
  %indvars.iv87.1 = phi i64 [ %indvars.iv.next88.1, %.lr.ph56.1 ], [ %indvars.iv87.1.ph, %.lr.ph56.1.preheader ]
  %.in = phi i32 [ %93, %.lr.ph56.1 ], [ %.in.ph, %.lr.ph56.1.preheader ]
  %93 = add nsw i32 %.in, -1
  %94 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %indvars.iv87.1
  store i32 1, ptr %94, align 4, !tbaa !5
  %indvars.iv.next88.1 = add nsw i64 %indvars.iv87.1, -1
  %.not40.1 = icmp eq i32 %93, 0
  br i1 %.not40.1, label %._crit_edge57.1, label %.lr.ph56.1, !llvm.loop !17

._crit_edge57.1:                                  ; preds = %.lr.ph56.1, %middle.block, %._crit_edge57
  %.not4053.2 = icmp eq i32 %.promoted.2, 0
  br i1 %.not4053.2, label %._crit_edge57.2, label %.lr.ph56.preheader.2

.lr.ph56.preheader.2:                             ; preds = %._crit_edge57.1
  %95 = sext i32 %61 to i64
  %96 = zext i32 %.promoted.2 to i64
  %min.iters.check137 = icmp ult i32 %.promoted.2, 8
  br i1 %min.iters.check137, label %.lr.ph56.2.preheader, label %vector.ph138

vector.ph138:                                     ; preds = %.lr.ph56.preheader.2
  %n.vec140 = and i64 %96, 4294967288
  %ind.end141 = sub nsw i64 %95, %n.vec140
  %.cast143 = trunc nuw i64 %n.vec140 to i32
  %ind.end144 = sub i32 %.promoted.2, %.cast143
  br label %vector.body146

vector.body146:                                   ; preds = %vector.body146, %vector.ph138
  %index147 = phi i64 [ 0, %vector.ph138 ], [ %index.next149, %vector.body146 ]
  %offset.idx148 = sub i64 %95, %index147
  %97 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %offset.idx148
  %98 = getelementptr inbounds i8, ptr %97, i64 -12
  %99 = getelementptr inbounds i8, ptr %97, i64 -28
  store <4 x i32> <i32 2, i32 2, i32 2, i32 2>, ptr %98, align 4, !tbaa !5
  store <4 x i32> <i32 2, i32 2, i32 2, i32 2>, ptr %99, align 4, !tbaa !5
  %index.next149 = add nuw i64 %index147, 8
  %100 = icmp eq i64 %index.next149, %n.vec140
  br i1 %100, label %middle.block135, label %vector.body146, !llvm.loop !18

middle.block135:                                  ; preds = %vector.body146
  %cmp.n150 = icmp eq i64 %n.vec140, %96
  br i1 %cmp.n150, label %._crit_edge57.2, label %.lr.ph56.2.preheader

.lr.ph56.2.preheader:                             ; preds = %middle.block135, %.lr.ph56.preheader.2
  %indvars.iv87.2.ph = phi i64 [ %95, %.lr.ph56.preheader.2 ], [ %ind.end141, %middle.block135 ]
  %.in125.ph = phi i32 [ %.promoted.2, %.lr.ph56.preheader.2 ], [ %ind.end144, %middle.block135 ]
  br label %.lr.ph56.2

.lr.ph56.2:                                       ; preds = %.lr.ph56.2.preheader, %.lr.ph56.2
  %indvars.iv87.2 = phi i64 [ %indvars.iv.next88.2, %.lr.ph56.2 ], [ %indvars.iv87.2.ph, %.lr.ph56.2.preheader ]
  %.in125 = phi i32 [ %101, %.lr.ph56.2 ], [ %.in125.ph, %.lr.ph56.2.preheader ]
  %101 = add nsw i32 %.in125, -1
  %102 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %indvars.iv87.2
  store i32 2, ptr %102, align 4, !tbaa !5
  %indvars.iv.next88.2 = add nsw i64 %indvars.iv87.2, -1
  %.not40.2 = icmp eq i32 %101, 0
  br i1 %.not40.2, label %._crit_edge57.2, label %.lr.ph56.2, !llvm.loop !19

._crit_edge57.2:                                  ; preds = %.lr.ph56.2, %middle.block135, %._crit_edge57.1
  %.not4053.3 = icmp eq i32 %.promoted.3, 0
  br i1 %.not4053.3, label %._crit_edge57.3, label %.lr.ph56.preheader.3

.lr.ph56.preheader.3:                             ; preds = %._crit_edge57.2
  %103 = sext i32 %62 to i64
  %104 = zext i32 %.promoted.3 to i64
  %min.iters.check153 = icmp ult i32 %.promoted.3, 8
  br i1 %min.iters.check153, label %.lr.ph56.3.preheader, label %vector.ph154

vector.ph154:                                     ; preds = %.lr.ph56.preheader.3
  %n.vec156 = and i64 %104, 4294967288
  %ind.end157 = sub nsw i64 %103, %n.vec156
  %.cast159 = trunc nuw i64 %n.vec156 to i32
  %ind.end160 = sub i32 %.promoted.3, %.cast159
  br label %vector.body162

vector.body162:                                   ; preds = %vector.body162, %vector.ph154
  %index163 = phi i64 [ 0, %vector.ph154 ], [ %index.next165, %vector.body162 ]
  %offset.idx164 = sub i64 %103, %index163
  %105 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %offset.idx164
  %106 = getelementptr inbounds i8, ptr %105, i64 -12
  %107 = getelementptr inbounds i8, ptr %105, i64 -28
  store <4 x i32> <i32 3, i32 3, i32 3, i32 3>, ptr %106, align 4, !tbaa !5
  store <4 x i32> <i32 3, i32 3, i32 3, i32 3>, ptr %107, align 4, !tbaa !5
  %index.next165 = add nuw i64 %index163, 8
  %108 = icmp eq i64 %index.next165, %n.vec156
  br i1 %108, label %middle.block151, label %vector.body162, !llvm.loop !20

middle.block151:                                  ; preds = %vector.body162
  %cmp.n166 = icmp eq i64 %n.vec156, %104
  br i1 %cmp.n166, label %._crit_edge57.3, label %.lr.ph56.3.preheader

.lr.ph56.3.preheader:                             ; preds = %middle.block151, %.lr.ph56.preheader.3
  %indvars.iv87.3.ph = phi i64 [ %103, %.lr.ph56.preheader.3 ], [ %ind.end157, %middle.block151 ]
  %.in126.ph = phi i32 [ %.promoted.3, %.lr.ph56.preheader.3 ], [ %ind.end160, %middle.block151 ]
  br label %.lr.ph56.3

.lr.ph56.3:                                       ; preds = %.lr.ph56.3.preheader, %.lr.ph56.3
  %indvars.iv87.3 = phi i64 [ %indvars.iv.next88.3, %.lr.ph56.3 ], [ %indvars.iv87.3.ph, %.lr.ph56.3.preheader ]
  %.in126 = phi i32 [ %109, %.lr.ph56.3 ], [ %.in126.ph, %.lr.ph56.3.preheader ]
  %109 = add nsw i32 %.in126, -1
  %110 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %indvars.iv87.3
  store i32 3, ptr %110, align 4, !tbaa !5
  %indvars.iv.next88.3 = add nsw i64 %indvars.iv87.3, -1
  %.not40.3 = icmp eq i32 %109, 0
  br i1 %.not40.3, label %._crit_edge57.3, label %.lr.ph56.3, !llvm.loop !21

._crit_edge57.3:                                  ; preds = %.lr.ph56.3, %middle.block151, %._crit_edge57.2
  %.not4053.4 = icmp eq i32 %.promoted.4, 0
  br i1 %.not4053.4, label %._crit_edge57.4, label %.lr.ph56.preheader.4

.lr.ph56.preheader.4:                             ; preds = %._crit_edge57.3
  %111 = sext i32 %63 to i64
  %112 = zext i32 %.promoted.4 to i64
  %min.iters.check169 = icmp ult i32 %.promoted.4, 8
  br i1 %min.iters.check169, label %.lr.ph56.4.preheader, label %vector.ph170

vector.ph170:                                     ; preds = %.lr.ph56.preheader.4
  %n.vec172 = and i64 %112, 4294967288
  %ind.end173 = sub nsw i64 %111, %n.vec172
  %.cast175 = trunc nuw i64 %n.vec172 to i32
  %ind.end176 = sub i32 %.promoted.4, %.cast175
  br label %vector.body178

vector.body178:                                   ; preds = %vector.body178, %vector.ph170
  %index179 = phi i64 [ 0, %vector.ph170 ], [ %index.next181, %vector.body178 ]
  %offset.idx180 = sub i64 %111, %index179
  %113 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %offset.idx180
  %114 = getelementptr inbounds i8, ptr %113, i64 -12
  %115 = getelementptr inbounds i8, ptr %113, i64 -28
  store <4 x i32> <i32 4, i32 4, i32 4, i32 4>, ptr %114, align 4, !tbaa !5
  store <4 x i32> <i32 4, i32 4, i32 4, i32 4>, ptr %115, align 4, !tbaa !5
  %index.next181 = add nuw i64 %index179, 8
  %116 = icmp eq i64 %index.next181, %n.vec172
  br i1 %116, label %middle.block167, label %vector.body178, !llvm.loop !22

middle.block167:                                  ; preds = %vector.body178
  %cmp.n182 = icmp eq i64 %n.vec172, %112
  br i1 %cmp.n182, label %._crit_edge57.4, label %.lr.ph56.4.preheader

.lr.ph56.4.preheader:                             ; preds = %middle.block167, %.lr.ph56.preheader.4
  %indvars.iv87.4.ph = phi i64 [ %111, %.lr.ph56.preheader.4 ], [ %ind.end173, %middle.block167 ]
  %.in127.ph = phi i32 [ %.promoted.4, %.lr.ph56.preheader.4 ], [ %ind.end176, %middle.block167 ]
  br label %.lr.ph56.4

.lr.ph56.4:                                       ; preds = %.lr.ph56.4.preheader, %.lr.ph56.4
  %indvars.iv87.4 = phi i64 [ %indvars.iv.next88.4, %.lr.ph56.4 ], [ %indvars.iv87.4.ph, %.lr.ph56.4.preheader ]
  %.in127 = phi i32 [ %117, %.lr.ph56.4 ], [ %.in127.ph, %.lr.ph56.4.preheader ]
  %117 = add nsw i32 %.in127, -1
  %118 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %indvars.iv87.4
  store i32 4, ptr %118, align 4, !tbaa !5
  %indvars.iv.next88.4 = add nsw i64 %indvars.iv87.4, -1
  %.not40.4 = icmp eq i32 %117, 0
  br i1 %.not40.4, label %._crit_edge57.4, label %.lr.ph56.4, !llvm.loop !23

._crit_edge57.4:                                  ; preds = %.lr.ph56.4, %middle.block167, %._crit_edge57.3
  %.not4053.5 = icmp eq i32 %.promoted.5, 0
  br i1 %.not4053.5, label %._crit_edge57.5, label %.lr.ph56.preheader.5

.lr.ph56.preheader.5:                             ; preds = %._crit_edge57.4
  %119 = sext i32 %64 to i64
  %120 = zext i32 %.promoted.5 to i64
  %min.iters.check185 = icmp ult i32 %.promoted.5, 8
  br i1 %min.iters.check185, label %.lr.ph56.5.preheader, label %vector.ph186

vector.ph186:                                     ; preds = %.lr.ph56.preheader.5
  %n.vec188 = and i64 %120, 4294967288
  %ind.end189 = sub nsw i64 %119, %n.vec188
  %.cast191 = trunc nuw i64 %n.vec188 to i32
  %ind.end192 = sub i32 %.promoted.5, %.cast191
  br label %vector.body194

vector.body194:                                   ; preds = %vector.body194, %vector.ph186
  %index195 = phi i64 [ 0, %vector.ph186 ], [ %index.next197, %vector.body194 ]
  %offset.idx196 = sub i64 %119, %index195
  %121 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %offset.idx196
  %122 = getelementptr inbounds i8, ptr %121, i64 -12
  %123 = getelementptr inbounds i8, ptr %121, i64 -28
  store <4 x i32> <i32 5, i32 5, i32 5, i32 5>, ptr %122, align 4, !tbaa !5
  store <4 x i32> <i32 5, i32 5, i32 5, i32 5>, ptr %123, align 4, !tbaa !5
  %index.next197 = add nuw i64 %index195, 8
  %124 = icmp eq i64 %index.next197, %n.vec188
  br i1 %124, label %middle.block183, label %vector.body194, !llvm.loop !24

middle.block183:                                  ; preds = %vector.body194
  %cmp.n198 = icmp eq i64 %n.vec188, %120
  br i1 %cmp.n198, label %._crit_edge57.5, label %.lr.ph56.5.preheader

.lr.ph56.5.preheader:                             ; preds = %middle.block183, %.lr.ph56.preheader.5
  %indvars.iv87.5.ph = phi i64 [ %119, %.lr.ph56.preheader.5 ], [ %ind.end189, %middle.block183 ]
  %.in128.ph = phi i32 [ %.promoted.5, %.lr.ph56.preheader.5 ], [ %ind.end192, %middle.block183 ]
  br label %.lr.ph56.5

.lr.ph56.5:                                       ; preds = %.lr.ph56.5.preheader, %.lr.ph56.5
  %indvars.iv87.5 = phi i64 [ %indvars.iv.next88.5, %.lr.ph56.5 ], [ %indvars.iv87.5.ph, %.lr.ph56.5.preheader ]
  %.in128 = phi i32 [ %125, %.lr.ph56.5 ], [ %.in128.ph, %.lr.ph56.5.preheader ]
  %125 = add nsw i32 %.in128, -1
  %126 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %indvars.iv87.5
  store i32 5, ptr %126, align 4, !tbaa !5
  %indvars.iv.next88.5 = add nsw i64 %indvars.iv87.5, -1
  %.not40.5 = icmp eq i32 %125, 0
  br i1 %.not40.5, label %._crit_edge57.5, label %.lr.ph56.5, !llvm.loop !25

._crit_edge57.5:                                  ; preds = %.lr.ph56.5, %middle.block183, %._crit_edge57.4
  %.not4053.6 = icmp eq i32 %.promoted.6, 0
  br i1 %.not4053.6, label %._crit_edge57.6, label %.lr.ph56.preheader.6

.lr.ph56.preheader.6:                             ; preds = %._crit_edge57.5
  %127 = sext i32 %65 to i64
  %128 = zext i32 %.promoted.6 to i64
  %min.iters.check201 = icmp ult i32 %.promoted.6, 8
  br i1 %min.iters.check201, label %.lr.ph56.6.preheader, label %vector.ph202

vector.ph202:                                     ; preds = %.lr.ph56.preheader.6
  %n.vec204 = and i64 %128, 4294967288
  %ind.end205 = sub nsw i64 %127, %n.vec204
  %.cast207 = trunc nuw i64 %n.vec204 to i32
  %ind.end208 = sub i32 %.promoted.6, %.cast207
  br label %vector.body210

vector.body210:                                   ; preds = %vector.body210, %vector.ph202
  %index211 = phi i64 [ 0, %vector.ph202 ], [ %index.next213, %vector.body210 ]
  %offset.idx212 = sub i64 %127, %index211
  %129 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %offset.idx212
  %130 = getelementptr inbounds i8, ptr %129, i64 -12
  %131 = getelementptr inbounds i8, ptr %129, i64 -28
  store <4 x i32> <i32 6, i32 6, i32 6, i32 6>, ptr %130, align 4, !tbaa !5
  store <4 x i32> <i32 6, i32 6, i32 6, i32 6>, ptr %131, align 4, !tbaa !5
  %index.next213 = add nuw i64 %index211, 8
  %132 = icmp eq i64 %index.next213, %n.vec204
  br i1 %132, label %middle.block199, label %vector.body210, !llvm.loop !26

middle.block199:                                  ; preds = %vector.body210
  %cmp.n214 = icmp eq i64 %n.vec204, %128
  br i1 %cmp.n214, label %._crit_edge57.6, label %.lr.ph56.6.preheader

.lr.ph56.6.preheader:                             ; preds = %middle.block199, %.lr.ph56.preheader.6
  %indvars.iv87.6.ph = phi i64 [ %127, %.lr.ph56.preheader.6 ], [ %ind.end205, %middle.block199 ]
  %.in129.ph = phi i32 [ %.promoted.6, %.lr.ph56.preheader.6 ], [ %ind.end208, %middle.block199 ]
  br label %.lr.ph56.6

.lr.ph56.6:                                       ; preds = %.lr.ph56.6.preheader, %.lr.ph56.6
  %indvars.iv87.6 = phi i64 [ %indvars.iv.next88.6, %.lr.ph56.6 ], [ %indvars.iv87.6.ph, %.lr.ph56.6.preheader ]
  %.in129 = phi i32 [ %133, %.lr.ph56.6 ], [ %.in129.ph, %.lr.ph56.6.preheader ]
  %133 = add nsw i32 %.in129, -1
  %134 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %indvars.iv87.6
  store i32 6, ptr %134, align 4, !tbaa !5
  %indvars.iv.next88.6 = add nsw i64 %indvars.iv87.6, -1
  %.not40.6 = icmp eq i32 %133, 0
  br i1 %.not40.6, label %._crit_edge57.6, label %.lr.ph56.6, !llvm.loop !27

._crit_edge57.6:                                  ; preds = %.lr.ph56.6, %middle.block199, %._crit_edge57.5
  %.not4053.7 = icmp eq i32 %.promoted.7, 0
  br i1 %.not4053.7, label %._crit_edge57.7, label %.lr.ph56.preheader.7

.lr.ph56.preheader.7:                             ; preds = %._crit_edge57.6
  %135 = sext i32 %66 to i64
  %136 = zext i32 %.promoted.7 to i64
  %min.iters.check217 = icmp ult i32 %.promoted.7, 8
  br i1 %min.iters.check217, label %.lr.ph56.7.preheader, label %vector.ph218

vector.ph218:                                     ; preds = %.lr.ph56.preheader.7
  %n.vec220 = and i64 %136, 4294967288
  %ind.end221 = sub nsw i64 %135, %n.vec220
  %.cast223 = trunc nuw i64 %n.vec220 to i32
  %ind.end224 = sub i32 %.promoted.7, %.cast223
  br label %vector.body226

vector.body226:                                   ; preds = %vector.body226, %vector.ph218
  %index227 = phi i64 [ 0, %vector.ph218 ], [ %index.next229, %vector.body226 ]
  %offset.idx228 = sub i64 %135, %index227
  %137 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %offset.idx228
  %138 = getelementptr inbounds i8, ptr %137, i64 -12
  %139 = getelementptr inbounds i8, ptr %137, i64 -28
  store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, ptr %138, align 4, !tbaa !5
  store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, ptr %139, align 4, !tbaa !5
  %index.next229 = add nuw i64 %index227, 8
  %140 = icmp eq i64 %index.next229, %n.vec220
  br i1 %140, label %middle.block215, label %vector.body226, !llvm.loop !28

middle.block215:                                  ; preds = %vector.body226
  %cmp.n230 = icmp eq i64 %n.vec220, %136
  br i1 %cmp.n230, label %._crit_edge57.7, label %.lr.ph56.7.preheader

.lr.ph56.7.preheader:                             ; preds = %middle.block215, %.lr.ph56.preheader.7
  %indvars.iv87.7.ph = phi i64 [ %135, %.lr.ph56.preheader.7 ], [ %ind.end221, %middle.block215 ]
  %.in130.ph = phi i32 [ %.promoted.7, %.lr.ph56.preheader.7 ], [ %ind.end224, %middle.block215 ]
  br label %.lr.ph56.7

.lr.ph56.7:                                       ; preds = %.lr.ph56.7.preheader, %.lr.ph56.7
  %indvars.iv87.7 = phi i64 [ %indvars.iv.next88.7, %.lr.ph56.7 ], [ %indvars.iv87.7.ph, %.lr.ph56.7.preheader ]
  %.in130 = phi i32 [ %141, %.lr.ph56.7 ], [ %.in130.ph, %.lr.ph56.7.preheader ]
  %141 = add nsw i32 %.in130, -1
  %142 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %indvars.iv87.7
  store i32 7, ptr %142, align 4, !tbaa !5
  %indvars.iv.next88.7 = add nsw i64 %indvars.iv87.7, -1
  %.not40.7 = icmp eq i32 %141, 0
  br i1 %.not40.7, label %._crit_edge57.7, label %.lr.ph56.7, !llvm.loop !29

._crit_edge57.7:                                  ; preds = %.lr.ph56.7, %middle.block215, %._crit_edge57.6
  %.not4053.8 = icmp eq i32 %.promoted.8, 0
  br i1 %.not4053.8, label %._crit_edge57.8, label %.lr.ph56.preheader.8

.lr.ph56.preheader.8:                             ; preds = %._crit_edge57.7
  %143 = sext i32 %67 to i64
  %144 = zext i32 %.promoted.8 to i64
  %min.iters.check233 = icmp ult i32 %.promoted.8, 8
  br i1 %min.iters.check233, label %.lr.ph56.8.preheader, label %vector.ph234

vector.ph234:                                     ; preds = %.lr.ph56.preheader.8
  %n.vec236 = and i64 %144, 4294967288
  %ind.end237 = sub nsw i64 %143, %n.vec236
  %.cast239 = trunc nuw i64 %n.vec236 to i32
  %ind.end240 = sub i32 %.promoted.8, %.cast239
  br label %vector.body242

vector.body242:                                   ; preds = %vector.body242, %vector.ph234
  %index243 = phi i64 [ 0, %vector.ph234 ], [ %index.next245, %vector.body242 ]
  %offset.idx244 = sub i64 %143, %index243
  %145 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %offset.idx244
  %146 = getelementptr inbounds i8, ptr %145, i64 -12
  %147 = getelementptr inbounds i8, ptr %145, i64 -28
  store <4 x i32> <i32 8, i32 8, i32 8, i32 8>, ptr %146, align 4, !tbaa !5
  store <4 x i32> <i32 8, i32 8, i32 8, i32 8>, ptr %147, align 4, !tbaa !5
  %index.next245 = add nuw i64 %index243, 8
  %148 = icmp eq i64 %index.next245, %n.vec236
  br i1 %148, label %middle.block231, label %vector.body242, !llvm.loop !30

middle.block231:                                  ; preds = %vector.body242
  %cmp.n246 = icmp eq i64 %n.vec236, %144
  br i1 %cmp.n246, label %._crit_edge57.8, label %.lr.ph56.8.preheader

.lr.ph56.8.preheader:                             ; preds = %middle.block231, %.lr.ph56.preheader.8
  %indvars.iv87.8.ph = phi i64 [ %143, %.lr.ph56.preheader.8 ], [ %ind.end237, %middle.block231 ]
  %.in131.ph = phi i32 [ %.promoted.8, %.lr.ph56.preheader.8 ], [ %ind.end240, %middle.block231 ]
  br label %.lr.ph56.8

.lr.ph56.8:                                       ; preds = %.lr.ph56.8.preheader, %.lr.ph56.8
  %indvars.iv87.8 = phi i64 [ %indvars.iv.next88.8, %.lr.ph56.8 ], [ %indvars.iv87.8.ph, %.lr.ph56.8.preheader ]
  %.in131 = phi i32 [ %149, %.lr.ph56.8 ], [ %.in131.ph, %.lr.ph56.8.preheader ]
  %149 = add nsw i32 %.in131, -1
  %150 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %indvars.iv87.8
  store i32 8, ptr %150, align 4, !tbaa !5
  %indvars.iv.next88.8 = add nsw i64 %indvars.iv87.8, -1
  %.not40.8 = icmp eq i32 %149, 0
  br i1 %.not40.8, label %._crit_edge57.8, label %.lr.ph56.8, !llvm.loop !31

._crit_edge57.8:                                  ; preds = %.lr.ph56.8, %middle.block231, %._crit_edge57.7
  %.not4053.9 = icmp eq i32 %.promoted.9, 0
  br i1 %.not4053.9, label %._crit_edge57.9, label %.lr.ph56.preheader.9

.lr.ph56.preheader.9:                             ; preds = %._crit_edge57.8
  %151 = sext i32 %68 to i64
  %152 = zext i32 %.promoted.9 to i64
  %min.iters.check249 = icmp ult i32 %.promoted.9, 8
  br i1 %min.iters.check249, label %.lr.ph56.9.preheader, label %vector.ph250

vector.ph250:                                     ; preds = %.lr.ph56.preheader.9
  %n.vec252 = and i64 %152, 4294967288
  %ind.end253 = sub nsw i64 %151, %n.vec252
  %.cast255 = trunc nuw i64 %n.vec252 to i32
  %ind.end256 = sub i32 %.promoted.9, %.cast255
  br label %vector.body258

vector.body258:                                   ; preds = %vector.body258, %vector.ph250
  %index259 = phi i64 [ 0, %vector.ph250 ], [ %index.next261, %vector.body258 ]
  %offset.idx260 = sub i64 %151, %index259
  %153 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %offset.idx260
  %154 = getelementptr inbounds i8, ptr %153, i64 -12
  %155 = getelementptr inbounds i8, ptr %153, i64 -28
  store <4 x i32> <i32 9, i32 9, i32 9, i32 9>, ptr %154, align 4, !tbaa !5
  store <4 x i32> <i32 9, i32 9, i32 9, i32 9>, ptr %155, align 4, !tbaa !5
  %index.next261 = add nuw i64 %index259, 8
  %156 = icmp eq i64 %index.next261, %n.vec252
  br i1 %156, label %middle.block247, label %vector.body258, !llvm.loop !32

middle.block247:                                  ; preds = %vector.body258
  %cmp.n262 = icmp eq i64 %n.vec252, %152
  br i1 %cmp.n262, label %._crit_edge57.9, label %.lr.ph56.9.preheader

.lr.ph56.9.preheader:                             ; preds = %middle.block247, %.lr.ph56.preheader.9
  %indvars.iv87.9.ph = phi i64 [ %151, %.lr.ph56.preheader.9 ], [ %ind.end253, %middle.block247 ]
  %.in132.ph = phi i32 [ %.promoted.9, %.lr.ph56.preheader.9 ], [ %ind.end256, %middle.block247 ]
  br label %.lr.ph56.9

.lr.ph56.9:                                       ; preds = %.lr.ph56.9.preheader, %.lr.ph56.9
  %indvars.iv87.9 = phi i64 [ %indvars.iv.next88.9, %.lr.ph56.9 ], [ %indvars.iv87.9.ph, %.lr.ph56.9.preheader ]
  %.in132 = phi i32 [ %157, %.lr.ph56.9 ], [ %.in132.ph, %.lr.ph56.9.preheader ]
  %157 = add nsw i32 %.in132, -1
  %158 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %indvars.iv87.9
  store i32 9, ptr %158, align 4, !tbaa !5
  %indvars.iv.next88.9 = add nsw i64 %indvars.iv87.9, -1
  %.not40.9 = icmp eq i32 %157, 0
  br i1 %.not40.9, label %._crit_edge57.9, label %.lr.ph56.9, !llvm.loop !33

._crit_edge57.9:                                  ; preds = %.lr.ph56.9, %middle.block247, %._crit_edge57.8
  %159 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %160 = load i32, ptr %2, align 4, !tbaa !5
  %.not60 = icmp slt i32 %160, 1
  br i1 %.not60, label %._crit_edge64, label %.lr.ph63

.lr.ph63:                                         ; preds = %._crit_edge57.9, %.lr.ph63
  %indvars.iv94 = phi i64 [ %indvars.iv.next95, %.lr.ph63 ], [ 1, %._crit_edge57.9 ]
  %161 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %indvars.iv94
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %162)
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %164 = load i32, ptr %2, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %.not.not = icmp slt i64 %indvars.iv94, %165
  br i1 %.not.not, label %.lr.ph63, label %._crit_edge64, !llvm.loop !34

._crit_edge64:                                    ; preds = %.lr.ph63, %._crit_edge57.9
  call void @llvm.stackrestore.p0(ptr %8)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #5
  ret i32 0
}

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

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

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

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

; 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 nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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

attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !10, !15, !16}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !10, !16, !15}
!18 = distinct !{!18, !10, !15, !16}
!19 = distinct !{!19, !10, !16, !15}
!20 = distinct !{!20, !10, !15, !16}
!21 = distinct !{!21, !10, !16, !15}
!22 = distinct !{!22, !10, !15, !16}
!23 = distinct !{!23, !10, !16, !15}
!24 = distinct !{!24, !10, !15, !16}
!25 = distinct !{!25, !10, !16, !15}
!26 = distinct !{!26, !10, !15, !16}
!27 = distinct !{!27, !10, !16, !15}
!28 = distinct !{!28, !10, !15, !16}
!29 = distinct !{!29, !10, !16, !15}
!30 = distinct !{!30, !10, !15, !16}
!31 = distinct !{!31, !10, !16, !15}
!32 = distinct !{!32, !10, !15, !16}
!33 = distinct !{!33, !10, !16, !15}
!34 = distinct !{!34, !10}


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