; LLVM IR from PacktPublishing/CPP-Data-Structures-and-Algorithms :: Chapter04/Counting_Sort/Counting_Sort.ll (Z12CountingSortPii)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12CountingSortPii(ptr noundef %0, i32 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %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
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 10, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %10 = load i32, ptr %5, align 4, !tbaa !9
  %11 = sext i32 %10 to i64
  %12 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %11, i64 4)
  %13 = extractvalue { i64, i1 } %12, 1
  %14 = extractvalue { i64, i1 } %12, 0
  %15 = select i1 %13, i64 -1, i64 %14
  %16 = call noalias noundef nonnull ptr @_Znam(i64 noundef %15) #5
  store ptr %16, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %33, %2
  %18 = load i32, ptr %7, align 4, !tbaa !9
  %19 = load i32, ptr %4, align 4, !tbaa !9
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %22, label %21

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

22:                                               ; preds = %17
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = load i32, ptr %7, align 4, !tbaa !9
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds i32, ptr %24, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds i32, ptr %23, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !9
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %30, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %22
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %7, align 4, !tbaa !9
  br label %17, !llvm.loop !11

36:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %64, %36
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = load i32, ptr %5, align 4, !tbaa !9
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %67

42:                                               ; preds = %37
  br label %43

43:                                               ; preds = %50, %42
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds i32, ptr %44, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %50, label %63

50:                                               ; preds = %43
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %8, align 4, !tbaa !9
  %55 = sext i32 %53 to i64
  %56 = getelementptr inbounds i32, ptr %52, i64 %55
  store i32 %51, ptr %56, align 4, !tbaa !9
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i32, ptr %57, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = add nsw i32 %61, -1
  store i32 %62, ptr %60, align 4, !tbaa !9
  br label %43, !llvm.loop !13

63:                                               ; preds = %43
  br label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %9, align 4, !tbaa !9
  br label %37, !llvm.loop !14

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12CountingSortPii(ptr nocapture noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znam(i64 noundef 40) #3
  %4 = icmp sgt i32 %1, 0
  br i1 %4, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %2
  %wide.trip.count = zext nneg i32 %1 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %5 = icmp ult i32 %1, 4
  br i1 %5, label %.preheader18.unr-lcssa, label %.lr.ph.preheader.new

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

.preheader18.unr-lcssa:                           ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader18, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader18.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %.preheader18.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader18.unr-lcssa ]
  %6 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv.epil
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = getelementptr inbounds i32, ptr %3, i64 %8
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = add nsw i32 %10, 1
  store i32 %11, ptr %9, align 4, !tbaa !5
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.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 %.preheader18, label %.lr.ph.epil, !llvm.loop !9

.preheader18:                                     ; preds = %.lr.ph.epil, %.preheader18.unr-lcssa
  %.promoted.pre = load i32, ptr %3, align 4, !tbaa !5
  %12 = icmp sgt i32 %.promoted.pre, 0
  br i1 %12, label %.lr.ph21.preheader, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %13 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds i32, ptr %3, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %16, align 4, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %19 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv.next
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds i32, ptr %3, 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.next.1 = or disjoint i64 %indvars.iv, 2
  %25 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv.next.1
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds i32, ptr %3, 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.next.2 = or disjoint i64 %indvars.iv, 3
  %31 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv.next.2
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds i32, ptr %3, 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.next.3 = add nuw nsw i64 %indvars.iv, 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 %.preheader18.unr-lcssa, label %.lr.ph, !llvm.loop !11

.lr.ph21.preheader:                               ; preds = %.preheader18
  %37 = zext nneg i32 %.promoted.pre to i64
  %38 = shl nuw nsw i64 %37, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %0, i8 0, i64 %38, i1 false), !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %2, %.lr.ph21.preheader, %.preheader18
  %.1.lcssa = phi i32 [ 0, %.preheader18 ], [ %.promoted.pre, %.lr.ph21.preheader ], [ 0, %2 ]
  %39 = getelementptr inbounds i8, ptr %3, i64 4
  %.promoted.1 = load i32, ptr %39, align 4, !tbaa !5
  %40 = icmp sgt i32 %.promoted.1, 0
  br i1 %40, label %.lr.ph21.preheader.1, label %._crit_edge.1

.lr.ph21.preheader.1:                             ; preds = %._crit_edge
  %41 = zext nneg i32 %.1.lcssa to i64
  %42 = zext nneg i32 %.promoted.1 to i64
  %min.iters.check = icmp ult i32 %.promoted.1, 8
  br i1 %min.iters.check, label %.lr.ph21.1.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph21.preheader.1
  %n.vec = and i64 %42, 2147483640
  %ind.end = add nuw nsw i64 %n.vec, %41
  %.cast = trunc nuw nsw i64 %n.vec to i32
  %ind.end37 = sub nsw i32 %.promoted.1, %.cast
  %invariant.gep = getelementptr i32, ptr %0, i64 %41
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %gep = getelementptr i32, ptr %invariant.gep, i64 %index
  %43 = getelementptr inbounds i8, ptr %gep, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %gep, align 4, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %43, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %44 = icmp eq i64 %index.next, %n.vec
  br i1 %44, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %42
  br i1 %cmp.n, label %._crit_edge.loopexit.1, label %.lr.ph21.1.preheader

.lr.ph21.1.preheader:                             ; preds = %middle.block, %.lr.ph21.preheader.1
  %indvars.iv28.1.ph = phi i64 [ %41, %.lr.ph21.preheader.1 ], [ %ind.end, %middle.block ]
  %.ph181 = phi i32 [ %.promoted.1, %.lr.ph21.preheader.1 ], [ %ind.end37, %middle.block ]
  br label %.lr.ph21.1

.lr.ph21.1:                                       ; preds = %.lr.ph21.1.preheader, %.lr.ph21.1
  %indvars.iv28.1 = phi i64 [ %indvars.iv.next29.1, %.lr.ph21.1 ], [ %indvars.iv28.1.ph, %.lr.ph21.1.preheader ]
  %45 = phi i32 [ %47, %.lr.ph21.1 ], [ %.ph181, %.lr.ph21.1.preheader ]
  %indvars.iv.next29.1 = add nuw nsw i64 %indvars.iv28.1, 1
  %46 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv28.1
  store i32 1, ptr %46, align 4, !tbaa !5
  %47 = add nsw i32 %45, -1
  %48 = icmp ugt i32 %45, 1
  br i1 %48, label %.lr.ph21.1, label %._crit_edge.loopexit.1, !llvm.loop !16

._crit_edge.loopexit.1:                           ; preds = %.lr.ph21.1, %middle.block
  %indvars.iv.next29.1.lcssa = phi i64 [ %ind.end, %middle.block ], [ %indvars.iv.next29.1, %.lr.ph21.1 ]
  %49 = trunc nsw i64 %indvars.iv.next29.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 ], [ %49, %._crit_edge.loopexit.1 ]
  %50 = getelementptr inbounds i8, ptr %3, i64 8
  %.promoted.2 = load i32, ptr %50, align 4, !tbaa !5
  %51 = icmp sgt i32 %.promoted.2, 0
  br i1 %51, label %.lr.ph21.preheader.2, label %._crit_edge.2

.lr.ph21.preheader.2:                             ; preds = %._crit_edge.1
  %52 = sext i32 %.1.lcssa.1 to i64
  %53 = zext nneg i32 %.promoted.2 to i64
  %min.iters.check41 = icmp ult i32 %.promoted.2, 8
  br i1 %min.iters.check41, label %.lr.ph21.2.preheader, label %vector.ph42

vector.ph42:                                      ; preds = %.lr.ph21.preheader.2
  %n.vec44 = and i64 %53, 2147483640
  %ind.end45 = add nsw i64 %n.vec44, %52
  %.cast47 = trunc nuw nsw i64 %n.vec44 to i32
  %ind.end48 = sub nsw i32 %.promoted.2, %.cast47
  %invariant.gep191 = getelementptr i32, ptr %0, i64 %52
  br label %vector.body50

vector.body50:                                    ; preds = %vector.body50, %vector.ph42
  %index51 = phi i64 [ 0, %vector.ph42 ], [ %index.next53, %vector.body50 ]
  %gep192 = getelementptr i32, ptr %invariant.gep191, i64 %index51
  %54 = getelementptr inbounds i8, ptr %gep192, i64 16
  store <4 x i32> <i32 2, i32 2, i32 2, i32 2>, ptr %gep192, align 4, !tbaa !5
  store <4 x i32> <i32 2, i32 2, i32 2, i32 2>, ptr %54, align 4, !tbaa !5
  %index.next53 = add nuw i64 %index51, 8
  %55 = icmp eq i64 %index.next53, %n.vec44
  br i1 %55, label %middle.block39, label %vector.body50, !llvm.loop !17

middle.block39:                                   ; preds = %vector.body50
  %cmp.n54 = icmp eq i64 %n.vec44, %53
  br i1 %cmp.n54, label %._crit_edge.loopexit.2, label %.lr.ph21.2.preheader

.lr.ph21.2.preheader:                             ; preds = %middle.block39, %.lr.ph21.preheader.2
  %indvars.iv28.2.ph = phi i64 [ %52, %.lr.ph21.preheader.2 ], [ %ind.end45, %middle.block39 ]
  %.ph179 = phi i32 [ %.promoted.2, %.lr.ph21.preheader.2 ], [ %ind.end48, %middle.block39 ]
  br label %.lr.ph21.2

.lr.ph21.2:                                       ; preds = %.lr.ph21.2.preheader, %.lr.ph21.2
  %indvars.iv28.2 = phi i64 [ %indvars.iv.next29.2, %.lr.ph21.2 ], [ %indvars.iv28.2.ph, %.lr.ph21.2.preheader ]
  %56 = phi i32 [ %58, %.lr.ph21.2 ], [ %.ph179, %.lr.ph21.2.preheader ]
  %indvars.iv.next29.2 = add nsw i64 %indvars.iv28.2, 1
  %57 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv28.2
  store i32 2, ptr %57, align 4, !tbaa !5
  %58 = add nsw i32 %56, -1
  %59 = icmp ugt i32 %56, 1
  br i1 %59, label %.lr.ph21.2, label %._crit_edge.loopexit.2, !llvm.loop !18

._crit_edge.loopexit.2:                           ; preds = %.lr.ph21.2, %middle.block39
  %indvars.iv.next29.2.lcssa = phi i64 [ %ind.end45, %middle.block39 ], [ %indvars.iv.next29.2, %.lr.ph21.2 ]
  %60 = trunc nsw i64 %indvars.iv.next29.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 ], [ %60, %._crit_edge.loopexit.2 ]
  %61 = getelementptr inbounds i8, ptr %3, i64 12
  %.promoted.3 = load i32, ptr %61, align 4, !tbaa !5
  %62 = icmp sgt i32 %.promoted.3, 0
  br i1 %62, label %.lr.ph21.preheader.3, label %._crit_edge.3

.lr.ph21.preheader.3:                             ; preds = %._crit_edge.2
  %63 = sext i32 %.1.lcssa.2 to i64
  %64 = zext nneg i32 %.promoted.3 to i64
  %min.iters.check57 = icmp ult i32 %.promoted.3, 8
  br i1 %min.iters.check57, label %.lr.ph21.3.preheader, label %vector.ph58

vector.ph58:                                      ; preds = %.lr.ph21.preheader.3
  %n.vec60 = and i64 %64, 2147483640
  %ind.end61 = add nsw i64 %n.vec60, %63
  %.cast63 = trunc nuw nsw i64 %n.vec60 to i32
  %ind.end64 = sub nsw i32 %.promoted.3, %.cast63
  %invariant.gep193 = getelementptr i32, ptr %0, i64 %63
  br label %vector.body66

vector.body66:                                    ; preds = %vector.body66, %vector.ph58
  %index67 = phi i64 [ 0, %vector.ph58 ], [ %index.next69, %vector.body66 ]
  %gep194 = getelementptr i32, ptr %invariant.gep193, i64 %index67
  %65 = getelementptr inbounds i8, ptr %gep194, i64 16
  store <4 x i32> <i32 3, i32 3, i32 3, i32 3>, ptr %gep194, align 4, !tbaa !5
  store <4 x i32> <i32 3, i32 3, i32 3, i32 3>, ptr %65, align 4, !tbaa !5
  %index.next69 = add nuw i64 %index67, 8
  %66 = icmp eq i64 %index.next69, %n.vec60
  br i1 %66, label %middle.block55, label %vector.body66, !llvm.loop !19

middle.block55:                                   ; preds = %vector.body66
  %cmp.n70 = icmp eq i64 %n.vec60, %64
  br i1 %cmp.n70, label %._crit_edge.loopexit.3, label %.lr.ph21.3.preheader

.lr.ph21.3.preheader:                             ; preds = %middle.block55, %.lr.ph21.preheader.3
  %indvars.iv28.3.ph = phi i64 [ %63, %.lr.ph21.preheader.3 ], [ %ind.end61, %middle.block55 ]
  %.ph177 = phi i32 [ %.promoted.3, %.lr.ph21.preheader.3 ], [ %ind.end64, %middle.block55 ]
  br label %.lr.ph21.3

.lr.ph21.3:                                       ; preds = %.lr.ph21.3.preheader, %.lr.ph21.3
  %indvars.iv28.3 = phi i64 [ %indvars.iv.next29.3, %.lr.ph21.3 ], [ %indvars.iv28.3.ph, %.lr.ph21.3.preheader ]
  %67 = phi i32 [ %69, %.lr.ph21.3 ], [ %.ph177, %.lr.ph21.3.preheader ]
  %indvars.iv.next29.3 = add nsw i64 %indvars.iv28.3, 1
  %68 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv28.3
  store i32 3, ptr %68, align 4, !tbaa !5
  %69 = add nsw i32 %67, -1
  %70 = icmp ugt i32 %67, 1
  br i1 %70, label %.lr.ph21.3, label %._crit_edge.loopexit.3, !llvm.loop !20

._crit_edge.loopexit.3:                           ; preds = %.lr.ph21.3, %middle.block55
  %indvars.iv.next29.3.lcssa = phi i64 [ %ind.end61, %middle.block55 ], [ %indvars.iv.next29.3, %.lr.ph21.3 ]
  %71 = trunc nsw i64 %indvars.iv.next29.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 ], [ %71, %._crit_edge.loopexit.3 ]
  %72 = getelementptr inbounds i8, ptr %3, i64 16
  %.promoted.4 = load i32, ptr %72, align 4, !tbaa !5
  %73 = icmp sgt i32 %.promoted.4, 0
  br i1 %73, label %.lr.ph21.preheader.4, label %._crit_edge.4

.lr.ph21.preheader.4:                             ; preds = %._crit_edge.3
  %74 = sext i32 %.1.lcssa.3 to i64
  %75 = zext nneg i32 %.promoted.4 to i64
  %min.iters.check73 = icmp ult i32 %.promoted.4, 8
  br i1 %min.iters.check73, label %.lr.ph21.4.preheader, label %vector.ph74

vector.ph74:                                      ; preds = %.lr.ph21.preheader.4
  %n.vec76 = and i64 %75, 2147483640
  %ind.end77 = add nsw i64 %n.vec76, %74
  %.cast79 = trunc nuw nsw i64 %n.vec76 to i32
  %ind.end80 = sub nsw i32 %.promoted.4, %.cast79
  %invariant.gep195 = getelementptr i32, ptr %0, i64 %74
  br label %vector.body82

vector.body82:                                    ; preds = %vector.body82, %vector.ph74
  %index83 = phi i64 [ 0, %vector.ph74 ], [ %index.next85, %vector.body82 ]
  %gep196 = getelementptr i32, ptr %invariant.gep195, i64 %index83
  %76 = getelementptr inbounds i8, ptr %gep196, i64 16
  store <4 x i32> <i32 4, i32 4, i32 4, i32 4>, ptr %gep196, align 4, !tbaa !5
  store <4 x i32> <i32 4, i32 4, i32 4, i32 4>, ptr %76, align 4, !tbaa !5
  %index.next85 = add nuw i64 %index83, 8
  %77 = icmp eq i64 %index.next85, %n.vec76
  br i1 %77, label %middle.block71, label %vector.body82, !llvm.loop !21

middle.block71:                                   ; preds = %vector.body82
  %cmp.n86 = icmp eq i64 %n.vec76, %75
  br i1 %cmp.n86, label %._crit_edge.loopexit.4, label %.lr.ph21.4.preheader

.lr.ph21.4.preheader:                             ; preds = %middle.block71, %.lr.ph21.preheader.4
  %indvars.iv28.4.ph = phi i64 [ %74, %.lr.ph21.preheader.4 ], [ %ind.end77, %middle.block71 ]
  %.ph175 = phi i32 [ %.promoted.4, %.lr.ph21.preheader.4 ], [ %ind.end80, %middle.block71 ]
  br label %.lr.ph21.4

.lr.ph21.4:                                       ; preds = %.lr.ph21.4.preheader, %.lr.ph21.4
  %indvars.iv28.4 = phi i64 [ %indvars.iv.next29.4, %.lr.ph21.4 ], [ %indvars.iv28.4.ph, %.lr.ph21.4.preheader ]
  %78 = phi i32 [ %80, %.lr.ph21.4 ], [ %.ph175, %.lr.ph21.4.preheader ]
  %indvars.iv.next29.4 = add nsw i64 %indvars.iv28.4, 1
  %79 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv28.4
  store i32 4, ptr %79, align 4, !tbaa !5
  %80 = add nsw i32 %78, -1
  %81 = icmp ugt i32 %78, 1
  br i1 %81, label %.lr.ph21.4, label %._crit_edge.loopexit.4, !llvm.loop !22

._crit_edge.loopexit.4:                           ; preds = %.lr.ph21.4, %middle.block71
  %indvars.iv.next29.4.lcssa = phi i64 [ %ind.end77, %middle.block71 ], [ %indvars.iv.next29.4, %.lr.ph21.4 ]
  %82 = trunc nsw i64 %indvars.iv.next29.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 ], [ %82, %._crit_edge.loopexit.4 ]
  %83 = getelementptr inbounds i8, ptr %3, i64 20
  %.promoted.5 = load i32, ptr %83, align 4, !tbaa !5
  %84 = icmp sgt i32 %.promoted.5, 0
  br i1 %84, label %.lr.ph21.preheader.5, label %._crit_edge.5

.lr.ph21.preheader.5:                             ; preds = %._crit_edge.4
  %85 = sext i32 %.1.lcssa.4 to i64
  %86 = zext nneg i32 %.promoted.5 to i64
  %min.iters.check89 = icmp ult i32 %.promoted.5, 8
  br i1 %min.iters.check89, label %.lr.ph21.5.preheader, label %vector.ph90

vector.ph90:                                      ; preds = %.lr.ph21.preheader.5
  %n.vec92 = and i64 %86, 2147483640
  %ind.end93 = add nsw i64 %n.vec92, %85
  %.cast95 = trunc nuw nsw i64 %n.vec92 to i32
  %ind.end96 = sub nsw i32 %.promoted.5, %.cast95
  %invariant.gep197 = getelementptr i32, ptr %0, i64 %85
  br label %vector.body98

vector.body98:                                    ; preds = %vector.body98, %vector.ph90
  %index99 = phi i64 [ 0, %vector.ph90 ], [ %index.next101, %vector.body98 ]
  %gep198 = getelementptr i32, ptr %invariant.gep197, i64 %index99
  %87 = getelementptr inbounds i8, ptr %gep198, i64 16
  store <4 x i32> <i32 5, i32 5, i32 5, i32 5>, ptr %gep198, align 4, !tbaa !5
  store <4 x i32> <i32 5, i32 5, i32 5, i32 5>, ptr %87, align 4, !tbaa !5
  %index.next101 = add nuw i64 %index99, 8
  %88 = icmp eq i64 %index.next101, %n.vec92
  br i1 %88, label %middle.block87, label %vector.body98, !llvm.loop !23

middle.block87:                                   ; preds = %vector.body98
  %cmp.n102 = icmp eq i64 %n.vec92, %86
  br i1 %cmp.n102, label %._crit_edge.loopexit.5, label %.lr.ph21.5.preheader

.lr.ph21.5.preheader:                             ; preds = %middle.block87, %.lr.ph21.preheader.5
  %indvars.iv28.5.ph = phi i64 [ %85, %.lr.ph21.preheader.5 ], [ %ind.end93, %middle.block87 ]
  %.ph173 = phi i32 [ %.promoted.5, %.lr.ph21.preheader.5 ], [ %ind.end96, %middle.block87 ]
  br label %.lr.ph21.5

.lr.ph21.5:                                       ; preds = %.lr.ph21.5.preheader, %.lr.ph21.5
  %indvars.iv28.5 = phi i64 [ %indvars.iv.next29.5, %.lr.ph21.5 ], [ %indvars.iv28.5.ph, %.lr.ph21.5.preheader ]
  %89 = phi i32 [ %91, %.lr.ph21.5 ], [ %.ph173, %.lr.ph21.5.preheader ]
  %indvars.iv.next29.5 = add nsw i64 %indvars.iv28.5, 1
  %90 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv28.5
  store i32 5, ptr %90, align 4, !tbaa !5
  %91 = add nsw i32 %89, -1
  %92 = icmp ugt i32 %89, 1
  br i1 %92, label %.lr.ph21.5, label %._crit_edge.loopexit.5, !llvm.loop !24

._crit_edge.loopexit.5:                           ; preds = %.lr.ph21.5, %middle.block87
  %indvars.iv.next29.5.lcssa = phi i64 [ %ind.end93, %middle.block87 ], [ %indvars.iv.next29.5, %.lr.ph21.5 ]
  %93 = trunc nsw i64 %indvars.iv.next29.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 ], [ %93, %._crit_edge.loopexit.5 ]
  %94 = getelementptr inbounds i8, ptr %3, i64 24
  %.promoted.6 = load i32, ptr %94, align 4, !tbaa !5
  %95 = icmp sgt i32 %.promoted.6, 0
  br i1 %95, label %.lr.ph21.preheader.6, label %._crit_edge.6

.lr.ph21.preheader.6:                             ; preds = %._crit_edge.5
  %96 = sext i32 %.1.lcssa.5 to i64
  %97 = zext nneg i32 %.promoted.6 to i64
  %min.iters.check105 = icmp ult i32 %.promoted.6, 8
  br i1 %min.iters.check105, label %.lr.ph21.6.preheader, label %vector.ph106

vector.ph106:                                     ; preds = %.lr.ph21.preheader.6
  %n.vec108 = and i64 %97, 2147483640
  %ind.end109 = add nsw i64 %n.vec108, %96
  %.cast111 = trunc nuw nsw i64 %n.vec108 to i32
  %ind.end112 = sub nsw i32 %.promoted.6, %.cast111
  %invariant.gep199 = getelementptr i32, ptr %0, i64 %96
  br label %vector.body114

vector.body114:                                   ; preds = %vector.body114, %vector.ph106
  %index115 = phi i64 [ 0, %vector.ph106 ], [ %index.next117, %vector.body114 ]
  %gep200 = getelementptr i32, ptr %invariant.gep199, i64 %index115
  %98 = getelementptr inbounds i8, ptr %gep200, i64 16
  store <4 x i32> <i32 6, i32 6, i32 6, i32 6>, ptr %gep200, align 4, !tbaa !5
  store <4 x i32> <i32 6, i32 6, i32 6, i32 6>, ptr %98, align 4, !tbaa !5
  %index.next117 = add nuw i64 %index115, 8
  %99 = icmp eq i64 %index.next117, %n.vec108
  br i1 %99, label %middle.block103, label %vector.body114, !llvm.loop !25

