; LLVM IR from tangjz/acm-icpc :: codeforces/complete (236B)

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

@a = external dso_local global i32, align 4
@b = external dso_local global i32, align 4
@c = external dso_local global i32, align 4
@divnum = external dso_local global [1000001 x i32], align 16
@ans = external dso_local global i64, align 8
@_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
  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 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %5 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @a)
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) @b)
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) @c)
  %9 = load i32, ptr @a, align 4, !tbaa !5
  %10 = load i32, ptr @b, align 4, !tbaa !5
  %11 = mul nsw i32 %9, %10
  %12 = load i32, ptr @c, align 4, !tbaa !5
  %13 = mul nsw i32 %11, %12
  store i32 %13, ptr %4, align 4, !tbaa !5
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %35, %0
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = icmp sle i32 %15, %16
  br i1 %17, label %18, label %38

18:                                               ; preds = %14
  %19 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %19, ptr %3, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %30, %18
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = icmp sle i32 %21, %22
  br i1 %23, label %24, label %34

24:                                               ; preds = %20
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [1000001 x i32], ptr @divnum, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %27, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %24
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = add nsw i32 %32, %31
  store i32 %33, ptr %3, align 4, !tbaa !5
  br label %20, !llvm.loop !9

34:                                               ; preds = %20
  br label %35

35:                                               ; preds = %34
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %2, align 4, !tbaa !5
  br label %14, !llvm.loop !11

38:                                               ; preds = %14
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %74, %38
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = load i32, ptr @a, align 4, !tbaa !5
  %42 = icmp sle i32 %40, %41
  br i1 %42, label %43, label %77

43:                                               ; preds = %39
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %70, %43
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = load i32, ptr @b, align 4, !tbaa !5
  %47 = icmp sle i32 %45, %46
  br i1 %47, label %48, label %73

48:                                               ; preds = %44
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %66, %48
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = load i32, ptr @c, align 4, !tbaa !5
  %52 = icmp sle i32 %50, %51
  br i1 %52, label %53, label %69

53:                                               ; preds = %49
  %54 = load i64, ptr @ans, align 8, !tbaa !12
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = mul nsw i32 %55, %56
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = mul nsw i32 %57, %58
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [1000001 x i32], ptr @divnum, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = add nsw i64 %54, %63
  %65 = srem i64 %64, 1073741824
  store i64 %65, ptr @ans, align 8, !tbaa !12
  br label %66

66:                                               ; preds = %53
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %4, align 4, !tbaa !5
  br label %49, !llvm.loop !14

69:                                               ; preds = %49
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %3, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %3, align 4, !tbaa !5
  br label %44, !llvm.loop !15

73:                                               ; preds = %44
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %2, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %2, align 4, !tbaa !5
  br label %39, !llvm.loop !16

77:                                               ; preds = %39
  %78 = load i64, ptr @ans, align 8, !tbaa !12
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 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 %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  ret i32 0
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

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 nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 align 2

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

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !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" }

@a = external dso_local global i32, align 4
@b = external dso_local global i32, align 4
@c = external dso_local global i32, align 4
@divnum = external dso_local local_unnamed_addr global [1000001 x i32], align 16
@ans = external dso_local local_unnamed_addr global i64, align 8
@_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 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %2 = 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) @a)
  %3 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) @b)
  %4 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(4) @c)
  %5 = load i32, ptr @a, align 4, !tbaa !5
  %6 = load i32, ptr @b, align 4, !tbaa !5
  %7 = mul nsw i32 %6, %5
  %8 = load i32, ptr @c, align 4, !tbaa !5
  %9 = mul nsw i32 %7, %8
  %.not30 = icmp slt i32 %9, 1
  br i1 %.not30, label %.preheader27, label %.preheader28.preheader

.preheader28.preheader:                           ; preds = %0
  %10 = zext nneg i32 %9 to i64
  %xtraiter = and i64 %10, 1
  %11 = icmp eq i32 %9, 1
  br i1 %11, label %.preheader27.loopexit.unr-lcssa, label %.preheader28.preheader.new

.preheader28.preheader.new:                       ; preds = %.preheader28.preheader
  %unroll_iter = and i64 %10, 2147483646
  br label %.preheader28

.preheader28:                                     ; preds = %30, %.preheader28.preheader.new
  %indvars.iv = phi i64 [ 1, %.preheader28.preheader.new ], [ %indvars.iv.next.1, %30 ]
  %niter = phi i64 [ 0, %.preheader28.preheader.new ], [ %niter.next.1, %30 ]
  br label %20

.preheader27.loopexit.unr-lcssa:                  ; preds = %30, %.preheader28.preheader
  %indvars.iv.unr = phi i64 [ 1, %.preheader28.preheader ], [ %indvars.iv.next.1, %30 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader27, label %.preheader28.epil

.preheader28.epil:                                ; preds = %.preheader27.loopexit.unr-lcssa, %.preheader28.epil
  %indvars.iv54.epil = phi i64 [ %indvars.iv.next55.epil, %.preheader28.epil ], [ %indvars.iv.unr, %.preheader27.loopexit.unr-lcssa ]
  %12 = getelementptr inbounds [1000001 x i32], ptr @divnum, i64 0, i64 %indvars.iv54.epil
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = add nsw i32 %13, 1
  store i32 %14, ptr %12, align 4, !tbaa !5
  %indvars.iv.next55.epil = add nuw nsw i64 %indvars.iv54.epil, %indvars.iv.unr
  %15 = trunc nuw i64 %indvars.iv.next55.epil to i32
  %.not25.epil = icmp slt i32 %9, %15
  br i1 %.not25.epil, label %.preheader27, label %.preheader28.epil, !llvm.loop !9

.preheader27:                                     ; preds = %.preheader27.loopexit.unr-lcssa, %.preheader28.epil, %0
  %ans.promoted = load i64, ptr @ans, align 8, !tbaa !11
  %.not2244 = icmp slt i32 %5, 1
  %.not2337 = icmp slt i32 %6, 1
  %or.cond = or i1 %.not2244, %.not2337
  %.not2432 = icmp slt i32 %8, 1
  %or.cond73 = or i1 %or.cond, %.not2432
  br i1 %or.cond73, label %._crit_edge48, label %.preheader26.preheader

.preheader26.preheader:                           ; preds = %.preheader27
  %16 = add nuw i32 %6, 1
  %17 = add nuw i32 %5, 1
  %wide.trip.count71 = zext i32 %17 to i64
  %wide.trip.count66 = zext i32 %16 to i64
  %18 = zext nneg i32 %8 to i64
  %xtraiter74 = and i64 %18, 1
  %19 = icmp eq i32 %8, 1
  %unroll_iter77 = and i64 %18, 2147483646
  %lcmp.mod75.not = icmp eq i64 %xtraiter74, 0
  br label %.preheader26

20:                                               ; preds = %.preheader28, %20
  %indvars.iv54 = phi i64 [ %indvars.iv, %.preheader28 ], [ %indvars.iv.next55, %20 ]
  %21 = getelementptr inbounds [1000001 x i32], ptr @divnum, i64 0, i64 %indvars.iv54
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr %21, align 4, !tbaa !5
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, %indvars.iv
  %24 = trunc nuw i64 %indvars.iv.next55 to i32
  %.not25 = icmp slt i32 %9, %24
  br i1 %.not25, label %.preheader28.1, label %20, !llvm.loop !9

.preheader28.1:                                   ; preds = %20
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br label %25

25:                                               ; preds = %25, %.preheader28.1
  %indvars.iv54.1 = phi i64 [ %indvars.iv.next, %.preheader28.1 ], [ %indvars.iv.next55.1, %25 ]
  %26 = getelementptr inbounds [1000001 x i32], ptr @divnum, i64 0, i64 %indvars.iv54.1
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %26, align 4, !tbaa !5
  %indvars.iv.next55.1 = add nuw nsw i64 %indvars.iv54.1, %indvars.iv.next
  %29 = trunc nuw i64 %indvars.iv.next55.1 to i32
  %.not25.1 = icmp slt i32 %9, %29
  br i1 %.not25.1, label %30, label %25, !llvm.loop !9

30:                                               ; preds = %25
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add nuw i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader27.loopexit.unr-lcssa, label %.preheader28, !llvm.loop !13

.preheader26:                                     ; preds = %.preheader26.preheader, %._crit_edge40.split
  %indvars.iv68 = phi i64 [ 1, %.preheader26.preheader ], [ %indvars.iv.next69, %._crit_edge40.split ]
  %.lcssa.lcssa4345 = phi i64 [ %ans.promoted, %.preheader26.preheader ], [ %.lcssa, %._crit_edge40.split ]
  br label %.preheader

.preheader:                                       ; preds = %.preheader26, %._crit_edge
  %indvars.iv63 = phi i64 [ 1, %.preheader26 ], [ %indvars.iv.next64, %._crit_edge ]
  %.lcssa3638 = phi i64 [ %.lcssa.lcssa4345, %.preheader26 ], [ %.lcssa, %._crit_edge ]
  %31 = mul nuw nsw i64 %indvars.iv63, %indvars.iv68
  br i1 %19, label %._crit_edge.unr-lcssa, label %.preheader.new

.preheader.new:                                   ; preds = %.preheader, %.preheader.new
  %indvars.iv58 = phi i64 [ %indvars.iv.next59.1, %.preheader.new ], [ 1, %.preheader ]
  %32 = phi i64 [ %44, %.preheader.new ], [ %.lcssa3638, %.preheader ]
  %niter78 = phi i64 [ %niter78.next.1, %.preheader.new ], [ 0, %.preheader ]
  %33 = mul nuw nsw i64 %31, %indvars.iv58
  %34 = getelementptr inbounds [1000001 x i32], ptr @divnum, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = add nsw i64 %32, %36
  %38 = srem i64 %37, 1073741824
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %39 = mul nuw nsw i64 %31, %indvars.iv.next59
  %40 = getelementptr inbounds [1000001 x i32], ptr @divnum, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = add nsw i64 %38, %42
  %44 = srem i64 %43, 1073741824
  %indvars.iv.next59.1 = add nuw nsw i64 %indvars.iv58, 2
  %niter78.next.1 = add i64 %niter78, 2
  %niter78.ncmp.1 = icmp eq i64 %niter78.next.1, %unroll_iter77
  br i1 %niter78.ncmp.1, label %._crit_edge.unr-lcssa, label %.preheader.new, !llvm.loop !14

._crit_edge.unr-lcssa:                            ; preds = %.preheader.new, %.preheader
  %.lcssa.ph = phi i64 [ poison, %.preheader ], [ %44, %.preheader.new ]
  %indvars.iv58.unr = phi i64 [ 1, %.preheader ], [ %indvars.iv.next59.1, %.preheader.new ]
  %.unr = phi i64 [ %.lcssa3638, %.preheader ], [ %44, %.preheader.new ]
  br i1 %lcmp.mod75.not, label %._crit_edge, label %._crit_edge.epilog-lcssa

._crit_edge.epilog-lcssa:                         ; preds = %._crit_edge.unr-lcssa
  %45 = mul nuw nsw i64 %31, %indvars.iv58.unr
  %46 = getelementptr inbounds [1000001 x i32], ptr @divnum, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = add nsw i64 %.unr, %48
  %50 = srem i64 %49, 1073741824
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %._crit_edge.epilog-lcssa
  %.lcssa = phi i64 [ %.lcssa.ph, %._crit_edge.unr-lcssa ], [ %50, %._crit_edge.epilog-lcssa ]
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %exitcond67.not = icmp eq i64 %indvars.iv.next64, %wide.trip.count66
  br i1 %exitcond67.not, label %._crit_edge40.split, label %.preheader, !llvm.loop !15

._crit_edge40.split:                              ; preds = %._crit_edge
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %exitcond72.not = icmp eq i64 %indvars.iv.next69, %wide.trip.count71
  br i1 %exitcond72.not, label %._crit_edge48.split.split, label %.preheader26, !llvm.loop !16

._crit_edge48.split.split:                        ; preds = %._crit_edge40.split
  store i64 %.lcssa, ptr @ans, align 8, !tbaa !11
  br label %._crit_edge48

._crit_edge48:                                    ; preds = %._crit_edge48.split.split, %.preheader27
  %51 = phi i64 [ %.lcssa, %._crit_edge48.split.split ], [ %ans.promoted, %.preheader27 ]
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %51)
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #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 #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #2 align 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 #2 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)) #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 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 = { 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" }

!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 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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