; LLVM IR from hbatagelo/abcg :: abcg (abcgVulkanDevice)

; 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.vk::CommandBuffer" = type { ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<vk::CommandBuffer, std::allocator<vk::CommandBuffer>>::_Vector_impl" }
%"struct.std::_Vector_base<vk::CommandBuffer, std::allocator<vk::CommandBuffer>>::_Vector_impl" = type { %"struct.std::_Vector_base<vk::CommandBuffer, std::allocator<vk::CommandBuffer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vk::CommandBuffer, std::allocator<vk::CommandBuffer>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vk::CommandBufferAllocateInfo" = type { i32, ptr, %"class.vk::CommandPool", i32, i32 }
%"class.vk::CommandPool" = type { ptr }
%"struct.vk::CommandBufferBeginInfo" = type { i32, ptr, %"class.vk::Flags.17", ptr }
%"class.vk::Flags.17" = type { i32 }
%"class.vk::ArrayProxy" = type { i32, ptr }
%"class.std::initializer_list.18" = type { ptr, i64 }
%"struct.vk::SubmitInfo" = type { i32, ptr, i32, ptr, ptr, i32, ptr, i32, ptr }
%"class.vk::Fence" = type { ptr }
%"class.vk::ArrayProxy.19" = type { i32, ptr }
%"class.std::initializer_list.20" = type { ptr, i64 }
%"class.abcg::VulkanDevice" = type { %"class.vk::Device", %"class.abcg::VulkanPhysicalDevice", %"struct.abcg::VulkanCommandPools", %"struct.abcg::VulkanQueues" }
%"class.vk::Device" = type { ptr }
%"class.abcg::VulkanPhysicalDevice" = type <{ %"class.vk::PhysicalDevice", %"class.abcg::VulkanInstance", %"class.vk::SurfaceKHR", i32, %"struct.abcg::VulkanQueuesFamilies", [4 x i8] }>
%"class.vk::PhysicalDevice" = type { ptr }
%"class.abcg::VulkanInstance" = type { %"class.vk::Instance", %"class.vk::DebugUtilsMessengerEXT" }
%"class.vk::Instance" = type { ptr }
%"class.vk::DebugUtilsMessengerEXT" = type { ptr }
%"class.vk::SurfaceKHR" = type { ptr }
%"struct.abcg::VulkanQueuesFamilies" = type { %"class.std::optional", %"class.std::optional", %"class.std::optional", %"class.std::optional" }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload_base.base", [3 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<unsigned int>::_Storage", i8 }>
%"union.std::_Optional_payload_base<unsigned int>::_Storage" = type { i32 }
%"struct.abcg::VulkanCommandPools" = type { %"class.vk::CommandPool", %"class.vk::CommandPool", %"class.vk::CommandPool" }
%"struct.abcg::VulkanQueues" = type { %"class.vk::Queue", %"class.vk::Queue", %"class.vk::Queue", %"class.vk::Queue" }
%"class.vk::Queue" = type { ptr }

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4abcg12VulkanDevice17withCommandBufferERKSt8functionIFvRKN2vk13CommandBufferEEENS2_13QueueFlagBitsENS2_18CommandBufferLevelE(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2, i32 noundef %3) #3 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.vk::CommandBuffer", align 8
  %12 = alloca %"class.std::vector.12", align 8
  %13 = alloca %"struct.vk::CommandBufferAllocateInfo", align 8
  %14 = alloca %"struct.vk::CommandBufferBeginInfo", align 8
  %15 = alloca %"class.vk::ArrayProxy", align 8
  %16 = alloca %"class.std::initializer_list.18", align 8
  %17 = alloca [1 x %"struct.vk::SubmitInfo"], align 8
  %18 = alloca %"class.vk::Fence", align 8
  %19 = alloca %"class.vk::CommandPool", align 8
  %20 = alloca %"class.vk::ArrayProxy.19", align 8
  %21 = alloca %"class.std::initializer_list.20", align 8
  %22 = alloca [1 x %"class.vk::CommandBuffer"], align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !11
  %23 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store ptr null, ptr %10, align 8, !tbaa !5
  %24 = load i32, ptr %7, align 4, !tbaa !9
  switch i32 %24, label %36 [
    i32 2, label %25
    i32 4, label %30
    i32 1, label %35
  ]

25:                                               ; preds = %4
  %26 = getelementptr inbounds %"class.abcg::VulkanDevice", ptr %23, i32 0, i32 3
  %27 = getelementptr inbounds %"struct.abcg::VulkanQueues", ptr %26, i32 0, i32 0
  store ptr %27, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.abcg::VulkanDevice", ptr %23, i32 0, i32 2
  %29 = getelementptr inbounds %"struct.abcg::VulkanCommandPools", ptr %28, i32 0, i32 0
  store ptr %29, ptr %10, align 8, !tbaa !5
  br label %41

30:                                               ; preds = %4
  %31 = getelementptr inbounds %"class.abcg::VulkanDevice", ptr %23, i32 0, i32 3
  %32 = getelementptr inbounds %"struct.abcg::VulkanQueues", ptr %31, i32 0, i32 3
  store ptr %32, ptr %9, align 8, !tbaa !5
  %33 = getelementptr inbounds %"class.abcg::VulkanDevice", ptr %23, i32 0, i32 2
  %34 = getelementptr inbounds %"struct.abcg::VulkanCommandPools", ptr %33, i32 0, i32 2
  store ptr %34, ptr %10, align 8, !tbaa !5
  br label %41

35:                                               ; preds = %4
  br label %36

36:                                               ; preds = %35, %4
  %37 = getelementptr inbounds %"class.abcg::VulkanDevice", ptr %23, i32 0, i32 3
  %38 = getelementptr inbounds %"struct.abcg::VulkanQueues", ptr %37, i32 0, i32 1
  store ptr %38, ptr %9, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.abcg::VulkanDevice", ptr %23, i32 0, i32 2
  %40 = getelementptr inbounds %"struct.abcg::VulkanCommandPools", ptr %39, i32 0, i32 1
  store ptr %40, ptr %10, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %36, %30, %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #8
  %42 = getelementptr inbounds %"class.abcg::VulkanDevice", ptr %23, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #8
  %43 = getelementptr inbounds %"struct.vk::CommandBufferAllocateInfo", ptr %13, i32 0, i32 0
  store i32 40, ptr %43, align 8, !tbaa !13
  %44 = getelementptr inbounds %"struct.vk::CommandBufferAllocateInfo", ptr %13, i32 0, i32 1
  store ptr null, ptr %44, align 8, !tbaa !18
  %45 = getelementptr inbounds %"struct.vk::CommandBufferAllocateInfo", ptr %13, i32 0, i32 2
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %46, i64 8, i1 false), !tbaa.struct !19
  %47 = getelementptr inbounds %"struct.vk::CommandBufferAllocateInfo", ptr %13, i32 0, i32 3
  %48 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %48, ptr %47, align 8, !tbaa !20
  %49 = getelementptr inbounds %"struct.vk::CommandBufferAllocateInfo", ptr %13, i32 0, i32 4
  store i32 1, ptr %49, align 4, !tbaa !21
  %50 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  call void @_ZNK2vk6Device22allocateCommandBuffersISaINS_13CommandBufferEENS_20DispatchLoaderStaticEEENS_15ResultValueTypeISt6vectorIS2_T_EE4typeERKNS_25CommandBufferAllocateInfoERKT0_(ptr dead_on_unwind writable sret(%"class.std::vector.12") align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(9) %50)
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN2vk13CommandBufferESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %51, i64 8, i1 false), !tbaa.struct !19
  call void @_ZNSt6vectorIN2vk13CommandBufferESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  %52 = getelementptr inbounds %"struct.vk::CommandBufferBeginInfo", ptr %14, i32 0, i32 0
  store i32 42, ptr %52, align 8, !tbaa !22
  %53 = getelementptr inbounds %"struct.vk::CommandBufferBeginInfo", ptr %14, i32 0, i32 1
  store ptr null, ptr %53, align 8, !tbaa !25
  %54 = getelementptr inbounds %"struct.vk::CommandBufferBeginInfo", ptr %14, i32 0, i32 2
  call void @_ZN2vk5FlagsINS_26CommandBufferUsageFlagBitsEEC2ES1_(ptr noundef nonnull align 4 dereferenceable(4) %54, i32 noundef 1) #8
  %55 = getelementptr inbounds %"struct.vk::CommandBufferBeginInfo", ptr %14, i32 0, i32 3
  store ptr null, ptr %55, align 8, !tbaa !26
  %56 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  call void @_ZNK2vk13CommandBuffer5beginINS_20DispatchLoaderStaticEEEvRKNS_22CommandBufferBeginInfoERKT_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(9) %56)
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNKSt8functionIFvRKN2vk13CommandBufferEEEclES3_(ptr noundef nonnull align 8 dereferenceable(32) %57, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %58 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  call void @_ZNK2vk13CommandBuffer3endINS_20DispatchLoaderStaticEEEvRKT_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(9) %58)
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %17) #8
  %60 = getelementptr inbounds %"struct.vk::SubmitInfo", ptr %17, i32 0, i32 0
  store i32 4, ptr %60, align 8, !tbaa !27
  %61 = getelementptr inbounds %"struct.vk::SubmitInfo", ptr %17, i32 0, i32 1
  store ptr null, ptr %61, align 8, !tbaa !29
  %62 = getelementptr inbounds %"struct.vk::SubmitInfo", ptr %17, i32 0, i32 2
  store i32 0, ptr %62, align 8, !tbaa !30
  %63 = getelementptr inbounds %"struct.vk::SubmitInfo", ptr %17, i32 0, i32 3
  store ptr null, ptr %63, align 8, !tbaa !31
  %64 = getelementptr inbounds %"struct.vk::SubmitInfo", ptr %17, i32 0, i32 4
  store ptr null, ptr %64, align 8, !tbaa !32
  %65 = getelementptr inbounds %"struct.vk::SubmitInfo", ptr %17, i32 0, i32 5
  store i32 1, ptr %65, align 8, !tbaa !33
  %66 = getelementptr inbounds %"struct.vk::SubmitInfo", ptr %17, i32 0, i32 6
  store ptr %11, ptr %66, align 8, !tbaa !34
  %67 = getelementptr inbounds %"struct.vk::SubmitInfo", ptr %17, i32 0, i32 7
  store i32 0, ptr %67, align 8, !tbaa !35
  %68 = getelementptr inbounds %"struct.vk::SubmitInfo", ptr %17, i32 0, i32 8
  store ptr null, ptr %68, align 8, !tbaa !36
  %69 = getelementptr inbounds %"class.std::initializer_list.18", ptr %16, i32 0, i32 0
  store ptr %17, ptr %69, align 8, !tbaa !37
  %70 = getelementptr inbounds %"class.std::initializer_list.18", ptr %16, i32 0, i32 1
  store i64 1, ptr %70, align 8, !tbaa !40
  call void @_ZN2vk10ArrayProxyIKNS_10SubmitInfoEEC2IS2_TnNSt9enable_ifIXsr3std8is_constIT_EE5valueEiE4typeELi0EEERKSt16initializer_listIS1_E(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16) #8
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 8, i1 false)
  call void @_ZN2vk5FenceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  %71 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  %72 = getelementptr inbounds %"class.vk::Fence", ptr %18, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8
  call void @_ZNK2vk5Queue6submitINS_20DispatchLoaderStaticEEEvRKNS_10ArrayProxyIKNS_10SubmitInfoEEENS_5FenceERKT_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr %73, ptr noundef nonnull align 8 dereferenceable(9) %71)
  call void @llvm.lifetime.end.p0(i64 72, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  call void @_ZNK2vk5Queue8waitIdleINS_20DispatchLoaderStaticEEEvRKT_(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull align 8 dereferenceable(9) %75)
  %76 = getelementptr inbounds %"class.abcg::VulkanDevice", ptr %23, i32 0, i32 0
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %77, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %11, i64 8, i1 false), !tbaa.struct !19
  %78 = getelementptr inbounds %"class.std::initializer_list.20", ptr %21, i32 0, i32 0
  store ptr %22, ptr %78, align 8, !tbaa !41
  %79 = getelementptr inbounds %"class.std::initializer_list.20", ptr %21, i32 0, i32 1
  store i64 1, ptr %79, align 8, !tbaa !43
  call void @_ZN2vk10ArrayProxyIKNS_13CommandBufferEEC2IS2_TnNSt9enable_ifIXsr3std8is_constIT_EE5valueEiE4typeELi0EEERKSt16initializer_listIS1_E(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21) #8
  %80 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  %81 = getelementptr inbounds %"class.vk::CommandPool", ptr %19, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8
  call void @_ZNK2vk6Device18freeCommandBuffersINS_20DispatchLoaderStaticEEEvNS_11CommandPoolERKNS_10ArrayProxyIKNS_13CommandBufferEEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr %82, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(9) %80) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  ret void
}

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK2vk13CommandBuffer5beginINS_20DispatchLoaderStaticEEEvRKNS_22CommandBufferBeginInfoERKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(9)) #4 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK2vk13CommandBuffer3endINS_20DispatchLoaderStaticEEEvRKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(9)) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK2vk5Queue6submitINS_20DispatchLoaderStaticEEEvRKNS_10ArrayProxyIKNS_10SubmitInfoEEENS_5FenceERKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16), ptr, ptr noundef nonnull align 8 dereferenceable(9)) #4 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK2vk5Queue8waitIdleINS_20DispatchLoaderStaticEEEvRKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(9)) #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK2vk6Device18freeCommandBuffersINS_20DispatchLoaderStaticEEEvNS_11CommandPoolERKNS_10ArrayProxyIKNS_13CommandBufferEEERKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(9)) #7 align 2

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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 #8 = { 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 = !{!"_ZTSN2vk13QueueFlagBitsE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN2vk18CommandBufferLevelE", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN2vk25CommandBufferAllocateInfoE", !15, i64 0, !6, i64 8, !16, i64 16, !12, i64 24, !17, i64 28}
!15 = !{!"_ZTSN2vk13StructureTypeE", !7, i64 0}
!16 = !{!"_ZTSN2vk11CommandPoolE", !6, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!14, !6, i64 8}
!19 = !{i64 0, i64 8, !5}
!20 = !{!14, !12, i64 24}
!21 = !{!14, !17, i64 28}
!22 = !{!23, !15, i64 0}
!23 = !{!"_ZTSN2vk22CommandBufferBeginInfoE", !15, i64 0, !6, i64 8, !24, i64 16, !6, i64 24}
!24 = !{!"_ZTSN2vk5FlagsINS_26CommandBufferUsageFlagBitsEEE", !17, i64 0}
!25 = !{!23, !6, i64 8}
!26 = !{!23, !6, i64 24}
!27 = !{!28, !15, i64 0}
!28 = !{!"_ZTSN2vk10SubmitInfoE", !15, i64 0, !6, i64 8, !17, i64 16, !6, i64 24, !6, i64 32, !17, i64 40, !6, i64 48, !17, i64 56, !6, i64 64}
!29 = !{!28, !6, i64 8}
!30 = !{!28, !17, i64 16}
!31 = !{!28, !6, i64 24}
!32 = !{!28, !6, i64 32}
!33 = !{!28, !17, i64 40}
!34 = !{!28, !6, i64 48}
!35 = !{!28, !17, i64 56}
!36 = !{!28, !6, i64 64}
!37 = !{!38, !6, i64 0}
!38 = !{!"_ZTSSt16initializer_listIN2vk10SubmitInfoEE", !6, i64 0, !39, i64 8}
!39 = !{!"long", !7, i64 0}
!40 = !{!38, !39, i64 8}
!41 = !{!42, !6, i64 0}
!42 = !{!"_ZTSSt16initializer_listIN2vk13CommandBufferEE", !6, i64 0, !39, i64 8}
!43 = !{!42, !39, i64 8}


; 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.vk::CommandBuffer" = type { ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<vk::CommandBuffer, std::allocator<vk::CommandBuffer>>::_Vector_impl" }
%"struct.std::_Vector_base<vk::CommandBuffer, std::allocator<vk::CommandBuffer>>::_Vector_impl" = type { %"struct.std::_Vector_base<vk::CommandBuffer, std::allocator<vk::CommandBuffer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vk::CommandBuffer, std::allocator<vk::CommandBuffer>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vk::CommandBufferAllocateInfo" = type { i32, ptr, %"class.vk::CommandPool", i32, i32 }
%"class.vk::CommandPool" = type { ptr }
%"struct.vk::CommandBufferBeginInfo" = type { i32, ptr, %"class.vk::Flags.17", ptr }
%"class.vk::Flags.17" = type { i32 }
%"class.vk::ArrayProxy" = type { i32, ptr }
%"class.std::initializer_list.18" = type { ptr, i64 }
%"struct.vk::SubmitInfo" = type { i32, ptr, i32, ptr, ptr, i32, ptr, i32, ptr }
%"class.vk::Fence" = type { ptr }
%"class.vk::ArrayProxy.19" = type { i32, ptr }
%"class.std::initializer_list.20" = type { ptr, i64 }

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4abcg12VulkanDevice17withCommandBufferERKSt8functionIFvRKN2vk13CommandBufferEEENS2_13QueueFlagBitsENS2_18CommandBufferLevelE(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 align 2 {
  %5 = alloca %"class.vk::CommandBuffer", align 8
  %6 = alloca %"class.std::vector.12", align 8
  %7 = alloca %"struct.vk::CommandBufferAllocateInfo", align 8
  %8 = alloca %"struct.vk::CommandBufferBeginInfo", align 8
  %9 = alloca %"class.vk::ArrayProxy", align 8
  %10 = alloca %"class.std::initializer_list.18", align 8
  %11 = alloca [1 x %"struct.vk::SubmitInfo"], align 8
  %12 = alloca %"class.vk::Fence", align 8
  %13 = alloca %"class.vk::ArrayProxy.19", align 8
  %14 = alloca %"class.std::initializer_list.20", align 8
  %15 = alloca [1 x %"class.vk::CommandBuffer"], align 8
  switch i32 %2, label %17 [
    i32 2, label %18
    i32 4, label %16
  ]

16:                                               ; preds = %4
  br label %18

17:                                               ; preds = %4
  br label %18

18:                                               ; preds = %4, %17, %16
  %.sink8 = phi i64 [ 112, %17 ], [ 128, %16 ], [ 104, %4 ]
  %.sink = phi i64 [ 88, %17 ], [ 96, %16 ], [ 80, %4 ]
  %19 = getelementptr inbounds i8, ptr %0, i64 %.sink8
  %20 = getelementptr inbounds i8, ptr %0, i64 %.sink
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  store i32 40, ptr %7, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr null, ptr %21, align 8, !tbaa !14
  %22 = getelementptr inbounds i8, ptr %7, i64 16
  %23 = load i64, ptr %20, align 8, !tbaa !15
  store i64 %23, ptr %22, align 8, !tbaa !15
  %24 = getelementptr inbounds i8, ptr %7, i64 24
  store i32 %3, ptr %24, align 8, !tbaa !16
  %25 = getelementptr inbounds i8, ptr %7, i64 28
  store i32 1, ptr %25, align 4, !tbaa !17
  %26 = tail call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  call void @_ZNK2vk6Device22allocateCommandBuffersISaINS_13CommandBufferEENS_20DispatchLoaderStaticEEENS_15ResultValueTypeISt6vectorIS2_T_EE4typeERKNS_25CommandBufferAllocateInfoERKT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.12") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(9) %26)
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN2vk13CommandBufferESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %28 = load i64, ptr %27, align 8, !tbaa !15
  store i64 %28, ptr %5, align 8, !tbaa !15
  call void @_ZNSt6vectorIN2vk13CommandBufferESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  store i32 42, ptr %8, align 8, !tbaa !18
  %29 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr null, ptr %29, align 8, !tbaa !21
  %30 = getelementptr inbounds i8, ptr %8, i64 16
  call void @_ZN2vk5FlagsINS_26CommandBufferUsageFlagBitsEEC2ES1_(ptr noundef nonnull align 4 dereferenceable(4) %30, i32 noundef 1) #7
  %31 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr null, ptr %31, align 8, !tbaa !22
  %32 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  call void @_ZNK2vk13CommandBuffer5beginINS_20DispatchLoaderStaticEEEvRKNS_22CommandBufferBeginInfoERKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(9) %32)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  call void @_ZNKSt8functionIFvRKN2vk13CommandBufferEEEclES3_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %33 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  call void @_ZNK2vk13CommandBuffer3endINS_20DispatchLoaderStaticEEEvRKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(9) %33)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %11) #7
  store i32 4, ptr %11, align 8, !tbaa !23
  %34 = getelementptr inbounds i8, ptr %11, i64 8
  store ptr null, ptr %34, align 8, !tbaa !25
  %35 = getelementptr inbounds i8, ptr %11, i64 16
  store i32 0, ptr %35, align 8, !tbaa !26
  %36 = getelementptr inbounds i8, ptr %11, i64 24
  %37 = getelementptr inbounds i8, ptr %11, i64 40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %36, i8 0, i64 16, i1 false)
  store i32 1, ptr %37, align 8, !tbaa !27
  %38 = getelementptr inbounds i8, ptr %11, i64 48
  store ptr %5, ptr %38, align 8, !tbaa !28
  %39 = getelementptr inbounds i8, ptr %11, i64 56
  store i32 0, ptr %39, align 8, !tbaa !29
  %40 = getelementptr inbounds i8, ptr %11, i64 64
  store ptr null, ptr %40, align 8, !tbaa !30
  store ptr %11, ptr %10, align 8, !tbaa !31
  %41 = getelementptr inbounds i8, ptr %10, i64 8
  store i64 1, ptr %41, align 8, !tbaa !34
  call void @_ZN2vk10ArrayProxyIKNS_10SubmitInfoEEC2IS2_TnNSt9enable_ifIXsr3std8is_constIT_EE5valueEiE4typeELi0EEERKSt16initializer_listIS1_E(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  store i64 0, ptr %12, align 8
  call void @_ZN2vk5FenceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %42 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  %43 = load ptr, ptr %12, align 8
  call void @_ZNK2vk5Queue6submitINS_20DispatchLoaderStaticEEEvRKNS_10ArrayProxyIKNS_10SubmitInfoEEENS_5FenceERKT_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr %43, ptr noundef nonnull align 8 dereferenceable(9) %42)
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  %44 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  call void @_ZNK2vk5Queue8waitIdleINS_20DispatchLoaderStaticEEEvRKT_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(9) %44)
  %.sroa.0.0.copyload = load ptr, ptr %20, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %45 = load i64, ptr %5, align 8, !tbaa !15
  store i64 %45, ptr %15, align 8, !tbaa !15
  store ptr %15, ptr %14, align 8, !tbaa !35
  %46 = getelementptr inbounds i8, ptr %14, i64 8
  store i64 1, ptr %46, align 8, !tbaa !37
  call void @_ZN2vk10ArrayProxyIKNS_13CommandBufferEEC2IS2_TnNSt9enable_ifIXsr3std8is_constIT_EE5valueEiE4typeELi0EEERKSt16initializer_listIS1_E(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  %47 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZN2vkL23getDispatchLoaderStaticEv()
  call void @_ZNK2vk6Device18freeCommandBuffersINS_20DispatchLoaderStaticEEEvNS_11CommandPoolERKNS_10ArrayProxyIKNS_13CommandBufferEEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr %.sroa.0.0.copyload, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(9) %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  ret void
}

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK2vk13CommandBuffer5beginINS_20DispatchLoaderStaticEEEvRKNS_22CommandBufferBeginInfoERKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvRKN2vk13CommandBufferEEEclES3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK2vk13CommandBuffer3endINS_20DispatchLoaderStaticEEEvRKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK2vk5Queue6submitINS_20DispatchLoaderStaticEEEvRKNS_10ArrayProxyIKNS_10SubmitInfoEEENS_5FenceERKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16), ptr, ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK2vk5Queue8waitIdleINS_20DispatchLoaderStaticEEEvRKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #3 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN2vk25CommandBufferAllocateInfoE", !7, i64 0, !10, i64 8, !11, i64 16, !12, i64 24, !13, i64 28}
!7 = !{!"_ZTSN2vk13StructureTypeE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTSN2vk11CommandPoolE", !10, i64 0}
!12 = !{!"_ZTSN2vk18CommandBufferLevelE", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!6, !10, i64 8}
!15 = !{!10, !10, i64 0}
!16 = !{!6, !12, i64 24}
!17 = !{!6, !13, i64 28}
!18 = !{!19, !7, i64 0}
!19 = !{!"_ZTSN2vk22CommandBufferBeginInfoE", !7, i64 0, !10, i64 8, !20, i64 16, !10, i64 24}
!20 = !{!"_ZTSN2vk5FlagsINS_26CommandBufferUsageFlagBitsEEE", !13, i64 0}
!21 = !{!19, !10, i64 8}
!22 = !{!19, !10, i64 24}
!23 = !{!24, !7, i64 0}
!24 = !{!"_ZTSN2vk10SubmitInfoE", !7, i64 0, !10, i64 8, !13, i64 16, !10, i64 24, !10, i64 32, !13, i64 40, !10, i64 48, !13, i64 56, !10, i64 64}
!25 = !{!24, !10, i64 8}
!26 = !{!24, !13, i64 16}
!27 = !{!24, !13, i64 40}
!28 = !{!24, !10, i64 48}
!29 = !{!24, !13, i64 56}
!30 = !{!24, !10, i64 64}
!31 = !{!32, !10, i64 0}
!32 = !{!"_ZTSSt16initializer_listIN2vk10SubmitInfoEE", !10, i64 0, !33, i64 8}
!33 = !{!"long", !8, i64 0}
!34 = !{!32, !33, i64 8}
!35 = !{!36, !10, i64 0}
!36 = !{!"_ZTSSt16initializer_listIN2vk13CommandBufferEE", !10, i64 0, !33, i64 8}
!37 = !{!36, !33, i64 8}


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