; LLVM IR from jrouwe/JoltPhysics :: TestFramework/Renderer/VK (RendererVK)

; 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.VkImageCreateInfo = type { i32, ptr, i32, i32, i32, %struct.VkExtent3D, i32, i32, i32, i32, i32, i32, i32, ptr, i32 }
%struct.VkExtent3D = type { i32, i32, i32 }
%struct.VkMemoryRequirements = type { i64, i64, i32 }
%class.RendererVK = type { %class.Renderer, ptr, ptr, ptr, %struct.VkPhysicalDeviceMemoryProperties, ptr, i32, i32, ptr, ptr, ptr, ptr, i8, %"class.JPH::Array", i32, %struct.VkExtent2D, %"class.JPH::Array.1", ptr, ptr, ptr, ptr, ptr, ptr, [2 x ptr], [2 x ptr], ptr, ptr, ptr, ptr, ptr, ptr, %"class.JPH::Array.4", i32, ptr, [2 x ptr], [2 x ptr], [2 x ptr], [2 x ptr], %"class.JPH::Ref", [2 x %"class.std::unique_ptr"], [2 x %"class.std::unique_ptr"], [2 x %"class.std::unique_ptr"], [2 x %"class.JPH::UnorderedMap"], %"class.JPH::UnorderedMap", %"class.JPH::UnorderedMap.9", i32, i32, i64, i64 }
%class.Renderer = type { ptr, ptr, float, i8, [11 x i8], %struct.CameraState, %"class.JPH::Vec3", %class.Frustum, %class.Frustum, i32, %"struct.Renderer::VertexShaderConstantBuffer", %"struct.Renderer::VertexShaderConstantBuffer", %"struct.Renderer::PixelShaderConstantBuffer" }
%struct.CameraState = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%class.Frustum = type { [5 x %"class.JPH::Plane"] }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"struct.Renderer::VertexShaderConstantBuffer" = type { %"class.JPH::Mat44", %"class.JPH::Mat44", %"class.JPH::Mat44", %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"struct.Renderer::PixelShaderConstantBuffer" = type { %"class.JPH::Vec4", %"class.JPH::Vec4" }
%struct.VkPhysicalDeviceMemoryProperties = type { i32, [32 x %struct.VkMemoryType], i32, [16 x %struct.VkMemoryHeap] }
%struct.VkMemoryType = type { i32, i32 }
%struct.VkMemoryHeap = type { i64, i32 }
%"class.JPH::Array" = type { i64, i64, ptr }
%struct.VkExtent2D = type { i32, i32 }
%"class.JPH::Array.1" = type { i64, i64, ptr }
%"class.JPH::Array.4" = type { i64, i64, ptr }
%"class.JPH::Ref" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.8" }
%"struct.std::_Head_base.8" = type { ptr }
%"class.JPH::UnorderedMap" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.9" = type { %"class.JPH::HashTable.base.11", [4 x i8] }
%"class.JPH::HashTable.base.11" = type <{ ptr, ptr, i32, i32, i32 }>

; 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 void @_Z18FatalErrorIfFailed8VkResult(i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10RendererVK11CreateImageEjj8VkFormat13VkImageTilingjjRP9VkImage_TRP16VkDeviceMemory_T(ptr noundef nonnull align 16 dereferenceable(1936) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #3 align 2 {
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %struct.VkImageCreateInfo, align 8
  %20 = alloca %struct.VkMemoryRequirements, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i32 %1, ptr %11, align 4, !tbaa !9
  store i32 %2, ptr %12, align 4, !tbaa !9
  store i32 %3, ptr %13, align 4, !tbaa !11
  store i32 %4, ptr %14, align 4, !tbaa !13
  store i32 %5, ptr %15, align 4, !tbaa !9
  store i32 %6, ptr %16, align 4, !tbaa !9
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  %21 = load ptr, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 88, ptr %19) #4
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 88, i1 false)
  %22 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %19, i32 0, i32 0
  store i32 14, ptr %22, align 8, !tbaa !15
  %23 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %19, i32 0, i32 3
  store i32 1, ptr %23, align 4, !tbaa !23
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %19, i32 0, i32 5
  %26 = getelementptr inbounds %struct.VkExtent3D, ptr %25, i32 0, i32 0
  store i32 %24, ptr %26, align 4, !tbaa !24
  %27 = load i32, ptr %12, align 4, !tbaa !9
  %28 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %19, i32 0, i32 5
  %29 = getelementptr inbounds %struct.VkExtent3D, ptr %28, i32 0, i32 1
  store i32 %27, ptr %29, align 4, !tbaa !25
  %30 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %19, i32 0, i32 5
  %31 = getelementptr inbounds %struct.VkExtent3D, ptr %30, i32 0, i32 2
  store i32 1, ptr %31, align 4, !tbaa !26
  %32 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %19, i32 0, i32 6
  store i32 1, ptr %32, align 8, !tbaa !27
  %33 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %19, i32 0, i32 7
  store i32 1, ptr %33, align 4, !tbaa !28
  %34 = load i32, ptr %13, align 4, !tbaa !11
  %35 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %19, i32 0, i32 4
  store i32 %34, ptr %35, align 8, !tbaa !29
  %36 = load i32, ptr %14, align 4, !tbaa !13
  %37 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %19, i32 0, i32 9
  store i32 %36, ptr %37, align 4, !tbaa !30
  %38 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %19, i32 0, i32 14
  store i32 0, ptr %38, align 8, !tbaa !31
  %39 = load i32, ptr %15, align 4, !tbaa !9
  %40 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %19, i32 0, i32 10
  store i32 %39, ptr %40, align 8, !tbaa !32
  %41 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %19, i32 0, i32 8
  store i32 1, ptr %41, align 8, !tbaa !33
  %42 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %19, i32 0, i32 11
  store i32 0, ptr %42, align 4, !tbaa !34
  %43 = getelementptr inbounds %class.RendererVK, ptr %21, i32 0, i32 5
  %44 = load ptr, ptr %43, align 16, !tbaa !35
  %45 = load ptr, ptr %17, align 8, !tbaa !5
  %46 = call i32 @vkCreateImage(ptr noundef %44, ptr noundef %19, ptr noundef null, ptr noundef %45)
  call void @_Z18FatalErrorIfFailed8VkResult(i32 noundef %46)
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #4
  %47 = getelementptr inbounds %class.RendererVK, ptr %21, i32 0, i32 5
  %48 = load ptr, ptr %47, align 16, !tbaa !35
  %49 = load ptr, ptr %17, align 8, !tbaa !5
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  call void @vkGetImageMemoryRequirements(ptr noundef %48, ptr noundef %50, ptr noundef %20)
  %51 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %20, i32 0, i32 0
  %52 = load i64, ptr %51, align 8, !tbaa !58
  %53 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %20, i32 0, i32 2
  %54 = load i32, ptr %53, align 8, !tbaa !60
  %55 = load i32, ptr %16, align 4, !tbaa !9
  %56 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN10RendererVK14AllocateMemoryEmjjRP16VkDeviceMemory_T(ptr noundef nonnull align 16 dereferenceable(1936) %21, i64 noundef %52, i32 noundef %54, i32 noundef %55, ptr noundef nonnull align 8 dereferenceable(8) %56)
  %57 = getelementptr inbounds %class.RendererVK, ptr %21, i32 0, i32 5
  %58 = load ptr, ptr %57, align 16, !tbaa !35
  %59 = load ptr, ptr %17, align 8, !tbaa !5
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = load ptr, ptr %18, align 8, !tbaa !5
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = call i32 @vkBindImageMemory(ptr noundef %58, ptr noundef %60, ptr noundef %62, i64 noundef 0)
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 88, ptr %19) #4
  ret void
}

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

declare i32 @vkCreateImage(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @vkGetImageMemoryRequirements(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @vkBindImageMemory(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 }

!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 = !{!12, !12, i64 0}
!12 = !{!"_ZTS8VkFormat", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS13VkImageTiling", !7, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTS17VkImageCreateInfo", !17, i64 0, !6, i64 8, !10, i64 16, !18, i64 20, !12, i64 24, !19, i64 28, !10, i64 40, !10, i64 44, !20, i64 48, !14, i64 52, !10, i64 56, !21, i64 60, !10, i64 64, !6, i64 72, !22, i64 80}
!17 = !{!"_ZTS15VkStructureType", !7, i64 0}
!18 = !{!"_ZTS11VkImageType", !7, i64 0}
!19 = !{!"_ZTS10VkExtent3D", !10, i64 0, !10, i64 4, !10, i64 8}
!20 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!21 = !{!"_ZTS13VkSharingMode", !7, i64 0}
!22 = !{!"_ZTS13VkImageLayout", !7, i64 0}
!23 = !{!16, !18, i64 20}
!24 = !{!16, !10, i64 28}
!25 = !{!16, !10, i64 32}
!26 = !{!16, !10, i64 36}
!27 = !{!16, !10, i64 40}
!28 = !{!16, !10, i64 44}
!29 = !{!16, !12, i64 24}
!30 = !{!16, !14, i64 52}
!31 = !{!16, !22, i64 80}
!32 = !{!16, !10, i64 56}
!33 = !{!16, !20, i64 48}
!34 = !{!16, !21, i64 60}
!35 = !{!36, !6, i64 1376}
!36 = !{!"_ZTS10RendererVK", !37, i64 0, !6, i64 832, !6, i64 840, !6, i64 848, !47, i64 856, !6, i64 1376, !10, i64 1384, !10, i64 1388, !6, i64 1392, !6, i64 1400, !6, i64 1408, !6, i64 1416, !39, i64 1424, !48, i64 1432, !12, i64 1456, !50, i64 1460, !51, i64 1472, !6, i64 1496, !6, i64 1504, !6, i64 1512, !6, i64 1520, !6, i64 1528, !6, i64 1536, !7, i64 1544, !7, i64 1560, !6, i64 1576, !6, i64 1584, !6, i64 1592, !6, i64 1600, !6, i64 1608, !6, i64 1616, !52, i64 1624, !10, i64 1648, !6, i64 1656, !7, i64 1664, !7, i64 1680, !7, i64 1696, !7, i64 1712, !53, i64 1728, !7, i64 1736, !7, i64 1752, !7, i64 1768, !7, i64 1784, !54, i64 1848, !56, i64 1880, !10, i64 1912, !10, i64 1916, !49, i64 1920, !49, i64 1928}
!37 = !{!"_ZTS8Renderer", !6, i64 8, !38, i64 16, !39, i64 20, !40, i64 32, !41, i64 96, !42, i64 112, !42, i64 192, !10, i64 272, !43, i64 288, !43, i64 544, !45, i64 800}
!38 = !{!"float", !7, i64 0}
!39 = !{!"bool", !7, i64 0}
!40 = !{!"_ZTS11CameraState", !41, i64 0, !41, i64 16, !41, i64 32, !38, i64 48}
!41 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!42 = !{!"_ZTS7Frustum", !7, i64 0}
!43 = !{!"_ZTSN8Renderer26VertexShaderConstantBufferE", !44, i64 0, !44, i64 64, !44, i64 128, !44, i64 192}
!44 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!45 = !{!"_ZTSN8Renderer25PixelShaderConstantBufferE", !46, i64 0, !46, i64 16}
!46 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!47 = !{!"_ZTS32VkPhysicalDeviceMemoryProperties", !10, i64 0, !7, i64 4, !10, i64 260, !7, i64 264}
!48 = !{!"_ZTSN3JPH5ArrayIP9VkImage_TNS_12STLAllocatorIS2_EEEE", !49, i64 0, !49, i64 8, !6, i64 16}
!49 = !{!"long", !7, i64 0}
!50 = !{!"_ZTS10VkExtent2D", !10, i64 0, !10, i64 4}
!51 = !{!"_ZTSN3JPH5ArrayIP13VkImageView_TNS_12STLAllocatorIS2_EEEE", !49, i64 0, !49, i64 8, !6, i64 16}
!52 = !{!"_ZTSN3JPH5ArrayIP15VkFramebuffer_TNS_12STLAllocatorIS2_EEEE", !49, i64 0, !49, i64 8, !6, i64 16}
!53 = !{!"_ZTSN3JPH3RefI9TextureVKEE", !6, i64 0}
!54 = !{!"_ZTSN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayI8BufferVKNS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EEE", !55, i64 0}
!55 = !{!"_ZTSN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24}
!56 = !{!"_ZTSN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayINS1_6MemoryENS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EEE", !57, i64 0}
!57 = !{!"_ZTSN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayINS1_6MemoryENS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24}
!58 = !{!59, !49, i64 0}
!59 = !{!"_ZTS20VkMemoryRequirements", !49, i64 0, !49, i64 8, !10, i64 16}
!60 = !{!59, !10, i64 16}


; 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.VkImageCreateInfo = type { i32, ptr, i32, i32, i32, %struct.VkExtent3D, i32, i32, i32, i32, i32, i32, i32, ptr, i32 }
%struct.VkExtent3D = type { i32, i32, i32 }
%struct.VkMemoryRequirements = type { i64, i64, i32 }

; 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 void @_Z18FatalErrorIfFailed8VkResult(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10RendererVK11CreateImageEjj8VkFormat13VkImageTilingjjRP9VkImage_TRP16VkDeviceMemory_T(ptr noundef nonnull align 16 dereferenceable(1936) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) local_unnamed_addr #3 align 2 {
  %10 = alloca %struct.VkImageCreateInfo, align 8
  %11 = alloca %struct.VkMemoryRequirements, align 8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %10) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %10, i8 0, i64 88, i1 false)
  store i32 14, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %10, i64 20
  store i32 1, ptr %12, align 4, !tbaa !19
  %13 = getelementptr inbounds i8, ptr %10, i64 28
  store i32 %1, ptr %13, align 4, !tbaa !20
  %14 = getelementptr inbounds i8, ptr %10, i64 32
  store i32 %2, ptr %14, align 8, !tbaa !21
  %15 = getelementptr inbounds i8, ptr %10, i64 36
  %16 = getelementptr inbounds i8, ptr %10, i64 24
  store i32 %3, ptr %16, align 8, !tbaa !22
  %17 = getelementptr inbounds i8, ptr %10, i64 52
  store i32 %4, ptr %17, align 4, !tbaa !23
  %18 = getelementptr inbounds i8, ptr %10, i64 56
  store i32 %5, ptr %18, align 8, !tbaa !24
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %15, align 4, !tbaa !25
  %19 = getelementptr inbounds i8, ptr %0, i64 1376
  %20 = load ptr, ptr %19, align 16, !tbaa !26
  %21 = call i32 @vkCreateImage(ptr noundef %20, ptr noundef nonnull %10, ptr noundef null, ptr noundef nonnull %7)
  call void @_Z18FatalErrorIfFailed8VkResult(i32 noundef %21)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #4
  %22 = load ptr, ptr %19, align 16, !tbaa !26
  %23 = load ptr, ptr %7, align 8, !tbaa !49
  call void @vkGetImageMemoryRequirements(ptr noundef %22, ptr noundef %23, ptr noundef nonnull %11)
  %24 = load i64, ptr %11, align 8, !tbaa !50
  %25 = getelementptr inbounds i8, ptr %11, i64 16
  %26 = load i32, ptr %25, align 8, !tbaa !52
  call void @_ZN10RendererVK14AllocateMemoryEmjjRP16VkDeviceMemory_T(ptr noundef nonnull align 16 dereferenceable(1936) %0, i64 noundef %24, i32 noundef %26, i32 noundef %6, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %27 = load ptr, ptr %19, align 16, !tbaa !26
  %28 = load ptr, ptr %7, align 8, !tbaa !49
  %29 = load ptr, ptr %8, align 8, !tbaa !49
  %30 = call i32 @vkBindImageMemory(ptr noundef %27, ptr noundef %28, ptr noundef %29, i64 noundef 0)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %10) #4
  ret void
}

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

declare i32 @vkCreateImage(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @vkGetImageMemoryRequirements(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @vkBindImageMemory(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 nocallback nofree nounwind willreturn memory(argmem: write) }
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 }

!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 = !{!"_ZTS17VkImageCreateInfo", !7, i64 0, !10, i64 8, !11, i64 16, !12, i64 20, !13, i64 24, !14, i64 28, !11, i64 40, !11, i64 44, !15, i64 48, !16, i64 52, !11, i64 56, !17, i64 60, !11, i64 64, !10, i64 72, !18, i64 80}
!7 = !{!"_ZTS15VkStructureType", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"_ZTS11VkImageType", !8, i64 0}
!13 = !{!"_ZTS8VkFormat", !8, i64 0}
!14 = !{!"_ZTS10VkExtent3D", !11, i64 0, !11, i64 4, !11, i64 8}
!15 = !{!"_ZTS21VkSampleCountFlagBits", !8, i64 0}
!16 = !{!"_ZTS13VkImageTiling", !8, i64 0}
!17 = !{!"_ZTS13VkSharingMode", !8, i64 0}
!18 = !{!"_ZTS13VkImageLayout", !8, i64 0}
!19 = !{!6, !12, i64 20}
!20 = !{!6, !11, i64 28}
!21 = !{!6, !11, i64 32}
!22 = !{!6, !13, i64 24}
!23 = !{!6, !16, i64 52}
!24 = !{!6, !11, i64 56}
!25 = !{!8, !8, i64 0}
!26 = !{!27, !10, i64 1376}
!27 = !{!"_ZTS10RendererVK", !28, i64 0, !10, i64 832, !10, i64 840, !10, i64 848, !38, i64 856, !10, i64 1376, !11, i64 1384, !11, i64 1388, !10, i64 1392, !10, i64 1400, !10, i64 1408, !10, i64 1416, !30, i64 1424, !39, i64 1432, !13, i64 1456, !41, i64 1460, !42, i64 1472, !10, i64 1496, !10, i64 1504, !10, i64 1512, !10, i64 1520, !10, i64 1528, !10, i64 1536, !8, i64 1544, !8, i64 1560, !10, i64 1576, !10, i64 1584, !10, i64 1592, !10, i64 1600, !10, i64 1608, !10, i64 1616, !43, i64 1624, !11, i64 1648, !10, i64 1656, !8, i64 1664, !8, i64 1680, !8, i64 1696, !8, i64 1712, !44, i64 1728, !8, i64 1736, !8, i64 1752, !8, i64 1768, !8, i64 1784, !45, i64 1848, !47, i64 1880, !11, i64 1912, !11, i64 1916, !40, i64 1920, !40, i64 1928}
!28 = !{!"_ZTS8Renderer", !10, i64 8, !29, i64 16, !30, i64 20, !31, i64 32, !32, i64 96, !33, i64 112, !33, i64 192, !11, i64 272, !34, i64 288, !34, i64 544, !36, i64 800}
!29 = !{!"float", !8, i64 0}
!30 = !{!"bool", !8, i64 0}
!31 = !{!"_ZTS11CameraState", !32, i64 0, !32, i64 16, !32, i64 32, !29, i64 48}
!32 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!33 = !{!"_ZTS7Frustum", !8, i64 0}
!34 = !{!"_ZTSN8Renderer26VertexShaderConstantBufferE", !35, i64 0, !35, i64 64, !35, i64 128, !35, i64 192}
!35 = !{!"_ZTSN3JPH5Mat44E", !8, i64 0}
!36 = !{!"_ZTSN8Renderer25PixelShaderConstantBufferE", !37, i64 0, !37, i64 16}
!37 = !{!"_ZTSN3JPH4Vec4E", !8, i64 0}
!38 = !{!"_ZTS32VkPhysicalDeviceMemoryProperties", !11, i64 0, !8, i64 4, !11, i64 260, !8, i64 264}
!39 = !{!"_ZTSN3JPH5ArrayIP9VkImage_TNS_12STLAllocatorIS2_EEEE", !40, i64 0, !40, i64 8, !10, i64 16}
!40 = !{!"long", !8, i64 0}
!41 = !{!"_ZTS10VkExtent2D", !11, i64 0, !11, i64 4}
!42 = !{!"_ZTSN3JPH5ArrayIP13VkImageView_TNS_12STLAllocatorIS2_EEEE", !40, i64 0, !40, i64 8, !10, i64 16}
!43 = !{!"_ZTSN3JPH5ArrayIP15VkFramebuffer_TNS_12STLAllocatorIS2_EEEE", !40, i64 0, !40, i64 8, !10, i64 16}
!44 = !{!"_ZTSN3JPH3RefI9TextureVKEE", !10, i64 0}
!45 = !{!"_ZTSN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayI8BufferVKNS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EEE", !46, i64 0}
!46 = !{!"_ZTSN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EEE", !10, i64 0, !10, i64 8, !11, i64 16, !11, i64 20, !11, i64 24}
!47 = !{!"_ZTSN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayINS1_6MemoryENS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EEE", !48, i64 0}
!48 = !{!"_ZTSN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayINS1_6MemoryENS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EEE", !10, i64 0, !10, i64 8, !11, i64 16, !11, i64 20, !11, i64 24}
!49 = !{!10, !10, i64 0}
!50 = !{!51, !40, i64 0}
!51 = !{!"_ZTS20VkMemoryRequirements", !40, i64 0, !40, i64 8, !11, i64 16}
!52 = !{!51, !11, i64 16}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass