; LLVM IR from upupming/algorithm :: upupming/1017.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"

%struct.Customer = type { i32, i32, i32, i32, i32 }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@n = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@earlist = external dso_local global i32, align 4
@latest = external dso_local global i32, align 4
@customers = external dso_local global [10005 x %struct.Customer], align 16
@serving = external dso_local global %"class.std::priority_queue", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3cmpR8CustomerS0_(ptr noundef nonnull align 4 dereferenceable(20), ptr noundef nonnull align 4 dereferenceable(20)) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_Z5solvev() #1 {
  %1 = alloca float, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = load i32, ptr @n, align 4, !tbaa !5
  %7 = sext i32 %6 to i64
  %8 = getelementptr inbounds %struct.Customer, ptr @customers, i64 %7
  call void @_ZSt4sortIP8CustomerPFiRS0_S2_EEvT_S5_T0_(ptr noundef @customers, ptr noundef %8, ptr noundef @_Z3cmpR8CustomerS0_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %9

9:                                                ; preds = %103, %0
  %10 = load i32, ptr %3, align 4, !tbaa !5
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %12 = icmp slt i32 %10, %11
  br i1 %12, label %13, label %106

13:                                               ; preds = %9
  %14 = load i32, ptr %3, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %15
  %17 = getelementptr inbounds %struct.Customer, ptr %16, i32 0, i32 0
  %18 = load i32, ptr %17, align 4, !tbaa !9
  %19 = load i32, ptr @latest, align 4, !tbaa !5
  %20 = icmp sge i32 %18, %19
  br i1 %20, label %21, label %22

21:                                               ; preds = %13
  br label %106

22:                                               ; preds = %13
  %23 = call noundef i64 @_ZNKSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) @serving)
  %24 = load i32, ptr @k, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = icmp eq i64 %23, %25
  br i1 %26, label %27, label %44

27:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E3topEv(ptr noundef nonnull align 8 dereferenceable(25) @serving)
  %29 = load i32, ptr %28, align 4, !tbaa !5
  store i32 %29, ptr %4, align 4, !tbaa !5
  call void @_ZNSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E3popEv(ptr noundef nonnull align 8 dereferenceable(25) @serving)
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %31
  %33 = getelementptr inbounds %struct.Customer, ptr %32, i32 0, i32 2
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %35
  %37 = getelementptr inbounds %struct.Customer, ptr %36, i32 0, i32 0
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %33, ptr noundef nonnull align 4 dereferenceable(4) %37)
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %41
  %43 = getelementptr inbounds %struct.Customer, ptr %42, i32 0, i32 4
  store i32 %39, ptr %43, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %55

44:                                               ; preds = %22
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %46
  %48 = getelementptr inbounds %struct.Customer, ptr %47, i32 0, i32 0
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @earlist, ptr noundef nonnull align 4 dereferenceable(4) %48)
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %52
  %54 = getelementptr inbounds %struct.Customer, ptr %53, i32 0, i32 4
  store i32 %50, ptr %54, align 4, !tbaa !11
  br label %55

55:                                               ; preds = %44, %27
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %57
  %59 = getelementptr inbounds %struct.Customer, ptr %58, i32 0, i32 4
  %60 = load i32, ptr %59, align 4, !tbaa !11
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %62
  %64 = getelementptr inbounds %struct.Customer, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 4, !tbaa !9
  %66 = sub nsw i32 %60, %65
  %67 = load i32, ptr %3, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %68
  %70 = getelementptr inbounds %struct.Customer, ptr %69, i32 0, i32 3
  store i32 %66, ptr %70, align 4, !tbaa !12
  %71 = load i32, ptr %3, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %72
  %74 = getelementptr inbounds %struct.Customer, ptr %73, i32 0, i32 4
  %75 = load i32, ptr %74, align 4, !tbaa !11
  %76 = load i32, ptr %3, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %77
  %79 = getelementptr inbounds %struct.Customer, ptr %78, i32 0, i32 1
  %80 = load i32, ptr %79, align 4, !tbaa !13
  %81 = icmp sgt i32 %80, 3600
  br i1 %81, label %82, label %83

82:                                               ; preds = %55
  br label %89

83:                                               ; preds = %55
  %84 = load i32, ptr %3, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %85
  %87 = getelementptr inbounds %struct.Customer, ptr %86, i32 0, i32 1
  %88 = load i32, ptr %87, align 4, !tbaa !13
  br label %89

89:                                               ; preds = %83, %82
  %90 = phi i32 [ 3600, %82 ], [ %88, %83 ]
  %91 = add nsw i32 %75, %90
  %92 = load i32, ptr %3, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %93
  %95 = getelementptr inbounds %struct.Customer, ptr %94, i32 0, i32 2
  store i32 %91, ptr %95, align 4, !tbaa !14
  call void @_ZNSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E4pushERKi(ptr noundef nonnull align 8 dereferenceable(25) @serving, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %96 = load i32, ptr %3, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %97
  %99 = getelementptr inbounds %struct.Customer, ptr %98, i32 0, i32 3
  %100 = load i32, ptr %99, align 4, !tbaa !12
  %101 = load i32, ptr %2, align 4, !tbaa !5
  %102 = add nsw i32 %101, %100
  store i32 %102, ptr %2, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %89
  %104 = load i32, ptr %3, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %3, align 4, !tbaa !5
  br label %9, !llvm.loop !15

106:                                              ; preds = %21, %9
  %107 = load i32, ptr %3, align 4, !tbaa !5
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %110

109:                                              ; preds = %106
  store float 0.000000e+00, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %118

110:                                              ; preds = %106
  %111 = load i32, ptr %2, align 4, !tbaa !5
  %112 = sitofp i32 %111 to double
  %113 = fdiv double %112, 6.000000e+01
  %114 = load i32, ptr %3, align 4, !tbaa !5
  %115 = sitofp i32 %114 to double
  %116 = fdiv double %113, %115
  %117 = fptrunc double %116 to float
  store float %117, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %118

118:                                              ; preds = %110, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %119 = load float, ptr %1, align 4
  ret float %119
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E3topEv(ptr noundef nonnull align 8 dereferenceable(25)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E3popEv(ptr noundef nonnull align 8 dereferenceable(25)) #1 align 2

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

; 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 dso_local void @_ZNSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E4pushERKi(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

attributes #0 = { 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 #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 = { 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 willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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, !6, i64 0}
!10 = !{!"_ZTS8Customer", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16}
!11 = !{!10, !6, i64 16}
!12 = !{!10, !6, i64 12}
!13 = !{!10, !6, i64 4}
!14 = !{!10, !6, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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

%struct.Customer = type { i32, i32, i32, i32, i32 }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@n = external dso_local local_unnamed_addr global i32, align 4
@k = external dso_local local_unnamed_addr global i32, align 4
@earlist = external dso_local global i32, align 4
@latest = external dso_local local_unnamed_addr global i32, align 4
@customers = external dso_local global [10005 x %struct.Customer], align 16
@serving = external dso_local global %"class.std::priority_queue", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3cmpR8CustomerS0_(ptr noundef nonnull align 4 dereferenceable(20), ptr noundef nonnull align 4 dereferenceable(20)) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_Z5solvev() local_unnamed_addr #1 {
  %1 = alloca i32, align 4
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %3 = sext i32 %2 to i64
  %4 = getelementptr inbounds %struct.Customer, ptr @customers, i64 %3
  tail call void @_ZSt4sortIP8CustomerPFiRS0_S2_EEvT_S5_T0_(ptr noundef nonnull @customers, ptr noundef nonnull %4, ptr noundef nonnull @_Z3cmpR8CustomerS0_)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  %5 = load i32, ptr @n, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %0, %21
  %.038 = phi i32 [ %41, %21 ], [ 0, %0 ]
  %storemerge7 = phi i32 [ %42, %21 ], [ 0, %0 ]
  %7 = sext i32 %storemerge7 to i64
  %8 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %7
  %9 = load i32, ptr %8, align 4, !tbaa !9
  %10 = load i32, ptr @latest, align 4, !tbaa !5
  %.not = icmp slt i32 %9, %10
  br i1 %.not, label %11, label %._crit_edge

11:                                               ; preds = %.lr.ph
  %12 = call noundef i64 @_ZNKSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) @serving)
  %13 = load i32, ptr @k, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = icmp eq i64 %12, %14
  br i1 %15, label %16, label %21

16:                                               ; preds = %11
  %17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E3topEv(ptr noundef nonnull align 8 dereferenceable(25) @serving)
  %18 = load i32, ptr %17, align 4, !tbaa !5
  call void @_ZNSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E3popEv(ptr noundef nonnull align 8 dereferenceable(25) @serving)
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %19, i32 2
  br label %21

21:                                               ; preds = %11, %16
  %earlist.sink = phi ptr [ %20, %16 ], [ @earlist, %11 ]
  %.sink20 = load i32, ptr %1, align 4, !tbaa !5
  %22 = sext i32 %.sink20 to i64
  %23 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %22
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %earlist.sink, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %.sink = load i32, ptr %24, align 4, !tbaa !5
  %.sink17 = load i32, ptr %1, align 4, !tbaa !5
  %25 = sext i32 %.sink17 to i64
  %26 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %25, i32 4
  store i32 %.sink, ptr %26, align 4, !tbaa !11
  %27 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %25
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = load i32, ptr %27, align 4, !tbaa !9
  %31 = sub nsw i32 %29, %30
  %32 = getelementptr inbounds i8, ptr %27, i64 12
  store i32 %31, ptr %32, align 4, !tbaa !12
  %33 = getelementptr inbounds i8, ptr %27, i64 4
  %34 = load i32, ptr %33, align 4, !tbaa !13
  %spec.select = call i32 @llvm.smin.i32(i32 %34, i32 3600)
  %35 = add nsw i32 %spec.select, %29
  %36 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %25, i32 2
  store i32 %35, ptr %36, align 4, !tbaa !14
  call void @_ZNSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E4pushERKi(ptr noundef nonnull align 8 dereferenceable(25) @serving, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %37 = load i32, ptr %1, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [10005 x %struct.Customer], ptr @customers, i64 0, i64 %38, i32 3
  %40 = load i32, ptr %39, align 4, !tbaa !12
  %41 = add nsw i32 %40, %.038
  %42 = add nsw i32 %37, 1
  store i32 %42, ptr %1, align 4, !tbaa !5
  %43 = load i32, ptr @n, align 4, !tbaa !5
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %.lr.ph, label %._crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %21, %.lr.ph
  %storemerge.lcssa.ph = phi i32 [ %42, %21 ], [ %storemerge7, %.lr.ph ]
  %.03.lcssa.ph = phi i32 [ %41, %21 ], [ %.038, %.lr.ph ]
  %45 = icmp eq i32 %storemerge.lcssa.ph, 0
  br i1 %45, label %._crit_edge.thread, label %46

46:                                               ; preds = %._crit_edge
  %47 = sitofp i32 %.03.lcssa.ph to double
  %48 = fdiv double %47, 6.000000e+01
  %49 = sitofp i32 %storemerge.lcssa.ph to double
  %50 = fdiv double %48, %49
  %51 = fptrunc double %50 to float
  br label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %0, %._crit_edge, %46
  %.0 = phi float [ %51, %46 ], [ 0.000000e+00, %._crit_edge ], [ 0.000000e+00, %0 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret float %.0
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E3topEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E3popEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueIiSt6vectorIiSaIiEE4cmp1E4pushERKi(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #5

attributes #0 = { 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 #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 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!10, !6, i64 0}
!10 = !{!"_ZTS8Customer", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16}
!11 = !{!10, !6, i64 16}
!12 = !{!10, !6, i64 12}
!13 = !{!10, !6, i64 4}
!14 = !{!10, !6, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass