; LLVM IR from AmplitudeAudio/sdk :: src/Utils/SmMalloc (smmalloc)

; 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.sm::internal::TlsPoolBucket" = type { ptr, ptr, ptr, %"struct.std::array.5", i32, i32, i8 }
%"struct.std::array.5" = type { [7 x i32] }
%"struct.sm::Allocator::PoolBucket" = type <{ %"struct.std::atomic", ptr, ptr, %"struct.std::atomic.1", [36 x i8] }>
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i64 }
%"struct.std::atomic.1" = type { %"struct.std::__atomic_base.2" }
%"struct.std::__atomic_base.2" = type { i32 }
%"struct.sm::CacheWarmupLink" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2sm8internal13TlsPoolBucket4InitEPjjNS_18CacheWarmupOptionsEPNS_9AllocatorEm(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i64 noundef %5) #0 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i8, align 1
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i64 %5, ptr %12, align 8, !tbaa !13
  %24 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = load i64, ptr %12, align 8, !tbaa !13
  %27 = call noundef ptr @_ZN2sm9Allocator16GetBucketByIndexEm(ptr noundef nonnull align 64 dereferenceable(4568) %25, i64 noundef %26)
  store ptr %27, ptr %13, align 8, !tbaa !5
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.sm::internal::TlsPoolBucket", ptr %24, i32 0, i32 1
  store ptr %28, ptr %29, align 8, !tbaa !15
  %30 = getelementptr inbounds %"struct.sm::internal::TlsPoolBucket", ptr %24, i32 0, i32 5
  store i32 0, ptr %30, align 8, !tbaa !18
  %31 = getelementptr inbounds %"struct.sm::internal::TlsPoolBucket", ptr %24, i32 0, i32 6
  store i8 0, ptr %31, align 4, !tbaa !19
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = sub i32 %32, 7
  %34 = getelementptr inbounds %"struct.sm::internal::TlsPoolBucket", ptr %24, i32 0, i32 4
  store i32 %33, ptr %34, align 4, !tbaa !20
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.sm::internal::TlsPoolBucket", ptr %24, i32 0, i32 2
  store ptr %35, ptr %36, align 8, !tbaa !21
  %37 = getelementptr inbounds %"struct.sm::internal::TlsPoolBucket", ptr %24, i32 0, i32 2
  %38 = load ptr, ptr %37, align 8, !tbaa !21
  %39 = getelementptr inbounds %"struct.sm::Allocator::PoolBucket", ptr %38, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !22
  %41 = getelementptr inbounds %"struct.sm::internal::TlsPoolBucket", ptr %24, i32 0, i32 0
  store ptr %40, ptr %41, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %42 = load i64, ptr %12, align 8, !tbaa !13
  %43 = call noundef i64 @_ZN2sm27GetBucketSizeInBytesByIndexEm(i64 noundef %42)
  store i64 %43, ptr %14, align 8, !tbaa !13
  %44 = load i32, ptr %10, align 4, !tbaa !11
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %6
  store i32 1, ptr %15, align 4
  br label %109

47:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %48 = load i32, ptr %10, align 4, !tbaa !11
  %49 = icmp eq i32 %48, 1
  br i1 %49, label %50, label %54

50:                                               ; preds = %47
  %51 = getelementptr inbounds %"struct.sm::internal::TlsPoolBucket", ptr %24, i32 0, i32 4
  %52 = load i32, ptr %51, align 4, !tbaa !20
  %53 = udiv i32 %52, 2
  br label %57

54:                                               ; preds = %47
  %55 = getelementptr inbounds %"struct.sm::internal::TlsPoolBucket", ptr %24, i32 0, i32 4
  %56 = load i32, ptr %55, align 4, !tbaa !20
  br label %57

57:                                               ; preds = %54, %50
  %58 = phi i32 [ %53, %50 ], [ %56, %54 ]
  store i32 %58, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store ptr null, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %59

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

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

64:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = load i64, ptr %14, align 8, !tbaa !13
  %67 = call noundef ptr @_ZN2sm9Allocator8AllocateILb0EEEPvmm(ptr noundef nonnull align 64 dereferenceable(4568) %65, i64 noundef %66, i64 noundef 4)
  store ptr %67, ptr %19, align 8, !tbaa !5
  %68 = load ptr, ptr %19, align 8, !tbaa !5
  %69 = icmp eq ptr %68, null
  br i1 %69, label %70, label %71

70:                                               ; preds = %64
  store i32 2, ptr %15, align 4
  br label %87

71:                                               ; preds = %64
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = load ptr, ptr %19, align 8, !tbaa !5
  %74 = call noundef i32 @_ZN2sm9Allocator14GetBucketIndexEPv(ptr noundef nonnull align 64 dereferenceable(4568) %72, ptr noundef %73)
  %75 = load i64, ptr %12, align 8, !tbaa !13
  %76 = trunc i64 %75 to i32
  %77 = icmp ne i32 %74, %76
  br i1 %77, label %78, label %81

78:                                               ; preds = %71
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN2sm9Allocator4FreeEPv(ptr noundef nonnull align 64 dereferenceable(4568) %79, ptr noundef %80)
  store i32 2, ptr %15, align 4
  br label %87

81:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %82 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %82, ptr %20, align 8, !tbaa !5
  %83 = load ptr, ptr %17, align 8, !tbaa !5
  %84 = load ptr, ptr %20, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.sm::CacheWarmupLink", ptr %84, i32 0, i32 0
  store ptr %83, ptr %85, align 8, !tbaa !29
  %86 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %86, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  store i32 0, ptr %15, align 4
  br label %87

87:                                               ; preds = %81, %78, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  %88 = load i32, ptr %15, align 4
  switch i32 %88, label %93 [
    i32 0, label %89
  ]

89:                                               ; preds = %87
  br label %90

90:                                               ; preds = %89
  %91 = load i32, ptr %18, align 4, !tbaa !9
  %92 = add i32 %91, 1
  store i32 %92, ptr %18, align 4, !tbaa !9
  br label %59, !llvm.loop !31

93:                                               ; preds = %87, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %94

94:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %95 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %95, ptr %21, align 8, !tbaa !5
  br label %96

96:                                               ; preds = %99, %94
  %97 = load ptr, ptr %21, align 8, !tbaa !5
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %108

99:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %100 = load ptr, ptr %21, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.sm::CacheWarmupLink", ptr %100, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8, !tbaa !29
  store ptr %102, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #4
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = load ptr, ptr %21, align 8, !tbaa !5
  %105 = call noundef zeroext i1 @_ZN2sm9Allocator14ReleaseToCacheILb0EEEbPNS_8internal13TlsPoolBucketEPv(ptr noundef nonnull align 64 dereferenceable(4568) %103, ptr noundef %24, ptr noundef %104)
  %106 = zext i1 %105 to i8
  store i8 %106, ptr %23, align 1, !tbaa !33
  %107 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %107, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %96, !llvm.loop !35

108:                                              ; preds = %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  store i32 0, ptr %15, align 4
  br label %109

109:                                              ; preds = %108, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  %110 = load i32, ptr %15, align 4
  switch i32 %110, label %112 [
    i32 0, label %111
    i32 1, label %111
  ]

111:                                              ; preds = %109, %109
  ret void

112:                                              ; preds = %109
  unreachable
}

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN2sm9Allocator16GetBucketByIndexEm(ptr noundef nonnull align 64 dereferenceable(4568), i64 noundef) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN2sm27GetBucketSizeInBytesByIndexEm(i64 noundef) #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN2sm9Allocator8AllocateILb0EEEPvmm(ptr noundef nonnull align 64 dereferenceable(4568), i64 noundef, i64 noundef) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef i32 @_ZN2sm9Allocator14GetBucketIndexEPv(ptr noundef nonnull align 64 dereferenceable(4568), ptr noundef) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN2sm9Allocator4FreeEPv(ptr noundef nonnull align 64 dereferenceable(4568), ptr noundef) #3 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2sm9Allocator14ReleaseToCacheILb0EEEbPNS_8internal13TlsPoolBucketEPv(ptr noundef nonnull align 64 dereferenceable(4568), ptr noalias noundef, ptr noundef) #3 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline 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 = { alwaysinline 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 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN2sm18CacheWarmupOptionsE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !6, i64 8}
!16 = !{!"_ZTSN2sm8internal13TlsPoolBucketE", !6, i64 0, !6, i64 8, !6, i64 16, !17, i64 24, !10, i64 52, !10, i64 56, !7, i64 60}
!17 = !{!"_ZTSSt5arrayIjLm7EE", !7, i64 0}
!18 = !{!16, !10, i64 56}
!19 = !{!16, !7, i64 60}
!20 = !{!16, !10, i64 52}
!21 = !{!16, !6, i64 16}
!22 = !{!23, !6, i64 8}
!23 = !{!"_ZTSN2sm9Allocator10PoolBucketE", !24, i64 0, !6, i64 8, !6, i64 16, !26, i64 24}
!24 = !{!"_ZTSSt6atomicImE", !25, i64 0}
!25 = !{!"_ZTSSt13__atomic_baseImE", !14, i64 0}
!26 = !{!"_ZTSSt6atomicIjE", !27, i64 0}
!27 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!28 = !{!16, !6, i64 0}
!29 = !{!30, !6, i64 0}
!30 = !{!"_ZTSN2sm15CacheWarmupLinkE", !6, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!34, !34, i64 0}
!34 = !{!"bool", !7, i64 0}
!35 = distinct !{!35, !32}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2sm8internal13TlsPoolBucket4InitEPjjNS_18CacheWarmupOptionsEPNS_9AllocatorEm(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull %4, i64 noundef %5) local_unnamed_addr #0 align 2 {
  %7 = tail call noundef ptr @_ZN2sm9Allocator16GetBucketByIndexEm(ptr noundef nonnull align 64 dereferenceable(4568) %4, i64 noundef %5)
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %1, ptr %8, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 0, ptr %9, align 8, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %0, i64 60
  store i8 0, ptr %10, align 4, !tbaa !13
  %11 = add i32 %2, -7
  %12 = getelementptr inbounds i8, ptr %0, i64 52
  store i32 %11, ptr %12, align 4, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %7, ptr %13, align 8, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %7, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !16
  store ptr %15, ptr %0, align 8, !tbaa !23
  %16 = tail call noundef i64 @_ZN2sm27GetBucketSizeInBytesByIndexEm(i64 noundef %5)
  switch i32 %3, label %20 [
    i32 0, label %.loopexit
    i32 1, label %17
  ]

17:                                               ; preds = %6
  %18 = load i32, ptr %12, align 4, !tbaa !14
  %19 = lshr i32 %18, 1
  br label %22

20:                                               ; preds = %6
  %21 = load i32, ptr %12, align 4, !tbaa !14
  br label %22

22:                                               ; preds = %20, %17
  %23 = phi i32 [ %19, %17 ], [ %21, %20 ]
  %.not47 = icmp eq i32 %23, 0
  br i1 %.not47, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %22
  %24 = trunc i64 %5 to i32
  br label %25

25:                                               ; preds = %.lr.ph, %31
  %.03041 = phi ptr [ null, %.lr.ph ], [ %26, %31 ]
  %.03240 = phi i32 [ 0, %.lr.ph ], [ %32, %31 ]
  %26 = tail call noundef ptr @_ZN2sm9Allocator8AllocateILb0EEEPvmm(ptr noundef nonnull align 64 dereferenceable(4568) %4, i64 noundef %16, i64 noundef 4)
  %27 = icmp eq ptr %26, null
  br i1 %27, label %.thread, label %28

28:                                               ; preds = %25
  %29 = tail call noundef i32 @_ZN2sm9Allocator14GetBucketIndexEPv(ptr noundef nonnull align 64 dereferenceable(4568) %4, ptr noundef nonnull %26)
  %.not = icmp eq i32 %29, %24
  br i1 %.not, label %31, label %30

30:                                               ; preds = %28
  tail call void @_ZN2sm9Allocator4FreeEPv(ptr noundef nonnull align 64 dereferenceable(4568) %4, ptr noundef nonnull %26)
  br label %.thread

31:                                               ; preds = %28
  store ptr %.03041, ptr %26, align 8, !tbaa !24
  %32 = add nuw i32 %.03240, 1
  %exitcond.not = icmp eq i32 %32, %23
  br i1 %exitcond.not, label %.lr.ph46.preheader, label %25, !llvm.loop !26

.thread:                                          ; preds = %25, %30
  %.not3544 = icmp eq ptr %.03041, null
  br i1 %.not3544, label %.loopexit, label %.lr.ph46.preheader

.lr.ph46.preheader:                               ; preds = %31, %.thread
  %.03145.ph = phi ptr [ %.03041, %.thread ], [ %26, %31 ]
  br label %.lr.ph46

.lr.ph46:                                         ; preds = %.lr.ph46.preheader, %.lr.ph46
  %.03145 = phi ptr [ %33, %.lr.ph46 ], [ %.03145.ph, %.lr.ph46.preheader ]
  %33 = load ptr, ptr %.03145, align 8, !tbaa !24
  %34 = tail call noundef zeroext i1 @_ZN2sm9Allocator14ReleaseToCacheILb0EEEbPNS_8internal13TlsPoolBucketEPv(ptr noundef nonnull align 64 dereferenceable(4568) %4, ptr noundef nonnull %0, ptr noundef nonnull %.03145)
  %.not35 = icmp eq ptr %33, null
  br i1 %.not35, label %.loopexit, label %.lr.ph46, !llvm.loop !28

.loopexit:                                        ; preds = %.lr.ph46, %22, %.thread, %6
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN2sm9Allocator16GetBucketByIndexEm(ptr noundef nonnull align 64 dereferenceable(4568), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN2sm27GetBucketSizeInBytesByIndexEm(i64 noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN2sm9Allocator8AllocateILb0EEEPvmm(ptr noundef nonnull align 64 dereferenceable(4568), i64 noundef, i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef i32 @_ZN2sm9Allocator14GetBucketIndexEPv(ptr noundef nonnull align 64 dereferenceable(4568), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN2sm9Allocator4FreeEPv(ptr noundef nonnull align 64 dereferenceable(4568), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2sm9Allocator14ReleaseToCacheILb0EEEbPNS_8internal13TlsPoolBucketEPv(ptr noundef nonnull align 64 dereferenceable(4568), ptr noalias noundef, ptr noundef) local_unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { alwaysinline 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 = { alwaysinline 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" }

!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, !7, i64 8}
!6 = !{!"_ZTSN2sm8internal13TlsPoolBucketE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !11, i64 52, !11, i64 56, !8, i64 60}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt5arrayIjLm7EE", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !11, i64 56}
!13 = !{!6, !8, i64 60}
!14 = !{!6, !11, i64 52}
!15 = !{!6, !7, i64 16}
!16 = !{!17, !7, i64 8}
!17 = !{!"_ZTSN2sm9Allocator10PoolBucketE", !18, i64 0, !7, i64 8, !7, i64 16, !21, i64 24}
!18 = !{!"_ZTSSt6atomicImE", !19, i64 0}
!19 = !{!"_ZTSSt13__atomic_baseImE", !20, i64 0}
!20 = !{!"long", !8, i64 0}
!21 = !{!"_ZTSSt6atomicIjE", !22, i64 0}
!22 = !{!"_ZTSSt13__atomic_baseIjE", !11, i64 0}
!23 = !{!6, !7, i64 0}
!24 = !{!25, !7, i64 0}
!25 = !{!"_ZTSN2sm15CacheWarmupLinkE", !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}


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