middle.block103:                                  ; preds = %vector.body114
  %cmp.n118 = icmp eq i64 %n.vec108, %97
  br i1 %cmp.n118, label %._crit_edge.loopexit.6, label %.lr.ph21.6.preheader

.lr.ph21.6.preheader:                             ; preds = %middle.block103, %.lr.ph21.preheader.6
  %indvars.iv28.6.ph = phi i64 [ %96, %.lr.ph21.preheader.6 ], [ %ind.end109, %middle.block103 ]
  %.ph171 = phi i32 [ %.promoted.6, %.lr.ph21.preheader.6 ], [ %ind.end112, %middle.block103 ]
  br label %.lr.ph21.6

.lr.ph21.6:                                       ; preds = %.lr.ph21.6.preheader, %.lr.ph21.6
  %indvars.iv28.6 = phi i64 [ %indvars.iv.next29.6, %.lr.ph21.6 ], [ %indvars.iv28.6.ph, %.lr.ph21.6.preheader ]
  %100 = phi i32 [ %102, %.lr.ph21.6 ], [ %.ph171, %.lr.ph21.6.preheader ]
  %indvars.iv.next29.6 = add nsw i64 %indvars.iv28.6, 1
  %101 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv28.6
  store i32 6, ptr %101, align 4, !tbaa !5
  %102 = add nsw i32 %100, -1
  %103 = icmp ugt i32 %100, 1
  br i1 %103, label %.lr.ph21.6, label %._crit_edge.loopexit.6, !llvm.loop !26

._crit_edge.loopexit.6:                           ; preds = %.lr.ph21.6, %middle.block103
  %indvars.iv.next29.6.lcssa = phi i64 [ %ind.end109, %middle.block103 ], [ %indvars.iv.next29.6, %.lr.ph21.6 ]
  %104 = trunc nsw i64 %indvars.iv.next29.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 ], [ %104, %._crit_edge.loopexit.6 ]
  %105 = getelementptr inbounds i8, ptr %3, i64 28
  %.promoted.7 = load i32, ptr %105, align 4, !tbaa !5
  %106 = icmp sgt i32 %.promoted.7, 0
  br i1 %106, label %.lr.ph21.preheader.7, label %._crit_edge.7

.lr.ph21.preheader.7:                             ; preds = %._crit_edge.6
  %107 = sext i32 %.1.lcssa.6 to i64
  %108 = zext nneg i32 %.promoted.7 to i64
  %min.iters.check121 = icmp ult i32 %.promoted.7, 8
  br i1 %min.iters.check121, label %.lr.ph21.7.preheader, label %vector.ph122

vector.ph122:                                     ; preds = %.lr.ph21.preheader.7
  %n.vec124 = and i64 %108, 2147483640
  %ind.end125 = add nsw i64 %n.vec124, %107
  %.cast127 = trunc nuw nsw i64 %n.vec124 to i32
  %ind.end128 = sub nsw i32 %.promoted.7, %.cast127
  %invariant.gep201 = getelementptr i32, ptr %0, i64 %107
  br label %vector.body130

vector.body130:                                   ; preds = %vector.body130, %vector.ph122
  %index131 = phi i64 [ 0, %vector.ph122 ], [ %index.next133, %vector.body130 ]
  %gep202 = getelementptr i32, ptr %invariant.gep201, i64 %index131
  %109 = getelementptr inbounds i8, ptr %gep202, i64 16
  store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, ptr %gep202, align 4, !tbaa !5
  store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, ptr %109, align 4, !tbaa !5
  %index.next133 = add nuw i64 %index131, 8
  %110 = icmp eq i64 %index.next133, %n.vec124
  br i1 %110, label %middle.block119, label %vector.body130, !llvm.loop !27

middle.block119:                                  ; preds = %vector.body130
  %cmp.n134 = icmp eq i64 %n.vec124, %108
  br i1 %cmp.n134, label %._crit_edge.loopexit.7, label %.lr.ph21.7.preheader

.lr.ph21.7.preheader:                             ; preds = %middle.block119, %.lr.ph21.preheader.7
  %indvars.iv28.7.ph = phi i64 [ %107, %.lr.ph21.preheader.7 ], [ %ind.end125, %middle.block119 ]
  %.ph169 = phi i32 [ %.promoted.7, %.lr.ph21.preheader.7 ], [ %ind.end128, %middle.block119 ]
  br label %.lr.ph21.7

.lr.ph21.7:                                       ; preds = %.lr.ph21.7.preheader, %.lr.ph21.7
  %indvars.iv28.7 = phi i64 [ %indvars.iv.next29.7, %.lr.ph21.7 ], [ %indvars.iv28.7.ph, %.lr.ph21.7.preheader ]
  %111 = phi i32 [ %113, %.lr.ph21.7 ], [ %.ph169, %.lr.ph21.7.preheader ]
  %indvars.iv.next29.7 = add nsw i64 %indvars.iv28.7, 1
  %112 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv28.7
  store i32 7, ptr %112, align 4, !tbaa !5
  %113 = add nsw i32 %111, -1
  %114 = icmp ugt i32 %111, 1
  br i1 %114, label %.lr.ph21.7, label %._crit_edge.loopexit.7, !llvm.loop !28

._crit_edge.loopexit.7:                           ; preds = %.lr.ph21.7, %middle.block119
  %indvars.iv.next29.7.lcssa = phi i64 [ %ind.end125, %middle.block119 ], [ %indvars.iv.next29.7, %.lr.ph21.7 ]
  %115 = trunc nsw i64 %indvars.iv.next29.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 ], [ %115, %._crit_edge.loopexit.7 ]
  %116 = getelementptr inbounds i8, ptr %3, i64 32
  %.promoted.8 = load i32, ptr %116, align 4, !tbaa !5
  %117 = icmp sgt i32 %.promoted.8, 0
  br i1 %117, label %.lr.ph21.preheader.8, label %._crit_edge.8

.lr.ph21.preheader.8:                             ; preds = %._crit_edge.7
  %118 = sext i32 %.1.lcssa.7 to i64
  %119 = zext nneg i32 %.promoted.8 to i64
  %min.iters.check137 = icmp ult i32 %.promoted.8, 8
  br i1 %min.iters.check137, label %.lr.ph21.8.preheader, label %vector.ph138

vector.ph138:                                     ; preds = %.lr.ph21.preheader.8
  %n.vec140 = and i64 %119, 2147483640
  %ind.end141 = add nsw i64 %n.vec140, %118
  %.cast143 = trunc nuw nsw i64 %n.vec140 to i32
  %ind.end144 = sub nsw i32 %.promoted.8, %.cast143
  %invariant.gep203 = getelementptr i32, ptr %0, i64 %118
  br label %vector.body146

vector.body146:                                   ; preds = %vector.body146, %vector.ph138
  %index147 = phi i64 [ 0, %vector.ph138 ], [ %index.next149, %vector.body146 ]
  %gep204 = getelementptr i32, ptr %invariant.gep203, i64 %index147
  %120 = getelementptr inbounds i8, ptr %gep204, i64 16
  store <4 x i32> <i32 8, i32 8, i32 8, i32 8>, ptr %gep204, align 4, !tbaa !5
  store <4 x i32> <i32 8, i32 8, i32 8, i32 8>, ptr %120, align 4, !tbaa !5
  %index.next149 = add nuw i64 %index147, 8
  %121 = icmp eq i64 %index.next149, %n.vec140
  br i1 %121, label %middle.block135, label %vector.body146, !llvm.loop !29

middle.block135:                                  ; preds = %vector.body146
  %cmp.n150 = icmp eq i64 %n.vec140, %119
  br i1 %cmp.n150, label %._crit_edge.loopexit.8, label %.lr.ph21.8.preheader

.lr.ph21.8.preheader:                             ; preds = %middle.block135, %.lr.ph21.preheader.8
  %indvars.iv28.8.ph = phi i64 [ %118, %.lr.ph21.preheader.8 ], [ %ind.end141, %middle.block135 ]
  %.ph167 = phi i32 [ %.promoted.8, %.lr.ph21.preheader.8 ], [ %ind.end144, %middle.block135 ]
  br label %.lr.ph21.8

.lr.ph21.8:                                       ; preds = %.lr.ph21.8.preheader, %.lr.ph21.8
  %indvars.iv28.8 = phi i64 [ %indvars.iv.next29.8, %.lr.ph21.8 ], [ %indvars.iv28.8.ph, %.lr.ph21.8.preheader ]
  %122 = phi i32 [ %124, %.lr.ph21.8 ], [ %.ph167, %.lr.ph21.8.preheader ]
  %indvars.iv.next29.8 = add nsw i64 %indvars.iv28.8, 1
  %123 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv28.8
  store i32 8, ptr %123, align 4, !tbaa !5
  %124 = add nsw i32 %122, -1
  %125 = icmp ugt i32 %122, 1
  br i1 %125, label %.lr.ph21.8, label %._crit_edge.loopexit.8, !llvm.loop !30

._crit_edge.loopexit.8:                           ; preds = %.lr.ph21.8, %middle.block135
  %indvars.iv.next29.8.lcssa = phi i64 [ %ind.end141, %middle.block135 ], [ %indvars.iv.next29.8, %.lr.ph21.8 ]
  %126 = trunc nsw i64 %indvars.iv.next29.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 ], [ %126, %._crit_edge.loopexit.8 ]
  %127 = getelementptr inbounds i8, ptr %3, i64 36
  %.promoted.9 = load i32, ptr %127, align 4, !tbaa !5
  %128 = icmp sgt i32 %.promoted.9, 0
  br i1 %128, label %.lr.ph21.preheader.9, label %._crit_edge.9

.lr.ph21.preheader.9:                             ; preds = %._crit_edge.8
  %129 = sext i32 %.1.lcssa.8 to i64
  %130 = zext nneg i32 %.promoted.9 to i64
  %min.iters.check153 = icmp ult i32 %.promoted.9, 8
  br i1 %min.iters.check153, label %.lr.ph21.9.preheader, label %vector.ph154

vector.ph154:                                     ; preds = %.lr.ph21.preheader.9
  %n.vec156 = and i64 %130, 2147483640
  %ind.end157 = add nsw i64 %n.vec156, %129
  %.cast159 = trunc nuw nsw i64 %n.vec156 to i32
  %ind.end160 = sub nsw i32 %.promoted.9, %.cast159
  %invariant.gep205 = getelementptr i32, ptr %0, i64 %129
  br label %vector.body162

vector.body162:                                   ; preds = %vector.body162, %vector.ph154
  %index163 = phi i64 [ 0, %vector.ph154 ], [ %index.next165, %vector.body162 ]
  %gep206 = getelementptr i32, ptr %invariant.gep205, i64 %index163
  %131 = getelementptr inbounds i8, ptr %gep206, i64 16
  store <4 x i32> <i32 9, i32 9, i32 9, i32 9>, ptr %gep206, align 4, !tbaa !5
  store <4 x i32> <i32 9, i32 9, i32 9, i32 9>, ptr %131, align 4, !tbaa !5
  %index.next165 = add nuw i64 %index163, 8
  %132 = icmp eq i64 %index.next165, %n.vec156
  br i1 %132, label %middle.block151, label %vector.body162, !llvm.loop !31

middle.block151:                                  ; preds = %vector.body162
  %cmp.n166 = icmp eq i64 %n.vec156, %130
  br i1 %cmp.n166, label %._crit_edge.9, label %.lr.ph21.9.preheader

.lr.ph21.9.preheader:                             ; preds = %middle.block151, %.lr.ph21.preheader.9
  %indvars.iv28.9.ph = phi i64 [ %129, %.lr.ph21.preheader.9 ], [ %ind.end157, %middle.block151 ]
  %.ph = phi i32 [ %.promoted.9, %.lr.ph21.preheader.9 ], [ %ind.end160, %middle.block151 ]
  br label %.lr.ph21.9

.lr.ph21.9:                                       ; preds = %.lr.ph21.9.preheader, %.lr.ph21.9
  %indvars.iv28.9 = phi i64 [ %indvars.iv.next29.9, %.lr.ph21.9 ], [ %indvars.iv28.9.ph, %.lr.ph21.9.preheader ]
  %133 = phi i32 [ %135, %.lr.ph21.9 ], [ %.ph, %.lr.ph21.9.preheader ]
  %indvars.iv.next29.9 = add nsw i64 %indvars.iv28.9, 1
  %134 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv28.9
  store i32 9, ptr %134, align 4, !tbaa !5
  %135 = add nsw i32 %133, -1
  %136 = icmp ugt i32 %133, 1
  br i1 %136, label %.lr.ph21.9, label %._crit_edge.9, !llvm.loop !32

._crit_edge.9:                                    ; preds = %.lr.ph21.9, %middle.block151, %._crit_edge.8
  ret void
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #1

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

attributes #0 = { mustprogress 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 = { nobuiltin 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { builtin 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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12, !14, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !12, !15, !14}
!17 = distinct !{!17, !12, !14, !15}
!18 = distinct !{!18, !12, !15, !14}
!19 = distinct !{!19, !12, !14, !15}
!20 = distinct !{!20, !12, !15, !14}
!21 = distinct !{!21, !12, !14, !15}
!22 = distinct !{!22, !12, !15, !14}
!23 = distinct !{!23, !12, !14, !15}
!24 = distinct !{!24, !12, !15, !14}
!25 = distinct !{!25, !12, !14, !15}
!26 = distinct !{!26, !12, !15, !14}
!27 = distinct !{!27, !12, !14, !15}
!28 = distinct !{!28, !12, !15, !14}
!29 = distinct !{!29, !12, !14, !15}
!30 = distinct !{!30, !12, !15, !14}
!31 = distinct !{!31, !12, !14, !15}
!32 = distinct !{!32, !12, !15, !14}


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