; LLVM IR from chronoxor/CppBenchmark :: source/benchmark (settings)

; 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.CppBenchmark::Settings" = type <{ i32, i8, [3 x i8], i64, i64, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", %"class.std::tuple", i8, [7 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 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.10", %"struct.std::_Head_base.13" }
%"struct.std::_Tuple_impl.10" = type { %"struct.std::_Tuple_impl.11", %"struct.std::_Head_base.12" }
%"struct.std::_Tuple_impl.11" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.12" = type { i64 }
%"struct.std::_Head_base.13" = type { i64 }

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFiiiRiEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNKSt8functionIFiiiRiEEclEiiS0_(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE12emplace_backIJRiS5_S5_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(121) ptr @_ZN12CppBenchmark8Settings11TripleRangeEiiRKSt8functionIFiiiRiEEiiS6_iiS6_(ptr noundef nonnull align 8 dereferenceable(121) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef %4, i32 noundef %5, ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %7, i32 noundef %8, ptr noundef nonnull align 8 dereferenceable(32) %9) #3 align 2 {
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store i32 %1, ptr %12, align 4, !tbaa !9
  store i32 %2, ptr %13, align 4, !tbaa !9
  store ptr %3, ptr %14, align 8, !tbaa !5
  store i32 %4, ptr %15, align 4, !tbaa !9
  store i32 %5, ptr %16, align 4, !tbaa !9
  store ptr %6, ptr %17, align 8, !tbaa !5
  store i32 %7, ptr %18, align 4, !tbaa !9
  store i32 %8, ptr %19, align 4, !tbaa !9
  store ptr %9, ptr %20, align 8, !tbaa !5
  %27 = load ptr, ptr %11, align 8
  %28 = load i32, ptr %12, align 4, !tbaa !9
  %29 = icmp sge i32 %28, 0
  br i1 %29, label %30, label %135

30:                                               ; preds = %10
  %31 = load i32, ptr %13, align 4, !tbaa !9
  %32 = icmp sge i32 %31, 0
  br i1 %32, label %33, label %135

33:                                               ; preds = %30
  %34 = load i32, ptr %15, align 4, !tbaa !9
  %35 = icmp sge i32 %34, 0
  br i1 %35, label %36, label %135

36:                                               ; preds = %33
  %37 = load i32, ptr %16, align 4, !tbaa !9
  %38 = icmp sge i32 %37, 0
  br i1 %38, label %39, label %135

39:                                               ; preds = %36
  %40 = load i32, ptr %18, align 4, !tbaa !9
  %41 = icmp sge i32 %40, 0
  br i1 %41, label %42, label %135

42:                                               ; preds = %39
  %43 = load i32, ptr %19, align 4, !tbaa !9
  %44 = icmp sge i32 %43, 0
  br i1 %44, label %45, label %135

45:                                               ; preds = %42
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = call noundef zeroext i1 @_ZNKSt8functionIFiiiRiEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %46) #4
  br i1 %47, label %48, label %135

48:                                               ; preds = %45
  %49 = load ptr, ptr %17, align 8, !tbaa !5
  %50 = call noundef zeroext i1 @_ZNKSt8functionIFiiiRiEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %49) #4
  br i1 %50, label %51, label %135

51:                                               ; preds = %48
  %52 = load ptr, ptr %20, align 8, !tbaa !5
  %53 = call noundef zeroext i1 @_ZNKSt8functionIFiiiRiEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %52) #4
  br i1 %53, label %54, label %135

54:                                               ; preds = %51
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = icmp sgt i32 %55, %56
  br i1 %57, label %58, label %59

58:                                               ; preds = %54
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13) #4
  br label %59

59:                                               ; preds = %58, %54
  %60 = load i32, ptr %15, align 4, !tbaa !9
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = icmp sgt i32 %60, %61
  br i1 %62, label %63, label %64

63:                                               ; preds = %59
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16) #4
  br label %64

64:                                               ; preds = %63, %59
  %65 = load i32, ptr %18, align 4, !tbaa !9
  %66 = load i32, ptr %19, align 4, !tbaa !9
  %67 = icmp sgt i32 %65, %66
  br i1 %67, label %68, label %69

68:                                               ; preds = %64
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19) #4
  br label %69

69:                                               ; preds = %68, %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %70 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %70, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = load i32, ptr %13, align 4, !tbaa !9
  %74 = call noundef i32 @_ZNKSt8functionIFiiiRiEEclEiiS0_(ptr noundef nonnull align 8 dereferenceable(32) %71, i32 noundef %72, i32 noundef %73, ptr noundef nonnull align 4 dereferenceable(4) %21)
  store i32 %74, ptr %22, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %129, %69
  %76 = load i32, ptr %22, align 4, !tbaa !9
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = icmp sge i32 %76, %77
  br i1 %78, label %79, label %83

79:                                               ; preds = %75
  %80 = load i32, ptr %22, align 4, !tbaa !9
  %81 = load i32, ptr %13, align 4, !tbaa !9
  %82 = icmp sle i32 %80, %81
  br label %83

83:                                               ; preds = %79, %75
  %84 = phi i1 [ false, %75 ], [ %82, %79 ]
  br i1 %84, label %85, label %134

85:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %86 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %86, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  %88 = load i32, ptr %15, align 4, !tbaa !9
  %89 = load i32, ptr %16, align 4, !tbaa !9
  %90 = call noundef i32 @_ZNKSt8functionIFiiiRiEEclEiiS0_(ptr noundef nonnull align 8 dereferenceable(32) %87, i32 noundef %88, i32 noundef %89, ptr noundef nonnull align 4 dereferenceable(4) %23)
  store i32 %90, ptr %24, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %124, %85
  %92 = load i32, ptr %24, align 4, !tbaa !9
  %93 = load i32, ptr %15, align 4, !tbaa !9
  %94 = icmp sge i32 %92, %93
  br i1 %94, label %95, label %99

95:                                               ; preds = %91
  %96 = load i32, ptr %24, align 4, !tbaa !9
  %97 = load i32, ptr %16, align 4, !tbaa !9
  %98 = icmp sle i32 %96, %97
  br label %99

99:                                               ; preds = %95, %91
  %100 = phi i1 [ false, %91 ], [ %98, %95 ]
  br i1 %100, label %101, label %129

101:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %102 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %102, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %103 = load ptr, ptr %20, align 8, !tbaa !5
  %104 = load i32, ptr %18, align 4, !tbaa !9
  %105 = load i32, ptr %19, align 4, !tbaa !9
  %106 = call noundef i32 @_ZNKSt8functionIFiiiRiEEclEiiS0_(ptr noundef nonnull align 8 dereferenceable(32) %103, i32 noundef %104, i32 noundef %105, ptr noundef nonnull align 4 dereferenceable(4) %25)
  store i32 %106, ptr %26, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %117, %101
  %108 = load i32, ptr %26, align 4, !tbaa !9
  %109 = load i32, ptr %18, align 4, !tbaa !9
  %110 = icmp sge i32 %108, %109
  br i1 %110, label %111, label %115

111:                                              ; preds = %107
  %112 = load i32, ptr %26, align 4, !tbaa !9
  %113 = load i32, ptr %19, align 4, !tbaa !9
  %114 = icmp sle i32 %112, %113
  br label %115

115:                                              ; preds = %111, %107
  %116 = phi i1 [ false, %107 ], [ %114, %111 ]
  br i1 %116, label %117, label %124

117:                                              ; preds = %115
  %118 = getelementptr inbounds %"class.CppBenchmark::Settings", ptr %27, i32 0, i32 7
  %119 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE12emplace_backIJRiS5_S5_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %118, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %120 = load ptr, ptr %20, align 8, !tbaa !5
  %121 = load i32, ptr %18, align 4, !tbaa !9
  %122 = load i32, ptr %19, align 4, !tbaa !9
  %123 = call noundef i32 @_ZNKSt8functionIFiiiRiEEclEiiS0_(ptr noundef nonnull align 8 dereferenceable(32) %120, i32 noundef %121, i32 noundef %122, ptr noundef nonnull align 4 dereferenceable(4) %25)
  store i32 %123, ptr %26, align 4, !tbaa !9
  br label %107, !llvm.loop !11

124:                                              ; preds = %115
  %125 = load ptr, ptr %17, align 8, !tbaa !5
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = load i32, ptr %16, align 4, !tbaa !9
  %128 = call noundef i32 @_ZNKSt8functionIFiiiRiEEclEiiS0_(ptr noundef nonnull align 8 dereferenceable(32) %125, i32 noundef %126, i32 noundef %127, ptr noundef nonnull align 4 dereferenceable(4) %23)
  store i32 %128, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %91, !llvm.loop !13

129:                                              ; preds = %99
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = load i32, ptr %12, align 4, !tbaa !9
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = call noundef i32 @_ZNKSt8functionIFiiiRiEEclEiiS0_(ptr noundef nonnull align 8 dereferenceable(32) %130, i32 noundef %131, i32 noundef %132, ptr noundef nonnull align 4 dereferenceable(4) %21)
  store i32 %133, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %75, !llvm.loop !14

134:                                              ; preds = %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %135

135:                                              ; preds = %134, %51, %48, %45, %42, %39, %36, %33, %30, %10
  ret ptr %27
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !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"

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFiiiRiEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNKSt8functionIFiiiRiEEclEiiS0_(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE12emplace_backIJRiS5_S5_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(121) ptr @_ZN12CppBenchmark8Settings11TripleRangeEiiRKSt8functionIFiiiRiEEiiS6_iiS6_(ptr noundef nonnull returned align 8 dereferenceable(121) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef %4, i32 noundef %5, ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %7, i32 noundef %8, ptr noundef nonnull align 8 dereferenceable(32) %9) local_unnamed_addr #3 align 2 {
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store i32 %1, ptr %11, align 4, !tbaa !5
  store i32 %2, ptr %12, align 4, !tbaa !5
  store i32 %4, ptr %13, align 4, !tbaa !5
  store i32 %5, ptr %14, align 4, !tbaa !5
  store i32 %7, ptr %15, align 4, !tbaa !5
  store i32 %8, ptr %16, align 4, !tbaa !5
  %23 = or i32 %2, %1
  %24 = or i32 %23, %4
  %25 = or i32 %24, %5
  %26 = or i32 %25, %7
  %27 = or i32 %26, %8
  %or.cond9 = icmp sgt i32 %27, -1
  br i1 %or.cond9, label %28, label %95

28:                                               ; preds = %10
  %29 = tail call noundef zeroext i1 @_ZNKSt8functionIFiiiRiEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  br i1 %29, label %30, label %95

30:                                               ; preds = %28
  %31 = tail call noundef zeroext i1 @_ZNKSt8functionIFiiiRiEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  br i1 %31, label %32, label %95

32:                                               ; preds = %30
  %33 = tail call noundef zeroext i1 @_ZNKSt8functionIFiiiRiEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  br i1 %33, label %34, label %95

34:                                               ; preds = %32
  %35 = icmp sgt i32 %1, %2
  br i1 %35, label %36, label %37

36:                                               ; preds = %34
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12) #4
  br label %37

37:                                               ; preds = %36, %34
  %38 = icmp sgt i32 %4, %5
  br i1 %38, label %39, label %40

39:                                               ; preds = %37
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14) #4
  br label %40

40:                                               ; preds = %39, %37
  %41 = icmp sgt i32 %7, %8
  br i1 %41, label %42, label %43

42:                                               ; preds = %40
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16) #4
  br label %43

43:                                               ; preds = %42, %40
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #4
  %44 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %44, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #4
  %45 = load i32, ptr %12, align 4, !tbaa !5
  %46 = call noundef i32 @_ZNKSt8functionIFiiiRiEEclEiiS0_(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef %44, i32 noundef %45, ptr noundef nonnull align 4 dereferenceable(4) %17)
  store i32 %46, ptr %18, align 4, !tbaa !5
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %48 = icmp sge i32 %46, %47
  %49 = load i32, ptr %12, align 4
  %50 = icmp sle i32 %46, %49
  %51 = select i1 %48, i1 %50, i1 false
  br i1 %51, label %.lr.ph23, label %._crit_edge24

.lr.ph23:                                         ; preds = %43
  %52 = getelementptr inbounds i8, ptr %0, i64 72
  br label %53

53:                                               ; preds = %.lr.ph23, %._crit_edge21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #4
  %54 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %54, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #4
  %55 = load i32, ptr %14, align 4, !tbaa !5
  %56 = call noundef i32 @_ZNKSt8functionIFiiiRiEEclEiiS0_(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %54, i32 noundef %55, ptr noundef nonnull align 4 dereferenceable(4) %19)
  store i32 %56, ptr %20, align 4, !tbaa !5
  %57 = load i32, ptr %13, align 4, !tbaa !5
  %58 = icmp sge i32 %56, %57
  %59 = load i32, ptr %14, align 4
  %60 = icmp sle i32 %56, %59
  %61 = select i1 %58, i1 %60, i1 false
  br i1 %61, label %.lr.ph20, label %._crit_edge21

.lr.ph20:                                         ; preds = %53, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #4
  %62 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %62, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #4
  %63 = load i32, ptr %16, align 4, !tbaa !5
  %64 = call noundef i32 @_ZNKSt8functionIFiiiRiEEclEiiS0_(ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef %62, i32 noundef %63, ptr noundef nonnull align 4 dereferenceable(4) %21)
  store i32 %64, ptr %22, align 4, !tbaa !5
  %65 = load i32, ptr %15, align 4, !tbaa !5
  %66 = icmp sge i32 %64, %65
  %67 = load i32, ptr %16, align 4
  %68 = icmp sle i32 %64, %67
  %69 = select i1 %66, i1 %68, i1 false
  br i1 %69, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph20, %.lr.ph
  %70 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE12emplace_backIJRiS5_S5_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %71 = load i32, ptr %15, align 4, !tbaa !5
  %72 = load i32, ptr %16, align 4, !tbaa !5
  %73 = call noundef i32 @_ZNKSt8functionIFiiiRiEEclEiiS0_(ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef %71, i32 noundef %72, ptr noundef nonnull align 4 dereferenceable(4) %21)
  store i32 %73, ptr %22, align 4, !tbaa !5
  %74 = load i32, ptr %15, align 4, !tbaa !5
  %75 = icmp sge i32 %73, %74
  %76 = load i32, ptr %16, align 4
  %77 = icmp sle i32 %73, %76
  %78 = select i1 %75, i1 %77, i1 false
  br i1 %78, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph20
  %79 = load i32, ptr %13, align 4, !tbaa !5
  %80 = load i32, ptr %14, align 4, !tbaa !5
  %81 = call noundef i32 @_ZNKSt8functionIFiiiRiEEclEiiS0_(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %79, i32 noundef %80, ptr noundef nonnull align 4 dereferenceable(4) %19)
  store i32 %81, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #4
  %82 = load i32, ptr %13, align 4, !tbaa !5
  %83 = icmp sge i32 %81, %82
  %84 = load i32, ptr %14, align 4
  %85 = icmp sle i32 %81, %84
  %86 = select i1 %83, i1 %85, i1 false
  br i1 %86, label %.lr.ph20, label %._crit_edge21, !llvm.loop !11

._crit_edge21:                                    ; preds = %._crit_edge, %53
  %87 = load i32, ptr %11, align 4, !tbaa !5
  %88 = load i32, ptr %12, align 4, !tbaa !5
  %89 = call noundef i32 @_ZNKSt8functionIFiiiRiEEclEiiS0_(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef %87, i32 noundef %88, ptr noundef nonnull align 4 dereferenceable(4) %17)
  store i32 %89, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #4
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = icmp sge i32 %89, %90
  %92 = load i32, ptr %12, align 4
  %93 = icmp sle i32 %89, %92
  %94 = select i1 %91, i1 %93, i1 false
  br i1 %94, label %53, label %._crit_edge24, !llvm.loop !12

._crit_edge24:                                    ; preds = %._crit_edge21, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  br label %95

95:                                               ; preds = %._crit_edge24, %32, %30, %28, %10
  ret ptr %0
}

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


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