; LLVM IR from jingweizhanghuai/Morn :: src/ptc (morn_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.ThreadBuffData = type { ptr, ptr, ptr, i32 }
%struct.MHandle = type { i32, i32, ptr, ptr }
%struct.MList = type { i32, ptr }
%struct.HandleThreadPool = type { ptr, i32, ptr, i32, i32, i32, i32, i32, %struct.MThreadSignal, ptr }
%struct.MThreadSignal = type { %union.pthread_mutex_t, %union.pthread_cond_t, %union.pthread_rwlock_t, i32 }
%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_rwlock_t = type { %struct.__pthread_rwlock_arch_t }
%struct.__pthread_rwlock_arch_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i8, [7 x i8], i64, i32 }
%struct.ThreadPoolData = type { i64, %struct.MThreadSignal, ptr, ptr, ptr, ptr, i32 }

@morn_thread_pool_handle = external dso_local global ptr, align 8
@.str = external hidden unnamed_addr constant [82 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@__FUNCTION__.m_ThreadPool = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@m_ThreadPool.Sgn_valid = external hidden global i32, align 4
@m_ThreadPool.Sgn_valid.11 = external hidden global i32, align 4
@m_ThreadPool.Sgn_valid.12 = external hidden global i32, align 4
@m_ThreadPool.Sgn_valid.13 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
declare dso_local void @endThreadPool(ptr noundef) #0

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

; Function Attrs: nounwind
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @pthread_rwlock_init(ptr noundef, ptr noundef) #2

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

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

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

declare i32 @pthread_join(i64 noundef, ptr noundef) #3

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

; Function Attrs: nounwind uwtable
declare dso_local void @ThreadFunc(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @ThreadPoolNumber(ptr noundef, ptr noundef) #0

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #3

declare ptr @mListWrite(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local void @m_ThreadPool(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %struct.ThreadBuffData, align 8
  %24 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %29

27:                                               ; preds = %5
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %27, %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %30, ptr %11, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  %34 = zext i1 %33 to i32
  store i32 %34, ptr %12, align 4, !tbaa !9
  %35 = load i32, ptr %12, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %39

37:                                               ; preds = %31
  %38 = load i32, ptr %12, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %38, i32 noundef -1, ptr noundef @.str, i32 noundef 131, ptr noundef @__FUNCTION__.m_ThreadPool, ptr noundef @.str.4)
  br label %39

39:                                               ; preds = %37, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %42 = call ptr @m_Malloc(i32 noundef 8)
  store ptr %42, ptr %13, align 8, !tbaa !5
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %43, ptr %44, align 8, !tbaa !5
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = icmp slt i32 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %41
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %47, %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store ptr null, ptr %16, align 8, !tbaa !5
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %53

51:                                               ; preds = %48
  %52 = load ptr, ptr @morn_thread_pool_handle, align 8, !tbaa !5
  store ptr %52, ptr %16, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %51, %48
  %54 = load ptr, ptr %16, align 8, !tbaa !5
  %55 = icmp eq ptr %54, null
  br i1 %55, label %56, label %213

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = icmp eq ptr %57, null
  br i1 %58, label %59, label %61

59:                                               ; preds = %56
  %60 = call ptr @mMornObject(ptr noundef @.str.5, i32 noundef -1)
  br label %63

61:                                               ; preds = %56
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  br label %63

63:                                               ; preds = %61, %59
  %64 = phi ptr [ %60, %59 ], [ %62, %61 ]
  store ptr %64, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %65 = load ptr, ptr %17, align 8, !tbaa !5
  %66 = call ptr @GetHandle(ptr noundef %65, i32 noundef 208, i32 noundef -1992462369, ptr noundef @endThreadPool)
  store ptr %66, ptr %18, align 8, !tbaa !5
  %67 = load ptr, ptr %18, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.MHandle, ptr %67, i32 0, i32 3
  %69 = load ptr, ptr %68, align 8, !tbaa !11
  store ptr %69, ptr %16, align 8, !tbaa !5
  %70 = load ptr, ptr %18, align 8, !tbaa !5
  %71 = call i32 @mHandleValid(ptr noundef %70)
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %212, label %73

73:                                               ; preds = %63
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %87

76:                                               ; preds = %73
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.MList, ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 8, !tbaa !13
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.HandleThreadPool, ptr %80, i32 0, i32 1
  store i32 %79, ptr %81, align 8, !tbaa !15
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = load ptr, ptr %16, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.HandleThreadPool, ptr %83, i32 0, i32 0
  store ptr %82, ptr %84, align 8, !tbaa !18
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.MList, ptr %85, i32 0, i32 0
  store i32 0, ptr %86, align 8, !tbaa !13
  br label %105

87:                                               ; preds = %73
  %88 = load ptr, ptr %16, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.HandleThreadPool, ptr %88, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !18
  %91 = icmp eq ptr %90, null
  br i1 %91, label %92, label %96

92:                                               ; preds = %87
  %93 = call ptr @ListCreate(i32 noundef -1, ptr noundef null)
  %94 = load ptr, ptr %16, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.HandleThreadPool, ptr %94, i32 0, i32 0
  store ptr %93, ptr %95, align 8, !tbaa !18
  br label %96

96:                                               ; preds = %92, %87
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.HandleThreadPool, ptr %97, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8, !tbaa !18
  store ptr %99, ptr %6, align 8, !tbaa !5
  br label %100

100:                                              ; preds = %96
  %101 = load ptr, ptr %17, align 8, !tbaa !5
  call void @m_PropertyFunction(ptr noundef %101, ptr noundef @.str.6, ptr noundef @mornObjectRemove, ptr noundef @.str.5)
  br label %102

102:                                              ; preds = %100
  br label %103

103:                                              ; preds = %102
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %104, ptr @morn_thread_pool_handle, align 8, !tbaa !5
  br label %105

105:                                              ; preds = %103, %76
  %106 = load ptr, ptr %17, align 8, !tbaa !5
  %107 = load ptr, ptr %16, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.HandleThreadPool, ptr %107, i32 0, i32 1
  %109 = call ptr @m_PropertyRead(ptr noundef %106, ptr noundef @.str.7, ptr noundef %108, ptr noundef null)
  %110 = load ptr, ptr %16, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.HandleThreadPool, ptr %110, i32 0, i32 1
  %112 = load i32, ptr %111, align 8, !tbaa !15
  %113 = icmp sle i32 %112, 0
  br i1 %113, label %114, label %119

114:                                              ; preds = %105
  %115 = call i64 @sysconf(i32 noundef 84) #4
  %116 = trunc i64 %115 to i32
  %117 = load ptr, ptr %16, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.HandleThreadPool, ptr %117, i32 0, i32 1
  store i32 %116, ptr %118, align 8, !tbaa !15
  br label %119

119:                                              ; preds = %114, %105
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = load ptr, ptr %16, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.HandleThreadPool, ptr %121, i32 0, i32 1
  %123 = load i32, ptr %122, align 8, !tbaa !15
  call void @mListPlace(ptr noundef %120, ptr noundef null, i32 noundef %123, i32 noundef 200)
  %124 = load ptr, ptr %17, align 8, !tbaa !5
  %125 = load ptr, ptr %16, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.HandleThreadPool, ptr %125, i32 0, i32 1
  call void @m_PropertyVariate(ptr noundef %124, ptr noundef @.str.7, ptr noundef %126, i32 noundef 4)
  %127 = load ptr, ptr %16, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.HandleThreadPool, ptr %127, i32 0, i32 2
  %129 = load ptr, ptr %128, align 8, !tbaa !19
  %130 = icmp eq ptr %129, null
  br i1 %130, label %131, label %135

131:                                              ; preds = %119
  %132 = call ptr @ListCreate(i32 noundef -1, ptr noundef null)
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.HandleThreadPool, ptr %133, i32 0, i32 2
  store ptr %132, ptr %134, align 8, !tbaa !19
  br label %135

135:                                              ; preds = %131, %119
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.MList, ptr %136, i32 0, i32 0
  %138 = load i32, ptr %137, align 8, !tbaa !13
  %139 = mul nsw i32 %138, 4
  %140 = icmp sgt i32 %139, 16
  br i1 %140, label %141, label %146

141:                                              ; preds = %135
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.MList, ptr %142, i32 0, i32 0
  %144 = load i32, ptr %143, align 8, !tbaa !13
  %145 = mul nsw i32 %144, 4
  br label %147

146:                                              ; preds = %135
  br label %147

147:                                              ; preds = %146, %141
  %148 = phi i32 [ %145, %141 ], [ 16, %146 ]
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.HandleThreadPool, ptr %149, i32 0, i32 3
  store i32 %148, ptr %150, align 8, !tbaa !20
  %151 = load ptr, ptr %17, align 8, !tbaa !5
  %152 = load ptr, ptr %16, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.HandleThreadPool, ptr %152, i32 0, i32 3
  call void @m_PropertyVariate(ptr noundef %151, ptr noundef @.str.8, ptr noundef %153, i32 noundef 4)
  %154 = load ptr, ptr %16, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.HandleThreadPool, ptr %154, i32 0, i32 4
  store i32 0, ptr %155, align 4, !tbaa !21
  %156 = load ptr, ptr %17, align 8, !tbaa !5
  %157 = load ptr, ptr %16, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.HandleThreadPool, ptr %157, i32 0, i32 4
  call void @m_PropertyVariate(ptr noundef %156, ptr noundef @.str.9, ptr noundef %158, i32 noundef 4)
  %159 = load ptr, ptr %16, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.HandleThreadPool, ptr %159, i32 0, i32 1
  %161 = load i32, ptr %160, align 8, !tbaa !15
  %162 = mul nsw i32 %161, 2
  %163 = load ptr, ptr %16, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.HandleThreadPool, ptr %163, i32 0, i32 5
  store i32 %162, ptr %164, align 8, !tbaa !22
  %165 = load ptr, ptr %17, align 8, !tbaa !5
  %166 = load ptr, ptr %16, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.HandleThreadPool, ptr %166, i32 0, i32 5
  call void @m_PropertyVariate(ptr noundef %165, ptr noundef @.str.10, ptr noundef %167, i32 noundef 4)
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %201, %147
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.MList, ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 8, !tbaa !13
  %173 = icmp slt i32 %169, %172
  br i1 %173, label %174, label %204

174:                                              ; preds = %168
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.MList, ptr %175, i32 0, i32 1
  %177 = load ptr, ptr %176, align 8, !tbaa !23
  %178 = load i32, ptr %14, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds ptr, ptr %177, i64 %179
  %181 = load ptr, ptr %180, align 8, !tbaa !5
  store ptr %181, ptr %15, align 8, !tbaa !5
  %182 = load ptr, ptr %15, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.ThreadPoolData, ptr %182, i32 0, i32 6
  store volatile i32 0, ptr %183, align 8, !tbaa !24
  %184 = load ptr, ptr %16, align 8, !tbaa !5
  %185 = load ptr, ptr %15, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.ThreadPoolData, ptr %185, i32 0, i32 2
  store ptr %184, ptr %186, align 8, !tbaa !27
  br label %187

187:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %188 = load ptr, ptr %15, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.ThreadPoolData, ptr %188, i32 0, i32 0
  %190 = load ptr, ptr %15, align 8, !tbaa !5
  %191 = call i32 @pthread_create(ptr noundef %189, ptr noundef null, ptr noundef @ThreadFunc, ptr noundef %190) #4
  %192 = icmp ne i32 %191, 0
  %193 = zext i1 %192 to i32
  store i32 %193, ptr %19, align 4, !tbaa !9
  %194 = load i32, ptr %19, align 4, !tbaa !9
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %198

196:                                              ; preds = %187
  %197 = load i32, ptr %19, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %197, i32 noundef -1, ptr noundef @.str, i32 noundef 183, ptr noundef @__FUNCTION__.m_ThreadPool, ptr noundef @.str.3)
  br label %198

198:                                              ; preds = %196, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %199

199:                                              ; preds = %198
  br label %200

200:                                              ; preds = %199
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %14, align 4, !tbaa !9
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %14, align 4, !tbaa !9
  br label %168, !llvm.loop !28

204:                                              ; preds = %168
  br label %205

205:                                              ; preds = %204
  %206 = load ptr, ptr %17, align 8, !tbaa !5
  %207 = load ptr, ptr %16, align 8, !tbaa !5
  call void @m_PropertyFunction(ptr noundef %206, ptr noundef @.str.7, ptr noundef @ThreadPoolNumber, ptr noundef %207)
  br label %208

208:                                              ; preds = %205
  br label %209

209:                                              ; preds = %208
  %210 = load ptr, ptr %18, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.MHandle, ptr %210, i32 0, i32 1
  store volatile i32 1, ptr %211, align 4, !tbaa !30
  br label %212

212:                                              ; preds = %209, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %213

213:                                              ; preds = %212, %53
  %214 = load ptr, ptr %16, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.HandleThreadPool, ptr %214, i32 0, i32 0
  %216 = load ptr, ptr %215, align 8, !tbaa !18
  store ptr %216, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %217

217:                                              ; preds = %288, %213
  %218 = load i32, ptr %14, align 4, !tbaa !9
  %219 = load ptr, ptr %16, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.HandleThreadPool, ptr %219, i32 0, i32 1
  %221 = load i32, ptr %220, align 8, !tbaa !15
  %222 = icmp slt i32 %218, %221
  br i1 %222, label %223, label %291

223:                                              ; preds = %217
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.MList, ptr %224, i32 0, i32 1
  %226 = load ptr, ptr %225, align 8, !tbaa !23
  %227 = load i32, ptr %14, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds ptr, ptr %226, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  store ptr %230, ptr %15, align 8, !tbaa !5
  %231 = load ptr, ptr %15, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.ThreadPoolData, ptr %231, i32 0, i32 6
  %233 = load volatile i32, ptr %232, align 8, !tbaa !24
  %234 = icmp eq i32 %233, 1
  br i1 %234, label %235, label %236

235:                                              ; preds = %223
  br label %288

236:                                              ; preds = %223
  %237 = load ptr, ptr %11, align 8, !tbaa !5
  %238 = load ptr, ptr %15, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.ThreadPoolData, ptr %238, i32 0, i32 3
  store ptr %237, ptr %239, align 8, !tbaa !31
  %240 = load ptr, ptr %13, align 8, !tbaa !5
  %241 = load ptr, ptr %15, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.ThreadPoolData, ptr %241, i32 0, i32 4
  store ptr %240, ptr %242, align 8, !tbaa !32
  %243 = load ptr, ptr %9, align 8, !tbaa !5
  %244 = load ptr, ptr %15, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.ThreadPoolData, ptr %244, i32 0, i32 5
  store ptr %243, ptr %245, align 8, !tbaa !33
  %246 = load ptr, ptr %15, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.ThreadPoolData, ptr %246, i32 0, i32 6
  store volatile i32 1, ptr %247, align 8, !tbaa !24
  br label %248

248:                                              ; preds = %236
  br label %249

249:                                              ; preds = %248
  br label %250

250:                                              ; preds = %249
  %251 = load i32, ptr @m_ThreadPool.Sgn_valid, align 4, !tbaa !9
  %252 = icmp eq i32 %251, 0
  br i1 %252, label %253, label %269

253:                                              ; preds = %250
  %254 = load ptr, ptr %15, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.ThreadPoolData, ptr %254, i32 0, i32 1
  %256 = getelementptr inbounds %struct.MThreadSignal, ptr %255, i32 0, i32 3
  %257 = atomicrmw xchg ptr %256, i32 -1135873169 seq_cst, align 8
  %258 = icmp ne i32 %257, -1135873169
  br i1 %258, label %259, label %268

259:                                              ; preds = %253
  %260 = load ptr, ptr %15, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.ThreadPoolData, ptr %260, i32 0, i32 1
  %262 = getelementptr inbounds %struct.MThreadSignal, ptr %261, i32 0, i32 0
  %263 = call i32 @pthread_mutex_init(ptr noundef %262, ptr noundef null) #4
  %264 = load ptr, ptr %15, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.ThreadPoolData, ptr %264, i32 0, i32 1
  %266 = getelementptr inbounds %struct.MThreadSignal, ptr %265, i32 0, i32 2
  %267 = call i32 @pthread_rwlock_init(ptr noundef %266, ptr noundef null) #4
  br label %268

268:                                              ; preds = %259, %253
  store i32 1, ptr @m_ThreadPool.Sgn_valid, align 4, !tbaa !9
  br label %269

269:                                              ; preds = %268, %250
  br label %270

270:                                              ; preds = %269
  br label %271

271:                                              ; preds = %270
  %272 = load ptr, ptr %15, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.ThreadPoolData, ptr %272, i32 0, i32 1
  %274 = getelementptr inbounds %struct.MThreadSignal, ptr %273, i32 0, i32 0
  %275 = call i32 @pthread_mutex_lock(ptr noundef %274) #4
  br label %276

276:                                              ; preds = %271
  br label %277

277:                                              ; preds = %276
  %278 = load ptr, ptr %15, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.ThreadPoolData, ptr %278, i32 0, i32 1
  %280 = getelementptr inbounds %struct.MThreadSignal, ptr %279, i32 0, i32 1
  %281 = call i32 @pthread_cond_signal(ptr noundef %280) #4
  %282 = load ptr, ptr %15, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.ThreadPoolData, ptr %282, i32 0, i32 1
  %284 = getelementptr inbounds %struct.MThreadSignal, ptr %283, i32 0, i32 0
  %285 = call i32 @pthread_mutex_unlock(ptr noundef %284) #4
  br label %286

286:                                              ; preds = %277
  br label %287

287:                                              ; preds = %286
  br label %291

288:                                              ; preds = %235
  %289 = load i32, ptr %14, align 4, !tbaa !9
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %14, align 4, !tbaa !9
  br label %217, !llvm.loop !34

291:                                              ; preds = %287, %217
  %292 = load i32, ptr %14, align 4, !tbaa !9
  %293 = load ptr, ptr %16, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.HandleThreadPool, ptr %293, i32 0, i32 1
  %295 = load i32, ptr %294, align 8, !tbaa !15
  %296 = sub nsw i32 %295, 1
  %297 = icmp eq i32 %292, %296
  br i1 %297, label %298, label %301

298:                                              ; preds = %291
  %299 = load ptr, ptr %16, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.HandleThreadPool, ptr %299, i32 0, i32 6
  store i32 0, ptr %300, align 4, !tbaa !35
  store i32 1, ptr %20, align 4
  br label %636

301:                                              ; preds = %291
  %302 = load i32, ptr %14, align 4, !tbaa !9
  %303 = load ptr, ptr %16, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.HandleThreadPool, ptr %303, i32 0, i32 1
  %305 = load i32, ptr %304, align 8, !tbaa !15
  %306 = sub nsw i32 %305, 1
  %307 = icmp slt i32 %302, %306
  br i1 %307, label %308, label %429

308:                                              ; preds = %301
  %309 = load ptr, ptr %16, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.HandleThreadPool, ptr %309, i32 0, i32 4
  %311 = load i32, ptr %310, align 4, !tbaa !21
  %312 = icmp ne i32 %311, 0
  br i1 %312, label %313, label %428

313:                                              ; preds = %308
  %314 = load ptr, ptr %16, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.HandleThreadPool, ptr %314, i32 0, i32 1
  %316 = load i32, ptr %315, align 8, !tbaa !15
  %317 = icmp sgt i32 %316, 2
  br i1 %317, label %318, label %428

318:                                              ; preds = %313
  %319 = load ptr, ptr %6, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.MList, ptr %319, i32 0, i32 1
  %321 = load ptr, ptr %320, align 8, !tbaa !23
  %322 = load ptr, ptr %16, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.HandleThreadPool, ptr %322, i32 0, i32 1
  %324 = load i32, ptr %323, align 8, !tbaa !15
  %325 = sub nsw i32 %324, 1
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds ptr, ptr %321, i64 %326
  %328 = load ptr, ptr %327, align 8, !tbaa !5
  store ptr %328, ptr %15, align 8, !tbaa !5
  %329 = load ptr, ptr %15, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.ThreadPoolData, ptr %329, i32 0, i32 6
  %331 = load volatile i32, ptr %330, align 8, !tbaa !24
  %332 = icmp ne i32 %331, 0
  br i1 %332, label %333, label %336

333:                                              ; preds = %318
  %334 = load ptr, ptr %16, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.HandleThreadPool, ptr %334, i32 0, i32 6
  store i32 0, ptr %335, align 4, !tbaa !35
  store i32 1, ptr %20, align 4
  br label %636

336:                                              ; preds = %318
  %337 = load ptr, ptr %16, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.HandleThreadPool, ptr %337, i32 0, i32 6
  %339 = load i32, ptr %338, align 4, !tbaa !35
  %340 = add nsw i32 %339, 1
  store i32 %340, ptr %338, align 4, !tbaa !35
  %341 = load ptr, ptr %16, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.HandleThreadPool, ptr %341, i32 0, i32 6
  %343 = load i32, ptr %342, align 4, !tbaa !35
  %344 = load ptr, ptr %16, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.HandleThreadPool, ptr %344, i32 0, i32 1
  %346 = load i32, ptr %345, align 8, !tbaa !15
  %347 = icmp sgt i32 %346, 8
  br i1 %347, label %348, label %352

348:                                              ; preds = %336
  %349 = load ptr, ptr %16, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.HandleThreadPool, ptr %349, i32 0, i32 1
  %351 = load i32, ptr %350, align 8, !tbaa !15
  br label %353

352:                                              ; preds = %336
  br label %353

353:                                              ; preds = %352, %348
  %354 = phi i32 [ %351, %348 ], [ 8, %352 ]
  %355 = icmp sgt i32 %343, %354
  br i1 %355, label %356, label %427

356:                                              ; preds = %353
  %357 = load ptr, ptr %16, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.HandleThreadPool, ptr %357, i32 0, i32 9
  %359 = load ptr, ptr %358, align 8, !tbaa !36
  %360 = icmp ne ptr %359, null
  br i1 %360, label %361, label %367

361:                                              ; preds = %356
  %362 = load ptr, ptr %16, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.HandleThreadPool, ptr %362, i32 0, i32 9
  %364 = load ptr, ptr %363, align 8, !tbaa !36
  %365 = load i64, ptr %364, align 8, !tbaa !37
  %366 = call i32 @pthread_join(i64 noundef %365, ptr noundef null)
  br label %367

367:                                              ; preds = %361, %356
  %368 = load ptr, ptr %15, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct.ThreadPoolData, ptr %368, i32 0, i32 3
  store ptr null, ptr %369, align 8, !tbaa !31
  %370 = load ptr, ptr %15, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.ThreadPoolData, ptr %370, i32 0, i32 6
  store volatile i32 1, ptr %371, align 8, !tbaa !24
  br label %372

372:                                              ; preds = %367
  br label %373

373:                                              ; preds = %372
  br label %374

374:                                              ; preds = %373
  %375 = load i32, ptr @m_ThreadPool.Sgn_valid.11, align 4, !tbaa !9
  %376 = icmp eq i32 %375, 0
  br i1 %376, label %377, label %393

377:                                              ; preds = %374
  %378 = load ptr, ptr %15, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.ThreadPoolData, ptr %378, i32 0, i32 1
  %380 = getelementptr inbounds %struct.MThreadSignal, ptr %379, i32 0, i32 3
  %381 = atomicrmw xchg ptr %380, i32 -1135873169 seq_cst, align 8
  %382 = icmp ne i32 %381, -1135873169
  br i1 %382, label %383, label %392

383:                                              ; preds = %377
  %384 = load ptr, ptr %15, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct.ThreadPoolData, ptr %384, i32 0, i32 1
  %386 = getelementptr inbounds %struct.MThreadSignal, ptr %385, i32 0, i32 0
  %387 = call i32 @pthread_mutex_init(ptr noundef %386, ptr noundef null) #4
  %388 = load ptr, ptr %15, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.ThreadPoolData, ptr %388, i32 0, i32 1
  %390 = getelementptr inbounds %struct.MThreadSignal, ptr %389, i32 0, i32 2
  %391 = call i32 @pthread_rwlock_init(ptr noundef %390, ptr noundef null) #4
  br label %392

392:                                              ; preds = %383, %377
  store i32 1, ptr @m_ThreadPool.Sgn_valid.11, align 4, !tbaa !9
  br label %393

393:                                              ; preds = %392, %374
  br label %394

394:                                              ; preds = %393
  br label %395

395:                                              ; preds = %394
  %396 = load ptr, ptr %15, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.ThreadPoolData, ptr %396, i32 0, i32 1
  %398 = getelementptr inbounds %struct.MThreadSignal, ptr %397, i32 0, i32 0
  %399 = call i32 @pthread_mutex_lock(ptr noundef %398) #4
  br label %400

400:                                              ; preds = %395
  br label %401

401:                                              ; preds = %400
  %402 = load ptr, ptr %15, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.ThreadPoolData, ptr %402, i32 0, i32 1
  %404 = getelementptr inbounds %struct.MThreadSignal, ptr %403, i32 0, i32 1
  %405 = call i32 @pthread_cond_signal(ptr noundef %404) #4
  %406 = load ptr, ptr %15, align 8, !tbaa !5
  %407 = getelementptr inbounds %struct.ThreadPoolData, ptr %406, i32 0, i32 1
  %408 = getelementptr inbounds %struct.MThreadSignal, ptr %407, i32 0, i32 0
  %409 = call i32 @pthread_mutex_unlock(ptr noundef %408) #4
  br label %410

410:                                              ; preds = %401
  br label %411

411:                                              ; preds = %410
  %412 = load ptr, ptr %6, align 8, !tbaa !5
  %413 = getelementptr inbounds %struct.MList, ptr %412, i32 0, i32 0
  %414 = load i32, ptr %413, align 8, !tbaa !13
  %415 = sub nsw i32 %414, 1
  %416 = load ptr, ptr %6, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.MList, ptr %416, i32 0, i32 0
  store i32 %415, ptr %417, align 8, !tbaa !13
  %418 = load ptr, ptr %6, align 8, !tbaa !5
  %419 = getelementptr inbounds %struct.MList, ptr %418, i32 0, i32 0
  %420 = load i32, ptr %419, align 8, !tbaa !13
  %421 = load ptr, ptr %16, align 8, !tbaa !5
  %422 = getelementptr inbounds %struct.HandleThreadPool, ptr %421, i32 0, i32 1
  store i32 %420, ptr %422, align 8, !tbaa !15
  %423 = load ptr, ptr %15, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.ThreadPoolData, ptr %423, i32 0, i32 0
  %425 = load ptr, ptr %16, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.HandleThreadPool, ptr %425, i32 0, i32 9
  store ptr %424, ptr %426, align 8, !tbaa !36
  br label %427

427:                                              ; preds = %411, %353
  br label %428

428:                                              ; preds = %427, %313, %308
  store i32 1, ptr %20, align 4
  br label %636

429:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %430 = load ptr, ptr %16, align 8, !tbaa !5
  %431 = getelementptr inbounds %struct.HandleThreadPool, ptr %430, i32 0, i32 2
  %432 = load ptr, ptr %431, align 8, !tbaa !19
  store ptr %432, ptr %21, align 8, !tbaa !5
  %433 = load ptr, ptr %21, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.MList, ptr %433, i32 0, i32 0
  %435 = load i32, ptr %434, align 8, !tbaa !13
  %436 = load ptr, ptr %16, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.HandleThreadPool, ptr %436, i32 0, i32 3
  %438 = load i32, ptr %437, align 8, !tbaa !20
  %439 = icmp eq i32 %435, %438
  br i1 %439, label %440, label %542

440:                                              ; preds = %429
  %441 = load ptr, ptr %16, align 8, !tbaa !5
  %442 = getelementptr inbounds %struct.HandleThreadPool, ptr %441, i32 0, i32 4
  %443 = load i32, ptr %442, align 4, !tbaa !21
  %444 = icmp ne i32 %443, 0
  br i1 %444, label %445, label %542

445:                                              ; preds = %440
  %446 = load ptr, ptr %16, align 8, !tbaa !5
  %447 = getelementptr inbounds %struct.HandleThreadPool, ptr %446, i32 0, i32 1
  %448 = load i32, ptr %447, align 8, !tbaa !15
  %449 = load ptr, ptr %16, align 8, !tbaa !5
  %450 = getelementptr inbounds %struct.HandleThreadPool, ptr %449, i32 0, i32 5
  %451 = load i32, ptr %450, align 8, !tbaa !22
  %452 = icmp slt i32 %448, %451
  br i1 %452, label %453, label %542

453:                                              ; preds = %445
  %454 = load ptr, ptr %6, align 8, !tbaa !5
  %455 = call ptr @mListWrite(ptr noundef %454, i32 noundef -1, ptr noundef null, i32 noundef 200)
  store ptr %455, ptr %15, align 8, !tbaa !5
  %456 = load ptr, ptr %6, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.MList, ptr %456, i32 0, i32 0
  %458 = load i32, ptr %457, align 8, !tbaa !13
  %459 = load ptr, ptr %16, align 8, !tbaa !5
  %460 = getelementptr inbounds %struct.HandleThreadPool, ptr %459, i32 0, i32 1
  store i32 %458, ptr %460, align 8, !tbaa !15
  %461 = load ptr, ptr %16, align 8, !tbaa !5
  %462 = getelementptr inbounds %struct.HandleThreadPool, ptr %461, i32 0, i32 9
  %463 = load ptr, ptr %462, align 8, !tbaa !36
  %464 = icmp ne ptr %463, null
  br i1 %464, label %465, label %471

465:                                              ; preds = %453
  %466 = load ptr, ptr %16, align 8, !tbaa !5
  %467 = getelementptr inbounds %struct.HandleThreadPool, ptr %466, i32 0, i32 9
  %468 = load ptr, ptr %467, align 8, !tbaa !36
  %469 = load i64, ptr %468, align 8, !tbaa !37
  %470 = call i32 @pthread_join(i64 noundef %469, ptr noundef null)
  br label %471

471:                                              ; preds = %465, %453
  %472 = load ptr, ptr %16, align 8, !tbaa !5
  %473 = getelementptr inbounds %struct.HandleThreadPool, ptr %472, i32 0, i32 9
  store ptr null, ptr %473, align 8, !tbaa !36
  %474 = load ptr, ptr %16, align 8, !tbaa !5
  %475 = load ptr, ptr %15, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.ThreadPoolData, ptr %475, i32 0, i32 2
  store ptr %474, ptr %476, align 8, !tbaa !27
  %477 = load ptr, ptr %11, align 8, !tbaa !5
  %478 = load ptr, ptr %15, align 8, !tbaa !5
  %479 = getelementptr inbounds %struct.ThreadPoolData, ptr %478, i32 0, i32 3
  store ptr %477, ptr %479, align 8, !tbaa !31
  %480 = load ptr, ptr %13, align 8, !tbaa !5
  %481 = load ptr, ptr %15, align 8, !tbaa !5
  %482 = getelementptr inbounds %struct.ThreadPoolData, ptr %481, i32 0, i32 4
  store ptr %480, ptr %482, align 8, !tbaa !32
  %483 = load ptr, ptr %9, align 8, !tbaa !5
  %484 = load ptr, ptr %15, align 8, !tbaa !5
  %485 = getelementptr inbounds %struct.ThreadPoolData, ptr %484, i32 0, i32 5
  store ptr %483, ptr %485, align 8, !tbaa !33
  %486 = load ptr, ptr %15, align 8, !tbaa !5
  %487 = getelementptr inbounds %struct.ThreadPoolData, ptr %486, i32 0, i32 6
  store volatile i32 1, ptr %487, align 8, !tbaa !24
  br label %488

488:                                              ; preds = %471
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %489 = load ptr, ptr %15, align 8, !tbaa !5
  %490 = getelementptr inbounds %struct.ThreadPoolData, ptr %489, i32 0, i32 0
  %491 = load ptr, ptr %15, align 8, !tbaa !5
  %492 = call i32 @pthread_create(ptr noundef %490, ptr noundef null, ptr noundef @ThreadFunc, ptr noundef %491) #4
  %493 = icmp ne i32 %492, 0
  %494 = zext i1 %493 to i32
  store i32 %494, ptr %22, align 4, !tbaa !9
  %495 = load i32, ptr %22, align 4, !tbaa !9
  %496 = icmp ne i32 %495, 0
  br i1 %496, label %497, label %499

497:                                              ; preds = %488
  %498 = load i32, ptr %22, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %498, i32 noundef -1, ptr noundef @.str, i32 noundef 239, ptr noundef @__FUNCTION__.m_ThreadPool, ptr noundef @.str.3)
  br label %499

499:                                              ; preds = %497, %488
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %500

500:                                              ; preds = %499
  br label %501

501:                                              ; preds = %500
  br label %502

502:                                              ; preds = %501
  br label %503

503:                                              ; preds = %502
  br label %504

504:                                              ; preds = %503
  %505 = load i32, ptr @m_ThreadPool.Sgn_valid.12, align 4, !tbaa !9
  %506 = icmp eq i32 %505, 0
  br i1 %506, label %507, label %523

507:                                              ; preds = %504
  %508 = load ptr, ptr %15, align 8, !tbaa !5
  %509 = getelementptr inbounds %struct.ThreadPoolData, ptr %508, i32 0, i32 1
  %510 = getelementptr inbounds %struct.MThreadSignal, ptr %509, i32 0, i32 3
  %511 = atomicrmw xchg ptr %510, i32 -1135873169 seq_cst, align 8
  %512 = icmp ne i32 %511, -1135873169
  br i1 %512, label %513, label %522

513:                                              ; preds = %507
  %514 = load ptr, ptr %15, align 8, !tbaa !5
  %515 = getelementptr inbounds %struct.ThreadPoolData, ptr %514, i32 0, i32 1
  %516 = getelementptr inbounds %struct.MThreadSignal, ptr %515, i32 0, i32 0
  %517 = call i32 @pthread_mutex_init(ptr noundef %516, ptr noundef null) #4
  %518 = load ptr, ptr %15, align 8, !tbaa !5
  %519 = getelementptr inbounds %struct.ThreadPoolData, ptr %518, i32 0, i32 1
  %520 = getelementptr inbounds %struct.MThreadSignal, ptr %519, i32 0, i32 2
  %521 = call i32 @pthread_rwlock_init(ptr noundef %520, ptr noundef null) #4
  br label %522

522:                                              ; preds = %513, %507
  store i32 1, ptr @m_ThreadPool.Sgn_valid.12, align 4, !tbaa !9
  br label %523

523:                                              ; preds = %522, %504
  br label %524

524:                                              ; preds = %523
  br label %525

525:                                              ; preds = %524
  %526 = load ptr, ptr %15, align 8, !tbaa !5
  %527 = getelementptr inbounds %struct.ThreadPoolData, ptr %526, i32 0, i32 1
  %528 = getelementptr inbounds %struct.MThreadSignal, ptr %527, i32 0, i32 0
  %529 = call i32 @pthread_mutex_lock(ptr noundef %528) #4
  br label %530

530:                                              ; preds = %525
  br label %531

531:                                              ; preds = %530
  %532 = load ptr, ptr %15, align 8, !tbaa !5
  %533 = getelementptr inbounds %struct.ThreadPoolData, ptr %532, i32 0, i32 1
  %534 = getelementptr inbounds %struct.MThreadSignal, ptr %533, i32 0, i32 1
  %535 = call i32 @pthread_cond_signal(ptr noundef %534) #4
  %536 = load ptr, ptr %15, align 8, !tbaa !5
  %537 = getelementptr inbounds %struct.ThreadPoolData, ptr %536, i32 0, i32 1
  %538 = getelementptr inbounds %struct.MThreadSignal, ptr %537, i32 0, i32 0
  %539 = call i32 @pthread_mutex_unlock(ptr noundef %538) #4
  br label %540

540:                                              ; preds = %531
  br label %541

541:                                              ; preds = %540
  store i32 1, ptr %20, align 4
  br label %635

542:                                              ; preds = %445, %440, %429
  br label %543

543:                                              ; preds = %551, %542
  %544 = load ptr, ptr %21, align 8, !tbaa !5
  %545 = getelementptr inbounds %struct.MList, ptr %544, i32 0, i32 0
  %546 = load i32, ptr %545, align 8, !tbaa !13
  %547 = load ptr, ptr %16, align 8, !tbaa !5
  %548 = getelementptr inbounds %struct.HandleThreadPool, ptr %547, i32 0, i32 3
  %549 = load i32, ptr %548, align 8, !tbaa !20
  %550 = icmp sge i32 %546, %549
  br i1 %550, label %551, label %552

551:                                              ; preds = %543
  br label %543, !llvm.loop !38

552:                                              ; preds = %543
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #4
  %553 = load ptr, ptr %11, align 8, !tbaa !5
  %554 = getelementptr inbounds %struct.ThreadBuffData, ptr %23, i32 0, i32 0
  store ptr %553, ptr %554, align 8, !tbaa !39
  %555 = load ptr, ptr %13, align 8, !tbaa !5
  %556 = getelementptr inbounds %struct.ThreadBuffData, ptr %23, i32 0, i32 1
  store ptr %555, ptr %556, align 8, !tbaa !41
  %557 = load ptr, ptr %9, align 8, !tbaa !5
  %558 = getelementptr inbounds %struct.ThreadBuffData, ptr %23, i32 0, i32 2
  store ptr %557, ptr %558, align 8, !tbaa !42
  %559 = load i32, ptr %10, align 4, !tbaa !9
  %560 = getelementptr inbounds %struct.ThreadBuffData, ptr %23, i32 0, i32 3
  store i32 %559, ptr %560, align 8, !tbaa !43
  br label %561

561:                                              ; preds = %552
  br label %562

562:                                              ; preds = %561
  %563 = load i32, ptr @m_ThreadPool.Sgn_valid.13, align 4, !tbaa !9
  %564 = icmp eq i32 %563, 0
  br i1 %564, label %565, label %581

565:                                              ; preds = %562
  %566 = load ptr, ptr %16, align 8, !tbaa !5
  %567 = getelementptr inbounds %struct.HandleThreadPool, ptr %566, i32 0, i32 8
  %568 = getelementptr inbounds %struct.MThreadSignal, ptr %567, i32 0, i32 3
  %569 = atomicrmw xchg ptr %568, i32 -1135873169 seq_cst, align 8
  %570 = icmp ne i32 %569, -1135873169
  br i1 %570, label %571, label %580

571:                                              ; preds = %565
  %572 = load ptr, ptr %16, align 8, !tbaa !5
  %573 = getelementptr inbounds %struct.HandleThreadPool, ptr %572, i32 0, i32 8
  %574 = getelementptr inbounds %struct.MThreadSignal, ptr %573, i32 0, i32 0
  %575 = call i32 @pthread_mutex_init(ptr noundef %574, ptr noundef null) #4
  %576 = load ptr, ptr %16, align 8, !tbaa !5
  %577 = getelementptr inbounds %struct.HandleThreadPool, ptr %576, i32 0, i32 8
  %578 = getelementptr inbounds %struct.MThreadSignal, ptr %577, i32 0, i32 2
  %579 = call i32 @pthread_rwlock_init(ptr noundef %578, ptr noundef null) #4
  br label %580

580:                                              ; preds = %571, %565
  store i32 1, ptr @m_ThreadPool.Sgn_valid.13, align 4, !tbaa !9
  br label %581

581:                                              ; preds = %580, %562
  br label %582

582:                                              ; preds = %581
  br label %583

583:                                              ; preds = %582
  %584 = load ptr, ptr %16, align 8, !tbaa !5
  %585 = getelementptr inbounds %struct.HandleThreadPool, ptr %584, i32 0, i32 8
  %586 = getelementptr inbounds %struct.MThreadSignal, ptr %585, i32 0, i32 0
  %587 = call i32 @pthread_mutex_lock(ptr noundef %586) #4
  br label %588

588:                                              ; preds = %583
  br label %589

589:                                              ; preds = %588
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %590

590:                                              ; preds = %617, %589
  %591 = load i32, ptr %14, align 4, !tbaa !9
  %592 = load ptr, ptr %21, align 8, !tbaa !5
  %593 = getelementptr inbounds %struct.MList, ptr %592, i32 0, i32 0
  %594 = load i32, ptr %593, align 8, !tbaa !13
  %595 = icmp slt i32 %591, %594
  br i1 %595, label %596, label %620

596:                                              ; preds = %590
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %597 = load ptr, ptr %21, align 8, !tbaa !5
  %598 = getelementptr inbounds %struct.MList, ptr %597, i32 0, i32 1
  %599 = load ptr, ptr %598, align 8, !tbaa !23
  %600 = load i32, ptr %14, align 4, !tbaa !9
  %601 = sext i32 %600 to i64
  %602 = getelementptr inbounds ptr, ptr %599, i64 %601
  %603 = load ptr, ptr %602, align 8, !tbaa !5
  store ptr %603, ptr %24, align 8, !tbaa !5
  %604 = load i32, ptr %10, align 4, !tbaa !9
  %605 = load ptr, ptr %24, align 8, !tbaa !5
  %606 = getelementptr inbounds %struct.ThreadBuffData, ptr %605, i32 0, i32 3
  %607 = load i32, ptr %606, align 8, !tbaa !43
  %608 = icmp sle i32 %604, %607
  br i1 %608, label %609, label %613

609:                                              ; preds = %596
  %610 = load ptr, ptr %21, align 8, !tbaa !5
  %611 = load i32, ptr %14, align 4, !tbaa !9
  %612 = call ptr @mListElementInsert(ptr noundef %610, i32 noundef %611, ptr noundef %23, i32 noundef 32)
  store i32 42, ptr %20, align 4
  br label %614

613:                                              ; preds = %596
  store i32 0, ptr %20, align 4
  br label %614

614:                                              ; preds = %613, %609
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  %615 = load i32, ptr %20, align 4
  switch i32 %615, label %639 [
    i32 0, label %616
    i32 42, label %620
  ]

616:                                              ; preds = %614
  br label %617

617:                                              ; preds = %616
  %618 = load i32, ptr %14, align 4, !tbaa !9
  %619 = add nsw i32 %618, 1
  store i32 %619, ptr %14, align 4, !tbaa !9
  br label %590, !llvm.loop !44

620:                                              ; preds = %614, %590
  %621 = load i32, ptr %14, align 4, !tbaa !9
  %622 = load ptr, ptr %21, align 8, !tbaa !5
  %623 = getelementptr inbounds %struct.MList, ptr %622, i32 0, i32 0
  %624 = load i32, ptr %623, align 8, !tbaa !13
  %625 = icmp eq i32 %621, %624
  br i1 %625, label %626, label %630

626:                                              ; preds = %620
  %627 = load ptr, ptr %21, align 8, !tbaa !5
  %628 = load i32, ptr %14, align 4, !tbaa !9
  %629 = call ptr @mListWrite(ptr noundef %627, i32 noundef %628, ptr noundef %23, i32 noundef 32)
  br label %630

630:                                              ; preds = %626, %620
  %631 = load ptr, ptr %16, align 8, !tbaa !5
  %632 = getelementptr inbounds %struct.HandleThreadPool, ptr %631, i32 0, i32 8
  %633 = getelementptr inbounds %struct.MThreadSignal, ptr %632, i32 0, i32 0
  %634 = call i32 @pthread_mutex_unlock(ptr noundef %633) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #4
  store i32 0, ptr %20, align 4
  br label %635

635:                                              ; preds = %630, %541
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %636

636:                                              ; preds = %635, %428, %333, %298
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %637 = load i32, ptr %20, align 4
  switch i32 %637, label %639 [
    i32 0, label %638
    i32 1, label %638
  ]

638:                                              ; preds = %636, %636
  ret void

639:                                              ; preds = %636, %614
  unreachable
}

declare ptr @m_Malloc(i32 noundef) #3

declare ptr @mMornObject(ptr noundef, i32 noundef) #3

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3

declare i32 @mHandleValid(ptr noundef) #3

declare ptr @ListCreate(i32 noundef, ptr noundef) #3

declare void @m_PropertyFunction(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @mornObjectRemove(ptr noundef, ptr noundef) #3

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

; Function Attrs: nounwind
declare i64 @sysconf(i32 noundef) #2

declare void @mListPlace(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #3

declare void @m_PropertyVariate(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

declare ptr @mListElementInsert(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3

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 = { 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 }

!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, !6, i64 16}
!12 = !{!"MHandle", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!13 = !{!14, !10, i64 0}
!14 = !{!"MList", !10, i64 0, !6, i64 8}
!15 = !{!16, !10, i64 8}
!16 = !{!"HandleThreadPool", !6, i64 0, !10, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !17, i64 48, !6, i64 200}
!17 = !{!"MThreadSignal", !7, i64 0, !7, i64 40, !7, i64 88, !10, i64 144}
!18 = !{!16, !6, i64 0}
!19 = !{!16, !6, i64 16}
!20 = !{!16, !10, i64 24}
!21 = !{!16, !10, i64 28}
!22 = !{!16, !10, i64 32}
!23 = !{!14, !6, i64 8}
!24 = !{!25, !10, i64 192}
!25 = !{!"ThreadPoolData", !26, i64 0, !17, i64 8, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !10, i64 192}
!26 = !{!"long", !7, i64 0}
!27 = !{!25, !6, i64 160}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!12, !10, i64 4}
!31 = !{!25, !6, i64 168}
!32 = !{!25, !6, i64 176}
!33 = !{!25, !6, i64 184}
!34 = distinct !{!34, !29}
!35 = !{!16, !10, i64 36}
!36 = !{!16, !6, i64 200}
!37 = !{!26, !26, i64 0}
!38 = distinct !{!38, !29}
!39 = !{!40, !6, i64 0}
!40 = !{!"ThreadBuffData", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24}
!41 = !{!40, !6, i64 8}
!42 = !{!40, !6, i64 16}
!43 = !{!40, !10, i64 24}
!44 = distinct !{!44, !29}


; 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.ThreadBuffData = type { ptr, ptr, ptr, i32 }

@morn_thread_pool_handle = external dso_local local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [82 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@__FUNCTION__.m_ThreadPool = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@m_ThreadPool.Sgn_valid = external hidden local_unnamed_addr global i32, align 4
@m_ThreadPool.Sgn_valid.11 = external hidden local_unnamed_addr global i32, align 4
@m_ThreadPool.Sgn_valid.12 = external hidden local_unnamed_addr global i32, align 4
@m_ThreadPool.Sgn_valid.13 = external hidden local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
declare dso_local void @endThreadPool(ptr noundef) #0

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

; Function Attrs: nounwind
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @pthread_rwlock_init(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

declare i32 @pthread_join(i64 noundef, ptr noundef) local_unnamed_addr #3

; 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 uwtable
declare dso_local void @ThreadFunc(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @ThreadPoolNumber(ptr noundef, ptr noundef) #0

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #3

declare ptr @mListWrite(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local void @m_ThreadPool(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = alloca %struct.ThreadBuffData, align 8
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %8, label %7

7:                                                ; preds = %5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %7, %5
  %9 = icmp eq ptr %1, null
  br i1 %9, label %10, label %11

10:                                               ; preds = %8
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 131, ptr noundef nonnull @__FUNCTION__.m_ThreadPool, ptr noundef nonnull @.str.4) #5
  br label %11

11:                                               ; preds = %10, %8
  %12 = tail call ptr @m_Malloc(i32 noundef 8) #5
  store ptr %2, ptr %12, align 8, !tbaa !9
  %spec.store.select = tail call i32 @llvm.smax.i32(i32 %4, i32 0)
  %13 = icmp ne ptr %0, null
  %14 = load ptr, ptr @morn_thread_pool_handle, align 8
  %15 = icmp eq ptr %14, null
  %16 = select i1 %13, i1 true, i1 %15
  br i1 %16, label %17, label %77

17:                                               ; preds = %11
  br i1 %13, label %20, label %18

18:                                               ; preds = %17
  %19 = tail call ptr @mMornObject(ptr noundef nonnull @.str.5, i32 noundef -1) #5
  br label %20

20:                                               ; preds = %17, %18
  %21 = phi ptr [ %19, %18 ], [ %0, %17 ]
  %22 = tail call ptr @GetHandle(ptr noundef %21, i32 noundef 208, i32 noundef -1992462369, ptr noundef nonnull @endThreadPool) #5
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  %25 = tail call i32 @mHandleValid(ptr noundef %22) #5
  %.not182 = icmp eq i32 %25, 0
  br i1 %.not182, label %26, label %77

26:                                               ; preds = %20
  br i1 %13, label %27, label %30

27:                                               ; preds = %26
  %28 = load i32, ptr %0, align 8, !tbaa !13
  %29 = getelementptr inbounds i8, ptr %24, i64 8
  store i32 %28, ptr %29, align 8, !tbaa !15
  store ptr %0, ptr %24, align 8, !tbaa !18
  store i32 0, ptr %0, align 8, !tbaa !13
  br label %37

30:                                               ; preds = %26
  %31 = load ptr, ptr %24, align 8, !tbaa !18
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %35

33:                                               ; preds = %30
  %34 = tail call ptr @ListCreate(i32 noundef -1, ptr noundef null) #5
  store ptr %34, ptr %24, align 8, !tbaa !18
  br label %35

35:                                               ; preds = %33, %30
  %36 = phi ptr [ %34, %33 ], [ %31, %30 ]
  tail call void @m_PropertyFunction(ptr noundef %21, ptr noundef nonnull @.str.6, ptr noundef nonnull @mornObjectRemove, ptr noundef nonnull @.str.5) #5
  store ptr %24, ptr @morn_thread_pool_handle, align 8, !tbaa !9
  br label %37

37:                                               ; preds = %35, %27
  %.0 = phi ptr [ %0, %27 ], [ %36, %35 ]
  %38 = getelementptr inbounds i8, ptr %24, i64 8
  %39 = tail call ptr @m_PropertyRead(ptr noundef %21, ptr noundef nonnull @.str.7, ptr noundef nonnull %38, ptr noundef null) #5
  %40 = load i32, ptr %38, align 8, !tbaa !15
  %41 = icmp slt i32 %40, 1
  br i1 %41, label %42, label %45

42:                                               ; preds = %37
  %43 = tail call i64 @sysconf(i32 noundef 84) #5
  %44 = trunc i64 %43 to i32
  store i32 %44, ptr %38, align 8, !tbaa !15
  br label %45

45:                                               ; preds = %42, %37
  %46 = phi i32 [ %44, %42 ], [ %40, %37 ]
  tail call void @mListPlace(ptr noundef %.0, ptr noundef null, i32 noundef %46, i32 noundef 200) #5
  tail call void @m_PropertyVariate(ptr noundef %21, ptr noundef nonnull @.str.7, ptr noundef nonnull %38, i32 noundef 4) #5
  %47 = getelementptr inbounds i8, ptr %24, i64 16
  %48 = load ptr, ptr %47, align 8, !tbaa !19
  %49 = icmp eq ptr %48, null
  br i1 %49, label %50, label %52

50:                                               ; preds = %45
  %51 = tail call ptr @ListCreate(i32 noundef -1, ptr noundef null) #5
  store ptr %51, ptr %47, align 8, !tbaa !19
  br label %52

52:                                               ; preds = %50, %45
  %53 = load i32, ptr %.0, align 8, !tbaa !13
  %54 = icmp sgt i32 %53, 4
  %55 = shl nsw i32 %53, 2
  %spec.select196 = select i1 %54, i32 %55, i32 16
  %56 = getelementptr inbounds i8, ptr %24, i64 24
  store i32 %spec.select196, ptr %56, align 8, !tbaa !20
  tail call void @m_PropertyVariate(ptr noundef %21, ptr noundef nonnull @.str.8, ptr noundef nonnull %56, i32 noundef 4) #5
  %57 = getelementptr inbounds i8, ptr %24, i64 28
  store i32 0, ptr %57, align 4, !tbaa !21
  tail call void @m_PropertyVariate(ptr noundef %21, ptr noundef nonnull @.str.9, ptr noundef nonnull %57, i32 noundef 4) #5
  %58 = load i32, ptr %38, align 8, !tbaa !15
  %59 = shl nsw i32 %58, 1
  %60 = getelementptr inbounds i8, ptr %24, i64 32
  store i32 %59, ptr %60, align 8, !tbaa !22
  tail call void @m_PropertyVariate(ptr noundef %21, ptr noundef nonnull @.str.10, ptr noundef nonnull %60, i32 noundef 4) #5
  %61 = load i32, ptr %.0, align 8, !tbaa !13
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %52
  %63 = getelementptr inbounds i8, ptr %.0, i64 8
  br label %64

64:                                               ; preds = %.lr.ph, %72
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %72 ]
  %65 = load ptr, ptr %63, align 8, !tbaa !23
  %66 = getelementptr inbounds ptr, ptr %65, i64 %indvars.iv
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = getelementptr inbounds i8, ptr %67, i64 192
  store volatile i32 0, ptr %68, align 8, !tbaa !24
  %69 = getelementptr inbounds i8, ptr %67, i64 160
  store ptr %24, ptr %69, align 8, !tbaa !27
  %70 = tail call i32 @pthread_create(ptr noundef %67, ptr noundef null, ptr noundef nonnull @ThreadFunc, ptr noundef %67) #5
  %.not201 = icmp eq i32 %70, 0
  br i1 %.not201, label %72, label %71

71:                                               ; preds = %64
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 183, ptr noundef nonnull @__FUNCTION__.m_ThreadPool, ptr noundef nonnull @.str.3) #5
  br label %72

72:                                               ; preds = %71, %64
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %73 = load i32, ptr %.0, align 8, !tbaa !13
  %74 = sext i32 %73 to i64
  %75 = icmp slt i64 %indvars.iv.next, %74
  br i1 %75, label %64, label %._crit_edge, !llvm.loop !28

._crit_edge:                                      ; preds = %72, %52
  tail call void @m_PropertyFunction(ptr noundef %21, ptr noundef nonnull @.str.7, ptr noundef nonnull @ThreadPoolNumber, ptr noundef %24) #5
  %76 = getelementptr inbounds i8, ptr %22, i64 4
  store volatile i32 1, ptr %76, align 4, !tbaa !30
  br label %77

77:                                               ; preds = %20, %._crit_edge, %11
  %.1173 = phi ptr [ %14, %11 ], [ %24, %._crit_edge ], [ %24, %20 ]
  %78 = load ptr, ptr %.1173, align 8, !tbaa !18
  %79 = getelementptr inbounds i8, ptr %.1173, i64 8
  %80 = load i32, ptr %79, align 8, !tbaa !15
  %81 = icmp sgt i32 %80, 0
  br i1 %81, label %.lr.ph214, label %.loopexit202

.lr.ph214:                                        ; preds = %77
  %82 = getelementptr inbounds i8, ptr %78, i64 8
  %83 = load ptr, ptr %82, align 8, !tbaa !23
  %wide.trip.count = zext nneg i32 %80 to i64
  br label %84

84:                                               ; preds = %.lr.ph214, %113
  %indvars.iv225 = phi i64 [ 0, %.lr.ph214 ], [ %indvars.iv.next226, %113 ]
  %85 = getelementptr inbounds ptr, ptr %83, i64 %indvars.iv225
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = getelementptr inbounds i8, ptr %86, i64 192
  %88 = load volatile i32, ptr %87, align 8, !tbaa !24
  %89 = icmp eq i32 %88, 1
  br i1 %89, label %113, label %90

90:                                               ; preds = %84
  %91 = getelementptr inbounds i8, ptr %86, i64 192
  %92 = trunc nuw nsw i64 %indvars.iv225 to i32
  %93 = getelementptr inbounds i8, ptr %86, i64 168
  store ptr %1, ptr %93, align 8, !tbaa !31
  %94 = getelementptr inbounds i8, ptr %86, i64 176
  store ptr %12, ptr %94, align 8, !tbaa !32
  %95 = getelementptr inbounds i8, ptr %86, i64 184
  store ptr %3, ptr %95, align 8, !tbaa !33
  store volatile i32 1, ptr %91, align 8, !tbaa !24
  %96 = load i32, ptr @m_ThreadPool.Sgn_valid, align 4, !tbaa !5
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %98, label %107

98:                                               ; preds = %90
  %99 = getelementptr inbounds i8, ptr %86, i64 152
  %100 = atomicrmw xchg ptr %99, i32 -1135873169 seq_cst, align 8
  %.not184 = icmp eq i32 %100, -1135873169
  br i1 %.not184, label %106, label %101

101:                                              ; preds = %98
  %102 = getelementptr inbounds i8, ptr %86, i64 8
  %103 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %102, ptr noundef null) #5
  %104 = getelementptr inbounds i8, ptr %86, i64 96
  %105 = tail call i32 @pthread_rwlock_init(ptr noundef nonnull %104, ptr noundef null) #5
  br label %106

106:                                              ; preds = %101, %98
  store i32 1, ptr @m_ThreadPool.Sgn_valid, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %106, %90
  %108 = getelementptr inbounds i8, ptr %86, i64 8
  %109 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull %108) #5
  %110 = getelementptr inbounds i8, ptr %86, i64 48
  %111 = tail call i32 @pthread_cond_signal(ptr noundef nonnull %110) #5
  %112 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull %108) #5
  %.pre = load i32, ptr %79, align 8, !tbaa !15
  br label %.loopexit202

113:                                              ; preds = %84
  %indvars.iv.next226 = add nuw nsw i64 %indvars.iv225, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next226, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit202, label %84, !llvm.loop !34

.loopexit202:                                     ; preds = %113, %77, %107
  %114 = phi i32 [ %.pre, %107 ], [ %80, %77 ], [ %80, %113 ]
  %.1207 = phi i32 [ %92, %107 ], [ 0, %77 ], [ %80, %113 ]
  %115 = add nsw i32 %114, -1
  %116 = icmp eq i32 %.1207, %115
  br i1 %116, label %117, label %119

117:                                              ; preds = %.loopexit202
  %118 = getelementptr inbounds i8, ptr %.1173, i64 36
  store i32 0, ptr %118, align 4, !tbaa !35
  br label %251

119:                                              ; preds = %.loopexit202
  %120 = icmp slt i32 %.1207, %115
  br i1 %120, label %121, label %165

121:                                              ; preds = %119
  %122 = getelementptr inbounds i8, ptr %.1173, i64 28
  %123 = load i32, ptr %122, align 4, !tbaa !21
  %.not191 = icmp ne i32 %123, 0
  %124 = icmp sgt i32 %114, 2
  %or.cond = and i1 %124, %.not191
  br i1 %or.cond, label %125, label %251

125:                                              ; preds = %121
  %126 = getelementptr inbounds i8, ptr %78, i64 8
  %127 = load ptr, ptr %126, align 8, !tbaa !23
  %128 = zext nneg i32 %115 to i64
  %129 = getelementptr inbounds ptr, ptr %127, i64 %128
  %130 = load ptr, ptr %129, align 8, !tbaa !9
  %131 = getelementptr inbounds i8, ptr %130, i64 192
  %132 = load volatile i32, ptr %131, align 8, !tbaa !24
  %.not192 = icmp eq i32 %132, 0
  %133 = getelementptr inbounds i8, ptr %.1173, i64 36
  br i1 %.not192, label %135, label %134

134:                                              ; preds = %125
  store i32 0, ptr %133, align 4, !tbaa !35
  br label %251

135:                                              ; preds = %125
  %136 = load i32, ptr %133, align 4, !tbaa !35
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %133, align 4, !tbaa !35
  %spec.select197 = tail call i32 @llvm.umax.i32(i32 %114, i32 8)
  %.not193 = icmp slt i32 %136, %spec.select197
  br i1 %.not193, label %251, label %138

138:                                              ; preds = %135
  %139 = getelementptr inbounds i8, ptr %.1173, i64 200
  %140 = load ptr, ptr %139, align 8, !tbaa !36
  %.not194 = icmp eq ptr %140, null
  br i1 %.not194, label %144, label %141

141:                                              ; preds = %138
  %142 = load i64, ptr %140, align 8, !tbaa !37
  %143 = tail call i32 @pthread_join(i64 noundef %142, ptr noundef null) #5
  br label %144

144:                                              ; preds = %141, %138
  %145 = getelementptr inbounds i8, ptr %130, i64 168
  store ptr null, ptr %145, align 8, !tbaa !31
  store volatile i32 1, ptr %131, align 8, !tbaa !24
  %146 = load i32, ptr @m_ThreadPool.Sgn_valid.11, align 4, !tbaa !5
  %147 = icmp eq i32 %146, 0
  br i1 %147, label %148, label %157

148:                                              ; preds = %144
  %149 = getelementptr inbounds i8, ptr %130, i64 152
  %150 = atomicrmw xchg ptr %149, i32 -1135873169 seq_cst, align 8
  %.not195 = icmp eq i32 %150, -1135873169
  br i1 %.not195, label %156, label %151

151:                                              ; preds = %148
  %152 = getelementptr inbounds i8, ptr %130, i64 8
  %153 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %152, ptr noundef null) #5
  %154 = getelementptr inbounds i8, ptr %130, i64 96
  %155 = tail call i32 @pthread_rwlock_init(ptr noundef nonnull %154, ptr noundef null) #5
  br label %156

156:                                              ; preds = %151, %148
  store i32 1, ptr @m_ThreadPool.Sgn_valid.11, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %156, %144
  %158 = getelementptr inbounds i8, ptr %130, i64 8
  %159 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull %158) #5
  %160 = getelementptr inbounds i8, ptr %130, i64 48
  %161 = tail call i32 @pthread_cond_signal(ptr noundef nonnull %160) #5
  %162 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull %158) #5
  %163 = load i32, ptr %78, align 8, !tbaa !13
  %164 = add nsw i32 %163, -1
  store i32 %164, ptr %78, align 8, !tbaa !13
  store i32 %164, ptr %79, align 8, !tbaa !15
  store ptr %130, ptr %139, align 8, !tbaa !36
  br label %251

