; LLVM IR from Devaniti/BoolkaEngine :: ThirdParty/imgui/backends (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.10 = type { i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__._Z35ImGui_ImplVulkanH_SelectPresentModeP18VkPhysicalDevice_TP14VkSurfaceKHR_TPK16VkPresentModeKHRi = external hidden unnamed_addr constant [116 x i8], align 1
@.str.15 = 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.10, 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 ptr, ptr %8, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %4
  br label %22

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

21:                                               ; No predecessors!
  br label %22

22:                                               ; preds = %21, %19
  %23 = load i32, ptr %9, align 4, !tbaa !9
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %22
  br label %28

26:                                               ; preds = %22
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.1, i32 noundef 1000, ptr noundef @__PRETTY_FUNCTION__._Z35ImGui_ImplVulkanH_SelectPresentModeP18VkPhysicalDevice_TP14VkSurfaceKHR_TPK16VkPresentModeKHRi) #6
  unreachable

27:                                               ; No predecessors!
  br label %28

28:                                               ; preds = %27, %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !9
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call i32 @vkGetPhysicalDeviceSurfacePresentModesKHR(ptr noundef %29, ptr noundef %30, 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)
  %32 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZN8ImVectorI16VkPresentModeKHRE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef %32)
          to label %33 unwind label %45

33:                                               ; preds = %28
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImVector.10, ptr %11, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = invoke i32 @vkGetPhysicalDeviceSurfacePresentModesKHR(ptr noundef %34, ptr noundef %35, ptr noundef %10, ptr noundef %37)
          to label %39 unwind label %45

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

40:                                               ; preds = %83, %39
  %41 = load i32, ptr %14, align 4, !tbaa !9
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %49, label %44

44:                                               ; preds = %40
  store i32 2, ptr %15, align 4
  br label %86

45:                                               ; preds = %33, %28
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %12, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %13, align 4
  br label %91

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

50:                                               ; preds = %77, %49
  %51 = load i32, ptr %16, align 4, !tbaa !9
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = icmp ult i32 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  store i32 5, ptr %15, align 4
  br label %80

55:                                               ; preds = %50
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load i32, ptr %14, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds i32, ptr %56, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !13
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorI16VkPresentModeKHREixEi(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef %61)
          to label %63 unwind label %72

63:                                               ; preds = %55
  %64 = load i32, ptr %62, align 4, !tbaa !13
  %65 = icmp eq i32 %60, %64
  br i1 %65, label %66, label %76

66:                                               ; preds = %63
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = load i32, ptr %14, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds i32, ptr %67, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !13
  store i32 %71, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %80

72:                                               ; preds = %55
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %12, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, 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 %91

76:                                               ; preds = %63
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %16, align 4, !tbaa !9
  %79 = add i32 %78, 1
  store i32 %79, ptr %16, align 4, !tbaa !9
  br label %50, !llvm.loop !15

80:                                               ; preds = %66, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  %81 = load i32, ptr %15, align 4
  switch i32 %81, label %86 [
    i32 5, label %82
  ]

82:                                               ; preds = %80
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %14, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %14, align 4, !tbaa !9
  br label %40, !llvm.loop !17

86:                                               ; preds = %80, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %87 = load i32, ptr %15, align 4
  switch i32 %87, label %89 [
    i32 2, label %88
  ]

88:                                               ; preds = %86
  store i32 2, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %89

89:                                               ; preds = %88, %86
  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
  %90 = load i32, ptr %5, align 4
  ret i32 %90

91:                                               ; preds = %72, %45
  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 %92

92:                                               ; preds = %91
  %93 = load ptr, ptr %12, align 8
  %94 = load i32, ptr %13, align 4
  %95 = insertvalue { ptr, i32 } poison, ptr %93, 0
  %96 = insertvalue { ptr, i32 } %95, i32 %94, 1
  resume { ptr, i32 } %96
}

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, !6, i64 8}
!12 = !{!"_ZTS8ImVectorI16VkPresentModeKHRE", !10, i64 0, !10, i64 4, !6, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS16VkPresentModeKHR", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ImVector.10 = type { i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__._Z35ImGui_ImplVulkanH_SelectPresentModeP18VkPhysicalDevice_TP14VkSurfaceKHR_TPK16VkPresentModeKHRi = external hidden unnamed_addr constant [116 x i8], align 1
@.str.15 = 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.10, align 8
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %7, label %8

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

8:                                                ; preds = %4
  %9 = icmp sgt i32 %3, 0
  br i1 %9, label %11, label %10

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

11:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  %12 = 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)
  %13 = load i32, ptr %5, align 4, !tbaa !5
  invoke void @_ZN8ImVectorI16VkPresentModeKHRE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %6, i32 noundef %13)
          to label %14 unwind label %21

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %6, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = invoke i32 @vkGetPhysicalDeviceSurfacePresentModesKHR(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %5, ptr noundef %16)
          to label %.preheader.lr.ph unwind label %21

.preheader.lr.ph:                                 ; preds = %14
  %18 = load i32, ptr %5, align 4, !tbaa !5
  %.not36 = icmp eq i32 %18, 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
  %19 = phi i32 [ 1, %.preheader.preheader ], [ %32, %._crit_edge ]
  %indvars.iv = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next, %._crit_edge ]
  %.not2732.not = icmp eq i32 %19, 0
  br i1 %.not2732.not, label %._crit_edge, label %.lr.ph

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

21:                                               ; preds = %14, %11
  %22 = 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 } %22

23:                                               ; preds = %26
  %24 = add nuw i32 %.033, 1
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %.not27 = icmp ult i32 %24, %25
  br i1 %.not27, label %26, label %._crit_edge, !llvm.loop !12

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

.thread:                                          ; preds = %26
  %31 = load i32, ptr %20, align 4, !tbaa !14
  br label %.loopexit

._crit_edge:                                      ; preds = %23, %.preheader
  %32 = phi i32 [ 0, %.preheader ], [ %25, %23 ]
  %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 !16

.loopexit:                                        ; preds = %._crit_edge, %.preheader.lr.ph, %.thread
  %spec.select = phi i32 [ %31, %.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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTS8ImVectorI16VkPresentModeKHRE", !6, i64 0, !6, i64 4, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"_ZTS16VkPresentModeKHR", !7, i64 0}
!16 = distinct !{!16, !13, !17}
!17 = !{!"llvm.loop.unswitch.partial.disable"}


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