; LLVM IR from AnneLivia/Competitive-Programming :: Online Judges/URI/1534 (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 i32, align 4
  %3 = alloca [71 x [71 x i32]], align 16
  %4 = alloca i32, align 4
  %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
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 20164, ptr %3) #5
  br label %12

12:                                               ; preds = %108, %0
  %13 = 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)
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = getelementptr i8, ptr %14, i64 -24
  %16 = load i64, ptr %15, align 8
  %17 = getelementptr inbounds i8, ptr %13, i64 %16
  %18 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %17)
  br i1 %18, label %19, label %109

19:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !8
  br label %20

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

24:                                               ; preds = %20
  store i32 4, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %45

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

26:                                               ; preds = %38, %25
  %27 = load i32, ptr %6, align 4, !tbaa !8
  %28 = load i32, ptr %2, align 4, !tbaa !8
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

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

31:                                               ; preds = %26
  %32 = load i32, ptr %4, align 4, !tbaa !8
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [71 x [71 x i32]], ptr %3, i64 0, i64 %33
  %35 = load i32, ptr %6, align 4, !tbaa !8
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [71 x i32], ptr %34, i64 0, i64 %36
  store i32 3, ptr %37, align 4, !tbaa !8
  br label %38

38:                                               ; preds = %31
  %39 = load i32, ptr %6, align 4, !tbaa !8
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %6, align 4, !tbaa !8
  br label %26, !llvm.loop !11

41:                                               ; preds = %30
  br label %42

42:                                               ; preds = %41
  %43 = load i32, ptr %4, align 4, !tbaa !8
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %4, align 4, !tbaa !8
  br label %20, !llvm.loop !13

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

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

50:                                               ; preds = %46
  store i32 10, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %61

51:                                               ; preds = %46
  %52 = load i32, ptr %7, align 4, !tbaa !8
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [71 x [71 x i32]], ptr %3, i64 0, i64 %53
  %55 = load i32, ptr %7, align 4, !tbaa !8
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [71 x i32], ptr %54, i64 0, i64 %56
  store i32 1, ptr %57, align 4, !tbaa !8
  br label %58

58:                                               ; preds = %51
  %59 = load i32, ptr %7, align 4, !tbaa !8
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %7, align 4, !tbaa !8
  br label %46, !llvm.loop !14

61:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %62 = load i32, ptr %2, align 4, !tbaa !8
  %63 = sub nsw i32 %62, 1
  store i32 %63, ptr %9, align 4, !tbaa !8
  br label %64

64:                                               ; preds = %76, %61
  %65 = load i32, ptr %9, align 4, !tbaa !8
  %66 = icmp sge i32 %65, 0
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  store i32 13, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %79

68:                                               ; preds = %64
  %69 = load i32, ptr %8, align 4, !tbaa !8
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %8, align 4, !tbaa !8
  %71 = sext i32 %69 to i64
  %72 = getelementptr inbounds [71 x [71 x i32]], ptr %3, i64 0, i64 %71
  %73 = load i32, ptr %9, align 4, !tbaa !8
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [71 x i32], ptr %72, i64 0, i64 %74
  store i32 2, ptr %75, align 4, !tbaa !8
  br label %76

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

79:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !8
  br label %80

80:                                               ; preds = %105, %79
  %81 = load i32, ptr %10, align 4, !tbaa !8
  %82 = load i32, ptr %2, align 4, !tbaa !8
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  store i32 16, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %108

85:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !8
  br label %86

86:                                               ; preds = %100, %85
  %87 = load i32, ptr %11, align 4, !tbaa !8
  %88 = load i32, ptr %2, align 4, !tbaa !8
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  store i32 19, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %103

91:                                               ; preds = %86
  %92 = load i32, ptr %10, align 4, !tbaa !8
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [71 x [71 x i32]], ptr %3, i64 0, i64 %93
  %95 = load i32, ptr %11, align 4, !tbaa !8
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [71 x i32], ptr %94, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !8
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %98)
  br label %100

100:                                              ; preds = %91
  %101 = load i32, ptr %11, align 4, !tbaa !8
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %11, align 4, !tbaa !8
  br label %86, !llvm.loop !16

103:                                              ; preds = %90
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %105

105:                                              ; preds = %103
  %106 = load i32, ptr %10, align 4, !tbaa !8
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %10, align 4, !tbaa !8
  br label %80, !llvm.loop !17

108:                                              ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %12, !llvm.loop !18

109:                                              ; preds = %12
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 20164, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %110 = load i32, ptr %1, align 4
  ret i32 %110
}

; 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

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

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

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}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !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 i32, align 4
  %2 = alloca [71 x [71 x i32]], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 20164, 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) %1)
  %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 %.preheader32, label %._crit_edge42

.loopexit:                                        ; preds = %._crit_edge, %.preheader32, %.preheader31, %.preheader30, %.preheader29
  %9 = 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)
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = getelementptr i8, ptr %10, i64 -24
  %12 = load i64, ptr %11, align 8
  %13 = getelementptr inbounds i8, ptr %9, i64 %12
  %14 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %13)
  br i1 %14, label %.preheader32, label %._crit_edge42, !llvm.loop !8

.preheader32:                                     ; preds = %0, %.loopexit
  %15 = load i32, ptr %1, align 4, !tbaa !10
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.preheader28.us.preheader, label %.loopexit

.preheader28.us.preheader:                        ; preds = %.preheader32
  %wide.trip.count47 = zext nneg i32 %15 to i64
  %min.iters.check = icmp ult i32 %15, 8
  %n.vec = and i64 %wide.trip.count47, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count47
  br label %.preheader28.us

.preheader28.us:                                  ; preds = %.preheader28.us.preheader, %._crit_edge.us
  %indvars.iv44 = phi i64 [ 0, %.preheader28.us.preheader ], [ %indvars.iv.next45, %._crit_edge.us ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader28.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader28.us ]
  %17 = getelementptr inbounds [71 x [71 x i32]], ptr %2, i64 0, i64 %indvars.iv44, i64 %index
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  store <4 x i32> <i32 3, i32 3, i32 3, i32 3>, ptr %17, align 4, !tbaa !10
  store <4 x i32> <i32 3, i32 3, i32 3, i32 3>, ptr %18, align 4, !tbaa !10
  %index.next = add nuw i64 %index, 8
  %19 = icmp eq i64 %index.next, %n.vec
  br i1 %19, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader28.us
  %indvars.iv.ph = phi i64 [ 0, %.preheader28.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %20 = getelementptr inbounds [71 x [71 x i32]], ptr %2, i64 0, i64 %indvars.iv44, i64 %indvars.iv
  store i32 3, ptr %20, align 4, !tbaa !10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count47
  br i1 %exitcond.not, label %._crit_edge.us, label %scalar.ph, !llvm.loop !16

._crit_edge.us:                                   ; preds = %scalar.ph, %middle.block
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %exitcond48.not = icmp eq i64 %indvars.iv.next45, %wide.trip.count47
  br i1 %exitcond48.not, label %.preheader31, label %.preheader28.us, !llvm.loop !17

.preheader31:                                     ; preds = %._crit_edge.us
  br i1 %16, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %.preheader31
  %xtraiter = and i64 %wide.trip.count47, 3
  %21 = icmp ult i32 %15, 4
  br i1 %21, label %.preheader30.unr-lcssa, label %.lr.ph.preheader.new

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

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

.lr.ph.epil:                                      ; preds = %.preheader30.unr-lcssa, %.lr.ph.epil
  %indvars.iv49.epil = phi i64 [ %indvars.iv.next50.epil, %.lr.ph.epil ], [ %indvars.iv49.unr, %.preheader30.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader30.unr-lcssa ]
  %22 = getelementptr inbounds [71 x [71 x i32]], ptr %2, i64 0, i64 %indvars.iv49.epil, i64 %indvars.iv49.epil
  store i32 1, ptr %22, align 4, !tbaa !10
  %indvars.iv.next50.epil = add nuw nsw i64 %indvars.iv49.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 %.preheader30, label %.lr.ph.epil, !llvm.loop !18

.preheader30:                                     ; preds = %.lr.ph.epil, %.preheader30.unr-lcssa
  br i1 %16, label %.lr.ph38.preheader, label %.loopexit

.lr.ph38.preheader:                               ; preds = %.preheader30
  %23 = zext nneg i32 %15 to i64
  %xtraiter69 = and i64 %wide.trip.count47, 3
  %24 = icmp ult i32 %15, 4
  br i1 %24, label %.preheader29.unr-lcssa, label %.lr.ph38.preheader.new

.lr.ph38.preheader.new:                           ; preds = %.lr.ph38.preheader
  %unroll_iter72 = and i64 %wide.trip.count47, 2147483644
  br label %.lr.ph38

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv49 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next50.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %25 = getelementptr inbounds [71 x [71 x i32]], ptr %2, i64 0, i64 %indvars.iv49, i64 %indvars.iv49
  store i32 1, ptr %25, align 16, !tbaa !10
  %indvars.iv.next50 = or disjoint i64 %indvars.iv49, 1
  %26 = getelementptr inbounds [71 x [71 x i32]], ptr %2, i64 0, i64 %indvars.iv.next50, i64 %indvars.iv.next50
  store i32 1, ptr %26, align 16, !tbaa !10
  %indvars.iv.next50.1 = or disjoint i64 %indvars.iv49, 2
  %27 = getelementptr inbounds [71 x [71 x i32]], ptr %2, i64 0, i64 %indvars.iv.next50.1, i64 %indvars.iv.next50.1
  store i32 1, ptr %27, align 16, !tbaa !10
  %indvars.iv.next50.2 = or disjoint i64 %indvars.iv49, 3
  %28 = getelementptr inbounds [71 x [71 x i32]], ptr %2, i64 0, i64 %indvars.iv.next50.2, i64 %indvars.iv.next50.2
  store i32 1, ptr %28, align 16, !tbaa !10
  %indvars.iv.next50.3 = add nuw nsw i64 %indvars.iv49, 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 %.preheader30.unr-lcssa, label %.lr.ph, !llvm.loop !20

.preheader29.unr-lcssa:                           ; preds = %.lr.ph38, %.lr.ph38.preheader
  %indvars.iv56.unr = phi i64 [ 0, %.lr.ph38.preheader ], [ %indvars.iv.next57.3, %.lr.ph38 ]
  %indvars.iv54.unr = phi i64 [ %23, %.lr.ph38.preheader ], [ %indvars.iv.next55.3, %.lr.ph38 ]
  %lcmp.mod71.not = icmp eq i64 %xtraiter69, 0
  br i1 %lcmp.mod71.not, label %.preheader29, label %.lr.ph38.epil

.lr.ph38.epil:                                    ; preds = %.preheader29.unr-lcssa, %.lr.ph38.epil
  %indvars.iv56.epil = phi i64 [ %indvars.iv.next57.epil, %.lr.ph38.epil ], [ %indvars.iv56.unr, %.preheader29.unr-lcssa ]
  %indvars.iv54.epil = phi i64 [ %indvars.iv.next55.epil, %.lr.ph38.epil ], [ %indvars.iv54.unr, %.preheader29.unr-lcssa ]
  %epil.iter70 = phi i64 [ %epil.iter70.next, %.lr.ph38.epil ], [ 0, %.preheader29.unr-lcssa ]
  %indvars.iv.next55.epil = add nsw i64 %indvars.iv54.epil, -1
  %indvars.iv.next57.epil = add nuw nsw i64 %indvars.iv56.epil, 1
  %29 = getelementptr inbounds [71 x [71 x i32]], ptr %2, i64 0, i64 %indvars.iv56.epil, i64 %indvars.iv.next55.epil
  store i32 2, ptr %29, align 4, !tbaa !10
  %epil.iter70.next = add i64 %epil.iter70, 1
  %epil.iter70.cmp.not = icmp eq i64 %epil.iter70.next, %xtraiter69
  br i1 %epil.iter70.cmp.not, label %.preheader29, label %.lr.ph38.epil, !llvm.loop !21

.preheader29:                                     ; preds = %.lr.ph38.epil, %.preheader29.unr-lcssa
  br i1 %16, label %.preheader, label %.loopexit

.lr.ph38:                                         ; preds = %.lr.ph38, %.lr.ph38.preheader.new
  %indvars.iv56 = phi i64 [ 0, %.lr.ph38.preheader.new ], [ %indvars.iv.next57.3, %.lr.ph38 ]
  %indvars.iv54 = phi i64 [ %23, %.lr.ph38.preheader.new ], [ %indvars.iv.next55.3, %.lr.ph38 ]
  %niter73 = phi i64 [ 0, %.lr.ph38.preheader.new ], [ %niter73.next.3, %.lr.ph38 ]
  %indvars.iv.next55 = add nsw i64 %indvars.iv54, -1
  %indvars.iv.next57 = or disjoint i64 %indvars.iv56, 1
  %30 = getelementptr inbounds [71 x [71 x i32]], ptr %2, i64 0, i64 %indvars.iv56, i64 %indvars.iv.next55
  store i32 2, ptr %30, align 4, !tbaa !10
  %indvars.iv.next55.1 = add nsw i64 %indvars.iv54, -2
  %indvars.iv.next57.1 = or disjoint i64 %indvars.iv56, 2
  %31 = getelementptr inbounds [71 x [71 x i32]], ptr %2, i64 0, i64 %indvars.iv.next57, i64 %indvars.iv.next55.1
  store i32 2, ptr %31, align 4, !tbaa !10
  %indvars.iv.next55.2 = add nsw i64 %indvars.iv54, -3
  %indvars.iv.next57.2 = or disjoint i64 %indvars.iv56, 3
  %32 = getelementptr inbounds [71 x [71 x i32]], ptr %2, i64 0, i64 %indvars.iv.next57.1, i64 %indvars.iv.next55.2
  store i32 2, ptr %32, align 4, !tbaa !10
  %indvars.iv.next55.3 = add nsw i64 %indvars.iv54, -4
  %indvars.iv.next57.3 = add nuw nsw i64 %indvars.iv56, 4
  %33 = getelementptr inbounds [71 x [71 x i32]], ptr %2, i64 0, i64 %indvars.iv.next57.2, i64 %indvars.iv.next55.3
  store i32 2, ptr %33, align 4, !tbaa !10
  %niter73.next.3 = add i64 %niter73, 4
  %niter73.ncmp.3 = icmp eq i64 %niter73.next.3, %unroll_iter72
  br i1 %niter73.ncmp.3, label %.preheader29.unr-lcssa, label %.lr.ph38, !llvm.loop !22

.preheader:                                       ; preds = %.preheader29, %._crit_edge
  %34 = phi i32 [ %37, %._crit_edge ], [ %15, %.preheader29 ]
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %._crit_edge ], [ 0, %.preheader29 ]
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph40, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph40, %.preheader
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %37 = load i32, ptr %1, align 4, !tbaa !10
  %38 = sext i32 %37 to i64
  %39 = icmp slt i64 %indvars.iv.next67, %38
  br i1 %39, label %.preheader, label %.loopexit, !llvm.loop !23

.lr.ph40:                                         ; preds = %.preheader, %.lr.ph40
  %indvars.iv63 = phi i64 [ %indvars.iv.next64, %.lr.ph40 ], [ 0, %.preheader ]
  %40 = getelementptr inbounds [71 x [71 x i32]], ptr %2, i64 0, i64 %indvars.iv66, i64 %indvars.iv63
  %41 = load i32, ptr %40, align 4, !tbaa !10
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %41)
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %43 = load i32, ptr %1, align 4, !tbaa !10
  %44 = sext i32 %43 to i64
  %45 = icmp slt i64 %indvars.iv.next64, %44
  br i1 %45, label %.lr.ph40, label %._crit_edge, !llvm.loop !24

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

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

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

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 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = distinct !{!13, !9, !14, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !9, !15, !14}
!17 = distinct !{!17, !9}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = distinct !{!20, !9}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !9}
!23 = distinct !{!23, !9}
!24 = distinct !{!24, !9}


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