; LLVM IR from Water-Melon/Melon :: src (mln_thread_pool)

; 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.mln_thread_pool_member_s = type { ptr, ptr, i8, ptr, ptr }
%struct.mln_thread_pool_resource_s = type { ptr, ptr }
%struct.mln_thread_pool_s = type { %union.pthread_mutex_t, %union.pthread_cond_t, %union.pthread_attr_t, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i64, i64, ptr, ptr }
%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 }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%union.pthread_attr_t = type { i64, [48 x i8] }

@m_thread_pool_self = external dso_local thread_local global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @mln_thread_pool_resource_add(ptr noundef nonnull %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %10 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @m_thread_pool_self)
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.mln_thread_pool_member_s, ptr %11, i32 0, i32 1
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %13, ptr %5, align 8, !tbaa !5
  %14 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %14, ptr %4, align 8, !tbaa !5
  %15 = icmp eq ptr %14, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %1
  store i32 12, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %117

17:                                               ; preds = %1
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.mln_thread_pool_resource_s, ptr %19, i32 0, i32 0
  store ptr %18, ptr %20, align 8, !tbaa !12
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.mln_thread_pool_resource_s, ptr %21, i32 0, i32 1
  store ptr null, ptr %22, align 8, !tbaa !14
  %23 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @m_thread_pool_self)
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.mln_thread_pool_member_s, ptr %24, i32 0, i32 2
  %26 = load i8, ptr %25, align 8
  %27 = and i8 %26, -3
  %28 = or i8 %27, 2
  store i8 %28, ptr %25, align 8
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.mln_thread_pool_s, ptr %29, i32 0, i32 0
  %31 = call i32 @pthread_mutex_lock(ptr noundef %30) #5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.mln_thread_pool_s, ptr %32, i32 0, i32 3
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %42

36:                                               ; preds = %17
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.mln_thread_pool_s, ptr %38, i32 0, i32 4
  store ptr %37, ptr %39, align 8, !tbaa !18
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.mln_thread_pool_s, ptr %40, i32 0, i32 3
  store ptr %37, ptr %41, align 8, !tbaa !15
  br label %51

42:                                               ; preds = %17
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.mln_thread_pool_s, ptr %44, i32 0, i32 4
  %46 = load ptr, ptr %45, align 8, !tbaa !18
  %47 = getelementptr inbounds %struct.mln_thread_pool_resource_s, ptr %46, i32 0, i32 1
  store ptr %43, ptr %47, align 8, !tbaa !14
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.mln_thread_pool_s, ptr %49, i32 0, i32 4
  store ptr %48, ptr %50, align 8, !tbaa !18
  br label %51

51:                                               ; preds = %42, %36
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.mln_thread_pool_s, ptr %52, i32 0, i32 12
  %54 = load i64, ptr %53, align 8, !tbaa !19
  %55 = add i64 %54, 1
  store i64 %55, ptr %53, align 8, !tbaa !19
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.mln_thread_pool_s, ptr %56, i32 0, i32 8
  %58 = load i32, ptr %57, align 4, !tbaa !20
  %59 = icmp ule i32 %58, 1
  br i1 %59, label %60, label %104

60:                                               ; preds = %51
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.mln_thread_pool_s, ptr %61, i32 0, i32 9
  %63 = load i32, ptr %62, align 8, !tbaa !21
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.mln_thread_pool_s, ptr %64, i32 0, i32 7
  %66 = load i32, ptr %65, align 8, !tbaa !22
  %67 = add i32 %66, 1
  %68 = icmp ult i32 %63, %67
  br i1 %68, label %69, label %104

69:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = call ptr @mln_thread_pool_member_join(ptr noundef %70, i32 noundef 1)
  store ptr %71, ptr %9, align 8, !tbaa !5
  %72 = icmp eq ptr %71, null
  br i1 %72, label %73, label %83

73:                                               ; preds = %69
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.mln_thread_pool_s, ptr %74, i32 0, i32 0
  %76 = call i32 @pthread_mutex_unlock(ptr noundef %75) #5
  %77 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @m_thread_pool_self)
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.mln_thread_pool_member_s, ptr %78, i32 0, i32 2
  %80 = load i8, ptr %79, align 8
  %81 = and i8 %80, -3
  %82 = or i8 %81, 0
  store i8 %82, ptr %79, align 8
  store i32 12, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %101

83:                                               ; preds = %69
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.mln_thread_pool_s, ptr %84, i32 0, i32 2
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = call i32 @pthread_create(ptr noundef %8, ptr noundef %85, ptr noundef @child_thread_launcher, ptr noundef %86) #5
  store i32 %87, ptr %7, align 4, !tbaa !23
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %100

89:                                               ; preds = %83
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.mln_thread_pool_s, ptr %90, i32 0, i32 0
  %92 = call i32 @pthread_mutex_unlock(ptr noundef %91) #5
  %93 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @m_thread_pool_self)
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.mln_thread_pool_member_s, ptr %94, i32 0, i32 2
  %96 = load i8, ptr %95, align 8
  %97 = and i8 %96, -3
  %98 = or i8 %97, 0
  store i8 %98, ptr %95, align 8
  %99 = load i32, ptr %7, align 4, !tbaa !23
  store i32 %99, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %101

100:                                              ; preds = %83
  store i32 0, ptr %6, align 4
  br label %101

101:                                              ; preds = %100, %89, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %102 = load i32, ptr %6, align 4
  switch i32 %102, label %117 [
    i32 0, label %103
  ]

103:                                              ; preds = %101
  br label %104

104:                                              ; preds = %103, %60, %51
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.mln_thread_pool_s, ptr %105, i32 0, i32 1
  %107 = call i32 @pthread_cond_signal(ptr noundef %106) #5
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.mln_thread_pool_s, ptr %108, i32 0, i32 0
  %110 = call i32 @pthread_mutex_unlock(ptr noundef %109) #5
  %111 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @m_thread_pool_self)
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.mln_thread_pool_member_s, ptr %112, i32 0, i32 2
  %114 = load i8, ptr %113, align 8
  %115 = and i8 %114, -3
  %116 = or i8 %115, 0
  store i8 %116, ptr %113, align 8
  store i32 0, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %117

117:                                              ; preds = %104, %101, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %118 = load i32, ptr %2, align 4
  ret i32 %118
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden ptr @mln_thread_pool_member_join(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind
declare i32 @pthread_mutex_unlock(ptr noundef) #4

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden ptr @child_thread_launcher(ptr noundef) #0

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

; Function Attrs: nounwind
declare i32 @pthread_cond_signal(ptr noundef) #4

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind allocsize(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 "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 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"mln_thread_pool_member_s", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 16, !11, i64 16, !11, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"mln_thread_pool_resource_s", !6, i64 0, !6, i64 8}
!14 = !{!13, !6, i64 8}
!15 = !{!16, !6, i64 144}
!16 = !{!"mln_thread_pool_s", !7, i64 0, !7, i64 40, !7, i64 88, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 188, !17, i64 192, !17, i64 200, !6, i64 208, !6, i64 216}
!17 = !{!"long", !7, i64 0}
!18 = !{!16, !6, i64 152}
!19 = !{!16, !17, i64 200}
!20 = !{!16, !11, i64 180}
!21 = !{!16, !11, i64 184}
!22 = !{!16, !11, i64 176}
!23 = !{!11, !11, i64 0}


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

@m_thread_pool_self = external dso_local thread_local local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @mln_thread_pool_resource_add(ptr noundef nonnull %0) local_unnamed_addr #0 {
  %2 = alloca i64, align 8
  %3 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @m_thread_pool_self)
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !9
  %7 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %59, label %9

9:                                                ; preds = %1
  store ptr %0, ptr %7, align 8, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr null, ptr %10, align 8, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %4, i64 16
  %12 = load i8, ptr %11, align 8
  %13 = or i8 %12, 2
  store i8 %13, ptr %11, align 8
  %14 = tail call i32 @pthread_mutex_lock(ptr noundef %6) #6
  %15 = getelementptr inbounds i8, ptr %6, i64 144
  %16 = load ptr, ptr %15, align 8, !tbaa !15
  %17 = icmp eq ptr %16, null
  %18 = getelementptr inbounds i8, ptr %6, i64 152
  br i1 %17, label %22, label %19

19:                                               ; preds = %9
  %20 = load ptr, ptr %18, align 8, !tbaa !18
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  br label %22

22:                                               ; preds = %9, %19
  %.sink31 = phi ptr [ %21, %19 ], [ %18, %9 ]
  %.sink = phi ptr [ %18, %19 ], [ %15, %9 ]
  store ptr %7, ptr %.sink31, align 8, !tbaa !5
  store ptr %7, ptr %.sink, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %6, i64 200
  %24 = load i64, ptr %23, align 8, !tbaa !19
  %25 = add i64 %24, 1
  store i64 %25, ptr %23, align 8, !tbaa !19
  %26 = getelementptr inbounds i8, ptr %6, i64 180
  %27 = load i32, ptr %26, align 4, !tbaa !20
  %28 = icmp ult i32 %27, 2
  br i1 %28, label %29, label %51

29:                                               ; preds = %22
  %30 = getelementptr inbounds i8, ptr %6, i64 184
  %31 = load i32, ptr %30, align 8, !tbaa !21
  %32 = getelementptr inbounds i8, ptr %6, i64 176
  %33 = load i32, ptr %32, align 8, !tbaa !22
  %34 = add i32 %33, 1
  %35 = icmp ult i32 %31, %34
  br i1 %35, label %36, label %51

36:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %37 = tail call ptr @mln_thread_pool_member_join(ptr noundef nonnull %6, i32 noundef 1)
  %38 = icmp eq ptr %37, null
  br i1 %38, label %39, label %41

39:                                               ; preds = %36
  %40 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull %6) #6
  br label %.thread

41:                                               ; preds = %36
  %42 = getelementptr inbounds i8, ptr %6, i64 88
  %43 = call i32 @pthread_create(ptr noundef nonnull %2, ptr noundef nonnull %42, ptr noundef nonnull @child_thread_launcher, ptr noundef nonnull %37) #6
  %.not = icmp eq i32 %43, 0
  br i1 %.not, label %50, label %44

44:                                               ; preds = %41
  %45 = call i32 @pthread_mutex_unlock(ptr noundef nonnull %6) #6
  br label %.thread

.thread:                                          ; preds = %39, %44
  %.0.ph = phi i32 [ %43, %44 ], [ 12, %39 ]
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %48 = load i8, ptr %47, align 8
  %49 = and i8 %48, -3
  store i8 %49, ptr %47, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %59

50:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %51

51:                                               ; preds = %50, %29, %22
  %52 = getelementptr inbounds i8, ptr %6, i64 40
  %53 = call i32 @pthread_cond_signal(ptr noundef nonnull %52) #6
  %54 = call i32 @pthread_mutex_unlock(ptr noundef nonnull %6) #6
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %57 = load i8, ptr %56, align 8
  %58 = and i8 %57, -3
  store i8 %58, ptr %56, align 8
  br label %59

59:                                               ; preds = %.thread, %1, %51
  %.1 = phi i32 [ 0, %51 ], [ 12, %1 ], [ %.0.ph, %.thread ]
  ret i32 %.1
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden ptr @mln_thread_pool_member_join(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind
declare i32 @pthread_mutex_unlock(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden ptr @child_thread_launcher(ptr noundef) #0

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

; Function Attrs: nounwind
declare i32 @pthread_cond_signal(ptr noundef) local_unnamed_addr #4

attributes #0 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 "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 = { nounwind allocsize(0) }
attributes #6 = { 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/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"mln_thread_pool_member_s", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 16, !11, i64 16, !11, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"mln_thread_pool_resource_s", !6, i64 0, !6, i64 8}
!14 = !{!13, !6, i64 8}
!15 = !{!16, !6, i64 144}
!16 = !{!"mln_thread_pool_s", !7, i64 0, !7, i64 40, !7, i64 88, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 188, !17, i64 192, !17, i64 200, !6, i64 208, !6, i64 216}
!17 = !{!"long", !7, i64 0}
!18 = !{!16, !6, i64 152}
!19 = !{!16, !17, i64 200}
!20 = !{!16, !11, i64 180}
!21 = !{!16, !11, i64 184}
!22 = !{!16, !11, i64 176}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass