; LLVM IR from Tunghohin/Competitive_Coding :: Codeforces/cf1646_A.ll (Z5solvev)

; 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 [200010 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #3
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
  store i64 1, ptr %2, align 8, !tbaa !5
  br label %11

11:                                               ; preds = %20, %0
  %12 = load i64, ptr %2, align 8, !tbaa !5
  %13 = load i64, ptr %1, align 8, !tbaa !5
  %14 = icmp sle i64 %12, %13
  br i1 %14, label %16, label %15

15:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  br label %23

16:                                               ; preds = %11
  %17 = load i64, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %17
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %18)
  br label %20

20:                                               ; preds = %16
  %21 = load i64, ptr %2, align 8, !tbaa !5
  %22 = add nsw i64 %21, 1
  store i64 %22, ptr %2, align 8, !tbaa !5
  br label %11, !llvm.loop !9

23:                                               ; preds = %15
  %24 = load i64, ptr %1, align 8, !tbaa !5
  %25 = getelementptr inbounds i64, ptr getelementptr inbounds (i64, ptr @a, i64 1), i64 %24
  call void @_ZSt4sortIPxEvT_S1_(ptr noundef getelementptr inbounds (i64, ptr @a, i64 1), ptr noundef %25)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  store i64 1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %26 = load i64, ptr getelementptr inbounds ([200010 x i64], ptr @a, i64 0, i64 1), align 8, !tbaa !5
  store i64 %26, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  store i64 1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %27 = load i64, ptr %1, align 8, !tbaa !5
  %28 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %27
  %29 = load i64, ptr %28, align 8, !tbaa !5
  store i64 %29, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store i64 1, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %30 = load i64, ptr %1, align 8, !tbaa !5
  store i64 %30, ptr %8, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %85, %23
  %32 = load i64, ptr %7, align 8, !tbaa !5
  %33 = load i64, ptr %8, align 8, !tbaa !5
  %34 = icmp slt i64 %32, %33
  br i1 %34, label %35, label %86

35:                                               ; preds = %31
  br label %36

36:                                               ; preds = %46, %35
  %37 = load i64, ptr %3, align 8, !tbaa !5
  %38 = load i64, ptr %5, align 8, !tbaa !5
  %39 = icmp sle i64 %37, %38
  br i1 %39, label %40, label %44

40:                                               ; preds = %36
  %41 = load i64, ptr %7, align 8, !tbaa !5
  %42 = load i64, ptr %8, align 8, !tbaa !5
  %43 = icmp slt i64 %41, %42
  br label %44

44:                                               ; preds = %40, %36
  %45 = phi i1 [ false, %36 ], [ %43, %40 ]
  br i1 %45, label %46, label %55

46:                                               ; preds = %44
  %47 = load i64, ptr %3, align 8, !tbaa !5
  %48 = add nsw i64 %47, 1
  store i64 %48, ptr %3, align 8, !tbaa !5
  %49 = load i64, ptr %7, align 8, !tbaa !5
  %50 = add nsw i64 %49, 1
  store i64 %50, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %50
  %52 = load i64, ptr %51, align 8, !tbaa !5
  %53 = load i64, ptr %4, align 8, !tbaa !5
  %54 = add nsw i64 %53, %52
  store i64 %54, ptr %4, align 8, !tbaa !5
  br label %36, !llvm.loop !11

55:                                               ; preds = %44
  br label %56

56:                                               ; preds = %66, %55
  %57 = load i64, ptr %6, align 8, !tbaa !5
  %58 = load i64, ptr %4, align 8, !tbaa !5
  %59 = icmp sle i64 %57, %58
  br i1 %59, label %60, label %64

60:                                               ; preds = %56
  %61 = load i64, ptr %7, align 8, !tbaa !5
  %62 = load i64, ptr %8, align 8, !tbaa !5
  %63 = icmp slt i64 %61, %62
  br label %64

64:                                               ; preds = %60, %56
  %65 = phi i1 [ false, %56 ], [ %63, %60 ]
  br i1 %65, label %66, label %75

66:                                               ; preds = %64
  %67 = load i64, ptr %5, align 8, !tbaa !5
  %68 = add nsw i64 %67, 1
  store i64 %68, ptr %5, align 8, !tbaa !5
  %69 = load i64, ptr %8, align 8, !tbaa !5
  %70 = add nsw i64 %69, -1
  store i64 %70, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !5
  %73 = load i64, ptr %6, align 8, !tbaa !5
  %74 = add nsw i64 %73, %72
  store i64 %74, ptr %6, align 8, !tbaa !5
  br label %56, !llvm.loop !12

75:                                               ; preds = %64
  %76 = load i64, ptr %6, align 8, !tbaa !5
  %77 = load i64, ptr %4, align 8, !tbaa !5
  %78 = icmp sgt i64 %76, %77
  br i1 %78, label %79, label %85

79:                                               ; preds = %75
  %80 = load i64, ptr %5, align 8, !tbaa !5
  %81 = load i64, ptr %3, align 8, !tbaa !5
  %82 = icmp slt i64 %80, %81
  br i1 %82, label %83, label %85

83:                                               ; preds = %79
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  store i32 1, ptr %9, align 4
  br label %88

85:                                               ; preds = %79, %75
  br label %31, !llvm.loop !13

86:                                               ; preds = %31
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  store i32 0, ptr %9, align 4
  br label %88

88:                                               ; preds = %86, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #3
  %89 = load i32, ptr %9, align 4
  switch i32 %89, label %91 [
    i32 0, label %90
    i32 1, label %90
  ]

90:                                               ; preds = %88, %88
  ret void

91:                                               ; preds = %88
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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)) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPxEvT_S1_(ptr noundef, ptr noundef) #2

; 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) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 = !{!"long long", !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}


; 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 [200010 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  %2 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %3 = load i64, ptr %1, align 8, !tbaa !5
  %.not36 = icmp slt i64 %3, 1
  br i1 %.not36, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %0
  %.lcssa = phi i64 [ %3, %0 ], [ %12, %.lr.ph ]
  %4 = getelementptr inbounds i64, ptr getelementptr inbounds (i8, ptr @a, i64 8), i64 %.lcssa
  call void @_ZSt4sortIPxEvT_S1_(ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 8), ptr noundef nonnull %4)
  %5 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !5
  %6 = load i64, ptr %1, align 8, !tbaa !5
  %7 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %6
  %8 = load i64, ptr %7, align 8, !tbaa !5
  br label %13

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.03337 = phi i64 [ %11, %.lr.ph ], [ 1, %0 ]
  %9 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %.03337
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %11 = add nuw nsw i64 %.03337, 1
  %12 = load i64, ptr %1, align 8, !tbaa !5
  %.not.not = icmp slt i64 %.03337, %12
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

13:                                               ; preds = %._crit_edge49, %._crit_edge
  %.031 = phi i64 [ 1, %._crit_edge ], [ %.132.lcssa, %._crit_edge49 ]
  %.029 = phi i64 [ %5, %._crit_edge ], [ %.130.lcssa, %._crit_edge49 ]
  %.027 = phi i64 [ 1, %._crit_edge ], [ %.128.lcssa, %._crit_edge49 ]
  %.025 = phi i64 [ %8, %._crit_edge ], [ %.126.lcssa, %._crit_edge49 ]
  %.023 = phi i64 [ 1, %._crit_edge ], [ %.124.lcssa, %._crit_edge49 ]
  %.0 = phi i64 [ %6, %._crit_edge ], [ %.1.lcssa, %._crit_edge49 ]
  %14 = icmp slt i64 %.023, %.0
  br i1 %14, label %.preheader35, label %48

.preheader35:                                     ; preds = %13
  %.not = icmp sgt i64 %.031, %.027
  br i1 %.not, label %.preheader, label %.lr.ph41.preheader

.lr.ph41.preheader:                               ; preds = %.preheader35
  %15 = xor i64 %.023, -1
  %16 = add i64 %.0, %15
  %17 = sub i64 %.027, %.031
  %umin = call i64 @llvm.umin.i64(i64 %16, i64 %17)
  %18 = add i64 %umin, 1
  %min.iters.check = icmp ult i64 %18, 4
  br i1 %min.iters.check, label %.lr.ph41.preheader79, label %vector.ph

.lr.ph41.preheader79:                             ; preds = %middle.block, %.lr.ph41.preheader
  %.12440.ph = phi i64 [ %.023, %.lr.ph41.preheader ], [ %ind.end, %middle.block ]
  %.13039.ph = phi i64 [ %.029, %.lr.ph41.preheader ], [ %26, %middle.block ]
  %.13238.ph = phi i64 [ %.031, %.lr.ph41.preheader ], [ %ind.end74, %middle.block ]
  br label %.lr.ph41

vector.ph:                                        ; preds = %.lr.ph41.preheader
  %n.vec = and i64 %18, -4
  %ind.end = add i64 %.023, %n.vec
  %ind.end74 = add i64 %.031, %n.vec
  %19 = insertelement <2 x i64> <i64 poison, i64 0>, i64 %.029, i64 0
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ %19, %vector.ph ], [ %23, %vector.body ]
  %vec.phi76 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %24, %vector.body ]
  %offset.idx = add i64 %.023, %index
  %20 = add nsw i64 %offset.idx, 1
  %21 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %20
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %wide.load = load <2 x i64>, ptr %21, align 8, !tbaa !5
  %wide.load78 = load <2 x i64>, ptr %22, align 8, !tbaa !5
  %23 = add <2 x i64> %wide.load, %vec.phi
  %24 = add <2 x i64> %wide.load78, %vec.phi76
  %index.next = add nuw i64 %index, 4
  %25 = icmp eq i64 %index.next, %n.vec
  br i1 %25, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %24, %23
  %26 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %18, %n.vec
  br i1 %cmp.n, label %.preheader, label %.lr.ph41.preheader79

.preheader:                                       ; preds = %.lr.ph41, %middle.block, %.preheader35
  %.132.lcssa = phi i64 [ %.031, %.preheader35 ], [ %ind.end74, %middle.block ], [ %30, %.lr.ph41 ]
  %.130.lcssa = phi i64 [ %.029, %.preheader35 ], [ %26, %middle.block ], [ %34, %.lr.ph41 ]
  %.124.lcssa = phi i64 [ %.023, %.preheader35 ], [ %ind.end, %middle.block ], [ %31, %.lr.ph41 ]
  %27 = icmp sle i64 %.025, %.130.lcssa
  %28 = icmp slt i64 %.124.lcssa, %.0
  %29 = and i1 %27, %28
  br i1 %29, label %.lr.ph48, label %._crit_edge49

.lr.ph41:                                         ; preds = %.lr.ph41.preheader79, %.lr.ph41
  %.12440 = phi i64 [ %31, %.lr.ph41 ], [ %.12440.ph, %.lr.ph41.preheader79 ]
  %.13039 = phi i64 [ %34, %.lr.ph41 ], [ %.13039.ph, %.lr.ph41.preheader79 ]
  %.13238 = phi i64 [ %30, %.lr.ph41 ], [ %.13238.ph, %.lr.ph41.preheader79 ]
  %30 = add nsw i64 %.13238, 1
  %31 = add nsw i64 %.12440, 1
  %32 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %31
  %33 = load i64, ptr %32, align 8, !tbaa !5
  %34 = add nsw i64 %33, %.13039
  %35 = icmp slt i64 %.13238, %.027
  %36 = icmp slt i64 %31, %.0
  %37 = and i1 %35, %36
  br i1 %37, label %.lr.ph41, label %.preheader, !llvm.loop !14

.lr.ph48:                                         ; preds = %.preheader, %.lr.ph48
  %.147 = phi i64 [ %39, %.lr.ph48 ], [ %.0, %.preheader ]
  %.12646 = phi i64 [ %42, %.lr.ph48 ], [ %.025, %.preheader ]
  %.12845 = phi i64 [ %38, %.lr.ph48 ], [ %.027, %.preheader ]
  %38 = add nsw i64 %.12845, 1
  %39 = add nsw i64 %.147, -1
  %40 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %39
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %42 = add nsw i64 %41, %.12646
  %43 = icmp sle i64 %42, %.130.lcssa
  %44 = icmp slt i64 %.124.lcssa, %39
  %45 = and i1 %43, %44
  br i1 %45, label %.lr.ph48, label %._crit_edge49, !llvm.loop !15

._crit_edge49:                                    ; preds = %.lr.ph48, %.preheader
  %.128.lcssa = phi i64 [ %.027, %.preheader ], [ %38, %.lr.ph48 ]
  %.126.lcssa = phi i64 [ %.025, %.preheader ], [ %42, %.lr.ph48 ]
  %.1.lcssa = phi i64 [ %.0, %.preheader ], [ %39, %.lr.ph48 ]
  %46 = icmp sgt i64 %.126.lcssa, %.130.lcssa
  %47 = icmp slt i64 %.128.lcssa, %.132.lcssa
  %or.cond = select i1 %46, i1 %47, i1 false
  br i1 %or.cond, label %48, label %13, !llvm.loop !16

48:                                               ; preds = %13, %._crit_edge49
  %.str.1.sink = phi ptr [ @.str, %._crit_edge49 ], [ @.str.1, %13 ]
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.1.sink)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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 #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPxEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #2

; 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 #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = !{!"long long", !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}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !10, !13, !12}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass