; LLVM IR from aras-p/ToyPathTracer :: Cpp/Source/enkiTS/TaskScheduler.ll (ZN4enki13TaskScheduler10TryRunTaskEjjRj)

; 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.enki::SubTaskSet" = type { ptr, %"struct.enki::TaskSetPartition" }
%"struct.enki::TaskSetPartition" = type { i32, i32 }
%"class.enki::TaskScheduler" = type <{ [3 x ptr], [3 x ptr], i32, [4 x i8], ptr, ptr, %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", i8, %"struct.std::atomic.0", %"struct.std::atomic.0", %"struct.std::atomic.0", i32, [4 x i8], ptr, ptr, i32, i8, [3 x i8], %"struct.enki::TaskSchedulerConfig", %"struct.std::atomic.0", [4 x i8] }>
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }
%"struct.enki::TaskSchedulerConfig" = type { i32, i32, %"struct.enki::ProfilerCallbacks", %"struct.enki::CustomAllocator" }
%"struct.enki::ProfilerCallbacks" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.enki::CustomAllocator" = type { ptr, ptr, ptr }
%"struct.std::atomic.0" = type { %"struct.std::__atomic_base.1" }
%"struct.std::__atomic_base.1" = type { i32 }
%"class.enki::TaskPipe" = type { %"class.enki::LockLessMultiReadPipe.base", [4 x i8] }
%"class.enki::LockLessMultiReadPipe.base" = type <{ [256 x %"struct.enki::SubTaskSet"], %"struct.std::atomic.3", %"struct.std::atomic.3", [256 x %"struct.std::atomic.3"], %"struct.std::atomic.3" }>
%"struct.std::atomic.3" = type { %"struct.std::__atomic_base.4" }
%"struct.std::__atomic_base.4" = type { i32 }
%"struct.enki::ThreadDataStore" = type { ptr, %"struct.std::atomic.2", i32, [48 x i8] }
%"struct.std::atomic.2" = type { i32 }
%"class.enki::ITaskSet" = type <{ %"class.enki::ICompletable", i32, i32, i32, [4 x i8] }>
%"class.enki::ICompletable" = type { ptr, i32, %"struct.std::atomic.0", %"struct.std::atomic.0", i32, %"struct.std::atomic.0", ptr }

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt13__atomic_baseIiE9fetch_subEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4enki13TaskScheduler10TryRunTaskEjjRj(ptr noundef nonnull align 8 dereferenceable(220) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %3) #3 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.enki::SubTaskSet", align 8
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.enki::SubTaskSet", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.enki::SubTaskSet", align 8
  %21 = alloca %"struct.enki::TaskSetPartition", align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.enki::TaskSetPartition", align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8
  %26 = load i32, ptr %6, align 4, !tbaa !9
  %27 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZN4enki13TaskScheduler14RunPinnedTasksEjj(ptr noundef nonnull align 8 dereferenceable(220) %25, i32 noundef %26, i32 noundef %27)
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  %28 = getelementptr inbounds %"class.enki::TaskScheduler", ptr %25, i32 0, i32 0
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = getelementptr inbounds [3 x ptr], ptr %28, i64 0, i64 %30
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds %"class.enki::TaskPipe", ptr %32, i64 %34
  %36 = call noundef zeroext i1 @_ZN4enki21LockLessMultiReadPipeILh8ENS_10SubTaskSetEE18WriterTryReadFrontEPS1_(ptr noundef nonnull align 8 dereferenceable(5132) %35, ptr noundef %9)
  %37 = zext i1 %36 to i8
  store i8 %37, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = load i32, ptr %38, align 4, !tbaa !9
  %40 = getelementptr inbounds %"class.enki::TaskScheduler", ptr %25, i32 0, i32 2
  %41 = load i32, ptr %40, align 8, !tbaa !13
  %42 = urem i32 %39, %41
  store i32 %42, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %43 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %43, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  %44 = load i8, ptr %10, align 1, !tbaa !11, !range !22, !noundef !23
  %45 = trunc i8 %44 to i1
  br i1 %45, label %114, label %46

46:                                               ; preds = %4
  %47 = getelementptr inbounds %"class.enki::TaskScheduler", ptr %25, i32 0, i32 0
  %48 = load i32, ptr %7, align 4, !tbaa !9
  %49 = zext i32 %48 to i64
  %50 = getelementptr inbounds [3 x ptr], ptr %47, i64 0, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds %"class.enki::TaskPipe", ptr %51, i64 %53
  %55 = call noundef zeroext i1 @_ZN4enki21LockLessMultiReadPipeILh8ENS_10SubTaskSetEE17ReaderTryReadBackEPS1_(ptr noundef nonnull align 8 dereferenceable(5132) %54, ptr noundef %9)
  %56 = zext i1 %55 to i8
  store i8 %56, ptr %10, align 1, !tbaa !11
  %57 = load i8, ptr %10, align 1, !tbaa !11, !range !22, !noundef !23
  %58 = trunc i8 %57 to i1
  br i1 %58, label %113, label %59

59:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %60 = getelementptr inbounds %"class.enki::TaskScheduler", ptr %25, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !24
  %62 = load i32, ptr %6, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds %"struct.enki::ThreadDataStore", ptr %61, i64 %63
  %65 = getelementptr inbounds %"struct.enki::ThreadDataStore", ptr %64, i32 0, i32 2
  store ptr %65, ptr %14, align 8, !tbaa !5
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = add i32 %67, 1
  store i32 %68, ptr %66, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = load i32, ptr %6, align 4, !tbaa !9
  %72 = mul i32 %70, %71
  %73 = call noundef i32 @_ZL6Hash32j(i32 noundef %72)
  store i32 %73, ptr %15, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %109, %59
  %75 = load i8, ptr %10, align 1, !tbaa !11, !range !22, !noundef !23
  %76 = trunc i8 %75 to i1
  br i1 %76, label %82, label %77

77:                                               ; preds = %74
  %78 = load i32, ptr %13, align 4, !tbaa !9
  %79 = getelementptr inbounds %"class.enki::TaskScheduler", ptr %25, i32 0, i32 2
  %80 = load i32, ptr %79, align 8, !tbaa !13
  %81 = icmp ult i32 %78, %80
  br label %82

82:                                               ; preds = %77, %74
  %83 = phi i1 [ false, %74 ], [ %81, %77 ]
  br i1 %83, label %84, label %112

84:                                               ; preds = %82
  %85 = load i32, ptr %15, align 4, !tbaa !9
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = add i32 %85, %86
  %88 = getelementptr inbounds %"class.enki::TaskScheduler", ptr %25, i32 0, i32 2
  %89 = load i32, ptr %88, align 8, !tbaa !13
  %90 = urem i32 %87, %89
  store i32 %90, ptr %12, align 4, !tbaa !9
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = load i32, ptr %6, align 4, !tbaa !9
  %93 = icmp ne i32 %91, %92
  br i1 %93, label %94, label %109

94:                                               ; preds = %84
  %95 = load i32, ptr %15, align 4, !tbaa !9
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = icmp ne i32 %95, %96
  br i1 %97, label %98, label %109

98:                                               ; preds = %94
  %99 = getelementptr inbounds %"class.enki::TaskScheduler", ptr %25, i32 0, i32 0
  %100 = load i32, ptr %7, align 4, !tbaa !9
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds [3 x ptr], ptr %99, i64 0, i64 %101
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds %"class.enki::TaskPipe", ptr %103, i64 %105
  %107 = call noundef zeroext i1 @_ZN4enki21LockLessMultiReadPipeILh8ENS_10SubTaskSetEE17ReaderTryReadBackEPS1_(ptr noundef nonnull align 8 dereferenceable(5132) %106, ptr noundef %9)
  %108 = zext i1 %107 to i8
  store i8 %108, ptr %10, align 1, !tbaa !11
  br label %109

109:                                              ; preds = %98, %94, %84
  %110 = load i32, ptr %13, align 4, !tbaa !9
  %111 = add i32 %110, 1
  store i32 %111, ptr %13, align 4, !tbaa !9
  br label %74, !llvm.loop !25

112:                                              ; preds = %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %113

113:                                              ; preds = %112, %46
  br label %114

114:                                              ; preds = %113, %4
  %115 = load i8, ptr %10, align 1, !tbaa !11, !range !22, !noundef !23
  %116 = trunc i8 %115 to i1
  br i1 %116, label %117, label %208

117:                                              ; preds = %114
  %118 = load i32, ptr %12, align 4, !tbaa !9
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %118, ptr %119, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %120 = getelementptr inbounds %"struct.enki::SubTaskSet", ptr %9, i32 0, i32 1
  %121 = getelementptr inbounds %"struct.enki::TaskSetPartition", ptr %120, i32 0, i32 1
  %122 = load i32, ptr %121, align 4, !tbaa !27
  %123 = getelementptr inbounds %"struct.enki::SubTaskSet", ptr %9, i32 0, i32 1
  %124 = getelementptr inbounds %"struct.enki::TaskSetPartition", ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 8, !tbaa !30
  %126 = sub i32 %122, %125
  store i32 %126, ptr %16, align 4, !tbaa !9
  %127 = getelementptr inbounds %"struct.enki::SubTaskSet", ptr %9, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8, !tbaa !31
  %129 = getelementptr inbounds %"class.enki::ITaskSet", ptr %128, i32 0, i32 3
  %130 = load i32, ptr %129, align 8, !tbaa !32
  %131 = load i32, ptr %16, align 4, !tbaa !9
  %132 = icmp ult i32 %130, %131
  br i1 %132, label %133, label %187

133:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  %134 = getelementptr inbounds %"struct.enki::SubTaskSet", ptr %9, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !31
  %136 = getelementptr inbounds %"class.enki::ITaskSet", ptr %135, i32 0, i32 3
  %137 = load i32, ptr %136, align 8, !tbaa !32
  %138 = call { ptr, i64 } @_ZN12_GLOBAL__N_19SplitTaskERN4enki10SubTaskSetEj(ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef %137)
  %139 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %140 = extractvalue { ptr, i64 } %138, 0
  store ptr %140, ptr %139, align 8
  %141 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %142 = extractvalue { ptr, i64 } %138, 1
  store i64 %142, ptr %141, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %143 = getelementptr inbounds %"struct.enki::SubTaskSet", ptr %9, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8, !tbaa !31
  %145 = getelementptr inbounds %"class.enki::ITaskSet", ptr %144, i32 0, i32 3
  %146 = load i32, ptr %145, align 8, !tbaa !32
  store i32 %146, ptr %18, align 4, !tbaa !9
  %147 = load i32, ptr %6, align 4, !tbaa !9
  %148 = load i32, ptr %12, align 4, !tbaa !9
  %149 = icmp ne i32 %147, %148
  br i1 %149, label %150, label %161

150:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %151 = getelementptr inbounds %"struct.enki::SubTaskSet", ptr %9, i32 0, i32 1
  %152 = getelementptr inbounds %"struct.enki::TaskSetPartition", ptr %151, i32 0, i32 1
  %153 = load i32, ptr %152, align 4, !tbaa !27
  %154 = getelementptr inbounds %"struct.enki::SubTaskSet", ptr %9, i32 0, i32 1
  %155 = getelementptr inbounds %"struct.enki::TaskSetPartition", ptr %154, i32 0, i32 0
  %156 = load i32, ptr %155, align 8, !tbaa !30
  %157 = sub i32 %153, %156
  %158 = udiv i32 %157, 256
  store i32 %158, ptr %19, align 4, !tbaa !9
  %159 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %160 = load i32, ptr %159, align 4, !tbaa !9
  store i32 %160, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %161

161:                                              ; preds = %150, %133
  %162 = load i32, ptr %6, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !36
  %163 = load i32, ptr %18, align 4, !tbaa !9
  %164 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8
  %166 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %167 = load i64, ptr %166, align 8
  call void @_ZN4enki13TaskScheduler15SplitAndAddTaskEjNS_10SubTaskSetEj(ptr noundef nonnull align 8 dereferenceable(220) %25, i32 noundef %162, ptr %165, i64 %167, i32 noundef %163)
  %168 = getelementptr inbounds %"struct.enki::SubTaskSet", ptr %17, i32 0, i32 0
  %169 = load ptr, ptr %168, align 8, !tbaa !31
  %170 = getelementptr inbounds %"struct.enki::SubTaskSet", ptr %17, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 8 %170, i64 8, i1 false), !tbaa.struct !37
  %171 = load i32, ptr %6, align 4, !tbaa !9
  %172 = load i64, ptr %21, align 4
  %173 = load ptr, ptr %169, align 8, !tbaa !38
  %174 = getelementptr inbounds ptr, ptr %173, i64 3
  %175 = load ptr, ptr %174, align 8
  call void %175(ptr noundef nonnull align 8 dereferenceable(52) %169, i64 %172, i32 noundef %171)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %176 = getelementptr inbounds %"struct.enki::SubTaskSet", ptr %17, i32 0, i32 0
  %177 = load ptr, ptr %176, align 8, !tbaa !31
  %178 = getelementptr inbounds %"class.enki::ICompletable", ptr %177, i32 0, i32 2
  %179 = call noundef i32 @_ZNSt13__atomic_baseIiE9fetch_subEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %178, i32 noundef 1, i32 noundef 4) #6
  store i32 %179, ptr %22, align 4, !tbaa !9
  %180 = load i32, ptr %22, align 4, !tbaa !9
  %181 = icmp eq i32 2, %180
  br i1 %181, label %182, label %186

182:                                              ; preds = %161
  %183 = getelementptr inbounds %"struct.enki::SubTaskSet", ptr %17, i32 0, i32 0
  %184 = load ptr, ptr %183, align 8, !tbaa !31
  %185 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN4enki13TaskScheduler12TaskCompleteEPNS_12ICompletableEbj(ptr noundef nonnull align 8 dereferenceable(220) %25, ptr noundef %184, i1 noundef zeroext true, i32 noundef %185)
  br label %186

186:                                              ; preds = %182, %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  br label %207

187:                                              ; preds = %117
  %188 = getelementptr inbounds %"struct.enki::SubTaskSet", ptr %9, i32 0, i32 0
  %189 = load ptr, ptr %188, align 8, !tbaa !31
  %190 = getelementptr inbounds %"struct.enki::SubTaskSet", ptr %9, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %190, i64 8, i1 false), !tbaa.struct !37
  %191 = load i32, ptr %6, align 4, !tbaa !9
  %192 = load i64, ptr %23, align 4
  %193 = load ptr, ptr %189, align 8, !tbaa !38
  %194 = getelementptr inbounds ptr, ptr %193, i64 3
  %195 = load ptr, ptr %194, align 8
  call void %195(ptr noundef nonnull align 8 dereferenceable(52) %189, i64 %192, i32 noundef %191)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %196 = getelementptr inbounds %"struct.enki::SubTaskSet", ptr %9, i32 0, i32 0
  %197 = load ptr, ptr %196, align 8, !tbaa !31
  %198 = getelementptr inbounds %"class.enki::ICompletable", ptr %197, i32 0, i32 2
  %199 = call noundef i32 @_ZNSt13__atomic_baseIiE9fetch_subEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %198, i32 noundef 1, i32 noundef 4) #6
  store i32 %199, ptr %24, align 4, !tbaa !9
  %200 = load i32, ptr %24, align 4, !tbaa !9
  %201 = icmp eq i32 2, %200
  br i1 %201, label %202, label %206

202:                                              ; preds = %187
  %203 = getelementptr inbounds %"struct.enki::SubTaskSet", ptr %9, i32 0, i32 0
  %204 = load ptr, ptr %203, align 8, !tbaa !31
  %205 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN4enki13TaskScheduler12TaskCompleteEPNS_12ICompletableEbj(ptr noundef nonnull align 8 dereferenceable(220) %25, ptr noundef %204, i1 noundef zeroext true, i32 noundef %205)
  br label %206

206:                                              ; preds = %202, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %207

207:                                              ; preds = %206, %186
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %208

208:                                              ; preds = %207, %114
  %209 = load i8, ptr %10, align 1, !tbaa !11, !range !22, !noundef !23
  %210 = trunc i8 %209 to i1
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  ret i1 %210
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4enki13TaskScheduler14RunPinnedTasksEjj(ptr noundef nonnull align 8 dereferenceable(220), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4enki21LockLessMultiReadPipeILh8ENS_10SubTaskSetEE18WriterTryReadFrontEPS1_(ptr noundef nonnull align 8 dereferenceable(5132), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4enki21LockLessMultiReadPipeILh8ENS_10SubTaskSetEE17ReaderTryReadBackEPS1_(ptr noundef nonnull align 8 dereferenceable(5132), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL6Hash32j(i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden { ptr, i64 } @_ZN12_GLOBAL__N_19SplitTaskERN4enki10SubTaskSetEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4enki13TaskScheduler15SplitAndAddTaskEjNS_10SubTaskSetEj(ptr noundef nonnull align 8 dereferenceable(220), i32 noundef, ptr, i64, i32 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4enki13TaskScheduler12TaskCompleteEPNS_12ICompletableEbj(ptr noundef nonnull align 8 dereferenceable(220), ptr noundef, i1 noundef zeroext, i32 noundef) #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 48}
!14 = !{!"_ZTSN4enki13TaskSchedulerE", !7, i64 0, !7, i64 24, !10, i64 48, !6, i64 56, !6, i64 64, !15, i64 72, !15, i64 73, !15, i64 74, !17, i64 76, !17, i64 80, !17, i64 84, !10, i64 88, !6, i64 96, !6, i64 104, !10, i64 112, !12, i64 116, !19, i64 120, !17, i64 216}
!15 = !{!"_ZTSSt6atomicIbE", !16, i64 0}
!16 = !{!"_ZTSSt13__atomic_baseIbE", !12, i64 0}
!17 = !{!"_ZTSSt6atomicIiE", !18, i64 0}
!18 = !{!"_ZTSSt13__atomic_baseIiE", !10, i64 0}
!19 = !{!"_ZTSN4enki19TaskSchedulerConfigE", !10, i64 0, !10, i64 4, !20, i64 8, !21, i64 72}
!20 = !{!"_ZTSN4enki17ProfilerCallbacksE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!21 = !{!"_ZTSN4enki15CustomAllocatorE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!14, !6, i64 56}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!28, !10, i64 12}
!28 = !{!"_ZTSN4enki10SubTaskSetE", !6, i64 0, !29, i64 8}
!29 = !{!"_ZTSN4enki16TaskSetPartitionE", !10, i64 0, !10, i64 4}
!30 = !{!28, !10, i64 8}
!31 = !{!28, !6, i64 0}
!32 = !{!33, !10, i64 48}
!33 = !{!"_ZTSN4enki8ITaskSetE", !34, i64 0, !10, i64 40, !10, i64 44, !10, i64 48}
!34 = !{!"_ZTSN4enki12ICompletableE", !35, i64 8, !17, i64 12, !17, i64 16, !10, i64 20, !17, i64 24, !6, i64 32}
!35 = !{!"_ZTSN4enki12TaskPriorityE", !7, i64 0}
!36 = !{i64 0, i64 8, !5, i64 8, i64 4, !9, i64 12, i64 4, !9}
!37 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!38 = !{!39, !39, i64 0}
!39 = !{!"vtable pointer", !8, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.enki::SubTaskSet" = type { ptr, %"struct.enki::TaskSetPartition" }
%"struct.enki::TaskSetPartition" = type { i32, i32 }
%"class.enki::TaskPipe" = type { %"class.enki::LockLessMultiReadPipe.base", [4 x i8] }
%"class.enki::LockLessMultiReadPipe.base" = type <{ [256 x %"struct.enki::SubTaskSet"], %"struct.std::atomic.3", %"struct.std::atomic.3", [256 x %"struct.std::atomic.3"], %"struct.std::atomic.3" }>
%"struct.std::atomic.3" = type { %"struct.std::__atomic_base.4" }
%"struct.std::__atomic_base.4" = type { i32 }
%"struct.enki::ThreadDataStore" = type { ptr, %"struct.std::atomic.2", i32, [48 x i8] }
%"struct.std::atomic.2" = type { i32 }

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt13__atomic_baseIiE9fetch_subEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4enki13TaskScheduler10TryRunTaskEjjRj(ptr noundef nonnull align 8 dereferenceable(220) %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef nonnull align 4 dereferenceable(4) %3) local_unnamed_addr #3 align 2 {
  %5 = alloca %"struct.enki::SubTaskSet", align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  tail call void @_ZN4enki13TaskScheduler14RunPinnedTasksEjj(ptr noundef nonnull align 8 dereferenceable(220) %0, i32 noundef %1, i32 noundef %2)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %8 = zext i32 %2 to i64
  %9 = getelementptr inbounds [3 x ptr], ptr %0, i64 0, i64 %8
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = zext i32 %1 to i64
  %12 = getelementptr inbounds %"class.enki::TaskPipe", ptr %10, i64 %11
  %13 = call noundef zeroext i1 @_ZN4enki21LockLessMultiReadPipeILh8ENS_10SubTaskSetEE18WriterTryReadFrontEPS1_(ptr noundef nonnull align 8 dereferenceable(5132) %12, ptr noundef nonnull %5)
  %14 = load i32, ptr %3, align 4, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  %16 = load i32, ptr %15, align 8, !tbaa !11
  %17 = urem i32 %14, %16
  %.fr = freeze i32 %17
  br i1 %13, label %.loopexit, label %18

18:                                               ; preds = %4
  %19 = load ptr, ptr %9, align 8, !tbaa !5
  %20 = zext i32 %.fr to i64
  %21 = getelementptr inbounds %"class.enki::TaskPipe", ptr %19, i64 %20
  %22 = call noundef zeroext i1 @_ZN4enki21LockLessMultiReadPipeILh8ENS_10SubTaskSetEE17ReaderTryReadBackEPS1_(ptr noundef nonnull align 8 dereferenceable(5132) %21, ptr noundef nonnull %5)
  br i1 %22, label %.loopexit, label %23

23:                                               ; preds = %18
  %24 = getelementptr inbounds i8, ptr %0, i64 56
  %25 = load ptr, ptr %24, align 8, !tbaa !21
  %26 = getelementptr inbounds %"struct.enki::ThreadDataStore", ptr %25, i64 %11, i32 2
  %27 = load i32, ptr %26, align 4, !tbaa !9
  %28 = add i32 %27, 1
  store i32 %28, ptr %26, align 4, !tbaa !9
  %29 = mul i32 %28, %1
  %30 = call noundef i32 @_ZL6Hash32j(i32 noundef %29)
  %.not50 = icmp eq i32 %30, %.fr
  %31 = load i32, ptr %15, align 8
  %.not63 = icmp eq i32 %31, 0
  %or.cond = select i1 %.not50, i1 true, i1 %.not63
  br i1 %or.cond, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %23, %.split.backedge
  %32 = phi i32 [ %40, %.split.backedge ], [ %31, %23 ]
  %.0465862 = phi i32 [ %.04658.be, %.split.backedge ], [ 0, %23 ]
  %33 = add i32 %.0465862, %30
  %34 = urem i32 %33, %32
  %.not = icmp eq i32 %34, %1
  br i1 %.not, label %.split.backedge, label %35

35:                                               ; preds = %.lr.ph
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = zext i32 %34 to i64
  %38 = getelementptr inbounds %"class.enki::TaskPipe", ptr %36, i64 %37
  %39 = call noundef zeroext i1 @_ZN4enki21LockLessMultiReadPipeILh8ENS_10SubTaskSetEE17ReaderTryReadBackEPS1_(ptr noundef nonnull align 8 dereferenceable(5132) %38, ptr noundef nonnull %5)
  br i1 %39, label %.loopexit, label %.split.backedge

.split.backedge:                                  ; preds = %.lr.ph, %35
  %.04658.be = add i32 %.0465862, 1
  %40 = load i32, ptr %15, align 8, !tbaa !11
  %41 = icmp ult i32 %.04658.be, %40
  br i1 %41, label %.lr.ph, label %.critedge, !llvm.loop !22

.loopexit:                                        ; preds = %35, %4, %18
  %.145.ph = phi i32 [ %.fr, %18 ], [ %.fr, %4 ], [ %34, %35 ]
  store i32 %.145.ph, ptr %3, align 4, !tbaa !9
  %42 = getelementptr inbounds i8, ptr %5, i64 8
  %43 = getelementptr inbounds i8, ptr %5, i64 12
  %44 = load i32, ptr %43, align 4, !tbaa !24
  %45 = load i32, ptr %42, align 8, !tbaa !27
  %46 = sub i32 %44, %45
  %47 = load ptr, ptr %5, align 8, !tbaa !28
  %48 = getelementptr inbounds i8, ptr %47, i64 48
  %49 = load i32, ptr %48, align 8, !tbaa !29
  %50 = icmp ult i32 %49, %46
  br i1 %50, label %51, label %75

51:                                               ; preds = %.loopexit
  %52 = call { ptr, i64 } @_ZN12_GLOBAL__N_19SplitTaskERN4enki10SubTaskSetEj(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %49)
  %53 = extractvalue { ptr, i64 } %52, 0
  %54 = extractvalue { ptr, i64 } %52, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 48
  %57 = load i32, ptr %56, align 8, !tbaa !29
  store i32 %57, ptr %6, align 4, !tbaa !9
  %.not51 = icmp eq i32 %.145.ph, %1
  br i1 %.not51, label %65, label %58

58:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %59 = load i32, ptr %43, align 4, !tbaa !24
  %60 = load i32, ptr %42, align 8, !tbaa !27
  %61 = sub i32 %59, %60
  %62 = lshr i32 %61, 8
  store i32 %62, ptr %7, align 4, !tbaa !9
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %64 = load i32, ptr %63, align 4, !tbaa !9
  store i32 %64, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  %.sroa.03.0.copyload.pre = load ptr, ptr %5, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %58, %51
  %66 = phi i32 [ %64, %58 ], [ %57, %51 ]
  %.sroa.03.0.copyload = phi ptr [ %.sroa.03.0.copyload.pre, %58 ], [ %55, %51 ]
  %.sroa.2.0.copyload = load i64, ptr %42, align 8
  call void @_ZN4enki13TaskScheduler15SplitAndAddTaskEjNS_10SubTaskSetEj(ptr noundef nonnull align 8 dereferenceable(220) %0, i32 noundef %1, ptr %.sroa.03.0.copyload, i64 %.sroa.2.0.copyload, i32 noundef %66)
  %67 = load ptr, ptr %53, align 8, !tbaa !33
  %68 = getelementptr inbounds i8, ptr %67, i64 24
  %69 = load ptr, ptr %68, align 8
  call void %69(ptr noundef nonnull align 8 dereferenceable(52) %53, i64 %54, i32 noundef %1)
  %70 = getelementptr inbounds i8, ptr %53, i64 12
  %71 = call noundef i32 @_ZNSt13__atomic_baseIiE9fetch_subEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %70, i32 noundef 1, i32 noundef 4) #5
  %72 = icmp eq i32 %71, 2
  br i1 %72, label %73, label %74

73:                                               ; preds = %65
  call void @_ZN4enki13TaskScheduler12TaskCompleteEPNS_12ICompletableEbj(ptr noundef nonnull align 8 dereferenceable(220) %0, ptr noundef nonnull %53, i1 noundef zeroext true, i32 noundef %1)
  br label %74

74:                                               ; preds = %73, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %.critedge

75:                                               ; preds = %.loopexit
  %.sroa.0.0.copyload = load i64, ptr %42, align 8
  %76 = load ptr, ptr %47, align 8, !tbaa !33
  %77 = getelementptr inbounds i8, ptr %76, i64 24
  %78 = load ptr, ptr %77, align 8
  call void %78(ptr noundef nonnull align 8 dereferenceable(52) %47, i64 %.sroa.0.0.copyload, i32 noundef %1)
  %79 = load ptr, ptr %5, align 8, !tbaa !28
  %80 = getelementptr inbounds i8, ptr %79, i64 12
  %81 = call noundef i32 @_ZNSt13__atomic_baseIiE9fetch_subEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %80, i32 noundef 1, i32 noundef 4) #5
  %82 = icmp eq i32 %81, 2
  br i1 %82, label %83, label %.critedge

83:                                               ; preds = %75
  %84 = load ptr, ptr %5, align 8, !tbaa !28
  call void @_ZN4enki13TaskScheduler12TaskCompleteEPNS_12ICompletableEbj(ptr noundef nonnull align 8 dereferenceable(220) %0, ptr noundef %84, i1 noundef zeroext true, i32 noundef %1)
  br label %.critedge

.critedge:                                        ; preds = %.split.backedge, %23, %74, %83, %75
  %.255 = phi i1 [ true, %74 ], [ true, %83 ], [ true, %75 ], [ false, %23 ], [ false, %.split.backedge ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  ret i1 %.255
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4enki13TaskScheduler14RunPinnedTasksEjj(ptr noundef nonnull align 8 dereferenceable(220), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4enki21LockLessMultiReadPipeILh8ENS_10SubTaskSetEE18WriterTryReadFrontEPS1_(ptr noundef nonnull align 8 dereferenceable(5132), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4enki21LockLessMultiReadPipeILh8ENS_10SubTaskSetEE17ReaderTryReadBackEPS1_(ptr noundef nonnull align 8 dereferenceable(5132), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL6Hash32j(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden { ptr, i64 } @_ZN12_GLOBAL__N_19SplitTaskERN4enki10SubTaskSetEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4enki13TaskScheduler15SplitAndAddTaskEjNS_10SubTaskSetEj(ptr noundef nonnull align 8 dereferenceable(220), i32 noundef, ptr, i64, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4enki13TaskScheduler12TaskCompleteEPNS_12ICompletableEbj(ptr noundef nonnull align 8 dereferenceable(220), ptr noundef, i1 noundef zeroext, i32 noundef) local_unnamed_addr #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 48}
!12 = !{!"_ZTSN4enki13TaskSchedulerE", !7, i64 0, !7, i64 24, !10, i64 48, !6, i64 56, !6, i64 64, !13, i64 72, !13, i64 73, !13, i64 74, !16, i64 76, !16, i64 80, !16, i64 84, !10, i64 88, !6, i64 96, !6, i64 104, !10, i64 112, !15, i64 116, !18, i64 120, !16, i64 216}
!13 = !{!"_ZTSSt6atomicIbE", !14, i64 0}
!14 = !{!"_ZTSSt13__atomic_baseIbE", !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSSt6atomicIiE", !17, i64 0}
!17 = !{!"_ZTSSt13__atomic_baseIiE", !10, i64 0}
!18 = !{!"_ZTSN4enki19TaskSchedulerConfigE", !10, i64 0, !10, i64 4, !19, i64 8, !20, i64 72}
!19 = !{!"_ZTSN4enki17ProfilerCallbacksE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!20 = !{!"_ZTSN4enki15CustomAllocatorE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!12, !6, i64 56}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!25, !10, i64 12}
!25 = !{!"_ZTSN4enki10SubTaskSetE", !6, i64 0, !26, i64 8}
!26 = !{!"_ZTSN4enki16TaskSetPartitionE", !10, i64 0, !10, i64 4}
!27 = !{!25, !10, i64 8}
!28 = !{!25, !6, i64 0}
!29 = !{!30, !10, i64 48}
!30 = !{!"_ZTSN4enki8ITaskSetE", !31, i64 0, !10, i64 40, !10, i64 44, !10, i64 48}
!31 = !{!"_ZTSN4enki12ICompletableE", !32, i64 8, !16, i64 12, !16, i64 16, !10, i64 20, !16, i64 24, !6, i64 32}
!32 = !{!"_ZTSN4enki12TaskPriorityE", !7, i64 0}
!33 = !{!34, !34, i64 0}
!34 = !{!"vtable pointer", !8, i64 0}


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