; LLVM IR from hadryansalles/Luz :: deps/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.ImVector.11 = type { i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [84 x i8], align 1
@_ZL17g_FunctionsLoaded = external hidden global i8, align 1
@.str.4 = external hidden unnamed_addr constant [133 x i8], align 1
@__PRETTY_FUNCTION__._Z35ImGui_ImplVulkanH_SelectPresentModeP18VkPhysicalDevice_TP14VkSurfaceKHR_TPK16VkPresentModeKHRi = external hidden unnamed_addr constant [116 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [24 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z35ImGui_ImplVulkanH_SelectPresentModeP18VkPhysicalDevice_TP14VkSurfaceKHR_TPK16VkPresentModeKHRi(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.ImVector.11, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  %17 = load i8, ptr @_ZL17g_FunctionsLoaded, align 1, !tbaa !11, !range !13, !noundef !14
  %18 = trunc i8 %17 to i1
  br i1 %18, label %19, label %20

19:                                               ; preds = %4
  br label %20

20:                                               ; preds = %19, %4
  %21 = phi i1 [ false, %4 ], [ true, %19 ]
  br i1 %21, label %22, label %23

22:                                               ; preds = %20
  br label %25

23:                                               ; preds = %20
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1334, ptr noundef @__PRETTY_FUNCTION__._Z35ImGui_ImplVulkanH_SelectPresentModeP18VkPhysicalDevice_TP14VkSurfaceKHR_TPK16VkPresentModeKHRi) #6
  unreachable

24:                                               ; No predecessors!
  br label %25

25:                                               ; preds = %24, %22
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %29

28:                                               ; preds = %25
  br label %31

29:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.28, ptr noundef @.str.1, i32 noundef 1335, ptr noundef @__PRETTY_FUNCTION__._Z35ImGui_ImplVulkanH_SelectPresentModeP18VkPhysicalDevice_TP14VkSurfaceKHR_TPK16VkPresentModeKHRi) #6
  unreachable

30:                                               ; No predecessors!
  br label %31

31:                                               ; preds = %30, %28
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %31
  br label %37

35:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str.29, ptr noundef @.str.1, i32 noundef 1336, ptr noundef @__PRETTY_FUNCTION__._Z35ImGui_ImplVulkanH_SelectPresentModeP18VkPhysicalDevice_TP14VkSurfaceKHR_TPK16VkPresentModeKHRi) #6
  unreachable

36:                                               ; No predecessors!
  br label %37

37:                                               ; preds = %36, %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !9
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = call i32 @vkGetPhysicalDeviceSurfacePresentModesKHR(ptr noundef %38, ptr noundef %39, ptr noundef %10, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  call void @_ZN8ImVectorI16VkPresentModeKHREC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %41 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZN8ImVectorI16VkPresentModeKHRE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef %41)
          to label %42 unwind label %54

42:                                               ; preds = %37
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ImVector.11, ptr %11, i32 0, i32 2
  %46 = load ptr, ptr %45, align 8, !tbaa !15
  %47 = invoke i32 @vkGetPhysicalDeviceSurfacePresentModesKHR(ptr noundef %43, ptr noundef %44, ptr noundef %10, ptr noundef %46)
          to label %48 unwind label %54

48:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %92, %48
  %50 = load i32, ptr %14, align 4, !tbaa !9
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %58, label %53

53:                                               ; preds = %49
  store i32 2, ptr %15, align 4
  br label %95

54:                                               ; preds = %42, %37
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %12, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %13, align 4
  br label %100

58:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %86, %58
  %60 = load i32, ptr %16, align 4, !tbaa !9
  %61 = load i32, ptr %10, align 4, !tbaa !9
  %62 = icmp ult i32 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  store i32 5, ptr %15, align 4
  br label %89

64:                                               ; preds = %59
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = load i32, ptr %14, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds i32, ptr %65, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !17
  %70 = load i32, ptr %16, align 4, !tbaa !9
  %71 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorI16VkPresentModeKHREixEi(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef %70)
          to label %72 unwind label %81

72:                                               ; preds = %64
  %73 = load i32, ptr %71, align 4, !tbaa !17
  %74 = icmp eq i32 %69, %73
  br i1 %74, label %75, label %85

75:                                               ; preds = %72
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = load i32, ptr %14, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i32, ptr %76, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !17
  store i32 %80, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %89

81:                                               ; preds = %64
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %12, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %100

85:                                               ; preds = %72
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %16, align 4, !tbaa !9
  %88 = add i32 %87, 1
  store i32 %88, ptr %16, align 4, !tbaa !9
  br label %59, !llvm.loop !19

89:                                               ; preds = %75, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  %90 = load i32, ptr %15, align 4
  switch i32 %90, label %95 [
    i32 5, label %91
  ]

91:                                               ; preds = %89
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %14, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %14, align 4, !tbaa !9
  br label %49, !llvm.loop !21

95:                                               ; preds = %89, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %96 = load i32, ptr %15, align 4
  switch i32 %96, label %98 [
    i32 2, label %97
  ]

97:                                               ; preds = %95
  store i32 2, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %98

98:                                               ; preds = %97, %95
  call void @_ZN8ImVectorI16VkPresentModeKHRED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  %99 = load i32, ptr %5, align 4
  ret i32 %99

100:                                              ; preds = %81, %54
  call void @_ZN8ImVectorI16VkPresentModeKHRED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %101

101:                                              ; preds = %100
  %102 = load ptr, ptr %12, align 8
  %103 = load i32, ptr %13, align 4
  %104 = insertvalue { ptr, i32 } poison, ptr %102, 0
  %105 = insertvalue { ptr, i32 } %104, i32 %103, 1
  resume { ptr, i32 } %105
}

declare i32 @vkGetPhysicalDeviceSurfacePresentModesKHR(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI16VkPresentModeKHRE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorI16VkPresentModeKHREixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #4 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !6, i64 8}
!16 = !{!"_ZTS8ImVectorI16VkPresentModeKHRE", !10, i64 0, !10, i64 4, !6, i64 8}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTS16VkPresentModeKHR", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


; 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.ImVector.11 = type { i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [84 x i8], align 1
@_ZL17g_FunctionsLoaded = external hidden local_unnamed_addr global i8, align 1
@.str.4 = external hidden unnamed_addr constant [133 x i8], align 1
@__PRETTY_FUNCTION__._Z35ImGui_ImplVulkanH_SelectPresentModeP18VkPhysicalDevice_TP14VkSurfaceKHR_TPK16VkPresentModeKHRi = external hidden unnamed_addr constant [116 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [24 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z35ImGui_ImplVulkanH_SelectPresentModeP18VkPhysicalDevice_TP14VkSurfaceKHR_TPK16VkPresentModeKHRi(ptr noundef %0, ptr noundef %1, ptr noundef readonly %2, i32 noundef %3) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca %struct.ImVector.11, align 8
  %7 = load i8, ptr @_ZL17g_FunctionsLoaded, align 1, !tbaa !5, !range !9, !noundef !10
  %8 = trunc nuw i8 %7 to i1
  br i1 %8, label %10, label %9

9:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1334, ptr noundef nonnull @__PRETTY_FUNCTION__._Z35ImGui_ImplVulkanH_SelectPresentModeP18VkPhysicalDevice_TP14VkSurfaceKHR_TPK16VkPresentModeKHRi) #6
  unreachable

10:                                               ; preds = %4
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %11, label %12

11:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str.1, i32 noundef 1335, ptr noundef nonnull @__PRETTY_FUNCTION__._Z35ImGui_ImplVulkanH_SelectPresentModeP18VkPhysicalDevice_TP14VkSurfaceKHR_TPK16VkPresentModeKHRi) #6
  unreachable

12:                                               ; preds = %10
  %13 = icmp sgt i32 %3, 0
  br i1 %13, label %15, label %14

14:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.29, ptr noundef nonnull @.str.1, i32 noundef 1336, ptr noundef nonnull @__PRETTY_FUNCTION__._Z35ImGui_ImplVulkanH_SelectPresentModeP18VkPhysicalDevice_TP14VkSurfaceKHR_TPK16VkPresentModeKHRi) #6
  unreachable

15:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 0, ptr %5, align 4, !tbaa !11
  %16 = call i32 @vkGetPhysicalDeviceSurfacePresentModesKHR(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %5, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @_ZN8ImVectorI16VkPresentModeKHREC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
  %17 = load i32, ptr %5, align 4, !tbaa !11
  invoke void @_ZN8ImVectorI16VkPresentModeKHRE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %6, i32 noundef %17)
          to label %18 unwind label %25

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %6, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = invoke i32 @vkGetPhysicalDeviceSurfacePresentModesKHR(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %5, ptr noundef %20)
          to label %.preheader.lr.ph unwind label %25

.preheader.lr.ph:                                 ; preds = %18
  %22 = load i32, ptr %5, align 4, !tbaa !11
  %.not36 = icmp eq i32 %22, 0
  br i1 %.not36, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %wide.trip.count = zext nneg i32 %3 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge
  %23 = phi i32 [ 1, %.preheader.preheader ], [ %36, %._crit_edge ]
  %indvars.iv = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next, %._crit_edge ]
  %.not2732.not = icmp eq i32 %23, 0
  br i1 %.not2732.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %24 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv
  br label %30

25:                                               ; preds = %18, %15
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8ImVectorI16VkPresentModeKHRED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  resume { ptr, i32 } %26

27:                                               ; preds = %30
  %28 = add nuw i32 %.033, 1
  %29 = load i32, ptr %5, align 4, !tbaa !11
  %.not27 = icmp ult i32 %28, %29
  br i1 %.not27, label %30, label %._crit_edge, !llvm.loop !16

30:                                               ; preds = %.lr.ph, %27
  %.033 = phi i32 [ 0, %.lr.ph ], [ %28, %27 ]
  %31 = load i32, ptr %24, align 4, !tbaa !18
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorI16VkPresentModeKHREixEi(ptr noundef nonnull align 8 dereferenceable(16) %6, i32 noundef %.033)
  %33 = load i32, ptr %32, align 4, !tbaa !18
  %34 = icmp eq i32 %31, %33
  br i1 %34, label %.thread, label %27

.thread:                                          ; preds = %30
  %35 = load i32, ptr %24, align 4, !tbaa !18
  br label %.loopexit

._crit_edge:                                      ; preds = %27, %.preheader
  %36 = phi i32 [ 0, %.preheader ], [ %29, %27 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.preheader, !llvm.loop !20

.loopexit:                                        ; preds = %._crit_edge, %.preheader.lr.ph, %.thread
  %spec.select = phi i32 [ %35, %.thread ], [ 2, %.preheader.lr.ph ], [ 2, %._crit_edge ]
  call void @_ZN8ImVectorI16VkPresentModeKHRED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  ret i32 %spec.select
}

declare i32 @vkGetPhysicalDeviceSurfacePresentModesKHR(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI16VkPresentModeKHRE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorI16VkPresentModeKHREixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #4 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { inlinehint 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 #6 = { noreturn nounwind }
attributes #7 = { 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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !15, i64 8}
!14 = !{!"_ZTS8ImVectorI16VkPresentModeKHRE", !12, i64 0, !12, i64 4, !15, i64 8}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTS16VkPresentModeKHR", !7, i64 0}
!20 = distinct !{!20, !17, !21}
!21 = !{!"llvm.loop.unswitch.partial.disable"}


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