; LLVM IR from seikhchilli/codeforces-solution :: 69A (main)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %10 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %11 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %13
  %15 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %14, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %17 = load i32, ptr %2, align 4, !tbaa !8
  %18 = zext i32 %17 to i64
  %19 = call ptr @llvm.stacksave.p0()
  store ptr %19, ptr %3, align 8
  %20 = alloca [3 x i32], i64 %18, align 16
  store i64 %18, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !8
  br label %21

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

25:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %45

26:                                               ; preds = %21
  %27 = load i32, ptr %5, align 4, !tbaa !8
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [3 x i32], ptr %20, i64 %28
  %30 = getelementptr inbounds [3 x i32], ptr %29, i64 0, i64 0
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %32 = load i32, ptr %5, align 4, !tbaa !8
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [3 x i32], ptr %20, i64 %33
  %35 = getelementptr inbounds [3 x i32], ptr %34, i64 0, i64 1
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(4) %35)
  %37 = load i32, ptr %5, align 4, !tbaa !8
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [3 x i32], ptr %20, i64 %38
  %40 = getelementptr inbounds [3 x i32], ptr %39, i64 0, i64 2
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 4 dereferenceable(4) %40)
  br label %42

42:                                               ; preds = %26
  %43 = load i32, ptr %5, align 4, !tbaa !8
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %5, align 4, !tbaa !8
  br label %21, !llvm.loop !11

45:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !8
  br label %46

46:                                               ; preds = %76, %45
  %47 = load i32, ptr %7, align 4, !tbaa !8
  %48 = icmp slt i32 %47, 3
  br i1 %48, label %50, label %49

49:                                               ; preds = %46
  store i32 5, ptr %8, align 4
  br label %79

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

51:                                               ; preds = %66, %50
  %52 = load i32, ptr %9, align 4, !tbaa !8
  %53 = load i32, ptr %2, align 4, !tbaa !8
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

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

56:                                               ; preds = %51
  %57 = load i32, ptr %9, align 4, !tbaa !8
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [3 x i32], ptr %20, i64 %58
  %60 = load i32, ptr %7, align 4, !tbaa !8
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [3 x i32], ptr %59, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !8
  %64 = load i32, ptr %6, align 4, !tbaa !8
  %65 = add nsw i32 %64, %63
  store i32 %65, ptr %6, align 4, !tbaa !8
  br label %66

66:                                               ; preds = %56
  %67 = load i32, ptr %9, align 4, !tbaa !8
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %9, align 4, !tbaa !8
  br label %51, !llvm.loop !13

69:                                               ; preds = %55
  %70 = load i32, ptr %6, align 4, !tbaa !8
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %75

72:                                               ; preds = %69
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %73, i8 noundef signext 10)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %79

75:                                               ; preds = %69
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %7, align 4, !tbaa !8
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %7, align 4, !tbaa !8
  br label %46, !llvm.loop !14

79:                                               ; preds = %72, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  %80 = load i32, ptr %8, align 4
  switch i32 %80, label %84 [
    i32 5, label %81
  ]

81:                                               ; preds = %79
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %82, i8 noundef signext 10)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %84

84:                                               ; preds = %81, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %85 = load ptr, ptr %3, align 8
  call void @llvm.stackrestore.p0(ptr %85)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %86 = load i32, ptr %1, align 4
  ret i32 %86
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #2 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

attributes #0 = { mustprogress norecurse 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 = { "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 = { mustprogress 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { inlinehint 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 #6 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !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"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %3 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %4 = getelementptr i8, ptr %3, i64 -24
  %5 = load i64, ptr %4, align 8
  %6 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %5
  %7 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %6, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %9 = load i32, ptr %1, align 4, !tbaa !8
  %10 = zext i32 %9 to i64
  %11 = call ptr @llvm.stacksave.p0()
  %12 = alloca [3 x i32], i64 %10, align 16
  %13 = load i32, ptr %1, align 4, !tbaa !8
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph, label %.critedge

.preheader20:                                     ; preds = %.lr.ph
  %15 = icmp sgt i32 %142, 0
  br i1 %15, label %.preheader.us.preheader, label %.critedge

.preheader.us.preheader:                          ; preds = %.preheader20
  %wide.trip.count = zext nneg i32 %142 to i64
  %min.iters.check = icmp ult i32 %142, 9
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.preheader.us.preheader
  %n.mod.vf = and i64 %wide.trip.count, 7
  %16 = icmp eq i64 %n.mod.vf, 0
  %17 = select i1 %16, i64 8, i64 %n.mod.vf
  %n.vec = sub nsw i64 %wide.trip.count, %17
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %49, %vector.body ]
  %vec.phi45 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %50, %vector.body ]
  %18 = or disjoint i64 %index, 1
  %19 = or disjoint i64 %index, 2
  %20 = or disjoint i64 %index, 3
  %21 = or disjoint i64 %index, 4
  %22 = or disjoint i64 %index, 5
  %23 = or disjoint i64 %index, 6
  %24 = or disjoint i64 %index, 7
  %25 = getelementptr inbounds [3 x i32], ptr %12, i64 %index, i64 0
  %26 = getelementptr inbounds [3 x i32], ptr %12, i64 %18, i64 0
  %27 = getelementptr inbounds [3 x i32], ptr %12, i64 %19, i64 0
  %28 = getelementptr inbounds [3 x i32], ptr %12, i64 %20, i64 0
  %29 = getelementptr inbounds [3 x i32], ptr %12, i64 %21, i64 0
  %30 = getelementptr inbounds [3 x i32], ptr %12, i64 %22, i64 0
  %31 = getelementptr inbounds [3 x i32], ptr %12, i64 %23, i64 0
  %32 = getelementptr inbounds [3 x i32], ptr %12, i64 %24, i64 0
  %33 = load i32, ptr %25, align 16, !tbaa !8
  %34 = load i32, ptr %26, align 4, !tbaa !8
  %35 = load i32, ptr %27, align 8, !tbaa !8
  %36 = load i32, ptr %28, align 4, !tbaa !8
  %37 = insertelement <4 x i32> poison, i32 %33, i64 0
  %38 = insertelement <4 x i32> %37, i32 %34, i64 1
  %39 = insertelement <4 x i32> %38, i32 %35, i64 2
  %40 = insertelement <4 x i32> %39, i32 %36, i64 3
  %41 = load i32, ptr %29, align 16, !tbaa !8
  %42 = load i32, ptr %30, align 4, !tbaa !8
  %43 = load i32, ptr %31, align 8, !tbaa !8
  %44 = load i32, ptr %32, align 4, !tbaa !8
  %45 = insertelement <4 x i32> poison, i32 %41, i64 0
  %46 = insertelement <4 x i32> %45, i32 %42, i64 1
  %47 = insertelement <4 x i32> %46, i32 %43, i64 2
  %48 = insertelement <4 x i32> %47, i32 %44, i64 3
  %49 = add <4 x i32> %40, %vec.phi
  %50 = add <4 x i32> %48, %vec.phi45
  %index.next = add nuw i64 %index, 8
  %51 = icmp eq i64 %index.next, %n.vec
  br i1 %51, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %50, %49
  %52 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader.us.preheader
  %indvars.iv31.ph = phi i64 [ 0, %.preheader.us.preheader ], [ %n.vec, %middle.block ]
  %.01722.us.ph = phi i32 [ 0, %.preheader.us.preheader ], [ %52, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv31 = phi i64 [ %indvars.iv.next32, %scalar.ph ], [ %indvars.iv31.ph, %scalar.ph.preheader ]
  %.01722.us = phi i32 [ %55, %scalar.ph ], [ %.01722.us.ph, %scalar.ph.preheader ]
  %53 = getelementptr inbounds [3 x i32], ptr %12, i64 %indvars.iv31, i64 0
  %54 = load i32, ptr %53, align 4, !tbaa !8
  %55 = add nsw i32 %54, %.01722.us
  %indvars.iv.next32 = add nuw nsw i64 %indvars.iv31, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next32, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us, label %scalar.ph, !llvm.loop !15

.preheader.us.1:                                  ; preds = %.preheader.us.1.preheader77, %.preheader.us.1
  %indvars.iv31.1 = phi i64 [ %indvars.iv.next32.1, %.preheader.us.1 ], [ %indvars.iv31.1.ph, %.preheader.us.1.preheader77 ]
  %.01722.us.1 = phi i32 [ %58, %.preheader.us.1 ], [ %.01722.us.1.ph, %.preheader.us.1.preheader77 ]
  %56 = getelementptr inbounds [3 x i32], ptr %12, i64 %indvars.iv31.1, i64 1
  %57 = load i32, ptr %56, align 4, !tbaa !8
  %58 = add nsw i32 %57, %.01722.us.1
  %indvars.iv.next32.1 = add nuw nsw i64 %indvars.iv31.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next32.1, %wide.trip.count
  br i1 %exitcond.1.not, label %._crit_edge.us.1, label %.preheader.us.1, !llvm.loop !16

._crit_edge.us.1:                                 ; preds = %.preheader.us.1
  %.not.us.1 = icmp eq i32 %58, 0
  br i1 %.not.us.1, label %.preheader.us.2.preheader, label %.split.us

.preheader.us.2.preheader:                        ; preds = %._crit_edge.us.1
  %min.iters.check62 = icmp ult i32 %142, 9
  br i1 %min.iters.check62, label %.preheader.us.2.preheader74, label %vector.ph63

vector.ph63:                                      ; preds = %.preheader.us.2.preheader
  %n.mod.vf64 = and i64 %wide.trip.count, 7
  %59 = icmp eq i64 %n.mod.vf64, 0
  %60 = select i1 %59, i64 8, i64 %n.mod.vf64
  %n.vec65 = sub nsw i64 %wide.trip.count, %60
  br label %vector.body67

vector.body67:                                    ; preds = %vector.body67, %vector.ph63
  %index68 = phi i64 [ 0, %vector.ph63 ], [ %index.next71, %vector.body67 ]
  %vec.phi69 = phi <4 x i32> [ zeroinitializer, %vector.ph63 ], [ %92, %vector.body67 ]
  %vec.phi70 = phi <4 x i32> [ zeroinitializer, %vector.ph63 ], [ %93, %vector.body67 ]
  %61 = or disjoint i64 %index68, 1
  %62 = or disjoint i64 %index68, 2
  %63 = or disjoint i64 %index68, 3
  %64 = or disjoint i64 %index68, 4
  %65 = or disjoint i64 %index68, 5
  %66 = or disjoint i64 %index68, 6
  %67 = or disjoint i64 %index68, 7
  %68 = getelementptr inbounds [3 x i32], ptr %12, i64 %index68, i64 2
  %69 = getelementptr inbounds [3 x i32], ptr %12, i64 %61, i64 2
  %70 = getelementptr inbounds [3 x i32], ptr %12, i64 %62, i64 2
  %71 = getelementptr inbounds [3 x i32], ptr %12, i64 %63, i64 2
  %72 = getelementptr inbounds [3 x i32], ptr %12, i64 %64, i64 2
  %73 = getelementptr inbounds [3 x i32], ptr %12, i64 %65, i64 2
  %74 = getelementptr inbounds [3 x i32], ptr %12, i64 %66, i64 2
  %75 = getelementptr inbounds [3 x i32], ptr %12, i64 %67, i64 2
  %76 = load i32, ptr %68, align 8, !tbaa !8
  %77 = load i32, ptr %69, align 4, !tbaa !8
  %78 = load i32, ptr %70, align 16, !tbaa !8
  %79 = load i32, ptr %71, align 4, !tbaa !8
  %80 = insertelement <4 x i32> poison, i32 %76, i64 0
  %81 = insertelement <4 x i32> %80, i32 %77, i64 1
  %82 = insertelement <4 x i32> %81, i32 %78, i64 2
  %83 = insertelement <4 x i32> %82, i32 %79, i64 3
  %84 = load i32, ptr %72, align 8, !tbaa !8
  %85 = load i32, ptr %73, align 4, !tbaa !8
  %86 = load i32, ptr %74, align 16, !tbaa !8
  %87 = load i32, ptr %75, align 4, !tbaa !8
  %88 = insertelement <4 x i32> poison, i32 %84, i64 0
  %89 = insertelement <4 x i32> %88, i32 %85, i64 1
  %90 = insertelement <4 x i32> %89, i32 %86, i64 2
  %91 = insertelement <4 x i32> %90, i32 %87, i64 3
  %92 = add <4 x i32> %83, %vec.phi69
  %93 = add <4 x i32> %91, %vec.phi70
  %index.next71 = add nuw i64 %index68, 8
  %94 = icmp eq i64 %index.next71, %n.vec65
  br i1 %94, label %middle.block60, label %vector.body67, !llvm.loop !17

middle.block60:                                   ; preds = %vector.body67
  %bin.rdx72 = add <4 x i32> %93, %92
  %95 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx72)
  br label %.preheader.us.2.preheader74

.preheader.us.2.preheader74:                      ; preds = %middle.block60, %.preheader.us.2.preheader
  %indvars.iv31.2.ph = phi i64 [ 0, %.preheader.us.2.preheader ], [ %n.vec65, %middle.block60 ]
  %.01722.us.2.ph = phi i32 [ 0, %.preheader.us.2.preheader ], [ %95, %middle.block60 ]
  br label %.preheader.us.2

.preheader.us.2:                                  ; preds = %.preheader.us.2.preheader74, %.preheader.us.2
  %indvars.iv31.2 = phi i64 [ %indvars.iv.next32.2, %.preheader.us.2 ], [ %indvars.iv31.2.ph, %.preheader.us.2.preheader74 ]
  %.01722.us.2 = phi i32 [ %98, %.preheader.us.2 ], [ %.01722.us.2.ph, %.preheader.us.2.preheader74 ]
  %96 = getelementptr inbounds [3 x i32], ptr %12, i64 %indvars.iv31.2, i64 2
  %97 = load i32, ptr %96, align 4, !tbaa !8
  %98 = add nsw i32 %97, %.01722.us.2
  %indvars.iv.next32.2 = add nuw nsw i64 %indvars.iv31.2, 1
  %exitcond.2.not = icmp eq i64 %indvars.iv.next32.2, %wide.trip.count
  br i1 %exitcond.2.not, label %._crit_edge.us.2, label %.preheader.us.2, !llvm.loop !18

._crit_edge.us.2:                                 ; preds = %.preheader.us.2
  %.not.us.2 = icmp eq i32 %98, 0
  br i1 %.not.us.2, label %.critedge, label %.split.us

._crit_edge.us:                                   ; preds = %scalar.ph
  %.not.us = icmp eq i32 %55, 0
  br i1 %.not.us, label %.preheader.us.1.preheader, label %.split.us

.preheader.us.1.preheader:                        ; preds = %._crit_edge.us
  %min.iters.check48 = icmp ult i32 %142, 9
  br i1 %min.iters.check48, label %.preheader.us.1.preheader77, label %vector.ph49

.preheader.us.1.preheader77:                      ; preds = %middle.block46, %.preheader.us.1.preheader
  %indvars.iv31.1.ph = phi i64 [ 0, %.preheader.us.1.preheader ], [ %n.vec51, %middle.block46 ]
  %.01722.us.1.ph = phi i32 [ 0, %.preheader.us.1.preheader ], [ %135, %middle.block46 ]
  br label %.preheader.us.1

vector.ph49:                                      ; preds = %.preheader.us.1.preheader
  %n.mod.vf50 = and i64 %wide.trip.count, 7
  %99 = icmp eq i64 %n.mod.vf50, 0
  %100 = select i1 %99, i64 8, i64 %n.mod.vf50
  %n.vec51 = sub nsw i64 %wide.trip.count, %100
  br label %vector.body53

vector.body53:                                    ; preds = %vector.body53, %vector.ph49
  %index54 = phi i64 [ 0, %vector.ph49 ], [ %index.next57, %vector.body53 ]
  %vec.phi55 = phi <4 x i32> [ zeroinitializer, %vector.ph49 ], [ %132, %vector.body53 ]
  %vec.phi56 = phi <4 x i32> [ zeroinitializer, %vector.ph49 ], [ %133, %vector.body53 ]
  %101 = or disjoint i64 %index54, 1
  %102 = or disjoint i64 %index54, 2
  %103 = or disjoint i64 %index54, 3
  %104 = or disjoint i64 %index54, 4
  %105 = or disjoint i64 %index54, 5
  %106 = or disjoint i64 %index54, 6
  %107 = or disjoint i64 %index54, 7
  %108 = getelementptr inbounds [3 x i32], ptr %12, i64 %index54, i64 1
  %109 = getelementptr inbounds [3 x i32], ptr %12, i64 %101, i64 1
  %110 = getelementptr inbounds [3 x i32], ptr %12, i64 %102, i64 1
  %111 = getelementptr inbounds [3 x i32], ptr %12, i64 %103, i64 1
  %112 = getelementptr inbounds [3 x i32], ptr %12, i64 %104, i64 1
  %113 = getelementptr inbounds [3 x i32], ptr %12, i64 %105, i64 1
  %114 = getelementptr inbounds [3 x i32], ptr %12, i64 %106, i64 1
  %115 = getelementptr inbounds [3 x i32], ptr %12, i64 %107, i64 1
  %116 = load i32, ptr %108, align 4, !tbaa !8
  %117 = load i32, ptr %109, align 16, !tbaa !8
  %118 = load i32, ptr %110, align 4, !tbaa !8
  %119 = load i32, ptr %111, align 8, !tbaa !8
  %120 = insertelement <4 x i32> poison, i32 %116, i64 0
  %121 = insertelement <4 x i32> %120, i32 %117, i64 1
  %122 = insertelement <4 x i32> %121, i32 %118, i64 2
  %123 = insertelement <4 x i32> %122, i32 %119, i64 3
  %124 = load i32, ptr %112, align 4, !tbaa !8
  %125 = load i32, ptr %113, align 16, !tbaa !8
  %126 = load i32, ptr %114, align 4, !tbaa !8
  %127 = load i32, ptr %115, align 8, !tbaa !8
  %128 = insertelement <4 x i32> poison, i32 %124, i64 0
  %129 = insertelement <4 x i32> %128, i32 %125, i64 1
  %130 = insertelement <4 x i32> %129, i32 %126, i64 2
  %131 = insertelement <4 x i32> %130, i32 %127, i64 3
  %132 = add <4 x i32> %123, %vec.phi55
  %133 = add <4 x i32> %131, %vec.phi56
  %index.next57 = add nuw i64 %index54, 8
  %134 = icmp eq i64 %index.next57, %n.vec51
  br i1 %134, label %middle.block46, label %vector.body53, !llvm.loop !19

middle.block46:                                   ; preds = %vector.body53
  %bin.rdx58 = add <4 x i32> %133, %132
  %135 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx58)
  br label %.preheader.us.1.preheader77

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %136 = getelementptr inbounds [3 x i32], ptr %12, i64 %indvars.iv
  %137 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %136)
  %138 = getelementptr inbounds i8, ptr %136, i64 4
  %139 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %137, ptr noundef nonnull align 4 dereferenceable(4) %138)
  %140 = getelementptr inbounds i8, ptr %136, i64 8
  %141 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %139, ptr noundef nonnull align 4 dereferenceable(4) %140)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %142 = load i32, ptr %1, align 4, !tbaa !8
  %143 = sext i32 %142 to i64
  %144 = icmp slt i64 %indvars.iv.next, %143
  br i1 %144, label %.lr.ph, label %.preheader20, !llvm.loop !20

.critedge:                                        ; preds = %0, %._crit_edge.us.2, %.preheader20
  br label %.split.us

.split.us:                                        ; preds = %._crit_edge.us, %._crit_edge.us.1, %._crit_edge.us.2, %.critedge
  %.str.sink = phi ptr [ @.str.1, %.critedge ], [ @.str, %._crit_edge.us.2 ], [ @.str, %._crit_edge.us.1 ], [ @.str, %._crit_edge.us ]
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.sink)
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %145, i8 noundef signext 10)
  call void @llvm.stackrestore.p0(ptr %11)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #2 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #6

attributes #0 = { mustprogress norecurse 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 = { "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 = { mustprogress 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #5 = { inlinehint 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12, !14, !13}
!16 = distinct !{!16, !12, !14, !13}
!17 = distinct !{!17, !12, !13, !14}
!18 = distinct !{!18, !12, !14, !13}
!19 = distinct !{!19, !12, !13, !14}
!20 = distinct !{!20, !12}


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