; LLVM IR from geefr/vulkan-physics :: vulkanutils/util (deviceinstance)

; 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.27" = type { %"struct.std::_Vector_base.28" }
%"struct.std::_Vector_base.28" = type { %"struct.std::_Vector_base<vk::DeviceQueueCreateInfo, std::allocator<vk::DeviceQueueCreateInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<vk::DeviceQueueCreateInfo, std::allocator<vk::DeviceQueueCreateInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<vk::DeviceQueueCreateInfo, std::allocator<vk::DeviceQueueCreateInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vk::DeviceQueueCreateInfo, std::allocator<vk::DeviceQueueCreateInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<vk::QueueFamilyProperties, std::allocator<vk::QueueFamilyProperties>>::_Vector_impl" }
%"struct.std::_Vector_base<vk::QueueFamilyProperties, std::allocator<vk::QueueFamilyProperties>>::_Vector_impl" = type { %"struct.std::_Vector_base<vk::QueueFamilyProperties, std::allocator<vk::QueueFamilyProperties>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vk::QueueFamilyProperties, std::allocator<vk::QueueFamilyProperties>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.37" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.39" = type { ptr }
%class.anon.40 = type { ptr }
%"class.__gnu_cxx::__normal_iterator.41" = type { ptr }
%class.anon.42 = type { ptr }
%"struct.vk::DeviceQueueCreateInfo" = type { i32, ptr, %"class.vk::Flags.43", i32, i32, ptr }
%"class.vk::Flags.43" = type { i32 }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<vk::ExtensionProperties, std::allocator<vk::ExtensionProperties>>::_Vector_impl" }
%"struct.std::_Vector_base<vk::ExtensionProperties, std::allocator<vk::ExtensionProperties>>::_Vector_impl" = type { %"struct.std::_Vector_base<vk::ExtensionProperties, std::allocator<vk::ExtensionProperties>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vk::ExtensionProperties, std::allocator<vk::ExtensionProperties>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.vk::Optional.24" = type { ptr }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = 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 }
%"struct.vk::PhysicalDeviceFeatures" = 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.vk::DeviceCreateInfo" = type { i32, ptr, %"class.vk::Flags.44", i32, ptr, i32, ptr, i32, ptr, ptr }
%"class.vk::Flags.44" = type { i32 }
%"class.vk::UniqueHandle.5" = type { %"class.vk::ObjectDestroy", %"class.vk::Device" }
%"class.vk::ObjectDestroy" = type { %"class.vk::Optional", ptr }
%"class.vk::Optional" = type { ptr }
%"class.vk::Device" = type { ptr }
%"struct.DeviceInstance::QueueRef" = type { %"class.vk::Queue", i32, %"class.vk::Flags.38" }
%"class.vk::Queue" = type { ptr }
%"class.vk::Flags.38" = type { i32 }
%class.DeviceInstance = type { %"class.std::vector.0", %"class.vk::UniqueHandle", %"class.vk::UniqueHandle.5", %"class.std::vector.6" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<vk::PhysicalDevice, std::allocator<vk::PhysicalDevice>>::_Vector_impl" }
%"struct.std::_Vector_base<vk::PhysicalDevice, std::allocator<vk::PhysicalDevice>>::_Vector_impl" = type { %"struct.std::_Vector_base<vk::PhysicalDevice, std::allocator<vk::PhysicalDevice>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vk::PhysicalDevice, std::allocator<vk::PhysicalDevice>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.vk::UniqueHandle" = type { %"class.vk::ObjectDestroy", %"class.vk::Instance" }
%"class.vk::Instance" = type { ptr }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<DeviceInstance::QueueRef, std::allocator<DeviceInstance::QueueRef>>::_Vector_impl" }
%"struct.std::_Vector_base<DeviceInstance::QueueRef, std::allocator<DeviceInstance::QueueRef>>::_Vector_impl" = type { %"struct.std::_Vector_base<DeviceInstance::QueueRef, std::allocator<DeviceInstance::QueueRef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DeviceInstance::QueueRef, std::allocator<DeviceInstance::QueueRef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vk::QueueFamilyProperties" = type { %"class.vk::Flags.38", i32, i32, %"struct.vk::Extent3D" }
%"struct.vk::Extent3D" = type { i32, i32, i32 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14DeviceInstance19createLogicalDeviceESt6vectorIN2vk5FlagsINS1_13QueueFlagBitsEEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::vector.27", align 8
  %6 = alloca %"class.std::vector.32", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.37", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.37", align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.39", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.39", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.39", align 8
  %18 = alloca %class.anon.40, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.39", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.39", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %25 = alloca %class.anon.42, align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %27 = alloca %"struct.vk::DeviceQueueCreateInfo", align 8
  %28 = alloca %"struct.vk::DeviceQueueCreateInfo", align 8
  %29 = alloca %"class.vk::Flags.43", align 4
  %30 = alloca %"class.vk::Flags.43", align 4
  %31 = alloca %"class.std::vector.19", align 8
  %32 = alloca %"class.vk::Optional.24", align 8
  %33 = alloca %"class.std::vector.14", align 8
  %34 = alloca i32, align 4
  %35 = alloca ptr, align 8
  %36 = alloca %"struct.vk::PhysicalDeviceFeatures", align 4
  %37 = alloca %"struct.vk::PhysicalDeviceFeatures", align 4
  %38 = alloca %"struct.vk::PhysicalDeviceFeatures", align 4
  %39 = alloca %"struct.vk::DeviceCreateInfo", align 8
  %40 = alloca %"struct.vk::DeviceCreateInfo", align 8
  %41 = alloca %"class.vk::Flags.44", align 4
  %42 = alloca %"class.vk::Flags.44", align 4
  %43 = alloca %"class.vk::UniqueHandle.5", align 8
  %44 = alloca %"class.vk::Optional", align 8
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca %"class.std::vector.32", align 8
  %48 = alloca %"struct.DeviceInstance::QueueRef", align 8
  %49 = alloca %"class.vk::Queue", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %50 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #9
  call void @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #9
  %51 = getelementptr inbounds %class.DeviceInstance, ptr %50, i32 0, i32 0
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN2vk14PhysicalDeviceESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef 0) #9
  %53 = invoke noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
          to label %54 unwind label %65

54:                                               ; preds = %2
  invoke void @_ZNK2vk14PhysicalDevice24getQueueFamilyPropertiesISaINS_21QueueFamilyPropertiesEENS_20DispatchLoaderStaticEEESt6vectorIS2_T_ERKT0_(ptr dead_on_unwind writable sret(%"class.std::vector.32") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(9) %53)
          to label %55 unwind label %65

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store float 1.000000e+00, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  store ptr %1, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = call ptr @_ZNSt6vectorIN2vk5FlagsINS0_13QueueFlagBitsEEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #9
  %58 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.37", ptr %11, i32 0, i32 0
  store ptr %57, ptr %58, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = call ptr @_ZNSt6vectorIN2vk5FlagsINS0_13QueueFlagBitsEEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #9
  %61 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.37", ptr %12, i32 0, i32 0
  store ptr %60, ptr %61, align 8
  br label %62

62:                                               ; preds = %140, %55
  %63 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN2vk5FlagsINS1_13QueueFlagBitsEEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br i1 %63, label %69, label %64

64:                                               ; preds = %62
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %148

65:                                               ; preds = %54, %2
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %7, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %8, align 4
  br label %263

69:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN2vk5FlagsINS1_13QueueFlagBitsEEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  store ptr %70, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %71 = call ptr @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %72 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.39", ptr %16, i32 0, i32 0
  store ptr %71, ptr %72, align 8
  %73 = call ptr @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %74 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.39", ptr %17, i32 0, i32 0
  store ptr %73, ptr %74, align 8
  %75 = getelementptr inbounds %class.anon.40, ptr %18, i32 0, i32 0
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %76, ptr %75, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.39", ptr %16, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8
  %79 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.39", ptr %17, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8
  %81 = getelementptr inbounds %class.anon.40, ptr %18, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8
  %83 = invoke ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN2vk21QueueFamilyPropertiesESt6vectorIS3_SaIS3_EEEEZN14DeviceInstance19createLogicalDeviceES5_INS2_5FlagsINS2_13QueueFlagBitsEEESaISC_EEE3$_0ET_SG_SG_T0_"(ptr %78, ptr %80, ptr %82)
          to label %84 unwind label %90

84:                                               ; preds = %69
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.39", ptr %15, i32 0, i32 0
  store ptr %83, ptr %85, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %86 = call ptr @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %87 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.39", ptr %19, i32 0, i32 0
  store ptr %86, ptr %87, align 8
  %88 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPN2vk21QueueFamilyPropertiesESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br i1 %88, label %89, label %94

89:                                               ; preds = %84
  store i32 3, ptr %13, align 4
  br label %134

90:                                               ; preds = %69
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %7, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %8, align 4
  br label %147

94:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %95 = call ptr @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %96 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.39", ptr %21, i32 0, i32 0
  store ptr %95, ptr %96, align 8
  %97 = call noundef i64 @_ZN9__gnu_cxxmiIPN2vk21QueueFamilyPropertiesESt6vectorIS2_SaIS2_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSA_SD_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  %98 = trunc i64 %97 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  store i32 %98, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %99 = call ptr @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %100 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.41", ptr %23, i32 0, i32 0
  store ptr %99, ptr %100, align 8
  %101 = call ptr @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %102 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.41", ptr %24, i32 0, i32 0
  store ptr %101, ptr %102, align 8
  %103 = getelementptr inbounds %class.anon.42, ptr %25, i32 0, i32 0
  store ptr %20, ptr %103, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.41", ptr %23, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8
  %106 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.41", ptr %24, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8
  %108 = getelementptr inbounds %class.anon.42, ptr %25, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8
  %110 = invoke ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN2vk21DeviceQueueCreateInfoESt6vectorIS3_SaIS3_EEEEZN14DeviceInstance19createLogicalDeviceES5_INS2_5FlagsINS2_13QueueFlagBitsEEESaISC_EEE3$_1ET_SG_SG_T0_"(ptr %105, ptr %107, ptr %109)
          to label %111 unwind label %117

111:                                              ; preds = %94
  %112 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.41", ptr %22, i32 0, i32 0
  store ptr %110, ptr %112, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %113 = call ptr @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %114 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.41", ptr %26, i32 0, i32 0
  store ptr %113, ptr %114, align 8
  %115 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN2vk21DeviceQueueCreateInfoESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br i1 %115, label %116, label %121

116:                                              ; preds = %111
  store i32 3, ptr %13, align 4
  br label %133

117:                                              ; preds = %94
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %7, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %8, align 4
  br label %146

121:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 40, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 40, ptr %28) #9
  call void @_ZN2vk5FlagsINS_25DeviceQueueCreateFlagBitsEEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %29) #9
  %122 = getelementptr inbounds %"class.vk::Flags.43", ptr %29, i32 0, i32 0
  %123 = load i32, ptr %122, align 4
  call void @_ZN2vk21DeviceQueueCreateInfoC2ENS_5FlagsINS_25DeviceQueueCreateFlagBitsEEEjjPKf(ptr noundef nonnull align 8 dereferenceable(40) %28, i32 %123, i32 noundef 0, i32 noundef 0, ptr noundef null) #9
  call void @_ZN2vk5FlagsINS_25DeviceQueueCreateFlagBitsEEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %30) #9
  %124 = getelementptr inbounds %"class.vk::Flags.43", ptr %30, i32 0, i32 0
  %125 = load i32, ptr %124, align 4
  %126 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vk21DeviceQueueCreateInfo8setFlagsENS_5FlagsINS_25DeviceQueueCreateFlagBitsEEE(ptr noundef nonnull align 8 dereferenceable(40) %28, i32 %125) #9
  %127 = load i32, ptr %20, align 4, !tbaa !11
  %128 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vk21DeviceQueueCreateInfo19setQueueFamilyIndexEj(ptr noundef nonnull align 8 dereferenceable(40) %126, i32 noundef %127) #9
  %129 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vk21DeviceQueueCreateInfo13setQueueCountEj(ptr noundef nonnull align 8 dereferenceable(40) %128, i32 noundef 1) #9
  %130 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vk21DeviceQueueCreateInfo19setPQueuePrioritiesEPKf(ptr noundef nonnull align 8 dereferenceable(40) %129, ptr noundef %9) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %130, i64 40, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #9
  %131 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(40) %27)
          to label %132 unwind label %142

132:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #9
  store i32 0, ptr %13, align 4
  br label %133

133:                                              ; preds = %132, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %134

134:                                              ; preds = %133, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  %135 = load i32, ptr %13, align 4
  switch i32 %135, label %137 [
    i32 0, label %136
  ]

136:                                              ; preds = %134
  store i32 0, ptr %13, align 4
  br label %137

137:                                              ; preds = %136, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  %138 = load i32, ptr %13, align 4
  switch i32 %138, label %269 [
    i32 0, label %139
    i32 3, label %140
  ]

139:                                              ; preds = %137
  br label %140

140:                                              ; preds = %139, %137
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN2vk5FlagsINS1_13QueueFlagBitsEEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br label %62

142:                                              ; preds = %121
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %7, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #9
  br label %146

146:                                              ; preds = %142, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %147

147:                                              ; preds = %146, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %262

148:                                              ; preds = %64
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #9
  %149 = getelementptr inbounds %class.DeviceInstance, ptr %50, i32 0, i32 0
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN2vk14PhysicalDeviceESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %149) #9
  call void @_ZN2vk8OptionalIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr null) #9
  %151 = invoke noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
          to label %152 unwind label %200

152:                                              ; preds = %148
  %153 = getelementptr inbounds %"class.vk::Optional.24", ptr %32, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8
  invoke void @_ZNK2vk14PhysicalDevice34enumerateDeviceExtensionPropertiesISaINS_19ExtensionPropertiesEENS_20DispatchLoaderStaticEEENS_15ResultValueTypeISt6vectorIS2_T_EE4typeENS_8OptionalIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKT0_(ptr dead_on_unwind writable sret(%"class.std::vector.19") align 8 %31, ptr noundef nonnull align 8 dereferenceable(8) %150, ptr %154, ptr noundef nonnull align 8 dereferenceable(9) %151)
          to label %155 unwind label %200

155:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #9
  call void @_ZNSt6vectorIPKcSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  store i32 0, ptr %34, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  store ptr null, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 220, ptr %36) #9
  %156 = getelementptr inbounds %class.DeviceInstance, ptr %50, i32 0, i32 0
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN2vk14PhysicalDeviceESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %156) #9
  %158 = invoke noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
          to label %159 unwind label %204

159:                                              ; preds = %155
  call void @_ZNK2vk14PhysicalDevice11getFeaturesINS_20DispatchLoaderStaticEEENS_22PhysicalDeviceFeaturesERKT_(ptr dead_on_unwind writable sret(%"struct.vk::PhysicalDeviceFeatures") align 4 %36, ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef nonnull align 8 dereferenceable(9) %158) #9
  call void @llvm.lifetime.start.p0(i64 220, ptr %37) #9
  call void @llvm.lifetime.start.p0(i64 220, ptr %38) #9
  call void @_ZN2vk22PhysicalDeviceFeaturesC2Ejjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj(ptr noundef nonnull align 4 dereferenceable(220) %38, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0) #9
  %160 = getelementptr inbounds %"struct.vk::PhysicalDeviceFeatures", ptr %36, i32 0, i32 9
  %161 = load i32, ptr %160, align 4, !tbaa !16
  %162 = call noundef nonnull align 4 dereferenceable(220) ptr @_ZN2vk22PhysicalDeviceFeatures20setMultiDrawIndirectEj(ptr noundef nonnull align 4 dereferenceable(220) %38, i32 noundef %161) #9
  %163 = call noundef nonnull align 4 dereferenceable(220) ptr @_ZN2vk22PhysicalDeviceFeatures21setTessellationShaderEj(ptr noundef nonnull align 4 dereferenceable(220) %162, i32 noundef 1) #9
  %164 = call noundef nonnull align 4 dereferenceable(220) ptr @_ZN2vk22PhysicalDeviceFeatures17setGeometryShaderEj(ptr noundef nonnull align 4 dereferenceable(220) %163, i32 noundef 1) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %164, i64 220, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 220, ptr %38) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr %39) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr %40) #9
  call void @_ZN2vk5FlagsINS_20DeviceCreateFlagBitsEEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %41) #9
  %165 = getelementptr inbounds %"class.vk::Flags.44", ptr %41, i32 0, i32 0
  %166 = load i32, ptr %165, align 4
  call void @_ZN2vk16DeviceCreateInfoC2ENS_5FlagsINS_20DeviceCreateFlagBitsEEEjPKNS_21DeviceQueueCreateInfoEjPKPKcjSA_PKNS_22PhysicalDeviceFeaturesE(ptr noundef nonnull align 8 dereferenceable(72) %40, i32 %166, i32 noundef 0, ptr noundef null, i32 noundef 0, ptr noundef null, i32 noundef 0, ptr noundef null, ptr noundef null) #9
  call void @_ZN2vk5FlagsINS_20DeviceCreateFlagBitsEEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %42) #9
  %167 = getelementptr inbounds %"class.vk::Flags.44", ptr %42, i32 0, i32 0
  %168 = load i32, ptr %167, align 4
  %169 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo8setFlagsENS_5FlagsINS_20DeviceCreateFlagBitsEEE(ptr noundef nonnull align 8 dereferenceable(72) %40, i32 %168) #9
  %170 = call noundef i64 @_ZNKSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %171 = trunc i64 %170 to i32
  %172 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo23setQueueCreateInfoCountEj(ptr noundef nonnull align 8 dereferenceable(72) %169, i32 noundef %171) #9
  %173 = call noundef ptr @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %174 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo20setPQueueCreateInfosEPKNS_21DeviceQueueCreateInfoE(ptr noundef nonnull align 8 dereferenceable(72) %172, ptr noundef %173) #9
  %175 = load i32, ptr %34, align 4, !tbaa !11
  %176 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo20setEnabledLayerCountEj(ptr noundef nonnull align 8 dereferenceable(72) %174, i32 noundef %175) #9
  %177 = load ptr, ptr %35, align 8, !tbaa !5
  %178 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo22setPpEnabledLayerNamesEPKPKc(ptr noundef nonnull align 8 dereferenceable(72) %176, ptr noundef %177) #9
  %179 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  %180 = trunc i64 %179 to i32
  %181 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo24setEnabledExtensionCountEj(ptr noundef nonnull align 8 dereferenceable(72) %178, i32 noundef %180) #9
  %182 = call noundef ptr @_ZNSt6vectorIPKcSaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  %183 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo26setPpEnabledExtensionNamesEPKPKc(ptr noundef nonnull align 8 dereferenceable(72) %181, ptr noundef %182) #9
  %184 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo19setPEnabledFeaturesEPKNS_22PhysicalDeviceFeaturesE(ptr noundef nonnull align 8 dereferenceable(72) %183, ptr noundef %37) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 8 %184, i64 72, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 72, ptr %40) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #9
  %185 = getelementptr inbounds %class.DeviceInstance, ptr %50, i32 0, i32 0
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN2vk14PhysicalDeviceESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %185) #9
  call void @_ZN2vk8OptionalIKNS_19AllocationCallbacksEEC2EDn(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr null) #9
  %187 = invoke noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
          to label %188 unwind label %208

188:                                              ; preds = %159
  %189 = getelementptr inbounds %"class.vk::Optional", ptr %44, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8
  invoke void @_ZNK2vk14PhysicalDevice18createDeviceUniqueINS_20DispatchLoaderStaticEEENS_15ResultValueTypeINS_12UniqueHandleINS_6DeviceET_EEE4typeERKNS_16DeviceCreateInfoENS_8OptionalIKNS_19AllocationCallbacksEEERKS6_(ptr dead_on_unwind writable sret(%"class.vk::UniqueHandle.5") align 8 %43, ptr noundef nonnull align 8 dereferenceable(8) %186, ptr noundef nonnull align 8 dereferenceable(72) %39, ptr %190, ptr noundef nonnull align 8 dereferenceable(9) %187)
          to label %191 unwind label %208

191:                                              ; preds = %188
  %192 = getelementptr inbounds %class.DeviceInstance, ptr %50, i32 0, i32 2
  %193 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN2vk12UniqueHandleINS_6DeviceENS_20DispatchLoaderStaticEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %192, ptr noundef nonnull align 8 dereferenceable(24) %43) #9
  call void @_ZN2vk12UniqueHandleINS_6DeviceENS_20DispatchLoaderStaticEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #9
  store i32 0, ptr %45, align 4, !tbaa !11
  br label %194

194:                                              ; preds = %241, %191
  %195 = load i32, ptr %45, align 4, !tbaa !11
  %196 = zext i32 %195 to i64
  %197 = call noundef i64 @_ZNKSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %198 = icmp ult i64 %196, %197
  br i1 %198, label %212, label %199

199:                                              ; preds = %194
  store i32 4, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #9
  br label %258

200:                                              ; preds = %152, %148
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %7, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %8, align 4
  br label %261

204:                                              ; preds = %155
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %7, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %8, align 4
  br label %260

208:                                              ; preds = %188, %159
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %7, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #9
  br label %259

212:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #9
  %213 = load i32, ptr %45, align 4, !tbaa !11
  %214 = zext i32 %213 to i64
  %215 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %214) #9
  %216 = getelementptr inbounds %"struct.vk::DeviceQueueCreateInfo", ptr %215, i32 0, i32 3
  %217 = load i32, ptr %216, align 4, !tbaa !20
  store i32 %217, ptr %46, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %47) #9
  %218 = getelementptr inbounds %class.DeviceInstance, ptr %50, i32 0, i32 0
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN2vk14PhysicalDeviceESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %218) #9
  %220 = invoke noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
          to label %221 unwind label %244

221:                                              ; preds = %212
  invoke void @_ZNK2vk14PhysicalDevice24getQueueFamilyPropertiesISaINS_21QueueFamilyPropertiesEENS_20DispatchLoaderStaticEEESt6vectorIS2_T_ERKT0_(ptr dead_on_unwind writable sret(%"class.std::vector.32") align 8 %47, ptr noundef nonnull align 8 dereferenceable(8) %219, ptr noundef nonnull align 8 dereferenceable(9) %220)
          to label %222 unwind label %244

222:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #9
  call void @llvm.memset.p0.i64(ptr align 8 %48, i8 0, i64 16, i1 false)
  call void @_ZN14DeviceInstance8QueueRefC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %48) #9
  %223 = load i32, ptr %46, align 4, !tbaa !11
  %224 = getelementptr inbounds %"struct.DeviceInstance::QueueRef", ptr %48, i32 0, i32 1
  store i32 %223, ptr %224, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #9
  %225 = getelementptr inbounds %class.DeviceInstance, ptr %50, i32 0, i32 2
  %226 = call noundef ptr @_ZN2vk12UniqueHandleINS_6DeviceENS_20DispatchLoaderStaticEEptEv(ptr noundef nonnull align 8 dereferenceable(24) %225) #9
  %227 = load i32, ptr %46, align 4, !tbaa !11
  %228 = invoke noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
          to label %229 unwind label %248

229:                                              ; preds = %222
  %230 = call ptr @_ZNK2vk6Device8getQueueINS_20DispatchLoaderStaticEEENS_5QueueEjjRKT_(ptr noundef nonnull align 8 dereferenceable(8) %226, i32 noundef %227, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(9) %228) #9
  %231 = getelementptr inbounds %"class.vk::Queue", ptr %49, i32 0, i32 0
  store ptr %230, ptr %231, align 8
  %232 = getelementptr inbounds %"struct.DeviceInstance::QueueRef", ptr %48, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %232, ptr align 8 %49, i64 8, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  %233 = load i32, ptr %46, align 4, !tbaa !11
  %234 = zext i32 %233 to i64
  %235 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %234) #9
  %236 = getelementptr inbounds %"struct.vk::QueueFamilyProperties", ptr %235, i32 0, i32 0
  %237 = getelementptr inbounds %"struct.DeviceInstance::QueueRef", ptr %48, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %237, ptr align 4 %236, i64 4, i1 false), !tbaa.struct !28
  %238 = getelementptr inbounds %class.DeviceInstance, ptr %50, i32 0, i32 3
  %239 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN14DeviceInstance8QueueRefESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %238, ptr noundef nonnull align 8 dereferenceable(16) %48)
          to label %240 unwind label %252

240:                                              ; preds = %229
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #9
  call void @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  br label %241

241:                                              ; preds = %240
  %242 = load i32, ptr %45, align 4, !tbaa !11
  %243 = add i32 %242, 1
  store i32 %243, ptr %45, align 4, !tbaa !11
  br label %194, !llvm.loop !29

244:                                              ; preds = %221, %212
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %7, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %8, align 4
  br label %257

248:                                              ; preds = %222
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %7, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  br label %256

252:                                              ; preds = %229
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %7, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %8, align 4
  br label %256

256:                                              ; preds = %252, %248
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #9
  call void @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #9
  br label %257

257:                                              ; preds = %256, %244
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #9
  br label %259

258:                                              ; preds = %199
  call void @llvm.lifetime.end.p0(i64 72, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 220, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 220, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #9
  call void @_ZNSt6vectorIN2vk19ExtensionPropertiesESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #9
  call void @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #9
  ret void

259:                                              ; preds = %257, %208
  call void @llvm.lifetime.end.p0(i64 72, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 220, ptr %37) #9
  br label %260

260:                                              ; preds = %259, %204
  call void @llvm.lifetime.end.p0(i64 220, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #9
  call void @_ZNSt6vectorIN2vk19ExtensionPropertiesESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  br label %261

261:                                              ; preds = %260, %200
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #9
  br label %262

262:                                              ; preds = %261, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  br label %263

263:                                              ; preds = %262, %65
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #9
  call void @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #9
  br label %264

264:                                              ; preds = %263
  %265 = load ptr, ptr %7, align 8
  %266 = load i32, ptr %8, align 4
  %267 = insertvalue { ptr, i32 } poison, ptr %265, 0
  %268 = insertvalue { ptr, i32 } %267, i32 %266, 1
  resume { ptr, i32 } %268

269:                                              ; preds = %137
  unreachable
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv() #4

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

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

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

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK2vk14PhysicalDevice24getQueueFamilyPropertiesISaINS_21QueueFamilyPropertiesEENS_20DispatchLoaderStaticEEESt6vectorIS2_T_ERKT0_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.32") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(9)) #6 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN2vk5FlagsINS1_13QueueFlagBitsEEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(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 @_ZNK9__gnu_cxx17__normal_iteratorIPN2vk5FlagsINS1_13QueueFlagBitsEEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN2vk21QueueFamilyPropertiesESt6vectorIS3_SaIS3_EEEEZN14DeviceInstance19createLogicalDeviceES5_INS2_5FlagsINS2_13QueueFlagBitsEEESaISC_EEE3$_0ET_SG_SG_T0_"(ptr, ptr, ptr) #7

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN2vk21DeviceQueueCreateInfoESt6vectorIS3_SaIS3_EEEEZN14DeviceInstance19createLogicalDeviceES5_INS2_5FlagsINS2_13QueueFlagBitsEEESaISC_EEE3$_1ET_SG_SG_T0_"(ptr, ptr, ptr) #7

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vk21DeviceQueueCreateInfoC2ENS_5FlagsINS_25DeviceQueueCreateFlagBitsEEEjjPKf(ptr noundef nonnull align 8 dereferenceable(40), i32, i32 noundef, i32 noundef, ptr noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vk21DeviceQueueCreateInfo8setFlagsENS_5FlagsINS_25DeviceQueueCreateFlagBitsEEE(ptr noundef nonnull align 8 dereferenceable(40), i32) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vk21DeviceQueueCreateInfo19setQueueFamilyIndexEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vk21DeviceQueueCreateInfo13setQueueCountEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #1 align 2

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK2vk14PhysicalDevice34enumerateDeviceExtensionPropertiesISaINS_19ExtensionPropertiesEENS_20DispatchLoaderStaticEEENS_15ResultValueTypeISt6vectorIS2_T_EE4typeENS_8OptionalIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKT0_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.19") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr, ptr noundef nonnull align 8 dereferenceable(9)) #6 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK2vk14PhysicalDevice11getFeaturesINS_20DispatchLoaderStaticEEENS_22PhysicalDeviceFeaturesERKT_(ptr dead_on_unwind noalias writable sret(%"struct.vk::PhysicalDeviceFeatures") align 4, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(9)) #8 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(220) ptr @_ZN2vk22PhysicalDeviceFeatures20setMultiDrawIndirectEj(ptr noundef nonnull align 4 dereferenceable(220), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(220) ptr @_ZN2vk22PhysicalDeviceFeatures21setTessellationShaderEj(ptr noundef nonnull align 4 dereferenceable(220), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(220) ptr @_ZN2vk22PhysicalDeviceFeatures17setGeometryShaderEj(ptr noundef nonnull align 4 dereferenceable(220), i32 noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vk16DeviceCreateInfoC2ENS_5FlagsINS_20DeviceCreateFlagBitsEEEjPKNS_21DeviceQueueCreateInfoEjPKPKcjSA_PKNS_22PhysicalDeviceFeaturesE(ptr noundef nonnull align 8 dereferenceable(72), i32, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo8setFlagsENS_5FlagsINS_20DeviceCreateFlagBitsEEE(ptr noundef nonnull align 8 dereferenceable(72), i32) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo23setQueueCreateInfoCountEj(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo20setEnabledLayerCountEj(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo24setEnabledExtensionCountEj(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) #1 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK2vk14PhysicalDevice18createDeviceUniqueINS_20DispatchLoaderStaticEEENS_15ResultValueTypeINS_12UniqueHandleINS_6DeviceET_EEE4typeERKNS_16DeviceCreateInfoENS_8OptionalIKNS_19AllocationCallbacksEEERKS6_(ptr dead_on_unwind noalias writable sret(%"class.vk::UniqueHandle.5") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(72), ptr, ptr noundef nonnull align 8 dereferenceable(9)) #6 align 2

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local ptr @_ZNK2vk6Device8getQueueINS_20DispatchLoaderStaticEEENS_5QueueEjjRKT_(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(9)) #8 align 2

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

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

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 4, !14, i64 8, i64 8, !5, i64 16, i64 4, !11, i64 20, i64 4, !11, i64 24, i64 4, !11, i64 32, i64 8, !5}
!14 = !{!15, !15, i64 0}
!15 = !{!"_ZTSN2vk13StructureTypeE", !7, i64 0}
!16 = !{!17, !12, i64 36}
!17 = !{!"_ZTSN2vk22PhysicalDeviceFeaturesE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !12, i64 152, !12, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !12, i64 172, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !12, i64 192, !12, i64 196, !12, i64 200, !12, i64 204, !12, i64 208, !12, i64 212, !12, i64 216}
!18 = !{i64 0, i64 4, !11, i64 4, i64 4, !11, i64 8, i64 4, !11, i64 12, i64 4, !11, i64 16, i64 4, !11, i64 20, i64 4, !11, i64 24, i64 4, !11, i64 28, i64 4, !11, i64 32, i64 4, !11, i64 36, i64 4, !11, i64 40, i64 4, !11, i64 44, i64 4, !11, i64 48, i64 4, !11, i64 52, i64 4, !11, i64 56, i64 4, !11, i64 60, i64 4, !11, i64 64, i64 4, !11, i64 68, i64 4, !11, i64 72, i64 4, !11, i64 76, i64 4, !11, i64 80, i64 4, !11, i64 84, i64 4, !11, i64 88, i64 4, !11, i64 92, i64 4, !11, i64 96, i64 4, !11, i64 100, i64 4, !11, i64 104, i64 4, !11, i64 108, i64 4, !11, i64 112, i64 4, !11, i64 116, i64 4, !11, i64 120, i64 4, !11, i64 124, i64 4, !11, i64 128, i64 4, !11, i64 132, i64 4, !11, i64 136, i64 4, !11, i64 140, i64 4, !11, i64 144, i64 4, !11, i64 148, i64 4, !11, i64 152, i64 4, !11, i64 156, i64 4, !11, i64 160, i64 4, !11, i64 164, i64 4, !11, i64 168, i64 4, !11, i64 172, i64 4, !11, i64 176, i64 4, !11, i64 180, i64 4, !11, i64 184, i64 4, !11, i64 188, i64 4, !11, i64 192, i64 4, !11, i64 196, i64 4, !11, i64 200, i64 4, !11, i64 204, i64 4, !11, i64 208, i64 4, !11, i64 212, i64 4, !11, i64 216, i64 4, !11}
!19 = !{i64 0, i64 4, !14, i64 8, i64 8, !5, i64 16, i64 4, !11, i64 20, i64 4, !11, i64 24, i64 8, !5, i64 32, i64 4, !11, i64 40, i64 8, !5, i64 48, i64 4, !11, i64 56, i64 8, !5, i64 64, i64 8, !5}
!20 = !{!21, !12, i64 20}
!21 = !{!"_ZTSN2vk21DeviceQueueCreateInfoE", !15, i64 0, !6, i64 8, !22, i64 16, !12, i64 20, !12, i64 24, !6, i64 32}
!22 = !{!"_ZTSN2vk5FlagsINS_25DeviceQueueCreateFlagBitsEEE", !12, i64 0}
!23 = !{!24, !12, i64 8}
!24 = !{!"_ZTSN14DeviceInstance8QueueRefE", !25, i64 0, !12, i64 8, !26, i64 12}
!25 = !{!"_ZTSN2vk5QueueE", !6, i64 0}
!26 = !{!"_ZTSN2vk5FlagsINS_13QueueFlagBitsEEE", !12, i64 0}
!27 = !{i64 0, i64 8, !5}
!28 = !{i64 0, i64 4, !11}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


; 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.27" = type { %"struct.std::_Vector_base.28" }
%"struct.std::_Vector_base.28" = type { %"struct.std::_Vector_base<vk::DeviceQueueCreateInfo, std::allocator<vk::DeviceQueueCreateInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<vk::DeviceQueueCreateInfo, std::allocator<vk::DeviceQueueCreateInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<vk::DeviceQueueCreateInfo, std::allocator<vk::DeviceQueueCreateInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vk::DeviceQueueCreateInfo, std::allocator<vk::DeviceQueueCreateInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<vk::QueueFamilyProperties, std::allocator<vk::QueueFamilyProperties>>::_Vector_impl" }
%"struct.std::_Vector_base<vk::QueueFamilyProperties, std::allocator<vk::QueueFamilyProperties>>::_Vector_impl" = type { %"struct.std::_Vector_base<vk::QueueFamilyProperties, std::allocator<vk::QueueFamilyProperties>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vk::QueueFamilyProperties, std::allocator<vk::QueueFamilyProperties>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.37" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.39" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.41" = type { ptr }
%"struct.vk::DeviceQueueCreateInfo" = type { i32, ptr, %"class.vk::Flags.43", i32, i32, ptr }
%"class.vk::Flags.43" = type { i32 }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<vk::ExtensionProperties, std::allocator<vk::ExtensionProperties>>::_Vector_impl" }
%"struct.std::_Vector_base<vk::ExtensionProperties, std::allocator<vk::ExtensionProperties>>::_Vector_impl" = type { %"struct.std::_Vector_base<vk::ExtensionProperties, std::allocator<vk::ExtensionProperties>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vk::ExtensionProperties, std::allocator<vk::ExtensionProperties>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.vk::Optional.24" = type { ptr }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = 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 }
%"struct.vk::PhysicalDeviceFeatures" = 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.vk::DeviceCreateInfo" = type { i32, ptr, %"class.vk::Flags.44", i32, ptr, i32, ptr, i32, ptr, ptr }
%"class.vk::Flags.44" = type { i32 }
%"class.vk::UniqueHandle.5" = type { %"class.vk::ObjectDestroy", %"class.vk::Device" }
%"class.vk::ObjectDestroy" = type { %"class.vk::Optional", ptr }
%"class.vk::Optional" = type { ptr }
%"class.vk::Device" = type { ptr }
%"struct.DeviceInstance::QueueRef" = type { %"class.vk::Queue", i32, %"class.vk::Flags.38" }
%"class.vk::Queue" = type { ptr }
%"class.vk::Flags.38" = type { i32 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14DeviceInstance19createLogicalDeviceESt6vectorIN2vk5FlagsINS1_13QueueFlagBitsEEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.27", align 8
  %4 = alloca %"class.std::vector.32", align 8
  %5 = alloca float, align 4
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.37", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.37", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.39", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.39", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.39", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %14 = alloca %"struct.vk::DeviceQueueCreateInfo", align 8
  %15 = alloca %"struct.vk::DeviceQueueCreateInfo", align 8
  %16 = alloca %"class.vk::Flags.43", align 4
  %17 = alloca %"class.vk::Flags.43", align 4
  %18 = alloca %"class.std::vector.19", align 8
  %19 = alloca %"class.vk::Optional.24", align 8
  %20 = alloca %"class.std::vector.14", align 8
  %21 = alloca %"struct.vk::PhysicalDeviceFeatures", align 4
  %22 = alloca %"struct.vk::PhysicalDeviceFeatures", align 4
  %23 = alloca %"struct.vk::PhysicalDeviceFeatures", align 4
  %24 = alloca %"struct.vk::DeviceCreateInfo", align 8
  %25 = alloca %"struct.vk::DeviceCreateInfo", align 8
  %26 = alloca %"class.vk::Flags.44", align 4
  %27 = alloca %"class.vk::Flags.44", align 4
  %28 = alloca %"class.vk::UniqueHandle.5", align 8
  %29 = alloca %"class.vk::Optional", align 8
  %30 = alloca %"class.std::vector.32", align 8
  %31 = alloca %"struct.DeviceInstance::QueueRef", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #9
  call void @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN2vk14PhysicalDeviceESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #9
  %33 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  invoke void @_ZNK2vk14PhysicalDevice24getQueueFamilyPropertiesISaINS_21QueueFamilyPropertiesEENS_20DispatchLoaderStaticEEESt6vectorIS2_T_ERKT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.32") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(9) %33)
          to label %34 unwind label %41

34:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store float 1.000000e+00, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %35 = call ptr @_ZNSt6vectorIN2vk5FlagsINS0_13QueueFlagBitsEEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #9
  store ptr %35, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %36 = call ptr @_ZNSt6vectorIN2vk5FlagsINS0_13QueueFlagBitsEEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #9
  store ptr %36, ptr %7, align 8
  %37 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN2vk5FlagsINS1_13QueueFlagBitsEEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %37, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %75, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #9
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN2vk14PhysicalDeviceESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  call void @_ZN2vk8OptionalIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr null) #9
  %39 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  %40 = load ptr, ptr %19, align 8
  invoke void @_ZNK2vk14PhysicalDevice34enumerateDeviceExtensionPropertiesISaINS_19ExtensionPropertiesEENS_20DispatchLoaderStaticEEENS_15ResultValueTypeISt6vectorIS2_T_EE4typeENS_8OptionalIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.19") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %38, ptr %40, ptr noundef nonnull align 8 dereferenceable(9) %39)
          to label %82 unwind label %116

41:                                               ; preds = %2
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %148

.lr.ph:                                           ; preds = %34, %75
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN2vk5FlagsINS1_13QueueFlagBitsEEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %44 = call ptr @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %45 = call ptr @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %46 = invoke ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN2vk21QueueFamilyPropertiesESt6vectorIS3_SaIS3_EEEEZN14DeviceInstance19createLogicalDeviceES5_INS2_5FlagsINS2_13QueueFlagBitsEEESaISC_EEE3$_0ET_SG_SG_T0_"(ptr %44, ptr %45, ptr nonnull %43)
          to label %47 unwind label %50

47:                                               ; preds = %.lr.ph
  store ptr %46, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %48 = call ptr @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  store ptr %48, ptr %9, align 8
  %49 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPN2vk21QueueFamilyPropertiesESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  br i1 %49, label %75, label %52

50:                                               ; preds = %.lr.ph
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %81

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %53 = call ptr @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  store ptr %53, ptr %11, align 8
  %54 = call noundef i64 @_ZN9__gnu_cxxmiIPN2vk21QueueFamilyPropertiesESt6vectorIS2_SaIS2_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSA_SD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %55 = trunc i64 %54 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  store i32 %55, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %56 = call ptr @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %57 = call ptr @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %58 = invoke ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN2vk21DeviceQueueCreateInfoESt6vectorIS3_SaIS3_EEEEZN14DeviceInstance19createLogicalDeviceES5_INS2_5FlagsINS2_13QueueFlagBitsEEESaISC_EEE3$_1ET_SG_SG_T0_"(ptr %56, ptr %57, ptr nonnull %10)
          to label %59 unwind label %62

59:                                               ; preds = %52
  store ptr %58, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %60 = call ptr @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  store ptr %60, ptr %13, align 8
  %61 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN2vk21DeviceQueueCreateInfoESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br i1 %61, label %74, label %64

62:                                               ; preds = %52
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %80

64:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #9
  call void @_ZN2vk5FlagsINS_25DeviceQueueCreateFlagBitsEEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %16) #9
  %65 = load i32, ptr %16, align 4
  call void @_ZN2vk21DeviceQueueCreateInfoC2ENS_5FlagsINS_25DeviceQueueCreateFlagBitsEEEjjPKf(ptr noundef nonnull align 8 dereferenceable(40) %15, i32 %65, i32 noundef 0, i32 noundef 0, ptr noundef null) #9
  call void @_ZN2vk5FlagsINS_25DeviceQueueCreateFlagBitsEEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %17) #9
  %66 = load i32, ptr %17, align 4
  %67 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vk21DeviceQueueCreateInfo8setFlagsENS_5FlagsINS_25DeviceQueueCreateFlagBitsEEE(ptr noundef nonnull align 8 dereferenceable(40) %15, i32 %66) #9
  %68 = load i32, ptr %10, align 4, !tbaa !9
  %69 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vk21DeviceQueueCreateInfo19setQueueFamilyIndexEj(ptr noundef nonnull align 8 dereferenceable(40) %67, i32 noundef %68) #9
  %70 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vk21DeviceQueueCreateInfo13setQueueCountEj(ptr noundef nonnull align 8 dereferenceable(40) %69, i32 noundef 1) #9
  %71 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vk21DeviceQueueCreateInfo19setPQueuePrioritiesEPKf(ptr noundef nonnull align 8 dereferenceable(40) %70, ptr noundef nonnull %5) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull align 8 dereferenceable(40) %71, i64 40, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #9
  %72 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(40) %14)
          to label %73 unwind label %78

73:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #9
  br label %74

74:                                               ; preds = %59, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  br label %75

75:                                               ; preds = %47, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN2vk5FlagsINS1_13QueueFlagBitsEEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %77 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN2vk5FlagsINS1_13QueueFlagBitsEEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %77, label %.lr.ph, label %._crit_edge

78:                                               ; preds = %64
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #9
  br label %80

80:                                               ; preds = %78, %62
  %.pn34 = phi { ptr, i32 } [ %79, %78 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  br label %81

81:                                               ; preds = %80, %50
  %.pn34.pn = phi { ptr, i32 } [ %.pn34, %80 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  br label %147

82:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #9
  call void @_ZNSt6vectorIPKcSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  call void @llvm.lifetime.start.p0(i64 220, ptr nonnull %21) #9
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN2vk14PhysicalDeviceESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %84 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  call void @_ZNK2vk14PhysicalDevice11getFeaturesINS_20DispatchLoaderStaticEEENS_22PhysicalDeviceFeaturesERKT_(ptr dead_on_unwind nonnull writable sret(%"struct.vk::PhysicalDeviceFeatures") align 4 %21, ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull align 8 dereferenceable(9) %84) #9
  call void @llvm.lifetime.start.p0(i64 220, ptr nonnull %22) #9
  call void @llvm.lifetime.start.p0(i64 220, ptr nonnull %23) #9
  call void @_ZN2vk22PhysicalDeviceFeaturesC2Ejjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj(ptr noundef nonnull align 4 dereferenceable(220) %23, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0) #9
  %85 = getelementptr inbounds i8, ptr %21, i64 36
  %86 = load i32, ptr %85, align 4, !tbaa !16
  %87 = call noundef nonnull align 4 dereferenceable(220) ptr @_ZN2vk22PhysicalDeviceFeatures20setMultiDrawIndirectEj(ptr noundef nonnull align 4 dereferenceable(220) %23, i32 noundef %86) #9
  %88 = call noundef nonnull align 4 dereferenceable(220) ptr @_ZN2vk22PhysicalDeviceFeatures21setTessellationShaderEj(ptr noundef nonnull align 4 dereferenceable(220) %87, i32 noundef 1) #9
  %89 = call noundef nonnull align 4 dereferenceable(220) ptr @_ZN2vk22PhysicalDeviceFeatures17setGeometryShaderEj(ptr noundef nonnull align 4 dereferenceable(220) %88, i32 noundef 1) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(220) %22, ptr noundef nonnull align 4 dereferenceable(220) %89, i64 220, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 220, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %24) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %25) #9
  call void @_ZN2vk5FlagsINS_20DeviceCreateFlagBitsEEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %26) #9
  %90 = load i32, ptr %26, align 4
  call void @_ZN2vk16DeviceCreateInfoC2ENS_5FlagsINS_20DeviceCreateFlagBitsEEEjPKNS_21DeviceQueueCreateInfoEjPKPKcjSA_PKNS_22PhysicalDeviceFeaturesE(ptr noundef nonnull align 8 dereferenceable(72) %25, i32 %90, i32 noundef 0, ptr noundef null, i32 noundef 0, ptr noundef null, i32 noundef 0, ptr noundef null, ptr noundef null) #9
  call void @_ZN2vk5FlagsINS_20DeviceCreateFlagBitsEEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %27) #9
  %91 = load i32, ptr %27, align 4
  %92 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo8setFlagsENS_5FlagsINS_20DeviceCreateFlagBitsEEE(ptr noundef nonnull align 8 dereferenceable(72) %25, i32 %91) #9
  %93 = call noundef i64 @_ZNKSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %94 = trunc i64 %93 to i32
  %95 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo23setQueueCreateInfoCountEj(ptr noundef nonnull align 8 dereferenceable(72) %92, i32 noundef %94) #9
  %96 = call noundef ptr @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %97 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo20setPQueueCreateInfosEPKNS_21DeviceQueueCreateInfoE(ptr noundef nonnull align 8 dereferenceable(72) %95, ptr noundef %96) #9
  %98 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo20setEnabledLayerCountEj(ptr noundef nonnull align 8 dereferenceable(72) %97, i32 noundef 0) #9
  %99 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo22setPpEnabledLayerNamesEPKPKc(ptr noundef nonnull align 8 dereferenceable(72) %98, ptr noundef null) #9
  %100 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  %101 = trunc i64 %100 to i32
  %102 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo24setEnabledExtensionCountEj(ptr noundef nonnull align 8 dereferenceable(72) %99, i32 noundef %101) #9
  %103 = call noundef ptr @_ZNSt6vectorIPKcSaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  %104 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo26setPpEnabledExtensionNamesEPKPKc(ptr noundef nonnull align 8 dereferenceable(72) %102, ptr noundef %103) #9
  %105 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo19setPEnabledFeaturesEPKNS_22PhysicalDeviceFeaturesE(ptr noundef nonnull align 8 dereferenceable(72) %104, ptr noundef nonnull %22) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %24, ptr noundef nonnull align 8 dereferenceable(72) %105, i64 72, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %25) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #9
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN2vk14PhysicalDeviceESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  call void @_ZN2vk8OptionalIKNS_19AllocationCallbacksEEC2EDn(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr null) #9
  %107 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  %108 = load ptr, ptr %29, align 8
  invoke void @_ZNK2vk14PhysicalDevice18createDeviceUniqueINS_20DispatchLoaderStaticEEENS_15ResultValueTypeINS_12UniqueHandleINS_6DeviceET_EEE4typeERKNS_16DeviceCreateInfoENS_8OptionalIKNS_19AllocationCallbacksEEERKS6_(ptr dead_on_unwind nonnull writable sret(%"class.vk::UniqueHandle.5") align 8 %28, ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull align 8 dereferenceable(72) %24, ptr %108, ptr noundef nonnull align 8 dereferenceable(9) %107)
          to label %109 unwind label %118

109:                                              ; preds = %82
  %110 = getelementptr inbounds i8, ptr %0, i64 48
  %111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN2vk12UniqueHandleINS_6DeviceENS_20DispatchLoaderStaticEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %110, ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  call void @_ZN2vk12UniqueHandleINS_6DeviceENS_20DispatchLoaderStaticEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #9
  %112 = call noundef i64 @_ZNKSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %.not = icmp eq i64 %112, 0
  br i1 %.not, label %._crit_edge42, label %.lr.ph41

.lr.ph41:                                         ; preds = %109
  %113 = getelementptr inbounds i8, ptr %31, i64 8
  %114 = getelementptr inbounds i8, ptr %31, i64 12
  %115 = getelementptr inbounds i8, ptr %0, i64 72
  br label %120

._crit_edge42:                                    ; preds = %135, %109
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 220, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 220, ptr nonnull %21) #9
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #9
  call void @_ZNSt6vectorIN2vk19ExtensionPropertiesESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  call void @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  ret void

116:                                              ; preds = %._crit_edge
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %146

118:                                              ; preds = %82
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #9
  br label %145

120:                                              ; preds = %.lr.ph41, %135
  %121 = phi i64 [ 0, %.lr.ph41 ], [ %137, %135 ]
  %.02739 = phi i32 [ 0, %.lr.ph41 ], [ %136, %135 ]
  %122 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %121) #9
  %123 = getelementptr inbounds i8, ptr %122, i64 20
  %124 = load i32, ptr %123, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %30) #9
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN2vk14PhysicalDeviceESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %126 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  invoke void @_ZNK2vk14PhysicalDevice24getQueueFamilyPropertiesISaINS_21QueueFamilyPropertiesEENS_20DispatchLoaderStaticEEESt6vectorIS2_T_ERKT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.32") align 8 %30, ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull align 8 dereferenceable(9) %126)
          to label %127 unwind label %140

127:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %31, i8 0, i64 16, i1 false)
  call void @_ZN14DeviceInstance8QueueRefC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #9
  store i32 %124, ptr %113, align 8, !tbaa !23
  %128 = call noundef ptr @_ZN2vk12UniqueHandleINS_6DeviceENS_20DispatchLoaderStaticEEptEv(ptr noundef nonnull align 8 dereferenceable(24) %110) #9
  %129 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  %130 = call ptr @_ZNK2vk6Device8getQueueINS_20DispatchLoaderStaticEEENS_5QueueEjjRKT_(ptr noundef nonnull align 8 dereferenceable(8) %128, i32 noundef %124, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(9) %129) #9
  store ptr %130, ptr %31, align 8, !tbaa !14
  %131 = zext i32 %124 to i64
  %132 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %131) #9
  %133 = load i32, ptr %132, align 4, !tbaa !9
  store i32 %133, ptr %114, align 4, !tbaa !9
  %134 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN14DeviceInstance8QueueRefESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %115, ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %135 unwind label %142

135:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #9
  call void @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #9
  %136 = add i32 %.02739, 1
  %137 = zext i32 %136 to i64
  %138 = call noundef i64 @_ZNKSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %139 = icmp ugt i64 %138, %137
  br i1 %139, label %120, label %._crit_edge42, !llvm.loop !27

140:                                              ; preds = %120
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %144

142:                                              ; preds = %127
  %143 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #9
  call void @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #9
  br label %144

144:                                              ; preds = %142, %140
  %.pn = phi { ptr, i32 } [ %143, %142 ], [ %141, %140 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #9
  br label %145

145:                                              ; preds = %144, %118
  %.pn.pn = phi { ptr, i32 } [ %.pn, %144 ], [ %119, %118 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 220, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 220, ptr nonnull %21) #9
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #9
  call void @_ZNSt6vectorIN2vk19ExtensionPropertiesESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  br label %146

146:                                              ; preds = %145, %116
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %145 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  br label %147

147:                                              ; preds = %146, %81
  %.pn34.pn.pn = phi { ptr, i32 } [ %.pn34.pn, %81 ], [ %.pn.pn.pn, %146 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @_ZNSt6vectorIN2vk21QueueFamilyPropertiesESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  br label %148

148:                                              ; preds = %147, %41
  %.pn34.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn, %147 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  call void @_ZNSt6vectorIN2vk21DeviceQueueCreateInfoESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn34.pn.pn.pn
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv() local_unnamed_addr #4

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

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

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

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK2vk14PhysicalDevice24getQueueFamilyPropertiesISaINS_21QueueFamilyPropertiesEENS_20DispatchLoaderStaticEEESt6vectorIS2_T_ERKT0_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.32") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #6 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN2vk5FlagsINS1_13QueueFlagBitsEEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(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 @_ZNK9__gnu_cxx17__normal_iteratorIPN2vk5FlagsINS1_13QueueFlagBitsEEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN2vk21QueueFamilyPropertiesESt6vectorIS3_SaIS3_EEEEZN14DeviceInstance19createLogicalDeviceES5_INS2_5FlagsINS2_13QueueFlagBitsEEESaISC_EEE3$_0ET_SG_SG_T0_"(ptr, ptr, ptr) local_unnamed_addr #7

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN2vk21DeviceQueueCreateInfoESt6vectorIS3_SaIS3_EEEEZN14DeviceInstance19createLogicalDeviceES5_INS2_5FlagsINS2_13QueueFlagBitsEEESaISC_EEE3$_1ET_SG_SG_T0_"(ptr, ptr, ptr) local_unnamed_addr #7

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN2vk21DeviceQueueCreateInfoESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(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 void @_ZN2vk5FlagsINS_25DeviceQueueCreateFlagBitsEEC2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vk21DeviceQueueCreateInfoC2ENS_5FlagsINS_25DeviceQueueCreateFlagBitsEEEjjPKf(ptr noundef nonnull align 8 dereferenceable(40), i32, i32 noundef, i32 noundef, ptr noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vk21DeviceQueueCreateInfo8setFlagsENS_5FlagsINS_25DeviceQueueCreateFlagBitsEEE(ptr noundef nonnull align 8 dereferenceable(40), i32) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vk21DeviceQueueCreateInfo19setQueueFamilyIndexEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vk21DeviceQueueCreateInfo13setQueueCountEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK2vk14PhysicalDevice34enumerateDeviceExtensionPropertiesISaINS_19ExtensionPropertiesEENS_20DispatchLoaderStaticEEENS_15ResultValueTypeISt6vectorIS2_T_EE4typeENS_8OptionalIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKT0_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.19") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr, ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #6 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK2vk14PhysicalDevice11getFeaturesINS_20DispatchLoaderStaticEEENS_22PhysicalDeviceFeaturesERKT_(ptr dead_on_unwind noalias writable sret(%"struct.vk::PhysicalDeviceFeatures") align 4, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #8 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(220) ptr @_ZN2vk22PhysicalDeviceFeatures20setMultiDrawIndirectEj(ptr noundef nonnull align 4 dereferenceable(220), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(220) ptr @_ZN2vk22PhysicalDeviceFeatures21setTessellationShaderEj(ptr noundef nonnull align 4 dereferenceable(220), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(220) ptr @_ZN2vk22PhysicalDeviceFeatures17setGeometryShaderEj(ptr noundef nonnull align 4 dereferenceable(220), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vk16DeviceCreateInfoC2ENS_5FlagsINS_20DeviceCreateFlagBitsEEEjPKNS_21DeviceQueueCreateInfoEjPKPKcjSA_PKNS_22PhysicalDeviceFeaturesE(ptr noundef nonnull align 8 dereferenceable(72), i32, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo8setFlagsENS_5FlagsINS_20DeviceCreateFlagBitsEEE(ptr noundef nonnull align 8 dereferenceable(72), i32) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo23setQueueCreateInfoCountEj(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo20setEnabledLayerCountEj(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN2vk16DeviceCreateInfo24setEnabledExtensionCountEj(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK2vk14PhysicalDevice18createDeviceUniqueINS_20DispatchLoaderStaticEEENS_15ResultValueTypeINS_12UniqueHandleINS_6DeviceET_EEE4typeERKNS_16DeviceCreateInfoENS_8OptionalIKNS_19AllocationCallbacksEEERKS6_(ptr dead_on_unwind noalias writable sret(%"class.vk::UniqueHandle.5") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(72), ptr, ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #6 align 2

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local ptr @_ZNK2vk6Device8getQueueINS_20DispatchLoaderStaticEEENS_5QueueEjjRKT_(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #8 align 2

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

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

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 4, !12, i64 8, i64 8, !14, i64 16, i64 4, !9, i64 20, i64 4, !9, i64 24, i64 4, !9, i64 32, i64 8, !14}
!12 = !{!13, !13, i64 0}
!13 = !{!"_ZTSN2vk13StructureTypeE", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!17, !10, i64 36}
!17 = !{!"_ZTSN2vk22PhysicalDeviceFeaturesE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216}
!18 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 4, !9, i64 20, i64 4, !9, i64 24, i64 4, !9, i64 28, i64 4, !9, i64 32, i64 4, !9, i64 36, i64 4, !9, i64 40, i64 4, !9, i64 44, i64 4, !9, i64 48, i64 4, !9, i64 52, i64 4, !9, i64 56, i64 4, !9, i64 60, i64 4, !9, i64 64, i64 4, !9, i64 68, i64 4, !9, i64 72, i64 4, !9, i64 76, i64 4, !9, i64 80, i64 4, !9, i64 84, i64 4, !9, i64 88, i64 4, !9, i64 92, i64 4, !9, i64 96, i64 4, !9, i64 100, i64 4, !9, i64 104, i64 4, !9, i64 108, i64 4, !9, i64 112, i64 4, !9, i64 116, i64 4, !9, i64 120, i64 4, !9, i64 124, i64 4, !9, i64 128, i64 4, !9, i64 132, i64 4, !9, i64 136, i64 4, !9, i64 140, i64 4, !9, i64 144, i64 4, !9, i64 148, i64 4, !9, i64 152, i64 4, !9, i64 156, i64 4, !9, i64 160, i64 4, !9, i64 164, i64 4, !9, i64 168, i64 4, !9, i64 172, i64 4, !9, i64 176, i64 4, !9, i64 180, i64 4, !9, i64 184, i64 4, !9, i64 188, i64 4, !9, i64 192, i64 4, !9, i64 196, i64 4, !9, i64 200, i64 4, !9, i64 204, i64 4, !9, i64 208, i64 4, !9, i64 212, i64 4, !9, i64 216, i64 4, !9}
!19 = !{i64 0, i64 4, !12, i64 8, i64 8, !14, i64 16, i64 4, !9, i64 20, i64 4, !9, i64 24, i64 8, !14, i64 32, i64 4, !9, i64 40, i64 8, !14, i64 48, i64 4, !9, i64 56, i64 8, !14, i64 64, i64 8, !14}
!20 = !{!21, !10, i64 20}
!21 = !{!"_ZTSN2vk21DeviceQueueCreateInfoE", !13, i64 0, !15, i64 8, !22, i64 16, !10, i64 20, !10, i64 24, !15, i64 32}
!22 = !{!"_ZTSN2vk5FlagsINS_25DeviceQueueCreateFlagBitsEEE", !10, i64 0}
!23 = !{!24, !10, i64 8}
!24 = !{!"_ZTSN14DeviceInstance8QueueRefE", !25, i64 0, !10, i64 8, !26, i64 12}
!25 = !{!"_ZTSN2vk5QueueE", !15, i64 0}
!26 = !{!"_ZTSN2vk5FlagsINS_13QueueFlagBitsEEE", !10, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


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