165:                                              ; preds = %119
  %166 = getelementptr inbounds i8, ptr %.1173, i64 16
  %167 = load ptr, ptr %166, align 8, !tbaa !19
  %168 = load i32, ptr %167, align 8, !tbaa !13
  %169 = getelementptr inbounds i8, ptr %.1173, i64 24
  %170 = load i32, ptr %169, align 8, !tbaa !20
  %171 = icmp eq i32 %168, %170
  br i1 %171, label %172, label %213

172:                                              ; preds = %165
  %173 = getelementptr inbounds i8, ptr %.1173, i64 28
  %174 = load i32, ptr %173, align 4, !tbaa !21
  %.not185 = icmp eq i32 %174, 0
  br i1 %.not185, label %213, label %175

175:                                              ; preds = %172
  %176 = getelementptr inbounds i8, ptr %.1173, i64 32
  %177 = load i32, ptr %176, align 8, !tbaa !22
  %178 = icmp slt i32 %114, %177
  br i1 %178, label %179, label %213

179:                                              ; preds = %175
  %180 = tail call ptr @mListWrite(ptr noundef %78, i32 noundef -1, ptr noundef null, i32 noundef 200) #5
  %181 = load i32, ptr %78, align 8, !tbaa !13
  store i32 %181, ptr %79, align 8, !tbaa !15
  %182 = getelementptr inbounds i8, ptr %.1173, i64 200
  %183 = load ptr, ptr %182, align 8, !tbaa !36
  %.not189 = icmp eq ptr %183, null
  br i1 %.not189, label %187, label %184

184:                                              ; preds = %179
  %185 = load i64, ptr %183, align 8, !tbaa !37
  %186 = tail call i32 @pthread_join(i64 noundef %185, ptr noundef null) #5
  br label %187

187:                                              ; preds = %184, %179
  store ptr null, ptr %182, align 8, !tbaa !36
  %188 = getelementptr inbounds i8, ptr %180, i64 160
  store ptr %.1173, ptr %188, align 8, !tbaa !27
  %189 = getelementptr inbounds i8, ptr %180, i64 168
  store ptr %1, ptr %189, align 8, !tbaa !31
  %190 = getelementptr inbounds i8, ptr %180, i64 176
  store ptr %12, ptr %190, align 8, !tbaa !32
  %191 = getelementptr inbounds i8, ptr %180, i64 184
  store ptr %3, ptr %191, align 8, !tbaa !33
  %192 = getelementptr inbounds i8, ptr %180, i64 192
  store volatile i32 1, ptr %192, align 8, !tbaa !24
  %193 = tail call i32 @pthread_create(ptr noundef %180, ptr noundef null, ptr noundef nonnull @ThreadFunc, ptr noundef %180) #5
  %.not200 = icmp eq i32 %193, 0
  br i1 %.not200, label %195, label %194

194:                                              ; preds = %187
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 239, ptr noundef nonnull @__FUNCTION__.m_ThreadPool, ptr noundef nonnull @.str.3) #5
  br label %195

195:                                              ; preds = %194, %187
  %196 = load i32, ptr @m_ThreadPool.Sgn_valid.12, align 4, !tbaa !5
  %197 = icmp eq i32 %196, 0
  br i1 %197, label %198, label %207

198:                                              ; preds = %195
  %199 = getelementptr inbounds i8, ptr %180, i64 152
  %200 = atomicrmw xchg ptr %199, i32 -1135873169 seq_cst, align 8
  %.not190 = icmp eq i32 %200, -1135873169
  br i1 %.not190, label %206, label %201

201:                                              ; preds = %198
  %202 = getelementptr inbounds i8, ptr %180, i64 8
  %203 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %202, ptr noundef null) #5
  %204 = getelementptr inbounds i8, ptr %180, i64 96
  %205 = tail call i32 @pthread_rwlock_init(ptr noundef nonnull %204, ptr noundef null) #5
  br label %206

206:                                              ; preds = %201, %198
  store i32 1, ptr @m_ThreadPool.Sgn_valid.12, align 4, !tbaa !5
  br label %207

207:                                              ; preds = %206, %195
  %208 = getelementptr inbounds i8, ptr %180, i64 8
  %209 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull %208) #5
  %210 = getelementptr inbounds i8, ptr %180, i64 48
  %211 = tail call i32 @pthread_cond_signal(ptr noundef nonnull %210) #5
  %212 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull %208) #5
  br label %251

213:                                              ; preds = %175, %172, %165
  %.not186 = icmp slt i32 %168, %170
  br i1 %.not186, label %214, label %.split, !llvm.loop !38

.split:                                           ; preds = %213, %.split
  br label %.split

214:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  store ptr %1, ptr %6, align 8, !tbaa !39
  %215 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %12, ptr %215, align 8, !tbaa !41
  %216 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %3, ptr %216, align 8, !tbaa !42
  %217 = getelementptr inbounds i8, ptr %6, i64 24
  store i32 %spec.store.select, ptr %217, align 8, !tbaa !43
  %218 = load i32, ptr @m_ThreadPool.Sgn_valid.13, align 4, !tbaa !5
  %219 = icmp eq i32 %218, 0
  br i1 %219, label %220, label %229

220:                                              ; preds = %214
  %221 = getelementptr inbounds i8, ptr %.1173, i64 192
  %222 = atomicrmw xchg ptr %221, i32 -1135873169 seq_cst, align 8
  %.not187 = icmp eq i32 %222, -1135873169
  br i1 %.not187, label %228, label %223

223:                                              ; preds = %220
  %224 = getelementptr inbounds i8, ptr %.1173, i64 48
  %225 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %224, ptr noundef null) #5
  %226 = getelementptr inbounds i8, ptr %.1173, i64 136
  %227 = tail call i32 @pthread_rwlock_init(ptr noundef nonnull %226, ptr noundef null) #5
  br label %228

228:                                              ; preds = %223, %220
  store i32 1, ptr @m_ThreadPool.Sgn_valid.13, align 4, !tbaa !5
  br label %229

229:                                              ; preds = %228, %214
  %230 = getelementptr inbounds i8, ptr %.1173, i64 48
  %231 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull %230) #5
  %232 = load i32, ptr %167, align 8, !tbaa !13
  %233 = icmp sgt i32 %232, 0
  br i1 %233, label %.lr.ph217, label %.loopexit

.lr.ph217:                                        ; preds = %229
  %234 = getelementptr inbounds i8, ptr %167, i64 8
  %235 = load ptr, ptr %234, align 8, !tbaa !23
  %wide.trip.count231 = zext nneg i32 %232 to i64
  br label %236

236:                                              ; preds = %.lr.ph217, %244
  %indvars.iv228 = phi i64 [ 0, %.lr.ph217 ], [ %indvars.iv.next229, %244 ]
  %237 = getelementptr inbounds ptr, ptr %235, i64 %indvars.iv228
  %238 = load ptr, ptr %237, align 8, !tbaa !9
  %239 = getelementptr inbounds i8, ptr %238, i64 24
  %240 = load i32, ptr %239, align 8, !tbaa !43
  %.not188 = icmp sgt i32 %spec.store.select, %240
  br i1 %.not188, label %244, label %241

241:                                              ; preds = %236
  %242 = trunc nuw nsw i64 %indvars.iv228 to i32
  %243 = call ptr @mListElementInsert(ptr noundef nonnull %167, i32 noundef %242, ptr noundef nonnull %6, i32 noundef 32) #5
  %.pre233 = load i32, ptr %167, align 8, !tbaa !13
  br label %.loopexit

244:                                              ; preds = %236
  %indvars.iv.next229 = add nuw nsw i64 %indvars.iv228, 1
  %exitcond232.not = icmp eq i64 %indvars.iv.next229, %wide.trip.count231
  br i1 %exitcond232.not, label %.loopexit.thread, label %236, !llvm.loop !44

.loopexit:                                        ; preds = %229, %241
  %245 = phi i32 [ %.pre233, %241 ], [ %232, %229 ]
  %.2204 = phi i32 [ %242, %241 ], [ 0, %229 ]
  %246 = icmp eq i32 %.2204, %245
  br i1 %246, label %.loopexit.thread, label %249

.loopexit.thread:                                 ; preds = %244, %.loopexit
  %247 = phi i32 [ %245, %.loopexit ], [ %232, %244 ]
  %248 = call ptr @mListWrite(ptr noundef nonnull %167, i32 noundef %247, ptr noundef nonnull %6, i32 noundef 32) #5
  br label %249

249:                                              ; preds = %.loopexit.thread, %.loopexit
  %250 = call i32 @pthread_mutex_unlock(ptr noundef nonnull %230) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  br label %251

251:                                              ; preds = %207, %249, %121, %157, %135, %134, %117
  ret void
}

declare ptr @m_Malloc(i32 noundef) local_unnamed_addr #3

declare ptr @mMornObject(ptr noundef, i32 noundef) local_unnamed_addr #3

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @mHandleValid(ptr noundef) local_unnamed_addr #3

declare ptr @ListCreate(i32 noundef, ptr noundef) local_unnamed_addr #3

declare void @m_PropertyFunction(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @mornObjectRemove(ptr noundef, ptr noundef) #3

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

; Function Attrs: nounwind
declare i64 @sysconf(i32 noundef) local_unnamed_addr #2

declare void @mListPlace(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @m_PropertyVariate(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare ptr @mListElementInsert(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"MHandle", !6, i64 0, !6, i64 4, !10, i64 8, !10, i64 16}
!13 = !{!14, !6, i64 0}
!14 = !{!"MList", !6, i64 0, !10, i64 8}
!15 = !{!16, !6, i64 8}
!16 = !{!"HandleThreadPool", !10, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !17, i64 48, !10, i64 200}
!17 = !{!"MThreadSignal", !7, i64 0, !7, i64 40, !7, i64 88, !6, i64 144}
!18 = !{!16, !10, i64 0}
!19 = !{!16, !10, i64 16}
!20 = !{!16, !6, i64 24}
!21 = !{!16, !6, i64 28}
!22 = !{!16, !6, i64 32}
!23 = !{!14, !10, i64 8}
!24 = !{!25, !6, i64 192}
!25 = !{!"ThreadPoolData", !26, i64 0, !17, i64 8, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !6, i64 192}
!26 = !{!"long", !7, i64 0}
!27 = !{!25, !10, i64 160}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!12, !6, i64 4}
!31 = !{!25, !10, i64 168}
!32 = !{!25, !10, i64 176}
!33 = !{!25, !10, i64 184}
!34 = distinct !{!34, !29}
!35 = !{!16, !6, i64 36}
!36 = !{!16, !10, i64 200}
!37 = !{!26, !26, i64 0}
!38 = distinct !{!38, !29}
!39 = !{!40, !10, i64 0}
!40 = !{!"ThreadBuffData", !10, i64 0, !10, i64 8, !10, i64 16, !6, i64 24}
!41 = !{!40, !10, i64 8}
!42 = !{!40, !10, i64 16}
!43 = !{!40, !6, i64 24}
!44 = distinct !{!44, !29}


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