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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(121) ptr @_ZN12CppBenchmark8Settings11TripleRangeEiiiiii(ptr noundef nonnull align 8 dereferenceable(121) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #2 align 2 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %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
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  %19 = load ptr, ptr %8, align 8
  %20 = load i32, ptr %9, align 4, !tbaa !9
  %21 = icmp sge i32 %20, 0
  br i1 %21, label %22, label %88

22:                                               ; preds = %7
  %23 = load i32, ptr %10, align 4, !tbaa !9
  %24 = icmp sge i32 %23, 0
  br i1 %24, label %25, label %88

25:                                               ; preds = %22
  %26 = load i32, ptr %11, align 4, !tbaa !9
  %27 = icmp sge i32 %26, 0
  br i1 %27, label %28, label %88

28:                                               ; preds = %25
  %29 = load i32, ptr %12, align 4, !tbaa !9
  %30 = icmp sge i32 %29, 0
  br i1 %30, label %31, label %88

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

34:                                               ; preds = %31
  %35 = load i32, ptr %14, align 4, !tbaa !9
  %36 = icmp sge i32 %35, 0
  br i1 %36, label %37, label %88

37:                                               ; preds = %34
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = icmp sgt i32 %38, %39
  br i1 %40, label %41, label %42

41:                                               ; 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) %9, ptr noundef nonnull align 4 dereferenceable(4) %10) #3
  br label %42

42:                                               ; preds = %41, %37
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = load i32, ptr %12, align 4, !tbaa !9
  %45 = icmp sgt i32 %43, %44
  br i1 %45, label %46, label %47

46:                                               ; preds = %42
  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) #3
  br label %47

47:                                               ; preds = %46, %42
  %48 = load i32, ptr %13, align 4, !tbaa !9
  %49 = load i32, ptr %14, align 4, !tbaa !9
  %50 = icmp sgt i32 %48, %49
  br i1 %50, label %51, label %52

51:                                               ; preds = %47
  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) #3
  br label %52

52:                                               ; preds = %51, %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %53 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %53, ptr %15, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %84, %52
  %55 = load i32, ptr %15, align 4, !tbaa !9
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = icmp sle i32 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %87

59:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %60 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %60, ptr %17, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %80, %59
  %62 = load i32, ptr %17, align 4, !tbaa !9
  %63 = load i32, ptr %12, align 4, !tbaa !9
  %64 = icmp sle i32 %62, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %83

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %67 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %67, ptr %18, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %76, %66
  %69 = load i32, ptr %18, align 4, !tbaa !9
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = icmp sle i32 %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %79

73:                                               ; preds = %68
  %74 = getelementptr inbounds %"class.CppBenchmark::Settings", ptr %19, i32 0, i32 7
  %75 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE12emplace_backIJRiS5_S5_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  br label %76

76:                                               ; preds = %73
  %77 = load i32, ptr %18, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %18, align 4, !tbaa !9
  br label %68, !llvm.loop !11

79:                                               ; preds = %72
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %17, align 4, !tbaa !9
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %17, align 4, !tbaa !9
  br label %61, !llvm.loop !13

83:                                               ; preds = %65
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %15, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %15, align 4, !tbaa !9
  br label %54, !llvm.loop !14

87:                                               ; preds = %58
  br label %88

88:                                               ; preds = %87, %34, %31, %28, %25, %22, %7
  ret ptr %19
}

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 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 = !{!"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 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 #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(121) ptr @_ZN12CppBenchmark8Settings11TripleRangeEiiiiii(ptr noundef nonnull returned align 8 dereferenceable(121) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #2 align 2 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %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
  store i32 %1, ptr %8, align 4, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !5
  store i32 %6, ptr %13, align 4, !tbaa !5
  %17 = or i32 %2, %1
  %18 = or i32 %17, %3
  %19 = or i32 %18, %4
  %20 = or i32 %19, %5
  %21 = or i32 %20, %6
  %or.cond9 = icmp sgt i32 %21, -1
  br i1 %or.cond9, label %22, label %67

22:                                               ; preds = %7
  %23 = icmp sgt i32 %1, %2
  br i1 %23, label %24, label %25

24:                                               ; preds = %22
  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) %8, ptr noundef nonnull align 4 dereferenceable(4) %9) #3
  br label %25

25:                                               ; preds = %24, %22
  %26 = icmp sgt i32 %3, %4
  br i1 %26, label %27, label %28

27:                                               ; preds = %25
  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) %10, ptr noundef nonnull align 4 dereferenceable(4) %11) #3
  br label %28

28:                                               ; preds = %27, %25
  %29 = icmp sgt i32 %5, %6
  br i1 %29, label %30, label %31

30:                                               ; preds = %28
  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) #3
  br label %31

31:                                               ; preds = %30, %28
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #3
  %32 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %32, ptr %14, align 4, !tbaa !5
  %33 = load i32, ptr %9, align 4, !tbaa !5
  %.not20 = icmp sgt i32 %32, %33
  br i1 %.not20, label %._crit_edge23, label %.lr.ph22

.lr.ph22:                                         ; preds = %31
  %34 = getelementptr inbounds i8, ptr %0, i64 72
  %35 = load i32, ptr %10, align 4, !tbaa !5
  %36 = load i32, ptr %11, align 4, !tbaa !5
  %37 = icmp sgt i32 %35, %36
  br i1 %37, label %._crit_edge23, label %.lr.ph22.split

._crit_edge23:                                    ; preds = %._crit_edge19, %.lr.ph22, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  br label %67

.lr.ph22.split:                                   ; preds = %.lr.ph22, %._crit_edge19
  %38 = phi i32 [ %47, %._crit_edge19 ], [ %33, %.lr.ph22 ]
  %39 = phi i32 [ %52, %._crit_edge19 ], [ %32, %.lr.ph22 ]
  %40 = phi i32 [ %49, %._crit_edge19 ], [ %36, %.lr.ph22 ]
  %41 = phi i32 [ %50, %._crit_edge19 ], [ %36, %.lr.ph22 ]
  %42 = phi i32 [ %51, %._crit_edge19 ], [ %36, %.lr.ph22 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #3
  %43 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %43, ptr %15, align 4, !tbaa !5
  %.not1216 = icmp sgt i32 %43, %42
  br i1 %.not1216, label %._crit_edge19, label %.lr.ph18

.lr.ph18:                                         ; preds = %.lr.ph22.split
  %44 = load i32, ptr %12, align 4, !tbaa !5
  %45 = load i32, ptr %13, align 4, !tbaa !5
  %46 = icmp sgt i32 %44, %45
  br i1 %46, label %._crit_edge19, label %.lr.ph18.split

._crit_edge19.loopexit:                           ; preds = %._crit_edge
  %.pre30 = load i32, ptr %14, align 4, !tbaa !5
  %.pre31 = load i32, ptr %9, align 4, !tbaa !5
  br label %._crit_edge19

._crit_edge19:                                    ; preds = %.lr.ph18, %._crit_edge19.loopexit, %.lr.ph22.split
  %47 = phi i32 [ %.pre31, %._crit_edge19.loopexit ], [ %38, %.lr.ph22.split ], [ %38, %.lr.ph18 ]
  %48 = phi i32 [ %.pre30, %._crit_edge19.loopexit ], [ %39, %.lr.ph22.split ], [ %39, %.lr.ph18 ]
  %49 = phi i32 [ %58, %._crit_edge19.loopexit ], [ %40, %.lr.ph22.split ], [ %40, %.lr.ph18 ]
  %50 = phi i32 [ %59, %._crit_edge19.loopexit ], [ %41, %.lr.ph22.split ], [ %40, %.lr.ph18 ]
  %51 = phi i32 [ %59, %._crit_edge19.loopexit ], [ %42, %.lr.ph22.split ], [ %40, %.lr.ph18 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  %52 = add nsw i32 %48, 1
  store i32 %52, ptr %14, align 4, !tbaa !5
  %.not.not = icmp slt i32 %48, %47
  br i1 %.not.not, label %.lr.ph22.split, label %._crit_edge23, !llvm.loop !9

.lr.ph18.split:                                   ; preds = %.lr.ph18, %._crit_edge
  %53 = phi i32 [ %58, %._crit_edge ], [ %40, %.lr.ph18 ]
  %54 = phi i32 [ %59, %._crit_edge ], [ %41, %.lr.ph18 ]
  %55 = phi i32 [ %62, %._crit_edge ], [ %43, %.lr.ph18 ]
  %56 = phi i32 [ %61, %._crit_edge ], [ %45, %.lr.ph18 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #3
  %57 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %57, ptr %16, align 4, !tbaa !5
  %.not1415 = icmp sgt i32 %57, %56
  br i1 %.not1415, label %._crit_edge, label %.lr.ph

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr %15, align 4, !tbaa !5
  %.pre29 = load i32, ptr %11, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph18.split
  %58 = phi i32 [ %.pre29, %._crit_edge.loopexit ], [ %53, %.lr.ph18.split ]
  %59 = phi i32 [ %.pre29, %._crit_edge.loopexit ], [ %54, %.lr.ph18.split ]
  %60 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %55, %.lr.ph18.split ]
  %61 = phi i32 [ %66, %._crit_edge.loopexit ], [ %56, %.lr.ph18.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #3
  %62 = add nsw i32 %60, 1
  store i32 %62, ptr %15, align 4, !tbaa !5
  %.not12.not = icmp slt i32 %60, %59
  br i1 %.not12.not, label %.lr.ph18.split, label %._crit_edge19.loopexit, !llvm.loop !12

.lr.ph:                                           ; preds = %.lr.ph18.split, %.lr.ph
  %63 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE12emplace_backIJRiS5_S5_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %64 = load i32, ptr %16, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %16, align 4, !tbaa !5
  %66 = load i32, ptr %13, align 4, !tbaa !5
  %.not14.not = icmp slt i32 %64, %66
  br i1 %.not14.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !13

67:                                               ; preds = %._crit_edge23, %7
  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 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.unswitch.partial.disable"}
!12 = distinct !{!12, !10, !11}
!13 = distinct !{!13, !10}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass