; LLVM IR from kazunetakahashi/atcoder :: 2019/0203_ABC117 (C)

; 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 i64, align 8
@M = external dso_local global i64, align 8
@X = external dso_local global [100010 x i64], align 16
@Y = 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 i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) @M)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %19, %0
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = load i64, ptr @M, align 8, !tbaa !9
  %12 = icmp slt i64 %10, %11
  br i1 %12, label %14, label %13

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

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

19:                                               ; preds = %14
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = add nsw i32 %20, 1
  store i32 %21, ptr %2, align 4, !tbaa !5
  br label %8, !llvm.loop !11

22:                                               ; preds = %13
  %23 = load i64, ptr @N, align 8, !tbaa !9
  %24 = load i64, ptr @M, align 8, !tbaa !9
  %25 = icmp sge i64 %23, %24
  br i1 %25, label %26, label %29

26:                                               ; preds = %22
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  br label %82

29:                                               ; preds = %22
  %30 = load i64, ptr @M, align 8, !tbaa !9
  %31 = getelementptr inbounds i64, ptr @X, i64 %30
  call void @_ZSt4sortIPxEvT_S1_(ptr noundef @X, ptr noundef %31)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %53, %29
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = load i64, ptr @M, align 8, !tbaa !9
  %36 = sub nsw i64 %35, 1
  %37 = icmp slt i64 %34, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %56

39:                                               ; preds = %32
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [100010 x i64], ptr @X, i64 0, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !9
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [100010 x i64], ptr @X, i64 0, i64 %46
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = sub nsw i64 %44, %48
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [100010 x i64], ptr @Y, i64 0, i64 %51
  store i64 %49, ptr %52, align 8, !tbaa !9
  br label %53

53:                                               ; preds = %39
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %3, align 4, !tbaa !5
  br label %32, !llvm.loop !13

56:                                               ; preds = %38
  %57 = load i64, ptr @M, align 8, !tbaa !9
  %58 = getelementptr inbounds i64, ptr @Y, i64 %57
  %59 = getelementptr inbounds i64, ptr %58, i64 -1
  call void @_ZSt4sortIPxEvT_S1_(ptr noundef @Y, ptr noundef %59)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store i64 0, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %75, %56
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = load i64, ptr @M, align 8, !tbaa !9
  %64 = load i64, ptr @N, align 8, !tbaa !9
  %65 = sub nsw i64 %63, %64
  %66 = icmp slt i64 %62, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %78

68:                                               ; preds = %60
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [100010 x i64], ptr @Y, i64 0, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !9
  %73 = load i64, ptr %4, align 8, !tbaa !9
  %74 = add nsw i64 %73, %72
  store i64 %74, ptr %4, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %68
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %5, align 4, !tbaa !5
  br label %60, !llvm.loop !14

78:                                               ; preds = %67
  %79 = load i64, ptr %4, align 8, !tbaa !9
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %79)
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  br label %82

82:                                               ; preds = %78, %26
  %83 = load i32, ptr %1, align 4
  ret i32 %83
}

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

; 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

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) #1 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 dso_local void @_ZSt4sortIPxEvT_S1_(ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2

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


; 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 i64, align 8
@M = external dso_local global i64, align 8
@X = external dso_local global [100010 x i64], align 16
@Y = 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 @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @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) @M)
  %3 = load i64, ptr @M, align 8, !tbaa !5
  %4 = icmp sgt i64 %3, 0
  br i1 %4, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %.lcssa22 = phi i64 [ %3, %0 ], [ %8, %.lr.ph ]
  %5 = load i64, ptr @N, align 8, !tbaa !5
  %.not = icmp slt i64 %5, %.lcssa22
  br i1 %.not, label %12, label %10

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %6 = getelementptr inbounds [100010 x i64], ptr @X, i64 0, i64 %indvars.iv
  %7 = 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) %6)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %8 = load i64, ptr @M, align 8, !tbaa !5
  %9 = icmp sgt i64 %8, %indvars.iv.next
  br i1 %9, label %.lr.ph, label %._crit_edge, !llvm.loop !9

10:                                               ; preds = %._crit_edge
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  br label %49

12:                                               ; preds = %._crit_edge
  %13 = getelementptr inbounds i64, ptr @X, i64 %.lcssa22
  tail call void @_ZSt4sortIPxEvT_S1_(ptr noundef nonnull @X, ptr noundef nonnull %13)
  %14 = load i64, ptr @M, align 8, !tbaa !5
  %15 = icmp sgt i64 %14, 1
  br i1 %15, label %.lr.ph26.preheader, label %._crit_edge27

.lr.ph26.preheader:                               ; preds = %12
  %.pre = load i64, ptr @X, align 16, !tbaa !5
  %16 = add nsw i64 %14, -2
  %17 = add nsw i64 %14, -1
  %min.iters.check = icmp ult i64 %14, 5
  br i1 %min.iters.check, label %.lr.ph26.preheader64, label %vector.ph

.lr.ph26.preheader64:                             ; preds = %middle.block, %.lr.ph26.preheader
  %.ph = phi i64 [ %.pre, %.lr.ph26.preheader ], [ %vector.recur.extract, %middle.block ]
  %indvars.iv37.ph = phi i64 [ 0, %.lr.ph26.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph26

vector.ph:                                        ; preds = %.lr.ph26.preheader
  %n.vec = and i64 %17, -4
  %vector.recur.init = insertelement <2 x i64> poison, i64 %.pre, i64 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vector.recur = phi <2 x i64> [ %vector.recur.init, %vector.ph ], [ %wide.load46, %vector.body ]
  %18 = or disjoint i64 %index, 1
  %19 = getelementptr inbounds [100010 x i64], ptr @X, i64 0, i64 %18
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %wide.load = load <2 x i64>, ptr %19, align 8, !tbaa !5
  %wide.load46 = load <2 x i64>, ptr %20, align 8, !tbaa !5
  %21 = shufflevector <2 x i64> %vector.recur, <2 x i64> %wide.load, <2 x i32> <i32 1, i32 2>
  %22 = shufflevector <2 x i64> %wide.load, <2 x i64> %wide.load46, <2 x i32> <i32 1, i32 2>
  %23 = sub nsw <2 x i64> %wide.load, %21
  %24 = sub nsw <2 x i64> %wide.load46, %22
  %25 = getelementptr inbounds [100010 x i64], ptr @Y, i64 0, i64 %index
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  store <2 x i64> %23, ptr %25, align 16, !tbaa !5
  store <2 x i64> %24, ptr %26, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %27 = icmp eq i64 %index.next, %n.vec
  br i1 %27, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %vector.recur.extract = extractelement <2 x i64> %wide.load46, i64 1
  %cmp.n = icmp eq i64 %17, %n.vec
  br i1 %cmp.n, label %._crit_edge27, label %.lr.ph26.preheader64

._crit_edge27:                                    ; preds = %.lr.ph26, %middle.block, %12
  %28 = getelementptr inbounds i64, ptr @Y, i64 %14
  %29 = getelementptr inbounds i8, ptr %28, i64 -8
  tail call void @_ZSt4sortIPxEvT_S1_(ptr noundef nonnull @Y, ptr noundef nonnull %29)
  %30 = load i64, ptr @M, align 8, !tbaa !5
  %31 = load i64, ptr @N, align 8, !tbaa !5
  %32 = sub nsw i64 %30, %31
  %33 = icmp sgt i64 %32, 0
  br i1 %33, label %.lr.ph32.preheader, label %._crit_edge33

.lr.ph32.preheader:                               ; preds = %._crit_edge27
  %min.iters.check49 = icmp ult i64 %32, 4
  br i1 %min.iters.check49, label %.lr.ph32.preheader61, label %vector.ph50

.lr.ph32.preheader61:                             ; preds = %middle.block47, %.lr.ph32.preheader
  %indvars.iv40.ph = phi i64 [ 0, %.lr.ph32.preheader ], [ %n.vec52, %middle.block47 ]
  %.01429.ph = phi i64 [ 0, %.lr.ph32.preheader ], [ %39, %middle.block47 ]
  br label %.lr.ph32

vector.ph50:                                      ; preds = %.lr.ph32.preheader
  %n.vec52 = and i64 %32, 9223372036854775804
  br label %vector.body54

vector.body54:                                    ; preds = %vector.body54, %vector.ph50
  %index55 = phi i64 [ 0, %vector.ph50 ], [ %index.next59, %vector.body54 ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph50 ], [ %36, %vector.body54 ]
  %vec.phi56 = phi <2 x i64> [ zeroinitializer, %vector.ph50 ], [ %37, %vector.body54 ]
  %34 = getelementptr inbounds [100010 x i64], ptr @Y, i64 0, i64 %index55
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %wide.load57 = load <2 x i64>, ptr %34, align 16, !tbaa !5
  %wide.load58 = load <2 x i64>, ptr %35, align 16, !tbaa !5
  %36 = add <2 x i64> %wide.load57, %vec.phi
  %37 = add <2 x i64> %wide.load58, %vec.phi56
  %index.next59 = add nuw i64 %index55, 4
  %38 = icmp eq i64 %index.next59, %n.vec52
  br i1 %38, label %middle.block47, label %vector.body54, !llvm.loop !14

middle.block47:                                   ; preds = %vector.body54
  %bin.rdx = add <2 x i64> %37, %36
  %39 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n60 = icmp eq i64 %32, %n.vec52
  br i1 %cmp.n60, label %._crit_edge33, label %.lr.ph32.preheader61

.lr.ph26:                                         ; preds = %.lr.ph26.preheader64, %.lr.ph26
  %40 = phi i64 [ %42, %.lr.ph26 ], [ %.ph, %.lr.ph26.preheader64 ]
  %indvars.iv37 = phi i64 [ %indvars.iv.next38, %.lr.ph26 ], [ %indvars.iv37.ph, %.lr.ph26.preheader64 ]
  %indvars.iv.next38 = add nuw nsw i64 %indvars.iv37, 1
  %41 = getelementptr inbounds [100010 x i64], ptr @X, i64 0, i64 %indvars.iv.next38
  %42 = load i64, ptr %41, align 8, !tbaa !5
  %43 = sub nsw i64 %42, %40
  %44 = getelementptr inbounds [100010 x i64], ptr @Y, i64 0, i64 %indvars.iv37
  store i64 %43, ptr %44, align 8, !tbaa !5
  %exitcond.not = icmp eq i64 %indvars.iv37, %16
  br i1 %exitcond.not, label %._crit_edge27, label %.lr.ph26, !llvm.loop !15

._crit_edge33:                                    ; preds = %.lr.ph32, %middle.block47, %._crit_edge27
  %.014.lcssa = phi i64 [ 0, %._crit_edge27 ], [ %39, %middle.block47 ], [ %48, %.lr.ph32 ]
  %45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.014.lcssa)
  br label %49

.lr.ph32:                                         ; preds = %.lr.ph32.preheader61, %.lr.ph32
  %indvars.iv40 = phi i64 [ %indvars.iv.next41, %.lr.ph32 ], [ %indvars.iv40.ph, %.lr.ph32.preheader61 ]
  %.01429 = phi i64 [ %48, %.lr.ph32 ], [ %.01429.ph, %.lr.ph32.preheader61 ]
  %46 = getelementptr inbounds [100010 x i64], ptr @Y, i64 0, i64 %indvars.iv40
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %48 = add nsw i64 %47, %.01429
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %exitcond43.not = icmp eq i64 %indvars.iv.next41, %32
  br i1 %exitcond43.not, label %._crit_edge33, label %.lr.ph32, !llvm.loop !16

49:                                               ; preds = %._crit_edge33, %10
  %.sink = phi ptr [ %45, %._crit_edge33 ], [ %11, %10 ]
  %50 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %.sink, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0
}

; 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 #1 align 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 #1 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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #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 = { 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 #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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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, !12, !13}
!15 = distinct !{!15, !10, !13, !12}
!16 = distinct !{!16, !10, !13, !12}


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