; LLVM IR from pupnp/pupnp :: upnp/src/threadutil (ThreadPool)

; 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.THREADPOOLJOB = type { ptr, ptr, ptr, %struct.timeval, i32, i32 }
%struct.timeval = type { i64, i64 }
%struct.THREADPOOL = type { %union.pthread_mutex_t, %union.pthread_cond_t, %union.pthread_cond_t, i32, i32, i32, i32, i32, i32, %struct.FREELIST, %struct.LINKEDLIST, %struct.LINKEDLIST, %struct.LINKEDLIST, ptr, %struct.THREADPOOLATTR, %struct.TPOOLSTATS }
%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 }
%struct.FREELIST = type { ptr, i64, i32, i32 }
%struct.LINKEDLIST = type { %struct.LISTNODE, %struct.LISTNODE, i64, %struct.FREELIST, ptr, ptr }
%struct.LISTNODE = type { ptr, ptr, ptr }
%struct.THREADPOOLATTR = type { i32, i32, i64, i32, i32, i32, i32, i32 }
%struct.TPOOLSTATS = type { double, i32, double, double, i32, double, double, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32 }

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: nounwind uwtable
declare hidden void @FreeThreadPoolJob(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @ThreadPoolRemove(ptr noundef %0, i32 noundef %1, ptr noundef %2) #3 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %struct.THREADPOOLJOB, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 536870912, ptr %8, align 4, !tbaa !9
  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
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #5
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %16, label %15

15:                                               ; preds = %3
  store i32 22, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %109

16:                                               ; preds = %3
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  store ptr %11, ptr %7, align 8, !tbaa !5
  br label %20

20:                                               ; preds = %19, %16
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = getelementptr inbounds %struct.THREADPOOLJOB, ptr %11, i32 0, i32 5
  store i32 %21, ptr %22, align 4, !tbaa !11
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.THREADPOOL, ptr %23, i32 0, i32 0
  %25 = call i32 @pthread_mutex_lock(ptr noundef %24) #5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.THREADPOOL, ptr %26, i32 0, i32 12
  %28 = call ptr @ListFind(ptr noundef %27, ptr noundef null, ptr noundef %11)
  store ptr %28, ptr %10, align 8, !tbaa !5
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %43

31:                                               ; preds = %20
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.LISTNODE, ptr %32, i32 0, i32 2
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  store ptr %34, ptr %9, align 8, !tbaa !5
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %36, i64 48, i1 false), !tbaa.struct !17
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.THREADPOOL, ptr %37, i32 0, i32 12
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = call ptr @ListDelNode(ptr noundef %38, ptr noundef %39, i32 noundef 0)
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  call void @FreeThreadPoolJob(ptr noundef %41, ptr noundef %42)
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %104

43:                                               ; preds = %20
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.THREADPOOL, ptr %44, i32 0, i32 11
  %46 = call ptr @ListFind(ptr noundef %45, ptr noundef null, ptr noundef %11)
  store ptr %46, ptr %10, align 8, !tbaa !5
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %61

49:                                               ; preds = %43
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.LISTNODE, ptr %50, i32 0, i32 2
  %52 = load ptr, ptr %51, align 8, !tbaa !15
  store ptr %52, ptr %9, align 8, !tbaa !5
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %53, ptr align 8 %54, i64 48, i1 false), !tbaa.struct !17
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.THREADPOOL, ptr %55, i32 0, i32 11
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = call ptr @ListDelNode(ptr noundef %56, ptr noundef %57, i32 noundef 0)
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  call void @FreeThreadPoolJob(ptr noundef %59, ptr noundef %60)
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %104

61:                                               ; preds = %43
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.THREADPOOL, ptr %62, i32 0, i32 10
  %64 = call ptr @ListFind(ptr noundef %63, ptr noundef null, ptr noundef %11)
  store ptr %64, ptr %10, align 8, !tbaa !5
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %79

67:                                               ; preds = %61
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.LISTNODE, ptr %68, i32 0, i32 2
  %70 = load ptr, ptr %69, align 8, !tbaa !15
  store ptr %70, ptr %9, align 8, !tbaa !5
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %71, ptr align 8 %72, i64 48, i1 false), !tbaa.struct !17
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.THREADPOOL, ptr %73, i32 0, i32 10
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = call ptr @ListDelNode(ptr noundef %74, ptr noundef %75, i32 noundef 0)
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  call void @FreeThreadPoolJob(ptr noundef %77, ptr noundef %78)
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %104

79:                                               ; preds = %61
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.THREADPOOL, ptr %80, i32 0, i32 13
  %82 = load ptr, ptr %81, align 8, !tbaa !19
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %103

84:                                               ; preds = %79
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.THREADPOOL, ptr %85, i32 0, i32 13
  %87 = load ptr, ptr %86, align 8, !tbaa !19
  %88 = getelementptr inbounds %struct.THREADPOOLJOB, ptr %87, i32 0, i32 5
  %89 = load i32, ptr %88, align 4, !tbaa !11
  %90 = load i32, ptr %6, align 4, !tbaa !9
  %91 = icmp eq i32 %89, %90
  br i1 %91, label %92, label %103

92:                                               ; preds = %84
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.THREADPOOL, ptr %94, i32 0, i32 13
  %96 = load ptr, ptr %95, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %93, ptr align 8 %96, i64 48, i1 false), !tbaa.struct !17
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.THREADPOOL, ptr %98, i32 0, i32 13
  %100 = load ptr, ptr %99, align 8, !tbaa !19
  call void @FreeThreadPoolJob(ptr noundef %97, ptr noundef %100)
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.THREADPOOL, ptr %101, i32 0, i32 13
  store ptr null, ptr %102, align 8, !tbaa !19
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %104

103:                                              ; preds = %84, %79
  br label %104

104:                                              ; preds = %103, %92, %67, %49, %31
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.THREADPOOL, ptr %105, i32 0, i32 0
  %107 = call i32 @pthread_mutex_unlock(ptr noundef %106) #5
  %108 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %108, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %109

109:                                              ; preds = %104, %15
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %110 = load i32, ptr %4, align 4
  ret i32 %110
}

declare ptr @ListFind(ptr noundef, ptr noundef, ptr noundef) #4

declare ptr @ListDelNode(ptr noundef, ptr noundef, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 }

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 44}
!12 = !{!"THREADPOOLJOB", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !10, i64 40, !10, i64 44}
!13 = !{!"timeval", !14, i64 0, !14, i64 8}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !6, i64 16}
!16 = !{!"LISTNODE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !18, i64 32, i64 8, !18, i64 40, i64 4, !9, i64 44, i64 4, !9}
!18 = !{!14, !14, i64 0}
!19 = !{!20, !6, i64 472}
!20 = !{!"THREADPOOL", !7, i64 0, !7, i64 40, !7, i64 88, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !21, i64 160, !22, i64 184, !22, i64 280, !22, i64 376, !6, i64 472, !23, i64 480, !24, i64 520}
!21 = !{!"FREELIST", !6, i64 0, !14, i64 8, !10, i64 16, !10, i64 20}
!22 = !{!"LINKEDLIST", !16, i64 0, !16, i64 24, !14, i64 48, !21, i64 56, !6, i64 80, !6, i64 88}
!23 = !{!"THREADPOOLATTR", !10, i64 0, !10, i64 4, !14, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!24 = !{!"TPOOLSTATS", !25, i64 0, !10, i64 8, !25, i64 16, !25, i64 24, !10, i64 32, !25, i64 40, !25, i64 48, !10, i64 56, !25, i64 64, !25, i64 72, !25, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116}
!25 = !{!"double", !7, 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"

%struct.THREADPOOLJOB = type { ptr, ptr, ptr, %struct.timeval, i32, i32 }
%struct.timeval = type { i64, i64 }

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: nounwind uwtable
declare hidden void @FreeThreadPoolJob(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 536870913) i32 @ThreadPoolRemove(ptr noundef %0, i32 noundef %1, ptr noundef writeonly %2) local_unnamed_addr #3 {
  %4 = alloca %struct.THREADPOOLJOB, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #5
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %39, label %5

5:                                                ; preds = %3
  %.not47 = icmp eq ptr %2, null
  %spec.store.select = select i1 %.not47, ptr %4, ptr %2
  %6 = getelementptr inbounds i8, ptr %4, i64 44
  store i32 %1, ptr %6, align 4, !tbaa !5
  %7 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull %0) #5
  %8 = getelementptr inbounds i8, ptr %0, i64 376
  %9 = call ptr @ListFind(ptr noundef nonnull %8, ptr noundef null, ptr noundef nonnull %4) #5
  %.not48 = icmp eq ptr %9, null
  br i1 %.not48, label %14, label %10

10:                                               ; preds = %5
  %11 = getelementptr inbounds i8, ptr %9, i64 16
  %12 = load ptr, ptr %11, align 8, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %spec.store.select, ptr noundef nonnull align 8 dereferenceable(48) %12, i64 48, i1 false), !tbaa.struct !15
  %13 = call ptr @ListDelNode(ptr noundef nonnull %8, ptr noundef nonnull %9, i32 noundef 0) #5
  call void @FreeThreadPoolJob(ptr noundef nonnull %0, ptr noundef %12)
  br label %37

14:                                               ; preds = %5
  %15 = getelementptr inbounds i8, ptr %0, i64 280
  %16 = call ptr @ListFind(ptr noundef nonnull %15, ptr noundef null, ptr noundef nonnull %4) #5
  %.not49 = icmp eq ptr %16, null
  br i1 %.not49, label %21, label %17

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %16, i64 16
  %19 = load ptr, ptr %18, align 8, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %spec.store.select, ptr noundef nonnull align 8 dereferenceable(48) %19, i64 48, i1 false), !tbaa.struct !15
  %20 = call ptr @ListDelNode(ptr noundef nonnull %15, ptr noundef nonnull %16, i32 noundef 0) #5
  call void @FreeThreadPoolJob(ptr noundef nonnull %0, ptr noundef %19)
  br label %37

21:                                               ; preds = %14
  %22 = getelementptr inbounds i8, ptr %0, i64 184
  %23 = call ptr @ListFind(ptr noundef nonnull %22, ptr noundef null, ptr noundef nonnull %4) #5
  %.not50 = icmp eq ptr %23, null
  br i1 %.not50, label %28, label %24

24:                                               ; preds = %21
  %25 = getelementptr inbounds i8, ptr %23, i64 16
  %26 = load ptr, ptr %25, align 8, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %spec.store.select, ptr noundef nonnull align 8 dereferenceable(48) %26, i64 48, i1 false), !tbaa.struct !15
  %27 = call ptr @ListDelNode(ptr noundef nonnull %22, ptr noundef nonnull %23, i32 noundef 0) #5
  call void @FreeThreadPoolJob(ptr noundef nonnull %0, ptr noundef %26)
  br label %37

28:                                               ; preds = %21
  %29 = getelementptr inbounds i8, ptr %0, i64 472
  %30 = load ptr, ptr %29, align 8, !tbaa !19
  %.not51 = icmp eq ptr %30, null
  br i1 %.not51, label %37, label %31

31:                                               ; preds = %28
  %32 = getelementptr inbounds i8, ptr %30, i64 44
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = icmp eq i32 %33, %1
  br i1 %34, label %35, label %37

35:                                               ; preds = %31
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %spec.store.select, ptr noundef nonnull align 8 dereferenceable(48) %30, i64 48, i1 false), !tbaa.struct !15
  %36 = load ptr, ptr %29, align 8, !tbaa !19
  call void @FreeThreadPoolJob(ptr noundef nonnull %0, ptr noundef %36)
  store ptr null, ptr %29, align 8, !tbaa !19
  br label %37

37:                                               ; preds = %28, %31, %35, %24, %17, %10
  %.0 = phi i32 [ 0, %10 ], [ 0, %17 ], [ 0, %24 ], [ 0, %35 ], [ 536870912, %31 ], [ 536870912, %28 ]
  %38 = call i32 @pthread_mutex_unlock(ptr noundef nonnull %0) #5
  br label %39

39:                                               ; preds = %3, %37
  %.041 = phi i32 [ %.0, %37 ], [ 22, %3 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  ret i32 %.041
}

declare ptr @ListFind(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @ListDelNode(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 }

!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, !12, i64 44}
!6 = !{!"THREADPOOLJOB", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !12, i64 40, !12, i64 44}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"timeval", !11, i64 0, !11, i64 8}
!11 = !{!"long", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !7, i64 16}
!14 = !{!"LISTNODE", !7, i64 0, !7, i64 8, !7, i64 16}
!15 = !{i64 0, i64 8, !16, i64 8, i64 8, !16, i64 16, i64 8, !16, i64 24, i64 8, !17, i64 32, i64 8, !17, i64 40, i64 4, !18, i64 44, i64 4, !18}
!16 = !{!7, !7, i64 0}
!17 = !{!11, !11, i64 0}
!18 = !{!12, !12, i64 0}
!19 = !{!20, !7, i64 472}
!20 = !{!"THREADPOOL", !8, i64 0, !8, i64 40, !8, i64 88, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !12, i64 152, !12, i64 156, !21, i64 160, !22, i64 184, !22, i64 280, !22, i64 376, !7, i64 472, !23, i64 480, !24, i64 520}
!21 = !{!"FREELIST", !7, i64 0, !11, i64 8, !12, i64 16, !12, i64 20}
!22 = !{!"LINKEDLIST", !14, i64 0, !14, i64 24, !11, i64 48, !21, i64 56, !7, i64 80, !7, i64 88}
!23 = !{!"THREADPOOLATTR", !12, i64 0, !12, i64 4, !11, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}
!24 = !{!"TPOOLSTATS", !25, i64 0, !12, i64 8, !25, i64 16, !25, i64 24, !12, i64 32, !25, i64 40, !25, i64 48, !12, i64 56, !25, i64 64, !25, i64 72, !25, i64 80, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116}
!25 = !{!"double", !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass