; LLVM IR from seikhchilli/codeforces-solution :: 1739A (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 [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 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 i32, align 4
  %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
  store i32 0, ptr %1, align 4
  %9 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %10 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %11 = getelementptr i8, ptr %10, i64 -24
  %12 = load i64, ptr %11, align 8
  %13 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %12
  %14 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %13, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  %15 = 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)
  br label %16

16:                                               ; preds = %140, %0
  %17 = load i32, ptr %2, align 4, !tbaa !8
  %18 = add nsw i32 %17, -1
  store i32 %18, ptr %2, align 4, !tbaa !8
  %19 = icmp ne i32 %17, 0
  br i1 %19, label %20, label %141

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %21 = 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)
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 1, ptr %6, align 4, !tbaa !8
  br label %23

23:                                               ; preds = %128, %20
  %24 = load i32, ptr %6, align 4, !tbaa !8
  %25 = load i32, ptr %3, align 4, !tbaa !8
  %26 = icmp sle i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  store i32 4, ptr %7, align 4
  br label %131

28:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 1, ptr %8, align 4, !tbaa !8
  br label %29

29:                                               ; preds = %119, %28
  %30 = load i32, ptr %8, align 4, !tbaa !8
  %31 = load i32, ptr %4, align 4, !tbaa !8
  %32 = icmp sle i32 %30, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  store i32 7, ptr %7, align 4
  br label %122

34:                                               ; preds = %29
  %35 = load i32, ptr %6, align 4, !tbaa !8
  %36 = add nsw i32 %35, 2
  %37 = load i32, ptr %3, align 4, !tbaa !8
  %38 = icmp sle i32 %36, %37
  br i1 %38, label %39, label %44

39:                                               ; preds = %34
  %40 = load i32, ptr %8, align 4, !tbaa !8
  %41 = add nsw i32 %40, 1
  %42 = load i32, ptr %4, align 4, !tbaa !8
  %43 = icmp sle i32 %41, %42
  br i1 %43, label %106, label %44

44:                                               ; preds = %39, %34
  %45 = load i32, ptr %6, align 4, !tbaa !8
  %46 = add nsw i32 %45, 2
  %47 = load i32, ptr %3, align 4, !tbaa !8
  %48 = icmp sle i32 %46, %47
  br i1 %48, label %49, label %53

49:                                               ; preds = %44
  %50 = load i32, ptr %8, align 4, !tbaa !8
  %51 = sub nsw i32 %50, 1
  %52 = icmp sge i32 %51, 1
  br i1 %52, label %106, label %53

53:                                               ; preds = %49, %44
  %54 = load i32, ptr %6, align 4, !tbaa !8
  %55 = sub nsw i32 %54, 2
  %56 = icmp sge i32 %55, 1
  br i1 %56, label %57, label %62

57:                                               ; preds = %53
  %58 = load i32, ptr %8, align 4, !tbaa !8
  %59 = add nsw i32 %58, 1
  %60 = load i32, ptr %4, align 4, !tbaa !8
  %61 = icmp sle i32 %59, %60
  br i1 %61, label %106, label %62

62:                                               ; preds = %57, %53
  %63 = load i32, ptr %6, align 4, !tbaa !8
  %64 = sub nsw i32 %63, 2
  %65 = icmp sge i32 %64, 1
  br i1 %65, label %66, label %70

66:                                               ; preds = %62
  %67 = load i32, ptr %8, align 4, !tbaa !8
  %68 = sub nsw i32 %67, 1
  %69 = icmp sge i32 %68, 1
  br i1 %69, label %106, label %70

70:                                               ; preds = %66, %62
  %71 = load i32, ptr %8, align 4, !tbaa !8
  %72 = add nsw i32 %71, 2
  %73 = load i32, ptr %4, align 4, !tbaa !8
  %74 = icmp sle i32 %72, %73
  br i1 %74, label %75, label %80

75:                                               ; preds = %70
  %76 = load i32, ptr %6, align 4, !tbaa !8
  %77 = add nsw i32 %76, 1
  %78 = load i32, ptr %3, align 4, !tbaa !8
  %79 = icmp sle i32 %77, %78
  br i1 %79, label %106, label %80

80:                                               ; preds = %75, %70
  %81 = load i32, ptr %8, align 4, !tbaa !8
  %82 = add nsw i32 %81, 2
  %83 = load i32, ptr %4, align 4, !tbaa !8
  %84 = icmp sle i32 %82, %83
  br i1 %84, label %85, label %89

85:                                               ; preds = %80
  %86 = load i32, ptr %6, align 4, !tbaa !8
  %87 = sub nsw i32 %86, 1
  %88 = icmp sge i32 %87, 1
  br i1 %88, label %106, label %89

89:                                               ; preds = %85, %80
  %90 = load i32, ptr %8, align 4, !tbaa !8
  %91 = sub nsw i32 %90, 2
  %92 = icmp sge i32 %91, 1
  br i1 %92, label %93, label %98

93:                                               ; preds = %89
  %94 = load i32, ptr %6, align 4, !tbaa !8
  %95 = add nsw i32 %94, 1
  %96 = load i32, ptr %3, align 4, !tbaa !8
  %97 = icmp sle i32 %95, %96
  br i1 %97, label %106, label %98

98:                                               ; preds = %93, %89
  %99 = load i32, ptr %8, align 4, !tbaa !8
  %100 = sub nsw i32 %99, 2
  %101 = icmp sge i32 %100, 1
  br i1 %101, label %102, label %107

102:                                              ; preds = %98
  %103 = load i32, ptr %6, align 4, !tbaa !8
  %104 = sub nsw i32 %103, 1
  %105 = icmp sge i32 %104, 1
  br i1 %105, label %106, label %107

106:                                              ; preds = %102, %93, %85, %75, %66, %57, %49, %39
  br label %119

107:                                              ; preds = %102, %98
  %108 = load i32, ptr %6, align 4, !tbaa !8
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %108)
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef @.str)
  %111 = load i32, ptr %8, align 4, !tbaa !8
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %110, i32 noundef %111)
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef @.str.1)
  store i32 1, ptr %5, align 4, !tbaa !8
  br label %114

114:                                              ; preds = %107
  %115 = load i32, ptr %5, align 4, !tbaa !8
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %118

117:                                              ; preds = %114
  store i32 7, ptr %7, align 4
  br label %122

118:                                              ; preds = %114
  br label %119

119:                                              ; preds = %118, %106
  %120 = load i32, ptr %8, align 4, !tbaa !8
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %8, align 4, !tbaa !8
  br label %29, !llvm.loop !11

122:                                              ; preds = %117, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %5, align 4, !tbaa !8
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %127

126:                                              ; preds = %123
  store i32 4, ptr %7, align 4
  br label %131

127:                                              ; preds = %123
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %6, align 4, !tbaa !8
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %6, align 4, !tbaa !8
  br label %23, !llvm.loop !13

131:                                              ; preds = %126, %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %5, align 4, !tbaa !8
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %140, label %135

135:                                              ; preds = %132
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @.str)
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %137, i32 noundef 1)
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %138, ptr noundef @.str.1)
  br label %140

140:                                              ; preds = %135, %132
  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
  br label %16, !llvm.loop !14

141:                                              ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %142 = load i32, ptr %1, align 4
  ret i32 %142
}

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: 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) #4

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

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

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 = { 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}


; 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 [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 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 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %5 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %6 = getelementptr i8, ptr %5, i64 -24
  %7 = load i64, ptr %6, align 8
  %8 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %7
  %9 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %8, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %10 = 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)
  %11 = load i32, ptr %1, align 4, !tbaa !8
  %12 = add nsw i32 %11, -1
  store i32 %12, ptr %1, align 4, !tbaa !8
  %.not79 = icmp eq i32 %11, 0
  br i1 %.not79, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %.split.us
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %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 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %15 = load i32, ptr %2, align 4
  %.not2974 = icmp slt i32 %15, 1
  br i1 %.not2974, label %.split.us, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.lr.ph
  %16 = load i32, ptr %3, align 4
  %.not3056 = icmp slt i32 %16, 1
  br i1 %.not3056, label %.split.us, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %.not32.not.us.peel = icmp ne i32 %16, 1
  %.not35.us.peel = icmp sgt i32 %16, 2
  %.not35.us.peel111 = icmp sgt i32 %16, 3
  %exitcond.peel116.not = icmp eq i32 %16, 2
  %.not32.not.us60.us.peel.not = icmp eq i32 %16, 1
  %.not32.not.us60.peel.not = icmp eq i32 %16, 1
  %.not32.not.peel.not = icmp eq i32 %16, 1
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %..critedge_crit_edge
  %.02675 = phi i32 [ %24, %..critedge_crit_edge ], [ 1, %.preheader.preheader ]
  %17 = add nuw nsw i32 %.02675, 2
  %.not31 = icmp sle i32 %17, %15
  %18 = icmp ugt i32 %.02675, 2
  %.not36.not = icmp slt i32 %.02675, %15
  %.not36.not.fr = freeze i1 %.not36.not
  %19 = icmp ugt i32 %.02675, 1
  %or.cond4753 = or i1 %19, %.not36.not.fr
  %.not31.fr = freeze i1 %.not31
  br i1 %.not31.fr, label %.lr.ph.split, label %.lr.ph.split.us.preheader

.lr.ph.split.us.preheader:                        ; preds = %.preheader
  %or.cond50.us.peel = and i1 %18, %.not32.not.us.peel
  br i1 %or.cond50.us.peel, label %.lr.ph.split.us.peel.next.thread, label %20

20:                                               ; preds = %.lr.ph.split.us.preheader
  %or.cond.peel = and i1 %or.cond4753, %.not35.us.peel
  br i1 %or.cond.peel, label %.lr.ph.split.us.peel.next, label %.split.us

.lr.ph.split.us.peel.next:                        ; preds = %20
  br i1 %18, label %.lr.ph.split.us.peel.next.thread, label %21

21:                                               ; preds = %.lr.ph.split.us.peel.next
  %or.cond.peel113 = and i1 %or.cond4753, %.not35.us.peel111
  br i1 %or.cond.peel113, label %.lr.ph.split.us.preheader159, label %.split.us

.lr.ph.split.us.peel.next.thread:                 ; preds = %.lr.ph.split.us.preheader, %.lr.ph.split.us.peel.next
  br i1 %exitcond.peel116.not, label %..critedge_crit_edge, label %.lr.ph.split.us.preheader159

.lr.ph.split.us.preheader159:                     ; preds = %21, %.lr.ph.split.us.peel.next.thread
  br label %.lr.ph.split.us

.lr.ph.split.us:                                  ; preds = %.lr.ph.split.us.preheader159, %22
  %.057.us = phi i32 [ %23, %22 ], [ 3, %.lr.ph.split.us.preheader159 ]
  br i1 %or.cond4753, label %22, label %.split.us

22:                                               ; preds = %.lr.ph.split.us
  %23 = add nuw i32 %.057.us, 1
  %exitcond.not = icmp eq i32 %.057.us, %16
  br i1 %exitcond.not, label %..critedge_crit_edge, label %.lr.ph.split.us, !llvm.loop !11

.lr.ph.split:                                     ; preds = %.preheader
  br i1 %18, label %.lr.ph.split.split.preheader, label %.lr.ph.split.split.us

.lr.ph.split.split.preheader:                     ; preds = %.lr.ph.split
  br i1 %.not32.not.peel.not, label %.split.us, label %..critedge_crit_edge

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split
  br i1 %.not36.not.fr, label %.lr.ph.split.split.us.split.preheader, label %.lr.ph.split.split.us.split.us.preheader

.lr.ph.split.split.us.split.us.preheader:         ; preds = %.lr.ph.split.split.us
  br i1 %.not32.not.us60.us.peel.not, label %.split.us, label %..critedge_crit_edge

.lr.ph.split.split.us.split.preheader:            ; preds = %.lr.ph.split.split.us
  br i1 %.not32.not.us60.peel.not, label %.split.us, label %..critedge_crit_edge

..critedge_crit_edge:                             ; preds = %22, %.lr.ph.split.split.us.split.us.preheader, %.lr.ph.split.split.us.split.preheader, %.lr.ph.split.split.preheader, %.lr.ph.split.us.peel.next.thread
  %24 = add i32 %.02675, 1
  %.not29 = icmp sgt i32 %24, %15
  br i1 %.not29, label %.split.us, label %.preheader, !llvm.loop !14

.split.us:                                        ; preds = %..critedge_crit_edge, %.lr.ph.split.split.preheader, %.lr.ph.split.split.us.split.preheader, %.lr.ph.split.split.us.split.us.preheader, %21, %20, %.lr.ph.split.us, %.lr.ph, %.preheader.lr.ph
  %.02675150.sink = phi i32 [ 1, %.preheader.lr.ph ], [ 1, %.lr.ph ], [ %.02675, %.lr.ph.split.us ], [ %.02675, %.lr.ph.split.split.preheader ], [ %.02675, %.lr.ph.split.split.us.split.preheader ], [ %.02675, %.lr.ph.split.split.us.split.us.preheader ], [ %.02675, %21 ], [ %.02675, %20 ], [ 1, %..critedge_crit_edge ]
  %.us-phi58.sink = phi i32 [ 1, %.preheader.lr.ph ], [ 1, %.lr.ph ], [ %.057.us, %.lr.ph.split.us ], [ 1, %.lr.ph.split.split.preheader ], [ 1, %.lr.ph.split.split.us.split.preheader ], [ 1, %.lr.ph.split.split.us.split.us.preheader ], [ 2, %21 ], [ 1, %20 ], [ 1, %..critedge_crit_edge ]
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.02675150.sink)
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull @.str)
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %26, i32 noundef %.us-phi58.sink)
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @.str.1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %29 = load i32, ptr %1, align 4, !tbaa !8
  %30 = add nsw i32 %29, -1
  store i32 %30, ptr %1, align 4, !tbaa !8
  %.not = icmp eq i32 %29, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

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

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

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

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 = { 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}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.peeled.count", i32 2}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


; Effective O3 passes: ADCEPass,BDCEPass,ConstraintEliminationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass