; LLVM IR from zig-gamedev/zphysics :: libs/Jolt/AABBTree (AABBTreeBuilder)

; 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.JPH::AssertLastParam" = type { i8 }
%"class.JPH::AABBTreeBuilder::Node" = type <{ %"class.JPH::AABox", %"class.JPH::Array", [2 x ptr], [8 x i8] }>
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Array" = type { i64, i64, ptr }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [93 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH15AABBTreeBuilder4Node11HasChildrenEv(ptr noundef nonnull align 16 dereferenceable(72)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH15AABBTreeBuilder4Node12GetNChildrenEjRNS_5ArrayIPKS1_NS_12STLAllocatorIS4_EEEE(ptr noundef nonnull align 16 dereferenceable(72) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.JPH::AssertLastParam", align 1
  %8 = alloca i64, align 8
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8
  br label %13

13:                                               ; preds = %3
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = call noundef zeroext i1 @_ZNK3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  br i1 %15, label %19, label %16

16:                                               ; preds = %13
  %17 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 90)
  br i1 %17, label %18, label %19

18:                                               ; preds = %16
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #4, !srcloc !11
  br label %19

19:                                               ; preds = %18, %16, %13
  br label %20

20:                                               ; preds = %19
  %21 = call noundef zeroext i1 @_ZNK3JPH15AABBTreeBuilder4Node11HasChildrenEv(ptr noundef nonnull align 16 dereferenceable(72) %12)
  br i1 %21, label %23, label %22

22:                                               ; preds = %20
  br label %74

23:                                               ; preds = %20
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %"class.JPH::AABBTreeBuilder::Node", ptr %12, i32 0, i32 2
  %26 = getelementptr inbounds [2 x ptr], ptr %25, i64 0, i64 0
  call void @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.JPH::AABBTreeBuilder::Node", ptr %12, i32 0, i32 2
  %29 = getelementptr inbounds [2 x ptr], ptr %28, i64 0, i64 1
  call void @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(8) %29)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store i64 0, ptr %8, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  store i8 1, ptr %9, align 1, !tbaa !14
  br label %30

30:                                               ; preds = %70, %23
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = call noundef i64 @_ZNK3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31)
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = icmp ult i64 %32, %34
  br i1 %35, label %36, label %71

36:                                               ; preds = %30
  %37 = load i64, ptr %8, align 8, !tbaa !12
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = call noundef i64 @_ZNK3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %38)
  %40 = icmp uge i64 %37, %39
  br i1 %40, label %41, label %46

41:                                               ; preds = %36
  %42 = load i8, ptr %9, align 1, !tbaa !14, !range !16, !noundef !17
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %45

44:                                               ; preds = %41
  store i32 1, ptr %10, align 4
  br label %72

45:                                               ; preds = %41
  store i64 0, ptr %8, align 8, !tbaa !12
  store i8 1, ptr %9, align 1, !tbaa !14
  br label %46

46:                                               ; preds = %45, %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = load i64, ptr %8, align 8, !tbaa !12
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %48)
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  store ptr %50, ptr %11, align 8, !tbaa !5
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = call noundef zeroext i1 @_ZNK3JPH15AABBTreeBuilder4Node11HasChildrenEv(ptr noundef nonnull align 16 dereferenceable(72) %51)
  br i1 %52, label %53, label %67

53:                                               ; preds = %46
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = call noundef ptr @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %55)
  %57 = load i64, ptr %8, align 8, !tbaa !12
  %58 = getelementptr inbounds ptr, ptr %56, i64 %57
  call void @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE5eraseEPKS4_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef %58)
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.JPH::AABBTreeBuilder::Node", ptr %60, i32 0, i32 2
  %62 = getelementptr inbounds [2 x ptr], ptr %61, i64 0, i64 0
  call void @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 8 dereferenceable(8) %62)
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.JPH::AABBTreeBuilder::Node", ptr %64, i32 0, i32 2
  %66 = getelementptr inbounds [2 x ptr], ptr %65, i64 0, i64 1
  call void @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 8 dereferenceable(8) %66)
  store i8 0, ptr %9, align 1, !tbaa !14
  br label %70

67:                                               ; preds = %46
  %68 = load i64, ptr %8, align 8, !tbaa !12
  %69 = add i64 %68, 1
  store i64 %69, ptr %8, align 8, !tbaa !12
  br label %70

70:                                               ; preds = %67, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %30, !llvm.loop !18

71:                                               ; preds = %30
  store i32 0, ptr %10, align 4
  br label %72

72:                                               ; preds = %71, %44
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %73 = load i32, ptr %10, align 4
  switch i32 %73, label %75 [
    i32 0, label %74
    i32 1, label %74
  ]

74:                                               ; preds = %72, %72, %22
  ret void

75:                                               ; preds = %72
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #4 = { 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 = !{i64 2156862752}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !19}
!19 = !{!"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 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH15AABBTreeBuilder4Node11HasChildrenEv(ptr noundef nonnull align 16 dereferenceable(72)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH15AABBTreeBuilder4Node12GetNChildrenEjRNS_5ArrayIPKS1_NS_12STLAllocatorIS4_EEEE(ptr noundef nonnull align 16 dereferenceable(72) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #1 align 2 {
  %4 = tail call noundef zeroext i1 @_ZNK3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  br i1 %4, label %8, label %5

5:                                                ; preds = %3
  %6 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 90)
  br i1 %6, label %7, label %8

7:                                                ; preds = %5
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #3, !srcloc !5
  br label %8

8:                                                ; preds = %3, %5, %7
  %9 = tail call noundef zeroext i1 @_ZNK3JPH15AABBTreeBuilder4Node11HasChildrenEv(ptr noundef nonnull align 16 dereferenceable(72) %0)
  br i1 %9, label %10, label %.loopexit

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %12 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %13 = tail call noundef i64 @_ZNK3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %14 = zext i32 %1 to i64
  %15 = icmp ult i64 %13, %14
  br i1 %15, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %10, %28
  %.023 = phi i64 [ %.2, %28 ], [ 0, %10 ]
  %.01922 = phi i1 [ %.221, %28 ], [ true, %10 ]
  %16 = tail call noundef i64 @_ZNK3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %.not = icmp uge i64 %.023, %16
  %brmerge.not = select i1 %.not, i1 %.01922, i1 false
  %.019.mux = select i1 %.not, i1 true, i1 %.01922
  %.0.mux = select i1 %.not, i64 0, i64 %.023
  br i1 %brmerge.not, label %.loopexit, label %17

17:                                               ; preds = %.lr.ph
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.0.mux)
  %19 = load ptr, ptr %18, align 8, !tbaa !6
  %20 = tail call noundef zeroext i1 @_ZNK3JPH15AABBTreeBuilder4Node11HasChildrenEv(ptr noundef nonnull align 16 dereferenceable(72) %19)
  br i1 %20, label %21, label %26

21:                                               ; preds = %17
  %22 = tail call noundef ptr @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %23 = getelementptr inbounds ptr, ptr %22, i64 %.0.mux
  tail call void @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE5eraseEPKS4_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %23)
  %24 = getelementptr inbounds i8, ptr %19, i64 56
  tail call void @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %25 = getelementptr inbounds i8, ptr %19, i64 64
  tail call void @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %25)
  br label %28

26:                                               ; preds = %17
  %27 = add nuw i64 %.0.mux, 1
  br label %28

28:                                               ; preds = %26, %21
  %.221 = phi i1 [ false, %21 ], [ %.019.mux, %26 ]
  %.2 = phi i64 [ %.0.mux, %21 ], [ %27, %26 ]
  %29 = tail call noundef i64 @_ZNK3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %30 = icmp ult i64 %29, %14
  br i1 %30, label %.lr.ph, label %.loopexit, !llvm.loop !10

.loopexit:                                        ; preds = %28, %.lr.ph, %10, %8
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayIPKNS_15AABBTreeBuilder4NodeENS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { 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 = !{i64 2156862752}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass