; LLVM IR from khushmmehta/Scorch-V :: src/ScorchVkEngine/Abstractions (PresentationManager)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.50" = type { %"struct.std::_Vector_base.51" }
%"struct.std::_Vector_base.51" = type { %"struct.std::_Vector_base<VkDeviceQueueCreateInfo, std::allocator<VkDeviceQueueCreateInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<VkDeviceQueueCreateInfo, std::allocator<VkDeviceQueueCreateInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<VkDeviceQueueCreateInfo, std::allocator<VkDeviceQueueCreateInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<VkDeviceQueueCreateInfo, std::allocator<VkDeviceQueueCreateInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set.55" = type { %"class.std::_Rb_tree.56" }
%"class.std::_Rb_tree.56" = type { %"struct.std::_Rb_tree<unsigned int, unsigned int, std::_Identity<unsigned int>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, unsigned int, std::_Identity<unsigned int>, std::less<unsigned int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::initializer_list.61" = type { ptr, i64 }
%"struct.std::less" = type { i8 }
%"class.std::allocator.62" = type { i8 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%struct.VkDeviceQueueCreateInfo = type { i32, ptr, i32, i32, i32, ptr }
%struct.VkPhysicalDeviceFeatures = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.VkDeviceCreateInfo = type { i32, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr }
%class.PresentationManager = type { ptr, ptr, ptr, ptr, %struct.QueueFamilyIndices, ptr, i32, %struct.VkExtent2D, %"class.std::vector.0", i8, %"class.std::vector.5", %"class.std::vector.10", %struct.SwapChainSupportDetails }
%struct.QueueFamilyIndices = type { %"class.std::optional", %"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", [3 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<unsigned int>::_Storage", i8 }>
%"union.std::_Optional_payload_base<unsigned int>::_Storage" = type { i32 }
%struct.VkExtent2D = type { i32, i32 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<VkFramebuffer_T *, std::allocator<VkFramebuffer_T *>>::_Vector_impl" }
%"struct.std::_Vector_base<VkFramebuffer_T *, std::allocator<VkFramebuffer_T *>>::_Vector_impl" = type { %"struct.std::_Vector_base<VkFramebuffer_T *, std::allocator<VkFramebuffer_T *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<VkFramebuffer_T *, std::allocator<VkFramebuffer_T *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<VkImage_T *, std::allocator<VkImage_T *>>::_Vector_impl" }
%"struct.std::_Vector_base<VkImage_T *, std::allocator<VkImage_T *>>::_Vector_impl" = type { %"struct.std::_Vector_base<VkImage_T *, std::allocator<VkImage_T *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<VkImage_T *, std::allocator<VkImage_T *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<VkImageView_T *, std::allocator<VkImageView_T *>>::_Vector_impl" }
%"struct.std::_Vector_base<VkImageView_T *, std::allocator<VkImageView_T *>>::_Vector_impl" = type { %"struct.std::_Vector_base<VkImageView_T *, std::allocator<VkImageView_T *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<VkImageView_T *, std::allocator<VkImageView_T *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.SwapChainSupportDetails = type { %struct.VkSurfaceCapabilitiesKHR, %"class.std::vector.15", %"class.std::vector.20" }
%struct.VkSurfaceCapabilitiesKHR = type { i32, i32, %struct.VkExtent2D, %struct.VkExtent2D, %struct.VkExtent2D, i32, i32, i32, i32, i32 }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<VkSurfaceFormatKHR, std::allocator<VkSurfaceFormatKHR>>::_Vector_impl" }
%"struct.std::_Vector_base<VkSurfaceFormatKHR, std::allocator<VkSurfaceFormatKHR>>::_Vector_impl" = type { %"struct.std::_Vector_base<VkSurfaceFormatKHR, std::allocator<VkSurfaceFormatKHR>>::_Vector_impl_data" }
%"struct.std::_Vector_base<VkSurfaceFormatKHR, std::allocator<VkSurfaceFormatKHR>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<VkPresentModeKHR, std::allocator<VkPresentModeKHR>>::_Vector_impl" }
%"struct.std::_Vector_base<VkPresentModeKHR, std::allocator<VkPresentModeKHR>>::_Vector_impl" = type { %"struct.std::_Vector_base<VkPresentModeKHR, std::allocator<VkPresentModeKHR>>::_Vector_impl_data" }
%"struct.std::_Vector_base<VkPresentModeKHR, std::allocator<VkPresentModeKHR>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.ValidationLayers = type { %"class.std::vector", i8, ptr, %struct.VkDebugUtilsMessengerCreateInfoEXT, %"class.std::vector" }
%struct.VkDebugUtilsMessengerCreateInfoEXT = type { i32, ptr, i32, i32, i32, ptr, ptr }

@_ZL16deviceExtensions = external hidden global %"class.std::vector", align 8
@_ZTISt13runtime_error = external constant ptr
@.str.5 = external hidden unnamed_addr constant [33 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19PresentationManager19createLogicalDeviceE16ValidationLayersRP9VkQueue_TS3_(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::vector.50", align 8
  %10 = alloca %"class.std::set.55", align 8
  %11 = alloca %"class.std::initializer_list.61", align 8
  %12 = alloca [2 x i32], align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::less", align 1
  %16 = alloca %"class.std::allocator.62", align 1
  %17 = alloca float, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %21 = alloca i32, align 4
  %22 = alloca %struct.VkDeviceQueueCreateInfo, align 8
  %23 = alloca %struct.VkPhysicalDeviceFeatures, align 4
  %24 = alloca %struct.VkDeviceCreateInfo, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  call void @_ZNSt6vectorI23VkDeviceQueueCreateInfoSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %26 = getelementptr inbounds %class.PresentationManager, ptr %25, i32 0, i32 4
  %27 = getelementptr inbounds %struct.QueueFamilyIndices, ptr %26, i32 0, i32 0
  %28 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNRSt8optionalIjE5valueEv(ptr noundef nonnull align 4 dereferenceable(8) %27)
          to label %29 unwind label %53

29:                                               ; preds = %4
  %30 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %30, ptr %12, align 4, !tbaa !9
  %31 = getelementptr inbounds i32, ptr %12, i64 1
  %32 = getelementptr inbounds %class.PresentationManager, ptr %25, i32 0, i32 4
  %33 = getelementptr inbounds %struct.QueueFamilyIndices, ptr %32, i32 0, i32 1
  %34 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNRSt8optionalIjE5valueEv(ptr noundef nonnull align 4 dereferenceable(8) %33)
          to label %35 unwind label %53

35:                                               ; preds = %29
  %36 = load i32, ptr %34, align 4, !tbaa !9
  store i32 %36, ptr %31, align 4, !tbaa !9
  %37 = getelementptr inbounds %"class.std::initializer_list.61", ptr %11, i32 0, i32 0
  store ptr %12, ptr %37, align 8, !tbaa !11
  %38 = getelementptr inbounds %"class.std::initializer_list.61", ptr %11, i32 0, i32 1
  store i64 2, ptr %38, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  %39 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8
  %41 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %42 = load i64, ptr %41, align 8
  invoke void @_ZNSt3setIjSt4lessIjESaIjEEC2ESt16initializer_listIjERKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr %40, i64 %42, ptr noundef nonnull align 1 dereferenceable(1) %15, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %43 unwind label %57

43:                                               ; preds = %35
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store float 1.000000e+00, ptr %17, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store ptr %10, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %44 = load ptr, ptr %18, align 8, !tbaa !5
  %45 = call ptr @_ZNKSt3setIjSt4lessIjESaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %44) #6
  %46 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %19, i32 0, i32 0
  store ptr %45, ptr %46, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %47 = load ptr, ptr %18, align 8, !tbaa !5
  %48 = call ptr @_ZNKSt3setIjSt4lessIjESaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %47) #6
  %49 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %20, i32 0, i32 0
  store ptr %48, ptr %49, align 8
  br label %50

50:                                               ; preds = %71, %43
  %51 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIjES2_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br i1 %51, label %62, label %52

52:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %77

53:                                               ; preds = %29, %4
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %13, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %14, align 4
  br label %61

57:                                               ; preds = %35
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %13, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  br label %61

61:                                               ; preds = %57, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %142

62:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIjEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %64 = load i32, ptr %63, align 4, !tbaa !9
  store i32 %64, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #6
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 40, i1 false)
  %65 = getelementptr inbounds %struct.VkDeviceQueueCreateInfo, ptr %22, i32 0, i32 0
  store i32 2, ptr %65, align 8, !tbaa !17
  %66 = load i32, ptr %21, align 4, !tbaa !9
  %67 = getelementptr inbounds %struct.VkDeviceQueueCreateInfo, ptr %22, i32 0, i32 3
  store i32 %66, ptr %67, align 4, !tbaa !20
  %68 = getelementptr inbounds %struct.VkDeviceQueueCreateInfo, ptr %22, i32 0, i32 4
  store i32 1, ptr %68, align 8, !tbaa !21
  %69 = getelementptr inbounds %struct.VkDeviceQueueCreateInfo, ptr %22, i32 0, i32 5
  store ptr %17, ptr %69, align 8, !tbaa !22
  invoke void @_ZNSt6vectorI23VkDeviceQueueCreateInfoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(40) %22)
          to label %70 unwind label %73

70:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %71

71:                                               ; preds = %70
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIjEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br label %50

73:                                               ; preds = %62
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %13, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %141

77:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 220, ptr %23) #6
  call void @llvm.memset.p0.i64(ptr align 4 %23, i8 0, i64 220, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr %24) #6
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 72, i1 false)
  %78 = getelementptr inbounds %struct.VkDeviceCreateInfo, ptr %24, i32 0, i32 0
  store i32 3, ptr %78, align 8, !tbaa !23
  %79 = call noundef i64 @_ZNKSt6vectorI23VkDeviceQueueCreateInfoSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %80 = trunc i64 %79 to i32
  %81 = getelementptr inbounds %struct.VkDeviceCreateInfo, ptr %24, i32 0, i32 3
  store i32 %80, ptr %81, align 4, !tbaa !25
  %82 = call noundef ptr @_ZNSt6vectorI23VkDeviceQueueCreateInfoSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %83 = getelementptr inbounds %struct.VkDeviceCreateInfo, ptr %24, i32 0, i32 4
  store ptr %82, ptr %83, align 8, !tbaa !26
  %84 = getelementptr inbounds %struct.VkDeviceCreateInfo, ptr %24, i32 0, i32 9
  store ptr %23, ptr %84, align 8, !tbaa !27
  %85 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZL16deviceExtensions) #6
  %86 = trunc i64 %85 to i32
  %87 = getelementptr inbounds %struct.VkDeviceCreateInfo, ptr %24, i32 0, i32 7
  store i32 %86, ptr %87, align 8, !tbaa !28
  %88 = call noundef ptr @_ZNKSt6vectorIPKcSaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZL16deviceExtensions) #6
  %89 = getelementptr inbounds %struct.VkDeviceCreateInfo, ptr %24, i32 0, i32 8
  store ptr %88, ptr %89, align 8, !tbaa !29
  %90 = getelementptr inbounds %class.ValidationLayers, ptr %1, i32 0, i32 1
  %91 = load i8, ptr %90, align 8, !tbaa !30, !range !38, !noundef !39
  %92 = trunc i8 %91 to i1
  br i1 %92, label %93, label %101

93:                                               ; preds = %77
  %94 = getelementptr inbounds %class.ValidationLayers, ptr %1, i32 0, i32 0
  %95 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #6
  %96 = trunc i64 %95 to i32
  %97 = getelementptr inbounds %struct.VkDeviceCreateInfo, ptr %24, i32 0, i32 5
  store i32 %96, ptr %97, align 8, !tbaa !40
  %98 = getelementptr inbounds %class.ValidationLayers, ptr %1, i32 0, i32 0
  %99 = call noundef ptr @_ZNKSt6vectorIPKcSaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #6
  %100 = getelementptr inbounds %struct.VkDeviceCreateInfo, ptr %24, i32 0, i32 6
  store ptr %99, ptr %100, align 8, !tbaa !41
  br label %103

101:                                              ; preds = %77
  %102 = getelementptr inbounds %struct.VkDeviceCreateInfo, ptr %24, i32 0, i32 5
  store i32 0, ptr %102, align 8, !tbaa !40
  br label %103

103:                                              ; preds = %101, %93
  %104 = getelementptr inbounds %class.PresentationManager, ptr %25, i32 0, i32 2
  %105 = load ptr, ptr %104, align 8, !tbaa !42
  %106 = getelementptr inbounds %class.PresentationManager, ptr %25, i32 0, i32 3
  %107 = invoke i32 @vkCreateDevice(ptr noundef %105, ptr noundef %24, ptr noundef null, ptr noundef %106)
          to label %108 unwind label %113

108:                                              ; preds = %103
  %109 = icmp ne i32 %107, 0
  br i1 %109, label %110, label %121

110:                                              ; preds = %108
  %111 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %111, ptr noundef @.str.5)
          to label %112 unwind label %117

112:                                              ; preds = %110
  invoke void @__cxa_throw(ptr %111, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #7
          to label %148 unwind label %113

113:                                              ; preds = %136, %130, %127, %121, %112, %103
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %13, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %14, align 4
  br label %140

117:                                              ; preds = %110
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %13, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %14, align 4
  call void @__cxa_free_exception(ptr %111) #6
  br label %140

121:                                              ; preds = %108
  %122 = getelementptr inbounds %class.PresentationManager, ptr %25, i32 0, i32 3
  %123 = load ptr, ptr %122, align 8, !tbaa !74
  %124 = getelementptr inbounds %class.PresentationManager, ptr %25, i32 0, i32 4
  %125 = getelementptr inbounds %struct.QueueFamilyIndices, ptr %124, i32 0, i32 0
  %126 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNRSt8optionalIjE5valueEv(ptr noundef nonnull align 4 dereferenceable(8) %125)
          to label %127 unwind label %113

127:                                              ; preds = %121
  %128 = load i32, ptr %126, align 4, !tbaa !9
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @vkGetDeviceQueue(ptr noundef %123, i32 noundef %128, i32 noundef 0, ptr noundef %129)
          to label %130 unwind label %113

130:                                              ; preds = %127
  %131 = getelementptr inbounds %class.PresentationManager, ptr %25, i32 0, i32 3
  %132 = load ptr, ptr %131, align 8, !tbaa !74
  %133 = getelementptr inbounds %class.PresentationManager, ptr %25, i32 0, i32 4
  %134 = getelementptr inbounds %struct.QueueFamilyIndices, ptr %133, i32 0, i32 1
  %135 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNRSt8optionalIjE5valueEv(ptr noundef nonnull align 4 dereferenceable(8) %134)
          to label %136 unwind label %113

136:                                              ; preds = %130
  %137 = load i32, ptr %135, align 4, !tbaa !9
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @vkGetDeviceQueue(ptr noundef %132, i32 noundef %137, i32 noundef 0, ptr noundef %138)
          to label %139 unwind label %113

139:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 72, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 220, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @_ZNSt3setIjSt4lessIjESaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #6
  call void @_ZNSt6vectorI23VkDeviceQueueCreateInfoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  ret void

140:                                              ; preds = %117, %113
  call void @llvm.lifetime.end.p0(i64 72, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 220, ptr %23) #6
  br label %141

141:                                              ; preds = %140, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @_ZNSt3setIjSt4lessIjESaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  br label %142

142:                                              ; preds = %141, %61
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #6
  call void @_ZNSt6vectorI23VkDeviceQueueCreateInfoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  br label %143

143:                                              ; preds = %142
  %144 = load ptr, ptr %13, align 8
  %145 = load i32, ptr %14, align 4
  %146 = insertvalue { ptr, i32 } poison, ptr %144, 0
  %147 = insertvalue { ptr, i32 } %146, i32 %145, 1
  resume { ptr, i32 } %147

148:                                              ; preds = %112
  unreachable
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt3setIjSt4lessIjESaIjEEC2ESt16initializer_listIjERKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(48), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI23VkDeviceQueueCreateInfoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) #3 align 2

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

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

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

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

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

declare i32 @vkCreateDevice(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @vkGetDeviceQueue(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt16initializer_listIjE", !6, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTS23VkDeviceQueueCreateInfo", !19, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32}
!19 = !{!"_ZTS15VkStructureType", !7, i64 0}
!20 = !{!18, !10, i64 20}
!21 = !{!18, !10, i64 24}
!22 = !{!18, !6, i64 32}
!23 = !{!24, !19, i64 0}
!24 = !{!"_ZTS18VkDeviceCreateInfo", !19, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !6, i64 64}
!25 = !{!24, !10, i64 20}
!26 = !{!24, !6, i64 24}
!27 = !{!24, !6, i64 64}
!28 = !{!24, !10, i64 48}
!29 = !{!24, !6, i64 56}
!30 = !{!31, !36, i64 24}
!31 = !{!"_ZTS16ValidationLayers", !32, i64 0, !36, i64 24, !6, i64 32, !37, i64 40, !32, i64 88}
!32 = !{!"_ZTSSt6vectorIPKcSaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIPKcSaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"bool", !7, i64 0}
!37 = !{!"_ZTS34VkDebugUtilsMessengerCreateInfoEXT", !19, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !6, i64 40}
!38 = !{i8 0, i8 2}
!39 = !{}
!40 = !{!24, !10, i64 32}
!41 = !{!24, !6, i64 40}
!42 = !{!43, !6, i64 16}
!43 = !{!"_ZTS19PresentationManager", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !44, i64 32, !6, i64 48, !49, i64 56, !50, i64 60, !51, i64 72, !36, i64 96, !55, i64 104, !59, i64 128, !63, i64 152}
!44 = !{!"_ZTS18QueueFamilyIndices", !45, i64 0, !45, i64 8}
!45 = !{!"_ZTSSt8optionalIjE", !46, i64 0}
!46 = !{!"_ZTSSt14_Optional_baseIjLb1ELb1EE", !47, i64 0}
!47 = !{!"_ZTSSt17_Optional_payloadIjLb1ELb1ELb1EE", !48, i64 0}
!48 = !{!"_ZTSSt22_Optional_payload_baseIjE", !7, i64 0, !36, i64 4}
!49 = !{!"_ZTS8VkFormat", !7, i64 0}
!50 = !{!"_ZTS10VkExtent2D", !10, i64 0, !10, i64 4}
!51 = !{!"_ZTSSt6vectorIP15VkFramebuffer_TSaIS1_EE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseIP15VkFramebuffer_TSaIS1_EE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIP15VkFramebuffer_TSaIS1_EE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIP15VkFramebuffer_TSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!55 = !{!"_ZTSSt6vectorIP9VkImage_TSaIS1_EE", !56, i64 0}
!56 = !{!"_ZTSSt12_Vector_baseIP9VkImage_TSaIS1_EE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseIP9VkImage_TSaIS1_EE12_Vector_implE", !58, i64 0}
!58 = !{!"_ZTSNSt12_Vector_baseIP9VkImage_TSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!59 = !{!"_ZTSSt6vectorIP13VkImageView_TSaIS1_EE", !60, i64 0}
!60 = !{!"_ZTSSt12_Vector_baseIP13VkImageView_TSaIS1_EE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseIP13VkImageView_TSaIS1_EE12_Vector_implE", !62, i64 0}
!62 = !{!"_ZTSNSt12_Vector_baseIP13VkImageView_TSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!63 = !{!"_ZTS23SwapChainSupportDetails", !64, i64 0, !66, i64 56, !70, i64 80}
!64 = !{!"_ZTS24VkSurfaceCapabilitiesKHR", !10, i64 0, !10, i64 4, !50, i64 8, !50, i64 16, !50, i64 24, !10, i64 32, !10, i64 36, !65, i64 40, !10, i64 44, !10, i64 48}
!65 = !{!"_ZTS29VkSurfaceTransformFlagBitsKHR", !7, i64 0}
!66 = !{!"_ZTSSt6vectorI18VkSurfaceFormatKHRSaIS0_EE", !67, i64 0}
!67 = !{!"_ZTSSt12_Vector_baseI18VkSurfaceFormatKHRSaIS0_EE", !68, i64 0}
!68 = !{!"_ZTSNSt12_Vector_baseI18VkSurfaceFormatKHRSaIS0_EE12_Vector_implE", !69, i64 0}
!69 = !{!"_ZTSNSt12_Vector_baseI18VkSurfaceFormatKHRSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!70 = !{!"_ZTSSt6vectorI16VkPresentModeKHRSaIS0_EE", !71, i64 0}
!71 = !{!"_ZTSSt12_Vector_baseI16VkPresentModeKHRSaIS0_EE", !72, i64 0}
!72 = !{!"_ZTSNSt12_Vector_baseI16VkPresentModeKHRSaIS0_EE12_Vector_implE", !73, i64 0}
!73 = !{!"_ZTSNSt12_Vector_baseI16VkPresentModeKHRSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!74 = !{!43, !6, i64 24}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.50" = type { %"struct.std::_Vector_base.51" }
%"struct.std::_Vector_base.51" = type { %"struct.std::_Vector_base<VkDeviceQueueCreateInfo, std::allocator<VkDeviceQueueCreateInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<VkDeviceQueueCreateInfo, std::allocator<VkDeviceQueueCreateInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<VkDeviceQueueCreateInfo, std::allocator<VkDeviceQueueCreateInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<VkDeviceQueueCreateInfo, std::allocator<VkDeviceQueueCreateInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set.55" = type { %"class.std::_Rb_tree.56" }
%"class.std::_Rb_tree.56" = type { %"struct.std::_Rb_tree<unsigned int, unsigned int, std::_Identity<unsigned int>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, unsigned int, std::_Identity<unsigned int>, std::less<unsigned int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::less" = type { i8 }
%"class.std::allocator.62" = type { i8 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%struct.VkDeviceQueueCreateInfo = type { i32, ptr, i32, i32, i32, ptr }
%struct.VkPhysicalDeviceFeatures = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.VkDeviceCreateInfo = type { i32, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr }

@_ZL16deviceExtensions = external hidden global %"class.std::vector", align 8
@_ZTISt13runtime_error = external constant ptr
@.str.5 = external hidden unnamed_addr constant [33 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19PresentationManager19createLogicalDeviceE16ValidationLayersRP9VkQueue_TS3_(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.50", align 8
  %6 = alloca %"class.std::set.55", align 8
  %7 = alloca [2 x i32], align 4
  %8 = alloca %"struct.std::less", align 1
  %9 = alloca %"class.std::allocator.62", align 1
  %10 = alloca float, align 4
  %11 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %12 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %13 = alloca %struct.VkDeviceQueueCreateInfo, align 8
  %14 = alloca %struct.VkPhysicalDeviceFeatures, align 4
  %15 = alloca %struct.VkDeviceCreateInfo, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorI23VkDeviceQueueCreateInfoSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  %17 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNRSt8optionalIjE5valueEv(ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %18 unwind label %46

18:                                               ; preds = %4
  %19 = load i32, ptr %17, align 4, !tbaa !5
  store i32 %19, ptr %7, align 4, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 40
  %21 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNRSt8optionalIjE5valueEv(ptr noundef nonnull align 4 dereferenceable(8) %20)
          to label %22 unwind label %46

22:                                               ; preds = %18
  %23 = getelementptr inbounds i8, ptr %7, i64 4
  %24 = load i32, ptr %21, align 4, !tbaa !5
  store i32 %24, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt3setIjSt4lessIjESaIjEEC2ESt16initializer_listIjERKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr nonnull %7, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %8, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %25 unwind label %48

25:                                               ; preds = %22
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  store float 1.000000e+00, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %26 = call ptr @_ZNKSt3setIjSt4lessIjESaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  store ptr %26, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %27 = call ptr @_ZNKSt3setIjSt4lessIjESaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  store ptr %27, ptr %12, align 8
  %28 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIjES2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %28, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %25
  %29 = getelementptr inbounds i8, ptr %13, i64 20
  %30 = getelementptr inbounds i8, ptr %13, i64 24
  %31 = getelementptr inbounds i8, ptr %13, i64 32
  br label %51

._crit_edge:                                      ; preds = %54, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 220, ptr nonnull %14) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(220) %14, i8 0, i64 220, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %15) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %15, i8 0, i64 56, i1 false)
  store i32 3, ptr %15, align 8, !tbaa !11
  %32 = call noundef i64 @_ZNKSt6vectorI23VkDeviceQueueCreateInfoSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %33 = trunc i64 %32 to i32
  %34 = getelementptr inbounds i8, ptr %15, i64 20
  store i32 %33, ptr %34, align 4, !tbaa !15
  %35 = call noundef ptr @_ZNSt6vectorI23VkDeviceQueueCreateInfoSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %36 = getelementptr inbounds i8, ptr %15, i64 24
  store ptr %35, ptr %36, align 8, !tbaa !16
  %37 = getelementptr inbounds i8, ptr %15, i64 64
  store ptr %14, ptr %37, align 8, !tbaa !17
  %38 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZL16deviceExtensions) #6
  %39 = trunc i64 %38 to i32
  %40 = getelementptr inbounds i8, ptr %15, i64 48
  store i32 %39, ptr %40, align 8, !tbaa !18
  %41 = call noundef ptr @_ZNKSt6vectorIPKcSaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZL16deviceExtensions) #6
  %42 = getelementptr inbounds i8, ptr %15, i64 56
  store ptr %41, ptr %42, align 8, !tbaa !19
  %43 = getelementptr inbounds i8, ptr %1, i64 24
  %44 = load i8, ptr %43, align 8, !tbaa !20, !range !28, !noundef !29
  %45 = trunc nuw i8 %44 to i1
  br i1 %45, label %59, label %65

46:                                               ; preds = %18, %4
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %50

48:                                               ; preds = %22
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  br label %50

50:                                               ; preds = %48, %46
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %93

51:                                               ; preds = %.lr.ph, %54
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIjEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %53 = load i32, ptr %52, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %13, i8 0, i64 32, i1 false)
  store i32 2, ptr %13, align 8, !tbaa !30
  store i32 %53, ptr %29, align 4, !tbaa !32
  store i32 1, ptr %30, align 8, !tbaa !33
  store ptr %10, ptr %31, align 8, !tbaa !34
  invoke void @_ZNSt6vectorI23VkDeviceQueueCreateInfoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(40) %13)
          to label %54 unwind label %57

54:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #6
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIjEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %56 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIjES2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %56, label %51, label %._crit_edge

57:                                               ; preds = %51
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %92

59:                                               ; preds = %._crit_edge
  %60 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %61 = trunc i64 %60 to i32
  %62 = getelementptr inbounds i8, ptr %15, i64 32
  store i32 %61, ptr %62, align 8, !tbaa !35
  %63 = call noundef ptr @_ZNKSt6vectorIPKcSaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %64 = getelementptr inbounds i8, ptr %15, i64 40
  store ptr %63, ptr %64, align 8, !tbaa !36
  br label %67

65:                                               ; preds = %._crit_edge
  %66 = getelementptr inbounds i8, ptr %15, i64 32
  store i32 0, ptr %66, align 8, !tbaa !35
  br label %67

67:                                               ; preds = %65, %59
  %68 = getelementptr inbounds i8, ptr %0, i64 16
  %69 = load ptr, ptr %68, align 8, !tbaa !37
  %70 = getelementptr inbounds i8, ptr %0, i64 24
  %71 = invoke i32 @vkCreateDevice(ptr noundef %69, ptr noundef nonnull %15, ptr noundef null, ptr noundef nonnull %70)
          to label %72 unwind label %76

72:                                               ; preds = %67
  %.not = icmp eq i32 %71, 0
  br i1 %.not, label %80, label %73

73:                                               ; preds = %72
  %74 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %74, ptr noundef nonnull @.str.5)
          to label %75 unwind label %78

75:                                               ; preds = %73
  invoke void @__cxa_throw(ptr nonnull %74, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #7
          to label %94 unwind label %76

76:                                               ; preds = %88, %85, %83, %80, %75, %67
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %91

78:                                               ; preds = %73
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %74) #6
  br label %91

80:                                               ; preds = %72
  %81 = load ptr, ptr %70, align 8, !tbaa !69
  %82 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNRSt8optionalIjE5valueEv(ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %83 unwind label %76

83:                                               ; preds = %80
  %84 = load i32, ptr %82, align 4, !tbaa !5
  invoke void @vkGetDeviceQueue(ptr noundef %81, i32 noundef %84, i32 noundef 0, ptr noundef nonnull %2)
          to label %85 unwind label %76

85:                                               ; preds = %83
  %86 = load ptr, ptr %70, align 8, !tbaa !69
  %87 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNRSt8optionalIjE5valueEv(ptr noundef nonnull align 4 dereferenceable(8) %20)
          to label %88 unwind label %76

88:                                               ; preds = %85
  %89 = load i32, ptr %87, align 4, !tbaa !5
  invoke void @vkGetDeviceQueue(ptr noundef %86, i32 noundef %89, i32 noundef 0, ptr noundef nonnull %3)
          to label %90 unwind label %76

90:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 220, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @_ZNSt3setIjSt4lessIjESaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  call void @_ZNSt6vectorI23VkDeviceQueueCreateInfoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  ret void

91:                                               ; preds = %78, %76
  %.pn12 = phi { ptr, i32 } [ %77, %76 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 220, ptr nonnull %14) #6
  br label %92

92:                                               ; preds = %91, %57
  %.pn14 = phi { ptr, i32 } [ %58, %57 ], [ %.pn12, %91 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @_ZNSt3setIjSt4lessIjESaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  br label %93

93:                                               ; preds = %92, %50
  %.pn14.pn = phi { ptr, i32 } [ %.pn14, %92 ], [ %.pn, %50 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  call void @_ZNSt6vectorI23VkDeviceQueueCreateInfoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn14.pn

94:                                               ; preds = %75
  unreachable
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt3setIjSt4lessIjESaIjEEC2ESt16initializer_listIjERKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(48), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI23VkDeviceQueueCreateInfoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 align 2

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

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

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

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

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

declare i32 @vkCreateDevice(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @vkGetDeviceQueue(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS18VkDeviceCreateInfo", !13, i64 0, !14, i64 8, !6, i64 16, !6, i64 20, !14, i64 24, !6, i64 32, !14, i64 40, !6, i64 48, !14, i64 56, !14, i64 64}
!13 = !{!"_ZTS15VkStructureType", !7, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!12, !6, i64 20}
!16 = !{!12, !14, i64 24}
!17 = !{!12, !14, i64 64}
!18 = !{!12, !6, i64 48}
!19 = !{!12, !14, i64 56}
!20 = !{!21, !26, i64 24}
!21 = !{!"_ZTS16ValidationLayers", !22, i64 0, !26, i64 24, !14, i64 32, !27, i64 40, !22, i64 88}
!22 = !{!"_ZTSSt6vectorIPKcSaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIPKcSaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"_ZTS34VkDebugUtilsMessengerCreateInfoEXT", !13, i64 0, !14, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !14, i64 32, !14, i64 40}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!31, !13, i64 0}
!31 = !{!"_ZTS23VkDeviceQueueCreateInfo", !13, i64 0, !14, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !14, i64 32}
!32 = !{!31, !6, i64 20}
!33 = !{!31, !6, i64 24}
!34 = !{!31, !14, i64 32}
!35 = !{!12, !6, i64 32}
!36 = !{!12, !14, i64 40}
!37 = !{!38, !14, i64 16}
!38 = !{!"_ZTS19PresentationManager", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !39, i64 32, !14, i64 48, !44, i64 56, !45, i64 60, !46, i64 72, !26, i64 96, !50, i64 104, !54, i64 128, !58, i64 152}
!39 = !{!"_ZTS18QueueFamilyIndices", !40, i64 0, !40, i64 8}
!40 = !{!"_ZTSSt8optionalIjE", !41, i64 0}
!41 = !{!"_ZTSSt14_Optional_baseIjLb1ELb1EE", !42, i64 0}
!42 = !{!"_ZTSSt17_Optional_payloadIjLb1ELb1ELb1EE", !43, i64 0}
!43 = !{!"_ZTSSt22_Optional_payload_baseIjE", !7, i64 0, !26, i64 4}
!44 = !{!"_ZTS8VkFormat", !7, i64 0}
!45 = !{!"_ZTS10VkExtent2D", !6, i64 0, !6, i64 4}
!46 = !{!"_ZTSSt6vectorIP15VkFramebuffer_TSaIS1_EE", !47, i64 0}
!47 = !{!"_ZTSSt12_Vector_baseIP15VkFramebuffer_TSaIS1_EE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIP15VkFramebuffer_TSaIS1_EE12_Vector_implE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIP15VkFramebuffer_TSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!50 = !{!"_ZTSSt6vectorIP9VkImage_TSaIS1_EE", !51, i64 0}
!51 = !{!"_ZTSSt12_Vector_baseIP9VkImage_TSaIS1_EE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIP9VkImage_TSaIS1_EE12_Vector_implE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIP9VkImage_TSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!54 = !{!"_ZTSSt6vectorIP13VkImageView_TSaIS1_EE", !55, i64 0}
!55 = !{!"_ZTSSt12_Vector_baseIP13VkImageView_TSaIS1_EE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseIP13VkImageView_TSaIS1_EE12_Vector_implE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseIP13VkImageView_TSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!58 = !{!"_ZTS23SwapChainSupportDetails", !59, i64 0, !61, i64 56, !65, i64 80}
!59 = !{!"_ZTS24VkSurfaceCapabilitiesKHR", !6, i64 0, !6, i64 4, !45, i64 8, !45, i64 16, !45, i64 24, !6, i64 32, !6, i64 36, !60, i64 40, !6, i64 44, !6, i64 48}
!60 = !{!"_ZTS29VkSurfaceTransformFlagBitsKHR", !7, i64 0}
!61 = !{!"_ZTSSt6vectorI18VkSurfaceFormatKHRSaIS0_EE", !62, i64 0}
!62 = !{!"_ZTSSt12_Vector_baseI18VkSurfaceFormatKHRSaIS0_EE", !63, i64 0}
!63 = !{!"_ZTSNSt12_Vector_baseI18VkSurfaceFormatKHRSaIS0_EE12_Vector_implE", !64, i64 0}
!64 = !{!"_ZTSNSt12_Vector_baseI18VkSurfaceFormatKHRSaIS0_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!65 = !{!"_ZTSSt6vectorI16VkPresentModeKHRSaIS0_EE", !66, i64 0}
!66 = !{!"_ZTSSt12_Vector_baseI16VkPresentModeKHRSaIS0_EE", !67, i64 0}
!67 = !{!"_ZTSNSt12_Vector_baseI16VkPresentModeKHRSaIS0_EE12_Vector_implE", !68, i64 0}
!68 = !{!"_ZTSNSt12_Vector_baseI16VkPresentModeKHRSaIS0_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!69 = !{!38, !14, i64 24}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass