; 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.VmaMutexLockRead = 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 }
%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 }
%struct.VmaPool_T = type { %class.VmaBlockVector, %class.VmaDedicatedAllocationList, i32, ptr, ptr, ptr }
%class.VmaBlockVector = type <{ ptr, ptr, i32, [4 x i8], i64, i64, i64, i64, i8, [3 x i8], i32, float, [4 x i8], i64, ptr, %class.VmaRWMutex, %class.VmaVector.15, i32, i8, [3 x i8] }>
%class.VmaVector.15 = type { %struct.VmaStlAllocator.16, ptr, i64, i64 }
%struct.VmaStlAllocator.16 = type { ptr }

@.str.177 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.287 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.288 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.289 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.290 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.291 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.292 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.293 = external hidden unnamed_addr constant [4 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13VmaJsonWriter11BeginObjectEb(ptr noundef nonnull align 8 dereferenceable(41), i1 noundef zeroext) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13VmaJsonWriter10BeginArrayEb(ptr noundef nonnull align 8 dereferenceable(41), i1 noundef zeroext) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13VmaJsonWriter14ContinueStringEj(ptr noundef nonnull align 8 dereferenceable(41), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13VmaJsonWriter14ContinueStringEm(ptr noundef nonnull align 8 dereferenceable(41), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13VmaJsonWriter11WriteNumberEm(ptr noundef nonnull align 8 dereferenceable(41), i64 noundef) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14VmaBlockVector16PrintDetailedMapER13VmaJsonWriter(ptr noundef nonnull align 8 dereferenceable(181), ptr noundef nonnull align 8 dereferenceable(41)) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE7GetNextEPK9VmaPool_T(ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14VmaAllocator_T16PrintDetailedMapER13VmaJsonWriter(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef nonnull align 8 dereferenceable(41) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.VmaMutexLockRead, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %18, ptr noundef @.str.287)
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN13VmaJsonWriter11BeginObjectEb(ptr noundef nonnull align 8 dereferenceable(41) %19, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %55, %2
  %21 = load i32, ptr %5, align 4, !tbaa !9
  %22 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %17)
  %23 = icmp ult i32 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %58

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %26 = getelementptr inbounds %struct.VmaAllocator_T, ptr %17, i32 0, i32 21
  %27 = load i32, ptr %5, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = getelementptr inbounds [32 x ptr], ptr %26, i64 0, i64 %28
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %30, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %31 = getelementptr inbounds %struct.VmaAllocator_T, ptr %17, i32 0, i32 22
  %32 = load i32, ptr %5, align 4, !tbaa !9
  %33 = zext i32 %32 to i64
  %34 = getelementptr inbounds [32 x %class.VmaDedicatedAllocationList], ptr %31, i64 0, i64 %33
  store ptr %34, ptr %7, align 8, !tbaa !5
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %54

37:                                               ; preds = %25
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN13VmaJsonWriter11BeginStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %38, ptr noundef @.str.288)
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = load i32, ptr %5, align 4, !tbaa !9
  call void @_ZN13VmaJsonWriter14ContinueStringEj(ptr noundef nonnull align 8 dereferenceable(41) %39, i32 noundef %40)
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN13VmaJsonWriter9EndStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %41, ptr noundef null)
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN13VmaJsonWriter11BeginObjectEb(ptr noundef nonnull align 8 dereferenceable(41) %42, i1 noundef zeroext false)
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %43, ptr noundef @.str.289)
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = call noundef i64 @_ZNK14VmaBlockVector21GetPreferredBlockSizeEv(ptr noundef nonnull align 8 dereferenceable(181) %45)
  call void @_ZN13VmaJsonWriter11WriteNumberEm(ptr noundef nonnull align 8 dereferenceable(41) %44, i64 noundef %46)
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %47, ptr noundef @.str.290)
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN14VmaBlockVector16PrintDetailedMapER13VmaJsonWriter(ptr noundef nonnull align 8 dereferenceable(181) %48, ptr noundef nonnull align 8 dereferenceable(41) %49)
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %50, ptr noundef @.str.291)
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN26VmaDedicatedAllocationList16BuildStatsStringER13VmaJsonWriter(ptr noundef nonnull align 8 dereferenceable(88) %51, ptr noundef nonnull align 8 dereferenceable(41) %52)
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN13VmaJsonWriter9EndObjectEv(ptr noundef nonnull align 8 dereferenceable(41) %53)
  br label %54

54:                                               ; preds = %37, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %55

55:                                               ; preds = %54
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = add i32 %56, 1
  store i32 %57, ptr %5, align 4, !tbaa !9
  br label %20, !llvm.loop !11

58:                                               ; preds = %24
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN13VmaJsonWriter9EndObjectEv(ptr noundef nonnull align 8 dereferenceable(41) %59)
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %60, ptr noundef @.str.292)
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN13VmaJsonWriter11BeginObjectEb(ptr noundef nonnull align 8 dereferenceable(41) %61, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %62 = getelementptr inbounds %struct.VmaAllocator_T, ptr %17, i32 0, i32 31
  %63 = getelementptr inbounds %struct.VmaAllocator_T, ptr %17, i32 0, i32 0
  %64 = load i8, ptr %63, align 8, !tbaa !13, !range !40, !noundef !41
  %65 = trunc i8 %64 to i1
  call void @_ZN16VmaMutexLockReadC2ER10VmaRWMutexb(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(56) %62, i1 noundef zeroext %65)
  %66 = getelementptr inbounds %struct.VmaAllocator_T, ptr %17, i32 0, i32 32
  %67 = invoke noundef zeroext i1 @_ZNK22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(24) %66)
          to label %68 unwind label %76

68:                                               ; preds = %58
  br i1 %67, label %191, label %69

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %185, %69
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = invoke noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %17)
          to label %73 unwind label %80

73:                                               ; preds = %70
  %74 = icmp ult i32 %71, %72
  br i1 %74, label %84, label %75

75:                                               ; preds = %73
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %190

76:                                               ; preds = %58
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %9, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %10, align 4
  br label %193

80:                                               ; preds = %70
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %9, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %10, align 4
  br label %189

84:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #3
  store i8 1, ptr %13, align 1, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store i64 0, ptr %14, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %85 = getelementptr inbounds %struct.VmaAllocator_T, ptr %17, i32 0, i32 32
  %86 = invoke noundef ptr @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE5FrontEv(ptr noundef nonnull align 8 dereferenceable(24) %85)
          to label %87 unwind label %92

87:                                               ; preds = %84
  store ptr %86, ptr %15, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %172, %87
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %96, label %91

91:                                               ; preds = %88
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %174

92:                                               ; preds = %168, %84
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %9, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %10, align 4
  br label %173

96:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.VmaPool_T, ptr %97, i32 0, i32 0
  store ptr %98, ptr %16, align 8, !tbaa !5
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  %100 = invoke noundef i32 @_ZNK14VmaBlockVector18GetMemoryTypeIndexEv(ptr noundef nonnull align 8 dereferenceable(181) %99)
          to label %101 unwind label %117

101:                                              ; preds = %96
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = icmp eq i32 %100, %102
  br i1 %103, label %104, label %167

104:                                              ; preds = %101
  %105 = load i8, ptr %13, align 1, !tbaa !42, !range !40, !noundef !41
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %121

107:                                              ; preds = %104
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN13VmaJsonWriter11BeginStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %108, ptr noundef @.str.288)
          to label %109 unwind label %117

109:                                              ; preds = %107
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = load i32, ptr %11, align 4, !tbaa !9
  invoke void @_ZN13VmaJsonWriter14ContinueStringEj(ptr noundef nonnull align 8 dereferenceable(41) %110, i32 noundef %111)
          to label %112 unwind label %117

112:                                              ; preds = %109
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN13VmaJsonWriter9EndStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %113, ptr noundef null)
          to label %114 unwind label %117

114:                                              ; preds = %112
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN13VmaJsonWriter10BeginArrayEb(ptr noundef nonnull align 8 dereferenceable(41) %115, i1 noundef zeroext false)
          to label %116 unwind label %117

116:                                              ; preds = %114
  store i8 0, ptr %13, align 1, !tbaa !42
  br label %121

117:                                              ; preds = %164, %160, %158, %155, %153, %152, %148, %146, %144, %142, %138, %136, %131, %127, %125, %123, %121, %114, %112, %109, %107, %96
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %9, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %173

121:                                              ; preds = %116, %104
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN13VmaJsonWriter11BeginObjectEb(ptr noundef nonnull align 8 dereferenceable(41) %122, i1 noundef zeroext false)
          to label %123 unwind label %117

123:                                              ; preds = %121
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %124, ptr noundef @.str.177)
          to label %125 unwind label %117

125:                                              ; preds = %123
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN13VmaJsonWriter11BeginStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %126, ptr noundef null)
          to label %127 unwind label %117

127:                                              ; preds = %125
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = load i64, ptr %14, align 8, !tbaa !43
  %130 = add i64 %129, 1
  store i64 %130, ptr %14, align 8, !tbaa !43
  invoke void @_ZN13VmaJsonWriter14ContinueStringEm(ptr noundef nonnull align 8 dereferenceable(41) %128, i64 noundef %129)
          to label %131 unwind label %117

131:                                              ; preds = %127
  %132 = load ptr, ptr %15, align 8, !tbaa !5
  %133 = invoke noundef ptr @_ZNK9VmaPool_T7GetNameEv(ptr noundef nonnull align 8 dereferenceable(304) %132)
          to label %134 unwind label %117

134:                                              ; preds = %131
  %135 = icmp ne ptr %133, null
  br i1 %135, label %136, label %144

136:                                              ; preds = %134
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN13VmaJsonWriter14ContinueStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %137, ptr noundef @.str.293)
          to label %138 unwind label %117

138:                                              ; preds = %136
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = load ptr, ptr %15, align 8, !tbaa !5
  %141 = invoke noundef ptr @_ZNK9VmaPool_T7GetNameEv(ptr noundef nonnull align 8 dereferenceable(304) %140)
          to label %142 unwind label %117

142:                                              ; preds = %138
  invoke void @_ZN13VmaJsonWriter14ContinueStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %139, ptr noundef %141)
          to label %143 unwind label %117

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143, %134
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN13VmaJsonWriter9EndStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %145, ptr noundef null)
          to label %146 unwind label %117

146:                                              ; preds = %144
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %147, ptr noundef @.str.289)
          to label %148 unwind label %117

148:                                              ; preds = %146
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = load ptr, ptr %16, align 8, !tbaa !5
  %151 = invoke noundef i64 @_ZNK14VmaBlockVector21GetPreferredBlockSizeEv(ptr noundef nonnull align 8 dereferenceable(181) %150)
          to label %152 unwind label %117

152:                                              ; preds = %148
  invoke void @_ZN13VmaJsonWriter11WriteNumberEm(ptr noundef nonnull align 8 dereferenceable(41) %149, i64 noundef %151)
          to label %153 unwind label %117

153:                                              ; preds = %152
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %154, ptr noundef @.str.290)
          to label %155 unwind label %117

155:                                              ; preds = %153
  %156 = load ptr, ptr %16, align 8, !tbaa !5
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN14VmaBlockVector16PrintDetailedMapER13VmaJsonWriter(ptr noundef nonnull align 8 dereferenceable(181) %156, ptr noundef nonnull align 8 dereferenceable(41) %157)
          to label %158 unwind label %117

158:                                              ; preds = %155
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %159, ptr noundef @.str.291)
          to label %160 unwind label %117

160:                                              ; preds = %158
  %161 = load ptr, ptr %15, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.VmaPool_T, ptr %161, i32 0, i32 1
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN26VmaDedicatedAllocationList16BuildStatsStringER13VmaJsonWriter(ptr noundef nonnull align 8 dereferenceable(88) %162, ptr noundef nonnull align 8 dereferenceable(41) %163)
          to label %164 unwind label %117

164:                                              ; preds = %160
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN13VmaJsonWriter9EndObjectEv(ptr noundef nonnull align 8 dereferenceable(41) %165)
          to label %166 unwind label %117

166:                                              ; preds = %164
  br label %167

167:                                              ; preds = %166, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %168

168:                                              ; preds = %167
  %169 = getelementptr inbounds %struct.VmaAllocator_T, ptr %17, i32 0, i32 32
  %170 = load ptr, ptr %15, align 8, !tbaa !5
  %171 = invoke noundef ptr @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE7GetNextEPK9VmaPool_T(ptr noundef %170)
          to label %172 unwind label %92

172:                                              ; preds = %168
  store ptr %171, ptr %15, align 8, !tbaa !5
  br label %88, !llvm.loop !44

173:                                              ; preds = %117, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %188

174:                                              ; preds = %91
  %175 = load i8, ptr %13, align 1, !tbaa !42, !range !40, !noundef !41
  %176 = trunc i8 %175 to i1
  br i1 %176, label %184, label %177

177:                                              ; preds = %174
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN13VmaJsonWriter8EndArrayEv(ptr noundef nonnull align 8 dereferenceable(41) %178)
          to label %179 unwind label %180

179:                                              ; preds = %177
  br label %184

180:                                              ; preds = %177
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %9, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %10, align 4
  br label %188

184:                                              ; preds = %179, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #3
  br label %185

185:                                              ; preds = %184
  %186 = load i32, ptr %11, align 4, !tbaa !9
  %187 = add i32 %186, 1
  store i32 %187, ptr %11, align 4, !tbaa !9
  br label %70, !llvm.loop !45

188:                                              ; preds = %180, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #3
  br label %189

189:                                              ; preds = %188, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %193

190:                                              ; preds = %75
  br label %191

191:                                              ; preds = %190, %68
  call void @_ZN16VmaMutexLockReadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN13VmaJsonWriter9EndObjectEv(ptr noundef nonnull align 8 dereferenceable(41) %192)
  ret void

193:                                              ; preds = %189, %76
  call void @_ZN16VmaMutexLockReadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %194

194:                                              ; preds = %193
  %195 = load ptr, ptr %9, align 8
  %196 = load i32, ptr %10, align 4
  %197 = insertvalue { ptr, i32 } poison, ptr %195, 0
  %198 = insertvalue { ptr, i32 } %197, i32 %196, 1
  resume { ptr, i32 } %198
}

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

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


; 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.VmaMutexLockRead = type { ptr }
%class.VmaDedicatedAllocationList = type { i8, %class.VmaRWMutex, %class.VmaIntrusiveLinkedList }
%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 = type { ptr, ptr, i64 }

@.str.177 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.287 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.288 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.289 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.290 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.291 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.292 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.293 = external hidden unnamed_addr constant [4 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13VmaJsonWriter11BeginObjectEb(ptr noundef nonnull align 8 dereferenceable(41), i1 noundef zeroext) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13VmaJsonWriter10BeginArrayEb(ptr noundef nonnull align 8 dereferenceable(41), i1 noundef zeroext) local_unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13VmaJsonWriter14ContinueStringEj(ptr noundef nonnull align 8 dereferenceable(41), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13VmaJsonWriter14ContinueStringEm(ptr noundef nonnull align 8 dereferenceable(41), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13VmaJsonWriter11WriteNumberEm(ptr noundef nonnull align 8 dereferenceable(41), i64 noundef) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14VmaBlockVector16PrintDetailedMapER13VmaJsonWriter(ptr noundef nonnull align 8 dereferenceable(181), ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE7GetNextEPK9VmaPool_T(ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14VmaAllocator_T16PrintDetailedMapER13VmaJsonWriter(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef nonnull align 8 dereferenceable(41) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %struct.VmaMutexLockRead, align 8
  tail call void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef nonnull @.str.287)
  tail call void @_ZN13VmaJsonWriter11BeginObjectEb(ptr noundef nonnull align 8 dereferenceable(41) %1, i1 noundef zeroext false)
  %4 = tail call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %.not82 = icmp eq i32 %4, 0
  br i1 %.not82, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 1552
  %6 = getelementptr inbounds i8, ptr %0, i64 1808
  br label %13

._crit_edge:                                      ; preds = %20, %2
  tail call void @_ZN13VmaJsonWriter9EndObjectEv(ptr noundef nonnull align 8 dereferenceable(41) %1)
  tail call void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef nonnull @.str.292)
  tail call void @_ZN13VmaJsonWriter11BeginObjectEb(ptr noundef nonnull align 8 dereferenceable(41) %1, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %7 = getelementptr inbounds i8, ptr %0, i64 5616
  %8 = load i8, ptr %0, align 8, !tbaa !5, !range !36, !noundef !37
  %9 = trunc nuw i8 %8 to i1
  call void @_ZN16VmaMutexLockReadC2ER10VmaRWMutexb(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(56) %7, i1 noundef zeroext %9)
  %10 = getelementptr inbounds i8, ptr %0, i64 5672
  %11 = call noundef zeroext i1 @_ZNK22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  br i1 %11, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %._crit_edge
  %12 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %.not83 = icmp eq i32 %12, 0
  br i1 %.not83, label %.loopexit, label %.lr.ph81

13:                                               ; preds = %.lr.ph, %20
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %20 ]
  %14 = getelementptr inbounds [32 x ptr], ptr %5, i64 0, i64 %indvars.iv
  %15 = load ptr, ptr %14, align 8, !tbaa !38
  %.not76 = icmp eq ptr %15, null
  br i1 %.not76, label %20, label %16

16:                                               ; preds = %13
  %17 = getelementptr inbounds [32 x %class.VmaDedicatedAllocationList], ptr %6, i64 0, i64 %indvars.iv
  tail call void @_ZN13VmaJsonWriter11BeginStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef nonnull @.str.288)
  %18 = trunc nuw i64 %indvars.iv to i32
  tail call void @_ZN13VmaJsonWriter14ContinueStringEj(ptr noundef nonnull align 8 dereferenceable(41) %1, i32 noundef %18)
  tail call void @_ZN13VmaJsonWriter9EndStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef null)
  tail call void @_ZN13VmaJsonWriter11BeginObjectEb(ptr noundef nonnull align 8 dereferenceable(41) %1, i1 noundef zeroext false)
  tail call void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef nonnull @.str.289)
  %19 = tail call noundef i64 @_ZNK14VmaBlockVector21GetPreferredBlockSizeEv(ptr noundef nonnull align 8 dereferenceable(181) %15)
  tail call void @_ZN13VmaJsonWriter11WriteNumberEm(ptr noundef nonnull align 8 dereferenceable(41) %1, i64 noundef %19)
  tail call void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef nonnull @.str.290)
  tail call void @_ZN14VmaBlockVector16PrintDetailedMapER13VmaJsonWriter(ptr noundef nonnull align 8 dereferenceable(181) %15, ptr noundef nonnull align 8 dereferenceable(41) %1)
  tail call void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef nonnull @.str.291)
  tail call void @_ZN26VmaDedicatedAllocationList16BuildStatsStringER13VmaJsonWriter(ptr noundef nonnull align 8 dereferenceable(88) %17, ptr noundef nonnull align 8 dereferenceable(41) %1)
  tail call void @_ZN13VmaJsonWriter9EndObjectEv(ptr noundef nonnull align 8 dereferenceable(41) %1)
  br label %20

20:                                               ; preds = %16, %13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %21 = tail call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %22 = zext i32 %21 to i64
  %23 = icmp ult i64 %indvars.iv.next, %22
  br i1 %23, label %13, label %._crit_edge, !llvm.loop !39

.lr.ph81:                                         ; preds = %.preheader, %66
  %.06780 = phi i32 [ %67, %66 ], [ 0, %.preheader ]
  %24 = call noundef ptr @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE5FrontEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  br label %25

25:                                               ; preds = %61, %.lr.ph81
  %.065 = phi i8 [ 1, %.lr.ph81 ], [ %.2, %61 ]
  %.064 = phi i64 [ 0, %.lr.ph81 ], [ %.1, %61 ]
  %.063 = phi ptr [ %24, %.lr.ph81 ], [ %62, %61 ]
  %.not = icmp eq ptr %.063, null
  br i1 %.not, label %26, label %30

26:                                               ; preds = %25
  %27 = trunc nuw i8 %.065 to i1
  br i1 %27, label %66, label %63

28:                                               ; preds = %61
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %70

30:                                               ; preds = %25
  %31 = call noundef i32 @_ZNK14VmaBlockVector18GetMemoryTypeIndexEv(ptr noundef nonnull align 8 dereferenceable(181) %.063)
  %32 = icmp eq i32 %31, %.06780
  br i1 %32, label %33, label %61

33:                                               ; preds = %30
  %34 = trunc nuw i8 %.065 to i1
  br i1 %34, label %35, label %41

35:                                               ; preds = %33
  invoke void @_ZN13VmaJsonWriter11BeginStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef nonnull @.str.288)
          to label %36 unwind label %39

36:                                               ; preds = %35
  invoke void @_ZN13VmaJsonWriter14ContinueStringEj(ptr noundef nonnull align 8 dereferenceable(41) %1, i32 noundef %.06780)
          to label %37 unwind label %39

37:                                               ; preds = %36
  invoke void @_ZN13VmaJsonWriter9EndStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef null)
          to label %38 unwind label %39

38:                                               ; preds = %37
  invoke void @_ZN13VmaJsonWriter10BeginArrayEb(ptr noundef nonnull align 8 dereferenceable(41) %1, i1 noundef zeroext false)
          to label %41 unwind label %39

39:                                               ; preds = %60, %58, %57, %56, %55, %53, %52, %51, %49, %48, %44, %43, %42, %41, %38, %37, %36, %35
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %70

41:                                               ; preds = %38, %33
  %.166 = phi i8 [ %.065, %33 ], [ 0, %38 ]
  invoke void @_ZN13VmaJsonWriter11BeginObjectEb(ptr noundef nonnull align 8 dereferenceable(41) %1, i1 noundef zeroext false)
          to label %42 unwind label %39

42:                                               ; preds = %41
  invoke void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef nonnull @.str.177)
          to label %43 unwind label %39

43:                                               ; preds = %42
  invoke void @_ZN13VmaJsonWriter11BeginStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef null)
          to label %44 unwind label %39

44:                                               ; preds = %43
  %45 = add i64 %.064, 1
  invoke void @_ZN13VmaJsonWriter14ContinueStringEm(ptr noundef nonnull align 8 dereferenceable(41) %1, i64 noundef %.064)
          to label %46 unwind label %39

46:                                               ; preds = %44
  %47 = call noundef ptr @_ZNK9VmaPool_T7GetNameEv(ptr noundef nonnull align 8 dereferenceable(304) %.063)
  %.not73 = icmp eq ptr %47, null
  br i1 %.not73, label %51, label %48

48:                                               ; preds = %46
  invoke void @_ZN13VmaJsonWriter14ContinueStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef nonnull @.str.293)
          to label %49 unwind label %39

49:                                               ; preds = %48
  %50 = call noundef ptr @_ZNK9VmaPool_T7GetNameEv(ptr noundef nonnull align 8 dereferenceable(304) %.063)
  invoke void @_ZN13VmaJsonWriter14ContinueStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef %50)
          to label %51 unwind label %39

51:                                               ; preds = %49, %46
  invoke void @_ZN13VmaJsonWriter9EndStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef null)
          to label %52 unwind label %39

52:                                               ; preds = %51
  invoke void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef nonnull @.str.289)
          to label %53 unwind label %39

53:                                               ; preds = %52
  %54 = call noundef i64 @_ZNK14VmaBlockVector21GetPreferredBlockSizeEv(ptr noundef nonnull align 8 dereferenceable(181) %.063)
  invoke void @_ZN13VmaJsonWriter11WriteNumberEm(ptr noundef nonnull align 8 dereferenceable(41) %1, i64 noundef %54)
          to label %55 unwind label %39

55:                                               ; preds = %53
  invoke void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef nonnull @.str.290)
          to label %56 unwind label %39

56:                                               ; preds = %55
  invoke void @_ZN14VmaBlockVector16PrintDetailedMapER13VmaJsonWriter(ptr noundef nonnull align 8 dereferenceable(181) %.063, ptr noundef nonnull align 8 dereferenceable(41) %1)
          to label %57 unwind label %39

57:                                               ; preds = %56
  invoke void @_ZN13VmaJsonWriter11WriteStringEPKc(ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef nonnull @.str.291)
          to label %58 unwind label %39

58:                                               ; preds = %57
  %59 = getelementptr inbounds i8, ptr %.063, i64 184
  invoke void @_ZN26VmaDedicatedAllocationList16BuildStatsStringER13VmaJsonWriter(ptr noundef nonnull align 8 dereferenceable(88) %59, ptr noundef nonnull align 8 dereferenceable(41) %1)
          to label %60 unwind label %39

60:                                               ; preds = %58
  invoke void @_ZN13VmaJsonWriter9EndObjectEv(ptr noundef nonnull align 8 dereferenceable(41) %1)
          to label %61 unwind label %39

61:                                               ; preds = %60, %30
  %.2 = phi i8 [ %.166, %60 ], [ %.065, %30 ]
  %.1 = phi i64 [ %45, %60 ], [ %.064, %30 ]
  %62 = invoke noundef ptr @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE7GetNextEPK9VmaPool_T(ptr noundef nonnull %.063)
          to label %25 unwind label %28, !llvm.loop !41

63:                                               ; preds = %26
  invoke void @_ZN13VmaJsonWriter8EndArrayEv(ptr noundef nonnull align 8 dereferenceable(41) %1)
          to label %66 unwind label %64

64:                                               ; preds = %63
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %70

66:                                               ; preds = %63, %26
  %67 = add nuw i32 %.06780, 1
  %68 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %69 = icmp ult i32 %67, %68
  br i1 %69, label %.lr.ph81, label %.loopexit, !llvm.loop !42

70:                                               ; preds = %28, %39, %64
  %.pn.pn = phi { ptr, i32 } [ %65, %64 ], [ %29, %28 ], [ %40, %39 ]
  call void @_ZN16VmaMutexLockReadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  resume { ptr, i32 } %.pn.pn

.loopexit:                                        ; preds = %66, %.preheader, %._crit_edge
  call void @_ZN16VmaMutexLockReadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  call void @_ZN13VmaJsonWriter9EndObjectEv(ptr noundef nonnull align 8 dereferenceable(41) %1)
  ret void
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_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 = !{!11, !11, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}
!42 = distinct !{!42, !40}


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