; LLVM IR from AnneLivia/Competitive-Programming :: Online Judges/URI/1018 (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 [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [21 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 [7 x i32], align 16
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 28, ptr %3) #6
  call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 28, i1 false)
  br label %4

4:                                                ; preds = %12, %0
  %5 = 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 %6

6:                                                ; preds = %4
  %7 = load i32, ptr %2, align 4, !tbaa !5
  %8 = icmp sle i32 %7, 0
  br i1 %8, label %9, label %12

9:                                                ; preds = %6
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = icmp sge i32 %10, 1000000
  br label %12

12:                                               ; preds = %9, %6
  %13 = phi i1 [ false, %6 ], [ %11, %9 ]
  br i1 %13, label %4, label %14, !llvm.loop !9

14:                                               ; preds = %12
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %15)
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %18

18:                                               ; preds = %21, %14
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = icmp sge i32 %19, 100
  br i1 %20, label %21, label %28

21:                                               ; preds = %18
  %22 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 0
  %23 = load i32, ptr %22, align 16, !tbaa !5
  %24 = add nsw i32 %23, 1
  %25 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 0
  store i32 %24, ptr %25, align 16, !tbaa !5
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = sub nsw i32 %26, 100
  store i32 %27, ptr %2, align 4, !tbaa !5
  br label %18, !llvm.loop !11

28:                                               ; preds = %18
  br label %29

29:                                               ; preds = %32, %28
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = icmp sge i32 %30, 50
  br i1 %31, label %32, label %39

32:                                               ; preds = %29
  %33 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 1
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  %36 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 1
  store i32 %35, ptr %36, align 4, !tbaa !5
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = sub nsw i32 %37, 50
  store i32 %38, ptr %2, align 4, !tbaa !5
  br label %29, !llvm.loop !12

39:                                               ; preds = %29
  br label %40

40:                                               ; preds = %43, %39
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = icmp sge i32 %41, 20
  br i1 %42, label %43, label %50

43:                                               ; preds = %40
  %44 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 2
  %45 = load i32, ptr %44, align 8, !tbaa !5
  %46 = add nsw i32 %45, 1
  %47 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 2
  store i32 %46, ptr %47, align 8, !tbaa !5
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = sub nsw i32 %48, 20
  store i32 %49, ptr %2, align 4, !tbaa !5
  br label %40, !llvm.loop !13

50:                                               ; preds = %40
  br label %51

51:                                               ; preds = %54, %50
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = icmp sge i32 %52, 10
  br i1 %53, label %54, label %61

54:                                               ; preds = %51
  %55 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 3
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  %58 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 3
  store i32 %57, ptr %58, align 4, !tbaa !5
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = sub nsw i32 %59, 10
  store i32 %60, ptr %2, align 4, !tbaa !5
  br label %51, !llvm.loop !14

61:                                               ; preds = %51
  br label %62

62:                                               ; preds = %65, %61
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = icmp sge i32 %63, 5
  br i1 %64, label %65, label %72

65:                                               ; preds = %62
  %66 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 4
  %67 = load i32, ptr %66, align 16, !tbaa !5
  %68 = add nsw i32 %67, 1
  %69 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 4
  store i32 %68, ptr %69, align 16, !tbaa !5
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %71 = sub nsw i32 %70, 5
  store i32 %71, ptr %2, align 4, !tbaa !5
  br label %62, !llvm.loop !15

72:                                               ; preds = %62
  br label %73

73:                                               ; preds = %76, %72
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = icmp sge i32 %74, 2
  br i1 %75, label %76, label %83

76:                                               ; preds = %73
  %77 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 5
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  %80 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 5
  store i32 %79, ptr %80, align 4, !tbaa !5
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = sub nsw i32 %81, 2
  store i32 %82, ptr %2, align 4, !tbaa !5
  br label %73, !llvm.loop !16

83:                                               ; preds = %73
  br label %84

84:                                               ; preds = %87, %83
  %85 = load i32, ptr %2, align 4, !tbaa !5
  %86 = icmp sge i32 %85, 1
  br i1 %86, label %87, label %94

87:                                               ; preds = %84
  %88 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 6
  %89 = load i32, ptr %88, align 8, !tbaa !5
  %90 = add nsw i32 %89, 1
  %91 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 6
  store i32 %90, ptr %91, align 8, !tbaa !5
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = sub nsw i32 %92, 1
  store i32 %93, ptr %2, align 4, !tbaa !5
  br label %84, !llvm.loop !17

94:                                               ; preds = %84
  %95 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 0
  %96 = load i32, ptr %95, align 16, !tbaa !5
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %96)
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef @.str)
  %99 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 1
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %100)
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef @.str.1)
  %103 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 2
  %104 = load i32, ptr %103, align 8, !tbaa !5
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %104)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef @.str.2)
  %107 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 3
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %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.3)
  %111 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 4
  %112 = load i32, ptr %111, align 16, !tbaa !5
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %112)
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef @.str.4)
  %115 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 5
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %116)
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef @.str.5)
  %119 = getelementptr inbounds [7 x i32], ptr %3, i64 0, i64 6
  %120 = load i32, ptr %119, align 8, !tbaa !5
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %120)
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef @.str.6)
  call void @llvm.lifetime.end.p0(i64 28, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  ret i32 0
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 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)) #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 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 = { 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


; 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 [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %2 = 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)
  %3 = load i32, ptr %1, align 4
  %4 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %3)
  %5 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %.pr = load i32, ptr %1, align 4, !tbaa !5
  %6 = icmp sgt i32 %.pr, 99
  br i1 %6, label %.lr.ph.preheader, label %thread-pre-split

.lr.ph.preheader:                                 ; preds = %0
  %7 = call i32 @llvm.usub.sat.i32(i32 %.pr, i32 199)
  %8 = add nuw i32 %7, 99
  %9 = udiv i32 %8, 100
  %10 = add nuw nsw i32 %9, 1
  %.neg = mul nsw i32 %9, -100
  %11 = add nsw i32 %.pr, -100
  %12 = add nsw i32 %.neg, %11
  store i32 %12, ptr %1, align 4, !tbaa !5
  br label %thread-pre-split

thread-pre-split:                                 ; preds = %.lr.ph.preheader, %0
  %.pr20 = phi i32 [ %12, %.lr.ph.preheader ], [ %.pr, %0 ]
  %.sroa.0.0.lcssa = phi i32 [ %10, %.lr.ph.preheader ], [ 0, %0 ]
  %13 = icmp sgt i32 %.pr20, 49
  br i1 %13, label %.lr.ph33.preheader, label %thread-pre-split21

.lr.ph33.preheader:                               ; preds = %thread-pre-split
  %14 = call i32 @llvm.usub.sat.i32(i32 %.pr20, i32 99)
  %15 = add nuw i32 %14, 49
  %16 = udiv i32 %15, 50
  %17 = add nuw nsw i32 %16, 1
  %.neg80 = mul nsw i32 %16, -50
  %18 = add nsw i32 %.pr20, -50
  %19 = add nsw i32 %.neg80, %18
  store i32 %19, ptr %1, align 4, !tbaa !5
  br label %thread-pre-split21

thread-pre-split21:                               ; preds = %.lr.ph33.preheader, %thread-pre-split
  %.pr22 = phi i32 [ %19, %.lr.ph33.preheader ], [ %.pr20, %thread-pre-split ]
  %.sroa.6.0.lcssa = phi i32 [ %17, %.lr.ph33.preheader ], [ 0, %thread-pre-split ]
  %20 = icmp sgt i32 %.pr22, 19
  br i1 %20, label %.lr.ph37.preheader, label %thread-pre-split23

.lr.ph37.preheader:                               ; preds = %thread-pre-split21
  %21 = call i32 @llvm.usub.sat.i32(i32 %.pr22, i32 39)
  %22 = add nuw i32 %21, 19
  %23 = udiv i32 %22, 20
  %24 = add nuw nsw i32 %23, 1
  %.neg81 = mul nsw i32 %23, -20
  %25 = add nsw i32 %.pr22, -20
  %26 = add nsw i32 %.neg81, %25
  store i32 %26, ptr %1, align 4, !tbaa !5
  br label %thread-pre-split23

thread-pre-split23:                               ; preds = %.lr.ph37.preheader, %thread-pre-split21
  %.pr24 = phi i32 [ %26, %.lr.ph37.preheader ], [ %.pr22, %thread-pre-split21 ]
  %.sroa.9.0.lcssa = phi i32 [ %24, %.lr.ph37.preheader ], [ 0, %thread-pre-split21 ]
  %27 = icmp sgt i32 %.pr24, 9
  br i1 %27, label %.lr.ph41.preheader, label %thread-pre-split25

.lr.ph41.preheader:                               ; preds = %thread-pre-split23
  %28 = call i32 @llvm.usub.sat.i32(i32 %.pr24, i32 19)
  %29 = add nuw i32 %28, 9
  %30 = udiv i32 %29, 10
  %31 = add nuw nsw i32 %30, 1
  %.neg82 = mul nsw i32 %30, -10
  %32 = add nsw i32 %.pr24, -10
  %33 = add nsw i32 %.neg82, %32
  store i32 %33, ptr %1, align 4, !tbaa !5
  br label %thread-pre-split25

thread-pre-split25:                               ; preds = %.lr.ph41.preheader, %thread-pre-split23
  %.pr26 = phi i32 [ %33, %.lr.ph41.preheader ], [ %.pr24, %thread-pre-split23 ]
  %.sroa.12.0.lcssa = phi i32 [ %31, %.lr.ph41.preheader ], [ 0, %thread-pre-split23 ]
  %34 = icmp sgt i32 %.pr26, 4
  br i1 %34, label %.lr.ph45.preheader, label %thread-pre-split27

.lr.ph45.preheader:                               ; preds = %thread-pre-split25
  %35 = call i32 @llvm.usub.sat.i32(i32 %.pr26, i32 9)
  %36 = add nuw i32 %35, 4
  %37 = udiv i32 %36, 5
  %38 = add nuw nsw i32 %37, 1
  %.neg83 = mul nsw i32 %37, -5
  %39 = add nsw i32 %.pr26, -5
  %40 = add nsw i32 %.neg83, %39
  store i32 %40, ptr %1, align 4, !tbaa !5
  br label %thread-pre-split27

thread-pre-split27:                               ; preds = %.lr.ph45.preheader, %thread-pre-split25
  %.pr28 = phi i32 [ %40, %.lr.ph45.preheader ], [ %.pr26, %thread-pre-split25 ]
  %.sroa.15.0.lcssa = phi i32 [ %38, %.lr.ph45.preheader ], [ 0, %thread-pre-split25 ]
  %41 = icmp sgt i32 %.pr28, 1
  br i1 %41, label %.lr.ph49.preheader, label %thread-pre-split29

.lr.ph49.preheader:                               ; preds = %thread-pre-split27
  %42 = call i32 @llvm.usub.sat.i32(i32 %.pr28, i32 3)
  %43 = add nuw i32 %42, 1
  %44 = lshr i32 %43, 1
  %45 = add nuw nsw i32 %44, 1
  %46 = and i32 %43, -2
  %47 = add nsw i32 %.pr28, -2
  %48 = sub nsw i32 %47, %46
  store i32 %48, ptr %1, align 4, !tbaa !5
  br label %thread-pre-split29

thread-pre-split29:                               ; preds = %.lr.ph49.preheader, %thread-pre-split27
  %.pr30 = phi i32 [ %48, %.lr.ph49.preheader ], [ %.pr28, %thread-pre-split27 ]
  %.sroa.18.0.lcssa = phi i32 [ %45, %.lr.ph49.preheader ], [ 0, %thread-pre-split27 ]
  %49 = icmp sgt i32 %.pr30, 0
  br i1 %49, label %.lr.ph53.preheader, label %50

.lr.ph53.preheader:                               ; preds = %thread-pre-split29
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %.lr.ph53.preheader, %thread-pre-split29
  %.sroa.21.0.lcssa = phi i32 [ %.pr30, %.lr.ph53.preheader ], [ 0, %thread-pre-split29 ]
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.0.0.lcssa)
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull @.str)
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.6.0.lcssa)
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull @.str.1)
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.9.0.lcssa)
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @.str.2)
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.12.0.lcssa)
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull @.str.3)
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.15.0.lcssa)
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull @.str.4)
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.18.0.lcssa)
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull @.str.5)
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.21.0.lcssa)
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @.str.6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  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

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: 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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.usub.sat.i32(i32, i32) #5

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass