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

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

%struct.VkMemoryAllocateInfo = type { i32, ptr, i64, i32 }
%struct.VkMemoryDedicatedAllocateInfo = type { i32, ptr, ptr, ptr }
%struct.VkMemoryAllocateFlagsInfo = type { i32, ptr, i32, i32 }
%struct.VkMemoryPriorityAllocateInfoEXT = type { i32, ptr, float }
%struct.VkExportMemoryAllocateInfo = type { i32, ptr, i32 }
%struct.VmaAllocator_T = type <{ i8, [3 x i8], i32, i8, i8, i8, i8, i8, i8, [2 x i8], ptr, ptr, i8, [7 x i8], %struct.VkAllocationCallbacks, %struct.VmaDeviceMemoryCallbacks, %class.VmaAllocationObjectAllocator, i32, [4 x i8], %struct.VkPhysicalDeviceProperties, %struct.VkPhysicalDeviceMemoryProperties, [32 x ptr], [32 x %class.VmaDedicatedAllocationList], %struct.VmaCurrentBudgetData, %"struct.std::atomic", [4 x i8], i64, ptr, %"struct.std::atomic", %"struct.std::atomic", [32 x i32], %class.VmaRWMutex, %class.VmaIntrusiveLinkedList.14, i32, [4 x i8], %struct.VmaVulkanFunctions, i32, [4 x i8] }>
%struct.VkAllocationCallbacks = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.VmaDeviceMemoryCallbacks = type { ptr, ptr, ptr }
%class.VmaAllocationObjectAllocator = type { %class.VmaMutex, %class.VmaPoolAllocator.11 }
%class.VmaMutex = type { %"class.std::mutex" }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%class.VmaPoolAllocator.11 = type { ptr, i32, %class.VmaVector.12 }
%class.VmaVector.12 = type { %struct.VmaStlAllocator.13, ptr, i64, i64 }
%struct.VmaStlAllocator.13 = type { ptr }
%struct.VkPhysicalDeviceProperties = type { i32, i32, i32, i32, i32, [256 x i8], [16 x i8], %struct.VkPhysicalDeviceLimits, %struct.VkPhysicalDeviceSparseProperties }
%struct.VkPhysicalDeviceLimits = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, 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, [3 x i32], i32, [3 x i32], i32, i32, i32, i32, i32, float, float, i32, [2 x i32], [2 x float], i32, i64, i64, i64, i64, i32, i32, i32, i32, float, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, [2 x float], [2 x float], float, float, i32, i32, i64, i64, i64 }
%struct.VkPhysicalDeviceSparseProperties = type { i32, i32, i32, i32, i32 }
%struct.VkPhysicalDeviceMemoryProperties = type { i32, [32 x %struct.VkMemoryType], i32, [16 x %struct.VkMemoryHeap] }
%struct.VkMemoryType = type { i32, i32 }
%struct.VkMemoryHeap = type { i64, i32 }
%class.VmaDedicatedAllocationList = type { i8, %class.VmaRWMutex, %class.VmaIntrusiveLinkedList }
%class.VmaIntrusiveLinkedList = type { ptr, ptr, i64 }
%struct.VmaCurrentBudgetData = type { [16 x %"struct.std::atomic"], [16 x %"struct.std::atomic"], [16 x %"struct.std::atomic.9"], [16 x %"struct.std::atomic.9"], %"struct.std::atomic", %class.VmaRWMutex, [16 x i64], [16 x i64], [16 x i64] }
%"struct.std::atomic.9" = type { %"struct.std::__atomic_base.10" }
%"struct.std::__atomic_base.10" = type { i64 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%class.VmaRWMutex = type { %"class.std::shared_mutex" }
%"class.std::shared_mutex" = type { %"class.std::__shared_mutex_pthread" }
%"class.std::__shared_mutex_pthread" = type { %union.pthread_rwlock_t }
%union.pthread_rwlock_t = type { %struct.__pthread_rwlock_arch_t }
%struct.__pthread_rwlock_arch_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i8, [7 x i8], i64, i32 }
%class.VmaIntrusiveLinkedList.14 = type { ptr, ptr, i64 }
%struct.VmaVulkanFunctions = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.256 = external hidden unnamed_addr constant [36 x i8], align 1
@__PRETTY_FUNCTION__._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv = external hidden unnamed_addr constant [240 x i8], align 1
@__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.allocInfo = external hidden unnamed_addr constant %struct.VkMemoryAllocateInfo, align 8
@__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.dedicatedAllocInfo = external hidden unnamed_addr constant %struct.VkMemoryDedicatedAllocateInfo, align 8
@.str.257 = external hidden unnamed_addr constant [26 x i8], align 1
@__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.allocFlagsInfo = external hidden unnamed_addr constant %struct.VkMemoryAllocateFlagsInfo, align 8
@__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.priorityInfo = external hidden unnamed_addr constant %struct.VkMemoryPriorityAllocateInfoEXT, align 8
@.str.258 = external hidden unnamed_addr constant [35 x i8], align 1
@__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.exportMemoryAllocInfo = external hidden unnamed_addr constant %struct.VkExportMemoryAllocateInfo, align 8

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN20VmaCurrentBudgetData16RemoveAllocationEjm(ptr noundef nonnull align 8 dereferenceable(832), i32 noundef, i64 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14VmaAllocator_T16FreeVulkanMemoryEjmP16VkDeviceMemory_T(ptr noundef nonnull align 8 dereferenceable(5916), i32 noundef, i64 noundef, ptr noundef) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK14VmaAllocator_T26MemoryTypeIndexToHeapIndexEj(ptr noundef nonnull align 8 dereferenceable(5916), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo25VkMemoryAllocateFlagsInfoEvPT_PT0_(ptr noundef, ptr noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo31VkMemoryPriorityAllocateInfoEXTEvPT_PT0_(ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK14VmaAllocator_T32GetExternalMemoryHandleTypeFlagsEj(ptr noundef nonnull align 8 dereferenceable(5916), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo26VkExportMemoryAllocateInfoEvPT_PT0_(ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef %1, i64 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(88) %4, i32 noundef %5, i1 noundef zeroext %6, i1 noundef zeroext %7, i1 noundef zeroext %8, i1 noundef zeroext %9, ptr noundef %10, float noundef %11, ptr noundef %12, ptr noundef %13, i32 noundef %14, i64 noundef %15, ptr noundef %16, ptr noundef %17) #4 align 2 {
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i8, align 1
  %26 = alloca i8, align 1
  %27 = alloca i8, align 1
  %28 = alloca i8, align 1
  %29 = alloca ptr, align 8
  %30 = alloca float, align 4
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca i64, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca %struct.VkMemoryAllocateInfo, align 8
  %38 = alloca %struct.VkMemoryDedicatedAllocateInfo, align 8
  %39 = alloca %struct.VkMemoryAllocateFlagsInfo, align 8
  %40 = alloca i8, align 1
  %41 = alloca %struct.VkMemoryPriorityAllocateInfoEXT, align 8
  %42 = alloca %struct.VkExportMemoryAllocateInfo, align 8
  %43 = alloca i64, align 8
  %44 = alloca i32, align 4
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  store ptr %0, ptr %19, align 8, !tbaa !5
  store ptr %1, ptr %20, align 8, !tbaa !5
  store i64 %2, ptr %21, align 8, !tbaa !9
  store i32 %3, ptr %22, align 4, !tbaa !11
  store ptr %4, ptr %23, align 8, !tbaa !5
  store i32 %5, ptr %24, align 4, !tbaa !13
  %47 = zext i1 %6 to i8
  store i8 %47, ptr %25, align 1, !tbaa !15
  %48 = zext i1 %7 to i8
  store i8 %48, ptr %26, align 1, !tbaa !15
  %49 = zext i1 %8 to i8
  store i8 %49, ptr %27, align 1, !tbaa !15
  %50 = zext i1 %9 to i8
  store i8 %50, ptr %28, align 1, !tbaa !15
  store ptr %10, ptr %29, align 8, !tbaa !5
  store float %11, ptr %30, align 4, !tbaa !17
  store ptr %12, ptr %31, align 8, !tbaa !5
  store ptr %13, ptr %32, align 8, !tbaa !5
  store i32 %14, ptr %33, align 4, !tbaa !13
  store i64 %15, ptr %34, align 8, !tbaa !9
  store ptr %16, ptr %35, align 8, !tbaa !5
  store ptr %17, ptr %36, align 8, !tbaa !5
  %51 = load ptr, ptr %19, align 8
  %52 = load i64, ptr %34, align 8, !tbaa !9
  %53 = icmp ugt i64 %52, 0
  br i1 %53, label %54, label %57

54:                                               ; preds = %18
  %55 = load ptr, ptr %35, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br label %57

57:                                               ; preds = %54, %18
  %58 = phi i1 [ false, %18 ], [ %56, %54 ]
  br i1 %58, label %59, label %60

59:                                               ; preds = %57
  br label %62

60:                                               ; preds = %57
  call void @__assert_fail(ptr noundef @.str.256, ptr noundef @.str.2, i32 noundef 14706, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv) #7
  unreachable

61:                                               ; No predecessors!
  br label %62

62:                                               ; preds = %61, %59
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %37, ptr align 8 @__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.allocInfo, i64 32, i1 false)
  %63 = load i32, ptr %24, align 4, !tbaa !13
  %64 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %37, i32 0, i32 3
  store i32 %63, ptr %64, align 8, !tbaa !19
  %65 = load i64, ptr %21, align 8, !tbaa !9
  %66 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %37, i32 0, i32 2
  store i64 %65, ptr %66, align 8, !tbaa !22
  %67 = load ptr, ptr %36, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %37, i32 0, i32 1
  store ptr %67, ptr %68, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 @__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.dedicatedAllocInfo, i64 32, i1 false)
  %69 = load i8, ptr %28, align 1, !tbaa !15, !range !24, !noundef !25
  %70 = trunc i8 %69 to i1
  br i1 %70, label %100, label %71

71:                                               ; preds = %62
  %72 = getelementptr inbounds %struct.VmaAllocator_T, ptr %51, i32 0, i32 3
  %73 = load i8, ptr %72, align 8, !tbaa !26, !range !24, !noundef !25
  %74 = trunc i8 %73 to i1
  br i1 %74, label %79, label %75

75:                                               ; preds = %71
  %76 = getelementptr inbounds %struct.VmaAllocator_T, ptr %51, i32 0, i32 2
  %77 = load i32, ptr %76, align 4, !tbaa !50
  %78 = icmp uge i32 %77, 4198400
  br i1 %78, label %79, label %99

79:                                               ; preds = %75, %71
  %80 = load ptr, ptr %31, align 8, !tbaa !5
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %91

82:                                               ; preds = %79
  %83 = load ptr, ptr %32, align 8, !tbaa !5
  %84 = icmp eq ptr %83, null
  br i1 %84, label %85, label %86

85:                                               ; preds = %82
  br label %88

86:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str.257, ptr noundef @.str.2, i32 noundef 14721, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv) #7
  unreachable

87:                                               ; No predecessors!
  br label %88

88:                                               ; preds = %87, %85
  %89 = load ptr, ptr %31, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.VkMemoryDedicatedAllocateInfo, ptr %38, i32 0, i32 3
  store ptr %89, ptr %90, align 8, !tbaa !51
  call void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo29VkMemoryDedicatedAllocateInfoEvPT_PT0_(ptr noundef %37, ptr noundef %38)
  br label %98

91:                                               ; preds = %79
  %92 = load ptr, ptr %32, align 8, !tbaa !5
  %93 = icmp ne ptr %92, null
  br i1 %93, label %94, label %97

94:                                               ; preds = %91
  %95 = load ptr, ptr %32, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.VkMemoryDedicatedAllocateInfo, ptr %38, i32 0, i32 2
  store ptr %95, ptr %96, align 8, !tbaa !53
  call void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo29VkMemoryDedicatedAllocateInfoEvPT_PT0_(ptr noundef %37, ptr noundef %38)
  br label %97

97:                                               ; preds = %94, %91
  br label %98

98:                                               ; preds = %97, %88
  br label %99

99:                                               ; preds = %98, %75
  br label %100

100:                                              ; preds = %99, %62
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 8 @__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.allocFlagsInfo, i64 24, i1 false)
  %101 = getelementptr inbounds %struct.VmaAllocator_T, ptr %51, i32 0, i32 7
  %102 = load i8, ptr %101, align 4, !tbaa !54, !range !24, !noundef !25
  %103 = trunc i8 %102 to i1
  br i1 %103, label %104, label %128

104:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #8
  store i8 1, ptr %40, align 1, !tbaa !15
  %105 = load ptr, ptr %31, align 8, !tbaa !5
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %117

107:                                              ; preds = %104
  %108 = load i32, ptr %33, align 4, !tbaa !13
  %109 = icmp eq i32 %108, -1
  br i1 %109, label %114, label %110

110:                                              ; preds = %107
  %111 = load i32, ptr %33, align 4, !tbaa !13
  %112 = and i32 %111, 131072
  %113 = icmp ne i32 %112, 0
  br label %114

114:                                              ; preds = %110, %107
  %115 = phi i1 [ true, %107 ], [ %113, %110 ]
  %116 = zext i1 %115 to i8
  store i8 %116, ptr %40, align 1, !tbaa !15
  br label %122

117:                                              ; preds = %104
  %118 = load ptr, ptr %32, align 8, !tbaa !5
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %121

120:                                              ; preds = %117
  store i8 0, ptr %40, align 1, !tbaa !15
  br label %121

121:                                              ; preds = %120, %117
  br label %122

122:                                              ; preds = %121, %114
  %123 = load i8, ptr %40, align 1, !tbaa !15, !range !24, !noundef !25
  %124 = trunc i8 %123 to i1
  br i1 %124, label %125, label %127

125:                                              ; preds = %122
  %126 = getelementptr inbounds %struct.VkMemoryAllocateFlagsInfo, ptr %39, i32 0, i32 2
  store i32 2, ptr %126, align 8, !tbaa !55
  call void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo25VkMemoryAllocateFlagsInfoEvPT_PT0_(ptr noundef %37, ptr noundef %39)
  br label %127

127:                                              ; preds = %125, %122
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #8
  br label %128

128:                                              ; preds = %127, %100
  call void @llvm.lifetime.start.p0(i64 24, ptr %41) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 @__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.priorityInfo, i64 24, i1 false)
  %129 = getelementptr inbounds %struct.VmaAllocator_T, ptr %51, i32 0, i32 8
  %130 = load i8, ptr %129, align 1, !tbaa !57, !range !24, !noundef !25
  %131 = trunc i8 %130 to i1
  br i1 %131, label %132, label %146

132:                                              ; preds = %128
  %133 = load float, ptr %30, align 4, !tbaa !17
  %134 = fcmp oge float %133, 0.000000e+00
  br i1 %134, label %135, label %138

135:                                              ; preds = %132
  %136 = load float, ptr %30, align 4, !tbaa !17
  %137 = fcmp ole float %136, 1.000000e+00
  br label %138

138:                                              ; preds = %135, %132
  %139 = phi i1 [ false, %132 ], [ %137, %135 ]
  br i1 %139, label %140, label %141

140:                                              ; preds = %138
  br label %143

141:                                              ; preds = %138
  call void @__assert_fail(ptr noundef @.str.258, ptr noundef @.str.2, i32 noundef 14760, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv) #7
  unreachable

142:                                              ; No predecessors!
  br label %143

143:                                              ; preds = %142, %140
  %144 = load float, ptr %30, align 4, !tbaa !17
  %145 = getelementptr inbounds %struct.VkMemoryPriorityAllocateInfoEXT, ptr %41, i32 0, i32 2
  store float %144, ptr %145, align 8, !tbaa !58
  call void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo31VkMemoryPriorityAllocateInfoEXTEvPT_PT0_(ptr noundef %37, ptr noundef %41)
  br label %146

146:                                              ; preds = %143, %128
  call void @llvm.lifetime.start.p0(i64 24, ptr %42) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %42, ptr align 8 @__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.exportMemoryAllocInfo, i64 24, i1 false)
  %147 = load i32, ptr %24, align 4, !tbaa !13
  %148 = call noundef i32 @_ZNK14VmaAllocator_T32GetExternalMemoryHandleTypeFlagsEj(ptr noundef nonnull align 8 dereferenceable(5916) %51, i32 noundef %147)
  %149 = getelementptr inbounds %struct.VkExportMemoryAllocateInfo, ptr %42, i32 0, i32 2
  store i32 %148, ptr %149, align 8, !tbaa !60
  %150 = getelementptr inbounds %struct.VkExportMemoryAllocateInfo, ptr %42, i32 0, i32 2
  %151 = load i32, ptr %150, align 8, !tbaa !60
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %154

153:                                              ; preds = %146
  call void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo26VkExportMemoryAllocateInfoEvPT_PT0_(ptr noundef %37, ptr noundef %42)
  br label %154

154:                                              ; preds = %153, %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  store i32 0, ptr %44, align 4, !tbaa !62
  store i64 0, ptr %43, align 8, !tbaa !9
  br label %155

155:                                              ; preds = %179, %154
  %156 = load i64, ptr %43, align 8, !tbaa !9
  %157 = load i64, ptr %34, align 8, !tbaa !9
  %158 = icmp ult i64 %156, %157
  br i1 %158, label %159, label %182

159:                                              ; preds = %155
  %160 = load ptr, ptr %20, align 8, !tbaa !5
  %161 = load i64, ptr %21, align 8, !tbaa !9
  %162 = load i32, ptr %22, align 4, !tbaa !11
  %163 = load i32, ptr %24, align 4, !tbaa !13
  %164 = load i8, ptr %25, align 1, !tbaa !15, !range !24, !noundef !25
  %165 = trunc i8 %164 to i1
  %166 = load i8, ptr %26, align 1, !tbaa !15, !range !24, !noundef !25
  %167 = trunc i8 %166 to i1
  %168 = load i8, ptr %27, align 1, !tbaa !15, !range !24, !noundef !25
  %169 = trunc i8 %168 to i1
  %170 = load ptr, ptr %29, align 8, !tbaa !5
  %171 = load ptr, ptr %35, align 8, !tbaa !5
  %172 = load i64, ptr %43, align 8, !tbaa !9
  %173 = getelementptr inbounds ptr, ptr %171, i64 %172
  %174 = call noundef i32 @_ZN14VmaAllocator_T27AllocateDedicatedMemoryPageEP9VmaPool_Tm20VmaSuballocationTypejRK20VkMemoryAllocateInfobbbPvPP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916) %51, ptr noundef %160, i64 noundef %161, i32 noundef %162, i32 noundef %163, ptr noundef nonnull align 8 dereferenceable(32) %37, i1 noundef zeroext %165, i1 noundef zeroext %167, i1 noundef zeroext %169, ptr noundef %170, ptr noundef %173)
  store i32 %174, ptr %44, align 4, !tbaa !62
  %175 = load i32, ptr %44, align 4, !tbaa !62
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %177, label %178

177:                                              ; preds = %159
  br label %182

178:                                              ; preds = %159
  br label %179

179:                                              ; preds = %178
  %180 = load i64, ptr %43, align 8, !tbaa !9
  %181 = add i64 %180, 1
  store i64 %181, ptr %43, align 8, !tbaa !9
  br label %155, !llvm.loop !64

182:                                              ; preds = %177, %155
  %183 = load i32, ptr %44, align 4, !tbaa !62
  %184 = icmp eq i32 %183, 0
  br i1 %184, label %185, label %200

185:                                              ; preds = %182
  store i64 0, ptr %43, align 8, !tbaa !9
  br label %186

186:                                              ; preds = %196, %185
  %187 = load i64, ptr %43, align 8, !tbaa !9
  %188 = load i64, ptr %34, align 8, !tbaa !9
  %189 = icmp ult i64 %187, %188
  br i1 %189, label %190, label %199

190:                                              ; preds = %186
  %191 = load ptr, ptr %23, align 8, !tbaa !5
  %192 = load ptr, ptr %35, align 8, !tbaa !5
  %193 = load i64, ptr %43, align 8, !tbaa !9
  %194 = getelementptr inbounds ptr, ptr %192, i64 %193
  %195 = load ptr, ptr %194, align 8, !tbaa !5
  call void @_ZN26VmaDedicatedAllocationList8RegisterEP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(88) %191, ptr noundef %195)
  br label %196

196:                                              ; preds = %190
  %197 = load i64, ptr %43, align 8, !tbaa !9
  %198 = add i64 %197, 1
  store i64 %198, ptr %43, align 8, !tbaa !9
  br label %186, !llvm.loop !66

199:                                              ; preds = %186
  br label %227

200:                                              ; preds = %182
  br label %201

201:                                              ; preds = %205, %200
  %202 = load i64, ptr %43, align 8, !tbaa !9
  %203 = add i64 %202, -1
  store i64 %203, ptr %43, align 8, !tbaa !9
  %204 = icmp ne i64 %202, 0
  br i1 %204, label %205, label %223

205:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %206 = load ptr, ptr %35, align 8, !tbaa !5
  %207 = load i64, ptr %43, align 8, !tbaa !9
  %208 = getelementptr inbounds ptr, ptr %206, i64 %207
  %209 = load ptr, ptr %208, align 8, !tbaa !5
  store ptr %209, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #8
  %210 = load ptr, ptr %45, align 8, !tbaa !5
  %211 = call noundef ptr @_ZNK15VmaAllocation_T9GetMemoryEv(ptr noundef nonnull align 8 dereferenceable(84) %210)
  store ptr %211, ptr %46, align 8, !tbaa !5
  %212 = load i32, ptr %24, align 4, !tbaa !13
  %213 = load ptr, ptr %45, align 8, !tbaa !5
  %214 = call noundef i64 @_ZNK15VmaAllocation_T7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(84) %213)
  %215 = load ptr, ptr %46, align 8, !tbaa !5
  call void @_ZN14VmaAllocator_T16FreeVulkanMemoryEjmP16VkDeviceMemory_T(ptr noundef nonnull align 8 dereferenceable(5916) %51, i32 noundef %212, i64 noundef %214, ptr noundef %215)
  %216 = getelementptr inbounds %struct.VmaAllocator_T, ptr %51, i32 0, i32 23
  %217 = load i32, ptr %24, align 4, !tbaa !13
  %218 = call noundef i32 @_ZNK14VmaAllocator_T26MemoryTypeIndexToHeapIndexEj(ptr noundef nonnull align 8 dereferenceable(5916) %51, i32 noundef %217)
  %219 = load ptr, ptr %45, align 8, !tbaa !5
  %220 = call noundef i64 @_ZNK15VmaAllocation_T7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(84) %219)
  call void @_ZN20VmaCurrentBudgetData16RemoveAllocationEjm(ptr noundef nonnull align 8 dereferenceable(832) %216, i32 noundef %218, i64 noundef %220)
  %221 = getelementptr inbounds %struct.VmaAllocator_T, ptr %51, i32 0, i32 16
  %222 = load ptr, ptr %45, align 8, !tbaa !5
  call void @_ZN28VmaAllocationObjectAllocator4FreeEP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(88) %221, ptr noundef %222)
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  br label %201, !llvm.loop !67

223:                                              ; preds = %201
  %224 = load ptr, ptr %35, align 8, !tbaa !5
  %225 = load i64, ptr %34, align 8, !tbaa !9
  %226 = mul i64 8, %225
  call void @llvm.memset.p0.i64(ptr align 8 %224, i8 0, i64 %226, i1 false)
  br label %227

227:                                              ; preds = %223, %199
  %228 = load i32, ptr %44, align 4, !tbaa !62
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #8
  ret i32 %228
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo29VkMemoryDedicatedAllocateInfoEvPT_PT0_(ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14VmaAllocator_T27AllocateDedicatedMemoryPageEP9VmaPool_Tm20VmaSuballocationTypejRK20VkMemoryAllocateInfobbbPvPP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916), ptr noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, ptr noundef, ptr noundef) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { noreturn nounwind }
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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS20VmaSuballocationType", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!20, !14, i64 24}
!20 = !{!"_ZTS20VkMemoryAllocateInfo", !21, i64 0, !6, i64 8, !10, i64 16, !14, i64 24}
!21 = !{!"_ZTS15VkStructureType", !7, i64 0}
!22 = !{!20, !10, i64 16}
!23 = !{!20, !6, i64 8}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!27, !16, i64 8}
!27 = !{!"_ZTS14VmaAllocator_T", !16, i64 0, !14, i64 4, !16, i64 8, !16, i64 9, !16, i64 10, !16, i64 11, !16, i64 12, !16, i64 13, !6, i64 16, !6, i64 24, !16, i64 32, !28, i64 40, !29, i64 88, !30, i64 112, !14, i64 200, !37, i64 208, !41, i64 1032, !7, i64 1552, !7, i64 1808, !42, i64 4624, !43, i64 5456, !10, i64 5464, !6, i64 5472, !43, i64 5480, !43, i64 5484, !7, i64 5488, !45, i64 5616, !48, i64 5672, !14, i64 5696, !49, i64 5704, !14, i64 5912}
!28 = !{!"_ZTS21VkAllocationCallbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!29 = !{!"_ZTS24VmaDeviceMemoryCallbacks", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTS28VmaAllocationObjectAllocator", !31, i64 0, !34, i64 40}
!31 = !{!"_ZTS8VmaMutex", !32, i64 0}
!32 = !{!"_ZTSSt5mutex", !33, i64 0}
!33 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!34 = !{!"_ZTS16VmaPoolAllocatorI15VmaAllocation_TE", !6, i64 0, !14, i64 8, !35, i64 16}
!35 = !{!"_ZTS9VmaVectorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockE15VmaStlAllocatorIS3_EE", !36, i64 0, !6, i64 8, !10, i64 16, !10, i64 24}
!36 = !{!"_ZTS15VmaStlAllocatorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockEE", !6, i64 0}
!37 = !{!"_ZTS26VkPhysicalDeviceProperties", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !38, i64 16, !7, i64 20, !7, i64 276, !39, i64 296, !40, i64 800}
!38 = !{!"_ZTS20VkPhysicalDeviceType", !7, i64 0}
!39 = !{!"_ZTS22VkPhysicalDeviceLimits", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !10, i64 48, !10, i64 56, !14, i64 64, !14, i64 68, !14, i64 72, !14, i64 76, !14, i64 80, !14, i64 84, !14, i64 88, !14, i64 92, !14, i64 96, !14, i64 100, !14, i64 104, !14, i64 108, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124, !14, i64 128, !14, i64 132, !14, i64 136, !14, i64 140, !14, i64 144, !14, i64 148, !14, i64 152, !14, i64 156, !14, i64 160, !14, i64 164, !14, i64 168, !14, i64 172, !14, i64 176, !14, i64 180, !14, i64 184, !14, i64 188, !14, i64 192, !14, i64 196, !14, i64 200, !14, i64 204, !14, i64 208, !14, i64 212, !14, i64 216, !7, i64 220, !14, i64 232, !7, i64 236, !14, i64 248, !14, i64 252, !14, i64 256, !14, i64 260, !14, i64 264, !18, i64 268, !18, i64 272, !14, i64 276, !7, i64 280, !7, i64 288, !14, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !14, i64 336, !14, i64 340, !14, i64 344, !14, i64 348, !18, i64 352, !18, i64 356, !14, i64 360, !14, i64 364, !14, i64 368, !14, i64 372, !14, i64 376, !14, i64 380, !14, i64 384, !14, i64 388, !14, i64 392, !14, i64 396, !14, i64 400, !14, i64 404, !14, i64 408, !14, i64 412, !14, i64 416, !14, i64 420, !18, i64 424, !14, i64 428, !14, i64 432, !14, i64 436, !14, i64 440, !7, i64 444, !7, i64 452, !18, i64 460, !18, i64 464, !14, i64 468, !14, i64 472, !10, i64 480, !10, i64 488, !10, i64 496}
!40 = !{!"_ZTS32VkPhysicalDeviceSparseProperties", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16}
!41 = !{!"_ZTS32VkPhysicalDeviceMemoryProperties", !14, i64 0, !7, i64 4, !14, i64 260, !7, i64 264}
!42 = !{!"_ZTS20VmaCurrentBudgetData", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 256, !43, i64 384, !45, i64 392, !7, i64 448, !7, i64 576, !7, i64 704}
!43 = !{!"_ZTSSt6atomicIjE", !44, i64 0}
!44 = !{!"_ZTSSt13__atomic_baseIjE", !14, i64 0}
!45 = !{!"_ZTS10VmaRWMutex", !46, i64 0}
!46 = !{!"_ZTSSt12shared_mutex", !47, i64 0}
!47 = !{!"_ZTSSt22__shared_mutex_pthread", !7, i64 0}
!48 = !{!"_ZTS22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE", !6, i64 0, !6, i64 8, !10, i64 16}
!49 = !{!"_ZTS18VmaVulkanFunctions", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200}
!50 = !{!27, !14, i64 4}
!51 = !{!52, !6, i64 24}
!52 = !{!"_ZTS29VkMemoryDedicatedAllocateInfo", !21, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!53 = !{!52, !6, i64 16}
!54 = !{!27, !16, i64 12}
!55 = !{!56, !14, i64 16}
!56 = !{!"_ZTS25VkMemoryAllocateFlagsInfo", !21, i64 0, !6, i64 8, !14, i64 16, !14, i64 20}
!57 = !{!27, !16, i64 13}
!58 = !{!59, !18, i64 16}
!59 = !{!"_ZTS31VkMemoryPriorityAllocateInfoEXT", !21, i64 0, !6, i64 8, !18, i64 16}
!60 = !{!61, !14, i64 16}
!61 = !{!"_ZTS26VkExportMemoryAllocateInfo", !21, i64 0, !6, i64 8, !14, i64 16}
!62 = !{!63, !63, i64 0}
!63 = !{!"_ZTS8VkResult", !7, i64 0}
!64 = distinct !{!64, !65}
!65 = !{!"llvm.loop.mustprogress"}
!66 = distinct !{!66, !65}
!67 = distinct !{!67, !65}


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

%struct.VkMemoryAllocateInfo = type { i32, ptr, i64, i32 }
%struct.VkMemoryDedicatedAllocateInfo = type { i32, ptr, ptr, ptr }
%struct.VkMemoryAllocateFlagsInfo = type { i32, ptr, i32, i32 }
%struct.VkMemoryPriorityAllocateInfoEXT = type { i32, ptr, float }
%struct.VkExportMemoryAllocateInfo = type { i32, ptr, i32 }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.256 = external hidden unnamed_addr constant [36 x i8], align 1
@__PRETTY_FUNCTION__._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv = external hidden unnamed_addr constant [240 x i8], align 1
@__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.allocInfo = external hidden unnamed_addr constant %struct.VkMemoryAllocateInfo, align 8
@__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.dedicatedAllocInfo = external hidden unnamed_addr constant %struct.VkMemoryDedicatedAllocateInfo, align 8
@.str.257 = external hidden unnamed_addr constant [26 x i8], align 1
@__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.allocFlagsInfo = external hidden unnamed_addr constant %struct.VkMemoryAllocateFlagsInfo, align 8
@__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.priorityInfo = external hidden unnamed_addr constant %struct.VkMemoryPriorityAllocateInfoEXT, align 8
@.str.258 = external hidden unnamed_addr constant [35 x i8], align 1
@__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.exportMemoryAllocInfo = external hidden unnamed_addr constant %struct.VkExportMemoryAllocateInfo, align 8

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN20VmaCurrentBudgetData16RemoveAllocationEjm(ptr noundef nonnull align 8 dereferenceable(832), i32 noundef, i64 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14VmaAllocator_T16FreeVulkanMemoryEjmP16VkDeviceMemory_T(ptr noundef nonnull align 8 dereferenceable(5916), i32 noundef, i64 noundef, ptr noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK14VmaAllocator_T26MemoryTypeIndexToHeapIndexEj(ptr noundef nonnull align 8 dereferenceable(5916), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo25VkMemoryAllocateFlagsInfoEvPT_PT0_(ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo31VkMemoryPriorityAllocateInfoEXTEvPT_PT0_(ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK14VmaAllocator_T32GetExternalMemoryHandleTypeFlagsEj(ptr noundef nonnull align 8 dereferenceable(5916), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo26VkExportMemoryAllocateInfoEvPT_PT0_(ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef %1, i64 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(88) %4, i32 noundef %5, i1 noundef zeroext %6, i1 noundef zeroext %7, i1 noundef zeroext %8, i1 noundef zeroext %9, ptr noundef %10, float noundef %11, ptr noundef %12, ptr noundef %13, i32 noundef %14, i64 noundef %15, ptr noundef %16, ptr noundef %17) local_unnamed_addr #4 align 2 {
  %19 = alloca %struct.VkMemoryAllocateInfo, align 8
  %20 = alloca %struct.VkMemoryDedicatedAllocateInfo, align 8
  %21 = alloca %struct.VkMemoryAllocateFlagsInfo, align 8
  %22 = alloca %struct.VkMemoryPriorityAllocateInfoEXT, align 8
  %23 = alloca %struct.VkExportMemoryAllocateInfo, align 8
  %24 = icmp ne i64 %15, 0
  %25 = icmp ne ptr %16, null
  %26 = and i1 %24, %25
  %.sink87.sroa.gep = getelementptr inbounds i8, ptr %20, i64 24
  %.sink87.sroa.gep93 = getelementptr inbounds i8, ptr %20, i64 16
  br i1 %26, label %28, label %27

27:                                               ; preds = %18
  tail call void @__assert_fail(ptr noundef nonnull @.str.256, ptr noundef nonnull @.str.2, i32 noundef 14706, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv) #7
  unreachable

28:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) @__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.allocInfo, i64 32, i1 false)
  %29 = getelementptr inbounds i8, ptr %19, i64 24
  store i32 %5, ptr %29, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %19, i64 16
  store i64 %2, ptr %30, align 8, !tbaa !13
  %31 = getelementptr inbounds i8, ptr %19, i64 8
  store ptr %17, ptr %31, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) @__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.dedicatedAllocInfo, i64 32, i1 false)
  br i1 %9, label %43, label %32

32:                                               ; preds = %28
  %33 = getelementptr inbounds i8, ptr %0, i64 8
  %34 = load i8, ptr %33, align 8, !tbaa !15, !range !41, !noundef !42
  %35 = trunc nuw i8 %34 to i1
  %36 = getelementptr inbounds i8, ptr %0, i64 4
  %37 = load i32, ptr %36, align 4
  %38 = icmp ugt i32 %37, 4198399
  %or.cond = select i1 %35, i1 true, i1 %38
  br i1 %or.cond, label %39, label %43

39:                                               ; preds = %32
  %.not = icmp eq ptr %12, null
  %.not64 = icmp eq ptr %13, null
  br i1 %.not, label %42, label %40

40:                                               ; preds = %39
  br i1 %.not64, label %.sink.split, label %41

41:                                               ; preds = %40
  tail call void @__assert_fail(ptr noundef nonnull @.str.257, ptr noundef nonnull @.str.2, i32 noundef 14721, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv) #7
  unreachable

42:                                               ; preds = %39
  br i1 %.not64, label %43, label %.sink.split

.sink.split:                                      ; preds = %42, %40
  %.sink87.sroa.phi = phi ptr [ %.sink87.sroa.gep, %40 ], [ %.sink87.sroa.gep93, %42 ]
  %.sink = phi ptr [ %12, %40 ], [ %13, %42 ]
  store ptr %.sink, ptr %.sink87.sroa.phi, align 8, !tbaa !43
  call void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo29VkMemoryDedicatedAllocateInfoEvPT_PT0_(ptr noundef nonnull %19, ptr noundef nonnull %20)
  br label %43

43:                                               ; preds = %.sink.split, %32, %42, %28
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) @__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.allocFlagsInfo, i64 24, i1 false)
  %44 = getelementptr inbounds i8, ptr %0, i64 12
  %45 = load i8, ptr %44, align 4, !tbaa !44, !range !41, !noundef !42
  %46 = trunc nuw i8 %45 to i1
  br i1 %46, label %47, label %53

47:                                               ; preds = %43
  %.not65 = icmp eq ptr %12, null
  br i1 %.not65, label %50, label %48

48:                                               ; preds = %47
  %49 = and i32 %14, 131072
  %.not72 = icmp eq i32 %49, 0
  br i1 %.not72, label %53, label %51

50:                                               ; preds = %47
  %.not66 = icmp eq ptr %13, null
  br i1 %.not66, label %51, label %53

51:                                               ; preds = %48, %50
  %52 = getelementptr inbounds i8, ptr %21, i64 16
  store i32 2, ptr %52, align 8, !tbaa !45
  call void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo25VkMemoryAllocateFlagsInfoEvPT_PT0_(ptr noundef nonnull %19, ptr noundef nonnull %21)
  br label %53

53:                                               ; preds = %48, %50, %51, %43
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) @__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.priorityInfo, i64 24, i1 false)
  %54 = getelementptr inbounds i8, ptr %0, i64 13
  %55 = load i8, ptr %54, align 1, !tbaa !47, !range !41, !noundef !42
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %57, label %64

57:                                               ; preds = %53
  %58 = fcmp oge float %11, 0.000000e+00
  %59 = fcmp ole float %11, 1.000000e+00
  %60 = and i1 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  call void @__assert_fail(ptr noundef nonnull @.str.258, ptr noundef nonnull @.str.2, i32 noundef 14760, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv) #7
  unreachable

62:                                               ; preds = %57
  %63 = getelementptr inbounds i8, ptr %22, i64 16
  store float %11, ptr %63, align 8, !tbaa !48
  call void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo31VkMemoryPriorityAllocateInfoEXTEvPT_PT0_(ptr noundef nonnull %19, ptr noundef nonnull %22)
  br label %64

64:                                               ; preds = %62, %53
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) @__const._ZN14VmaAllocator_T23AllocateDedicatedMemoryEP9VmaPool_Tm20VmaSuballocationTypeR26VmaDedicatedAllocationListjbbbbPvfP10VkBuffer_TP9VkImage_TjmPP15VmaAllocation_TPKv.exportMemoryAllocInfo, i64 24, i1 false)
  %65 = call noundef i32 @_ZNK14VmaAllocator_T32GetExternalMemoryHandleTypeFlagsEj(ptr noundef nonnull align 8 dereferenceable(5916) %0, i32 noundef %5)
  %66 = getelementptr inbounds i8, ptr %23, i64 16
  store i32 %65, ptr %66, align 8, !tbaa !50
  %.not67 = icmp eq i32 %65, 0
  br i1 %.not67, label %.preheader90, label %67

67:                                               ; preds = %64
  call void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo26VkExportMemoryAllocateInfoEvPT_PT0_(ptr noundef nonnull %19, ptr noundef nonnull %23)
  br label %.preheader90

.preheader90:                                     ; preds = %67, %64
  br label %68

68:                                               ; preds = %.preheader90, %71
  %.05474 = phi i64 [ %72, %71 ], [ 0, %.preheader90 ]
  %69 = getelementptr inbounds ptr, ptr %16, i64 %.05474
  %70 = call noundef i32 @_ZN14VmaAllocator_T27AllocateDedicatedMemoryPageEP9VmaPool_Tm20VmaSuballocationTypejRK20VkMemoryAllocateInfobbbPvPP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef %1, i64 noundef %2, i32 noundef %3, i32 noundef %5, ptr noundef nonnull align 8 dereferenceable(32) %19, i1 noundef zeroext %6, i1 noundef zeroext %7, i1 noundef zeroext %8, ptr noundef %10, ptr noundef nonnull %69)
  %.not68 = icmp eq i32 %70, 0
  br i1 %.not68, label %71, label %.preheader73

71:                                               ; preds = %68
  %72 = add nuw i64 %.05474, 1
  %exitcond.not = icmp eq i64 %72, %15
  br i1 %exitcond.not, label %.preheader, label %68, !llvm.loop !52

.preheader73:                                     ; preds = %68
  %.not6975 = icmp eq i64 %.05474, 0
  br i1 %.not6975, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader73
  %73 = getelementptr inbounds i8, ptr %0, i64 4624
  %74 = getelementptr inbounds i8, ptr %0, i64 112
  br label %78

.preheader:                                       ; preds = %71, %.preheader
  %.177 = phi i64 [ %77, %.preheader ], [ 0, %71 ]
  %75 = getelementptr inbounds ptr, ptr %16, i64 %.177
  %76 = load ptr, ptr %75, align 8, !tbaa !43
  call void @_ZN26VmaDedicatedAllocationList8RegisterEP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(88) %4, ptr noundef %76)
  %77 = add nuw i64 %.177, 1
  %exitcond79.not = icmp eq i64 %77, %15
  br i1 %exitcond79.not, label %.loopexit, label %.preheader, !llvm.loop !54

78:                                               ; preds = %.lr.ph, %78
  %.276 = phi i64 [ %.05474, %.lr.ph ], [ %79, %78 ]
  %79 = add i64 %.276, -1
  %80 = getelementptr inbounds ptr, ptr %16, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !43
  %82 = call noundef ptr @_ZNK15VmaAllocation_T9GetMemoryEv(ptr noundef nonnull align 8 dereferenceable(84) %81)
  %83 = call noundef i64 @_ZNK15VmaAllocation_T7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(84) %81)
  call void @_ZN14VmaAllocator_T16FreeVulkanMemoryEjmP16VkDeviceMemory_T(ptr noundef nonnull align 8 dereferenceable(5916) %0, i32 noundef %5, i64 noundef %83, ptr noundef %82)
  %84 = call noundef i32 @_ZNK14VmaAllocator_T26MemoryTypeIndexToHeapIndexEj(ptr noundef nonnull align 8 dereferenceable(5916) %0, i32 noundef %5)
  %85 = call noundef i64 @_ZNK15VmaAllocation_T7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(84) %81)
  call void @_ZN20VmaCurrentBudgetData16RemoveAllocationEjm(ptr noundef nonnull align 8 dereferenceable(832) %73, i32 noundef %84, i64 noundef %85)
  call void @_ZN28VmaAllocationObjectAllocator4FreeEP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(88) %74, ptr noundef nonnull %81)
  %.not69 = icmp eq i64 %79, 0
  br i1 %.not69, label %._crit_edge, label %78, !llvm.loop !55

._crit_edge:                                      ; preds = %78, %.preheader73
  %86 = shl i64 %15, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %16, i8 0, i64 %86, i1 false)
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader, %._crit_edge
  %.15682 = phi i32 [ %70, %._crit_edge ], [ 0, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #8
  ret i32 %.15682
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL22VmaPnextChainPushFrontI20VkMemoryAllocateInfo29VkMemoryDedicatedAllocateInfoEvPT_PT0_(ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14VmaAllocator_T27AllocateDedicatedMemoryPageEP9VmaPool_Tm20VmaSuballocationTypejRK20VkMemoryAllocateInfobbbPvPP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916), ptr noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { noreturn nounwind }
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, !12, i64 24}
!6 = !{!"_ZTS20VkMemoryAllocateInfo", !7, i64 0, !10, i64 8, !11, i64 16, !12, i64 24}
!7 = !{!"_ZTS15VkStructureType", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!6, !11, i64 16}
!14 = !{!6, !10, i64 8}
!15 = !{!16, !17, i64 8}
!16 = !{!"_ZTS14VmaAllocator_T", !17, i64 0, !12, i64 4, !17, i64 8, !17, i64 9, !17, i64 10, !17, i64 11, !17, i64 12, !17, i64 13, !10, i64 16, !10, i64 24, !17, i64 32, !18, i64 40, !19, i64 88, !20, i64 112, !12, i64 200, !27, i64 208, !32, i64 1032, !8, i64 1552, !8, i64 1808, !33, i64 4624, !34, i64 5456, !11, i64 5464, !10, i64 5472, !34, i64 5480, !34, i64 5484, !8, i64 5488, !36, i64 5616, !39, i64 5672, !12, i64 5696, !40, i64 5704, !12, i64 5912}
!17 = !{!"bool", !8, i64 0}
!18 = !{!"_ZTS21VkAllocationCallbacks", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!19 = !{!"_ZTS24VmaDeviceMemoryCallbacks", !10, i64 0, !10, i64 8, !10, i64 16}
!20 = !{!"_ZTS28VmaAllocationObjectAllocator", !21, i64 0, !24, i64 40}
!21 = !{!"_ZTS8VmaMutex", !22, i64 0}
!22 = !{!"_ZTSSt5mutex", !23, i64 0}
!23 = !{!"_ZTSSt12__mutex_base", !8, i64 0}
!24 = !{!"_ZTS16VmaPoolAllocatorI15VmaAllocation_TE", !10, i64 0, !12, i64 8, !25, i64 16}
!25 = !{!"_ZTS9VmaVectorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockE15VmaStlAllocatorIS3_EE", !26, i64 0, !10, i64 8, !11, i64 16, !11, i64 24}
!26 = !{!"_ZTS15VmaStlAllocatorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockEE", !10, i64 0}
!27 = !{!"_ZTS26VkPhysicalDeviceProperties", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !28, i64 16, !8, i64 20, !8, i64 276, !29, i64 296, !31, i64 800}
!28 = !{!"_ZTS20VkPhysicalDeviceType", !8, i64 0}
!29 = !{!"_ZTS22VkPhysicalDeviceLimits", !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, !11, i64 48, !11, i64 56, !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, !8, i64 220, !12, i64 232, !8, i64 236, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !30, i64 268, !30, i64 272, !12, i64 276, !8, i64 280, !8, i64 288, !12, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !12, i64 336, !12, i64 340, !12, i64 344, !12, i64 348, !30, i64 352, !30, i64 356, !12, i64 360, !12, i64 364, !12, i64 368, !12, i64 372, !12, i64 376, !12, i64 380, !12, i64 384, !12, i64 388, !12, i64 392, !12, i64 396, !12, i64 400, !12, i64 404, !12, i64 408, !12, i64 412, !12, i64 416, !12, i64 420, !30, i64 424, !12, i64 428, !12, i64 432, !12, i64 436, !12, i64 440, !8, i64 444, !8, i64 452, !30, i64 460, !30, i64 464, !12, i64 468, !12, i64 472, !11, i64 480, !11, i64 488, !11, i64 496}
!30 = !{!"float", !8, i64 0}
!31 = !{!"_ZTS32VkPhysicalDeviceSparseProperties", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!32 = !{!"_ZTS32VkPhysicalDeviceMemoryProperties", !12, i64 0, !8, i64 4, !12, i64 260, !8, i64 264}
!33 = !{!"_ZTS20VmaCurrentBudgetData", !8, i64 0, !8, i64 64, !8, i64 128, !8, i64 256, !34, i64 384, !36, i64 392, !8, i64 448, !8, i64 576, !8, i64 704}
!34 = !{!"_ZTSSt6atomicIjE", !35, i64 0}
!35 = !{!"_ZTSSt13__atomic_baseIjE", !12, i64 0}
!36 = !{!"_ZTS10VmaRWMutex", !37, i64 0}
!37 = !{!"_ZTSSt12shared_mutex", !38, i64 0}
!38 = !{!"_ZTSSt22__shared_mutex_pthread", !8, i64 0}
!39 = !{!"_ZTS22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE", !10, i64 0, !10, i64 8, !11, i64 16}
!40 = !{!"_ZTS18VmaVulkanFunctions", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200}
!41 = !{i8 0, i8 2}
!42 = !{}
!43 = !{!10, !10, i64 0}
!44 = !{!16, !17, i64 12}
!45 = !{!46, !12, i64 16}
!46 = !{!"_ZTS25VkMemoryAllocateFlagsInfo", !7, i64 0, !10, i64 8, !12, i64 16, !12, i64 20}
!47 = !{!16, !17, i64 13}
!48 = !{!49, !30, i64 16}
!49 = !{!"_ZTS31VkMemoryPriorityAllocateInfoEXT", !7, i64 0, !10, i64 8, !30, i64 16}
!50 = !{!51, !12, i64 16}
!51 = !{!"_ZTS26VkExportMemoryAllocateInfo", !7, i64 0, !10, i64 8, !12, i64 16}
!52 = distinct !{!52, !53}
!53 = !{!"llvm.loop.mustprogress"}
!54 = distinct !{!54, !53}
!55 = distinct !{!55, !53}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass