; LLVM IR from chrxh/alien :: source/EngineImpl/AccessDataTOCache.ll (ZN18_AccessDataTOCache9getDataTOERK10ArraySizes)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.DataTO = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ArraySizes = type { i64, i64, i64 }
%class._AccessDataTOCache = type { %"class.std::optional" }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload_base.base", [7 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<DataTO>::_Storage", i8 }>
%"union.std::_Optional_payload_base<DataTO>::_Storage" = type { %struct.DataTO }

@_ZTISt9bad_alloc = external constant ptr
@.str = external hidden unnamed_addr constant [46 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6DataTO7destroyEv(ptr noundef nonnull align 8 dereferenceable(48)) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #1

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN18_AccessDataTOCache9getDataTOERK10ArraySizes(ptr dead_on_unwind noalias writable sret(%struct.DataTO) align 8 %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.ArraySizes, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.ArraySizes, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store ptr %2, ptr %5, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8
  %13 = getelementptr inbounds %class._AccessDataTOCache, ptr %12, i32 0, i32 0
  %14 = call noundef zeroext i1 @_ZNKSt8optionalI6DataTOEcvbEv(ptr noundef nonnull align 8 dereferenceable(56) %13) #9
  br i1 %14, label %15, label %42

15:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #9
  %16 = getelementptr inbounds %class._AccessDataTOCache, ptr %12, i32 0, i32 0
  %17 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNRSt8optionalI6DataTOEdeEv(ptr noundef nonnull align 8 dereferenceable(56) %16) #9
  call void @_ZNK18_AccessDataTOCache13getArraySizesERK6DataTO(ptr dead_on_unwind writable sret(%struct.ArraySizes) align 8 %6, ptr noundef nonnull align 8 dereferenceable(56) %12, ptr noundef nonnull align 8 dereferenceable(48) %17)
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = call noundef zeroext i1 @_ZNK18_AccessDataTOCache4fitsERK10ArraySizesS2_(ptr noundef nonnull align 8 dereferenceable(56) %12, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %18)
  br i1 %19, label %20, label %35

20:                                               ; preds = %15
  %21 = getelementptr inbounds %class._AccessDataTOCache, ptr %12, i32 0, i32 0
  %22 = call noundef ptr @_ZNSt8optionalI6DataTOEptEv(ptr noundef nonnull align 8 dereferenceable(56) %21) #9
  %23 = getelementptr inbounds %struct.DataTO, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  store i64 0, ptr %24, align 8, !tbaa !11
  %25 = getelementptr inbounds %class._AccessDataTOCache, ptr %12, i32 0, i32 0
  %26 = call noundef ptr @_ZNSt8optionalI6DataTOEptEv(ptr noundef nonnull align 8 dereferenceable(56) %25) #9
  %27 = getelementptr inbounds %struct.DataTO, ptr %26, i32 0, i32 2
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  %29 = getelementptr inbounds %class._AccessDataTOCache, ptr %12, i32 0, i32 0
  %30 = call noundef ptr @_ZNSt8optionalI6DataTOEptEv(ptr noundef nonnull align 8 dereferenceable(56) %29) #9
  %31 = getelementptr inbounds %struct.DataTO, ptr %30, i32 0, i32 4
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  store i64 0, ptr %32, align 8, !tbaa !11
  %33 = getelementptr inbounds %class._AccessDataTOCache, ptr %12, i32 0, i32 0
  %34 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNRSt8optionalI6DataTOEdeEv(ptr noundef nonnull align 8 dereferenceable(56) %33) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %34, i64 48, i1 false), !tbaa.struct !15
  store i32 1, ptr %7, align 4
  br label %39

35:                                               ; preds = %15
  %36 = getelementptr inbounds %class._AccessDataTOCache, ptr %12, i32 0, i32 0
  %37 = call noundef ptr @_ZNSt8optionalI6DataTOEptEv(ptr noundef nonnull align 8 dereferenceable(56) %36) #9
  call void @_ZN6DataTO7destroyEv(ptr noundef nonnull align 8 dereferenceable(48) %37)
  br label %38

38:                                               ; preds = %35
  store i32 0, ptr %7, align 4
  br label %39

39:                                               ; preds = %38, %20
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #9
  %40 = load i32, ptr %7, align 4
  switch i32 %40, label %80 [
    i32 0, label %41
    i32 1, label %71
  ]

41:                                               ; preds = %39
  br label %42

42:                                               ; preds = %41, %3
  call void @_ZN6DataTOC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #9
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %43, i64 24, i1 false), !tbaa.struct !16
  invoke void @_ZN6DataTO4initE10ArraySizes(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef byval(%struct.ArraySizes) align 8 %8)
          to label %44 unwind label %47

44:                                               ; preds = %42
  %45 = getelementptr inbounds %class._AccessDataTOCache, ptr %12, i32 0, i32 0
  %46 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt8optionalI6DataTOEaSIRS0_EENSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS1_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_ISt6__and_IJSt9is_scalarIS0_ES6_IS0_NSt5decayIS9_E4typeEEEEESt16is_constructibleIS0_JS9_EESt13is_assignableIS3_S9_EEERS1_E4typeEOS9_(ptr noundef nonnull align 8 dereferenceable(56) %45, ptr noundef nonnull align 8 dereferenceable(48) %0) #9
  br label %71

47:                                               ; preds = %42
  %48 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9bad_alloc
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %9, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %10, align 4
  br label %51

51:                                               ; preds = %47
  %52 = load i32, ptr %10, align 4
  %53 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9bad_alloc) #9
  %54 = icmp eq i32 %52, %53
  br i1 %54, label %55, label %72

55:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %56 = load ptr, ptr %9, align 8
  %57 = call ptr @__cxa_begin_catch(ptr %56) #9
  store ptr %57, ptr %11, align 8
  %58 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef @.str)
          to label %59 unwind label %60

59:                                               ; preds = %55
  invoke void @__cxa_throw(ptr %58, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
          to label %80 unwind label %64

60:                                               ; preds = %55
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %9, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %10, align 4
  call void @__cxa_free_exception(ptr %58) #9
  br label %68

64:                                               ; preds = %59
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %9, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %10, align 4
  br label %68

68:                                               ; preds = %64, %60
  invoke void @__cxa_end_catch()
          to label %69 unwind label %77

69:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %72

70:                                               ; No predecessors!
  unreachable

71:                                               ; preds = %44, %39
  ret void

72:                                               ; preds = %69, %51
  %73 = load ptr, ptr %9, align 8
  %74 = load i32, ptr %10, align 4
  %75 = insertvalue { ptr, i32 } poison, ptr %73, 0
  %76 = insertvalue { ptr, i32 } %75, i32 %74, 1
  resume { ptr, i32 } %76

77:                                               ; preds = %68
  %78 = landingpad { ptr, i32 }
          catch ptr null
  %79 = extractvalue { ptr, i32 } %78, 0
  call void @__clang_call_terminate(ptr %79) #11
  unreachable

80:                                               ; preds = %59, %39
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK18_AccessDataTOCache13getArraySizesERK6DataTO(ptr dead_on_unwind noalias writable sret(%struct.ArraySizes) align 8, ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(48)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNRSt8optionalI6DataTOEdeEv(ptr noundef nonnull align 8 dereferenceable(56)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK18_AccessDataTOCache4fitsERK10ArraySizesS2_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6DataTOC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6DataTO4initE10ArraySizes(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef byval(%struct.ArraySizes) align 8) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt8optionalI6DataTOEaSIRS0_EENSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS1_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_ISt6__and_IJSt9is_scalarIS0_ES6_IS0_NSt5decayIS9_E4typeEEEEESt16is_constructibleIS0_JS9_EESt13is_assignableIS3_S9_EEERS1_E4typeEOS9_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(48)) #0 align 2

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #6

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #7

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #8

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_end_catch()

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noinline noreturn nounwind uwtable "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nounwind memory(none) }
attributes #7 = { "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 #8 = { nounwind "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 #9 = { nounwind }
attributes #10 = { noreturn }
attributes #11 = { noreturn 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, !6, i64 0}
!10 = !{!"_ZTS6DataTO", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !6, i64 32}
!15 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5, i64 40, i64 8, !5}
!16 = !{i64 0, i64 8, !11, i64 8, i64 8, !11, i64 16, i64 8, !11}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.DataTO = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ArraySizes = type { i64, i64, i64 }

@_ZTISt9bad_alloc = external constant ptr
@.str = external hidden unnamed_addr constant [46 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6DataTO7destroyEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #1

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN18_AccessDataTOCache9getDataTOERK10ArraySizes(ptr dead_on_unwind noalias writable sret(%struct.DataTO) align 8 %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.ArraySizes, align 8
  %5 = tail call noundef zeroext i1 @_ZNKSt8optionalI6DataTOEcvbEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #9
  br i1 %5, label %6, label %19

6:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  %7 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNRSt8optionalI6DataTOEdeEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #9
  call void @_ZNK18_AccessDataTOCache13getArraySizesERK6DataTO(ptr dead_on_unwind nonnull writable sret(%struct.ArraySizes) align 8 %4, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(48) %7)
  %8 = call noundef zeroext i1 @_ZNK18_AccessDataTOCache4fitsERK10ArraySizesS2_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %2)
  %9 = call noundef ptr @_ZNSt8optionalI6DataTOEptEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #9
  br i1 %8, label %10, label %.thread

.thread:                                          ; preds = %6
  call void @_ZN6DataTO7destroyEv(ptr noundef nonnull align 8 dereferenceable(48) %9)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  br label %19

10:                                               ; preds = %6
  %11 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 0, ptr %11, align 8, !tbaa !10
  %12 = call noundef ptr @_ZNSt8optionalI6DataTOEptEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #9
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !12
  store i64 0, ptr %14, align 8, !tbaa !10
  %15 = call noundef ptr @_ZNSt8optionalI6DataTOEptEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #9
  %16 = getelementptr inbounds i8, ptr %15, i64 32
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  store i64 0, ptr %17, align 8, !tbaa !10
  %18 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNRSt8optionalI6DataTOEdeEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %18, i64 48, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  br label %37

19:                                               ; preds = %.thread, %3
  call void @_ZN6DataTOC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #9
  invoke void @_ZN6DataTO4initE10ArraySizes(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull byval(%struct.ArraySizes) align 8 %2)
          to label %20 unwind label %22

20:                                               ; preds = %19
  %21 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt8optionalI6DataTOEaSIRS0_EENSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS1_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_ISt6__and_IJSt9is_scalarIS0_ES6_IS0_NSt5decayIS9_E4typeEEEEESt16is_constructibleIS0_JS9_EESt13is_assignableIS3_S9_EEERS1_E4typeEOS9_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(48) %0) #9
  br label %37

22:                                               ; preds = %19
  %23 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9bad_alloc
  %24 = extractvalue { ptr, i32 } %23, 1
  %25 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9bad_alloc) #9
  %26 = icmp eq i32 %24, %25
  br i1 %26, label %27, label %38

27:                                               ; preds = %22
  %28 = extractvalue { ptr, i32 } %23, 0
  %29 = call ptr @__cxa_begin_catch(ptr %28) #9
  %30 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull @.str)
          to label %31 unwind label %32

31:                                               ; preds = %27
  invoke void @__cxa_throw(ptr nonnull %30, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #10
          to label %42 unwind label %34

32:                                               ; preds = %27
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %30) #9
  br label %36

34:                                               ; preds = %31
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %36

36:                                               ; preds = %34, %32
  %.pn = phi { ptr, i32 } [ %35, %34 ], [ %33, %32 ]
  invoke void @__cxa_end_catch()
          to label %38 unwind label %39

37:                                               ; preds = %10, %20
  ret void

38:                                               ; preds = %36, %22
  %.merged = phi { ptr, i32 } [ %23, %22 ], [ %.pn, %36 ]
  resume { ptr, i32 } %.merged

39:                                               ; preds = %36
  %40 = landingpad { ptr, i32 }
          catch ptr null
  %41 = extractvalue { ptr, i32 } %40, 0
  call void @__clang_call_terminate(ptr %41) #11
  unreachable

42:                                               ; preds = %31
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK18_AccessDataTOCache13getArraySizesERK6DataTO(ptr dead_on_unwind noalias writable sret(%struct.ArraySizes) align 8, ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNRSt8optionalI6DataTOEdeEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK18_AccessDataTOCache4fitsERK10ArraySizesS2_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6DataTOC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6DataTO4initE10ArraySizes(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef byval(%struct.ArraySizes) align 8) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt8optionalI6DataTOEaSIRS0_EENSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS1_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_ISt6__and_IJSt9is_scalarIS0_ES6_IS0_NSt5decayIS9_E4typeEEEEESt16is_constructibleIS0_JS9_EESt13is_assignableIS3_S9_EEERS1_E4typeEOS9_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #6

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #7

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #8

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noinline noreturn nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nofree nosync nounwind memory(none) }
attributes #7 = { "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 #8 = { nounwind "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 #9 = { nounwind }
attributes #10 = { noreturn }
attributes #11 = { noreturn 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, !7, i64 0}
!6 = !{!"_ZTS6DataTO", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !7, i64 32}
!14 = !{i64 0, i64 8, !15, i64 8, i64 8, !15, i64 16, i64 8, !15, i64 24, i64 8, !15, i64 32, i64 8, !15, i64 40, i64 8, !15}
!15 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass