; 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.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 }
%struct.THREADPOOLJOB = type { ptr, ptr, ptr, %struct.timeval, i32, i32 }
%struct.timeval = type { i64, i64 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [42 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: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) #1

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

; 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 ptr @CreateThreadPoolJob(ptr noundef, i32 noundef, ptr noundef) #2

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

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

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

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

19:                                               ; preds = %15
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.THREADPOOL, ptr %20, i32 0, i32 0
  %22 = call i32 @pthread_mutex_lock(ptr noundef %21) #4
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.THREADPOOL, ptr %23, i32 0, i32 12
  %25 = getelementptr inbounds %struct.LINKEDLIST, ptr %24, i32 0, i32 2
  %26 = load i64, ptr %25, align 8, !tbaa !11
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.THREADPOOL, ptr %27, i32 0, i32 10
  %29 = getelementptr inbounds %struct.LINKEDLIST, ptr %28, i32 0, i32 2
  %30 = load i64, ptr %29, align 8, !tbaa !20
  %31 = add nsw i64 %26, %30
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.THREADPOOL, ptr %32, i32 0, i32 11
  %34 = getelementptr inbounds %struct.LINKEDLIST, ptr %33, i32 0, i32 2
  %35 = load i64, ptr %34, align 8, !tbaa !21
  %36 = add nsw i64 %31, %35
  store i64 %36, ptr %10, align 8, !tbaa !22
  %37 = load i64, ptr %10, align 8, !tbaa !22
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.THREADPOOL, ptr %38, i32 0, i32 14
  %40 = getelementptr inbounds %struct.THREADPOOLATTR, ptr %39, i32 0, i32 5
  %41 = load i32, ptr %40, align 8, !tbaa !23
  %42 = sext i32 %41 to i64
  %43 = icmp sge i64 %37, %42
  br i1 %43, label %44, label %48

44:                                               ; preds = %19
  %45 = load ptr, ptr @stderr, align 8, !tbaa !5
  %46 = load i64, ptr %10, align 8, !tbaa !22
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str, i64 noundef %46) #4
  br label %108

48:                                               ; preds = %19
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = icmp ne ptr %49, null
  br i1 %50, label %52, label %51

51:                                               ; preds = %48
  store ptr %9, ptr %7, align 8, !tbaa !5
  br label %52

52:                                               ; preds = %51, %48
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 536870912, ptr %53, align 4, !tbaa !9
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.THREADPOOL, ptr %55, i32 0, i32 3
  %57 = load i32, ptr %56, align 8, !tbaa !24
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = call ptr @CreateThreadPoolJob(ptr noundef %54, i32 noundef %57, ptr noundef %58)
  store ptr %59, ptr %11, align 8, !tbaa !5
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = icmp ne ptr %60, null
  br i1 %61, label %63, label %62

62:                                               ; preds = %52
  br label %108

63:                                               ; preds = %52
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.THREADPOOLJOB, ptr %64, i32 0, i32 4
  %66 = load i32, ptr %65, align 8, !tbaa !25
  switch i32 %66, label %83 [
    i32 2, label %67
    i32 1, label %75
  ]

67:                                               ; preds = %63
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.THREADPOOL, ptr %68, i32 0, i32 12
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = call ptr @ListAddTail(ptr noundef %69, ptr noundef %70)
  %72 = icmp ne ptr %71, null
  br i1 %72, label %73, label %74

73:                                               ; preds = %67
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %73, %67
  br label %91

75:                                               ; preds = %63
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.THREADPOOL, ptr %76, i32 0, i32 11
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = call ptr @ListAddTail(ptr noundef %77, ptr noundef %78)
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %82

81:                                               ; preds = %75
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %81, %75
  br label %91

83:                                               ; preds = %63
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.THREADPOOL, ptr %84, i32 0, i32 10
  %86 = load ptr, ptr %11, align 8, !tbaa !5
  %87 = call ptr @ListAddTail(ptr noundef %85, ptr noundef %86)
  %88 = icmp ne ptr %87, null
  br i1 %88, label %89, label %90

89:                                               ; preds = %83
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %89, %83
  br label %91

91:                                               ; preds = %90, %82, %74
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  call void @AddWorker(ptr noundef %92)
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %99

95:                                               ; preds = %91
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.THREADPOOL, ptr %96, i32 0, i32 1
  %98 = call i32 @pthread_cond_signal(ptr noundef %97) #4
  br label %102

99:                                               ; preds = %91
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  call void @FreeThreadPoolJob(ptr noundef %100, ptr noundef %101)
  br label %102

102:                                              ; preds = %99, %95
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.THREADPOOL, ptr %103, i32 0, i32 3
  %105 = load i32, ptr %104, align 8, !tbaa !24
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %104, align 8, !tbaa !24
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %105, ptr %107, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %102, %62, %44
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.THREADPOOL, ptr %109, i32 0, i32 0
  %111 = call i32 @pthread_mutex_unlock(ptr noundef %110) #4
  %112 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %112, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %113

113:                                              ; preds = %108, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %114 = load i32, ptr %4, align 4
  ret i32 %114
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

declare ptr @ListAddTail(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @AddWorker(ptr noundef) #2

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

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 = { 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 = { "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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !14, i64 424}
!12 = !{!"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, !13, i64 160, !15, i64 184, !15, i64 280, !15, i64 376, !6, i64 472, !17, i64 480, !18, i64 520}
!13 = !{!"FREELIST", !6, i64 0, !14, i64 8, !10, i64 16, !10, i64 20}
!14 = !{!"long", !7, i64 0}
!15 = !{!"LINKEDLIST", !16, i64 0, !16, i64 24, !14, i64 48, !13, i64 56, !6, i64 80, !6, i64 88}
!16 = !{!"LISTNODE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"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}
!18 = !{!"TPOOLSTATS", !19, i64 0, !10, i64 8, !19, i64 16, !19, i64 24, !10, i64 32, !19, i64 40, !19, i64 48, !10, i64 56, !19, i64 64, !19, i64 72, !19, 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}
!19 = !{!"double", !7, i64 0}
!20 = !{!12, !14, i64 232}
!21 = !{!12, !14, i64 328}
!22 = !{!14, !14, i64 0}
!23 = !{!12, !10, i64 504}
!24 = !{!12, !10, i64 136}
!25 = !{!26, !10, i64 40}
!26 = !{!"THREADPOOLJOB", !6, i64 0, !6, i64 8, !6, i64 16, !27, i64 24, !10, i64 40, !10, i64 44}
!27 = !{!"timeval", !14, i64 0, !14, i64 8}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [42 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 536870913) i32 @ThreadPoolAdd(ptr noundef %0, ptr noundef %1, ptr noundef writeonly %2) local_unnamed_addr #1 {
  %4 = icmp ne ptr %0, null
  %5 = icmp ne ptr %1, null
  %or.cond = and i1 %4, %5
  br i1 %or.cond, label %6, label %46

6:                                                ; preds = %3
  %7 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull %0) #4
  %8 = getelementptr inbounds i8, ptr %0, i64 376
  %9 = getelementptr inbounds i8, ptr %0, i64 424
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 184
  %12 = getelementptr inbounds i8, ptr %0, i64 232
  %13 = load i64, ptr %12, align 8, !tbaa !18
  %14 = add nsw i64 %13, %10
  %15 = getelementptr inbounds i8, ptr %0, i64 280
  %16 = getelementptr inbounds i8, ptr %0, i64 328
  %17 = load i64, ptr %16, align 8, !tbaa !19
  %18 = add nsw i64 %14, %17
  %19 = getelementptr inbounds i8, ptr %0, i64 504
  %20 = load i32, ptr %19, align 8, !tbaa !20
  %21 = sext i32 %20 to i64
  %.not = icmp slt i64 %18, %21
  br i1 %.not, label %25, label %22

22:                                               ; preds = %6
  %23 = load ptr, ptr @stderr, align 8, !tbaa !21
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str, i64 noundef %18) #5
  br label %.cont

25:                                               ; preds = %6
  %.not37 = icmp eq ptr %2, null
  br i1 %.not37, label %.cont47, label %.else49

.else49:                                          ; preds = %25
  store i32 536870912, ptr %2, align 4, !tbaa !22
  br label %.cont47

.cont47:                                          ; preds = %25, %.else49
  %26 = getelementptr inbounds i8, ptr %0, i64 136
  %27 = load i32, ptr %26, align 8, !tbaa !23
  %28 = tail call ptr @CreateThreadPoolJob(ptr noundef nonnull %1, i32 noundef %27, ptr noundef nonnull %0)
  %.not38 = icmp eq ptr %28, null
  br i1 %.not38, label %.cont, label %29

29:                                               ; preds = %.cont47
  %30 = getelementptr inbounds i8, ptr %1, i64 40
  %31 = load i32, ptr %30, align 8, !tbaa !24
  switch i32 %31, label %36 [
    i32 2, label %32
    i32 1, label %34
  ]

32:                                               ; preds = %29
  %33 = tail call ptr @ListAddTail(ptr noundef nonnull %8, ptr noundef nonnull %28) #4
  %.not40.not = icmp eq ptr %33, null
  tail call void @AddWorker(ptr noundef nonnull %0)
  br i1 %.not40.not, label %41, label %38

34:                                               ; preds = %29
  %35 = tail call ptr @ListAddTail(ptr noundef nonnull %15, ptr noundef nonnull %28) #4
  %.not39.not = icmp eq ptr %35, null
  tail call void @AddWorker(ptr noundef nonnull %0)
  br i1 %.not39.not, label %41, label %38

36:                                               ; preds = %29
  %37 = tail call ptr @ListAddTail(ptr noundef nonnull %11, ptr noundef nonnull %28) #4
  %.not41.not = icmp eq ptr %37, null
  tail call void @AddWorker(ptr noundef nonnull %0)
  br i1 %.not41.not, label %41, label %38

38:                                               ; preds = %34, %32, %36
  %39 = getelementptr inbounds i8, ptr %0, i64 40
  %40 = tail call i32 @pthread_cond_signal(ptr noundef nonnull %39) #4
  br label %42

41:                                               ; preds = %34, %32, %36
  tail call void @FreeThreadPoolJob(ptr noundef nonnull %0, ptr noundef nonnull %28)
  br label %42

42:                                               ; preds = %41, %38
  %.03250 = phi i32 [ 536870912, %41 ], [ 0, %38 ]
  %43 = load i32, ptr %26, align 8, !tbaa !23
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %26, align 8, !tbaa !23
  br i1 %.not37, label %.cont, label %.else

.else:                                            ; preds = %42
  store i32 %43, ptr %2, align 4, !tbaa !22
  br label %.cont

.cont:                                            ; preds = %.else, %42, %.cont47, %22
  %.1 = phi i32 [ 536870912, %22 ], [ 536870912, %.cont47 ], [ %.03250, %42 ], [ %.03250, %.else ]
  %45 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull %0) #4
  br label %46

46:                                               ; preds = %3, %.cont
  %.0 = phi i32 [ %.1, %.cont ], [ 22, %3 ]
  ret i32 %.0
}

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

declare ptr @ListAddTail(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @AddWorker(ptr noundef) local_unnamed_addr #1

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

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


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass