; LLVM IR from hbatagelo/abcg :: abcg/external/imgui (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.ImNewWrapper = type { i8 }
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, float, float, float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, float, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, [652 x i32], [652 x i8], [16 x float], ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, i32, [652 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x float], float, i8, i8, i8, i8, i16, %struct.ImVector.0 }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVec2 = type { float, float }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImGui_ImplVulkan_InitInfo = type { ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, i32, i32, ptr, ptr }
%struct.ImGui_ImplVulkan_Data = type { %struct.ImGui_ImplVulkan_InitInfo, ptr, i64, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImGui_ImplVulkanH_WindowRenderBuffers }
%struct.ImGui_ImplVulkanH_WindowRenderBuffers = type { i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@_ZL17g_FunctionsLoaded = external hidden global i8, align 1
@.str.3 = external hidden unnamed_addr constant [133 x i8], align 1
@__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T = external hidden unnamed_addr constant [70 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1

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

declare noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

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

declare noundef nonnull align 8 dereferenceable(14280) ptr @_ZN5ImGui5GetIOEv() #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z36ImGui_ImplVulkan_CreateDeviceObjectsv() #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T(ptr noundef %0, ptr noundef %1) #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.ImNewWrapper, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load i8, ptr @_ZL17g_FunctionsLoaded, align 1, !tbaa !9, !range !11, !noundef !12
  %11 = trunc i8 %10 to i1
  br i1 %11, label %12, label %13

12:                                               ; preds = %2
  br label %13

13:                                               ; preds = %12, %2
  %14 = phi i1 [ false, %2 ], [ true, %12 ]
  br i1 %14, label %15, label %16

15:                                               ; preds = %13
  br label %18

16:                                               ; preds = %13
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 965, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

17:                                               ; No predecessors!
  br label %18

18:                                               ; preds = %17, %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %19 = call noundef nonnull align 8 dereferenceable(14280) ptr @_ZN5ImGui5GetIOEv()
  store ptr %19, ptr %5, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ImGuiIO, ptr %20, i32 0, i32 34
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %18
  br label %25

25:                                               ; preds = %24, %18
  %26 = phi i1 [ false, %18 ], [ true, %24 ]
  br i1 %26, label %27, label %28

27:                                               ; preds = %25
  br label %30

28:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 968, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

29:                                               ; No predecessors!
  br label %30

30:                                               ; preds = %29, %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %31 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef 232)
  %32 = call noundef ptr @_Znwm12ImNewWrapperPv(i64 noundef 232, ptr noundef %31)
  invoke void @_ZN21ImGui_ImplVulkan_DataC2Ev(ptr noundef nonnull align 8 dereferenceable(232) %32)
          to label %33 unwind label %49

33:                                               ; preds = %30
  store ptr %32, ptr %6, align 8, !tbaa !5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImGuiIO, ptr %35, i32 0, i32 34
  store ptr %34, ptr %36, align 8, !tbaa !13
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ImGuiIO, ptr %37, i32 0, i32 32
  store ptr @.str.6, ptr %38, align 8, !tbaa !20
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ImGuiIO, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 4, !tbaa !21
  %42 = or i32 %41, 8
  store i32 %42, ptr %40, align 4, !tbaa !21
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !22
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %48

47:                                               ; preds = %33
  br label %54

48:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 976, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

49:                                               ; preds = %30
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %8, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %9, align 4
  call void @_ZdlPv12ImNewWrapperS_(ptr noundef %32, ptr noundef %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %124

53:                                               ; No predecessors!
  br label %54

54:                                               ; preds = %53, %47
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %55, i32 0, i32 1
  %57 = load ptr, ptr %56, align 8, !tbaa !25
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %60

59:                                               ; preds = %54
  br label %62

60:                                               ; preds = %54
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 977, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

61:                                               ; No predecessors!
  br label %62

62:                                               ; preds = %61, %59
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %63, i32 0, i32 2
  %65 = load ptr, ptr %64, align 8, !tbaa !26
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %68

67:                                               ; preds = %62
  br label %70

68:                                               ; preds = %62
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 978, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

69:                                               ; No predecessors!
  br label %70

70:                                               ; preds = %69, %67
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %71, i32 0, i32 4
  %73 = load ptr, ptr %72, align 8, !tbaa !27
  %74 = icmp ne ptr %73, null
  br i1 %74, label %75, label %76

75:                                               ; preds = %70
  br label %78

76:                                               ; preds = %70
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 979, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

77:                                               ; No predecessors!
  br label %78

78:                                               ; preds = %77, %75
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %79, i32 0, i32 6
  %81 = load ptr, ptr %80, align 8, !tbaa !28
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %84

83:                                               ; preds = %78
  br label %86

84:                                               ; preds = %78
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 980, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

85:                                               ; No predecessors!
  br label %86

86:                                               ; preds = %85, %83
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %87, i32 0, i32 8
  %89 = load i32, ptr %88, align 4, !tbaa !29
  %90 = icmp uge i32 %89, 2
  br i1 %90, label %91, label %92

91:                                               ; preds = %86
  br label %94

92:                                               ; preds = %86
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.1, i32 noundef 981, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

93:                                               ; No predecessors!
  br label %94

94:                                               ; preds = %93, %91
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %95, i32 0, i32 9
  %97 = load i32, ptr %96, align 8, !tbaa !30
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %98, i32 0, i32 8
  %100 = load i32, ptr %99, align 4, !tbaa !29
  %101 = icmp uge i32 %97, %100
  br i1 %101, label %102, label %103

102:                                              ; preds = %94
  br label %105

103:                                              ; preds = %94
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 982, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

104:                                              ; No predecessors!
  br label %105

105:                                              ; preds = %104, %102
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = icmp ne ptr %106, null
  br i1 %107, label %108, label %109

108:                                              ; preds = %105
  br label %111

109:                                              ; preds = %105
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 983, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

110:                                              ; No predecessors!
  br label %111

111:                                              ; preds = %110, %108
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %113, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %114, ptr align 8 %112, i64 88, i1 false), !tbaa.struct !31
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %116, i32 0, i32 1
  store ptr %115, ptr %117, align 8, !tbaa !34
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %118, i32 0, i32 7
  %120 = load i32, ptr %119, align 8, !tbaa !38
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %121, i32 0, i32 7
  store i32 %120, ptr %122, align 8, !tbaa !39
  %123 = call noundef zeroext i1 @_Z36ImGui_ImplVulkan_CreateDeviceObjectsv()
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  ret i1 true

124:                                              ; preds = %49
  %125 = load ptr, ptr %8, align 8
  %126 = load i32, ptr %9, align 4
  %127 = insertvalue { ptr, i32 } poison, ptr %125, 0
  %128 = insertvalue { ptr, i32 } %127, i32 %126, 1
  resume { ptr, i32 } %128
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_Znwm12ImNewWrapperPv(i64 noundef, ptr noundef) #5

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

declare i32 @__gxx_personality_v0(...)

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !6, i64 152}
!14 = !{!"_ZTS7ImGuiIO", !15, i64 0, !15, i64 4, !16, i64 8, !17, i64 16, !17, i64 20, !6, i64 24, !6, i64 32, !17, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !17, i64 56, !17, i64 60, !17, i64 64, !6, i64 72, !6, i64 80, !17, i64 88, !10, i64 92, !6, i64 96, !16, i64 104, !10, i64 112, !10, i64 113, !10, i64 114, !10, i64 115, !10, i64 116, !10, i64 117, !10, i64 118, !10, i64 119, !17, i64 120, !10, i64 124, !10, i64 125, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !10, i64 208, !10, i64 209, !10, i64 210, !10, i64 211, !10, i64 212, !10, i64 213, !10, i64 214, !17, i64 216, !15, i64 220, !15, i64 224, !15, i64 228, !15, i64 232, !15, i64 236, !16, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !6, i64 3576, !16, i64 3584, !7, i64 3592, !17, i64 3600, !17, i64 3604, !10, i64 3608, !10, i64 3609, !10, i64 3610, !10, i64 3611, !15, i64 3612, !7, i64 3616, !10, i64 14048, !16, i64 14052, !7, i64 14060, !7, i64 14104, !7, i64 14144, !7, i64 14149, !7, i64 14154, !7, i64 14164, !7, i64 14174, !7, i64 14179, !7, i64 14184, !7, i64 14192, !7, i64 14212, !7, i64 14232, !17, i64 14252, !10, i64 14256, !10, i64 14257, !7, i64 14258, !10, i64 14259, !18, i64 14260, !19, i64 14264}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS6ImVec2", !17, i64 0, !17, i64 4}
!17 = !{!"float", !7, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = !{!"_ZTS8ImVectorItE", !15, i64 0, !15, i64 4, !6, i64 8}
!20 = !{!14, !6, i64 136}
!21 = !{!14, !15, i64 4}
!22 = !{!23, !6, i64 0}
!23 = !{!"_ZTS25ImGui_ImplVulkan_InitInfo", !6, i64 0, !6, i64 8, !6, i64 16, !15, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !15, i64 56, !15, i64 60, !15, i64 64, !24, i64 68, !6, i64 72, !6, i64 80}
!24 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!25 = !{!23, !6, i64 8}
!26 = !{!23, !6, i64 16}
!27 = !{!23, !6, i64 32}
!28 = !{!23, !6, i64 48}
!29 = !{!23, !15, i64 60}
!30 = !{!23, !15, i64 64}
!31 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 4, !32, i64 32, i64 8, !5, i64 40, i64 8, !5, i64 48, i64 8, !5, i64 56, i64 4, !32, i64 60, i64 4, !32, i64 64, i64 4, !32, i64 68, i64 4, !33, i64 72, i64 8, !5, i64 80, i64 8, !5}
!32 = !{!15, !15, i64 0}
!33 = !{!24, !24, i64 0}
!34 = !{!35, !6, i64 88}
!35 = !{!"_ZTS21ImGui_ImplVulkan_Data", !23, i64 0, !6, i64 88, !36, i64 96, !15, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !15, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !37, i64 216}
!36 = !{!"long", !7, i64 0}
!37 = !{!"_ZTS37ImGui_ImplVulkanH_WindowRenderBuffers", !15, i64 0, !15, i64 4, !6, i64 8}
!38 = !{!23, !15, i64 56}
!39 = !{!35, !15, i64 136}


; 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"

@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@_ZL17g_FunctionsLoaded = external hidden local_unnamed_addr global i8, align 1
@.str.3 = external hidden unnamed_addr constant [133 x i8], align 1
@__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T = external hidden unnamed_addr constant [70 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1

declare noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

declare noundef nonnull align 8 dereferenceable(14280) ptr @_ZN5ImGui5GetIOEv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z36ImGui_ImplVulkan_CreateDeviceObjectsv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = load i8, ptr @_ZL17g_FunctionsLoaded, align 1, !tbaa !5, !range !9, !noundef !10
  %4 = trunc nuw i8 %3 to i1
  br i1 %4, label %6, label %5

5:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 965, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

6:                                                ; preds = %2
  %7 = tail call noundef nonnull align 8 dereferenceable(14280) ptr @_ZN5ImGui5GetIOEv()
  %8 = getelementptr inbounds i8, ptr %7, i64 152
  %9 = load ptr, ptr %8, align 8, !tbaa !11
  %10 = icmp eq ptr %9, null
  br i1 %10, label %12, label %11

11:                                               ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 968, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

12:                                               ; preds = %6
  %13 = tail call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef 232)
  %14 = tail call noundef ptr @_Znwm12ImNewWrapperPv(i64 noundef 232, ptr noundef %13)
  tail call void @_ZN21ImGui_ImplVulkan_DataC2Ev(ptr noundef nonnull align 8 dereferenceable(232) %14)
  store ptr %14, ptr %8, align 8, !tbaa !11
  %15 = getelementptr inbounds i8, ptr %7, i64 136
  store ptr @.str.6, ptr %15, align 8, !tbaa !19
  %16 = getelementptr inbounds i8, ptr %7, i64 4
  %17 = load i32, ptr %16, align 4, !tbaa !20
  %18 = or i32 %17, 8
  store i32 %18, ptr %16, align 4, !tbaa !20
  %19 = load ptr, ptr %0, align 8, !tbaa !21
  %.not = icmp eq ptr %19, null
  br i1 %.not, label %20, label %21

20:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 976, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

21:                                               ; preds = %12
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !24
  %.not22 = icmp eq ptr %23, null
  br i1 %.not22, label %24, label %25

24:                                               ; preds = %21
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 977, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  %27 = load ptr, ptr %26, align 8, !tbaa !25
  %.not23 = icmp eq ptr %27, null
  br i1 %.not23, label %28, label %29

28:                                               ; preds = %25
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 978, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %0, i64 32
  %31 = load ptr, ptr %30, align 8, !tbaa !26
  %.not24 = icmp eq ptr %31, null
  br i1 %.not24, label %32, label %33

32:                                               ; preds = %29
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 979, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %0, i64 48
  %35 = load ptr, ptr %34, align 8, !tbaa !27
  %.not25 = icmp eq ptr %35, null
  br i1 %.not25, label %36, label %37

36:                                               ; preds = %33
  tail call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 980, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

37:                                               ; preds = %33
  %38 = getelementptr inbounds i8, ptr %0, i64 60
  %39 = load i32, ptr %38, align 4, !tbaa !28
  %40 = icmp ugt i32 %39, 1
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, i32 noundef 981, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

42:                                               ; preds = %37
  %43 = getelementptr inbounds i8, ptr %0, i64 64
  %44 = load i32, ptr %43, align 8, !tbaa !29
  %.not26 = icmp ult i32 %44, %39
  br i1 %.not26, label %45, label %46

45:                                               ; preds = %42
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 982, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

46:                                               ; preds = %42
  %.not27 = icmp eq ptr %1, null
  br i1 %.not27, label %47, label %48

47:                                               ; preds = %46
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.1, i32 noundef 983, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

48:                                               ; preds = %46
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %14, ptr noundef nonnull align 8 dereferenceable(88) %0, i64 88, i1 false), !tbaa.struct !30
  %49 = getelementptr inbounds i8, ptr %14, i64 88
  store ptr %1, ptr %49, align 8, !tbaa !34
  %50 = getelementptr inbounds i8, ptr %0, i64 56
  %51 = load i32, ptr %50, align 8, !tbaa !38
  %52 = getelementptr inbounds i8, ptr %14, i64 136
  store i32 %51, ptr %52, align 8, !tbaa !39
  %53 = tail call noundef zeroext i1 @_Z36ImGui_ImplVulkan_CreateDeviceObjectsv()
  ret i1 true
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_Znwm12ImNewWrapperPv(i64 noundef, ptr noundef) local_unnamed_addr #4

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

declare i32 @__gxx_personality_v0(...)

attributes #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 #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !16, i64 152}
!12 = !{!"_ZTS7ImGuiIO", !13, i64 0, !13, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !16, i64 24, !16, i64 32, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !15, i64 60, !15, i64 64, !16, i64 72, !16, i64 80, !15, i64 88, !6, i64 92, !16, i64 96, !14, i64 104, !6, i64 112, !6, i64 113, !6, i64 114, !6, i64 115, !6, i64 116, !6, i64 117, !6, i64 118, !6, i64 119, !15, i64 120, !6, i64 124, !6, i64 125, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !16, i64 176, !16, i64 184, !16, i64 192, !16, i64 200, !6, i64 208, !6, i64 209, !6, i64 210, !6, i64 211, !6, i64 212, !6, i64 213, !6, i64 214, !15, i64 216, !13, i64 220, !13, i64 224, !13, i64 228, !13, i64 232, !13, i64 236, !14, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !16, i64 3576, !14, i64 3584, !7, i64 3592, !15, i64 3600, !15, i64 3604, !6, i64 3608, !6, i64 3609, !6, i64 3610, !6, i64 3611, !13, i64 3612, !7, i64 3616, !6, i64 14048, !14, i64 14052, !7, i64 14060, !7, i64 14104, !7, i64 14144, !7, i64 14149, !7, i64 14154, !7, i64 14164, !7, i64 14174, !7, i64 14179, !7, i64 14184, !7, i64 14192, !7, i64 14212, !7, i64 14232, !15, i64 14252, !6, i64 14256, !6, i64 14257, !7, i64 14258, !6, i64 14259, !17, i64 14260, !18, i64 14264}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !16, i64 8}
!19 = !{!12, !16, i64 136}
!20 = !{!12, !13, i64 4}
!21 = !{!22, !16, i64 0}
!22 = !{!"_ZTS25ImGui_ImplVulkan_InitInfo", !16, i64 0, !16, i64 8, !16, i64 16, !13, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !13, i64 56, !13, i64 60, !13, i64 64, !23, i64 68, !16, i64 72, !16, i64 80}
!23 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!24 = !{!22, !16, i64 8}
!25 = !{!22, !16, i64 16}
!26 = !{!22, !16, i64 32}
!27 = !{!22, !16, i64 48}
!28 = !{!22, !13, i64 60}
!29 = !{!22, !13, i64 64}
!30 = !{i64 0, i64 8, !31, i64 8, i64 8, !31, i64 16, i64 8, !31, i64 24, i64 4, !32, i64 32, i64 8, !31, i64 40, i64 8, !31, i64 48, i64 8, !31, i64 56, i64 4, !32, i64 60, i64 4, !32, i64 64, i64 4, !32, i64 68, i64 4, !33, i64 72, i64 8, !31, i64 80, i64 8, !31}
!31 = !{!16, !16, i64 0}
!32 = !{!13, !13, i64 0}
!33 = !{!23, !23, i64 0}
!34 = !{!35, !16, i64 88}
!35 = !{!"_ZTS21ImGui_ImplVulkan_Data", !22, i64 0, !16, i64 88, !36, i64 96, !13, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !13, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !16, i64 176, !16, i64 184, !16, i64 192, !16, i64 200, !16, i64 208, !37, i64 216}
!36 = !{!"long", !7, i64 0}
!37 = !{!"_ZTS37ImGui_ImplVulkanH_WindowRenderBuffers", !13, i64 0, !13, i64 4, !16, i64 8}
!38 = !{!22, !13, i64 56}
!39 = !{!35, !13, i64 136}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass