; 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.VmaDefragmentationContext_T::MoveAllocationData" = type { i64, i64, i32, i32, %struct.VmaDefragmentationMove }
%struct.VmaDefragmentationMove = type { i32, ptr, ptr }
%struct.VmaAllocationRequest = type <{ ptr, i64, %"class.VmaList<VmaSuballocation, VmaStlAllocator<VmaSuballocation>>::iterator", ptr, i64, i32, [4 x i8] }>
%"class.VmaList<VmaSuballocation, VmaStlAllocator<VmaSuballocation>>::iterator" = type { ptr, ptr }
%struct.VmaDefragmentationContext_T = type { i64, i32, ptr, ptr, %struct.VmaStlAllocator.17, %class.VmaVector.18, i8, i32, i32, ptr, ptr, i64, %struct.VmaDefragmentationStats, %struct.VmaDefragmentationStats, ptr }
%struct.VmaStlAllocator.17 = type { ptr }
%class.VmaVector.18 = type { %struct.VmaStlAllocator.17, ptr, i64, i64 }
%struct.VmaDefragmentationStats = type { i64, i64, i32, i32 }
%class.VmaDeviceMemoryBlock = type { ptr, ptr, i32, i32, ptr, %class.VmaMutex, %class.VmaMappingHysteresis, i32, ptr }
%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.VmaMappingHysteresis = type { i32, i32, i32 }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__._ZN27VmaDefragmentationContext_T27ComputeDefragmentation_FullER14VmaBlockVector = external hidden unnamed_addr constant [80 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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14VmaBlockVector23CommitAllocationRequestER20VmaAllocationRequestP20VmaDeviceMemoryBlockmjPv20VmaSuballocationTypePP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(181), ptr noundef nonnull align 8 dereferenceable(52), ptr noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN27VmaDefragmentationContext_T27ComputeDefragmentation_FullER14VmaBlockVector(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(181) %1) #3 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.VmaDefragmentationContext_T::MoveAllocationData", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca %struct.VmaAllocationRequest, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = call noundef i64 @_ZNK14VmaBlockVector13GetBlockCountEv(ptr noundef nonnull align 8 dereferenceable(181) %16)
  %18 = sub i64 %17, 1
  store i64 %18, ptr %6, align 8, !tbaa !9
  br label %19

19:                                               ; preds = %161, %2
  %20 = load i64, ptr %6, align 8, !tbaa !9
  %21 = getelementptr inbounds %struct.VmaDefragmentationContext_T, ptr %15, i32 0, i32 11
  %22 = load i64, ptr %21, align 8, !tbaa !11
  %23 = icmp ugt i64 %20, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %19
  store i32 2, ptr %7, align 4
  br label %164

25:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = load i64, ptr %6, align 8, !tbaa !9
  %28 = call noundef ptr @_ZNK14VmaBlockVector8GetBlockEm(ptr noundef nonnull align 8 dereferenceable(181) %26, i64 noundef %27)
  store ptr %28, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %class.VmaDeviceMemoryBlock, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !17
  store ptr %31, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = load ptr, ptr %32, align 8, !tbaa !23
  %34 = getelementptr inbounds ptr, ptr %33, i64 11
  %35 = load ptr, ptr %34, align 8
  %36 = call noundef ptr %35(ptr noundef nonnull align 8 dereferenceable(33) %32)
  store ptr %36, ptr %10, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %148, %25
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 5, ptr %7, align 4
  br label %155

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #4
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN27VmaDefragmentationContext_T11GetMoveDataEP16VmaAllocHandle_TP16VmaBlockMetadata(ptr dead_on_unwind writable sret(%"struct.VmaDefragmentationContext_T::MoveAllocationData") align 8 %11, ptr noundef %42, ptr noundef %43)
  %44 = getelementptr inbounds %"struct.VmaDefragmentationContext_T::MoveAllocationData", ptr %11, i32 0, i32 4
  %45 = getelementptr inbounds %struct.VmaDefragmentationMove, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !25
  %47 = call noundef ptr @_ZNK15VmaAllocation_T11GetUserDataEv(ptr noundef nonnull align 8 dereferenceable(84) %46)
  %48 = icmp eq ptr %47, %15
  br i1 %48, label %49, label %50

49:                                               ; preds = %41
  store i32 7, ptr %7, align 4
  br label %145

50:                                               ; preds = %41
  %51 = getelementptr inbounds %"struct.VmaDefragmentationContext_T::MoveAllocationData", ptr %11, i32 0, i32 4
  %52 = getelementptr inbounds %struct.VmaDefragmentationMove, ptr %51, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !25
  %54 = call noundef i64 @_ZNK15VmaAllocation_T7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(84) %53)
  %55 = call noundef i32 @_ZN27VmaDefragmentationContext_T13CheckCountersEm(ptr noundef nonnull align 8 dereferenceable(168) %15, i64 noundef %54)
  switch i32 %55, label %58 [
    i32 1, label %56
    i32 2, label %57
    i32 0, label %59
  ]

56:                                               ; preds = %50
  store i32 7, ptr %7, align 4
  br label %145

57:                                               ; preds = %50
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %145

58:                                               ; preds = %50
  call void @__assert_fail(ptr noundef @.str.57, ptr noundef @.str.2, i32 noundef 13717, ptr noundef @__PRETTY_FUNCTION__._ZN27VmaDefragmentationContext_T27ComputeDefragmentation_FullER14VmaBlockVector) #5
  unreachable

59:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %60 = getelementptr inbounds %struct.VmaDefragmentationContext_T, ptr %15, i32 0, i32 5
  %61 = call noundef i64 @_ZNK9VmaVectorI22VmaDefragmentationMove15VmaStlAllocatorIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %60)
  store i64 %61, ptr %12, align 8, !tbaa !9
  %62 = load i64, ptr %6, align 8, !tbaa !9
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = call noundef zeroext i1 @_ZN27VmaDefragmentationContext_T17AllocInOtherBlockEmmRNS_18MoveAllocationDataER14VmaBlockVector(ptr noundef nonnull align 8 dereferenceable(168) %15, i64 noundef 0, i64 noundef %62, ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(181) %63)
  br i1 %64, label %65, label %66

65:                                               ; preds = %59
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %144

66:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %67 = getelementptr inbounds %"struct.VmaDefragmentationContext_T::MoveAllocationData", ptr %11, i32 0, i32 4
  %68 = getelementptr inbounds %struct.VmaDefragmentationMove, ptr %67, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8, !tbaa !25
  %70 = call noundef i64 @_ZNK15VmaAllocation_T9GetOffsetEv(ptr noundef nonnull align 8 dereferenceable(84) %69)
  store i64 %70, ptr %13, align 8, !tbaa !9
  %71 = load i64, ptr %12, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.VmaDefragmentationContext_T, ptr %15, i32 0, i32 5
  %73 = call noundef i64 @_ZNK9VmaVectorI22VmaDefragmentationMove15VmaStlAllocatorIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %72)
  %74 = icmp eq i64 %71, %73
  br i1 %74, label %75, label %142

75:                                               ; preds = %66
  %76 = load i64, ptr %13, align 8, !tbaa !9
  %77 = icmp ne i64 %76, 0
  br i1 %77, label %78, label %142

78:                                               ; preds = %75
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = load ptr, ptr %79, align 8, !tbaa !23
  %81 = getelementptr inbounds ptr, ptr %80, i64 6
  %82 = load ptr, ptr %81, align 8
  %83 = call noundef i64 %82(ptr noundef nonnull align 8 dereferenceable(33) %79)
  %84 = getelementptr inbounds %"struct.VmaDefragmentationContext_T::MoveAllocationData", ptr %11, i32 0, i32 0
  %85 = load i64, ptr %84, align 8, !tbaa !30
  %86 = icmp uge i64 %83, %85
  br i1 %86, label %87, label %142

87:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 56, ptr %14) #4
  %88 = getelementptr inbounds %struct.VmaAllocationRequest, ptr %14, i32 0, i32 0
  store ptr null, ptr %88, align 8, !tbaa !31
  %89 = getelementptr inbounds %struct.VmaAllocationRequest, ptr %14, i32 0, i32 1
  store i64 0, ptr %89, align 8, !tbaa !35
  %90 = getelementptr inbounds %struct.VmaAllocationRequest, ptr %14, i32 0, i32 2
  call void @_ZN7VmaListI16VmaSuballocation15VmaStlAllocatorIS0_EE8iteratorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %90)
  %91 = getelementptr inbounds %struct.VmaAllocationRequest, ptr %14, i32 0, i32 3
  store ptr null, ptr %91, align 8, !tbaa !36
  %92 = getelementptr inbounds %struct.VmaAllocationRequest, ptr %14, i32 0, i32 4
  store i64 0, ptr %92, align 8, !tbaa !37
  %93 = getelementptr inbounds %struct.VmaAllocationRequest, ptr %14, i32 0, i32 5
  store i32 0, ptr %93, align 8, !tbaa !38
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.VmaDefragmentationContext_T::MoveAllocationData", ptr %11, i32 0, i32 0
  %96 = load i64, ptr %95, align 8, !tbaa !30
  %97 = getelementptr inbounds %"struct.VmaDefragmentationContext_T::MoveAllocationData", ptr %11, i32 0, i32 1
  %98 = load i64, ptr %97, align 8, !tbaa !39
  %99 = getelementptr inbounds %"struct.VmaDefragmentationContext_T::MoveAllocationData", ptr %11, i32 0, i32 2
  %100 = load i32, ptr %99, align 8, !tbaa !40
  %101 = load ptr, ptr %94, align 8, !tbaa !23
  %102 = getelementptr inbounds ptr, ptr %101, i64 17
  %103 = load ptr, ptr %102, align 8
  %104 = call noundef zeroext i1 %103(ptr noundef nonnull align 8 dereferenceable(33) %94, i64 noundef %96, i64 noundef %98, i1 noundef zeroext false, i32 noundef %100, i32 noundef 262144, ptr noundef %14)
  br i1 %104, label %105, label %138

105:                                              ; preds = %87
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.VmaAllocationRequest, ptr %14, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !31
  %109 = load ptr, ptr %106, align 8, !tbaa !23
  %110 = getelementptr inbounds ptr, ptr %109, i64 9
  %111 = load ptr, ptr %110, align 8
  %112 = call noundef i64 %111(ptr noundef nonnull align 8 dereferenceable(33) %106, ptr noundef %108)
  %113 = load i64, ptr %13, align 8, !tbaa !9
  %114 = icmp ult i64 %112, %113
  br i1 %114, label %115, label %137

115:                                              ; preds = %105
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.VmaDefragmentationContext_T::MoveAllocationData", ptr %11, i32 0, i32 1
  %119 = load i64, ptr %118, align 8, !tbaa !39
  %120 = getelementptr inbounds %"struct.VmaDefragmentationContext_T::MoveAllocationData", ptr %11, i32 0, i32 3
  %121 = load i32, ptr %120, align 4, !tbaa !41
  %122 = getelementptr inbounds %"struct.VmaDefragmentationContext_T::MoveAllocationData", ptr %11, i32 0, i32 2
  %123 = load i32, ptr %122, align 8, !tbaa !40
  %124 = getelementptr inbounds %"struct.VmaDefragmentationContext_T::MoveAllocationData", ptr %11, i32 0, i32 4
  %125 = getelementptr inbounds %struct.VmaDefragmentationMove, ptr %124, i32 0, i32 2
  %126 = call noundef i32 @_ZN14VmaBlockVector23CommitAllocationRequestER20VmaAllocationRequestP20VmaDeviceMemoryBlockmjPv20VmaSuballocationTypePP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(181) %116, ptr noundef nonnull align 8 dereferenceable(52) %14, ptr noundef %117, i64 noundef %119, i32 noundef %121, ptr noundef %15, i32 noundef %123, ptr noundef %125)
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %128, label %136

128:                                              ; preds = %115
  %129 = getelementptr inbounds %struct.VmaDefragmentationContext_T, ptr %15, i32 0, i32 5
  %130 = getelementptr inbounds %"struct.VmaDefragmentationContext_T::MoveAllocationData", ptr %11, i32 0, i32 4
  call void @_ZN9VmaVectorI22VmaDefragmentationMove15VmaStlAllocatorIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %129, ptr noundef nonnull align 8 dereferenceable(24) %130)
  %131 = getelementptr inbounds %"struct.VmaDefragmentationContext_T::MoveAllocationData", ptr %11, i32 0, i32 0
  %132 = load i64, ptr %131, align 8, !tbaa !30
  %133 = call noundef zeroext i1 @_ZN27VmaDefragmentationContext_T17IncrementCountersEm(ptr noundef nonnull align 8 dereferenceable(168) %15, i64 noundef %132)
  br i1 %133, label %134, label %135

134:                                              ; preds = %128
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %139

135:                                              ; preds = %128
  br label %136

136:                                              ; preds = %135, %115
  br label %137

137:                                              ; preds = %136, %105
  br label %138

138:                                              ; preds = %137, %87
  store i32 0, ptr %7, align 4
  br label %139

139:                                              ; preds = %138, %134
  call void @llvm.lifetime.end.p0(i64 56, ptr %14) #4
  %140 = load i32, ptr %7, align 4
  switch i32 %140, label %143 [
    i32 0, label %141
  ]

141:                                              ; preds = %139
  br label %142

142:                                              ; preds = %141, %78, %75, %66
  store i32 0, ptr %7, align 4
  br label %143

143:                                              ; preds = %142, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %144

144:                                              ; preds = %143, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %145

145:                                              ; preds = %144, %57, %56, %49
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #4
  %146 = load i32, ptr %7, align 4
  switch i32 %146, label %155 [
    i32 0, label %147
    i32 7, label %148
  ]

147:                                              ; preds = %145
  br label %148

148:                                              ; preds = %147, %145
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  %151 = load ptr, ptr %149, align 8, !tbaa !23
  %152 = getelementptr inbounds ptr, ptr %151, i64 12
  %153 = load ptr, ptr %152, align 8
  %154 = call noundef ptr %153(ptr noundef nonnull align 8 dereferenceable(33) %149, ptr noundef %150)
  store ptr %154, ptr %10, align 8, !tbaa !5
  br label %37, !llvm.loop !42

155:                                              ; preds = %145, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %156 = load i32, ptr %7, align 4
  switch i32 %156, label %158 [
    i32 5, label %157
  ]

157:                                              ; preds = %155
  store i32 0, ptr %7, align 4
  br label %158

158:                                              ; preds = %157, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %159 = load i32, ptr %7, align 4
  switch i32 %159, label %164 [
    i32 0, label %160
  ]

160:                                              ; preds = %158
  br label %161

161:                                              ; preds = %160
  %162 = load i64, ptr %6, align 8, !tbaa !9
  %163 = add i64 %162, -1
  store i64 %163, ptr %6, align 8, !tbaa !9
  br label %19, !llvm.loop !44

164:                                              ; preds = %158, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %165 = load i32, ptr %7, align 4
  switch i32 %165, label %169 [
    i32 2, label %166
    i32 1, label %167
  ]

166:                                              ; preds = %164
  store i1 false, ptr %3, align 1
  br label %167

167:                                              ; preds = %166, %164
  %168 = load i1, ptr %3, align 1
  ret i1 %168

169:                                              ; preds = %164
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN27VmaDefragmentationContext_T11GetMoveDataEP16VmaAllocHandle_TP16VmaBlockMetadata(ptr dead_on_unwind noalias writable sret(%"struct.VmaDefragmentationContext_T::MoveAllocationData") align 8, ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN27VmaDefragmentationContext_T13CheckCountersEm(ptr noundef nonnull align 8 dereferenceable(168), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN27VmaDefragmentationContext_T17IncrementCountersEm(ptr noundef nonnull align 8 dereferenceable(168), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN27VmaDefragmentationContext_T17AllocInOtherBlockEmmRNS_18MoveAllocationDataER14VmaBlockVector(ptr noundef nonnull align 8 dereferenceable(168), i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(181)) #3 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 104}
!12 = !{!"_ZTS27VmaDefragmentationContext_T", !10, i64 0, !13, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !15, i64 40, !7, i64 72, !13, i64 76, !13, i64 80, !6, i64 88, !6, i64 96, !10, i64 104, !16, i64 112, !16, i64 136, !6, i64 160}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS15VmaStlAllocatorI22VmaDefragmentationMoveE", !6, i64 0}
!15 = !{!"_ZTS9VmaVectorI22VmaDefragmentationMove15VmaStlAllocatorIS0_EE", !14, i64 0, !6, i64 8, !10, i64 16, !10, i64 24}
!16 = !{!"_ZTS23VmaDefragmentationStats", !10, i64 0, !10, i64 8, !13, i64 16, !13, i64 20}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTS20VmaDeviceMemoryBlock", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !6, i64 24, !19, i64 32, !22, i64 72, !13, i64 84, !6, i64 88}
!19 = !{!"_ZTS8VmaMutex", !20, i64 0}
!20 = !{!"_ZTSSt5mutex", !21, i64 0}
!21 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!22 = !{!"_ZTS20VmaMappingHysteresis", !13, i64 0, !13, i64 4, !13, i64 8}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !8, i64 0}
!25 = !{!26, !6, i64 32}
!26 = !{!"_ZTSN27VmaDefragmentationContext_T18MoveAllocationDataE", !10, i64 0, !10, i64 8, !27, i64 16, !13, i64 20, !28, i64 24}
!27 = !{!"_ZTS20VmaSuballocationType", !7, i64 0}
!28 = !{!"_ZTS22VmaDefragmentationMove", !29, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTS31VmaDefragmentationMoveOperation", !7, i64 0}
!30 = !{!26, !10, i64 0}
!31 = !{!32, !6, i64 0}
!32 = !{!"_ZTS20VmaAllocationRequest", !6, i64 0, !10, i64 8, !33, i64 16, !6, i64 32, !10, i64 40, !34, i64 48}
!33 = !{!"_ZTSN7VmaListI16VmaSuballocation15VmaStlAllocatorIS0_EE8iteratorE", !6, i64 0, !6, i64 8}
!34 = !{!"_ZTS24VmaAllocationRequestType", !7, i64 0}
!35 = !{!32, !10, i64 8}
!36 = !{!32, !6, i64 32}
!37 = !{!32, !10, i64 40}
!38 = !{!32, !34, i64 48}
!39 = !{!26, !10, i64 8}
!40 = !{!26, !27, i64 16}
!41 = !{!26, !13, i64 20}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}
!44 = distinct !{!44, !43}


; 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.VmaDefragmentationContext_T::MoveAllocationData" = type { i64, i64, i32, i32, %struct.VmaDefragmentationMove }
%struct.VmaDefragmentationMove = type { i32, ptr, ptr }
%struct.VmaAllocationRequest = type <{ ptr, i64, %"class.VmaList<VmaSuballocation, VmaStlAllocator<VmaSuballocation>>::iterator", ptr, i64, i32, [4 x i8] }>
%"class.VmaList<VmaSuballocation, VmaStlAllocator<VmaSuballocation>>::iterator" = type { ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__._ZN27VmaDefragmentationContext_T27ComputeDefragmentation_FullER14VmaBlockVector = external hidden unnamed_addr constant [80 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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14VmaBlockVector23CommitAllocationRequestER20VmaAllocationRequestP20VmaDeviceMemoryBlockmjPv20VmaSuballocationTypePP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(181), ptr noundef nonnull align 8 dereferenceable(52), ptr noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN27VmaDefragmentationContext_T27ComputeDefragmentation_FullER14VmaBlockVector(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(181) %1) local_unnamed_addr #3 align 2 {
  %3 = alloca %"struct.VmaDefragmentationContext_T::MoveAllocationData", align 8
  %4 = alloca %struct.VmaAllocationRequest, align 8
  %5 = tail call noundef i64 @_ZNK14VmaBlockVector13GetBlockCountEv(ptr noundef nonnull align 8 dereferenceable(181) %1)
  %6 = getelementptr inbounds i8, ptr %0, i64 104
  %.03157 = add i64 %5, -1
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %.not4858 = icmp ugt i64 %.03157, %7
  br i1 %.not4858, label %.lr.ph61, label %.loopexit49

.lr.ph61:                                         ; preds = %2
  %8 = getelementptr inbounds i8, ptr %3, i64 24
  %9 = getelementptr inbounds i8, ptr %3, i64 32
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = getelementptr inbounds i8, ptr %4, i64 16
  %12 = getelementptr inbounds i8, ptr %4, i64 32
  %13 = getelementptr inbounds i8, ptr %3, i64 8
  %14 = getelementptr inbounds i8, ptr %3, i64 16
  %15 = getelementptr inbounds i8, ptr %3, i64 20
  %16 = getelementptr inbounds i8, ptr %3, i64 40
  br label %18

.loopexit:                                        ; preds = %73, %18
  %.031 = add i64 %.03159, -1
  %17 = load i64, ptr %6, align 8, !tbaa !5
  %.not48 = icmp ugt i64 %.031, %17
  br i1 %.not48, label %18, label %.loopexit49, !llvm.loop !15

18:                                               ; preds = %.lr.ph61, %.loopexit
  %.03159 = phi i64 [ %.03157, %.lr.ph61 ], [ %.031, %.loopexit ]
  %19 = call noundef ptr @_ZNK14VmaBlockVector8GetBlockEm(ptr noundef nonnull align 8 dereferenceable(181) %1, i64 noundef %.03159)
  %20 = load ptr, ptr %19, align 8, !tbaa !17
  %21 = load ptr, ptr %20, align 8, !tbaa !23
  %22 = getelementptr inbounds i8, ptr %21, i64 88
  %23 = load ptr, ptr %22, align 8
  %24 = call noundef ptr %23(ptr noundef nonnull align 8 dereferenceable(33) %20)
  %.not55 = icmp eq ptr %24, null
  br i1 %.not55, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %18, %73
  %.03256 = phi ptr [ %77, %73 ], [ %24, %18 ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #5
  call void @_ZN27VmaDefragmentationContext_T11GetMoveDataEP16VmaAllocHandle_TP16VmaBlockMetadata(ptr dead_on_unwind nonnull writable sret(%"struct.VmaDefragmentationContext_T::MoveAllocationData") align 8 %3, ptr noundef nonnull %.03256, ptr noundef nonnull %20)
  %25 = load ptr, ptr %9, align 8, !tbaa !25
  %26 = call noundef ptr @_ZNK15VmaAllocation_T11GetUserDataEv(ptr noundef nonnull align 8 dereferenceable(84) %25)
  %27 = icmp eq ptr %26, %0
  br i1 %27, label %73, label %28

28:                                               ; preds = %.lr.ph
  %29 = load ptr, ptr %9, align 8, !tbaa !25
  %30 = call noundef i64 @_ZNK15VmaAllocation_T7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(84) %29)
  %31 = call noundef i32 @_ZN27VmaDefragmentationContext_T13CheckCountersEm(ptr noundef nonnull align 8 dereferenceable(168) %0, i64 noundef %30)
  switch i32 %31, label %32 [
    i32 1, label %73
    i32 2, label %.thread46
    i32 0, label %33
  ]

32:                                               ; preds = %28
  call void @__assert_fail(ptr noundef nonnull @.str.57, ptr noundef nonnull @.str.2, i32 noundef 13717, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN27VmaDefragmentationContext_T27ComputeDefragmentation_FullER14VmaBlockVector) #6
  unreachable

33:                                               ; preds = %28
  %34 = call noundef i64 @_ZNK9VmaVectorI22VmaDefragmentationMove15VmaStlAllocatorIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
  %35 = call noundef zeroext i1 @_ZN27VmaDefragmentationContext_T17AllocInOtherBlockEmmRNS_18MoveAllocationDataER14VmaBlockVector(ptr noundef nonnull align 8 dereferenceable(168) %0, i64 noundef 0, i64 noundef %.03159, ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(181) %1)
  br i1 %35, label %.thread46, label %36

36:                                               ; preds = %33
  %37 = load ptr, ptr %9, align 8, !tbaa !25
  %38 = call noundef i64 @_ZNK15VmaAllocation_T9GetOffsetEv(ptr noundef nonnull align 8 dereferenceable(84) %37)
  %39 = call noundef i64 @_ZNK9VmaVectorI22VmaDefragmentationMove15VmaStlAllocatorIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
  %40 = icmp eq i64 %34, %39
  %41 = icmp ne i64 %38, 0
  %or.cond = and i1 %41, %40
  br i1 %or.cond, label %42, label %73

42:                                               ; preds = %36
  %43 = load ptr, ptr %20, align 8, !tbaa !23
  %44 = getelementptr inbounds i8, ptr %43, i64 48
  %45 = load ptr, ptr %44, align 8
  %46 = call noundef i64 %45(ptr noundef nonnull align 8 dereferenceable(33) %20)
  %47 = load i64, ptr %3, align 8, !tbaa !30
  %.not41 = icmp ult i64 %46, %47
  br i1 %.not41, label %73, label %48

48:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  call void @_ZN7VmaListI16VmaSuballocation15VmaStlAllocatorIS0_EE8iteratorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %12, i8 0, i64 20, i1 false)
  %49 = load i64, ptr %3, align 8, !tbaa !30
  %50 = load i64, ptr %13, align 8, !tbaa !31
  %51 = load i32, ptr %14, align 8, !tbaa !32
  %52 = load ptr, ptr %20, align 8, !tbaa !23
  %53 = getelementptr inbounds i8, ptr %52, i64 136
  %54 = load ptr, ptr %53, align 8
  %55 = call noundef zeroext i1 %54(ptr noundef nonnull align 8 dereferenceable(33) %20, i64 noundef %49, i64 noundef %50, i1 noundef zeroext false, i32 noundef %51, i32 noundef 262144, ptr noundef nonnull %4)
  br i1 %55, label %56, label %.critedge

56:                                               ; preds = %48
  %57 = load ptr, ptr %4, align 8, !tbaa !33
  %58 = load ptr, ptr %20, align 8, !tbaa !23
  %59 = getelementptr inbounds i8, ptr %58, i64 72
  %60 = load ptr, ptr %59, align 8
  %61 = call noundef i64 %60(ptr noundef nonnull align 8 dereferenceable(33) %20, ptr noundef %57)
  %62 = icmp ult i64 %61, %38
  br i1 %62, label %63, label %.critedge

63:                                               ; preds = %56
  %64 = load i64, ptr %13, align 8, !tbaa !31
  %65 = load i32, ptr %15, align 4, !tbaa !37
  %66 = load i32, ptr %14, align 8, !tbaa !32
  %67 = call noundef i32 @_ZN14VmaBlockVector23CommitAllocationRequestER20VmaAllocationRequestP20VmaDeviceMemoryBlockmjPv20VmaSuballocationTypePP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(181) %1, ptr noundef nonnull align 8 dereferenceable(52) %4, ptr noundef nonnull %19, i64 noundef %64, i32 noundef %65, ptr noundef nonnull %0, i32 noundef %66, ptr noundef nonnull %16)
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %.critedge

69:                                               ; preds = %63
  call void @_ZN9VmaVectorI22VmaDefragmentationMove15VmaStlAllocatorIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(24) %8)
  %70 = load i64, ptr %3, align 8, !tbaa !30
  %71 = call noundef zeroext i1 @_ZN27VmaDefragmentationContext_T17IncrementCountersEm(ptr noundef nonnull align 8 dereferenceable(168) %0, i64 noundef %70)
  br i1 %71, label %72, label %.critedge

.critedge:                                        ; preds = %56, %69, %63, %48
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #5
  br label %73

72:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #5
  br label %.thread46

73:                                               ; preds = %.lr.ph, %28, %.critedge, %42, %36
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #5
  %74 = load ptr, ptr %20, align 8, !tbaa !23
  %75 = getelementptr inbounds i8, ptr %74, i64 96
  %76 = load ptr, ptr %75, align 8
  %77 = call noundef ptr %76(ptr noundef nonnull align 8 dereferenceable(33) %20, ptr noundef nonnull %.03256)
  %.not = icmp eq ptr %77, null
  br i1 %.not, label %.loopexit, label %.lr.ph, !llvm.loop !38

.thread46:                                        ; preds = %33, %28, %72
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #5
  br label %.loopexit49

.loopexit49:                                      ; preds = %.loopexit, %2, %.thread46
  %.not4853 = phi i1 [ true, %.thread46 ], [ false, %2 ], [ false, %.loopexit ]
  ret i1 %.not4853
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN27VmaDefragmentationContext_T11GetMoveDataEP16VmaAllocHandle_TP16VmaBlockMetadata(ptr dead_on_unwind noalias writable sret(%"struct.VmaDefragmentationContext_T::MoveAllocationData") align 8, ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN27VmaDefragmentationContext_T17IncrementCountersEm(ptr noundef nonnull align 8 dereferenceable(168), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN27VmaDefragmentationContext_T17AllocInOtherBlockEmmRNS_18MoveAllocationDataER14VmaBlockVector(ptr noundef nonnull align 8 dereferenceable(168), i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(181)) local_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

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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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 104}
!6 = !{!"_ZTS27VmaDefragmentationContext_T", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !13, i64 40, !8, i64 72, !10, i64 76, !10, i64 80, !11, i64 88, !11, i64 96, !7, i64 104, !14, i64 112, !14, i64 136, !11, i64 160}
!7 = !{!"long", !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 = !{!"_ZTS15VmaStlAllocatorI22VmaDefragmentationMoveE", !11, i64 0}
!13 = !{!"_ZTS9VmaVectorI22VmaDefragmentationMove15VmaStlAllocatorIS0_EE", !12, i64 0, !11, i64 8, !7, i64 16, !7, i64 24}
!14 = !{!"_ZTS23VmaDefragmentationStats", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !11, i64 0}
!18 = !{!"_ZTS20VmaDeviceMemoryBlock", !11, i64 0, !11, i64 8, !10, i64 16, !10, i64 20, !11, i64 24, !19, i64 32, !22, i64 72, !10, i64 84, !11, i64 88}
!19 = !{!"_ZTS8VmaMutex", !20, i64 0}
!20 = !{!"_ZTSSt5mutex", !21, i64 0}
!21 = !{!"_ZTSSt12__mutex_base", !8, i64 0}
!22 = !{!"_ZTS20VmaMappingHysteresis", !10, i64 0, !10, i64 4, !10, i64 8}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !9, i64 0}
!25 = !{!26, !11, i64 32}
!26 = !{!"_ZTSN27VmaDefragmentationContext_T18MoveAllocationDataE", !7, i64 0, !7, i64 8, !27, i64 16, !10, i64 20, !28, i64 24}
!27 = !{!"_ZTS20VmaSuballocationType", !8, i64 0}
!28 = !{!"_ZTS22VmaDefragmentationMove", !29, i64 0, !11, i64 8, !11, i64 16}
!29 = !{!"_ZTS31VmaDefragmentationMoveOperation", !8, i64 0}
!30 = !{!26, !7, i64 0}
!31 = !{!26, !7, i64 8}
!32 = !{!26, !27, i64 16}
!33 = !{!34, !11, i64 0}
!34 = !{!"_ZTS20VmaAllocationRequest", !11, i64 0, !7, i64 8, !35, i64 16, !11, i64 32, !7, i64 40, !36, i64 48}
!35 = !{!"_ZTSN7VmaListI16VmaSuballocation15VmaStlAllocatorIS0_EE8iteratorE", !11, i64 0, !11, i64 8}
!36 = !{!"_ZTS24VmaAllocationRequestType", !8, i64 0}
!37 = !{!26, !10, i64 20}
!38 = distinct !{!38, !16}


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