; 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.VkPhysicalDeviceMemoryProperties2 = type { i32, ptr, %struct.VkPhysicalDeviceMemoryProperties }
%struct.VkPhysicalDeviceMemoryProperties = type { i32, [32 x %struct.VkMemoryType], i32, [16 x %struct.VkMemoryHeap] }
%struct.VkMemoryType = type { i32, i32 }
%struct.VkMemoryHeap = type { i64, i32 }
%struct.VkPhysicalDeviceMemoryBudgetPropertiesEXT = type { i32, ptr, [16 x i64], [16 x i64] }
%struct.VmaMutexLockWrite = type { ptr }
%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 }
%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.286 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN14VmaAllocator_T18UpdateVulkanBudgetEv = external hidden unnamed_addr constant [42 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17VmaMutexLockWriteC2ER10VmaRWMutexb(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(56), i1 noundef zeroext) unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14VmaAllocator_T18UpdateVulkanBudgetEv(ptr noundef nonnull align 8 dereferenceable(5916) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.VkPhysicalDeviceMemoryProperties2, align 8
  %4 = alloca %struct.VkPhysicalDeviceMemoryBudgetPropertiesEXT, align 8
  %5 = alloca %struct.VmaMutexLockWrite, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8
  %10 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 5
  %11 = load i8, ptr %10, align 2, !tbaa !9, !range !37, !noundef !38
  %12 = trunc i8 %11 to i1
  br i1 %12, label %13, label %14

13:                                               ; preds = %1
  br label %16

14:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str.286, ptr noundef @.str.2, i32 noundef 15976, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T18UpdateVulkanBudgetEv) #7
  unreachable

15:                                               ; No predecessors!
  br label %16

16:                                               ; preds = %15, %13
  call void @llvm.lifetime.start.p0(i64 536, ptr %3) #8
  call void @llvm.memset.p0.i64(ptr align 8 %3, i8 0, i64 536, i1 false)
  %17 = getelementptr inbounds %struct.VkPhysicalDeviceMemoryProperties2, ptr %3, i32 0, i32 0
  store i32 1000059006, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 272, ptr %4) #8
  call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 272, i1 false)
  %18 = getelementptr inbounds %struct.VkPhysicalDeviceMemoryBudgetPropertiesEXT, ptr %4, i32 0, i32 0
  store i32 1000237000, ptr %18, align 8
  call void @_ZL22VmaPnextChainPushFrontI33VkPhysicalDeviceMemoryProperties241VkPhysicalDeviceMemoryBudgetPropertiesEXTEvPT_PT0_(ptr noundef %3, ptr noundef %4)
  %19 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZNK14VmaAllocator_T18GetVulkanFunctionsEv(ptr noundef nonnull align 8 dereferenceable(5916) %9)
  %20 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %19, i32 0, i32 23
  %21 = load ptr, ptr %20, align 8, !tbaa !39
  %22 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 27
  %23 = load ptr, ptr %22, align 8, !tbaa !40
  call void %21(ptr noundef %23, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %24 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 23
  %25 = getelementptr inbounds %struct.VmaCurrentBudgetData, ptr %24, i32 0, i32 5
  %26 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 0
  %27 = load i8, ptr %26, align 8, !tbaa !41, !range !37, !noundef !38
  %28 = trunc i8 %27 to i1
  call void @_ZN17VmaMutexLockWriteC2ER10VmaRWMutexb(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(56) %25, i1 noundef zeroext %28)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !42
  br label %29

29:                                               ; preds = %151, %16
  %30 = load i32, ptr %6, align 4, !tbaa !42
  %31 = invoke noundef i32 @_ZNK14VmaAllocator_T18GetMemoryHeapCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %9)
          to label %32 unwind label %35

32:                                               ; preds = %29
  %33 = icmp ult i32 %30, %31
  br i1 %33, label %39, label %34

34:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %154

35:                                               ; preds = %29
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %7, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @_ZN17VmaMutexLockWriteD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 272, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 536, ptr %3) #8
  br label %158

39:                                               ; preds = %32
  %40 = getelementptr inbounds %struct.VkPhysicalDeviceMemoryBudgetPropertiesEXT, ptr %4, i32 0, i32 3
  %41 = load i32, ptr %6, align 4, !tbaa !42
  %42 = zext i32 %41 to i64
  %43 = getelementptr inbounds [16 x i64], ptr %40, i64 0, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !43
  %45 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 23
  %46 = getelementptr inbounds %struct.VmaCurrentBudgetData, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %6, align 4, !tbaa !42
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds [16 x i64], ptr %46, i64 0, i64 %48
  store i64 %44, ptr %49, align 8, !tbaa !43
  %50 = getelementptr inbounds %struct.VkPhysicalDeviceMemoryBudgetPropertiesEXT, ptr %4, i32 0, i32 2
  %51 = load i32, ptr %6, align 4, !tbaa !42
  %52 = zext i32 %51 to i64
  %53 = getelementptr inbounds [16 x i64], ptr %50, i64 0, i64 %52
  %54 = load i64, ptr %53, align 8, !tbaa !43
  %55 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 23
  %56 = getelementptr inbounds %struct.VmaCurrentBudgetData, ptr %55, i32 0, i32 7
  %57 = load i32, ptr %6, align 4, !tbaa !42
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds [16 x i64], ptr %56, i64 0, i64 %58
  store i64 %54, ptr %59, align 8, !tbaa !43
  %60 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 23
  %61 = getelementptr inbounds %struct.VmaCurrentBudgetData, ptr %60, i32 0, i32 2
  %62 = load i32, ptr %6, align 4, !tbaa !42
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds [16 x %"struct.std::atomic.9"], ptr %61, i64 0, i64 %63
  %65 = call noundef i64 @_ZNKSt13__atomic_baseImE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %64, i32 noundef 5) #8
  %66 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 23
  %67 = getelementptr inbounds %struct.VmaCurrentBudgetData, ptr %66, i32 0, i32 8
  %68 = load i32, ptr %6, align 4, !tbaa !42
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds [16 x i64], ptr %67, i64 0, i64 %69
  store i64 %65, ptr %70, align 8, !tbaa !43
  %71 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 23
  %72 = getelementptr inbounds %struct.VmaCurrentBudgetData, ptr %71, i32 0, i32 7
  %73 = load i32, ptr %6, align 4, !tbaa !42
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds [16 x i64], ptr %72, i64 0, i64 %74
  %76 = load i64, ptr %75, align 8, !tbaa !43
  %77 = icmp eq i64 %76, 0
  br i1 %77, label %78, label %93

78:                                               ; preds = %39
  %79 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 20
  %80 = getelementptr inbounds %struct.VkPhysicalDeviceMemoryProperties, ptr %79, i32 0, i32 3
  %81 = load i32, ptr %6, align 4, !tbaa !42
  %82 = zext i32 %81 to i64
  %83 = getelementptr inbounds [16 x %struct.VkMemoryHeap], ptr %80, i64 0, i64 %82
  %84 = getelementptr inbounds %struct.VkMemoryHeap, ptr %83, i32 0, i32 0
  %85 = load i64, ptr %84, align 8, !tbaa !44
  %86 = mul i64 %85, 8
  %87 = udiv i64 %86, 10
  %88 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 23
  %89 = getelementptr inbounds %struct.VmaCurrentBudgetData, ptr %88, i32 0, i32 7
  %90 = load i32, ptr %6, align 4, !tbaa !42
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds [16 x i64], ptr %89, i64 0, i64 %91
  store i64 %87, ptr %92, align 8, !tbaa !43
  br label %122

93:                                               ; preds = %39
  %94 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 23
  %95 = getelementptr inbounds %struct.VmaCurrentBudgetData, ptr %94, i32 0, i32 7
  %96 = load i32, ptr %6, align 4, !tbaa !42
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds [16 x i64], ptr %95, i64 0, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !43
  %100 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 20
  %101 = getelementptr inbounds %struct.VkPhysicalDeviceMemoryProperties, ptr %100, i32 0, i32 3
  %102 = load i32, ptr %6, align 4, !tbaa !42
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds [16 x %struct.VkMemoryHeap], ptr %101, i64 0, i64 %103
  %105 = getelementptr inbounds %struct.VkMemoryHeap, ptr %104, i32 0, i32 0
  %106 = load i64, ptr %105, align 8, !tbaa !44
  %107 = icmp ugt i64 %99, %106
  br i1 %107, label %108, label %121

108:                                              ; preds = %93
  %109 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 20
  %110 = getelementptr inbounds %struct.VkPhysicalDeviceMemoryProperties, ptr %109, i32 0, i32 3
  %111 = load i32, ptr %6, align 4, !tbaa !42
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds [16 x %struct.VkMemoryHeap], ptr %110, i64 0, i64 %112
  %114 = getelementptr inbounds %struct.VkMemoryHeap, ptr %113, i32 0, i32 0
  %115 = load i64, ptr %114, align 8, !tbaa !44
  %116 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 23
  %117 = getelementptr inbounds %struct.VmaCurrentBudgetData, ptr %116, i32 0, i32 7
  %118 = load i32, ptr %6, align 4, !tbaa !42
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds [16 x i64], ptr %117, i64 0, i64 %119
  store i64 %115, ptr %120, align 8, !tbaa !43
  br label %121

121:                                              ; preds = %108, %93
  br label %122

122:                                              ; preds = %121, %78
  %123 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 23
  %124 = getelementptr inbounds %struct.VmaCurrentBudgetData, ptr %123, i32 0, i32 6
  %125 = load i32, ptr %6, align 4, !tbaa !42
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds [16 x i64], ptr %124, i64 0, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !43
  %129 = icmp eq i64 %128, 0
  br i1 %129, label %130, label %150

130:                                              ; preds = %122
  %131 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 23
  %132 = getelementptr inbounds %struct.VmaCurrentBudgetData, ptr %131, i32 0, i32 8
  %133 = load i32, ptr %6, align 4, !tbaa !42
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds [16 x i64], ptr %132, i64 0, i64 %134
  %136 = load i64, ptr %135, align 8, !tbaa !43
  %137 = icmp ugt i64 %136, 0
  br i1 %137, label %138, label %150

138:                                              ; preds = %130
  %139 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 23
  %140 = getelementptr inbounds %struct.VmaCurrentBudgetData, ptr %139, i32 0, i32 8
  %141 = load i32, ptr %6, align 4, !tbaa !42
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds [16 x i64], ptr %140, i64 0, i64 %142
  %144 = load i64, ptr %143, align 8, !tbaa !43
  %145 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 23
  %146 = getelementptr inbounds %struct.VmaCurrentBudgetData, ptr %145, i32 0, i32 6
  %147 = load i32, ptr %6, align 4, !tbaa !42
  %148 = zext i32 %147 to i64
  %149 = getelementptr inbounds [16 x i64], ptr %146, i64 0, i64 %148
  store i64 %144, ptr %149, align 8, !tbaa !43
  br label %150

150:                                              ; preds = %138, %130, %122
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %6, align 4, !tbaa !42
  %153 = add i32 %152, 1
  store i32 %153, ptr %6, align 4, !tbaa !42
  br label %29, !llvm.loop !46

154:                                              ; preds = %34
  %155 = getelementptr inbounds %struct.VmaAllocator_T, ptr %9, i32 0, i32 23
  %156 = getelementptr inbounds %struct.VmaCurrentBudgetData, ptr %155, i32 0, i32 4
  %157 = call noundef i32 @_ZNSt13__atomic_baseIjEaSEj(ptr noundef nonnull align 4 dereferenceable(4) %156, i32 noundef 0) #8
  call void @_ZN17VmaMutexLockWriteD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 272, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 536, ptr %3) #8
  ret void

158:                                              ; preds = %35
  %159 = load ptr, ptr %7, align 8
  %160 = load i32, ptr %8, align 4
  %161 = insertvalue { ptr, i32 } poison, ptr %159, 0
  %162 = insertvalue { ptr, i32 } %161, i32 %160, 1
  resume { ptr, i32 } %162
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { 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, !11, i64 10}
!10 = !{!"_ZTS14VmaAllocator_T", !11, i64 0, !12, i64 4, !11, i64 8, !11, i64 9, !11, i64 10, !11, i64 11, !11, i64 12, !11, i64 13, !6, i64 16, !6, i64 24, !11, i64 32, !13, i64 40, !14, i64 88, !15, i64 112, !12, i64 200, !23, i64 208, !28, i64 1032, !7, i64 1552, !7, i64 1808, !29, i64 4624, !30, i64 5456, !22, i64 5464, !6, i64 5472, !30, i64 5480, !30, i64 5484, !7, i64 5488, !32, i64 5616, !35, i64 5672, !12, i64 5696, !36, i64 5704, !12, i64 5912}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS21VkAllocationCallbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!14 = !{!"_ZTS24VmaDeviceMemoryCallbacks", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"_ZTS28VmaAllocationObjectAllocator", !16, i64 0, !19, i64 40}
!16 = !{!"_ZTS8VmaMutex", !17, i64 0}
!17 = !{!"_ZTSSt5mutex", !18, i64 0}
!18 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!19 = !{!"_ZTS16VmaPoolAllocatorI15VmaAllocation_TE", !6, i64 0, !12, i64 8, !20, i64 16}
!20 = !{!"_ZTS9VmaVectorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockE15VmaStlAllocatorIS3_EE", !21, i64 0, !6, i64 8, !22, i64 16, !22, i64 24}
!21 = !{!"_ZTS15VmaStlAllocatorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockEE", !6, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTS26VkPhysicalDeviceProperties", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !24, i64 16, !7, i64 20, !7, i64 276, !25, i64 296, !27, i64 800}
!24 = !{!"_ZTS20VkPhysicalDeviceType", !7, i64 0}
!25 = !{!"_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, !22, i64 48, !22, 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, !7, i64 220, !12, i64 232, !7, i64 236, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !26, i64 268, !26, i64 272, !12, i64 276, !7, i64 280, !7, i64 288, !12, i64 296, !22, i64 304, !22, i64 312, !22, i64 320, !22, i64 328, !12, i64 336, !12, i64 340, !12, i64 344, !12, i64 348, !26, i64 352, !26, 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, !26, i64 424, !12, i64 428, !12, i64 432, !12, i64 436, !12, i64 440, !7, i64 444, !7, i64 452, !26, i64 460, !26, i64 464, !12, i64 468, !12, i64 472, !22, i64 480, !22, i64 488, !22, i64 496}
!26 = !{!"float", !7, i64 0}
!27 = !{!"_ZTS32VkPhysicalDeviceSparseProperties", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!28 = !{!"_ZTS32VkPhysicalDeviceMemoryProperties", !12, i64 0, !7, i64 4, !12, i64 260, !7, i64 264}
!29 = !{!"_ZTS20VmaCurrentBudgetData", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 256, !30, i64 384, !32, i64 392, !7, i64 448, !7, i64 576, !7, i64 704}
!30 = !{!"_ZTSSt6atomicIjE", !31, i64 0}
!31 = !{!"_ZTSSt13__atomic_baseIjE", !12, i64 0}
!32 = !{!"_ZTS10VmaRWMutex", !33, i64 0}
!33 = !{!"_ZTSSt12shared_mutex", !34, i64 0}
!34 = !{!"_ZTSSt22__shared_mutex_pthread", !7, i64 0}
!35 = !{!"_ZTS22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE", !6, i64 0, !6, i64 8, !22, i64 16}
!36 = !{!"_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}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = !{!36, !6, i64 184}
!40 = !{!10, !6, i64 5472}
!41 = !{!10, !11, i64 0}
!42 = !{!12, !12, i64 0}
!43 = !{!22, !22, i64 0}
!44 = !{!45, !22, i64 0}
!45 = !{!"_ZTS12VkMemoryHeap", !22, i64 0, !12, i64 8}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}


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

%struct.VkPhysicalDeviceMemoryProperties2 = type { i32, ptr, %struct.VkPhysicalDeviceMemoryProperties }
%struct.VkPhysicalDeviceMemoryProperties = type { i32, [32 x %struct.VkMemoryType], i32, [16 x %struct.VkMemoryHeap] }
%struct.VkMemoryType = type { i32, i32 }
%struct.VkMemoryHeap = type { i64, i32 }
%struct.VkPhysicalDeviceMemoryBudgetPropertiesEXT = type { i32, ptr, [16 x i64], [16 x i64] }
%struct.VmaMutexLockWrite = type { ptr }
%"struct.std::atomic.9" = type { %"struct.std::__atomic_base.10" }
%"struct.std::__atomic_base.10" = type { i64 }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.286 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN14VmaAllocator_T18UpdateVulkanBudgetEv = external hidden unnamed_addr constant [42 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17VmaMutexLockWriteC2ER10VmaRWMutexb(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(56), i1 noundef zeroext) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN17VmaMutexLockWriteD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 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) #4

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14VmaAllocator_T18UpdateVulkanBudgetEv(ptr noundef nonnull align 8 dereferenceable(5916) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %struct.VkPhysicalDeviceMemoryProperties2, align 8
  %3 = alloca %struct.VkPhysicalDeviceMemoryBudgetPropertiesEXT, align 8
  %4 = alloca %struct.VmaMutexLockWrite, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 10
  %6 = load i8, ptr %5, align 2, !tbaa !5, !range !36, !noundef !37
  %7 = trunc nuw i8 %6 to i1
  br i1 %7, label %9, label %8

8:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.286, ptr noundef nonnull @.str.2, i32 noundef 15976, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T18UpdateVulkanBudgetEv) #7
  unreachable

9:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 536, ptr nonnull %2) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(536) %2, i8 0, i64 536, i1 false)
  store i32 1000059006, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 272, ptr nonnull %3) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(272) %3, i8 0, i64 272, i1 false)
  store i32 1000237000, ptr %3, align 8
  call void @_ZL22VmaPnextChainPushFrontI33VkPhysicalDeviceMemoryProperties241VkPhysicalDeviceMemoryBudgetPropertiesEXTEvPT_PT0_(ptr noundef nonnull %2, ptr noundef nonnull %3)
  %10 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZNK14VmaAllocator_T18GetVulkanFunctionsEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %11 = getelementptr inbounds i8, ptr %10, i64 184
  %12 = load ptr, ptr %11, align 8, !tbaa !38
  %13 = getelementptr inbounds i8, ptr %0, i64 5472
  %14 = load ptr, ptr %13, align 8, !tbaa !39
  call void %12(ptr noundef %14, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %15 = getelementptr inbounds i8, ptr %0, i64 5016
  %16 = load i8, ptr %0, align 8, !tbaa !40, !range !36, !noundef !37
  %17 = trunc nuw i8 %16 to i1
  call void @_ZN17VmaMutexLockWriteC2ER10VmaRWMutexb(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(56) %15, i1 noundef zeroext %17)
  %18 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryHeapCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %.not23 = icmp eq i32 %18, 0
  br i1 %.not23, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %9
  %19 = getelementptr inbounds i8, ptr %3, i64 144
  %20 = getelementptr inbounds i8, ptr %0, i64 5072
  %21 = getelementptr inbounds i8, ptr %3, i64 16
  %22 = getelementptr inbounds i8, ptr %0, i64 5200
  %23 = getelementptr inbounds i8, ptr %0, i64 4752
  %24 = getelementptr inbounds i8, ptr %0, i64 5328
  %25 = getelementptr inbounds i8, ptr %0, i64 1296
  br label %28

._crit_edge:                                      ; preds = %51, %9
  %26 = getelementptr inbounds i8, ptr %0, i64 5008
  %27 = call noundef i32 @_ZNSt13__atomic_baseIjEaSEj(ptr noundef nonnull align 4 dereferenceable(4) %26, i32 noundef 0) #8
  call void @_ZN17VmaMutexLockWriteD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 536, ptr nonnull %2) #8
  ret void

28:                                               ; preds = %.lr.ph, %51
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %51 ]
  %29 = getelementptr inbounds [16 x i64], ptr %19, i64 0, i64 %indvars.iv
  %30 = load i64, ptr %29, align 8, !tbaa !41
  %31 = getelementptr inbounds [16 x i64], ptr %20, i64 0, i64 %indvars.iv
  store i64 %30, ptr %31, align 8, !tbaa !41
  %32 = getelementptr inbounds [16 x i64], ptr %21, i64 0, i64 %indvars.iv
  %33 = load i64, ptr %32, align 8, !tbaa !41
  %34 = getelementptr inbounds [16 x i64], ptr %22, i64 0, i64 %indvars.iv
  store i64 %33, ptr %34, align 8, !tbaa !41
  %35 = getelementptr inbounds [16 x %"struct.std::atomic.9"], ptr %23, i64 0, i64 %indvars.iv
  %36 = call noundef i64 @_ZNKSt13__atomic_baseImE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %35, i32 noundef 5) #8
  %37 = getelementptr inbounds [16 x i64], ptr %24, i64 0, i64 %indvars.iv
  store i64 %36, ptr %37, align 8, !tbaa !41
  %38 = load i64, ptr %34, align 8, !tbaa !41
  %39 = icmp eq i64 %38, 0
  %40 = getelementptr inbounds [16 x %struct.VkMemoryHeap], ptr %25, i64 0, i64 %indvars.iv
  %41 = load i64, ptr %40, align 8, !tbaa !42
  br i1 %39, label %42, label %45

42:                                               ; preds = %28
  %43 = shl i64 %41, 3
  %44 = udiv i64 %43, 10
  br label %.sink.split

45:                                               ; preds = %28
  %46 = icmp ugt i64 %38, %41
  br i1 %46, label %.sink.split, label %47

.sink.split:                                      ; preds = %45, %42
  %.sink = phi i64 [ %44, %42 ], [ %41, %45 ]
  store i64 %.sink, ptr %34, align 8, !tbaa !41
  br label %47

47:                                               ; preds = %.sink.split, %45
  %48 = load i64, ptr %31, align 8, !tbaa !41
  %49 = icmp ne i64 %48, 0
  %.not = icmp eq i64 %36, 0
  %or.cond = or i1 %49, %.not
  br i1 %or.cond, label %51, label %50

50:                                               ; preds = %47
  store i64 %36, ptr %31, align 8, !tbaa !41
  br label %51

51:                                               ; preds = %47, %50
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %52 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryHeapCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %53 = zext i32 %52 to i64
  %54 = icmp ult i64 %indvars.iv.next, %53
  br i1 %54, label %28, label %._crit_edge, !llvm.loop !44
}

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

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

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


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