; LLVM IR from Try/Tempest :: Engine/thirdparty/openal-soft/core/context.ll (ZN11ContextBase13getEffectSlotEv)

; 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.__gnu_cxx::__normal_iterator.245" = type { ptr }
%"class.al::span.254" = type { ptr }
%"class.al::ptr_wrapper.256" = type { ptr }
%"struct.std::_Mem_fn" = type { %"class.std::_Mem_fn_base" }
%"class.std::_Mem_fn_base" = type { i64 }
%"class.std::unique_ptr.246" = type { %"struct.std::__uniq_ptr_data.247" }
%"struct.std::__uniq_ptr_data.247" = type { %"class.std::__uniq_ptr_impl.248" }
%"class.std::__uniq_ptr_impl.248" = type { %"class.std::tuple.249" }
%"class.std::tuple.249" = type { %"struct.std::_Tuple_impl.250" }
%"struct.std::_Tuple_impl.250" = type { %"struct.std::_Head_base.253" }
%"struct.std::_Head_base.253" = type { ptr }
%struct.ContextBase = type { ptr, %"struct.std::atomic", %"struct.std::atomic.0", %"struct.std::atomic.0", float, %"struct.std::atomic.2", %"struct.std::atomic.4", %"struct.std::atomic.6", ptr, %"struct.std::atomic.8", %struct.ContextParams, %"class.al::atomic_unique_ptr", %"struct.std::atomic.13", %"class.al::atomic_unique_ptr.15", %"class.std::thread", %"class.al::semaphore", %"class.std::unique_ptr", %"struct.std::atomic.20", %"class.std::vector", %"class.std::vector.21", %"class.std::vector.26", %"class.std::vector.31", %"class.std::vector.36", %"class.std::vector.41" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"struct.std::atomic.0" = type { %"struct.std::__atomic_base.1" }
%"struct.std::__atomic_base.1" = type { i8 }
%"struct.std::atomic.2" = type { %"struct.std::__atomic_base.3" }
%"struct.std::__atomic_base.3" = type { ptr }
%"struct.std::atomic.4" = type { %"struct.std::__atomic_base.5" }
%"struct.std::__atomic_base.5" = type { ptr }
%"struct.std::atomic.6" = type { %"struct.std::__atomic_base.7" }
%"struct.std::__atomic_base.7" = type { ptr }
%"struct.std::atomic.8" = type { %"struct.std::__atomic_base.9" }
%"struct.std::__atomic_base.9" = type { ptr }
%struct.ContextParams = type <{ %"struct.std::atomic.2", [8 x i8], %"class.alu::Vector", %"class.alu::Matrix", %"class.alu::Vector", float, float, float, float, float, i8, i8, [10 x i8] }>
%"class.alu::Matrix" = type { %"struct.std::array.10" }
%"struct.std::array.10" = type { [16 x float] }
%"class.alu::Vector" = type { %"struct.std::array" }
%"struct.std::array" = type { [4 x float] }
%"class.al::atomic_unique_ptr" = type { %"struct.std::atomic.11" }
%"struct.std::atomic.11" = type { %"struct.std::__atomic_base.12" }
%"struct.std::__atomic_base.12" = type { ptr }
%"struct.std::atomic.13" = type { %"struct.std::__atomic_base.14" }
%"struct.std::__atomic_base.14" = type { i64 }
%"class.al::atomic_unique_ptr.15" = type { %"struct.std::atomic.16" }
%"struct.std::atomic.16" = type { %"struct.std::__atomic_base.17" }
%"struct.std::__atomic_base.17" = type { ptr }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%"class.al::semaphore" = type { %union.sem_t }
%union.sem_t = type { i64, [24 x i8] }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.19" }
%"struct.std::_Head_base.19" = type { ptr }
%"struct.std::atomic.20" = type { %"class.std::bitset" }
%"class.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<VoiceChange, 128>>, std::allocator<std::unique_ptr<std::array<VoiceChange, 128>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<VoiceChange, 128>>, std::allocator<std::unique_ptr<std::array<VoiceChange, 128>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<VoiceChange, 128>>, std::allocator<std::unique_ptr<std::array<VoiceChange, 128>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<VoiceChange, 128>>, std::allocator<std::unique_ptr<std::array<VoiceChange, 128>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<Voice, 32>>, std::allocator<std::unique_ptr<std::array<Voice, 32>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<Voice, 32>>, std::allocator<std::unique_ptr<std::array<Voice, 32>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<Voice, 32>>, std::allocator<std::unique_ptr<std::array<Voice, 32>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<Voice, 32>>, std::allocator<std::unique_ptr<std::array<Voice, 32>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<VoicePropsItem, 32>>, std::allocator<std::unique_ptr<std::array<VoicePropsItem, 32>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<VoicePropsItem, 32>>, std::allocator<std::unique_ptr<std::array<VoicePropsItem, 32>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<VoicePropsItem, 32>>, std::allocator<std::unique_ptr<std::array<VoicePropsItem, 32>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<VoicePropsItem, 32>>, std::allocator<std::unique_ptr<std::array<VoicePropsItem, 32>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlot, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlot, 4>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlot, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlot, 4>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlot, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlot, 4>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlot, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlot, 4>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlotProps, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlotProps, 4>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlotProps, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlotProps, 4>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlotProps, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlotProps, 4>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlotProps, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlotProps, 4>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.41" = type { %"struct.std::_Vector_base.42" }
%"struct.std::_Vector_base.42" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<ContextProps, 2>>, std::allocator<std::unique_ptr<std::array<ContextProps, 2>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<ContextProps, 2>>, std::allocator<std::unique_ptr<std::array<ContextProps, 2>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<ContextProps, 2>>, std::allocator<std::unique_ptr<std::array<ContextProps, 2>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<ContextProps, 2>>, std::allocator<std::unique_ptr<std::array<ContextProps, 2>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTISt13runtime_error = external constant ptr
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [42 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_Z8al_print8LogLevelPKcz(i32 noundef, ptr noundef, ...) #1

; 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 i32 @_ZNSt14numeric_limitsIiE3maxEv() #2 align 2

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN11ContextBase13getEffectSlotEv(ptr noundef nonnull align 16 dereferenceable(432) %0) #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.245", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.245", align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"class.al::span.254", align 8
  %10 = alloca %"class.al::ptr_wrapper.256", align 8
  %11 = alloca %"class.al::ptr_wrapper.256", align 8
  %12 = alloca %"class.al::ptr_wrapper.256", align 8
  %13 = alloca %"struct.std::_Mem_fn", align 8
  %14 = alloca %"class.al::ptr_wrapper.256", align 8
  %15 = alloca %"class.std::unique_ptr.246", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %20 = getelementptr inbounds %struct.ContextBase, ptr %19, i32 0, i32 21
  store ptr %20, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = call ptr @_ZNSt6vectorISt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS3_EESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  %23 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.245", ptr %5, i32 0, i32 0
  store ptr %22, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = call ptr @_ZNSt6vectorISt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS3_EESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  %26 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.245", ptr %6, i32 0, i32 0
  store ptr %25, ptr %26, align 8
  br label %27

27:                                               ; preds = %62, %1
  %28 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br i1 %28, label %30, label %29

29:                                               ; preds = %27
  store i32 2, ptr %7, align 4
  br label %64

30:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  store ptr %31, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(1408) ptr @_ZNKSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS2_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  call void @_ZN2al4spanI10EffectSlotLm4EEC2ILm4EEERSt5arrayIS1_XT_EE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(1408) %33) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %34 = call ptr @_ZNK2al4spanI10EffectSlotLm4EE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %35 = getelementptr inbounds %"class.al::ptr_wrapper.256", ptr %11, i32 0, i32 0
  store ptr %34, ptr %35, align 8
  %36 = call ptr @_ZNK2al4spanI10EffectSlotLm4EE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %37 = getelementptr inbounds %"class.al::ptr_wrapper.256", ptr %12, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  %38 = call i64 @_ZSt6mem_fnIb10EffectSlotESt7_Mem_fnIMT0_T_ES4_(i64 0) #8
  %39 = getelementptr inbounds %"struct.std::_Mem_fn", ptr %13, i32 0, i32 0
  %40 = getelementptr inbounds %"class.std::_Mem_fn_base", ptr %39, i32 0, i32 0
  store i64 %38, ptr %40, align 8
  %41 = getelementptr inbounds %"class.al::ptr_wrapper.256", ptr %11, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8
  %43 = getelementptr inbounds %"class.al::ptr_wrapper.256", ptr %12, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8
  %45 = getelementptr inbounds %"struct.std::_Mem_fn", ptr %13, i32 0, i32 0
  %46 = getelementptr inbounds %"class.std::_Mem_fn_base", ptr %45, i32 0, i32 0
  %47 = load i64, ptr %46, align 8
  %48 = call ptr @_ZSt11find_if_notIN2al11ptr_wrapperIP10EffectSlotEESt7_Mem_fnIMS2_bEET_S8_S8_T0_(ptr %42, ptr %44, i64 %47)
  %49 = getelementptr inbounds %"class.al::ptr_wrapper.256", ptr %10, i32 0, i32 0
  store ptr %48, ptr %49, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %50 = call ptr @_ZNK2al4spanI10EffectSlotLm4EE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %51 = getelementptr inbounds %"class.al::ptr_wrapper.256", ptr %14, i32 0, i32 0
  store ptr %50, ptr %51, align 8
  %52 = call noundef zeroext i1 @_ZN2alneERKNS_11ptr_wrapperIP10EffectSlotEES5_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br i1 %52, label %53, label %55

53:                                               ; preds = %30
  %54 = call noundef ptr @_ZN2al10to_addressINS_11ptr_wrapperIP10EffectSlotEEEEDaRKT_(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  store ptr %54, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %56

55:                                               ; preds = %30
  store i32 0, ptr %7, align 4
  br label %56

56:                                               ; preds = %55, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  %57 = load i32, ptr %7, align 4
  switch i32 %57, label %59 [
    i32 0, label %58
  ]

58:                                               ; preds = %56
  store i32 0, ptr %7, align 4
  br label %59

59:                                               ; preds = %58, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  %60 = load i32, ptr %7, align 4
  switch i32 %60, label %64 [
    i32 0, label %61
  ]

61:                                               ; preds = %59
  br label %62

62:                                               ; preds = %61
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br label %27

64:                                               ; preds = %59, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  %65 = load i32, ptr %7, align 4
  switch i32 %65, label %114 [
    i32 2, label %66
    i32 1, label %107
  ]

66:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  call void @_ZSt11make_uniqueISt5arrayI10EffectSlotLm4EEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.246") align 8 %15)
  %67 = call noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #8
  %68 = sext i32 %67 to i64
  %69 = call noundef ptr @_ZNKSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %70 = call noundef i64 @_ZNKSt5arrayI10EffectSlotLm4EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(1408) %69) #9
  %71 = udiv i64 %68, %70
  %72 = getelementptr inbounds %struct.ContextBase, ptr %19, i32 0, i32 21
  %73 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS3_EESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %72) #8
  %74 = sub i64 %71, %73
  %75 = icmp uge i64 1, %74
  br i1 %75, label %76, label %87

76:                                               ; preds = %66
  %77 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %77, ptr noundef @.str.9)
          to label %78 unwind label %79

78:                                               ; preds = %76
  invoke void @__cxa_throw(ptr %77, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
          to label %114 unwind label %83

79:                                               ; preds = %76
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %16, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %17, align 4
  call void @__cxa_free_exception(ptr %77) #8
  br label %106

83:                                               ; preds = %78
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %16, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %17, align 4
  br label %106

87:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %88 = getelementptr inbounds %struct.ContextBase, ptr %19, i32 0, i32 21
  %89 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS3_EESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %88) #8
  %90 = add i64 %89, 1
  %91 = call noundef ptr @_ZNKSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %92 = call noundef i64 @_ZNKSt5arrayI10EffectSlotLm4EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(1408) %91) #9
  %93 = mul i64 %90, %92
  store i64 %93, ptr %18, align 8, !tbaa !9
  %94 = load i64, ptr %18, align 8, !tbaa !9
  call void (i32, ptr, ...) @_Z8al_print8LogLevelPKcz(i32 noundef 3, ptr noundef @.str.10, i64 noundef %94) #8
  %95 = getelementptr inbounds %struct.ContextBase, ptr %19, i32 0, i32 21
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS3_EESaIS6_EE12emplace_backIJS6_EEERS6_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %95, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %97 unwind label %102

97:                                               ; preds = %87
  %98 = getelementptr inbounds %struct.ContextBase, ptr %19, i32 0, i32 21
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS3_EESaIS6_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #8
  %100 = call noundef ptr @_ZNKSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %99) #8
  %101 = call noundef ptr @_ZNSt5arrayI10EffectSlotLm4EE4dataEv(ptr noundef nonnull align 8 dereferenceable(1408) %100) #9
  store ptr %101, ptr %2, align 8
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @_ZNSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %107

102:                                              ; preds = %87
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %16, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %106

106:                                              ; preds = %102, %83, %79
  call void @_ZNSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %109

107:                                              ; preds = %97, %64
  %108 = load ptr, ptr %2, align 8
  ret ptr %108

109:                                              ; preds = %106
  %110 = load ptr, ptr %16, align 8
  %111 = load i32, ptr %17, align 4
  %112 = insertvalue { ptr, i32 } poison, ptr %110, 0
  %113 = insertvalue { ptr, i32 } %112, i32 %111, 1
  resume { ptr, i32 } %113

114:                                              ; preds = %78, %64
  unreachable
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2al4spanI10EffectSlotLm4EEC2ILm4EEERSt5arrayIS1_XT_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(1408)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11find_if_notIN2al11ptr_wrapperIP10EffectSlotEESt7_Mem_fnIMS2_bEET_S8_S8_T0_(ptr, ptr, i64) #6

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i64 @_ZSt6mem_fnIb10EffectSlotESt7_Mem_fnIMT0_T_ES4_(i64) #5

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueISt5arrayI10EffectSlotLm4EEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.246") align 8) #6

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

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef i64 @_ZNKSt5arrayI10EffectSlotLm4EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(1408)) #7 align 2

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

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

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

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayI10EffectSlotLm4EE4dataEv(ptr noundef nonnull align 8 dereferenceable(1408)) #7 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nounwind willreturn memory(none) 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { noreturn }

!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 = !{!"long", !7, i64 0}


; 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.__gnu_cxx::__normal_iterator.245" = type { ptr }
%"class.al::span.254" = type { ptr }
%"class.al::ptr_wrapper.256" = type { ptr }
%"class.std::unique_ptr.246" = type { %"struct.std::__uniq_ptr_data.247" }
%"struct.std::__uniq_ptr_data.247" = type { %"class.std::__uniq_ptr_impl.248" }
%"class.std::__uniq_ptr_impl.248" = type { %"class.std::tuple.249" }
%"class.std::tuple.249" = type { %"struct.std::_Tuple_impl.250" }
%"struct.std::_Tuple_impl.250" = type { %"struct.std::_Head_base.253" }
%"struct.std::_Head_base.253" = type { ptr }

@_ZTISt13runtime_error = external constant ptr
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [42 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_Z8al_print8LogLevelPKcz(i32 noundef, ptr noundef, ...) local_unnamed_addr #1

; 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 i32 @_ZNSt14numeric_limitsIiE3maxEv() local_unnamed_addr #2 align 2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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 #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN11ContextBase13getEffectSlotEv(ptr noundef nonnull align 16 dereferenceable(432) %0) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator.245", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.245", align 8
  %4 = alloca %"class.al::span.254", align 8
  %5 = alloca %"class.al::ptr_wrapper.256", align 8
  %6 = alloca %"class.al::ptr_wrapper.256", align 8
  %7 = alloca %"class.std::unique_ptr.246", align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 360
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %9 = tail call ptr @_ZNSt6vectorISt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS3_EESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  store ptr %9, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %10 = tail call ptr @_ZNSt6vectorISt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS3_EESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  store ptr %10, ptr %3, align 8
  %11 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1, %20
  %12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %13 = call noundef nonnull align 8 dereferenceable(1408) ptr @_ZNKSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS2_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @_ZN2al4spanI10EffectSlotLm4EEC2ILm4EEERSt5arrayIS1_XT_EE(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(1408) %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %14 = call ptr @_ZNK2al4spanI10EffectSlotLm4EE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %15 = call ptr @_ZNK2al4spanI10EffectSlotLm4EE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %16 = call i64 @_ZSt6mem_fnIb10EffectSlotESt7_Mem_fnIMT0_T_ES4_(i64 0) #8
  %17 = call ptr @_ZSt11find_if_notIN2al11ptr_wrapperIP10EffectSlotEESt7_Mem_fnIMS2_bEET_S8_S8_T0_(ptr %14, ptr %15, i64 %16)
  store ptr %17, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %18 = call ptr @_ZNK2al4spanI10EffectSlotLm4EE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  store ptr %18, ptr %6, align 8
  %19 = call noundef zeroext i1 @_ZN2alneERKNS_11ptr_wrapperIP10EffectSlotEES5_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br i1 %19, label %23, label %20

20:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %22 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  br i1 %22, label %.lr.ph, label %._crit_edge

23:                                               ; preds = %.lr.ph
  %24 = call noundef ptr @_ZN2al10to_addressINS_11ptr_wrapperIP10EffectSlotEEEEDaRKT_(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  br label %54

._crit_edge:                                      ; preds = %20, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  call void @_ZSt11make_uniqueISt5arrayI10EffectSlotLm4EEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.246") align 8 %7)
  %25 = call noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #8
  %26 = sext i32 %25 to i64
  %27 = call noundef ptr @_ZNKSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  %28 = call noundef i64 @_ZNKSt5arrayI10EffectSlotLm4EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(1408) %27) #9
  %29 = udiv i64 %26, %28
  %30 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS3_EESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %31 = sub i64 %29, %30
  %32 = icmp ult i64 %31, 2
  br i1 %32, label %33, label %40

33:                                               ; preds = %._crit_edge
  %34 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull @.str.9)
          to label %35 unwind label %36

35:                                               ; preds = %33
  invoke void @__cxa_throw(ptr nonnull %34, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #10
          to label %55 unwind label %38

36:                                               ; preds = %33
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %34) #8
  br label %53

38:                                               ; preds = %35
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %53

40:                                               ; preds = %._crit_edge
  %41 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS3_EESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %42 = add i64 %41, 1
  %43 = call noundef ptr @_ZNKSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  %44 = call noundef i64 @_ZNKSt5arrayI10EffectSlotLm4EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(1408) %43) #9
  %45 = mul i64 %44, %42
  call void (i32, ptr, ...) @_Z8al_print8LogLevelPKcz(i32 noundef 3, ptr noundef nonnull @.str.10, i64 noundef %45) #8
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS3_EESaIS6_EE12emplace_backIJS6_EEERS6_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %47 unwind label %51

47:                                               ; preds = %40
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS3_EESaIS6_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %49 = call noundef ptr @_ZNKSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #8
  %50 = call noundef ptr @_ZNSt5arrayI10EffectSlotLm4EE4dataEv(ptr noundef nonnull align 8 dereferenceable(1408) %49) #9
  call void @_ZNSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %54

51:                                               ; preds = %40
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %53

53:                                               ; preds = %51, %38, %36
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %37, %36 ], [ %52, %51 ]
  call void @_ZNSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  resume { ptr, i32 } %.pn

54:                                               ; preds = %23, %47
  %.3 = phi ptr [ %24, %23 ], [ %50, %47 ]
  ret ptr %.3

55:                                               ; preds = %35
  unreachable
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10unique_ptrISt5arrayI10EffectSlotLm4EESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2al4spanI10EffectSlotLm4EEC2ILm4EEERSt5arrayIS1_XT_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(1408)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11find_if_notIN2al11ptr_wrapperIP10EffectSlotEESt7_Mem_fnIMS2_bEET_S8_S8_T0_(ptr, ptr, i64) local_unnamed_addr #6

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i64 @_ZSt6mem_fnIb10EffectSlotESt7_Mem_fnIMT0_T_ES4_(i64) local_unnamed_addr #5

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueISt5arrayI10EffectSlotLm4EEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.246") align 8) local_unnamed_addr #6

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef i64 @_ZNKSt5arrayI10EffectSlotLm4EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(1408)) local_unnamed_addr #7 align 2

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

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

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayI10EffectSlotLm4EE4dataEv(ptr noundef nonnull align 8 dereferenceable(1408)) local_unnamed_addr #7 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nofree nosync nounwind willreturn memory(none) 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { noreturn }

!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)"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass