; LLVM IR from kazunetakahashi/atcoder :: 2017/1106_ABC063 (D)

; 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
@A = external dso_local global i64, align 8
@B = external dso_local global i64, align 8
@h = external dso_local global [100010 x i64], align 16
@_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 i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  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)
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) @A)
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) @B)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %23, %0
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = load i32, ptr @N, align 4, !tbaa !5
  %16 = icmp slt i32 %14, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %26

18:                                               ; preds = %13
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [100010 x i64], ptr @h, i64 0, i64 %20
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %21)
  br label %23

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

26:                                               ; preds = %17
  %27 = load i64, ptr @A, align 8, !tbaa !11
  %28 = load i64, ptr @B, align 8, !tbaa !11
  %29 = sub nsw i64 %27, %28
  store i64 %29, ptr @A, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  store i64 1000000010, ptr %3, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store i64 0, ptr %4, align 8, !tbaa !11
  br label %30

30:                                               ; preds = %80, %26
  %31 = load i64, ptr %3, align 8, !tbaa !11
  %32 = load i64, ptr %4, align 8, !tbaa !11
  %33 = sub nsw i64 %31, %32
  %34 = icmp sgt i64 %33, 1
  br i1 %34, label %35, label %81

35:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %36 = load i64, ptr %3, align 8, !tbaa !11
  %37 = load i64, ptr %4, align 8, !tbaa !11
  %38 = add nsw i64 %36, %37
  %39 = sdiv i64 %38, 2
  store i64 %39, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 0, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %69, %35
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = load i32, ptr @N, align 4, !tbaa !5
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  store i32 7, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %72

45:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [100010 x i64], ptr @h, i64 0, i64 %47
  %49 = load i64, ptr %48, align 8, !tbaa !11
  %50 = load i64, ptr %5, align 8, !tbaa !11
  %51 = load i64, ptr @B, align 8, !tbaa !11
  %52 = mul nsw i64 %50, %51
  %53 = sub nsw i64 %49, %52
  store i64 %53, ptr %9, align 8, !tbaa !11
  %54 = load i64, ptr %9, align 8, !tbaa !11
  %55 = icmp sle i64 %54, 0
  br i1 %55, label %56, label %57

56:                                               ; preds = %45
  store i32 9, ptr %8, align 4
  br label %66

57:                                               ; preds = %45
  %58 = load i64, ptr %9, align 8, !tbaa !11
  %59 = load i64, ptr @A, align 8, !tbaa !11
  %60 = sub nsw i64 %59, 1
  %61 = add nsw i64 %58, %60
  %62 = load i64, ptr @A, align 8, !tbaa !11
  %63 = sdiv i64 %61, %62
  %64 = load i64, ptr %6, align 8, !tbaa !11
  %65 = add nsw i64 %64, %63
  store i64 %65, ptr %6, align 8, !tbaa !11
  store i32 0, ptr %8, align 4
  br label %66

66:                                               ; preds = %57, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %67 = load i32, ptr %8, align 4
  switch i32 %67, label %86 [
    i32 0, label %68
    i32 9, label %69
  ]

68:                                               ; preds = %66
  br label %69

69:                                               ; preds = %68, %66
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %7, align 4, !tbaa !5
  br label %40, !llvm.loop !13

72:                                               ; preds = %44
  %73 = load i64, ptr %6, align 8, !tbaa !11
  %74 = load i64, ptr %5, align 8, !tbaa !11
  %75 = icmp sle i64 %73, %74
  br i1 %75, label %76, label %78

76:                                               ; preds = %72
  %77 = load i64, ptr %5, align 8, !tbaa !11
  store i64 %77, ptr %3, align 8, !tbaa !11
  br label %80

78:                                               ; preds = %72
  %79 = load i64, ptr %5, align 8, !tbaa !11
  store i64 %79, ptr %4, align 8, !tbaa !11
  br label %80

80:                                               ; preds = %78, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %30, !llvm.loop !14

81:                                               ; preds = %30
  %82 = load i64, ptr %3, align 8, !tbaa !11
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %82)
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  %85 = load i32, ptr %1, align 4
  ret i32 %85

86:                                               ; preds = %66
  unreachable
}

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: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 = { 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 = !{!"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}


; 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
@A = external dso_local global i64, align 8
@B = external dso_local global i64, align 8
@h = external dso_local global [100010 x i64], align 16
@_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 nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %2 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(8) @A)
  %3 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) @B)
  %4 = load i32, ptr @N, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %0
  %6 = load i64, ptr @A, align 8, !tbaa !9
  %7 = load i64, ptr @B, align 8, !tbaa !9
  %8 = sub nsw i64 %6, %7
  store i64 %8, ptr @A, align 8, !tbaa !9
  br label %.split.preheader

._crit_edge:                                      ; preds = %.lr.ph
  %9 = load i64, ptr @A, align 8, !tbaa !9
  %10 = load i64, ptr @B, align 8, !tbaa !9
  %11 = sub nsw i64 %9, %10
  store i64 %11, ptr @A, align 8, !tbaa !9
  %12 = icmp sgt i32 %48, 0
  %13 = add nsw i64 %11, -1
  br i1 %12, label %.lr.ph33.us.preheader, label %.split.preheader

.split.preheader:                                 ; preds = %._crit_edge.thread, %._crit_edge
  br label %.split

.lr.ph33.us.preheader:                            ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %48 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %14 = icmp eq i32 %48, 1
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph33.us

.lr.ph33.us:                                      ; preds = %.lr.ph33.us.preheader, %._crit_edge34.us
  %.02237.us = phi i64 [ %.022..us, %._crit_edge34.us ], [ 1000000010, %.lr.ph33.us.preheader ]
  %.02436.us = phi i64 [ %..024.us, %._crit_edge34.us ], [ 0, %.lr.ph33.us.preheader ]
  %15 = add nsw i64 %.02237.us, %.02436.us
  %16 = sdiv i64 %15, 2
  %17 = mul nsw i64 %16, %10
  br i1 %14, label %._crit_edge34.us.unr-lcssa, label %.lr.ph33.us.new

.lr.ph33.us.new:                                  ; preds = %.lr.ph33.us, %35
  %indvars.iv43 = phi i64 [ %indvars.iv.next44.1, %35 ], [ 0, %.lr.ph33.us ]
  %.02130.us = phi i64 [ %.1.us.1, %35 ], [ 0, %.lr.ph33.us ]
  %niter = phi i64 [ %niter.next.1, %35 ], [ 0, %.lr.ph33.us ]
  %18 = getelementptr inbounds [100010 x i64], ptr @h, i64 0, i64 %indvars.iv43
  %19 = load i64, ptr %18, align 16, !tbaa !9
  %20 = sub nsw i64 %19, %17
  %21 = icmp slt i64 %20, 1
  br i1 %21, label %26, label %22

22:                                               ; preds = %.lr.ph33.us.new
  %23 = add nsw i64 %13, %20
  %24 = sdiv i64 %23, %11
  %25 = add nsw i64 %24, %.02130.us
  br label %26

26:                                               ; preds = %22, %.lr.ph33.us.new
  %.1.us = phi i64 [ %25, %22 ], [ %.02130.us, %.lr.ph33.us.new ]
  %indvars.iv.next44 = or disjoint i64 %indvars.iv43, 1
  %27 = getelementptr inbounds [100010 x i64], ptr @h, i64 0, i64 %indvars.iv.next44
  %28 = load i64, ptr %27, align 8, !tbaa !9
  %29 = sub nsw i64 %28, %17
  %30 = icmp slt i64 %29, 1
  br i1 %30, label %35, label %31

31:                                               ; preds = %26
  %32 = add nsw i64 %13, %29
  %33 = sdiv i64 %32, %11
  %34 = add nsw i64 %33, %.1.us
  br label %35

35:                                               ; preds = %31, %26
  %.1.us.1 = phi i64 [ %34, %31 ], [ %.1.us, %26 ]
  %indvars.iv.next44.1 = add nuw nsw i64 %indvars.iv43, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge34.us.unr-lcssa, label %.lr.ph33.us.new, !llvm.loop !11

._crit_edge34.us.unr-lcssa:                       ; preds = %35, %.lr.ph33.us
  %.1.us.lcssa.ph = phi i64 [ poison, %.lr.ph33.us ], [ %.1.us.1, %35 ]
  %indvars.iv43.unr = phi i64 [ 0, %.lr.ph33.us ], [ %indvars.iv.next44.1, %35 ]
  %.02130.us.unr = phi i64 [ 0, %.lr.ph33.us ], [ %.1.us.1, %35 ]
  br i1 %lcmp.mod.not, label %._crit_edge34.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge34.us.unr-lcssa
  %36 = getelementptr inbounds [100010 x i64], ptr @h, i64 0, i64 %indvars.iv43.unr
  %37 = load i64, ptr %36, align 8, !tbaa !9
  %38 = sub nsw i64 %37, %17
  %39 = icmp slt i64 %38, 1
  br i1 %39, label %._crit_edge34.us, label %40

40:                                               ; preds = %.epil.preheader
  %41 = add nsw i64 %13, %38
  %42 = sdiv i64 %41, %11
  %43 = add nsw i64 %42, %.02130.us.unr
  br label %._crit_edge34.us

._crit_edge34.us:                                 ; preds = %.epil.preheader, %40, %._crit_edge34.us.unr-lcssa
  %.1.us.lcssa = phi i64 [ %.1.us.lcssa.ph, %._crit_edge34.us.unr-lcssa ], [ %43, %40 ], [ %.02130.us.unr, %.epil.preheader ]
  %.not.us = icmp sgt i64 %.1.us.lcssa, %16
  %..024.us = select i1 %.not.us, i64 %16, i64 %.02436.us
  %.022..us = select i1 %.not.us, i64 %.02237.us, i64 %16
  %44 = sub nsw i64 %.022..us, %..024.us
  %45 = icmp sgt i64 %44, 1
  br i1 %45, label %.lr.ph33.us, label %.split39.us, !llvm.loop !13

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %46 = getelementptr inbounds [100010 x i64], ptr @h, i64 0, i64 %indvars.iv
  %47 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %46)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %48 = load i32, ptr @N, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = icmp slt i64 %indvars.iv.next, %49
  br i1 %50, label %.lr.ph, label %._crit_edge, !llvm.loop !14

.split:                                           ; preds = %.split.preheader, %.split
  %.02237 = phi i64 [ %.022., %.split ], [ 1000000010, %.split.preheader ]
  %.02436 = phi i64 [ %..024, %.split ], [ 0, %.split.preheader ]
  %51 = add nsw i64 %.02237, %.02436
  %52 = sdiv i64 %51, 2
  %.not = icmp slt i64 %51, -1
  %..024 = select i1 %.not, i64 %52, i64 %.02436
  %.022. = select i1 %.not, i64 %.02237, i64 %52
  %53 = sub nsw i64 %.022., %..024
  %54 = icmp sgt i64 %53, 1
  br i1 %54, label %.split, label %.split39.us, !llvm.loop !13

.split39.us:                                      ; preds = %.split, %._crit_edge34.us
  %.us-phi = phi i64 [ %.022..us, %._crit_edge34.us ], [ %.022., %.split ]
  %55 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.us-phi)
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  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)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; 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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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