; LLVM IR from vczh/herodb :: Kernel/Source/Vlpp.ll (ZN2vl18threading_internal15ThreadPoolQueueERKNS_4FuncIFvvEEE)

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

%"class.vl::SpinLock" = type { %"class.vl::Object", i64 }
%"class.vl::Object" = type { ptr }
%"class.vl::SpinLock::Scope" = type { %"class.vl::Object", ptr }
%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::Ptr.1125" = type { ptr, ptr, ptr, ptr }
%"struct.vl::threading_internal::ThreadPoolData" = type { %"class.vl::Semaphore", %"class.vl::EventObject", %"class.vl::Ptr.1125", ptr, i8, %"class.vl::collections::List.1126" }
%"class.vl::Semaphore" = type { %"class.vl::WaitableObject", ptr }
%"class.vl::WaitableObject" = type { %"class.vl::Object" }
%"class.vl::EventObject" = type { %"class.vl::WaitableObject", ptr }
%"class.vl::collections::List.1126" = type { %"class.vl::collections::ListBase.base.1132", %"class.vl::collections::IEnumerable.1130" }
%"class.vl::collections::ListBase.base.1132" = type <{ %"class.vl::collections::ArrayBase.base.1131", i64, i8 }>
%"class.vl::collections::ArrayBase.base.1131" = type { %"class.vl::collections::ListStore.1129", ptr, i64 }
%"class.vl::collections::ListStore.1129" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.1130" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"struct.vl::threading_internal::ThreadPoolTask" = type { %"class.vl::Func", %"class.vl::Ptr.1125" }
%"class.vl::Func" = type { %"class.vl::Object", %"class.vl::Ptr.1124" }
%"class.vl::Ptr.1124" = type { ptr, ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [1 x i32], align 4
@_ZN2vl18threading_internal14threadPoolLockE = external dso_local global %"class.vl::SpinLock", align 8
@_ZN2vl18threading_internal14threadPoolDataE = external dso_local global ptr, align 8

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i1 noundef zeroext) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl11EventObject20CreateManualUnsignalEbRKNS_12ObjectStringIwEE(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN2vl6Thread14CreateAndStartEPFvPS0_PvES2_b(ptr noundef, ptr noundef, i1 noundef zeroext) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN2vl6Thread11GetCPUCountEv() #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl9Semaphore6CreateEllRKNS_12ObjectStringIwEE(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl9Semaphore7ReleaseEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl11EventObject8UnsignalEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl18threading_internal14ThreadPoolProcEPNS_6ThreadEPv(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl3PtrINS_18threading_internal14ThreadPoolTaskEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2vl3PtrINS_18threading_internal14ThreadPoolTaskEEptEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vl3PtrINS_18threading_internal14ThreadPoolTaskEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2vl18threading_internal15ThreadPoolQueueERKNS_4FuncIFvvEEE(ptr noundef nonnull align 8 dereferenceable(40) %0) #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca %"class.vl::SpinLock::Scope", align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.vl::ObjectString", align 8
  %11 = alloca %"class.vl::ObjectString", align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.vl::Ptr.1125", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #6
  store i8 1, ptr %4, align 1, !tbaa !9
  %15 = load i8, ptr %4, align 1, !tbaa !9, !range !11, !noundef !12
  %16 = trunc i8 %15 to i1
  br i1 %16, label %17, label %140

17:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  call void @_ZN2vl8SpinLock5ScopeC1ERS0_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) @_ZN2vl18threading_internal14threadPoolLockE)
  store ptr %6, ptr %5, align 8, !tbaa !5
  br label %18

18:                                               ; preds = %135, %17
  %19 = load i8, ptr %4, align 1, !tbaa !9, !range !11, !noundef !12
  %20 = trunc i8 %19 to i1
  br i1 %20, label %22, label %21

21:                                               ; preds = %18
  store i32 2, ptr %7, align 4
  br label %136

22:                                               ; preds = %18
  %23 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %90, label %25

25:                                               ; preds = %22
  %26 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 128) #7
          to label %27 unwind label %49

27:                                               ; preds = %25
  invoke void @_ZN2vl18threading_internal14ThreadPoolDataC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %26)
          to label %28 unwind label %53

28:                                               ; preds = %27
  store ptr %26, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %29 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.vl::threading_internal::ThreadPoolData", ptr %29, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #6
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef @.str.2, i1 noundef zeroext true)
          to label %31 unwind label %57

31:                                               ; preds = %28
  %32 = invoke noundef zeroext i1 @_ZN2vl9Semaphore6CreateEllRKNS_12ObjectStringIwEE(ptr noundef nonnull align 8 dereferenceable(16) %30, i64 noundef 0, i64 noundef 65536, ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %33 unwind label %61

33:                                               ; preds = %31
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #6
  %34 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.vl::threading_internal::ThreadPoolData", ptr %34, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #6
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef @.str.2, i1 noundef zeroext true)
          to label %36 unwind label %66

36:                                               ; preds = %33
  %37 = invoke noundef zeroext i1 @_ZN2vl11EventObject20CreateManualUnsignalEbRKNS_12ObjectStringIwEE(ptr noundef nonnull align 8 dereferenceable(16) %35, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(48) %11)
          to label %38 unwind label %70

38:                                               ; preds = %36
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #6
  %39 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.vl::threading_internal::ThreadPoolData", ptr %39, i32 0, i32 2
  %41 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.vl::threading_internal::ThreadPoolData", ptr %41, i32 0, i32 3
  store ptr %40, ptr %42, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !25
  br label %43

43:                                               ; preds = %82, %38
  %44 = load i64, ptr %12, align 8, !tbaa !25
  %45 = call noundef i64 @_ZN2vl6Thread11GetCPUCountEv()
  %46 = mul nsw i64 %45, 4
  %47 = icmp slt i64 %44, %46
  br i1 %47, label %75, label %48

48:                                               ; preds = %43
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %89

49:                                               ; preds = %25
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %8, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %9, align 4
  br label %138

53:                                               ; preds = %27
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %8, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %26, i64 noundef 128) #8
  br label %138

57:                                               ; preds = %28
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %8, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %9, align 4
  br label %65

61:                                               ; preds = %31
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %8, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %9, align 4
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  br label %65

65:                                               ; preds = %61, %57
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #6
  br label %138

66:                                               ; preds = %33
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %8, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %9, align 4
  br label %74

70:                                               ; preds = %36
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %8, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %9, align 4
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  br label %74

74:                                               ; preds = %70, %66
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #6
  br label %138

75:                                               ; preds = %43
  %76 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.vl::threading_internal::ThreadPoolData", ptr %76, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %78 = invoke noundef ptr @_ZN2vl6Thread14CreateAndStartEPFvPS0_PvES2_b(ptr noundef @_ZN2vl18threading_internal14ThreadPoolProcEPNS_6ThreadEPv, ptr noundef null, i1 noundef zeroext false)
          to label %79 unwind label %85

79:                                               ; preds = %75
  store ptr %78, ptr %13, align 8, !tbaa !5
  %80 = invoke noundef i64 @_ZN2vl11collections4ListIPNS_6ThreadES3_E3AddERKS3_(ptr noundef nonnull align 8 dereferenceable(33) %77, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %81 unwind label %85

81:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %82

82:                                               ; preds = %81
  %83 = load i64, ptr %12, align 8, !tbaa !25
  %84 = add nsw i64 %83, 1
  store i64 %84, ptr %12, align 8, !tbaa !25
  br label %43, !llvm.loop !26

85:                                               ; preds = %79, %75
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %8, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %138

89:                                               ; preds = %48
  br label %90

90:                                               ; preds = %89, %22
  %91 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %134

93:                                               ; preds = %90
  %94 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.vl::threading_internal::ThreadPoolData", ptr %94, i32 0, i32 4
  %96 = load volatile i8, ptr %95, align 8, !tbaa !28, !range !11, !noundef !12
  %97 = trunc i8 %96 to i1
  br i1 %97, label %98, label %99

98:                                               ; preds = %93
  store i1 false, ptr %2, align 1
  store i32 1, ptr %7, align 4
  br label %136

99:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  invoke void @_ZN2vl7MakePtrINS_18threading_internal14ThreadPoolTaskEJEEENS_3PtrIT_EEDpT0_(ptr dead_on_unwind writable sret(%"class.vl::Ptr.1125") align 8 %14)
          to label %100 unwind label %125

100:                                              ; preds = %99
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = invoke noundef ptr @_ZNK2vl3PtrINS_18threading_internal14ThreadPoolTaskEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %103 unwind label %129

103:                                              ; preds = %100
  %104 = getelementptr inbounds %"struct.vl::threading_internal::ThreadPoolTask", ptr %102, i32 0, i32 0
  %105 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vl4FuncIFvvEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(40) %104, ptr noundef nonnull align 8 dereferenceable(40) %101)
          to label %106 unwind label %129

106:                                              ; preds = %103
  %107 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.vl::threading_internal::ThreadPoolData", ptr %107, i32 0, i32 3
  %109 = load ptr, ptr %108, align 8, !tbaa !13
  %110 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl3PtrINS_18threading_internal14ThreadPoolTaskEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %109, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %111 unwind label %129

111:                                              ; preds = %106
  %112 = invoke noundef ptr @_ZNK2vl3PtrINS_18threading_internal14ThreadPoolTaskEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %113 unwind label %129

113:                                              ; preds = %111
  %114 = getelementptr inbounds %"struct.vl::threading_internal::ThreadPoolTask", ptr %112, i32 0, i32 1
  %115 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.vl::threading_internal::ThreadPoolData", ptr %115, i32 0, i32 3
  store ptr %114, ptr %116, align 8, !tbaa !13
  %117 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.vl::threading_internal::ThreadPoolData", ptr %117, i32 0, i32 0
  %119 = invoke noundef zeroext i1 @_ZN2vl9Semaphore7ReleaseEv(ptr noundef nonnull align 8 dereferenceable(16) %118)
          to label %120 unwind label %129

120:                                              ; preds = %113
  %121 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.vl::threading_internal::ThreadPoolData", ptr %121, i32 0, i32 1
  %123 = invoke noundef zeroext i1 @_ZN2vl11EventObject8UnsignalEv(ptr noundef nonnull align 8 dereferenceable(16) %122)
          to label %124 unwind label %129

124:                                              ; preds = %120
  call void @_ZN2vl3PtrINS_18threading_internal14ThreadPoolTaskEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %134

125:                                              ; preds = %99
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %8, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %9, align 4
  br label %133

129:                                              ; preds = %120, %113, %111, %106, %103, %100
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %8, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %9, align 4
  call void @_ZN2vl3PtrINS_18threading_internal14ThreadPoolTaskEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %133

133:                                              ; preds = %129, %125
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %138

134:                                              ; preds = %124, %90
  br label %135

135:                                              ; preds = %134
  store i8 0, ptr %4, align 1, !tbaa !9
  br label %18, !llvm.loop !29

136:                                              ; preds = %98, %21
  call void @_ZN2vl8SpinLock5ScopeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  %137 = load i32, ptr %7, align 4
  switch i32 %137, label %141 [
    i32 2, label %139
  ]

138:                                              ; preds = %133, %85, %74, %65, %53, %49
  call void @_ZN2vl8SpinLock5ScopeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  br label %146

139:                                              ; preds = %136
  br label %140

140:                                              ; preds = %139, %1
  store i32 0, ptr %7, align 4
  br label %141

141:                                              ; preds = %140, %136
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  %142 = load i32, ptr %7, align 4
  switch i32 %142, label %151 [
    i32 0, label %143
    i32 1, label %144
  ]

143:                                              ; preds = %141
  store i1 true, ptr %2, align 1
  br label %144

144:                                              ; preds = %143, %141
  %145 = load i1, ptr %2, align 1
  ret i1 %145

146:                                              ; preds = %138
  %147 = load ptr, ptr %8, align 8
  %148 = load i32, ptr %9, align 4
  %149 = insertvalue { ptr, i32 } poison, ptr %147, 0
  %150 = insertvalue { ptr, i32 } %149, i32 %148, 1
  resume { ptr, i32 } %150

151:                                              ; preds = %141
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2vl18threading_internal14ThreadPoolDataC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN2vl11collections4ListIPNS_6ThreadES3_E3AddERKS3_(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7MakePtrINS_18threading_internal14ThreadPoolTaskEJEEENS_3PtrIT_EEDpT0_(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.1125") align 8) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vl4FuncIFvvEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #5 align 2

declare void @_ZN2vl8SpinLock5ScopeC1ERS0_(ptr, ptr)

declare void @_ZN2vl8SpinLock5ScopeD1Ev(ptr)

attributes #0 = { nobuiltin 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !6, i64 64}
!14 = !{!"_ZTSN2vl18threading_internal14ThreadPoolDataE", !15, i64 0, !18, i64 16, !19, i64 32, !6, i64 64, !10, i64 72, !20, i64 80}
!15 = !{!"_ZTSN2vl9SemaphoreE", !16, i64 0, !6, i64 8}
!16 = !{!"_ZTSN2vl14WaitableObjectE", !17, i64 0}
!17 = !{!"_ZTSN2vl6ObjectE"}
!18 = !{!"_ZTSN2vl11EventObjectE", !16, i64 0, !6, i64 8}
!19 = !{!"_ZTSN2vl3PtrINS_18threading_internal14ThreadPoolTaskEEE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!20 = !{!"_ZTSN2vl11collections4ListIPNS_6ThreadES3_EE", !21, i64 0}
!21 = !{!"_ZTSN2vl11collections8ListBaseIPNS_6ThreadES3_EE", !22, i64 0, !24, i64 24, !10, i64 32}
!22 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_6ThreadEEE", !23, i64 0, !6, i64 8, !24, i64 16}
!23 = !{!"_ZTSN2vl11collections9ListStoreIPNS_6ThreadELb1EEE", !17, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!24, !24, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!14, !10, i64 72}
!29 = distinct !{!29, !27}


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

%"class.vl::SpinLock" = type { %"class.vl::Object", i64 }
%"class.vl::Object" = type { ptr }
%"class.vl::SpinLock::Scope" = type { %"class.vl::Object", ptr }
%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::Ptr.1125" = type { ptr, ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [1 x i32], align 4
@_ZN2vl18threading_internal14threadPoolLockE = external dso_local global %"class.vl::SpinLock", align 8
@_ZN2vl18threading_internal14threadPoolDataE = external dso_local local_unnamed_addr global ptr, align 8

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i1 noundef zeroext) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl11EventObject20CreateManualUnsignalEbRKNS_12ObjectStringIwEE(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN2vl6Thread14CreateAndStartEPFvPS0_PvES2_b(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN2vl6Thread11GetCPUCountEv() local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl9Semaphore6CreateEllRKNS_12ObjectStringIwEE(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl9Semaphore7ReleaseEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl11EventObject8UnsignalEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl18threading_internal14ThreadPoolProcEPNS_6ThreadEPv(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl3PtrINS_18threading_internal14ThreadPoolTaskEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2vl3PtrINS_18threading_internal14ThreadPoolTaskEEptEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vl3PtrINS_18threading_internal14ThreadPoolTaskEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2vl18threading_internal15ThreadPoolQueueERKNS_4FuncIFvvEEE(ptr noundef nonnull align 8 dereferenceable(40) %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.vl::SpinLock::Scope", align 8
  %3 = alloca %"class.vl::ObjectString", align 8
  %4 = alloca %"class.vl::ObjectString", align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.vl::Ptr.1125", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @_ZN2vl8SpinLock5ScopeC1ERS0_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) @_ZN2vl18threading_internal14threadPoolLockE)
  %7 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %8, label %.thread

8:                                                ; preds = %1
  %9 = invoke noalias noundef nonnull dereferenceable(128) ptr @_Znwm(i64 noundef 128) #7
          to label %10 unwind label %25

10:                                               ; preds = %8
  invoke void @_ZN2vl18threading_internal14ThreadPoolDataC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %9)
          to label %11 unwind label %27

11:                                               ; preds = %10
  store ptr %9, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #6
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull @.str.2, i1 noundef zeroext true)
          to label %12 unwind label %29

12:                                               ; preds = %11
  %13 = invoke noundef zeroext i1 @_ZN2vl9Semaphore6CreateEllRKNS_12ObjectStringIwEE(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef 0, i64 noundef 65536, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %14 unwind label %31

14:                                               ; preds = %12
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #6
  %15 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #6
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull @.str.2, i1 noundef zeroext true)
          to label %16 unwind label %34

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %15, i64 16
  %18 = invoke noundef zeroext i1 @_ZN2vl11EventObject20CreateManualUnsignalEbRKNS_12ObjectStringIwEE(ptr noundef nonnull align 8 dereferenceable(16) %17, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %19 unwind label %36

19:                                               ; preds = %16
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  %20 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 32
  %22 = getelementptr inbounds i8, ptr %20, i64 64
  store ptr %21, ptr %22, align 8, !tbaa !9
  %23 = call noundef i64 @_ZN2vl6Thread11GetCPUCountEv()
  %24 = icmp sgt i64 %23, 0
  br i1 %24, label %.lr.ph, label %._crit_edge

25:                                               ; preds = %8
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %81

27:                                               ; preds = %10
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %9, i64 noundef 128) #8
  br label %81

29:                                               ; preds = %11
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %33

31:                                               ; preds = %12
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #6
  br label %33

33:                                               ; preds = %31, %29
  %.pn = phi { ptr, i32 } [ %32, %31 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #6
  br label %81

34:                                               ; preds = %14
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %38

36:                                               ; preds = %16
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  br label %38

38:                                               ; preds = %36, %34
  %.pn23 = phi { ptr, i32 } [ %37, %36 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  br label %81

.lr.ph:                                           ; preds = %19, %44
  %.046 = phi i64 [ %45, %44 ], [ 0, %19 ]
  %39 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %40 = invoke noundef ptr @_ZN2vl6Thread14CreateAndStartEPFvPS0_PvES2_b(ptr noundef nonnull @_ZN2vl18threading_internal14ThreadPoolProcEPNS_6ThreadEPv, ptr noundef null, i1 noundef zeroext false)
          to label %41 unwind label %49

41:                                               ; preds = %.lr.ph
  %42 = getelementptr inbounds i8, ptr %39, i64 80
  store ptr %40, ptr %5, align 8, !tbaa !5
  %43 = invoke noundef i64 @_ZN2vl11collections4ListIPNS_6ThreadES3_E3AddERKS3_(ptr noundef nonnull align 8 dereferenceable(33) %42, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %44 unwind label %49

44:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %45 = add nuw nsw i64 %.046, 1
  %46 = call noundef i64 @_ZN2vl6Thread11GetCPUCountEv()
  %47 = shl nsw i64 %46, 2
  %48 = icmp slt i64 %45, %47
  br i1 %48, label %.lr.ph, label %._crit_edge, !llvm.loop !22

49:                                               ; preds = %41, %.lr.ph
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %81

._crit_edge:                                      ; preds = %44, %19
  %.pr = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %.not25 = icmp eq ptr %.pr, null
  br i1 %.not25, label %.critedge, label %.thread

.thread:                                          ; preds = %1, %._crit_edge
  %51 = phi ptr [ %.pr, %._crit_edge ], [ %7, %1 ]
  %52 = getelementptr inbounds i8, ptr %51, i64 72
  %53 = load volatile i8, ptr %52, align 8, !tbaa !24, !range !25, !noundef !26
  %54 = trunc nuw i8 %53 to i1
  br i1 %54, label %80, label %55

55:                                               ; preds = %.thread
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  invoke void @_ZN2vl7MakePtrINS_18threading_internal14ThreadPoolTaskEJEEENS_3PtrIT_EEDpT0_(ptr dead_on_unwind nonnull writable sret(%"class.vl::Ptr.1125") align 8 %6)
          to label %56 unwind label %75

56:                                               ; preds = %55
  %57 = call noundef ptr @_ZNK2vl3PtrINS_18threading_internal14ThreadPoolTaskEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  %58 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vl4FuncIFvvEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(40) %57, ptr noundef nonnull align 8 dereferenceable(40) %0)
          to label %59 unwind label %77

59:                                               ; preds = %56
  %60 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 64
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl3PtrINS_18threading_internal14ThreadPoolTaskEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %62, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %64 unwind label %77

64:                                               ; preds = %59
  %65 = call noundef ptr @_ZNK2vl3PtrINS_18threading_internal14ThreadPoolTaskEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  %66 = getelementptr inbounds i8, ptr %65, i64 40
  %67 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 64
  store ptr %66, ptr %68, align 8, !tbaa !9
  %69 = invoke noundef zeroext i1 @_ZN2vl9Semaphore7ReleaseEv(ptr noundef nonnull align 8 dereferenceable(16) %67)
          to label %70 unwind label %77

70:                                               ; preds = %64
  %71 = load ptr, ptr @_ZN2vl18threading_internal14threadPoolDataE, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 16
  %73 = invoke noundef zeroext i1 @_ZN2vl11EventObject8UnsignalEv(ptr noundef nonnull align 8 dereferenceable(16) %72)
          to label %74 unwind label %77

74:                                               ; preds = %70
  call void @_ZN2vl3PtrINS_18threading_internal14ThreadPoolTaskEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %.critedge

75:                                               ; preds = %55
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %79

77:                                               ; preds = %70, %64, %59, %56
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl3PtrINS_18threading_internal14ThreadPoolTaskEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %79

79:                                               ; preds = %77, %75
  %.pn26 = phi { ptr, i32 } [ %78, %77 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %81

80:                                               ; preds = %.thread
  call void @_ZN2vl8SpinLock5ScopeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  br label %82

81:                                               ; preds = %79, %49, %38, %33, %27, %25
  %.pn26.pn = phi { ptr, i32 } [ %.pn26, %79 ], [ %50, %49 ], [ %.pn23, %38 ], [ %.pn, %33 ], [ %28, %27 ], [ %26, %25 ]
  call void @_ZN2vl8SpinLock5ScopeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn26.pn

.critedge:                                        ; preds = %74, %._crit_edge
  call void @_ZN2vl8SpinLock5ScopeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  br label %82

82:                                               ; preds = %80, %.critedge
  %.319 = phi i1 [ false, %80 ], [ true, %.critedge ]
  ret i1 %.319
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2vl18threading_internal14ThreadPoolDataC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN2vl11collections4ListIPNS_6ThreadES3_E3AddERKS3_(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7MakePtrINS_18threading_internal14ThreadPoolTaskEJEEENS_3PtrIT_EEDpT0_(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.1125") align 8) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN2vl4FuncIFvvEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #5 align 2

declare void @_ZN2vl8SpinLock5ScopeC1ERS0_(ptr, ptr) local_unnamed_addr

declare void @_ZN2vl8SpinLock5ScopeD1Ev(ptr) local_unnamed_addr

attributes #0 = { nobuiltin 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 64}
!10 = !{!"_ZTSN2vl18threading_internal14ThreadPoolDataE", !11, i64 0, !14, i64 16, !15, i64 32, !6, i64 64, !16, i64 72, !17, i64 80}
!11 = !{!"_ZTSN2vl9SemaphoreE", !12, i64 0, !6, i64 8}
!12 = !{!"_ZTSN2vl14WaitableObjectE", !13, i64 0}
!13 = !{!"_ZTSN2vl6ObjectE"}
!14 = !{!"_ZTSN2vl11EventObjectE", !12, i64 0, !6, i64 8}
!15 = !{!"_ZTSN2vl3PtrINS_18threading_internal14ThreadPoolTaskEEE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSN2vl11collections4ListIPNS_6ThreadES3_EE", !18, i64 0}
!18 = !{!"_ZTSN2vl11collections8ListBaseIPNS_6ThreadES3_EE", !19, i64 0, !21, i64 24, !16, i64 32}
!19 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_6ThreadEEE", !20, i64 0, !6, i64 8, !21, i64 16}
!20 = !{!"_ZTSN2vl11collections9ListStoreIPNS_6ThreadELb1EEE", !13, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!10, !16, i64 72}
!25 = !{i8 0, i8 2}
!26 = !{}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass