; LLVM IR from kazunetakahashi/atcoder :: 2018/0325_ARC093/E.ll (Z3lcaii)

; 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::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.5", %"struct.std::_Head_base.6" }
%"struct.std::_Tuple_impl.5" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.6" = type { i64 }

@parent = external dso_local global [10 x [1010 x %"class.std::tuple"]], align 16
@depth = external dso_local global [1010 x i32], align 16

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16)) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z3lcaii(i32 noundef %0, i32 noundef %1) #3 {
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  %10 = load i32, ptr %4, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %11
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = load i32, ptr %5, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = icmp sgt i32 %13, %17
  br i1 %18, label %19, label %20

19:                                               ; preds = %2
  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) %4, ptr noundef nonnull align 4 dereferenceable(4) %5) #4
  br label %20

20:                                               ; preds = %19, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %58, %20
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 10
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %61

25:                                               ; preds = %21
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = sub nsw i32 %29, %33
  %35 = load i32, ptr %7, align 4, !tbaa !5
  %36 = ashr i32 %34, %35
  %37 = and i32 %36, 1
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %57

39:                                               ; preds = %25
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 %41
  %43 = load i32, ptr %5, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr %42, i64 0, i64 %44
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %45) #4
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %46)
  %48 = load i64, ptr %47, align 8, !tbaa !9
  store i64 %48, ptr %6, align 8, !tbaa !9
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 %50
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr %51, i64 0, i64 %53
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %54) #4
  %56 = load i32, ptr %55, align 4, !tbaa !5
  store i32 %56, ptr %5, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %39, %25
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %7, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %7, align 4, !tbaa !5
  br label %21, !llvm.loop !11

61:                                               ; preds = %24
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = icmp eq i32 %62, %63
  br i1 %64, label %65, label %67

65:                                               ; preds = %61
  %66 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %66, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %143

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

68:                                               ; preds = %126, %67
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = icmp sge i32 %69, 0
  br i1 %70, label %72, label %71

71:                                               ; preds = %68
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %129

72:                                               ; preds = %68
  %73 = load i32, ptr %9, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 %74
  %76 = load i32, ptr %4, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr %75, i64 0, i64 %77
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %78) #4
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = load i32, ptr %9, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 %82
  %84 = load i32, ptr %5, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr %83, i64 0, i64 %85
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %86) #4
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = icmp ne i32 %80, %88
  br i1 %89, label %90, label %125

90:                                               ; preds = %72
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 %92
  %94 = load i32, ptr %4, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr %93, i64 0, i64 %95
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %96) #4
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %97)
  %99 = load i64, ptr %98, align 8, !tbaa !9
  store i64 %99, ptr %6, align 8, !tbaa !9
  %100 = load i32, ptr %9, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 %101
  %103 = load i32, ptr %5, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr %102, i64 0, i64 %104
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %105) #4
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %106)
  %108 = load i64, ptr %107, align 8, !tbaa !9
  store i64 %108, ptr %6, align 8, !tbaa !9
  %109 = load i32, ptr %9, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 %110
  %112 = load i32, ptr %4, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr %111, i64 0, i64 %113
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %114) #4
  %116 = load i32, ptr %115, align 4, !tbaa !5
  store i32 %116, ptr %4, align 4, !tbaa !5
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 %118
  %120 = load i32, ptr %5, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr %119, i64 0, i64 %121
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %122) #4
  %124 = load i32, ptr %123, align 4, !tbaa !5
  store i32 %124, ptr %5, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %90, %72
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %9, align 4, !tbaa !5
  %128 = add nsw i32 %127, -1
  store i32 %128, ptr %9, align 4, !tbaa !5
  br label %68, !llvm.loop !13

129:                                              ; preds = %71
  %130 = load i32, ptr %5, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @parent, i64 0, i64 %131
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %132) #4
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %133)
  %135 = load i64, ptr %134, align 8, !tbaa !9
  store i64 %135, ptr %6, align 8, !tbaa !9
  %136 = load i32, ptr %4, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @parent, i64 0, i64 %137
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %138) #4
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %139)
  %141 = load i64, ptr %140, align 8, !tbaa !9
  store i64 %141, ptr %6, align 8, !tbaa !9
  %142 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %142, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %143

143:                                              ; preds = %129, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %144 = load i64, ptr %3, align 8
  ret i64 %144
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !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::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.5", %"struct.std::_Head_base.6" }
%"struct.std::_Tuple_impl.5" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.6" = type { i64 }

@parent = external dso_local global [10 x [1010 x %"class.std::tuple"]], align 16
@depth = external dso_local local_unnamed_addr global [1010 x i32], align 16

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i64 @_Z3lcaii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  %6 = sext i32 %0 to i64
  %7 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %6
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = sext i32 %1 to i64
  %10 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %9
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = icmp sgt i32 %8, %11
  br i1 %12, label %13, label %14

13:                                               ; preds = %2
  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) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) #3
  %.pre = load i32, ptr %4, align 4, !tbaa !5
  %.phi.trans.insert = sext i32 %.pre to i64
  %.phi.trans.insert21 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.phi.trans.insert
  %.pre22 = load i32, ptr %.phi.trans.insert21, align 4, !tbaa !5
  %.pre23 = load i32, ptr %3, align 4, !tbaa !5
  %.phi.trans.insert24 = sext i32 %.pre23 to i64
  %.phi.trans.insert25 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.phi.trans.insert24
  %.pre26 = load i32, ptr %.phi.trans.insert25, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %13, %2
  %.pre-phi99 = phi i64 [ %.phi.trans.insert, %13 ], [ %9, %2 ]
  %15 = phi i32 [ %.pre26, %13 ], [ %8, %2 ]
  %16 = phi i32 [ %.pre23, %13 ], [ %0, %2 ]
  %17 = phi i32 [ %.pre22, %13 ], [ %11, %2 ]
  %18 = phi i32 [ %.pre, %13 ], [ %1, %2 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  store i64 0, ptr %5, align 8, !tbaa !9
  %19 = sub nsw i32 %17, %15
  %20 = and i32 %19, 1
  %.not16 = icmp eq i32 %20, 0
  br i1 %.not16, label %31, label %21

21:                                               ; preds = %14
  %22 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 0, i64 %.pre-phi99
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %22) #3
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %23)
  %25 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %25, ptr %5, align 8, !tbaa !9
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 0, i64 %27
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %28) #3
  %30 = load i32, ptr %29, align 4, !tbaa !5
  store i32 %30, ptr %4, align 4, !tbaa !5
  %.pre27 = sext i32 %30 to i64
  %.phi.trans.insert28 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.pre27
  %.pre29 = load i32, ptr %.phi.trans.insert28, align 4, !tbaa !5
  %.pre30 = load i32, ptr %3, align 4, !tbaa !5
  %.phi.trans.insert31 = sext i32 %.pre30 to i64
  %.phi.trans.insert32 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.phi.trans.insert31
  %.pre33 = load i32, ptr %.phi.trans.insert32, align 4, !tbaa !5
  %.pre102 = sub nsw i32 %.pre29, %.pre33
  br label %31

31:                                               ; preds = %14, %21
  %.pre-phi103 = phi i32 [ %19, %14 ], [ %.pre102, %21 ]
  %32 = phi i32 [ %16, %14 ], [ %.pre30, %21 ]
  %.pre-phi = phi i64 [ %.pre-phi99, %14 ], [ %.pre27, %21 ]
  %33 = phi i32 [ %18, %14 ], [ %30, %21 ]
  %34 = and i32 %.pre-phi103, 2
  %.not16.1 = icmp eq i32 %34, 0
  br i1 %.not16.1, label %45, label %35

35:                                               ; preds = %31
  %36 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 1, i64 %.pre-phi
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %36) #3
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %37)
  %39 = load i64, ptr %38, align 8, !tbaa !9
  store i64 %39, ptr %5, align 8, !tbaa !9
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 1, i64 %41
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %42) #3
  %44 = load i32, ptr %43, align 4, !tbaa !5
  store i32 %44, ptr %4, align 4, !tbaa !5
  %.pre34 = sext i32 %44 to i64
  %.pre36 = load i32, ptr %3, align 4, !tbaa !5
  %.phi.trans.insert37 = sext i32 %.pre36 to i64
  %.phi.trans.insert38 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.phi.trans.insert37
  %.pre39 = load i32, ptr %.phi.trans.insert38, align 4, !tbaa !5
  %.phi.trans.insert83 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.pre34
  %.pre84 = load i32, ptr %.phi.trans.insert83, align 4, !tbaa !5
  %.pre105 = sub nsw i32 %.pre84, %.pre39
  br label %45

45:                                               ; preds = %35, %31
  %.pre-phi106 = phi i32 [ %.pre105, %35 ], [ %.pre-phi103, %31 ]
  %46 = phi i32 [ %.pre36, %35 ], [ %32, %31 ]
  %.pre-phi35 = phi i64 [ %.pre34, %35 ], [ %.pre-phi, %31 ]
  %47 = phi i32 [ %44, %35 ], [ %33, %31 ]
  %48 = and i32 %.pre-phi106, 4
  %.not16.2 = icmp eq i32 %48, 0
  br i1 %.not16.2, label %59, label %49

49:                                               ; preds = %45
  %50 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 2, i64 %.pre-phi35
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %50) #3
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %51)
  %53 = load i64, ptr %52, align 8, !tbaa !9
  store i64 %53, ptr %5, align 8, !tbaa !9
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 2, i64 %55
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %56) #3
  %58 = load i32, ptr %57, align 4, !tbaa !5
  store i32 %58, ptr %4, align 4, !tbaa !5
  %.pre40 = sext i32 %58 to i64
  %.pre42 = load i32, ptr %3, align 4, !tbaa !5
  %.phi.trans.insert43 = sext i32 %.pre42 to i64
  %.phi.trans.insert44 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.phi.trans.insert43
  %.pre45 = load i32, ptr %.phi.trans.insert44, align 4, !tbaa !5
  %.phi.trans.insert85 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.pre40
  %.pre86 = load i32, ptr %.phi.trans.insert85, align 4, !tbaa !5
  %.pre108 = sub nsw i32 %.pre86, %.pre45
  br label %59

59:                                               ; preds = %49, %45
  %.pre-phi109 = phi i32 [ %.pre108, %49 ], [ %.pre-phi106, %45 ]
  %60 = phi i32 [ %.pre42, %49 ], [ %46, %45 ]
  %.pre-phi41 = phi i64 [ %.pre40, %49 ], [ %.pre-phi35, %45 ]
  %61 = phi i32 [ %58, %49 ], [ %47, %45 ]
  %62 = and i32 %.pre-phi109, 8
  %.not16.3 = icmp eq i32 %62, 0
  br i1 %.not16.3, label %73, label %63

63:                                               ; preds = %59
  %64 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 3, i64 %.pre-phi41
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %64) #3
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %65)
  %67 = load i64, ptr %66, align 8, !tbaa !9
  store i64 %67, ptr %5, align 8, !tbaa !9
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 3, i64 %69
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %70) #3
  %72 = load i32, ptr %71, align 4, !tbaa !5
  store i32 %72, ptr %4, align 4, !tbaa !5
  %.pre46 = sext i32 %72 to i64
  %.pre48 = load i32, ptr %3, align 4, !tbaa !5
  %.phi.trans.insert49 = sext i32 %.pre48 to i64
  %.phi.trans.insert50 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.phi.trans.insert49
  %.pre51 = load i32, ptr %.phi.trans.insert50, align 4, !tbaa !5
  %.phi.trans.insert87 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.pre46
  %.pre88 = load i32, ptr %.phi.trans.insert87, align 4, !tbaa !5
  %.pre111 = sub nsw i32 %.pre88, %.pre51
  br label %73

73:                                               ; preds = %63, %59
  %.pre-phi112 = phi i32 [ %.pre111, %63 ], [ %.pre-phi109, %59 ]
  %74 = phi i32 [ %.pre48, %63 ], [ %60, %59 ]
  %.pre-phi47 = phi i64 [ %.pre46, %63 ], [ %.pre-phi41, %59 ]
  %75 = phi i32 [ %72, %63 ], [ %61, %59 ]
  %76 = and i32 %.pre-phi112, 16
  %.not16.4 = icmp eq i32 %76, 0
  br i1 %.not16.4, label %87, label %77

77:                                               ; preds = %73
  %78 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 4, i64 %.pre-phi47
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %78) #3
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %79)
  %81 = load i64, ptr %80, align 8, !tbaa !9
  store i64 %81, ptr %5, align 8, !tbaa !9
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 4, i64 %83
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %84) #3
  %86 = load i32, ptr %85, align 4, !tbaa !5
  store i32 %86, ptr %4, align 4, !tbaa !5
  %.pre52 = sext i32 %86 to i64
  %.pre54 = load i32, ptr %3, align 4, !tbaa !5
  %.phi.trans.insert55 = sext i32 %.pre54 to i64
  %.phi.trans.insert56 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.phi.trans.insert55
  %.pre57 = load i32, ptr %.phi.trans.insert56, align 4, !tbaa !5
  %.phi.trans.insert89 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.pre52
  %.pre90 = load i32, ptr %.phi.trans.insert89, align 4, !tbaa !5
  %.pre114 = sub nsw i32 %.pre90, %.pre57
  br label %87

87:                                               ; preds = %77, %73
  %.pre-phi115 = phi i32 [ %.pre114, %77 ], [ %.pre-phi112, %73 ]
  %88 = phi i32 [ %.pre54, %77 ], [ %74, %73 ]
  %.pre-phi53 = phi i64 [ %.pre52, %77 ], [ %.pre-phi47, %73 ]
  %89 = phi i32 [ %86, %77 ], [ %75, %73 ]
  %90 = and i32 %.pre-phi115, 32
  %.not16.5 = icmp eq i32 %90, 0
  br i1 %.not16.5, label %101, label %91

91:                                               ; preds = %87
  %92 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 5, i64 %.pre-phi53
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %92) #3
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %93)
  %95 = load i64, ptr %94, align 8, !tbaa !9
  store i64 %95, ptr %5, align 8, !tbaa !9
  %96 = load i32, ptr %4, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 5, i64 %97
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %98) #3
  %100 = load i32, ptr %99, align 4, !tbaa !5
  store i32 %100, ptr %4, align 4, !tbaa !5
  %.pre58 = sext i32 %100 to i64
  %.pre60 = load i32, ptr %3, align 4, !tbaa !5
  %.phi.trans.insert61 = sext i32 %.pre60 to i64
  %.phi.trans.insert62 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.phi.trans.insert61
  %.pre63 = load i32, ptr %.phi.trans.insert62, align 4, !tbaa !5
  %.phi.trans.insert91 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.pre58
  %.pre92 = load i32, ptr %.phi.trans.insert91, align 4, !tbaa !5
  %.pre117 = sub nsw i32 %.pre92, %.pre63
  br label %101

101:                                              ; preds = %91, %87
  %.pre-phi118 = phi i32 [ %.pre117, %91 ], [ %.pre-phi115, %87 ]
  %102 = phi i32 [ %.pre60, %91 ], [ %88, %87 ]
  %.pre-phi59 = phi i64 [ %.pre58, %91 ], [ %.pre-phi53, %87 ]
  %103 = phi i32 [ %100, %91 ], [ %89, %87 ]
  %104 = and i32 %.pre-phi118, 64
  %.not16.6 = icmp eq i32 %104, 0
  br i1 %.not16.6, label %115, label %105

105:                                              ; preds = %101
  %106 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 6, i64 %.pre-phi59
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %106) #3
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %107)
  %109 = load i64, ptr %108, align 8, !tbaa !9
  store i64 %109, ptr %5, align 8, !tbaa !9
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 6, i64 %111
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %112) #3
  %114 = load i32, ptr %113, align 4, !tbaa !5
  store i32 %114, ptr %4, align 4, !tbaa !5
  %.pre64 = sext i32 %114 to i64
  %.pre66 = load i32, ptr %3, align 4, !tbaa !5
  %.phi.trans.insert67 = sext i32 %.pre66 to i64
  %.phi.trans.insert68 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.phi.trans.insert67
  %.pre69 = load i32, ptr %.phi.trans.insert68, align 4, !tbaa !5
  %.phi.trans.insert93 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.pre64
  %.pre94 = load i32, ptr %.phi.trans.insert93, align 4, !tbaa !5
  %.pre120 = sub nsw i32 %.pre94, %.pre69
  br label %115

115:                                              ; preds = %105, %101
  %.pre-phi121 = phi i32 [ %.pre120, %105 ], [ %.pre-phi118, %101 ]
  %116 = phi i32 [ %.pre66, %105 ], [ %102, %101 ]
  %.pre-phi65 = phi i64 [ %.pre64, %105 ], [ %.pre-phi59, %101 ]
  %117 = phi i32 [ %114, %105 ], [ %103, %101 ]
  %118 = and i32 %.pre-phi121, 128
  %.not16.7 = icmp eq i32 %118, 0
  br i1 %.not16.7, label %129, label %119

119:                                              ; preds = %115
  %120 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 7, i64 %.pre-phi65
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %120) #3
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %121)
  %123 = load i64, ptr %122, align 8, !tbaa !9
  store i64 %123, ptr %5, align 8, !tbaa !9
  %124 = load i32, ptr %4, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 7, i64 %125
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %126) #3
  %128 = load i32, ptr %127, align 4, !tbaa !5
  store i32 %128, ptr %4, align 4, !tbaa !5
  %.pre70 = sext i32 %128 to i64
  %.pre72 = load i32, ptr %3, align 4, !tbaa !5
  %.phi.trans.insert73 = sext i32 %.pre72 to i64
  %.phi.trans.insert74 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.phi.trans.insert73
  %.pre75 = load i32, ptr %.phi.trans.insert74, align 4, !tbaa !5
  %.phi.trans.insert95 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.pre70
  %.pre96 = load i32, ptr %.phi.trans.insert95, align 4, !tbaa !5
  %.pre123 = sub nsw i32 %.pre96, %.pre75
  br label %129

129:                                              ; preds = %119, %115
  %.pre-phi124 = phi i32 [ %.pre123, %119 ], [ %.pre-phi121, %115 ]
  %130 = phi i32 [ %.pre72, %119 ], [ %116, %115 ]
  %.pre-phi71 = phi i64 [ %.pre70, %119 ], [ %.pre-phi65, %115 ]
  %131 = phi i32 [ %128, %119 ], [ %117, %115 ]
  %132 = and i32 %.pre-phi124, 256
  %.not16.8 = icmp eq i32 %132, 0
  br i1 %.not16.8, label %143, label %133

133:                                              ; preds = %129
  %134 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 8, i64 %.pre-phi71
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %134) #3
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %135)
  %137 = load i64, ptr %136, align 8, !tbaa !9
  store i64 %137, ptr %5, align 8, !tbaa !9
  %138 = load i32, ptr %4, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 8, i64 %139
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %140) #3
  %142 = load i32, ptr %141, align 4, !tbaa !5
  store i32 %142, ptr %4, align 4, !tbaa !5
  %.pre76 = sext i32 %142 to i64
  %.pre78 = load i32, ptr %3, align 4, !tbaa !5
  %.phi.trans.insert79 = sext i32 %.pre78 to i64
  %.phi.trans.insert80 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.phi.trans.insert79
  %.pre81 = load i32, ptr %.phi.trans.insert80, align 4, !tbaa !5
  %.phi.trans.insert97 = getelementptr inbounds [1010 x i32], ptr @depth, i64 0, i64 %.pre76
  %.pre98 = load i32, ptr %.phi.trans.insert97, align 4, !tbaa !5
  %.pre126 = sub nsw i32 %.pre98, %.pre81
  br label %143

143:                                              ; preds = %133, %129
  %.pre-phi127 = phi i32 [ %.pre126, %133 ], [ %.pre-phi124, %129 ]
  %144 = phi i32 [ %.pre78, %133 ], [ %130, %129 ]
  %.pre-phi77 = phi i64 [ %.pre76, %133 ], [ %.pre-phi71, %129 ]
  %145 = phi i32 [ %142, %133 ], [ %131, %129 ]
  %146 = and i32 %.pre-phi127, 512
  %.not16.9 = icmp eq i32 %146, 0
  br i1 %.not16.9, label %157, label %147

147:                                              ; preds = %143
  %148 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 9, i64 %.pre-phi77
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %148) #3
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %149)
  %151 = load i64, ptr %150, align 8, !tbaa !9
  store i64 %151, ptr %5, align 8, !tbaa !9
  %152 = load i32, ptr %4, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 9, i64 %153
  %155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %154) #3
  %156 = load i32, ptr %155, align 4, !tbaa !5
  store i32 %156, ptr %4, align 4, !tbaa !5
  %.pre82 = load i32, ptr %3, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %147, %143
  %158 = phi i32 [ %156, %147 ], [ %145, %143 ]
  %159 = phi i32 [ %.pre82, %147 ], [ %144, %143 ]
  %160 = icmp eq i32 %159, %158
  br i1 %160, label %207, label %.preheader

161:                                              ; preds = %206
  %162 = load i32, ptr %4, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @parent, i64 0, i64 %163
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %164) #3
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %165)
  %167 = load i64, ptr %166, align 8, !tbaa !9
  store i64 %167, ptr %5, align 8, !tbaa !9
  %168 = load i32, ptr %3, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [1010 x %"class.std::tuple"], ptr @parent, i64 0, i64 %169
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %170) #3
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %171)
  br label %207

.preheader:                                       ; preds = %157, %206
  %indvars.iv = phi i64 [ %indvars.iv.next, %206 ], [ 9, %157 ]
  %173 = load i32, ptr %3, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 %indvars.iv, i64 %174
  %176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %175) #3
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = load i32, ptr %4, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 %indvars.iv, i64 %179
  %181 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %180) #3
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %.not = icmp eq i32 %177, %182
  br i1 %.not, label %206, label %183

183:                                              ; preds = %.preheader
  %184 = load i32, ptr %3, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 %indvars.iv, i64 %185
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %186) #3
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %187)
  %189 = load i64, ptr %188, align 8, !tbaa !9
  store i64 %189, ptr %5, align 8, !tbaa !9
  %190 = load i32, ptr %4, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 %indvars.iv, i64 %191
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %192) #3
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %193)
  %195 = load i64, ptr %194, align 8, !tbaa !9
  store i64 %195, ptr %5, align 8, !tbaa !9
  %196 = load i32, ptr %3, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 %indvars.iv, i64 %197
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %198) #3
  %200 = load i32, ptr %199, align 4, !tbaa !5
  store i32 %200, ptr %3, align 4, !tbaa !5
  %201 = load i32, ptr %4, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [10 x [1010 x %"class.std::tuple"]], ptr @parent, i64 0, i64 %indvars.iv, i64 %202
  %204 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %203) #3
  %205 = load i32, ptr %204, align 4, !tbaa !5
  store i32 %205, ptr %4, align 4, !tbaa !5
  br label %206

206:                                              ; preds = %.preheader, %183
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %.not128 = icmp eq i64 %indvars.iv, 0
  br i1 %.not128, label %161, label %.preheader, !llvm.loop !11

207:                                              ; preds = %157, %161
  %.015.in = phi ptr [ %172, %161 ], [ %5, %157 ]
  %.015 = load i64, ptr %.015.in, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret i64 %.015
}

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

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


; Effective O3 passes: BDCEPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass