; LLVM IR from upupming/algorithm :: acwing/寒假每日一题（入门组）/week3/1381. 阶乘 (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" }

@n = external dso_local global i32, align 4
@_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 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
  %9 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %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) @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 2, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  br label %11

11:                                               ; preds = %42, %0
  %12 = load i32, ptr %5, align 4, !tbaa !5
  %13 = load i32, ptr @n, align 4, !tbaa !5
  %14 = icmp sle i32 %12, %13
  br i1 %14, label %16, label %15

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

16:                                               ; preds = %11
  %17 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %17, ptr %6, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %22, %16
  %19 = load i32, ptr %6, align 4, !tbaa !5
  %20 = srem i32 %19, 2
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %27

22:                                               ; preds = %18
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %3, align 4, !tbaa !5
  %25 = load i32, ptr %6, align 4, !tbaa !5
  %26 = sdiv i32 %25, 2
  store i32 %26, ptr %6, align 4, !tbaa !5
  br label %18, !llvm.loop !9

27:                                               ; preds = %18
  br label %28

28:                                               ; preds = %32, %27
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = srem i32 %29, 5
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %37

32:                                               ; preds = %28
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %4, align 4, !tbaa !5
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = sdiv i32 %35, 5
  store i32 %36, ptr %6, align 4, !tbaa !5
  br label %28, !llvm.loop !11

37:                                               ; preds = %28
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = mul nsw i32 %38, %39
  %41 = srem i32 %40, 10
  store i32 %41, ptr %2, align 4, !tbaa !5
  br label %42

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

45:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %47 = load i32, ptr %46, align 4, !tbaa !5
  store i32 %47, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %59, %45
  %49 = load i32, ptr %8, align 4, !tbaa !5
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = sub nsw i32 %50, %51
  %53 = icmp slt i32 %49, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %62

55:                                               ; preds = %48
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = mul nsw i32 %56, 2
  %58 = srem i32 %57, 10
  store i32 %58, ptr %2, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %55
  %60 = load i32, ptr %8, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %8, align 4, !tbaa !5
  br label %48, !llvm.loop !13

62:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %74, %62
  %64 = load i32, ptr %9, align 4, !tbaa !5
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = sub nsw i32 %65, %66
  %68 = icmp slt i32 %64, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %77

70:                                               ; preds = %63
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = mul nsw i32 %71, 5
  %73 = srem i32 %72, 10
  store i32 %73, ptr %2, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %70
  %75 = load i32, ptr %9, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %9, align 4, !tbaa !5
  br label %63, !llvm.loop !14

77:                                               ; preds = %69
  %78 = load i32, ptr %2, align 4, !tbaa !5
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %78)
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  ret i32 0
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), 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) #1

; 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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint 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 #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}


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

@n = external dso_local global i32, align 4
@_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 i32, align 4
  %3 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %.not37 = icmp slt i32 %4, 2
  br i1 %.not37, label %._crit_edge42, label %.preheader24

.preheader24:                                     ; preds = %0, %._crit_edge
  %.01941 = phi i32 [ %27, %._crit_edge ], [ 1, %0 ]
  %.02240 = phi i32 [ %28, %._crit_edge ], [ 2, %0 ]
  %.lcssa283439 = phi i32 [ %.lcssa28, %._crit_edge ], [ 0, %0 ]
  %.lcssa3638 = phi i32 [ %.lcssa, %._crit_edge ], [ 0, %0 ]
  %5 = and i32 %.02240, 1
  %6 = icmp eq i32 %5, 0
  br i1 %6, label %.lr.ph, label %.preheader23

._crit_edge42:                                    ; preds = %._crit_edge, %0
  %.lcssa36.lcssa = phi i32 [ 0, %0 ], [ %.lcssa, %._crit_edge ]
  %.lcssa2834.lcssa = phi i32 [ 0, %0 ], [ %.lcssa28, %._crit_edge ]
  %.019.lcssa = phi i32 [ 1, %0 ], [ %27, %._crit_edge ]
  store i32 %.lcssa2834.lcssa, ptr %2, align 4, !tbaa !5
  store i32 %.lcssa36.lcssa, ptr %1, align 4, !tbaa !5
  %7 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = sub nsw i32 %9, %8
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph49.preheader, label %.preheader

.lr.ph49.preheader:                               ; preds = %._crit_edge42
  %xtraiter = and i32 %10, 3
  %12 = sub i32 %8, %9
  %13 = icmp ugt i32 %12, -4
  br i1 %13, label %.preheader.loopexit.unr-lcssa, label %.lr.ph49.preheader.new

.lr.ph49.preheader.new:                           ; preds = %.lr.ph49.preheader
  %unroll_iter = and i32 %10, 2147483644
  br label %.lr.ph49

.preheader23:                                     ; preds = %.lr.ph, %.preheader24
  %.lcssa = phi i32 [ %.lcssa3638, %.preheader24 ], [ %17, %.lr.ph ]
  %.020.lcssa = phi i32 [ %.02240, %.preheader24 ], [ %18, %.lr.ph ]
  %14 = urem i32 %.020.lcssa, 5
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %.lr.ph30, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader24, %.lr.ph
  %.02025 = phi i32 [ %18, %.lr.ph ], [ %.02240, %.preheader24 ]
  %16 = phi i32 [ %17, %.lr.ph ], [ %.lcssa3638, %.preheader24 ]
  %17 = add nsw i32 %16, 1
  %18 = lshr exact i32 %.02025, 1
  %19 = and i32 %.02025, 2
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %.lr.ph, label %.preheader23, !llvm.loop !9

.lr.ph30:                                         ; preds = %.preheader23, %.lr.ph30
  %.12129 = phi i32 [ %23, %.lr.ph30 ], [ %.020.lcssa, %.preheader23 ]
  %21 = phi i32 [ %22, %.lr.ph30 ], [ %.lcssa283439, %.preheader23 ]
  %22 = add nsw i32 %21, 1
  %23 = sdiv i32 %.12129, 5
  %24 = srem i32 %23, 5
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %.lr.ph30, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph30, %.preheader23
  %.lcssa28 = phi i32 [ %.lcssa283439, %.preheader23 ], [ %22, %.lr.ph30 ]
  %.121.lcssa = phi i32 [ %.020.lcssa, %.preheader23 ], [ %23, %.lr.ph30 ]
  %26 = mul nsw i32 %.121.lcssa, %.01941
  %27 = srem i32 %26, 10
  %28 = add nuw i32 %.02240, 1
  %exitcond.not = icmp eq i32 %.02240, %4
  br i1 %exitcond.not, label %._crit_edge42, label %.preheader24, !llvm.loop !12

.preheader.loopexit.unr-lcssa:                    ; preds = %.lr.ph49, %.lr.ph49.preheader
  %.lcssa80.ph = phi i32 [ poison, %.lr.ph49.preheader ], [ %43, %.lr.ph49 ]
  %.146.unr = phi i32 [ %.019.lcssa, %.lr.ph49.preheader ], [ %43, %.lr.ph49 ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.lr.ph49.epil

.lr.ph49.epil:                                    ; preds = %.preheader.loopexit.unr-lcssa, %.lr.ph49.epil
  %.146.epil = phi i32 [ %30, %.lr.ph49.epil ], [ %.146.unr, %.preheader.loopexit.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.lr.ph49.epil ], [ 0, %.preheader.loopexit.unr-lcssa ]
  %29 = shl nsw i32 %.146.epil, 1
  %30 = srem i32 %29, 10
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader, label %.lr.ph49.epil, !llvm.loop !13

.preheader:                                       ; preds = %.preheader.loopexit.unr-lcssa, %.lr.ph49.epil, %._crit_edge42
  %.1.lcssa = phi i32 [ %.019.lcssa, %._crit_edge42 ], [ %.lcssa80.ph, %.preheader.loopexit.unr-lcssa ], [ %30, %.lr.ph49.epil ]
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sub nsw i32 %31, %8
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph53.preheader, label %._crit_edge54

.lr.ph53.preheader:                               ; preds = %.preheader
  %xtraiter87 = and i32 %32, 3
  %34 = sub i32 %8, %31
  %35 = icmp ugt i32 %34, -4
  br i1 %35, label %._crit_edge54.loopexit.unr-lcssa, label %.lr.ph53.preheader.new

.lr.ph53.preheader.new:                           ; preds = %.lr.ph53.preheader
  %unroll_iter91 = and i32 %32, 2147483644
  br label %.lr.ph53

.lr.ph49:                                         ; preds = %.lr.ph49, %.lr.ph49.preheader.new
  %.146 = phi i32 [ %.019.lcssa, %.lr.ph49.preheader.new ], [ %43, %.lr.ph49 ]
  %niter = phi i32 [ 0, %.lr.ph49.preheader.new ], [ %niter.next.3, %.lr.ph49 ]
  %36 = shl nsw i32 %.146, 1
  %37 = srem i32 %36, 10
  %38 = shl nsw i32 %37, 1
  %39 = srem i32 %38, 10
  %40 = shl nsw i32 %39, 1
  %41 = srem i32 %40, 10
  %42 = shl nsw i32 %41, 1
  %43 = srem i32 %42, 10
  %niter.next.3 = add i32 %niter, 4
  %niter.ncmp.3 = icmp eq i32 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader.loopexit.unr-lcssa, label %.lr.ph49, !llvm.loop !15

._crit_edge54.loopexit.unr-lcssa:                 ; preds = %.lr.ph53, %.lr.ph53.preheader
  %.lcssa79.ph = phi i32 [ poison, %.lr.ph53.preheader ], [ %55, %.lr.ph53 ]
  %.251.unr = phi i32 [ %.1.lcssa, %.lr.ph53.preheader ], [ %55, %.lr.ph53 ]
  %lcmp.mod89.not = icmp eq i32 %xtraiter87, 0
  br i1 %lcmp.mod89.not, label %._crit_edge54, label %.lr.ph53.epil

.lr.ph53.epil:                                    ; preds = %._crit_edge54.loopexit.unr-lcssa, %.lr.ph53.epil
  %.251.epil = phi i32 [ %45, %.lr.ph53.epil ], [ %.251.unr, %._crit_edge54.loopexit.unr-lcssa ]
  %epil.iter88 = phi i32 [ %epil.iter88.next, %.lr.ph53.epil ], [ 0, %._crit_edge54.loopexit.unr-lcssa ]
  %44 = mul nsw i32 %.251.epil, 5
  %45 = srem i32 %44, 10
  %epil.iter88.next = add i32 %epil.iter88, 1
  %epil.iter88.cmp.not = icmp eq i32 %epil.iter88.next, %xtraiter87
  br i1 %epil.iter88.cmp.not, label %._crit_edge54, label %.lr.ph53.epil, !llvm.loop !16

._crit_edge54:                                    ; preds = %._crit_edge54.loopexit.unr-lcssa, %.lr.ph53.epil, %.preheader
  %.2.lcssa = phi i32 [ %.1.lcssa, %.preheader ], [ %.lcssa79.ph, %._crit_edge54.loopexit.unr-lcssa ], [ %45, %.lr.ph53.epil ]
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.2.lcssa)
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0

.lr.ph53:                                         ; preds = %.lr.ph53, %.lr.ph53.preheader.new
  %.251 = phi i32 [ %.1.lcssa, %.lr.ph53.preheader.new ], [ %55, %.lr.ph53 ]
  %niter92 = phi i32 [ 0, %.lr.ph53.preheader.new ], [ %niter92.next.3, %.lr.ph53 ]
  %48 = mul nsw i32 %.251, 5
  %49 = srem i32 %48, 10
  %50 = mul nsw i32 %49, 5
  %51 = srem i32 %50, 10
  %52 = mul nsw i32 %51, 5
  %53 = srem i32 %52, 10
  %54 = mul nsw i32 %53, 5
  %55 = srem i32 %54, 10
  %niter92.next.3 = add i32 %niter92, 4
  %niter92.ncmp.3 = icmp eq i32 %niter92.next.3, %unroll_iter91
  br i1 %niter92.ncmp.3, label %._crit_edge54.loopexit.unr-lcssa, label %.lr.ph53, !llvm.loop !17
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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 uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #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

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint 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 #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, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !10}


; Effective O3 passes: DSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass