; LLVM IR from Shah-Shishir/Codeforces-Solutions :: 509A. Maximum in Table (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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [15 x [15 x i32]], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 900, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  br label %6

6:                                                ; preds = %80, %0
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = getelementptr i8, ptr %8, i64 -24
  %10 = load i64, ptr %9, align 8
  %11 = getelementptr inbounds i8, ptr %7, i64 %10
  %12 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %11)
  br i1 %12, label %13, label %90

13:                                               ; preds = %6
  store i32 1, ptr %5, align 4, !tbaa !8
  br label %14

14:                                               ; preds = %23, %13
  %15 = load i32, ptr %5, align 4, !tbaa !8
  %16 = load i32, ptr %3, align 4, !tbaa !8
  %17 = icmp sle i32 %15, %16
  br i1 %17, label %18, label %26

18:                                               ; preds = %14
  %19 = getelementptr inbounds [15 x [15 x i32]], ptr %2, i64 0, i64 1
  %20 = load i32, ptr %5, align 4, !tbaa !8
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [15 x i32], ptr %19, i64 0, i64 %21
  store i32 1, ptr %22, align 4, !tbaa !8
  br label %23

23:                                               ; preds = %18
  %24 = load i32, ptr %5, align 4, !tbaa !8
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %5, align 4, !tbaa !8
  br label %14, !llvm.loop !11

26:                                               ; preds = %14
  store i32 1, ptr %4, align 4, !tbaa !8
  br label %27

27:                                               ; preds = %36, %26
  %28 = load i32, ptr %4, align 4, !tbaa !8
  %29 = load i32, ptr %3, align 4, !tbaa !8
  %30 = icmp sle i32 %28, %29
  br i1 %30, label %31, label %39

31:                                               ; preds = %27
  %32 = load i32, ptr %4, align 4, !tbaa !8
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [15 x [15 x i32]], ptr %2, i64 0, i64 %33
  %35 = getelementptr inbounds [15 x i32], ptr %34, i64 0, i64 1
  store i32 1, ptr %35, align 4, !tbaa !8
  br label %36

36:                                               ; preds = %31
  %37 = load i32, ptr %4, align 4, !tbaa !8
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %4, align 4, !tbaa !8
  br label %27, !llvm.loop !13

39:                                               ; preds = %27
  store i32 2, ptr %4, align 4, !tbaa !8
  br label %40

40:                                               ; preds = %77, %39
  %41 = load i32, ptr %4, align 4, !tbaa !8
  %42 = load i32, ptr %3, align 4, !tbaa !8
  %43 = icmp sle i32 %41, %42
  br i1 %43, label %44, label %80

44:                                               ; preds = %40
  store i32 2, ptr %5, align 4, !tbaa !8
  br label %45

45:                                               ; preds = %73, %44
  %46 = load i32, ptr %5, align 4, !tbaa !8
  %47 = load i32, ptr %3, align 4, !tbaa !8
  %48 = icmp sle i32 %46, %47
  br i1 %48, label %49, label %76

49:                                               ; preds = %45
  %50 = load i32, ptr %4, align 4, !tbaa !8
  %51 = sub nsw i32 %50, 1
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [15 x [15 x i32]], ptr %2, i64 0, i64 %52
  %54 = load i32, ptr %5, align 4, !tbaa !8
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [15 x i32], ptr %53, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !8
  %58 = load i32, ptr %4, align 4, !tbaa !8
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [15 x [15 x i32]], ptr %2, i64 0, i64 %59
  %61 = load i32, ptr %5, align 4, !tbaa !8
  %62 = sub nsw i32 %61, 1
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [15 x i32], ptr %60, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !8
  %66 = add nsw i32 %57, %65
  %67 = load i32, ptr %4, align 4, !tbaa !8
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [15 x [15 x i32]], ptr %2, i64 0, i64 %68
  %70 = load i32, ptr %5, align 4, !tbaa !8
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [15 x i32], ptr %69, i64 0, i64 %71
  store i32 %66, ptr %72, align 4, !tbaa !8
  br label %73

73:                                               ; preds = %49
  %74 = load i32, ptr %5, align 4, !tbaa !8
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %5, align 4, !tbaa !8
  br label %45, !llvm.loop !14

76:                                               ; preds = %45
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %4, align 4, !tbaa !8
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %4, align 4, !tbaa !8
  br label %40, !llvm.loop !15

80:                                               ; preds = %40
  %81 = load i32, ptr %3, align 4, !tbaa !8
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [15 x [15 x i32]], ptr %2, i64 0, i64 %82
  %84 = load i32, ptr %3, align 4, !tbaa !8
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [15 x i32], ptr %83, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !8
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %87)
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %6, !llvm.loop !16

90:                                               ; preds = %6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 900, ptr %2) #5
  ret i32 0
}

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #3 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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 = { 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 = { 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 #4 = { 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 #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 = !{!"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}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [15 x [15 x i32]], align 16
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 900, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %3 = 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)
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr i8, ptr %4, i64 -24
  %6 = load i64, ptr %5, align 8
  %7 = getelementptr inbounds i8, ptr %3, i64 %6
  %8 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %7)
  br i1 %8, label %.preheader24.lr.ph, label %._crit_edge36

.preheader24.lr.ph:                               ; preds = %0
  %9 = getelementptr inbounds i8, ptr %1, i64 60
  br label %.preheader24

.preheader24:                                     ; preds = %.preheader24.lr.ph, %._crit_edge35.split
  %10 = load i32, ptr %2, align 4, !tbaa !8
  %.not25 = icmp slt i32 %10, 1
  br i1 %.not25, label %._crit_edge35.split, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader24
  %11 = add nuw i32 %10, 1
  %wide.trip.count = zext i32 %11 to i64
  %12 = zext nneg i32 %10 to i64
  %min.iters.check = icmp ult i32 %10, 8
  br i1 %min.iters.check, label %.lr.ph.preheader54, label %vector.ph

.lr.ph.preheader54:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %12, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %13 = getelementptr inbounds [15 x i32], ptr %9, i64 0, i64 %offset.idx
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %13, align 16, !tbaa !8
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %14, align 16, !tbaa !8
  %index.next = add nuw i64 %index, 8
  %15 = icmp eq i64 %index.next, %n.vec
  br i1 %15, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %12
  br i1 %cmp.n, label %.preheader23, label %.lr.ph.preheader54

.preheader23:                                     ; preds = %.lr.ph, %middle.block
  br i1 %.not25, label %._crit_edge35.split, label %.lr.ph29.preheader

.lr.ph29.preheader:                               ; preds = %.preheader23
  %16 = zext nneg i32 %10 to i64
  %17 = add nsw i64 %wide.trip.count, -2
  %xtraiter = and i64 %16, 3
  %18 = icmp ult i64 %17, 3
  br i1 %18, label %.preheader22.unr-lcssa, label %.lr.ph29.preheader.new

.lr.ph29.preheader.new:                           ; preds = %.lr.ph29.preheader
  %unroll_iter = and i64 %16, 2147483644
  br label %.lr.ph29

.lr.ph:                                           ; preds = %.lr.ph.preheader54, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader54 ]
  %19 = getelementptr inbounds [15 x i32], ptr %9, i64 0, i64 %indvars.iv
  store i32 1, ptr %19, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader23, label %.lr.ph, !llvm.loop !15

.preheader22.unr-lcssa:                           ; preds = %.lr.ph29, %.lr.ph29.preheader
  %indvars.iv38.unr = phi i64 [ 1, %.lr.ph29.preheader ], [ %indvars.iv.next39.3, %.lr.ph29 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader22, label %.lr.ph29.epil

.lr.ph29.epil:                                    ; preds = %.preheader22.unr-lcssa, %.lr.ph29.epil
  %indvars.iv38.epil = phi i64 [ %indvars.iv.next39.epil, %.lr.ph29.epil ], [ %indvars.iv38.unr, %.preheader22.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph29.epil ], [ 0, %.preheader22.unr-lcssa ]
  %20 = getelementptr inbounds [15 x [15 x i32]], ptr %1, i64 0, i64 %indvars.iv38.epil, i64 1
  store i32 1, ptr %20, align 4, !tbaa !8
  %indvars.iv.next39.epil = add nuw nsw i64 %indvars.iv38.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 %.preheader22, label %.lr.ph29.epil, !llvm.loop !16

.preheader22:                                     ; preds = %.lr.ph29.epil, %.preheader22.unr-lcssa
  %.not2033 = icmp eq i32 %10, 1
  br i1 %.not2033, label %._crit_edge35.split, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader22
  %21 = add nuw i32 %10, 1
  %wide.trip.count51 = zext i32 %21 to i64
  %xtraiter55 = and i64 %wide.trip.count, 1
  %22 = icmp eq i32 %11, 3
  %unroll_iter58 = and i64 %17, -2
  %lcmp.mod57.not = icmp eq i64 %xtraiter55, 0
  br label %.preheader

.lr.ph29:                                         ; preds = %.lr.ph29, %.lr.ph29.preheader.new
  %indvars.iv38 = phi i64 [ 1, %.lr.ph29.preheader.new ], [ %indvars.iv.next39.3, %.lr.ph29 ]
  %niter = phi i64 [ 0, %.lr.ph29.preheader.new ], [ %niter.next.3, %.lr.ph29 ]
  %23 = getelementptr inbounds [15 x [15 x i32]], ptr %1, i64 0, i64 %indvars.iv38, i64 1
  store i32 1, ptr %23, align 4, !tbaa !8
  %indvars.iv.next39 = add nuw nsw i64 %indvars.iv38, 1
  %24 = getelementptr inbounds [15 x [15 x i32]], ptr %1, i64 0, i64 %indvars.iv.next39, i64 1
  store i32 1, ptr %24, align 4, !tbaa !8
  %indvars.iv.next39.1 = add nuw nsw i64 %indvars.iv38, 2
  %25 = getelementptr inbounds [15 x [15 x i32]], ptr %1, i64 0, i64 %indvars.iv.next39.1, i64 1
  store i32 1, ptr %25, align 4, !tbaa !8
  %indvars.iv.next39.2 = add nuw nsw i64 %indvars.iv38, 3
  %26 = getelementptr inbounds [15 x [15 x i32]], ptr %1, i64 0, i64 %indvars.iv.next39.2, i64 1
  store i32 1, ptr %26, align 4, !tbaa !8
  %indvars.iv.next39.3 = add nuw nsw i64 %indvars.iv38, 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 %.preheader22.unr-lcssa, label %.lr.ph29, !llvm.loop !18

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge
  %indvars.iv48 = phi i64 [ 2, %.preheader.preheader ], [ %indvars.iv.next49, %._crit_edge ]
  %27 = add nsw i64 %indvars.iv48, -1
  %.phi.trans.insert = getelementptr inbounds [15 x [15 x i32]], ptr %1, i64 0, i64 %indvars.iv48, i64 1
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !8
  br i1 %22, label %._crit_edge.unr-lcssa, label %.preheader.new

.preheader.new:                                   ; preds = %.preheader, %.preheader.new
  %28 = phi i32 [ %35, %.preheader.new ], [ %.pre, %.preheader ]
  %indvars.iv43 = phi i64 [ %indvars.iv.next44.1, %.preheader.new ], [ 2, %.preheader ]
  %niter59 = phi i64 [ %niter59.next.1, %.preheader.new ], [ 0, %.preheader ]
  %29 = getelementptr inbounds [15 x [15 x i32]], ptr %1, i64 0, i64 %27, i64 %indvars.iv43
  %30 = load i32, ptr %29, align 4, !tbaa !8
  %31 = add nsw i32 %28, %30
  %32 = getelementptr inbounds [15 x [15 x i32]], ptr %1, i64 0, i64 %indvars.iv48, i64 %indvars.iv43
  store i32 %31, ptr %32, align 4, !tbaa !8
  %indvars.iv.next44 = or disjoint i64 %indvars.iv43, 1
  %33 = getelementptr inbounds [15 x [15 x i32]], ptr %1, i64 0, i64 %27, i64 %indvars.iv.next44
  %34 = load i32, ptr %33, align 4, !tbaa !8
  %35 = add nsw i32 %31, %34
  %36 = getelementptr inbounds [15 x [15 x i32]], ptr %1, i64 0, i64 %indvars.iv48, i64 %indvars.iv.next44
  store i32 %35, ptr %36, align 4, !tbaa !8
  %indvars.iv.next44.1 = add nuw nsw i64 %indvars.iv43, 2
  %niter59.next.1 = add i64 %niter59, 2
  %niter59.ncmp.1 = icmp eq i64 %niter59.next.1, %unroll_iter58
  br i1 %niter59.ncmp.1, label %._crit_edge.unr-lcssa, label %.preheader.new, !llvm.loop !19

._crit_edge.unr-lcssa:                            ; preds = %.preheader.new, %.preheader
  %.unr = phi i32 [ %.pre, %.preheader ], [ %35, %.preheader.new ]
  %indvars.iv43.unr = phi i64 [ 2, %.preheader ], [ %indvars.iv.next44.1, %.preheader.new ]
  br i1 %lcmp.mod57.not, label %._crit_edge, label %._crit_edge.epilog-lcssa

._crit_edge.epilog-lcssa:                         ; preds = %._crit_edge.unr-lcssa
  %37 = getelementptr inbounds [15 x [15 x i32]], ptr %1, i64 0, i64 %27, i64 %indvars.iv43.unr
  %38 = load i32, ptr %37, align 4, !tbaa !8
  %39 = add nsw i32 %.unr, %38
  %40 = getelementptr inbounds [15 x [15 x i32]], ptr %1, i64 0, i64 %indvars.iv48, i64 %indvars.iv43.unr
  store i32 %39, ptr %40, align 4, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %._crit_edge.epilog-lcssa
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %exitcond52.not = icmp eq i64 %indvars.iv.next49, %wide.trip.count51
  br i1 %exitcond52.not, label %._crit_edge35.split, label %.preheader, !llvm.loop !20

._crit_edge35.split:                              ; preds = %._crit_edge, %.preheader24, %.preheader23, %.preheader22
  %41 = sext i32 %10 to i64
  %42 = getelementptr inbounds [15 x [15 x i32]], ptr %1, i64 0, i64 %41, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !8
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %43)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %46 = 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)
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = getelementptr i8, ptr %47, i64 -24
  %49 = load i64, ptr %48, align 8
  %50 = getelementptr inbounds i8, ptr %46, i64 %49
  %51 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %50)
  br i1 %51, label %.preheader24, label %._crit_edge36, !llvm.loop !21

._crit_edge36:                                    ; preds = %._crit_edge35.split, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 900, 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

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 #2

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #3 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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 = { mustprogress 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 = { 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 #4 = { 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 #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 = !{!"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, !17}
!17 = !{!"llvm.loop.unroll.disable"}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}


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