; LLVM IR from khushmmehta/Scorch-V :: src/ScorchVkEngine/Abstractions (VulkanMemoryAllocator)

; 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.VmaPool_T = type { %class.VmaBlockVector, %class.VmaDedicatedAllocationList, i32, ptr, ptr, ptr }
%class.VmaBlockVector = type <{ ptr, ptr, i32, [4 x i8], i64, i64, i64, i64, i8, [3 x i8], i32, float, [4 x i8], i64, ptr, %class.VmaRWMutex, %class.VmaVector.15, i32, i8, [3 x i8] }>
%class.VmaRWMutex = type { %"class.std::shared_mutex" }
%"class.std::shared_mutex" = type { %"class.std::__shared_mutex_pthread" }
%"class.std::__shared_mutex_pthread" = type { %union.pthread_rwlock_t }
%union.pthread_rwlock_t = type { %struct.__pthread_rwlock_arch_t }
%struct.__pthread_rwlock_arch_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i8, [7 x i8], i64, i32 }
%class.VmaVector.15 = type { %struct.VmaStlAllocator.16, ptr, i64, i64 }
%struct.VmaStlAllocator.16 = type { ptr }
%class.VmaDedicatedAllocationList = type { i8, %class.VmaRWMutex, %class.VmaIntrusiveLinkedList }
%class.VmaIntrusiveLinkedList = type { ptr, ptr, i64 }
%struct.VmaAllocator_T = type <{ i8, [3 x i8], i32, i8, i8, i8, i8, i8, i8, [2 x i8], ptr, ptr, i8, [7 x i8], %struct.VkAllocationCallbacks, %struct.VmaDeviceMemoryCallbacks, %class.VmaAllocationObjectAllocator, i32, [4 x i8], %struct.VkPhysicalDeviceProperties, %struct.VkPhysicalDeviceMemoryProperties, [32 x ptr], [32 x %class.VmaDedicatedAllocationList], %struct.VmaCurrentBudgetData, %"struct.std::atomic", [4 x i8], i64, ptr, %"struct.std::atomic", %"struct.std::atomic", [32 x i32], %class.VmaRWMutex, %class.VmaIntrusiveLinkedList.14, i32, [4 x i8], %struct.VmaVulkanFunctions, i32, [4 x i8] }>
%struct.VkAllocationCallbacks = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.VmaDeviceMemoryCallbacks = type { ptr, ptr, ptr }
%class.VmaAllocationObjectAllocator = type { %class.VmaMutex, %class.VmaPoolAllocator.11 }
%class.VmaMutex = type { %"class.std::mutex" }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%class.VmaPoolAllocator.11 = type { ptr, i32, %class.VmaVector.12 }
%class.VmaVector.12 = type { %struct.VmaStlAllocator.13, ptr, i64, i64 }
%struct.VmaStlAllocator.13 = type { ptr }
%struct.VkPhysicalDeviceProperties = type { i32, i32, i32, i32, i32, [256 x i8], [16 x i8], %struct.VkPhysicalDeviceLimits, %struct.VkPhysicalDeviceSparseProperties }
%struct.VkPhysicalDeviceLimits = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [3 x i32], i32, [3 x i32], i32, i32, i32, i32, i32, float, float, i32, [2 x i32], [2 x float], i32, i64, i64, i64, i64, i32, i32, i32, i32, float, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, [2 x float], [2 x float], float, float, i32, i32, i64, i64, i64 }
%struct.VkPhysicalDeviceSparseProperties = type { i32, i32, i32, i32, i32 }
%struct.VkPhysicalDeviceMemoryProperties = type { i32, [32 x %struct.VkMemoryType], i32, [16 x %struct.VkMemoryHeap] }
%struct.VkMemoryType = type { i32, i32 }
%struct.VkMemoryHeap = type { i64, i32 }
%struct.VmaCurrentBudgetData = type { [16 x %"struct.std::atomic"], [16 x %"struct.std::atomic"], [16 x %"struct.std::atomic.9"], [16 x %"struct.std::atomic.9"], %"struct.std::atomic", %class.VmaRWMutex, [16 x i64], [16 x i64], [16 x i64] }
%"struct.std::atomic.9" = type { %"struct.std::__atomic_base.10" }
%"struct.std::__atomic_base.10" = type { i64 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%class.VmaIntrusiveLinkedList.14 = type { ptr, ptr, i64 }
%struct.VmaVulkanFunctions = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.270 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__._ZN14VmaAllocator_T10FreeMemoryEmPKP15VmaAllocation_T = external hidden unnamed_addr constant [63 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [61 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK15VmaAllocation_T7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(84)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15VmaAllocation_T8FreeNameEP14VmaAllocator_T(ptr noundef nonnull align 8 dereferenceable(84), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK15VmaAllocation_T13GetParentPoolEv(ptr noundef nonnull align 8 dereferenceable(84)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14VmaBlockVector4FreeEP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(181), ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK15VmaAllocation_T18GetMemoryTypeIndexEv(ptr noundef nonnull align 8 dereferenceable(84)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14VmaAllocator_T10FreeMemoryEmPKP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916) %0, i64 noundef %1, ptr noundef %2) #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %3
  br label %18

16:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.270, ptr noundef @.str.2, i32 noundef 15196, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T10FreeMemoryEmPKP15VmaAllocation_T) #4
  unreachable

17:                                               ; No predecessors!
  br label %18

18:                                               ; preds = %17, %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %19 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %19, ptr %7, align 8, !tbaa !9
  br label %20

20:                                               ; preds = %68, %18
  %21 = load i64, ptr %7, align 8, !tbaa !9
  %22 = add i64 %21, -1
  store i64 %22, ptr %7, align 8, !tbaa !9
  %23 = icmp ne i64 %21, 0
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %69

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = load i64, ptr %7, align 8, !tbaa !9
  %28 = getelementptr inbounds ptr, ptr %26, i64 %27
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  store ptr %29, ptr %8, align 8, !tbaa !5
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %68

32:                                               ; preds = %25
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN15VmaAllocation_T8FreeNameEP14VmaAllocator_T(ptr noundef nonnull align 8 dereferenceable(84) %33, ptr noundef %12)
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = call noundef i32 @_ZNK15VmaAllocation_T7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(84) %34)
  switch i32 %35, label %66 [
    i32 1, label %36
    i32 2, label %64
  ]

36:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = call noundef ptr @_ZNK15VmaAllocation_T13GetParentPoolEv(ptr noundef nonnull align 8 dereferenceable(84) %37)
  store ptr %38, ptr %10, align 8, !tbaa !5
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %44

41:                                               ; preds = %36
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.VmaPool_T, ptr %42, i32 0, i32 0
  store ptr %43, ptr %9, align 8, !tbaa !5
  br label %61

44:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = call noundef i32 @_ZNK15VmaAllocation_T18GetMemoryTypeIndexEv(ptr noundef nonnull align 8 dereferenceable(84) %45)
  store i32 %46, ptr %11, align 4, !tbaa !11
  %47 = getelementptr inbounds %struct.VmaAllocator_T, ptr %12, i32 0, i32 21
  %48 = load i32, ptr %11, align 4, !tbaa !11
  %49 = zext i32 %48 to i64
  %50 = getelementptr inbounds [32 x ptr], ptr %47, i64 0, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  store ptr %51, ptr %9, align 8, !tbaa !5
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %55

54:                                               ; preds = %44
  br label %55

55:                                               ; preds = %54, %44
  %56 = phi i1 [ false, %44 ], [ true, %54 ]
  br i1 %56, label %57, label %58

57:                                               ; preds = %55
  br label %60

58:                                               ; preds = %55
  call void @__assert_fail(ptr noundef @.str.272, ptr noundef @.str.2, i32 noundef 15225, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T10FreeMemoryEmPKP15VmaAllocation_T) #4
  unreachable

59:                                               ; No predecessors!
  br label %60

60:                                               ; preds = %59, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %61

61:                                               ; preds = %60, %41
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN14VmaBlockVector4FreeEP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(181) %62, ptr noundef %63)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %67

64:                                               ; preds = %32
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN14VmaAllocator_T19FreeDedicatedMemoryEP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916) %12, ptr noundef %65)
  br label %67

66:                                               ; preds = %32
  call void @__assert_fail(ptr noundef @.str.57, ptr noundef @.str.2, i32 noundef 15234, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T10FreeMemoryEmPKP15VmaAllocation_T) #4
  unreachable

67:                                               ; preds = %64, %61
  br label %68

68:                                               ; preds = %67, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %20, !llvm.loop !13

69:                                               ; preds = %24
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14VmaAllocator_T19FreeDedicatedMemoryEP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916), ptr noundef) #3 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 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 #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 = { noreturn nounwind }
attributes #5 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.270 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__._ZN14VmaAllocator_T10FreeMemoryEmPKP15VmaAllocation_T = external hidden unnamed_addr constant [63 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [61 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK15VmaAllocation_T7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(84)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15VmaAllocation_T8FreeNameEP14VmaAllocator_T(ptr noundef nonnull align 8 dereferenceable(84), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK15VmaAllocation_T13GetParentPoolEv(ptr noundef nonnull align 8 dereferenceable(84)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14VmaBlockVector4FreeEP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(181), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK15VmaAllocation_T18GetMemoryTypeIndexEv(ptr noundef nonnull align 8 dereferenceable(84)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14VmaAllocator_T10FreeMemoryEmPKP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916) %0, i64 noundef %1, ptr noundef readonly %2) local_unnamed_addr #2 align 2 {
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %5, label %.preheader

.preheader:                                       ; preds = %3
  %.not2226 = icmp eq i64 %1, 0
  br i1 %.not2226, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %4 = getelementptr inbounds i8, ptr %0, i64 1552
  br label %6

5:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.270, ptr noundef nonnull @.str.2, i32 noundef 15196, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T10FreeMemoryEmPKP15VmaAllocation_T) #3
  unreachable

._crit_edge:                                      ; preds = %23, %.preheader
  ret void

6:                                                ; preds = %.lr.ph, %23
  %.in = phi i64 [ %1, %.lr.ph ], [ %7, %23 ]
  %7 = add i64 %.in, -1
  %8 = getelementptr inbounds ptr, ptr %2, i64 %7
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %.not23 = icmp eq ptr %9, null
  br i1 %.not23, label %23, label %10

10:                                               ; preds = %6
  tail call void @_ZN15VmaAllocation_T8FreeNameEP14VmaAllocator_T(ptr noundef nonnull align 8 dereferenceable(84) %9, ptr noundef nonnull %0)
  %11 = tail call noundef i32 @_ZNK15VmaAllocation_T7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(84) %9)
  switch i32 %11, label %22 [
    i32 1, label %12
    i32 2, label %21
  ]

12:                                               ; preds = %10
  %13 = tail call noundef ptr @_ZNK15VmaAllocation_T13GetParentPoolEv(ptr noundef nonnull align 8 dereferenceable(84) %9)
  %.not24 = icmp eq ptr %13, null
  br i1 %.not24, label %14, label %20

14:                                               ; preds = %12
  %15 = tail call noundef i32 @_ZNK15VmaAllocation_T18GetMemoryTypeIndexEv(ptr noundef nonnull align 8 dereferenceable(84) %9)
  %16 = zext i32 %15 to i64
  %17 = getelementptr inbounds [32 x ptr], ptr %4, i64 0, i64 %16
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %.not25 = icmp eq ptr %18, null
  br i1 %.not25, label %19, label %20

19:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.272, ptr noundef nonnull @.str.2, i32 noundef 15225, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T10FreeMemoryEmPKP15VmaAllocation_T) #3
  unreachable

20:                                               ; preds = %14, %12
  %.017 = phi ptr [ %13, %12 ], [ %18, %14 ]
  tail call void @_ZN14VmaBlockVector4FreeEP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(181) %.017, ptr noundef nonnull %9)
  br label %23

21:                                               ; preds = %10
  tail call void @_ZN14VmaAllocator_T19FreeDedicatedMemoryEP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef nonnull %9)
  br label %23

22:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.57, ptr noundef nonnull @.str.2, i32 noundef 15234, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T10FreeMemoryEmPKP15VmaAllocation_T) #3
  unreachable

23:                                               ; preds = %20, %21, %6
  %.not22 = icmp eq i64 %7, 0
  br i1 %.not22, label %._crit_edge, label %6, !llvm.loop !9
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14VmaAllocator_T19FreeDedicatedMemoryEP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916), ptr noundef) local_unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { 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 #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 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass