; LLVM IR from vertver/Fresponze-old :: modules/imgui/examples (imgui_impl_vulkan)

; 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.VkImageSubresourceRange = type { i32, i32, i32, i32, i32 }
%struct.VkSwapchainCreateInfoKHR = type { i32, ptr, i32, ptr, i32, i32, i32, %struct.VkExtent2D, i32, i32, i32, i32, ptr, i32, i32, i32, i32, ptr }
%struct.VkExtent2D = type { i32, i32 }
%struct.VkSurfaceCapabilitiesKHR = type { i32, i32, %struct.VkExtent2D, %struct.VkExtent2D, %struct.VkExtent2D, i32, i32, i32, i32, i32 }
%struct.VkAttachmentDescription = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.VkAttachmentReference = type { i32, i32 }
%struct.VkSubpassDescription = type { i32, i32, i32, ptr, i32, ptr, ptr, ptr, i32, ptr }
%struct.VkSubpassDependency = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.VkRenderPassCreateInfo = type { i32, ptr, i32, i32, ptr, i32, ptr, i32, ptr }
%struct.VkImageViewCreateInfo = type { i32, ptr, i32, ptr, i32, i32, %struct.VkComponentMapping, %struct.VkImageSubresourceRange }
%struct.VkComponentMapping = type { i32, i32, i32, i32 }
%struct.VkFramebufferCreateInfo = type { i32, ptr, i32, ptr, i32, ptr, i32, i32, i32 }
%struct.ImGui_ImplVulkanH_Window = type { i32, i32, ptr, ptr, %struct.VkSurfaceFormatKHR, i32, ptr, i8, %union.VkClearValue, i32, i32, i32, ptr, ptr }
%struct.VkSurfaceFormatKHR = type { i32, i32 }
%union.VkClearValue = type { %union.VkClearColorValue }
%union.VkClearColorValue = type { [4 x float] }
%struct.ImGui_ImplVulkanH_Frame = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ImGui_ImplVulkanH_FrameSemaphores = type { ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [34 x i8], align 1
@__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij = external hidden unnamed_addr constant [152 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [21 x i8], align 1
@__const._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij.image_range = external hidden unnamed_addr constant %struct.VkImageSubresourceRange, align 4

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

declare noundef ptr @_ZN5ImGui8MemAllocEm(i64 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL15check_vk_result8VkResult(i32 noundef) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

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

declare i32 @vkDeviceWaitIdle(ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z49ImGui_ImplVulkanH_GetMinImageCountFromPresentMode16VkPresentModeKHR(i32 noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #4 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %struct.VkSwapchainCreateInfoKHR, align 8
  %19 = alloca %struct.VkSurfaceCapabilitiesKHR, align 4
  %20 = alloca [16 x ptr], align 16
  %21 = alloca i32, align 4
  %22 = alloca %struct.VkAttachmentDescription, align 4
  %23 = alloca %struct.VkAttachmentReference, align 4
  %24 = alloca %struct.VkSubpassDescription, align 8
  %25 = alloca %struct.VkSubpassDependency, align 4
  %26 = alloca %struct.VkRenderPassCreateInfo, align 8
  %27 = alloca %struct.VkImageViewCreateInfo, align 8
  %28 = alloca %struct.VkImageSubresourceRange, align 4
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca [1 x ptr], align 8
  %32 = alloca %struct.VkFramebufferCreateInfo, align 8
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %35, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  store ptr %37, ptr %16, align 8, !tbaa !5
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %38, i32 0, i32 2
  store ptr null, ptr %39, align 8, !tbaa !11
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = call i32 @vkDeviceWaitIdle(ptr noundef %40)
  store i32 %41, ptr %15, align 4, !tbaa !18
  %42 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %42)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %67, %7
  %44 = load i32, ptr %17, align 4, !tbaa !9
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %45, i32 0, i32 10
  %47 = load i32, ptr %46, align 8, !tbaa !20
  %48 = icmp ult i32 %44, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %70

50:                                               ; preds = %43
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %52, i32 0, i32 12
  %54 = load ptr, ptr %53, align 8, !tbaa !21
  %55 = load i32, ptr %17, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %54, i64 %56
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_Z30ImGui_ImplVulkanH_DestroyFrameP10VkDevice_TP23ImGui_ImplVulkanH_FramePK21VkAllocationCallbacks(ptr noundef %51, ptr noundef %57, ptr noundef %58)
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %60, i32 0, i32 13
  %62 = load ptr, ptr %61, align 8, !tbaa !22
  %63 = load i32, ptr %17, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameSemaphores, ptr %62, i64 %64
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_Z40ImGui_ImplVulkanH_DestroyFrameSemaphoresP10VkDevice_TP33ImGui_ImplVulkanH_FrameSemaphoresPK21VkAllocationCallbacks(ptr noundef %59, ptr noundef %65, ptr noundef %66)
  br label %67

67:                                               ; preds = %50
  %68 = load i32, ptr %17, align 4, !tbaa !9
  %69 = add i32 %68, 1
  store i32 %69, ptr %17, align 4, !tbaa !9
  br label %43, !llvm.loop !23

70:                                               ; preds = %49
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %71, i32 0, i32 12
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  call void @_ZN5ImGui7MemFreeEPv(ptr noundef %73)
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %74, i32 0, i32 13
  %76 = load ptr, ptr %75, align 8, !tbaa !22
  call void @_ZN5ImGui7MemFreeEPv(ptr noundef %76)
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %77, i32 0, i32 12
  store ptr null, ptr %78, align 8, !tbaa !21
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %79, i32 0, i32 13
  store ptr null, ptr %80, align 8, !tbaa !22
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %81, i32 0, i32 10
  store i32 0, ptr %82, align 8, !tbaa !20
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %83, i32 0, i32 6
  %85 = load ptr, ptr %84, align 8, !tbaa !25
  %86 = icmp ne ptr %85, null
  br i1 %86, label %87, label %93

87:                                               ; preds = %70
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %89, i32 0, i32 6
  %91 = load ptr, ptr %90, align 8, !tbaa !25
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  call void @vkDestroyRenderPass(ptr noundef %88, ptr noundef %91, ptr noundef %92)
  br label %93

93:                                               ; preds = %87, %70
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %101

96:                                               ; preds = %93
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %97, i32 0, i32 5
  %99 = load i32, ptr %98, align 8, !tbaa !26
  %100 = call noundef i32 @_Z49ImGui_ImplVulkanH_GetMinImageCountFromPresentMode16VkPresentModeKHR(i32 noundef %99)
  store i32 %100, ptr %14, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %96, %93
  call void @llvm.lifetime.start.p0(i64 104, ptr %18) #7
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 104, i1 false)
  %102 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 0
  store i32 1000001000, ptr %102, align 8, !tbaa !27
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %103, i32 0, i32 3
  %105 = load ptr, ptr %104, align 8, !tbaa !34
  %106 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 3
  store ptr %105, ptr %106, align 8, !tbaa !35
  %107 = load i32, ptr %14, align 4, !tbaa !9
  %108 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 4
  store i32 %107, ptr %108, align 8, !tbaa !36
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %109, i32 0, i32 4
  %111 = getelementptr inbounds %struct.VkSurfaceFormatKHR, ptr %110, i32 0, i32 0
  %112 = load i32, ptr %111, align 8, !tbaa !37
  %113 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 5
  store i32 %112, ptr %113, align 4, !tbaa !38
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %114, i32 0, i32 4
  %116 = getelementptr inbounds %struct.VkSurfaceFormatKHR, ptr %115, i32 0, i32 1
  %117 = load i32, ptr %116, align 4, !tbaa !39
  %118 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 6
  store i32 %117, ptr %118, align 8, !tbaa !40
  %119 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 8
  store i32 1, ptr %119, align 4, !tbaa !41
  %120 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 9
  store i32 16, ptr %120, align 8, !tbaa !42
  %121 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 10
  store i32 0, ptr %121, align 4, !tbaa !43
  %122 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 13
  store i32 1, ptr %122, align 8, !tbaa !44
  %123 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 14
  store i32 1, ptr %123, align 4, !tbaa !45
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %124, i32 0, i32 5
  %126 = load i32, ptr %125, align 8, !tbaa !26
  %127 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 15
  store i32 %126, ptr %127, align 8, !tbaa !46
  %128 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 16
  store i32 1, ptr %128, align 4, !tbaa !47
  %129 = load ptr, ptr %16, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 17
  store ptr %129, ptr %130, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 52, ptr %19) #7
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %132, i32 0, i32 3
  %134 = load ptr, ptr %133, align 8, !tbaa !34
  %135 = call i32 @vkGetPhysicalDeviceSurfaceCapabilitiesKHR(ptr noundef %131, ptr noundef %134, ptr noundef %19)
  store i32 %135, ptr %15, align 4, !tbaa !18
  %136 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %136)
  %137 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 4
  %138 = load i32, ptr %137, align 8, !tbaa !36
  %139 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 0
  %140 = load i32, ptr %139, align 4, !tbaa !49
  %141 = icmp ult i32 %138, %140
  br i1 %141, label %142, label %146

142:                                              ; preds = %101
  %143 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 0
  %144 = load i32, ptr %143, align 4, !tbaa !49
  %145 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 4
  store i32 %144, ptr %145, align 8, !tbaa !36
  br label %161

146:                                              ; preds = %101
  %147 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 1
  %148 = load i32, ptr %147, align 4, !tbaa !51
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %160

150:                                              ; preds = %146
  %151 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 4
  %152 = load i32, ptr %151, align 8, !tbaa !36
  %153 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 1
  %154 = load i32, ptr %153, align 4, !tbaa !51
  %155 = icmp ugt i32 %152, %154
  br i1 %155, label %156, label %160

156:                                              ; preds = %150
  %157 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 1
  %158 = load i32, ptr %157, align 4, !tbaa !51
  %159 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 4
  store i32 %158, ptr %159, align 8, !tbaa !36
  br label %160

160:                                              ; preds = %156, %150, %146
  br label %161

161:                                              ; preds = %160, %142
  %162 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 2
  %163 = getelementptr inbounds %struct.VkExtent2D, ptr %162, i32 0, i32 0
  %164 = load i32, ptr %163, align 4, !tbaa !52
  %165 = icmp eq i32 %164, -1
  br i1 %165, label %166, label %177

166:                                              ; preds = %161
  %167 = load i32, ptr %12, align 4, !tbaa !9
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %168, i32 0, i32 0
  store i32 %167, ptr %169, align 8, !tbaa !53
  %170 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 7
  %171 = getelementptr inbounds %struct.VkExtent2D, ptr %170, i32 0, i32 0
  store i32 %167, ptr %171, align 4, !tbaa !54
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %173, i32 0, i32 1
  store i32 %172, ptr %174, align 4, !tbaa !55
  %175 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 7
  %176 = getelementptr inbounds %struct.VkExtent2D, ptr %175, i32 0, i32 1
  store i32 %172, ptr %176, align 4, !tbaa !56
  br label %192

177:                                              ; preds = %161
  %178 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 2
  %179 = getelementptr inbounds %struct.VkExtent2D, ptr %178, i32 0, i32 0
  %180 = load i32, ptr %179, align 4, !tbaa !52
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %181, i32 0, i32 0
  store i32 %180, ptr %182, align 8, !tbaa !53
  %183 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 7
  %184 = getelementptr inbounds %struct.VkExtent2D, ptr %183, i32 0, i32 0
  store i32 %180, ptr %184, align 4, !tbaa !54
  %185 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 2
  %186 = getelementptr inbounds %struct.VkExtent2D, ptr %185, i32 0, i32 1
  %187 = load i32, ptr %186, align 4, !tbaa !57
  %188 = load ptr, ptr %10, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %188, i32 0, i32 1
  store i32 %187, ptr %189, align 4, !tbaa !55
  %190 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 7
  %191 = getelementptr inbounds %struct.VkExtent2D, ptr %190, i32 0, i32 1
  store i32 %187, ptr %191, align 4, !tbaa !56
  br label %192

192:                                              ; preds = %177, %166
  %193 = load ptr, ptr %9, align 8, !tbaa !5
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  %195 = load ptr, ptr %10, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %195, i32 0, i32 2
  %197 = call i32 @vkCreateSwapchainKHR(ptr noundef %193, ptr noundef %18, ptr noundef %194, ptr noundef %196)
  store i32 %197, ptr %15, align 4, !tbaa !18
  %198 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %198)
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = load ptr, ptr %10, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %200, i32 0, i32 2
  %202 = load ptr, ptr %201, align 8, !tbaa !11
  %203 = load ptr, ptr %10, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %203, i32 0, i32 10
  %205 = call i32 @vkGetSwapchainImagesKHR(ptr noundef %199, ptr noundef %202, ptr noundef %204, ptr noundef null)
  store i32 %205, ptr %15, align 4, !tbaa !18
  %206 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %206)
  call void @llvm.lifetime.start.p0(i64 128, ptr %20) #7
  call void @llvm.memset.p0.i64(ptr align 16 %20, i8 0, i64 128, i1 false)
  %207 = load ptr, ptr %10, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %207, i32 0, i32 10
  %209 = load i32, ptr %208, align 8, !tbaa !20
  %210 = load i32, ptr %14, align 4, !tbaa !9
  %211 = icmp uge i32 %209, %210
  br i1 %211, label %212, label %213

212:                                              ; preds = %192
  br label %215

213:                                              ; preds = %192
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.1, i32 noundef 1064, ptr noundef @__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij) #8
  unreachable

214:                                              ; No predecessors!
  br label %215

215:                                              ; preds = %214, %212
  %216 = load ptr, ptr %10, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %216, i32 0, i32 10
  %218 = load i32, ptr %217, align 8, !tbaa !20
  %219 = icmp ult i32 %218, 16
  br i1 %219, label %220, label %221

220:                                              ; preds = %215
  br label %223

221:                                              ; preds = %215
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.1, i32 noundef 1065, ptr noundef @__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij) #8
  unreachable

222:                                              ; No predecessors!
  br label %223

223:                                              ; preds = %222, %220
  %224 = load ptr, ptr %9, align 8, !tbaa !5
  %225 = load ptr, ptr %10, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %225, i32 0, i32 2
  %227 = load ptr, ptr %226, align 8, !tbaa !11
  %228 = load ptr, ptr %10, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %228, i32 0, i32 10
  %230 = getelementptr inbounds [16 x ptr], ptr %20, i64 0, i64 0
  %231 = call i32 @vkGetSwapchainImagesKHR(ptr noundef %224, ptr noundef %227, ptr noundef %229, ptr noundef %230)
  store i32 %231, ptr %15, align 4, !tbaa !18
  %232 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %232)
  %233 = load ptr, ptr %10, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %233, i32 0, i32 12
  %235 = load ptr, ptr %234, align 8, !tbaa !21
  %236 = icmp eq ptr %235, null
  br i1 %236, label %237, label %238

237:                                              ; preds = %223
  br label %240

238:                                              ; preds = %223
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.1, i32 noundef 1069, ptr noundef @__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij) #8
  unreachable

239:                                              ; No predecessors!
  br label %240

240:                                              ; preds = %239, %237
  %241 = load ptr, ptr %10, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %241, i32 0, i32 10
  %243 = load i32, ptr %242, align 8, !tbaa !20
  %244 = zext i32 %243 to i64
  %245 = mul i64 48, %244
  %246 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %245)
  %247 = load ptr, ptr %10, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %247, i32 0, i32 12
  store ptr %246, ptr %248, align 8, !tbaa !21
  %249 = load ptr, ptr %10, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %249, i32 0, i32 10
  %251 = load i32, ptr %250, align 8, !tbaa !20
  %252 = zext i32 %251 to i64
  %253 = mul i64 16, %252
  %254 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %253)
  %255 = load ptr, ptr %10, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %255, i32 0, i32 13
  store ptr %254, ptr %256, align 8, !tbaa !22
  %257 = load ptr, ptr %10, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %257, i32 0, i32 12
  %259 = load ptr, ptr %258, align 8, !tbaa !21
  %260 = load ptr, ptr %10, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %260, i32 0, i32 10
  %262 = load i32, ptr %261, align 8, !tbaa !20
  %263 = zext i32 %262 to i64
  %264 = mul i64 48, %263
  call void @llvm.memset.p0.i64(ptr align 8 %259, i8 0, i64 %264, i1 false)
  %265 = load ptr, ptr %10, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %265, i32 0, i32 13
  %267 = load ptr, ptr %266, align 8, !tbaa !22
  %268 = load ptr, ptr %10, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %268, i32 0, i32 10
  %270 = load i32, ptr %269, align 8, !tbaa !20
  %271 = zext i32 %270 to i64
  %272 = mul i64 16, %271
  call void @llvm.memset.p0.i64(ptr align 8 %267, i8 0, i64 %272, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %273

273:                                              ; preds = %292, %240
  %274 = load i32, ptr %21, align 4, !tbaa !9
  %275 = load ptr, ptr %10, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %275, i32 0, i32 10
  %277 = load i32, ptr %276, align 8, !tbaa !20
  %278 = icmp ult i32 %274, %277
  br i1 %278, label %280, label %279

279:                                              ; preds = %273
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %295

280:                                              ; preds = %273
  %281 = load i32, ptr %21, align 4, !tbaa !9
  %282 = zext i32 %281 to i64
  %283 = getelementptr inbounds [16 x ptr], ptr %20, i64 0, i64 %282
  %284 = load ptr, ptr %283, align 8, !tbaa !5
  %285 = load ptr, ptr %10, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %285, i32 0, i32 12
  %287 = load ptr, ptr %286, align 8, !tbaa !21
  %288 = load i32, ptr %21, align 4, !tbaa !9
  %289 = zext i32 %288 to i64
  %290 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %287, i64 %289
  %291 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %290, i32 0, i32 3
  store ptr %284, ptr %291, align 8, !tbaa !58
  br label %292

292:                                              ; preds = %280
  %293 = load i32, ptr %21, align 4, !tbaa !9
  %294 = add i32 %293, 1
  store i32 %294, ptr %21, align 4, !tbaa !9
  br label %273, !llvm.loop !60

295:                                              ; preds = %279
  call void @llvm.lifetime.end.p0(i64 128, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 52, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %18) #7
  %296 = load ptr, ptr %16, align 8, !tbaa !5
  %297 = icmp ne ptr %296, null
  br i1 %297, label %298, label %302

298:                                              ; preds = %295
  %299 = load ptr, ptr %9, align 8, !tbaa !5
  %300 = load ptr, ptr %16, align 8, !tbaa !5
  %301 = load ptr, ptr %11, align 8, !tbaa !5
  call void @vkDestroySwapchainKHR(ptr noundef %299, ptr noundef %300, ptr noundef %301)
  br label %302

302:                                              ; preds = %298, %295
  call void @llvm.lifetime.start.p0(i64 36, ptr %22) #7
  call void @llvm.memset.p0.i64(ptr align 4 %22, i8 0, i64 36, i1 false)
  %303 = load ptr, ptr %10, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %303, i32 0, i32 4
  %305 = getelementptr inbounds %struct.VkSurfaceFormatKHR, ptr %304, i32 0, i32 0
  %306 = load i32, ptr %305, align 8, !tbaa !37
  %307 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 1
  store i32 %306, ptr %307, align 4, !tbaa !61
  %308 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 2
  store i32 1, ptr %308, align 4, !tbaa !67
  %309 = load ptr, ptr %10, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %309, i32 0, i32 7
  %311 = load i8, ptr %310, align 8, !tbaa !68, !range !69, !noundef !70
  %312 = trunc i8 %311 to i1
  %313 = zext i1 %312 to i64
  %314 = select i1 %312, i32 1, i32 2
  %315 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 3
  store i32 %314, ptr %315, align 4, !tbaa !71
  %316 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 4
  store i32 0, ptr %316, align 4, !tbaa !72
  %317 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 5
  store i32 2, ptr %317, align 4, !tbaa !73
  %318 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 6
  store i32 1, ptr %318, align 4, !tbaa !74
  %319 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 7
  store i32 0, ptr %319, align 4, !tbaa !75
  %320 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 8
  store i32 1000001002, ptr %320, align 4, !tbaa !76
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  call void @llvm.memset.p0.i64(ptr align 4 %23, i8 0, i64 8, i1 false)
  %321 = getelementptr inbounds %struct.VkAttachmentReference, ptr %23, i32 0, i32 0
  store i32 0, ptr %321, align 4, !tbaa !77
  %322 = getelementptr inbounds %struct.VkAttachmentReference, ptr %23, i32 0, i32 1
  store i32 2, ptr %322, align 4, !tbaa !79
  call void @llvm.lifetime.start.p0(i64 72, ptr %24) #7
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 72, i1 false)
  %323 = getelementptr inbounds %struct.VkSubpassDescription, ptr %24, i32 0, i32 1
  store i32 0, ptr %323, align 4, !tbaa !80
  %324 = getelementptr inbounds %struct.VkSubpassDescription, ptr %24, i32 0, i32 4
  store i32 1, ptr %324, align 8, !tbaa !83
  %325 = getelementptr inbounds %struct.VkSubpassDescription, ptr %24, i32 0, i32 5
  store ptr %23, ptr %325, align 8, !tbaa !84
  call void @llvm.lifetime.start.p0(i64 28, ptr %25) #7
  call void @llvm.memset.p0.i64(ptr align 4 %25, i8 0, i64 28, i1 false)
  %326 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 0
  store i32 -1, ptr %326, align 4, !tbaa !85
  %327 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 1
  store i32 0, ptr %327, align 4, !tbaa !87
  %328 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 2
  store i32 1024, ptr %328, align 4, !tbaa !88
  %329 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 3
  store i32 1024, ptr %329, align 4, !tbaa !89
  %330 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 4
  store i32 0, ptr %330, align 4, !tbaa !90
  %331 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 5
  store i32 256, ptr %331, align 4, !tbaa !91
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #7
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 64, i1 false)
  %332 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 0
  store i32 38, ptr %332, align 8, !tbaa !92
  %333 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 3
  store i32 1, ptr %333, align 4, !tbaa !94
  %334 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 4
  store ptr %22, ptr %334, align 8, !tbaa !95
  %335 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 5
  store i32 1, ptr %335, align 8, !tbaa !96
  %336 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 6
  store ptr %24, ptr %336, align 8, !tbaa !97
  %337 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 7
  store i32 1, ptr %337, align 8, !tbaa !98
  %338 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 8
  store ptr %25, ptr %338, align 8, !tbaa !99
  %339 = load ptr, ptr %9, align 8, !tbaa !5
  %340 = load ptr, ptr %11, align 8, !tbaa !5
  %341 = load ptr, ptr %10, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %341, i32 0, i32 6
  %343 = call i32 @vkCreateRenderPass(ptr noundef %339, ptr noundef %26, ptr noundef %340, ptr noundef %342)
  store i32 %343, ptr %15, align 4, !tbaa !18
  %344 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %344)
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 28, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr %27) #7
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 80, i1 false)
  %345 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 0
  store i32 15, ptr %345, align 8, !tbaa !100
  %346 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 4
  store i32 1, ptr %346, align 8, !tbaa !106
  %347 = load ptr, ptr %10, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %347, i32 0, i32 4
  %349 = getelementptr inbounds %struct.VkSurfaceFormatKHR, ptr %348, i32 0, i32 0
  %350 = load i32, ptr %349, align 8, !tbaa !37
  %351 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 5
  store i32 %350, ptr %351, align 4, !tbaa !107
  %352 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 6
  %353 = getelementptr inbounds %struct.VkComponentMapping, ptr %352, i32 0, i32 0
  store i32 3, ptr %353, align 8, !tbaa !108
  %354 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 6
  %355 = getelementptr inbounds %struct.VkComponentMapping, ptr %354, i32 0, i32 1
  store i32 4, ptr %355, align 4, !tbaa !109
  %356 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 6
  %357 = getelementptr inbounds %struct.VkComponentMapping, ptr %356, i32 0, i32 2
  store i32 5, ptr %357, align 8, !tbaa !110
  %358 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 6
  %359 = getelementptr inbounds %struct.VkComponentMapping, ptr %358, i32 0, i32 3
  store i32 6, ptr %359, align 4, !tbaa !111
  call void @llvm.lifetime.start.p0(i64 20, ptr %28) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 @__const._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij.image_range, i64 20, i1 false)
  %360 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %360, ptr align 4 %28, i64 20, i1 false), !tbaa.struct !112
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %361

361:                                              ; preds = %385, %302
  %362 = load i32, ptr %29, align 4, !tbaa !9
  %363 = load ptr, ptr %10, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %363, i32 0, i32 10
  %365 = load i32, ptr %364, align 8, !tbaa !20
  %366 = icmp ult i32 %362, %365
  br i1 %366, label %368, label %367

367:                                              ; preds = %361
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %388

368:                                              ; preds = %361
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %369 = load ptr, ptr %10, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %369, i32 0, i32 12
  %371 = load ptr, ptr %370, align 8, !tbaa !21
  %372 = load i32, ptr %29, align 4, !tbaa !9
  %373 = zext i32 %372 to i64
  %374 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %371, i64 %373
  store ptr %374, ptr %30, align 8, !tbaa !5
  %375 = load ptr, ptr %30, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %375, i32 0, i32 3
  %377 = load ptr, ptr %376, align 8, !tbaa !58
  %378 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 3
  store ptr %377, ptr %378, align 8, !tbaa !113
  %379 = load ptr, ptr %9, align 8, !tbaa !5
  %380 = load ptr, ptr %11, align 8, !tbaa !5
  %381 = load ptr, ptr %30, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %381, i32 0, i32 4
  %383 = call i32 @vkCreateImageView(ptr noundef %379, ptr noundef %27, ptr noundef %380, ptr noundef %382)
  store i32 %383, ptr %15, align 4, !tbaa !18
  %384 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %384)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %385

385:                                              ; preds = %368
  %386 = load i32, ptr %29, align 4, !tbaa !9
  %387 = add i32 %386, 1
  store i32 %387, ptr %29, align 4, !tbaa !9
  br label %361, !llvm.loop !114

388:                                              ; preds = %367
  call void @llvm.lifetime.end.p0(i64 20, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #7
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 64, i1 false)
  %389 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 0
  store i32 37, ptr %389, align 8, !tbaa !115
  %390 = load ptr, ptr %10, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %390, i32 0, i32 6
  %392 = load ptr, ptr %391, align 8, !tbaa !25
  %393 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 3
  store ptr %392, ptr %393, align 8, !tbaa !117
  %394 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 4
  store i32 1, ptr %394, align 8, !tbaa !118
  %395 = getelementptr inbounds [1 x ptr], ptr %31, i64 0, i64 0
  %396 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 5
  store ptr %395, ptr %396, align 8, !tbaa !119
  %397 = load ptr, ptr %10, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %397, i32 0, i32 0
  %399 = load i32, ptr %398, align 8, !tbaa !53
  %400 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 6
  store i32 %399, ptr %400, align 8, !tbaa !120
  %401 = load ptr, ptr %10, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %401, i32 0, i32 1
  %403 = load i32, ptr %402, align 4, !tbaa !55
  %404 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 7
  store i32 %403, ptr %404, align 4, !tbaa !121
  %405 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 8
  store i32 1, ptr %405, align 8, !tbaa !122
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %406

406:                                              ; preds = %430, %388
  %407 = load i32, ptr %33, align 4, !tbaa !9
  %408 = load ptr, ptr %10, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %408, i32 0, i32 10
  %410 = load i32, ptr %409, align 8, !tbaa !20
  %411 = icmp ult i32 %407, %410
  br i1 %411, label %413, label %412

412:                                              ; preds = %406
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %433

413:                                              ; preds = %406
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %414 = load ptr, ptr %10, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %414, i32 0, i32 12
  %416 = load ptr, ptr %415, align 8, !tbaa !21
  %417 = load i32, ptr %33, align 4, !tbaa !9
  %418 = zext i32 %417 to i64
  %419 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %416, i64 %418
  store ptr %419, ptr %34, align 8, !tbaa !5
  %420 = load ptr, ptr %34, align 8, !tbaa !5
  %421 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %420, i32 0, i32 4
  %422 = load ptr, ptr %421, align 8, !tbaa !123
  %423 = getelementptr inbounds [1 x ptr], ptr %31, i64 0, i64 0
  store ptr %422, ptr %423, align 8, !tbaa !5
  %424 = load ptr, ptr %9, align 8, !tbaa !5
  %425 = load ptr, ptr %11, align 8, !tbaa !5
  %426 = load ptr, ptr %34, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %426, i32 0, i32 5
  %428 = call i32 @vkCreateFramebuffer(ptr noundef %424, ptr noundef %32, ptr noundef %425, ptr noundef %427)
  store i32 %428, ptr %15, align 4, !tbaa !18
  %429 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %429)
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %430

430:                                              ; preds = %413
  %431 = load i32, ptr %33, align 4, !tbaa !9
  %432 = add i32 %431, 1
  store i32 %432, ptr %33, align 4, !tbaa !9
  br label %406, !llvm.loop !124

433:                                              ; preds = %412
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z30ImGui_ImplVulkanH_DestroyFrameP10VkDevice_TP23ImGui_ImplVulkanH_FramePK21VkAllocationCallbacks(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z40ImGui_ImplVulkanH_DestroyFrameSemaphoresP10VkDevice_TP33ImGui_ImplVulkanH_FrameSemaphoresPK21VkAllocationCallbacks(ptr noundef, ptr noundef, ptr noundef) #4

declare void @_ZN5ImGui7MemFreeEPv(ptr noundef) #1

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

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

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

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

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

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

declare i32 @vkCreateFramebuffer(ptr noundef, ptr noundef, ptr noundef, ptr 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 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTS24ImGui_ImplVulkanH_Window", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !13, i64 24, !16, i64 32, !6, i64 40, !17, i64 48, !7, i64 52, !10, i64 68, !10, i64 72, !10, i64 76, !6, i64 80, !6, i64 88}
!13 = !{!"_ZTS18VkSurfaceFormatKHR", !14, i64 0, !15, i64 4}
!14 = !{!"_ZTS8VkFormat", !7, i64 0}
!15 = !{!"_ZTS15VkColorSpaceKHR", !7, i64 0}
!16 = !{!"_ZTS16VkPresentModeKHR", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTS8VkResult", !7, i64 0}
!20 = !{!12, !10, i64 72}
!21 = !{!12, !6, i64 80}
!22 = !{!12, !6, i64 88}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!12, !6, i64 40}
!26 = !{!12, !16, i64 32}
!27 = !{!28, !29, i64 0}
!28 = !{!"_ZTS24VkSwapchainCreateInfoKHR", !29, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !14, i64 36, !15, i64 40, !30, i64 44, !10, i64 52, !10, i64 56, !31, i64 60, !10, i64 64, !6, i64 72, !32, i64 80, !33, i64 84, !16, i64 88, !10, i64 92, !6, i64 96}
!29 = !{!"_ZTS15VkStructureType", !7, i64 0}
!30 = !{!"_ZTS10VkExtent2D", !10, i64 0, !10, i64 4}
!31 = !{!"_ZTS13VkSharingMode", !7, i64 0}
!32 = !{!"_ZTS29VkSurfaceTransformFlagBitsKHR", !7, i64 0}
!33 = !{!"_ZTS27VkCompositeAlphaFlagBitsKHR", !7, i64 0}
!34 = !{!12, !6, i64 16}
!35 = !{!28, !6, i64 24}
!36 = !{!28, !10, i64 32}
!37 = !{!12, !14, i64 24}
!38 = !{!28, !14, i64 36}
!39 = !{!12, !15, i64 28}
!40 = !{!28, !15, i64 40}
!41 = !{!28, !10, i64 52}
!42 = !{!28, !10, i64 56}
!43 = !{!28, !31, i64 60}
!44 = !{!28, !32, i64 80}
!45 = !{!28, !33, i64 84}
!46 = !{!28, !16, i64 88}
!47 = !{!28, !10, i64 92}
!48 = !{!28, !6, i64 96}
!49 = !{!50, !10, i64 0}
!50 = !{!"_ZTS24VkSurfaceCapabilitiesKHR", !10, i64 0, !10, i64 4, !30, i64 8, !30, i64 16, !30, i64 24, !10, i64 32, !10, i64 36, !32, i64 40, !10, i64 44, !10, i64 48}
!51 = !{!50, !10, i64 4}
!52 = !{!50, !10, i64 8}
!53 = !{!12, !10, i64 0}
!54 = !{!28, !10, i64 44}
!55 = !{!12, !10, i64 4}
!56 = !{!28, !10, i64 48}
!57 = !{!50, !10, i64 12}
!58 = !{!59, !6, i64 24}
!59 = !{!"_ZTS23ImGui_ImplVulkanH_Frame", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!60 = distinct !{!60, !24}
!61 = !{!62, !14, i64 4}
!62 = !{!"_ZTS23VkAttachmentDescription", !10, i64 0, !14, i64 4, !63, i64 8, !64, i64 12, !65, i64 16, !64, i64 20, !65, i64 24, !66, i64 28, !66, i64 32}
!63 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!64 = !{!"_ZTS18VkAttachmentLoadOp", !7, i64 0}
!65 = !{!"_ZTS19VkAttachmentStoreOp", !7, i64 0}
!66 = !{!"_ZTS13VkImageLayout", !7, i64 0}
!67 = !{!62, !63, i64 8}
!68 = !{!12, !17, i64 48}
!69 = !{i8 0, i8 2}
!70 = !{}
!71 = !{!62, !64, i64 12}
!72 = !{!62, !65, i64 16}
!73 = !{!62, !64, i64 20}
!74 = !{!62, !65, i64 24}
!75 = !{!62, !66, i64 28}
!76 = !{!62, !66, i64 32}
!77 = !{!78, !10, i64 0}
!78 = !{!"_ZTS21VkAttachmentReference", !10, i64 0, !66, i64 4}
!79 = !{!78, !66, i64 4}
!80 = !{!81, !82, i64 4}
!81 = !{!"_ZTS20VkSubpassDescription", !10, i64 0, !82, i64 4, !10, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !10, i64 56, !6, i64 64}
!82 = !{!"_ZTS19VkPipelineBindPoint", !7, i64 0}
!83 = !{!81, !10, i64 24}
!84 = !{!81, !6, i64 32}
!85 = !{!86, !10, i64 0}
!86 = !{!"_ZTS19VkSubpassDependency", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!87 = !{!86, !10, i64 4}
!88 = !{!86, !10, i64 8}
!89 = !{!86, !10, i64 12}
!90 = !{!86, !10, i64 16}
!91 = !{!86, !10, i64 20}
!92 = !{!93, !29, i64 0}
!93 = !{!"_ZTS22VkRenderPassCreateInfo", !29, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !6, i64 56}
!94 = !{!93, !10, i64 20}
!95 = !{!93, !6, i64 24}
!96 = !{!93, !10, i64 32}
!97 = !{!93, !6, i64 40}
!98 = !{!93, !10, i64 48}
!99 = !{!93, !6, i64 56}
!100 = !{!101, !29, i64 0}
!101 = !{!"_ZTS21VkImageViewCreateInfo", !29, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !102, i64 32, !14, i64 36, !103, i64 40, !105, i64 56}
!102 = !{!"_ZTS15VkImageViewType", !7, i64 0}
!103 = !{!"_ZTS18VkComponentMapping", !104, i64 0, !104, i64 4, !104, i64 8, !104, i64 12}
!104 = !{!"_ZTS18VkComponentSwizzle", !7, i64 0}
!105 = !{!"_ZTS23VkImageSubresourceRange", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!106 = !{!101, !102, i64 32}
!107 = !{!101, !14, i64 36}
!108 = !{!101, !104, i64 40}
!109 = !{!101, !104, i64 44}
!110 = !{!101, !104, i64 48}
!111 = !{!101, !104, i64 52}
!112 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 4, !9}
!113 = !{!101, !6, i64 24}
!114 = distinct !{!114, !24}
!115 = !{!116, !29, i64 0}
!116 = !{!"_ZTS23VkFramebufferCreateInfo", !29, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56}
!117 = !{!116, !6, i64 24}
!118 = !{!116, !10, i64 32}
!119 = !{!116, !6, i64 40}
!120 = !{!116, !10, i64 48}
!121 = !{!116, !10, i64 52}
!122 = !{!116, !10, i64 56}
!123 = !{!59, !6, i64 32}
!124 = distinct !{!124, !24}


; 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.VkImageSubresourceRange = type { i32, i32, i32, i32, i32 }
%struct.VkSwapchainCreateInfoKHR = type { i32, ptr, i32, ptr, i32, i32, i32, %struct.VkExtent2D, i32, i32, i32, i32, ptr, i32, i32, i32, i32, ptr }
%struct.VkExtent2D = type { i32, i32 }
%struct.VkSurfaceCapabilitiesKHR = type { i32, i32, %struct.VkExtent2D, %struct.VkExtent2D, %struct.VkExtent2D, i32, i32, i32, i32, i32 }
%struct.VkAttachmentDescription = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.VkAttachmentReference = type { i32, i32 }
%struct.VkSubpassDescription = type { i32, i32, i32, ptr, i32, ptr, ptr, ptr, i32, ptr }
%struct.VkSubpassDependency = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.VkRenderPassCreateInfo = type { i32, ptr, i32, i32, ptr, i32, ptr, i32, ptr }
%struct.VkImageViewCreateInfo = type { i32, ptr, i32, ptr, i32, i32, %struct.VkComponentMapping, %struct.VkImageSubresourceRange }
%struct.VkComponentMapping = type { i32, i32, i32, i32 }
%struct.VkFramebufferCreateInfo = type { i32, ptr, i32, ptr, i32, ptr, i32, i32, i32 }
%struct.ImGui_ImplVulkanH_Frame = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ImGui_ImplVulkanH_FrameSemaphores = type { ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [34 x i8], align 1
@__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij = external hidden unnamed_addr constant [152 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [21 x i8], align 1
@__const._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij.image_range = external hidden unnamed_addr constant %struct.VkImageSubresourceRange, align 4

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

declare noundef ptr @_ZN5ImGui8MemAllocEm(i64 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL15check_vk_result8VkResult(i32 noundef) local_unnamed_addr #4

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

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

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

declare i32 @vkDeviceWaitIdle(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z49ImGui_ImplVulkanH_GetMinImageCountFromPresentMode16VkPresentModeKHR(i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local void @_Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #4 {
  %8 = alloca %struct.VkSwapchainCreateInfoKHR, align 8
  %9 = alloca %struct.VkSurfaceCapabilitiesKHR, align 4
  %10 = alloca [16 x ptr], align 16
  %11 = alloca %struct.VkAttachmentDescription, align 4
  %12 = alloca %struct.VkAttachmentReference, align 8
  %13 = alloca %struct.VkSubpassDescription, align 8
  %14 = alloca %struct.VkSubpassDependency, align 16
  %15 = alloca %struct.VkRenderPassCreateInfo, align 8
  %16 = alloca %struct.VkImageViewCreateInfo, align 8
  %17 = alloca [1 x ptr], align 8
  %18 = alloca %struct.VkFramebufferCreateInfo, align 8
  %19 = getelementptr inbounds i8, ptr %2, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr null, ptr %19, align 8, !tbaa !5
  %21 = tail call i32 @vkDeviceWaitIdle(ptr noundef %1)
  tail call void @_ZL15check_vk_result8VkResult(i32 noundef %21)
  %22 = getelementptr inbounds i8, ptr %2, i64 72
  %23 = load i32, ptr %22, align 8, !tbaa !16
  %.not132 = icmp eq i32 %23, 0
  br i1 %.not132, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %7
  %24 = getelementptr inbounds i8, ptr %2, i64 80
  %25 = getelementptr inbounds i8, ptr %2, i64 88
  br label %32

._crit_edge:                                      ; preds = %32, %7
  %26 = getelementptr inbounds i8, ptr %2, i64 80
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  tail call void @_ZN5ImGui7MemFreeEPv(ptr noundef %27)
  %28 = getelementptr inbounds i8, ptr %2, i64 88
  %29 = load ptr, ptr %28, align 8, !tbaa !18
  tail call void @_ZN5ImGui7MemFreeEPv(ptr noundef %29)
  store i32 0, ptr %22, align 8, !tbaa !16
  %30 = getelementptr inbounds i8, ptr %2, i64 40
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %26, i8 0, i64 16, i1 false)
  %31 = load ptr, ptr %30, align 8, !tbaa !19
  %.not = icmp eq ptr %31, null
  br i1 %.not, label %41, label %40

32:                                               ; preds = %.lr.ph, %32
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %32 ]
  %33 = load ptr, ptr %24, align 8, !tbaa !17
  %34 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %33, i64 %indvars.iv
  tail call void @_Z30ImGui_ImplVulkanH_DestroyFrameP10VkDevice_TP23ImGui_ImplVulkanH_FramePK21VkAllocationCallbacks(ptr noundef %1, ptr noundef %34, ptr noundef %3)
  %35 = load ptr, ptr %25, align 8, !tbaa !18
  %36 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameSemaphores, ptr %35, i64 %indvars.iv
  tail call void @_Z40ImGui_ImplVulkanH_DestroyFrameSemaphoresP10VkDevice_TP33ImGui_ImplVulkanH_FrameSemaphoresPK21VkAllocationCallbacks(ptr noundef %1, ptr noundef %36, ptr noundef %3)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = load i32, ptr %22, align 8, !tbaa !16
  %38 = zext i32 %37 to i64
  %39 = icmp ult i64 %indvars.iv.next, %38
  br i1 %39, label %32, label %._crit_edge, !llvm.loop !20

40:                                               ; preds = %._crit_edge
  tail call void @vkDestroyRenderPass(ptr noundef %1, ptr noundef nonnull %31, ptr noundef %3)
  br label %41

41:                                               ; preds = %40, %._crit_edge
  %42 = icmp eq i32 %6, 0
  br i1 %42, label %43, label %47

43:                                               ; preds = %41
  %44 = getelementptr inbounds i8, ptr %2, i64 32
  %45 = load i32, ptr %44, align 8, !tbaa !22
  %46 = tail call noundef i32 @_Z49ImGui_ImplVulkanH_GetMinImageCountFromPresentMode16VkPresentModeKHR(i32 noundef %45)
  br label %47

47:                                               ; preds = %43, %41
  %.0 = phi i32 [ %46, %43 ], [ %6, %41 ]
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %8) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %8, i8 0, i64 80, i1 false)
  store i32 1000001000, ptr %8, align 8, !tbaa !23
  %48 = getelementptr inbounds i8, ptr %2, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !30
  %50 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr %49, ptr %50, align 8, !tbaa !31
  %51 = getelementptr inbounds i8, ptr %8, i64 32
  store i32 %.0, ptr %51, align 8, !tbaa !32
  %52 = getelementptr inbounds i8, ptr %2, i64 24
  %53 = getelementptr inbounds i8, ptr %8, i64 36
  %54 = load <2 x i32>, ptr %52, align 8, !tbaa !33
  store <2 x i32> %54, ptr %53, align 4, !tbaa !33
  %55 = getelementptr inbounds i8, ptr %8, i64 52
  store i32 1, ptr %55, align 4, !tbaa !34
  %56 = getelementptr inbounds i8, ptr %8, i64 56
  store i32 16, ptr %56, align 8, !tbaa !35
  %57 = getelementptr inbounds i8, ptr %8, i64 80
  store i32 1, ptr %57, align 8, !tbaa !36
  %58 = getelementptr inbounds i8, ptr %8, i64 84
  store i32 1, ptr %58, align 4, !tbaa !37
  %59 = getelementptr inbounds i8, ptr %2, i64 32
  %60 = load i32, ptr %59, align 8, !tbaa !22
  %61 = getelementptr inbounds i8, ptr %8, i64 88
  store i32 %60, ptr %61, align 8, !tbaa !38
  %62 = getelementptr inbounds i8, ptr %8, i64 92
  store i32 1, ptr %62, align 4, !tbaa !39
  %63 = getelementptr inbounds i8, ptr %8, i64 96
  store ptr %20, ptr %63, align 8, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 52, ptr nonnull %9) #7
  %64 = call i32 @vkGetPhysicalDeviceSurfaceCapabilitiesKHR(ptr noundef %0, ptr noundef %49, ptr noundef nonnull %9)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %64)
  %65 = load i32, ptr %9, align 4, !tbaa !41
  %66 = icmp ult i32 %.0, %65
  br i1 %66, label %.sink.split, label %67

67:                                               ; preds = %47
  %68 = getelementptr inbounds i8, ptr %9, i64 4
  %69 = load i32, ptr %68, align 4, !tbaa !43
  %.not116 = icmp ne i32 %69, 0
  %70 = icmp ugt i32 %.0, %69
  %or.cond = and i1 %.not116, %70
  br i1 %or.cond, label %.sink.split, label %71

.sink.split:                                      ; preds = %67, %47
  %.sink = phi i32 [ %65, %47 ], [ %69, %67 ]
  store i32 %.sink, ptr %51, align 8, !tbaa !32
  br label %71

71:                                               ; preds = %.sink.split, %67
  %72 = getelementptr inbounds i8, ptr %9, i64 8
  %73 = load i32, ptr %72, align 4, !tbaa !44
  %74 = icmp eq i32 %73, -1
  %75 = getelementptr inbounds i8, ptr %9, i64 12
  %76 = load i32, ptr %75, align 4
  %.sink148 = select i1 %74, i32 %4, i32 %73
  %.sink146 = select i1 %74, i32 %5, i32 %76
  store i32 %.sink148, ptr %2, align 8
  %77 = getelementptr inbounds i8, ptr %8, i64 44
  store i32 %.sink148, ptr %77, align 4
  %78 = getelementptr inbounds i8, ptr %2, i64 4
  store i32 %.sink146, ptr %78, align 4
  %79 = getelementptr inbounds i8, ptr %8, i64 48
  store i32 %.sink146, ptr %79, align 8
  %80 = call i32 @vkCreateSwapchainKHR(ptr noundef %1, ptr noundef nonnull %8, ptr noundef %3, ptr noundef nonnull %19)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %80)
  %81 = load ptr, ptr %19, align 8, !tbaa !5
  %82 = call i32 @vkGetSwapchainImagesKHR(ptr noundef %1, ptr noundef %81, ptr noundef nonnull %22, ptr noundef null)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %82)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %10) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %10, i8 0, i64 128, i1 false)
  %83 = load i32, ptr %22, align 8, !tbaa !16
  %.not117 = icmp ult i32 %83, %.0
  br i1 %.not117, label %84, label %85

84:                                               ; preds = %71
  call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.1, i32 noundef 1064, ptr noundef nonnull @__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij) #8
  unreachable

85:                                               ; preds = %71
  %86 = icmp ult i32 %83, 16
  br i1 %86, label %88, label %87

87:                                               ; preds = %85
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.1, i32 noundef 1065, ptr noundef nonnull @__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij) #8
  unreachable

88:                                               ; preds = %85
  %89 = load ptr, ptr %19, align 8, !tbaa !5
  %90 = call i32 @vkGetSwapchainImagesKHR(ptr noundef %1, ptr noundef %89, ptr noundef nonnull %22, ptr noundef nonnull %10)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %90)
  %91 = load ptr, ptr %26, align 8, !tbaa !17
  %92 = icmp eq ptr %91, null
  br i1 %92, label %94, label %93

93:                                               ; preds = %88
  call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.1, i32 noundef 1069, ptr noundef nonnull @__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij) #8
  unreachable

94:                                               ; preds = %88
  %95 = load i32, ptr %22, align 8, !tbaa !16
  %96 = zext i32 %95 to i64
  %97 = mul nuw nsw i64 %96, 48
  %98 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %97)
  store ptr %98, ptr %26, align 8, !tbaa !17
  %99 = load i32, ptr %22, align 8, !tbaa !16
  %100 = zext i32 %99 to i64
  %101 = shl nuw nsw i64 %100, 4
  %102 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %101)
  store ptr %102, ptr %28, align 8, !tbaa !18
  %103 = load ptr, ptr %26, align 8, !tbaa !17
  %104 = load i32, ptr %22, align 8, !tbaa !16
  %105 = zext i32 %104 to i64
  %106 = mul nuw nsw i64 %105, 48
  call void @llvm.memset.p0.i64(ptr align 8 %103, i8 0, i64 %106, i1 false)
  %107 = load ptr, ptr %28, align 8, !tbaa !18
  %108 = load i32, ptr %22, align 8, !tbaa !16
  %109 = zext i32 %108 to i64
  %110 = shl nuw nsw i64 %109, 4
  call void @llvm.memset.p0.i64(ptr align 8 %107, i8 0, i64 %110, i1 false)
  %111 = load i32, ptr %22, align 8, !tbaa !16
  %.not133 = icmp eq i32 %111, 0
  br i1 %.not133, label %._crit_edge123, label %.lr.ph122

.lr.ph122:                                        ; preds = %94
  %112 = load ptr, ptr %26, align 8, !tbaa !17
  %wide.trip.count = zext i32 %111 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %113 = icmp ult i32 %111, 4
  br i1 %113, label %._crit_edge123.loopexit.unr-lcssa, label %.lr.ph122.new

.lr.ph122.new:                                    ; preds = %.lr.ph122
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %117

._crit_edge123.loopexit.unr-lcssa:                ; preds = %117, %.lr.ph122
  %indvars.iv137.unr = phi i64 [ 0, %.lr.ph122 ], [ %indvars.iv.next138.3, %117 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge123, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge123.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv137.epil = phi i64 [ %indvars.iv.next138.epil, %.epil.preheader ], [ %indvars.iv137.unr, %._crit_edge123.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge123.loopexit.unr-lcssa ]
  %114 = getelementptr inbounds [16 x ptr], ptr %10, i64 0, i64 %indvars.iv137.epil
  %115 = load ptr, ptr %114, align 8, !tbaa !45
  %116 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %112, i64 %indvars.iv137.epil, i32 3
  store ptr %115, ptr %116, align 8, !tbaa !46
  %indvars.iv.next138.epil = add nuw nsw i64 %indvars.iv137.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge123, label %.epil.preheader, !llvm.loop !48

._crit_edge123:                                   ; preds = %._crit_edge123.loopexit.unr-lcssa, %.epil.preheader, %94
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %8) #7
  %.not118 = icmp eq ptr %20, null
  br i1 %.not118, label %131, label %130

117:                                              ; preds = %117, %.lr.ph122.new
  %indvars.iv137 = phi i64 [ 0, %.lr.ph122.new ], [ %indvars.iv.next138.3, %117 ]
  %niter = phi i64 [ 0, %.lr.ph122.new ], [ %niter.next.3, %117 ]
  %118 = getelementptr inbounds [16 x ptr], ptr %10, i64 0, i64 %indvars.iv137
  %119 = load ptr, ptr %118, align 16, !tbaa !45
  %120 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %112, i64 %indvars.iv137, i32 3
  store ptr %119, ptr %120, align 8, !tbaa !46
  %indvars.iv.next138 = or disjoint i64 %indvars.iv137, 1
  %121 = getelementptr inbounds [16 x ptr], ptr %10, i64 0, i64 %indvars.iv.next138
  %122 = load ptr, ptr %121, align 8, !tbaa !45
  %123 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %112, i64 %indvars.iv.next138, i32 3
  store ptr %122, ptr %123, align 8, !tbaa !46
  %indvars.iv.next138.1 = or disjoint i64 %indvars.iv137, 2
  %124 = getelementptr inbounds [16 x ptr], ptr %10, i64 0, i64 %indvars.iv.next138.1
  %125 = load ptr, ptr %124, align 16, !tbaa !45
  %126 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %112, i64 %indvars.iv.next138.1, i32 3
  store ptr %125, ptr %126, align 8, !tbaa !46
  %indvars.iv.next138.2 = or disjoint i64 %indvars.iv137, 3
  %127 = getelementptr inbounds [16 x ptr], ptr %10, i64 0, i64 %indvars.iv.next138.2
  %128 = load ptr, ptr %127, align 8, !tbaa !45
  %129 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %112, i64 %indvars.iv.next138.2, i32 3
  store ptr %128, ptr %129, align 8, !tbaa !46
  %indvars.iv.next138.3 = add nuw nsw i64 %indvars.iv137, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge123.loopexit.unr-lcssa, label %117, !llvm.loop !50

130:                                              ; preds = %._crit_edge123
  call void @vkDestroySwapchainKHR(ptr noundef %1, ptr noundef nonnull %20, ptr noundef %3)
  br label %131

131:                                              ; preds = %130, %._crit_edge123
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %11) #7
  store i32 0, ptr %11, align 4
  %132 = load i32, ptr %52, align 8, !tbaa !51
  %133 = getelementptr inbounds i8, ptr %11, i64 4
  store i32 %132, ptr %133, align 4, !tbaa !52
  %134 = getelementptr inbounds i8, ptr %11, i64 8
  store i32 1, ptr %134, align 4, !tbaa !58
  %135 = getelementptr inbounds i8, ptr %2, i64 48
  %136 = load i8, ptr %135, align 8, !tbaa !59, !range !60, !noundef !61
  %137 = trunc nuw i8 %136 to i1
  %138 = select i1 %137, i32 1, i32 2
  %139 = getelementptr inbounds i8, ptr %11, i64 12
  store i32 %138, ptr %139, align 4, !tbaa !62
  %140 = getelementptr inbounds i8, ptr %11, i64 16
  store <4 x i32> <i32 0, i32 2, i32 1, i32 0>, ptr %140, align 4, !tbaa !33
  %141 = getelementptr inbounds i8, ptr %11, i64 32
  store i32 1000001002, ptr %141, align 4, !tbaa !63
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  store i64 8589934592, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %13) #7
  %142 = getelementptr inbounds i8, ptr %13, i64 24
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %13, i8 0, i64 72, i1 false)
  store i32 1, ptr %142, align 8, !tbaa !64
  %143 = getelementptr inbounds i8, ptr %13, i64 32
  store ptr %12, ptr %143, align 8, !tbaa !67
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %14) #7
  %144 = getelementptr inbounds i8, ptr %14, i64 24
  store i32 0, ptr %144, align 8
  store <4 x i32> <i32 -1, i32 0, i32 1024, i32 1024>, ptr %14, align 16, !tbaa !68
  %145 = getelementptr inbounds i8, ptr %14, i64 16
  store i32 0, ptr %145, align 16, !tbaa !69
  %146 = getelementptr inbounds i8, ptr %14, i64 20
  store i32 256, ptr %146, align 4, !tbaa !71
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 56, i1 false)
  store i32 38, ptr %15, align 8, !tbaa !72
  %147 = getelementptr inbounds i8, ptr %15, i64 20
  store i32 1, ptr %147, align 4, !tbaa !74
  %148 = getelementptr inbounds i8, ptr %15, i64 24
  store ptr %11, ptr %148, align 8, !tbaa !75
  %149 = getelementptr inbounds i8, ptr %15, i64 32
  store i32 1, ptr %149, align 8, !tbaa !76
  %150 = getelementptr inbounds i8, ptr %15, i64 40
  store ptr %13, ptr %150, align 8, !tbaa !77
  %151 = getelementptr inbounds i8, ptr %15, i64 48
  store i32 1, ptr %151, align 8, !tbaa !78
  %152 = getelementptr inbounds i8, ptr %15, i64 56
  store ptr %14, ptr %152, align 8, !tbaa !79
  %153 = call i32 @vkCreateRenderPass(ptr noundef %1, ptr noundef nonnull %15, ptr noundef %3, ptr noundef nonnull %30)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %153)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %16) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %16, i8 0, i64 80, i1 false)
  store i32 15, ptr %16, align 8, !tbaa !80
  %154 = getelementptr inbounds i8, ptr %16, i64 32
  store i32 1, ptr %154, align 8, !tbaa !86
  %155 = load i32, ptr %52, align 8, !tbaa !51
  %156 = getelementptr inbounds i8, ptr %16, i64 36
  store i32 %155, ptr %156, align 4, !tbaa !87
  %157 = getelementptr inbounds i8, ptr %16, i64 40
  store <4 x i32> <i32 3, i32 4, i32 5, i32 6>, ptr %157, align 8, !tbaa !88
  %158 = getelementptr inbounds i8, ptr %16, i64 56
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %158, ptr noundef nonnull align 4 dereferenceable(20) @__const._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij.image_range, i64 20, i1 false), !tbaa.struct !89
  %159 = load i32, ptr %22, align 8, !tbaa !16
  %.not134 = icmp eq i32 %159, 0
  br i1 %.not134, label %._crit_edge127, label %.lr.ph126

.lr.ph126:                                        ; preds = %131
  %160 = getelementptr inbounds i8, ptr %16, i64 24
  br label %169

._crit_edge127.loopexit:                          ; preds = %169
  %161 = icmp eq i32 %176, 0
  br label %._crit_edge127

._crit_edge127:                                   ; preds = %._crit_edge127.loopexit, %131
  %.not135 = phi i1 [ %161, %._crit_edge127.loopexit ], [ true, %131 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %18, i8 0, i64 64, i1 false)
  store i32 37, ptr %18, align 8, !tbaa !90
  %162 = load ptr, ptr %30, align 8, !tbaa !19
  %163 = getelementptr inbounds i8, ptr %18, i64 24
  store ptr %162, ptr %163, align 8, !tbaa !92
  %164 = getelementptr inbounds i8, ptr %18, i64 32
  store i32 1, ptr %164, align 8, !tbaa !93
  %165 = getelementptr inbounds i8, ptr %18, i64 40
  store ptr %17, ptr %165, align 8, !tbaa !94
  %166 = getelementptr inbounds i8, ptr %18, i64 48
  %167 = load <2 x i32>, ptr %2, align 8, !tbaa !68
  store <2 x i32> %167, ptr %166, align 8, !tbaa !68
  %168 = getelementptr inbounds i8, ptr %18, i64 56
  store i32 1, ptr %168, align 8, !tbaa !95
  br i1 %.not135, label %._crit_edge131, label %.lr.ph130

169:                                              ; preds = %.lr.ph126, %169
  %indvars.iv140 = phi i64 [ 0, %.lr.ph126 ], [ %indvars.iv.next141, %169 ]
  %170 = load ptr, ptr %26, align 8, !tbaa !17
  %171 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %170, i64 %indvars.iv140
  %172 = getelementptr inbounds i8, ptr %171, i64 24
  %173 = load ptr, ptr %172, align 8, !tbaa !46
  store ptr %173, ptr %160, align 8, !tbaa !96
  %174 = getelementptr inbounds i8, ptr %171, i64 32
  %175 = call i32 @vkCreateImageView(ptr noundef %1, ptr noundef nonnull %16, ptr noundef %3, ptr noundef nonnull %174)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %175)
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %176 = load i32, ptr %22, align 8, !tbaa !16
  %177 = zext i32 %176 to i64
  %178 = icmp ult i64 %indvars.iv.next141, %177
  br i1 %178, label %169, label %._crit_edge127.loopexit, !llvm.loop !97

._crit_edge131:                                   ; preds = %.lr.ph130, %._crit_edge127
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  ret void

.lr.ph130:                                        ; preds = %._crit_edge127, %.lr.ph130
  %indvars.iv143 = phi i64 [ %indvars.iv.next144, %.lr.ph130 ], [ 0, %._crit_edge127 ]
  %179 = load ptr, ptr %26, align 8, !tbaa !17
  %180 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %179, i64 %indvars.iv143
  %181 = getelementptr inbounds i8, ptr %180, i64 32
  %182 = load ptr, ptr %181, align 8, !tbaa !98
  store ptr %182, ptr %17, align 8, !tbaa !45
  %183 = getelementptr inbounds i8, ptr %180, i64 40
  %184 = call i32 @vkCreateFramebuffer(ptr noundef %1, ptr noundef nonnull %18, ptr noundef %3, ptr noundef nonnull %183)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %184)
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %185 = load i32, ptr %22, align 8, !tbaa !16
  %186 = zext i32 %185 to i64
  %187 = icmp ult i64 %indvars.iv.next144, %186
  br i1 %187, label %.lr.ph130, label %._crit_edge131, !llvm.loop !99
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z30ImGui_ImplVulkanH_DestroyFrameP10VkDevice_TP23ImGui_ImplVulkanH_FramePK21VkAllocationCallbacks(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z40ImGui_ImplVulkanH_DestroyFrameSemaphoresP10VkDevice_TP33ImGui_ImplVulkanH_FrameSemaphoresPK21VkAllocationCallbacks(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN5ImGui7MemFreeEPv(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

declare i32 @vkCreateFramebuffer(ptr noundef, ptr noundef, ptr noundef, ptr 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 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { 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, !10, i64 8}
!6 = !{!"_ZTS24ImGui_ImplVulkanH_Window", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !11, i64 24, !14, i64 32, !10, i64 40, !15, i64 48, !8, i64 52, !7, i64 68, !7, i64 72, !7, i64 76, !10, i64 80, !10, i64 88}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS18VkSurfaceFormatKHR", !12, i64 0, !13, i64 4}
!12 = !{!"_ZTS8VkFormat", !8, i64 0}
!13 = !{!"_ZTS15VkColorSpaceKHR", !8, i64 0}
!14 = !{!"_ZTS16VkPresentModeKHR", !8, i64 0}
!15 = !{!"bool", !8, i64 0}
!16 = !{!6, !7, i64 72}
!17 = !{!6, !10, i64 80}
!18 = !{!6, !10, i64 88}
!19 = !{!6, !10, i64 40}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!6, !14, i64 32}
!23 = !{!24, !25, i64 0}
!24 = !{!"_ZTS24VkSwapchainCreateInfoKHR", !25, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !12, i64 36, !13, i64 40, !26, i64 44, !7, i64 52, !7, i64 56, !27, i64 60, !7, i64 64, !10, i64 72, !28, i64 80, !29, i64 84, !14, i64 88, !7, i64 92, !10, i64 96}
!25 = !{!"_ZTS15VkStructureType", !8, i64 0}
!26 = !{!"_ZTS10VkExtent2D", !7, i64 0, !7, i64 4}
!27 = !{!"_ZTS13VkSharingMode", !8, i64 0}
!28 = !{!"_ZTS29VkSurfaceTransformFlagBitsKHR", !8, i64 0}
!29 = !{!"_ZTS27VkCompositeAlphaFlagBitsKHR", !8, i64 0}
!30 = !{!6, !10, i64 16}
!31 = !{!24, !10, i64 24}
!32 = !{!24, !7, i64 32}
!33 = !{!8, !8, i64 0}
!34 = !{!24, !7, i64 52}
!35 = !{!24, !7, i64 56}
!36 = !{!24, !28, i64 80}
!37 = !{!24, !29, i64 84}
!38 = !{!24, !14, i64 88}
!39 = !{!24, !7, i64 92}
!40 = !{!24, !10, i64 96}
!41 = !{!42, !7, i64 0}
!42 = !{!"_ZTS24VkSurfaceCapabilitiesKHR", !7, i64 0, !7, i64 4, !26, i64 8, !26, i64 16, !26, i64 24, !7, i64 32, !7, i64 36, !28, i64 40, !7, i64 44, !7, i64 48}
!43 = !{!42, !7, i64 4}
!44 = !{!42, !7, i64 8}
!45 = !{!10, !10, i64 0}
!46 = !{!47, !10, i64 24}
!47 = !{!"_ZTS23ImGui_ImplVulkanH_Frame", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!48 = distinct !{!48, !49}
!49 = !{!"llvm.loop.unroll.disable"}
!50 = distinct !{!50, !21}
!51 = !{!6, !12, i64 24}
!52 = !{!53, !12, i64 4}
!53 = !{!"_ZTS23VkAttachmentDescription", !7, i64 0, !12, i64 4, !54, i64 8, !55, i64 12, !56, i64 16, !55, i64 20, !56, i64 24, !57, i64 28, !57, i64 32}
!54 = !{!"_ZTS21VkSampleCountFlagBits", !8, i64 0}
!55 = !{!"_ZTS18VkAttachmentLoadOp", !8, i64 0}
!56 = !{!"_ZTS19VkAttachmentStoreOp", !8, i64 0}
!57 = !{!"_ZTS13VkImageLayout", !8, i64 0}
!58 = !{!53, !54, i64 8}
!59 = !{!6, !15, i64 48}
!60 = !{i8 0, i8 2}
!61 = !{}
!62 = !{!53, !55, i64 12}
!63 = !{!53, !57, i64 32}
!64 = !{!65, !7, i64 24}
!65 = !{!"_ZTS20VkSubpassDescription", !7, i64 0, !66, i64 4, !7, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !7, i64 56, !10, i64 64}
!66 = !{!"_ZTS19VkPipelineBindPoint", !8, i64 0}
!67 = !{!65, !10, i64 32}
!68 = !{!7, !7, i64 0}
!69 = !{!70, !7, i64 16}
!70 = !{!"_ZTS19VkSubpassDependency", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24}
!71 = !{!70, !7, i64 20}
!72 = !{!73, !25, i64 0}
!73 = !{!"_ZTS22VkRenderPassCreateInfo", !25, i64 0, !10, i64 8, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !10, i64 56}
!74 = !{!73, !7, i64 20}
!75 = !{!73, !10, i64 24}
!76 = !{!73, !7, i64 32}
!77 = !{!73, !10, i64 40}
!78 = !{!73, !7, i64 48}
!79 = !{!73, !10, i64 56}
!80 = !{!81, !25, i64 0}
!81 = !{!"_ZTS21VkImageViewCreateInfo", !25, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !82, i64 32, !12, i64 36, !83, i64 40, !85, i64 56}
!82 = !{!"_ZTS15VkImageViewType", !8, i64 0}
!83 = !{!"_ZTS18VkComponentMapping", !84, i64 0, !84, i64 4, !84, i64 8, !84, i64 12}
!84 = !{!"_ZTS18VkComponentSwizzle", !8, i64 0}
!85 = !{!"_ZTS23VkImageSubresourceRange", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!86 = !{!81, !82, i64 32}
!87 = !{!81, !12, i64 36}
!88 = !{!84, !84, i64 0}
!89 = !{i64 0, i64 4, !68, i64 4, i64 4, !68, i64 8, i64 4, !68, i64 12, i64 4, !68, i64 16, i64 4, !68}
!90 = !{!91, !25, i64 0}
!91 = !{!"_ZTS23VkFramebufferCreateInfo", !25, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !7, i64 52, !7, i64 56}
!92 = !{!91, !10, i64 24}
!93 = !{!91, !7, i64 32}
!94 = !{!91, !10, i64 40}
!95 = !{!91, !7, i64 56}
!96 = !{!81, !10, i64 24}
!97 = distinct !{!97, !21}
!98 = !{!47, !10, i64 32}
!99 = distinct !{!99, !21}


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