; LLVM IR from stan-dev/math :: lib/tbb_2020.3/src/test/test_std_thread.ll (Z8RunTestsv)

; 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.tbb::internal::tbb_thread_v3::id" = type { i64 }
%"struct.tbb::atomic.0" = type { %"struct.tbb::internal::atomic_impl_with_arithmetic.1" }
%"struct.tbb::internal::atomic_impl_with_arithmetic.1" = type { %"struct.tbb::internal::atomic_impl.2" }
%"struct.tbb::internal::atomic_impl.2" = type { %"struct.tbb::internal::aligned_storage.3" }
%"struct.tbb::internal::aligned_storage.3" = type { i32 }
%"class.tbb::internal::tbb_thread_v3" = type { i64 }
%class.ThreadFunc = type { %class.Base }
%class.Base = type { i32 }
%class.Data.5 = type { %class.Base, i32 }
%class.AnotherThreadFunc = type { %class.Base }

@_ZL8real_ids = external hidden global [5 x %"class.tbb::internal::tbb_thread_v3::id"], align 16
@.str = external hidden unnamed_addr constant [85 x i8], align 1
@_ZL9BaseCount = external hidden global %"struct.tbb::atomic.0", align 4
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [27 x i8], align 1
@_ZL3sum = external hidden global %"struct.tbb::atomic.0", align 4
@.str.31 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [40 x i8], align 1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64, i64) #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) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3tbb8internalneENS0_13tbb_thread_v32idES2_(i64, i64) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14CheckRelationsPKN3tbb8internal13tbb_thread_v32idEib(ptr noundef, i32 noundef, i1 noundef zeroext) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11ReportErrorPKciS0_S0_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20CheckExceptionSafetyv() #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN17AnotherThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb8internal13tbb_thread_v3C2I17AnotherThreadFuncEET_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #4 align 2

declare void @_ZN3tbb8internal13tbb_thread_v34joinEv(ptr noundef nonnull align 8 dereferenceable(8)) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z12returnThreadv(ptr dead_on_unwind noalias writable sret(%"class.tbb::internal::tbb_thread_v3") align 8) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8RunTestsv() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca %class.ThreadFunc, align 4
  %2 = alloca %class.Data.5, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %class.Data.5, align 4
  %6 = alloca %class.Data.5, align 4
  %7 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %8 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %9 = alloca [3 x %"class.tbb::internal::tbb_thread_v3::id"], align 16
  %10 = alloca [3 x %"class.tbb::internal::tbb_thread_v3"], align 16
  %11 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %12 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %13 = alloca %class.ThreadFunc, align 4
  %14 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %15 = alloca %class.ThreadFunc, align 4
  %16 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %17 = alloca %class.ThreadFunc, align 4
  %18 = alloca %class.Data.5, align 4
  %19 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %20 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %21 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %22 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %23 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %24 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %25 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %29 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %30 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %31 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %32 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %33 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %34 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %35 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %36 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %37 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %38 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %39 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %40 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %41 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %42 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %43 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %44 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %45 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %46 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %47 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %48 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %49 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %50 = alloca i32, align 4
  %51 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %55 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %56 = alloca i32, align 4
  %57 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %58 = alloca %class.ThreadFunc, align 4
  %59 = alloca %class.Data.5, align 4
  %60 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %61 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %62 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %63 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %64 = alloca %class.ThreadFunc, align 4
  %65 = alloca %class.Data.5, align 4
  %66 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %67 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %68 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %69 = alloca i32, align 4
  %70 = alloca %class.AnotherThreadFunc, align 4
  %71 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %72 = alloca %class.AnotherThreadFunc, align 4
  %73 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %74 = alloca %class.AnotherThreadFunc, align 4
  %75 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %76 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %77 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %78 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %79 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #8
  call void @_ZN10ThreadFuncC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #8
  invoke void @_ZN4DataILi0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(8) %2, i32 noundef 100)
          to label %80 unwind label %303

80:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  invoke void @_ZN4DataILi0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef 1)
          to label %81 unwind label %307

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  invoke void @_ZN4DataILi0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef 0)
          to label %82 unwind label %311

82:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @_ZN3tbb8internal13tbb_thread_v32idC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @_ZN3tbb8internal13tbb_thread_v32idC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #8
  %83 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3::id"], ptr %9, i32 0, i32 0
  %84 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %83, i64 3
  br label %85

85:                                               ; preds = %85, %82
  %86 = phi ptr [ %83, %82 ], [ %87, %85 ]
  call void @_ZN3tbb8internal13tbb_thread_v32idC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %86) #8
  %87 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %86, i64 1
  %88 = icmp eq ptr %87, %84
  br i1 %88, label %89, label %85

89:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  %90 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3"], ptr %10, i32 0, i32 0
  %91 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3", ptr %90, i64 3
  br label %92

92:                                               ; preds = %92, %89
  %93 = phi ptr [ %90, %89 ], [ %94, %92 ]
  call void @_ZN3tbb8internal13tbb_thread_v3C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %93) #8
  %94 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3", ptr %93, i64 1
  %95 = icmp eq ptr %94, %91
  br i1 %95, label %96, label %92

96:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @_ZN3tbb8internal13tbb_thread_v3C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  invoke void @_ZN10ThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %97 unwind label %315

97:                                               ; preds = %96
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I10ThreadFuncEET_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef %13)
          to label %98 unwind label %319

98:                                               ; preds = %97
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  invoke void @_ZN10ThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %99 unwind label %323

99:                                               ; preds = %98
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I10ThreadFunciEET_T0_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef %15, i32 noundef 2)
          to label %100 unwind label %327

100:                                              ; preds = %99
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  invoke void @_ZN10ThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %101 unwind label %331

101:                                              ; preds = %100
  invoke void @_ZN4DataILi0EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %2)
          to label %102 unwind label %335

102:                                              ; preds = %101
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I10ThreadFunci4DataILi0EEEET_T0_T1_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef %17, i32 noundef 1, ptr noundef %18)
          to label %103 unwind label %339

103:                                              ; preds = %102
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %18) #8
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %17) #8
  %104 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %105 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %19, i32 0, i32 0
  store i64 %104, ptr %105, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %7, i64 8, i1 false), !tbaa.struct !5
  %106 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %19, i32 0, i32 0
  %107 = load i64, ptr %106, align 8
  %108 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %20, i32 0, i32 0
  %109 = load i64, ptr %108, align 8
  %110 = call noundef zeroext i1 @_ZN3tbb8internalneENS0_13tbb_thread_v32idES2_(i64 %107, i64 %109) #8
  br i1 %110, label %111, label %112

111:                                              ; preds = %103
  br label %114

112:                                              ; preds = %103
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 205, ptr noundef @.str.13, ptr noundef null)
          to label %113 unwind label %344

113:                                              ; preds = %112
  br label %114

114:                                              ; preds = %113, %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %115 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %116 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %21, i32 0, i32 0
  store i64 %115, ptr %116, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %21, i64 8, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  %117 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3"], ptr %10, i64 0, i64 0
  invoke void @_ZN3tbb4moveERNS_8internal13tbb_thread_v3ES2_(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %118 unwind label %344

118:                                              ; preds = %114
  %119 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %120 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %22, i32 0, i32 0
  store i64 %119, ptr %120, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %7, i64 8, i1 false), !tbaa.struct !5
  %121 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %22, i32 0, i32 0
  %122 = load i64, ptr %121, align 8
  %123 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %23, i32 0, i32 0
  %124 = load i64, ptr %123, align 8
  %125 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %122, i64 %124) #8
  br i1 %125, label %126, label %127

126:                                              ; preds = %118
  br label %129

127:                                              ; preds = %118
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 208, ptr noundef @.str.14, ptr noundef null)
          to label %128 unwind label %344

128:                                              ; preds = %127
  br label %129

129:                                              ; preds = %128, %126
  %130 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3"], ptr %10, i64 0, i64 0
  %131 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %130) #8
  %132 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %24, i32 0, i32 0
  store i64 %131, ptr %132, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %8, i64 8, i1 false), !tbaa.struct !5
  %133 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %24, i32 0, i32 0
  %134 = load i64, ptr %133, align 8
  %135 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %25, i32 0, i32 0
  %136 = load i64, ptr %135, align 8
  %137 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %134, i64 %136) #8
  br i1 %137, label %138, label %139

138:                                              ; preds = %129
  br label %141

139:                                              ; preds = %129
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 209, ptr noundef @.str.15, ptr noundef null)
          to label %140 unwind label %344

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140, %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %142 = invoke noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %143 unwind label %348

143:                                              ; preds = %141
  store i64 %142, ptr %26, align 8, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %144 = invoke noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %145 unwind label %352

145:                                              ; preds = %143
  store i64 %144, ptr %27, align 8, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %146 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  %147 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %28, i32 0, i32 0
  store i64 %146, ptr %147, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %148 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %149 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %29, i32 0, i32 0
  store i64 %148, ptr %149, align 8
  call void @_ZN3tbb4swapERNS_8internal13tbb_thread_v3ES2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %150 = invoke noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %151 unwind label %356

151:                                              ; preds = %145
  %152 = load i64, ptr %27, align 8, !tbaa !6
  %153 = icmp eq i64 %150, %152
  br i1 %153, label %154, label %155

154:                                              ; preds = %151
  br label %157

155:                                              ; preds = %151
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 216, ptr noundef @.str.16, ptr noundef null)
          to label %156 unwind label %356

156:                                              ; preds = %155
  br label %157

157:                                              ; preds = %156, %154
  %158 = invoke noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %159 unwind label %356

159:                                              ; preds = %157
  %160 = load i64, ptr %26, align 8, !tbaa !6
  %161 = icmp eq i64 %158, %160
  br i1 %161, label %162, label %163

162:                                              ; preds = %159
  br label %165

163:                                              ; preds = %159
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 217, ptr noundef @.str.17, ptr noundef null)
          to label %164 unwind label %356

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164, %162
  %166 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  %167 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %30, i32 0, i32 0
  store i64 %166, ptr %167, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 8 %29, i64 8, i1 false), !tbaa.struct !5
  %168 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %30, i32 0, i32 0
  %169 = load i64, ptr %168, align 8
  %170 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %31, i32 0, i32 0
  %171 = load i64, ptr %170, align 8
  %172 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %169, i64 %171) #8
  br i1 %172, label %173, label %174

173:                                              ; preds = %165
  br label %176

174:                                              ; preds = %165
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 218, ptr noundef @.str.18, ptr noundef null)
          to label %175 unwind label %356

175:                                              ; preds = %174
  br label %176

176:                                              ; preds = %175, %173
  %177 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %178 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %32, i32 0, i32 0
  store i64 %177, ptr %178, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %33, ptr align 8 %28, i64 8, i1 false), !tbaa.struct !5
  %179 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %32, i32 0, i32 0
  %180 = load i64, ptr %179, align 8
  %181 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %33, i32 0, i32 0
  %182 = load i64, ptr %181, align 8
  %183 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %180, i64 %182) #8
  br i1 %183, label %184, label %185

184:                                              ; preds = %176
  br label %187

185:                                              ; preds = %176
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 219, ptr noundef @.str.19, ptr noundef null)
          to label %186 unwind label %356

186:                                              ; preds = %185
  br label %187

187:                                              ; preds = %186, %184
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  call void @_ZN3tbb8internal13tbb_thread_v3C2EOS1_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  %188 = invoke noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %34)
          to label %189 unwind label %360

189:                                              ; preds = %187
  %190 = load i64, ptr %27, align 8, !tbaa !6
  %191 = icmp eq i64 %188, %190
  br i1 %191, label %192, label %201

192:                                              ; preds = %189
  %193 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  %194 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %35, i32 0, i32 0
  store i64 %193, ptr %194, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 8 %29, i64 8, i1 false), !tbaa.struct !5
  %195 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %35, i32 0, i32 0
  %196 = load i64, ptr %195, align 8
  %197 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %36, i32 0, i32 0
  %198 = load i64, ptr %197, align 8
  %199 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %196, i64 %198) #8
  br i1 %199, label %200, label %201

200:                                              ; preds = %192
  br label %203

201:                                              ; preds = %192, %189
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 223, ptr noundef @.str.20, ptr noundef null)
          to label %202 unwind label %360

202:                                              ; preds = %201
  br label %203

203:                                              ; preds = %202, %200
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3tbb8internal13tbb_thread_v3aSEOS1_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  %205 = invoke noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %206 unwind label %360

206:                                              ; preds = %203
  %207 = load i64, ptr %27, align 8, !tbaa !6
  %208 = icmp eq i64 %205, %207
  br i1 %208, label %209, label %218

209:                                              ; preds = %206
  %210 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  %211 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %37, i32 0, i32 0
  store i64 %210, ptr %211, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %29, i64 8, i1 false), !tbaa.struct !5
  %212 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %37, i32 0, i32 0
  %213 = load i64, ptr %212, align 8
  %214 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %38, i32 0, i32 0
  %215 = load i64, ptr %214, align 8
  %216 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %213, i64 %215) #8
  br i1 %216, label %217, label %218

217:                                              ; preds = %209
  br label %220

218:                                              ; preds = %209, %206
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 225, ptr noundef @.str.21, ptr noundef null)
          to label %219 unwind label %360

219:                                              ; preds = %218
  br label %220

220:                                              ; preds = %219, %217
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @_ZN3tbb8internal13tbb_thread_v34swapERS1_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %221 = invoke noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %222 unwind label %356

222:                                              ; preds = %220
  %223 = load i64, ptr %26, align 8, !tbaa !6
  %224 = icmp eq i64 %221, %223
  br i1 %224, label %225, label %226

225:                                              ; preds = %222
  br label %228

226:                                              ; preds = %222
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 230, ptr noundef @.str.22, ptr noundef null)
          to label %227 unwind label %356

227:                                              ; preds = %226
  br label %228

228:                                              ; preds = %227, %225
  %229 = invoke noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %230 unwind label %356

230:                                              ; preds = %228
  %231 = load i64, ptr %27, align 8, !tbaa !6
  %232 = icmp eq i64 %229, %231
  br i1 %232, label %233, label %234

233:                                              ; preds = %230
  br label %236

234:                                              ; preds = %230
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 231, ptr noundef @.str.23, ptr noundef null)
          to label %235 unwind label %356

235:                                              ; preds = %234
  br label %236

236:                                              ; preds = %235, %233
  %237 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  %238 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %39, i32 0, i32 0
  store i64 %237, ptr %238, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %28, i64 8, i1 false), !tbaa.struct !5
  %239 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %39, i32 0, i32 0
  %240 = load i64, ptr %239, align 8
  %241 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %40, i32 0, i32 0
  %242 = load i64, ptr %241, align 8
  %243 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %240, i64 %242) #8
  br i1 %243, label %244, label %245

244:                                              ; preds = %236
  br label %247

245:                                              ; preds = %236
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 232, ptr noundef @.str.24, ptr noundef null)
          to label %246 unwind label %356

246:                                              ; preds = %245
  br label %247

247:                                              ; preds = %246, %244
  %248 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %249 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %41, i32 0, i32 0
  store i64 %248, ptr %249, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %42, ptr align 8 %29, i64 8, i1 false), !tbaa.struct !5
  %250 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %41, i32 0, i32 0
  %251 = load i64, ptr %250, align 8
  %252 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %42, i32 0, i32 0
  %253 = load i64, ptr %252, align 8
  %254 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %251, i64 %253) #8
  br i1 %254, label %255, label %256

255:                                              ; preds = %247
  br label %258

256:                                              ; preds = %247
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 233, ptr noundef @.str.25, ptr noundef null)
          to label %257 unwind label %356

257:                                              ; preds = %256
  br label %258

258:                                              ; preds = %257, %255
  call void @_ZN3tbb8internal13tbb_thread_v34swapERS1_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %259 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3"], ptr %10, i64 0, i64 1
  invoke void @_ZN3tbb4moveERNS_8internal13tbb_thread_v3ES2_(ptr noundef nonnull align 8 dereferenceable(8) %259, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %260 unwind label %356

260:                                              ; preds = %258
  %261 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  %262 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %43, i32 0, i32 0
  store i64 %261, ptr %262, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 8 %7, i64 8, i1 false), !tbaa.struct !5
  %263 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %43, i32 0, i32 0
  %264 = load i64, ptr %263, align 8
  %265 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %44, i32 0, i32 0
  %266 = load i64, ptr %265, align 8
  %267 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %264, i64 %266) #8
  br i1 %267, label %268, label %269

268:                                              ; preds = %260
  br label %271

269:                                              ; preds = %260
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 237, ptr noundef @.str.26, ptr noundef null)
          to label %270 unwind label %356

270:                                              ; preds = %269
  br label %271

271:                                              ; preds = %270, %268
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  call void @_Z12returnThreadv(ptr dead_on_unwind writable sret(%"class.tbb::internal::tbb_thread_v3") align 8 %45)
  %272 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3"], ptr %10, i64 0, i64 2
  %273 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3tbb8internal13tbb_thread_v3aSEOS1_(ptr noundef nonnull align 8 dereferenceable(8) %272, ptr noundef nonnull align 8 dereferenceable(8) %45) #8
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  %274 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3"], ptr %10, i64 0, i64 2
  %275 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %274) #8
  %276 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %46, i32 0, i32 0
  store i64 %275, ptr %276, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %47, ptr align 8 %7, i64 8, i1 false), !tbaa.struct !5
  %277 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %46, i32 0, i32 0
  %278 = load i64, ptr %277, align 8
  %279 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %47, i32 0, i32 0
  %280 = load i64, ptr %279, align 8
  %281 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %278, i64 %280) #8
  br i1 %281, label %282, label %283

282:                                              ; preds = %271
  br label %285

283:                                              ; preds = %271
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 241, ptr noundef @.str.27, ptr noundef null)
          to label %284 unwind label %356

284:                                              ; preds = %283
  br label %285

285:                                              ; preds = %284, %282
  %286 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3"], ptr %10, i64 0, i64 2
  invoke void @_ZN3tbb4moveERNS_8internal13tbb_thread_v3ES2_(ptr noundef nonnull align 8 dereferenceable(8) %286, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %287 unwind label %356

287:                                              ; preds = %285
  %288 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %289 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %48, i32 0, i32 0
  store i64 %288, ptr %289, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %49, ptr align 8 %7, i64 8, i1 false), !tbaa.struct !5
  %290 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %48, i32 0, i32 0
  %291 = load i64, ptr %290, align 8
  %292 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %49, i32 0, i32 0
  %293 = load i64, ptr %292, align 8
  %294 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %291, i64 %293) #8
  br i1 %294, label %295, label %296

295:                                              ; preds = %287
  br label %298

296:                                              ; preds = %287
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 244, ptr noundef @.str.28, ptr noundef null)
          to label %297 unwind label %356

297:                                              ; preds = %296
  br label %298

298:                                              ; preds = %297, %295
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  store i32 0, ptr %50, align 4, !tbaa !10
  br label %299

299:                                              ; preds = %373, %298
  %300 = load i32, ptr %50, align 4, !tbaa !10
  %301 = icmp slt i32 %300, 3
  br i1 %301, label %364, label %302

302:                                              ; preds = %299
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  br label %376

303:                                              ; preds = %0
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %3, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %4, align 4
  br label %630

307:                                              ; preds = %80
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %3, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %4, align 4
  br label %629

311:                                              ; preds = %81
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %3, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %4, align 4
  br label %628

315:                                              ; preds = %96
  %316 = landingpad { ptr, i32 }
          cleanup
  %317 = extractvalue { ptr, i32 } %316, 0
  store ptr %317, ptr %3, align 8
  %318 = extractvalue { ptr, i32 } %316, 1
  store i32 %318, ptr %4, align 4
  br label %620

319:                                              ; preds = %97
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %3, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %4, align 4
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %13) #8
  br label %620

323:                                              ; preds = %98
  %324 = landingpad { ptr, i32 }
          cleanup
  %325 = extractvalue { ptr, i32 } %324, 0
  store ptr %325, ptr %3, align 8
  %326 = extractvalue { ptr, i32 } %324, 1
  store i32 %326, ptr %4, align 4
  br label %619

327:                                              ; preds = %99
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %3, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %4, align 4
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %15) #8
  br label %619

331:                                              ; preds = %100
  %332 = landingpad { ptr, i32 }
          cleanup
  %333 = extractvalue { ptr, i32 } %332, 0
  store ptr %333, ptr %3, align 8
  %334 = extractvalue { ptr, i32 } %332, 1
  store i32 %334, ptr %4, align 4
  br label %618

335:                                              ; preds = %101
  %336 = landingpad { ptr, i32 }
          cleanup
  %337 = extractvalue { ptr, i32 } %336, 0
  store ptr %337, ptr %3, align 8
  %338 = extractvalue { ptr, i32 } %336, 1
  store i32 %338, ptr %4, align 4
  br label %343

339:                                              ; preds = %102
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %3, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %4, align 4
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %18) #8
  br label %343

343:                                              ; preds = %339, %335
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %17) #8
  br label %618

344:                                              ; preds = %139, %127, %114, %112
  %345 = landingpad { ptr, i32 }
          cleanup
  %346 = extractvalue { ptr, i32 } %345, 0
  store ptr %346, ptr %3, align 8
  %347 = extractvalue { ptr, i32 } %345, 1
  store i32 %347, ptr %4, align 4
  br label %617

348:                                              ; preds = %141
  %349 = landingpad { ptr, i32 }
          cleanup
  %350 = extractvalue { ptr, i32 } %349, 0
  store ptr %350, ptr %3, align 8
  %351 = extractvalue { ptr, i32 } %349, 1
  store i32 %351, ptr %4, align 4
  br label %616

352:                                              ; preds = %143
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %3, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %4, align 4
  br label %615

356:                                              ; preds = %380, %296, %285, %283, %269, %258, %256, %245, %234, %228, %226, %220, %185, %174, %163, %157, %155, %145
  %357 = landingpad { ptr, i32 }
          cleanup
  %358 = extractvalue { ptr, i32 } %357, 0
  store ptr %358, ptr %3, align 8
  %359 = extractvalue { ptr, i32 } %357, 1
  store i32 %359, ptr %4, align 4
  br label %614

360:                                              ; preds = %218, %203, %201, %187
  %361 = landingpad { ptr, i32 }
          cleanup
  %362 = extractvalue { ptr, i32 } %361, 0
  store ptr %362, ptr %3, align 8
  %363 = extractvalue { ptr, i32 } %361, 1
  store i32 %363, ptr %4, align 4
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %614

364:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #8
  %365 = load i32, ptr %50, align 4, !tbaa !10
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3"], ptr %10, i64 0, i64 %366
  %368 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %367) #8
  %369 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %51, i32 0, i32 0
  store i64 %368, ptr %369, align 8
  %370 = load i32, ptr %50, align 4, !tbaa !10
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3::id"], ptr %9, i64 0, i64 %371
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %372, ptr align 8 %51, i64 8, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  br label %373

373:                                              ; preds = %364
  %374 = load i32, ptr %50, align 4, !tbaa !10
  %375 = add nsw i32 %374, 1
  store i32 %375, ptr %50, align 4, !tbaa !10
  br label %299, !llvm.loop !12

376:                                              ; preds = %302
  %377 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3"], ptr %10, i64 0, i64 2
  %378 = call noundef zeroext i1 @_ZNK3tbb8internal13tbb_thread_v38joinableEv(ptr noundef nonnull align 8 dereferenceable(8) %377) #8
  br i1 %378, label %379, label %380

379:                                              ; preds = %376
  br label %382

380:                                              ; preds = %376
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 249, ptr noundef @.str.29, ptr noundef null)
          to label %381 unwind label %356

381:                                              ; preds = %380
  br label %382

382:                                              ; preds = %381, %379
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  store i32 0, ptr %52, align 4, !tbaa !10
  br label %383

383:                                              ; preds = %392, %382
  %384 = load i32, ptr %52, align 4, !tbaa !10
  %385 = icmp slt i32 %384, 3
  br i1 %385, label %387, label %386

386:                                              ; preds = %383
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  br label %399

387:                                              ; preds = %383
  %388 = load i32, ptr %52, align 4, !tbaa !10
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3"], ptr %10, i64 0, i64 %389
  invoke void @_ZN3tbb8internal13tbb_thread_v34joinEv(ptr noundef nonnull align 8 dereferenceable(8) %390)
          to label %391 unwind label %395

391:                                              ; preds = %387
  br label %392

392:                                              ; preds = %391
  %393 = load i32, ptr %52, align 4, !tbaa !10
  %394 = add nsw i32 %393, 1
  store i32 %394, ptr %52, align 4, !tbaa !10
  br label %383, !llvm.loop !14

395:                                              ; preds = %387
  %396 = landingpad { ptr, i32 }
          cleanup
  %397 = extractvalue { ptr, i32 } %396, 0
  store ptr %397, ptr %3, align 8
  %398 = extractvalue { ptr, i32 } %396, 1
  store i32 %398, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  br label %614

399:                                              ; preds = %386
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  store i32 0, ptr %53, align 4, !tbaa !10
  br label %400

400:                                              ; preds = %420, %399
  %401 = load i32, ptr %53, align 4, !tbaa !10
  %402 = icmp slt i32 %401, 3
  br i1 %402, label %404, label %403

403:                                              ; preds = %400
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  br label %427

404:                                              ; preds = %400
  %405 = load i32, ptr %53, align 4, !tbaa !10
  %406 = sext i32 %405 to i64
  %407 = getelementptr inbounds [5 x %"class.tbb::internal::tbb_thread_v3::id"], ptr @_ZL8real_ids, i64 0, i64 %406
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %54, ptr align 8 %407, i64 8, i1 false), !tbaa.struct !5
  %408 = load i32, ptr %53, align 4, !tbaa !10
  %409 = sext i32 %408 to i64
  %410 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3::id"], ptr %9, i64 0, i64 %409
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %410, i64 8, i1 false), !tbaa.struct !5
  %411 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %54, i32 0, i32 0
  %412 = load i64, ptr %411, align 8
  %413 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %55, i32 0, i32 0
  %414 = load i64, ptr %413, align 8
  %415 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %412, i64 %414) #8
  br i1 %415, label %416, label %417

416:                                              ; preds = %404
  br label %419

417:                                              ; preds = %404
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 260, ptr noundef @.str.30, ptr noundef null)
          to label %418 unwind label %423

418:                                              ; preds = %417
  br label %419

419:                                              ; preds = %418, %416
  br label %420

420:                                              ; preds = %419
  %421 = load i32, ptr %53, align 4, !tbaa !10
  %422 = add nsw i32 %421, 1
  store i32 %422, ptr %53, align 4, !tbaa !10
  br label %400, !llvm.loop !15

423:                                              ; preds = %417
  %424 = landingpad { ptr, i32 }
          cleanup
  %425 = extractvalue { ptr, i32 } %424, 0
  store ptr %425, ptr %3, align 8
  %426 = extractvalue { ptr, i32 } %424, 1
  store i32 %426, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  br label %614

427:                                              ; preds = %403
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #8
  %428 = invoke noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZL3sum)
          to label %429 unwind label %491

429:                                              ; preds = %427
  store i32 %428, ptr %56, align 4, !tbaa !10
  %430 = load i32, ptr %56, align 4, !tbaa !10
  %431 = icmp eq i32 %430, 104
  br i1 %431, label %432, label %433

432:                                              ; preds = %429
  br label %435

433:                                              ; preds = %429
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 264, ptr noundef @.str.31, ptr noundef null)
          to label %434 unwind label %491

434:                                              ; preds = %433
  br label %435

435:                                              ; preds = %434, %432
  %436 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3"], ptr %10, i64 0, i64 2
  %437 = call noundef zeroext i1 @_ZNK3tbb8internal13tbb_thread_v38joinableEv(ptr noundef nonnull align 8 dereferenceable(8) %436) #8
  br i1 %437, label %439, label %438

438:                                              ; preds = %435
  br label %441

439:                                              ; preds = %435
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 265, ptr noundef @.str.32, ptr noundef null)
          to label %440 unwind label %491

440:                                              ; preds = %439
  br label %441

441:                                              ; preds = %440, %438
  %442 = invoke noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZL9BaseCount)
          to label %443 unwind label %491

443:                                              ; preds = %441
  %444 = icmp eq i32 %442, 4
  br i1 %444, label %445, label %446

445:                                              ; preds = %443
  br label %448

446:                                              ; preds = %443
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 266, ptr noundef @.str.33, ptr noundef @.str.12)
          to label %447 unwind label %491

447:                                              ; preds = %446
  br label %448

448:                                              ; preds = %447, %445
  invoke void @_Z20CheckExceptionSafetyv()
          to label %449 unwind label %491

449:                                              ; preds = %448
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #8
  invoke void @_ZN10ThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %58, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %450 unwind label %495

450:                                              ; preds = %449
  invoke void @_ZN4DataILi0EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %451 unwind label %499

451:                                              ; preds = %450
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I10ThreadFunc4DataILi0EEEET_T0_(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef %58, ptr noundef %59)
          to label %452 unwind label %503

452:                                              ; preds = %451
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %59) #8
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %58) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #8
  %453 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %57) #8
  %454 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %60, i32 0, i32 0
  store i64 %453, ptr %454, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([5 x %"class.tbb::internal::tbb_thread_v3::id"], ptr @_ZL8real_ids, i64 0, i64 3), ptr align 8 %60, i64 8, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #8
  invoke void @_ZN3tbb8internal13tbb_thread_v36detachEv(ptr noundef nonnull align 8 dereferenceable(8) %57)
          to label %455 unwind label %508

455:                                              ; preds = %452
  %456 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %57) #8
  %457 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %61, i32 0, i32 0
  store i64 %456, ptr %457, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %62, ptr align 8 %7, i64 8, i1 false), !tbaa.struct !5
  %458 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %61, i32 0, i32 0
  %459 = load i64, ptr %458, align 8
  %460 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %62, i32 0, i32 0
  %461 = load i64, ptr %460, align 8
  %462 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %459, i64 %461) #8
  br i1 %462, label %463, label %464

463:                                              ; preds = %455
  br label %466

464:                                              ; preds = %455
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 279, ptr noundef @.str.34, ptr noundef null)
          to label %465 unwind label %508

465:                                              ; preds = %464
  br label %466

466:                                              ; preds = %465, %463
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #8
  invoke void @_ZN10ThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %64, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %467 unwind label %512

467:                                              ; preds = %466
  invoke void @_ZN4DataILi0EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %65, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %468 unwind label %516

468:                                              ; preds = %467
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I10ThreadFunc4DataILi0EEEET_T0_(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef %64, ptr noundef %65)
          to label %469 unwind label %520

469:                                              ; preds = %468
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %65) #8
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %64) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #8
  %470 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %63) #8
  %471 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %66, i32 0, i32 0
  store i64 %470, ptr %471, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 getelementptr inbounds ([5 x %"class.tbb::internal::tbb_thread_v3::id"], ptr @_ZL8real_ids, i64 0, i64 4), ptr align 8 %66, i64 8, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #8
  invoke void @_ZN3tbb8internal13tbb_thread_v36detachEv(ptr noundef nonnull align 8 dereferenceable(8) %63)
          to label %472 unwind label %525

472:                                              ; preds = %469
  %473 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %63) #8
  %474 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %67, i32 0, i32 0
  store i64 %473, ptr %474, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %68, ptr align 8 %7, i64 8, i1 false), !tbaa.struct !5
  %475 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %67, i32 0, i32 0
  %476 = load i64, ptr %475, align 8
  %477 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %68, i32 0, i32 0
  %478 = load i64, ptr %477, align 8
  %479 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %476, i64 %478) #8
  br i1 %479, label %480, label %481

480:                                              ; preds = %472
  br label %483

481:                                              ; preds = %472
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 284, ptr noundef @.str.35, ptr noundef null)
          to label %482 unwind label %525

482:                                              ; preds = %481
  br label %483

483:                                              ; preds = %482, %480
  invoke void @_Z14CheckRelationsPKN3tbb8internal13tbb_thread_v32idEib(ptr noundef @_ZL8real_ids, i32 noundef 5, i1 noundef zeroext true)
          to label %484 unwind label %525

484:                                              ; preds = %483
  %485 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3::id"], ptr %9, i64 0, i64 0
  invoke void @_Z14CheckRelationsPKN3tbb8internal13tbb_thread_v32idEib(ptr noundef %485, i32 noundef 3, i1 noundef zeroext false)
          to label %486 unwind label %525

486:                                              ; preds = %484
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #8
  store i32 0, ptr %69, align 4, !tbaa !10
  br label %487

487:                                              ; preds = %589, %486
  %488 = load i32, ptr %69, align 4, !tbaa !10
  %489 = icmp slt i32 %488, 2
  br i1 %489, label %529, label %490

490:                                              ; preds = %487
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #8
  br label %595

491:                                              ; preds = %448, %446, %441, %439, %433, %427
  %492 = landingpad { ptr, i32 }
          cleanup
  %493 = extractvalue { ptr, i32 } %492, 0
  store ptr %493, ptr %3, align 8
  %494 = extractvalue { ptr, i32 } %492, 1
  store i32 %494, ptr %4, align 4
  br label %613

495:                                              ; preds = %449
  %496 = landingpad { ptr, i32 }
          cleanup
  %497 = extractvalue { ptr, i32 } %496, 0
  store ptr %497, ptr %3, align 8
  %498 = extractvalue { ptr, i32 } %496, 1
  store i32 %498, ptr %4, align 4
  br label %612

499:                                              ; preds = %450
  %500 = landingpad { ptr, i32 }
          cleanup
  %501 = extractvalue { ptr, i32 } %500, 0
  store ptr %501, ptr %3, align 8
  %502 = extractvalue { ptr, i32 } %500, 1
  store i32 %502, ptr %4, align 4
  br label %507

503:                                              ; preds = %451
  %504 = landingpad { ptr, i32 }
          cleanup
  %505 = extractvalue { ptr, i32 } %504, 0
  store ptr %505, ptr %3, align 8
  %506 = extractvalue { ptr, i32 } %504, 1
  store i32 %506, ptr %4, align 4
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %59) #8
  br label %507

507:                                              ; preds = %503, %499
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %58) #8
  br label %612

508:                                              ; preds = %464, %452
  %509 = landingpad { ptr, i32 }
          cleanup
  %510 = extractvalue { ptr, i32 } %509, 0
  store ptr %510, ptr %3, align 8
  %511 = extractvalue { ptr, i32 } %509, 1
  store i32 %511, ptr %4, align 4
  br label %611

512:                                              ; preds = %466
  %513 = landingpad { ptr, i32 }
          cleanup
  %514 = extractvalue { ptr, i32 } %513, 0
  store ptr %514, ptr %3, align 8
  %515 = extractvalue { ptr, i32 } %513, 1
  store i32 %515, ptr %4, align 4
  br label %610

516:                                              ; preds = %467
  %517 = landingpad { ptr, i32 }
          cleanup
  %518 = extractvalue { ptr, i32 } %517, 0
  store ptr %518, ptr %3, align 8
  %519 = extractvalue { ptr, i32 } %517, 1
  store i32 %519, ptr %4, align 4
  br label %524

520:                                              ; preds = %468
  %521 = landingpad { ptr, i32 }
          cleanup
  %522 = extractvalue { ptr, i32 } %521, 0
  store ptr %522, ptr %3, align 8
  %523 = extractvalue { ptr, i32 } %521, 1
  store i32 %523, ptr %4, align 4
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %65) #8
  br label %524

524:                                              ; preds = %520, %516
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %64) #8
  br label %610

525:                                              ; preds = %599, %484, %483, %481, %469
  %526 = landingpad { ptr, i32 }
          cleanup
  %527 = extractvalue { ptr, i32 } %526, 0
  store ptr %527, ptr %3, align 8
  %528 = extractvalue { ptr, i32 } %526, 1
  store i32 %528, ptr %4, align 4
  br label %609

529:                                              ; preds = %487
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #8
  invoke void @_ZN17AnotherThreadFuncC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %70)
          to label %530 unwind label %541

530:                                              ; preds = %529
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #8
  invoke void @_ZN17AnotherThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %72, ptr noundef nonnull align 4 dereferenceable(4) %70)
          to label %531 unwind label %545

531:                                              ; preds = %530
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I17AnotherThreadFuncEET_(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef %72)
          to label %532 unwind label %549

532:                                              ; preds = %531
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %72) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #8
  invoke void @_ZN17AnotherThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %74, ptr noundef nonnull align 4 dereferenceable(4) %70)
          to label %533 unwind label %553

533:                                              ; preds = %532
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I17AnotherThreadFuncEET_(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef %74)
          to label %534 unwind label %557

534:                                              ; preds = %533
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %74) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #8
  %535 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %73) #8
  %536 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %75, i32 0, i32 0
  store i64 %535, ptr %536, align 8
  %537 = load i32, ptr %69, align 4, !tbaa !10
  %538 = icmp ne i32 %537, 0
  br i1 %538, label %539, label %565

539:                                              ; preds = %534
  invoke void @_ZN3tbb8internal13tbb_thread_v34joinEv(ptr noundef nonnull align 8 dereferenceable(8) %71)
          to label %540 unwind label %561

540:                                              ; preds = %539
  br label %565

541:                                              ; preds = %529
  %542 = landingpad { ptr, i32 }
          cleanup
  %543 = extractvalue { ptr, i32 } %542, 0
  store ptr %543, ptr %3, align 8
  %544 = extractvalue { ptr, i32 } %542, 1
  store i32 %544, ptr %4, align 4
  br label %594

545:                                              ; preds = %530
  %546 = landingpad { ptr, i32 }
          cleanup
  %547 = extractvalue { ptr, i32 } %546, 0
  store ptr %547, ptr %3, align 8
  %548 = extractvalue { ptr, i32 } %546, 1
  store i32 %548, ptr %4, align 4
  br label %593

549:                                              ; preds = %531
  %550 = landingpad { ptr, i32 }
          cleanup
  %551 = extractvalue { ptr, i32 } %550, 0
  store ptr %551, ptr %3, align 8
  %552 = extractvalue { ptr, i32 } %550, 1
  store i32 %552, ptr %4, align 4
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %72) #8
  br label %593

553:                                              ; preds = %532
  %554 = landingpad { ptr, i32 }
          cleanup
  %555 = extractvalue { ptr, i32 } %554, 0
  store ptr %555, ptr %3, align 8
  %556 = extractvalue { ptr, i32 } %554, 1
  store i32 %556, ptr %4, align 4
  br label %592

557:                                              ; preds = %533
  %558 = landingpad { ptr, i32 }
          cleanup
  %559 = extractvalue { ptr, i32 } %558, 0
  store ptr %559, ptr %3, align 8
  %560 = extractvalue { ptr, i32 } %558, 1
  store i32 %560, ptr %4, align 4
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %74) #8
  br label %592

561:                                              ; preds = %586, %575, %539
  %562 = landingpad { ptr, i32 }
          cleanup
  %563 = extractvalue { ptr, i32 } %562, 0
  store ptr %563, ptr %3, align 8
  %564 = extractvalue { ptr, i32 } %562, 1
  store i32 %564, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #8
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %73) #8
  br label %592

565:                                              ; preds = %540, %534
  %566 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3tbb8internal13tbb_thread_v3aSEOS1_(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull align 8 dereferenceable(8) %73) #8
  %567 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %73) #8
  %568 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %76, i32 0, i32 0
  store i64 %567, ptr %568, align 8
  call void @_ZN3tbb8internal13tbb_thread_v32idC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %77) #8
  %569 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %76, i32 0, i32 0
  %570 = load i64, ptr %569, align 8
  %571 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %77, i32 0, i32 0
  %572 = load i64, ptr %571, align 8
  %573 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %570, i64 %572) #8
  br i1 %573, label %574, label %575

574:                                              ; preds = %565
  br label %577

575:                                              ; preds = %565
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 300, ptr noundef @.str.36, ptr noundef null)
          to label %576 unwind label %561

576:                                              ; preds = %575
  br label %577

577:                                              ; preds = %576, %574
  %578 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %71) #8
  %579 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %78, i32 0, i32 0
  store i64 %578, ptr %579, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %79, ptr align 8 %75, i64 8, i1 false), !tbaa.struct !5
  %580 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %78, i32 0, i32 0
  %581 = load i64, ptr %580, align 8
  %582 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3::id", ptr %79, i32 0, i32 0
  %583 = load i64, ptr %582, align 8
  %584 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %581, i64 %583) #8
  br i1 %584, label %585, label %586

585:                                              ; preds = %577
  br label %588

586:                                              ; preds = %577
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 301, ptr noundef @.str.37, ptr noundef null)
          to label %587 unwind label %561

587:                                              ; preds = %586
  br label %588

588:                                              ; preds = %587, %585
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #8
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %73) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #8
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %71) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #8
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %70) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #8
  br label %589

589:                                              ; preds = %588
  %590 = load i32, ptr %69, align 4, !tbaa !10
  %591 = add nsw i32 %590, 1
  store i32 %591, ptr %69, align 4, !tbaa !10
  br label %487, !llvm.loop !16

592:                                              ; preds = %561, %557, %553
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #8
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %71) #8
  br label %593

593:                                              ; preds = %592, %549, %545
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #8
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %70) #8
  br label %594

594:                                              ; preds = %593, %541
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #8
  br label %609

595:                                              ; preds = %490
  %596 = call noundef i32 @_ZN3tbb8internal13tbb_thread_v320hardware_concurrencyEv() #8
  %597 = icmp ugt i32 %596, 0
  br i1 %597, label %598, label %599

598:                                              ; preds = %595
  br label %601

599:                                              ; preds = %595
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 304, ptr noundef @.str.38, ptr noundef null)
          to label %600 unwind label %525

600:                                              ; preds = %599
  br label %601

601:                                              ; preds = %600, %598
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %63) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #8
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %57) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  %602 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3"], ptr %10, i32 0, i32 0
  %603 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3", ptr %602, i64 3
  br label %604

604:                                              ; preds = %604, %601
  %605 = phi ptr [ %603, %601 ], [ %606, %604 ]
  %606 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3", ptr %605, i64 -1
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %606) #8
  %607 = icmp eq ptr %606, %602
  br i1 %607, label %608, label %604

608:                                              ; preds = %604
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #8
  ret void

609:                                              ; preds = %594, %525
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %63) #8
  br label %610

610:                                              ; preds = %609, %524, %512
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #8
  br label %611

611:                                              ; preds = %610, %508
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %57) #8
  br label %612

612:                                              ; preds = %611, %507, %495
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  br label %613

613:                                              ; preds = %612, %491
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #8
  br label %614

614:                                              ; preds = %613, %423, %395, %360, %356
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %615

615:                                              ; preds = %614, %352
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %616

616:                                              ; preds = %615, %348
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %617

617:                                              ; preds = %616, %344
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br label %618

618:                                              ; preds = %617, %343, %331
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br label %619

619:                                              ; preds = %618, %327, %323
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br label %620

620:                                              ; preds = %619, %319, %315
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  %621 = getelementptr inbounds [3 x %"class.tbb::internal::tbb_thread_v3"], ptr %10, i32 0, i32 0
  %622 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3", ptr %621, i64 3
  br label %623

623:                                              ; preds = %623, %620
  %624 = phi ptr [ %622, %620 ], [ %625, %623 ]
  %625 = getelementptr inbounds %"class.tbb::internal::tbb_thread_v3", ptr %624, i64 -1
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %625) #8
  %626 = icmp eq ptr %625, %621
  br i1 %626, label %627, label %623

627:                                              ; preds = %623
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %6) #8
  br label %628

628:                                              ; preds = %627, %311
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %5) #8
  br label %629

629:                                              ; preds = %628, %307
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %2) #8
  br label %630

630:                                              ; preds = %629, %303
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #8
  br label %631

631:                                              ; preds = %630
  %632 = load ptr, ptr %3, align 8
  %633 = load i32, ptr %4, align 4
  %634 = insertvalue { ptr, i32 } poison, ptr %632, 0
  %635 = insertvalue { ptr, i32 } %634, i32 %633, 1
  resume { ptr, i32 } %635
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ThreadFuncC2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4DataILi0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10ThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb8internal13tbb_thread_v3C2I10ThreadFuncEET_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb8internal13tbb_thread_v3C2I10ThreadFunciEET_T0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb8internal13tbb_thread_v3C2I10ThreadFunci4DataILi0EEEET_T0_T1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef, ptr noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb8internal13tbb_thread_v3C2EOS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb8internal13tbb_thread_v34swapERS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb8internal13tbb_thread_v3C2I10ThreadFunc4DataILi0EEEET_T0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ptr noundef) unnamed_addr #4 align 2

declare void @_ZN3tbb8internal13tbb_thread_v36detachEv(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: nounwind
declare noundef i32 @_ZN3tbb8internal13tbb_thread_v320hardware_concurrencyEv() #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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 = { "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 #7 = { 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 #8 = { 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 = !{i64 0, i64 8, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}


; 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.tbb::internal::tbb_thread_v3::id" = type { i64 }
%"struct.tbb::atomic.0" = type { %"struct.tbb::internal::atomic_impl_with_arithmetic.1" }
%"struct.tbb::internal::atomic_impl_with_arithmetic.1" = type { %"struct.tbb::internal::atomic_impl.2" }
%"struct.tbb::internal::atomic_impl.2" = type { %"struct.tbb::internal::aligned_storage.3" }
%"struct.tbb::internal::aligned_storage.3" = type { i32 }
%"class.tbb::internal::tbb_thread_v3" = type { i64 }
%class.ThreadFunc = type { %class.Base }
%class.Base = type { i32 }
%class.Data.5 = type { %class.Base, i32 }
%class.AnotherThreadFunc = type { %class.Base }

@_ZL8real_ids = external hidden global [5 x %"class.tbb::internal::tbb_thread_v3::id"], align 16
@.str = external hidden unnamed_addr constant [85 x i8], align 1
@_ZL9BaseCount = external hidden global %"struct.tbb::atomic.0", align 4
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [27 x i8], align 1
@_ZL3sum = external hidden global %"struct.tbb::atomic.0", align 4
@.str.31 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [40 x i8], align 1

; 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 nounwind uwtable
declare dso_local void @_ZN3tbb8internal13tbb_thread_v32idC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64, i64) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3tbb8internalneENS0_13tbb_thread_v32idES2_(i64, i64) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14CheckRelationsPKN3tbb8internal13tbb_thread_v32idEib(ptr noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11ReportErrorPKciS0_S0_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20CheckExceptionSafetyv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN17AnotherThreadFuncC2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN3tbb8internal13tbb_thread_v34joinEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z12returnThreadv(ptr dead_on_unwind noalias writable sret(%"class.tbb::internal::tbb_thread_v3") align 8) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8RunTestsv() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %class.ThreadFunc, align 4
  %2 = alloca %class.Data.5, align 4
  %3 = alloca %class.Data.5, align 4
  %4 = alloca %class.Data.5, align 4
  %5 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %6 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  %7 = alloca [3 x %"class.tbb::internal::tbb_thread_v3::id"], align 16
  %8 = alloca [3 x %"class.tbb::internal::tbb_thread_v3"], align 16
  %9 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %10 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %11 = alloca %class.ThreadFunc, align 4
  %12 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %13 = alloca %class.ThreadFunc, align 4
  %14 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %15 = alloca %class.ThreadFunc, align 4
  %16 = alloca %class.Data.5, align 4
  %17 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %18 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %19 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %20 = alloca %class.ThreadFunc, align 4
  %21 = alloca %class.Data.5, align 4
  %22 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %23 = alloca %class.ThreadFunc, align 4
  %24 = alloca %class.Data.5, align 4
  %25 = alloca %class.AnotherThreadFunc, align 4
  %26 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %27 = alloca %class.AnotherThreadFunc, align 4
  %28 = alloca %"class.tbb::internal::tbb_thread_v3", align 8
  %29 = alloca %class.AnotherThreadFunc, align 4
  %30 = alloca %"class.tbb::internal::tbb_thread_v3::id", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @_ZN10ThreadFuncC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  invoke void @_ZN4DataILi0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(8) %2, i32 noundef 100)
          to label %31 unwind label %125

31:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  invoke void @_ZN4DataILi0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef 1)
          to label %32 unwind label %127

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  invoke void @_ZN4DataILi0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef 0)
          to label %33 unwind label %129

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @_ZN3tbb8internal13tbb_thread_v32idC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @_ZN3tbb8internal13tbb_thread_v32idC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @_ZN3tbb8internal13tbb_thread_v32idC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %.ptr.1 = getelementptr inbounds i8, ptr %7, i64 8
  call void @_ZN3tbb8internal13tbb_thread_v32idC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.1) #7
  %.ptr.2 = getelementptr inbounds i8, ptr %7, i64 16
  call void @_ZN3tbb8internal13tbb_thread_v32idC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.2) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @_ZN3tbb8internal13tbb_thread_v3C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %.ptr94.1 = getelementptr inbounds i8, ptr %8, i64 8
  call void @_ZN3tbb8internal13tbb_thread_v3C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr94.1) #7
  %.ptr94.2 = getelementptr inbounds i8, ptr %8, i64 16
  call void @_ZN3tbb8internal13tbb_thread_v3C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr94.2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @_ZN3tbb8internal13tbb_thread_v3C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  invoke void @_ZN10ThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %34 unwind label %131

34:                                               ; preds = %33
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I10ThreadFuncEET_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull %11)
          to label %35 unwind label %133

35:                                               ; preds = %34
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  invoke void @_ZN10ThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %36 unwind label %135

36:                                               ; preds = %35
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I10ThreadFunciEET_T0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull %13, i32 noundef 2)
          to label %37 unwind label %137

37:                                               ; preds = %36
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  invoke void @_ZN10ThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %38 unwind label %139

38:                                               ; preds = %37
  invoke void @_ZN4DataILi0EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %2)
          to label %39 unwind label %141

39:                                               ; preds = %38
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I10ThreadFunci4DataILi0EEEET_T0_T1_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull %15, i32 noundef 1, ptr noundef nonnull %16)
          to label %40 unwind label %143

40:                                               ; preds = %39
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %16) #7
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %15) #7
  %41 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  %.sroa.062.0.copyload = load i64, ptr %5, align 8, !tbaa !5
  %42 = call noundef zeroext i1 @_ZN3tbb8internalneENS0_13tbb_thread_v32idES2_(i64 %41, i64 %.sroa.062.0.copyload) #7
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 205, ptr noundef nonnull @.str.13, ptr noundef null)
          to label %44 unwind label %146

44:                                               ; preds = %43, %40
  %45 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  store i64 %45, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3tbb4moveERNS_8internal13tbb_thread_v3ES2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %46 unwind label %146

46:                                               ; preds = %44
  %47 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  %.sroa.059.0.copyload = load i64, ptr %5, align 8, !tbaa !5
  %48 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %47, i64 %.sroa.059.0.copyload) #7
  br i1 %48, label %50, label %49

49:                                               ; preds = %46
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 208, ptr noundef nonnull @.str.14, ptr noundef null)
          to label %50 unwind label %146

50:                                               ; preds = %49, %46
  %51 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %.sroa.057.0.copyload = load i64, ptr %6, align 8, !tbaa !5
  %52 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %51, i64 %.sroa.057.0.copyload) #7
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 209, ptr noundef nonnull @.str.15, ptr noundef null)
          to label %54 unwind label %146

54:                                               ; preds = %53, %50
  %55 = call noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %56 = call noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %57 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %58 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @_ZN3tbb4swapERNS_8internal13tbb_thread_v3ES2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %59 = call noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %60 = icmp eq i64 %59, %56
  br i1 %60, label %62, label %61

61:                                               ; preds = %54
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 216, ptr noundef nonnull @.str.16, ptr noundef null)
          to label %62 unwind label %148

62:                                               ; preds = %61, %54
  %63 = call noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %64 = icmp eq i64 %63, %55
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 217, ptr noundef nonnull @.str.17, ptr noundef null)
          to label %66 unwind label %148

66:                                               ; preds = %65, %62
  %67 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %68 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %67, i64 %58) #7
  br i1 %68, label %70, label %69

69:                                               ; preds = %66
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 218, ptr noundef nonnull @.str.18, ptr noundef null)
          to label %70 unwind label %148

70:                                               ; preds = %69, %66
  %71 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %72 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %71, i64 %57) #7
  br i1 %72, label %74, label %73

73:                                               ; preds = %70
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 219, ptr noundef nonnull @.str.19, ptr noundef null)
          to label %74 unwind label %148

74:                                               ; preds = %73, %70
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  call void @_ZN3tbb8internal13tbb_thread_v3C2EOS1_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %75 = call noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
  %76 = icmp eq i64 %75, %56
  br i1 %76, label %77, label %80

77:                                               ; preds = %74
  %78 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  %79 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %78, i64 %58) #7
  br i1 %79, label %81, label %80

80:                                               ; preds = %77, %74
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 223, ptr noundef nonnull @.str.20, ptr noundef null)
          to label %81 unwind label %150

81:                                               ; preds = %80, %77
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3tbb8internal13tbb_thread_v3aSEOS1_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  %83 = call noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %84 = icmp eq i64 %83, %56
  br i1 %84, label %85, label %88

85:                                               ; preds = %81
  %86 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %87 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %86, i64 %58) #7
  br i1 %87, label %89, label %88

88:                                               ; preds = %85, %81
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 225, ptr noundef nonnull @.str.21, ptr noundef null)
          to label %89 unwind label %150

89:                                               ; preds = %88, %85
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @_ZN3tbb8internal13tbb_thread_v34swapERS1_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %90 = call noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %91 = icmp eq i64 %90, %55
  br i1 %91, label %93, label %92

92:                                               ; preds = %89
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 230, ptr noundef nonnull @.str.22, ptr noundef null)
          to label %93 unwind label %148

93:                                               ; preds = %92, %89
  %94 = call noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %95 = icmp eq i64 %94, %56
  br i1 %95, label %97, label %96

96:                                               ; preds = %93
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 231, ptr noundef nonnull @.str.23, ptr noundef null)
          to label %97 unwind label %148

97:                                               ; preds = %96, %93
  %98 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %99 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %98, i64 %57) #7
  br i1 %99, label %101, label %100

100:                                              ; preds = %97
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 232, ptr noundef nonnull @.str.24, ptr noundef null)
          to label %101 unwind label %148

101:                                              ; preds = %100, %97
  %102 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %103 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %102, i64 %58) #7
  br i1 %103, label %105, label %104

104:                                              ; preds = %101
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 233, ptr noundef nonnull @.str.25, ptr noundef null)
          to label %105 unwind label %148

105:                                              ; preds = %104, %101
  call void @_ZN3tbb8internal13tbb_thread_v34swapERS1_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  invoke void @_ZN3tbb4moveERNS_8internal13tbb_thread_v3ES2_(ptr noundef nonnull align 8 dereferenceable(8) %.ptr94.1, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %106 unwind label %148

106:                                              ; preds = %105
  %107 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %.sroa.031.0.copyload = load i64, ptr %5, align 8, !tbaa !5
  %108 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %107, i64 %.sroa.031.0.copyload) #7
  br i1 %108, label %110, label %109

109:                                              ; preds = %106
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 237, ptr noundef nonnull @.str.26, ptr noundef null)
          to label %110 unwind label %148

110:                                              ; preds = %109, %106
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  call void @_Z12returnThreadv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::internal::tbb_thread_v3") align 8 %18)
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3tbb8internal13tbb_thread_v3aSEOS1_(ptr noundef nonnull align 8 dereferenceable(8) %.ptr94.2, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  %112 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr94.2) #7
  %.sroa.029.0.copyload = load i64, ptr %5, align 8, !tbaa !5
  %113 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %112, i64 %.sroa.029.0.copyload) #7
  br i1 %113, label %115, label %114

114:                                              ; preds = %110
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 241, ptr noundef nonnull @.str.27, ptr noundef null)
          to label %115 unwind label %148

115:                                              ; preds = %114, %110
  invoke void @_ZN3tbb4moveERNS_8internal13tbb_thread_v3ES2_(ptr noundef nonnull align 8 dereferenceable(8) %.ptr94.2, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %116 unwind label %148

116:                                              ; preds = %115
  %117 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %.sroa.027.0.copyload = load i64, ptr %5, align 8, !tbaa !5
  %118 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %117, i64 %.sroa.027.0.copyload) #7
  br i1 %118, label %120, label %119

119:                                              ; preds = %116
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 244, ptr noundef nonnull @.str.28, ptr noundef null)
          to label %120 unwind label %148

120:                                              ; preds = %119, %116
  %121 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  store i64 %121, ptr %7, align 16, !tbaa !5
  %122 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr94.1) #7
  store i64 %122, ptr %.ptr.1, align 8, !tbaa !5
  %123 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr94.2) #7
  store i64 %123, ptr %.ptr.2, align 16, !tbaa !5
  %124 = call noundef zeroext i1 @_ZNK3tbb8internal13tbb_thread_v38joinableEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr94.2) #7
  br i1 %124, label %153, label %152

125:                                              ; preds = %0
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %284

127:                                              ; preds = %31
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %283

129:                                              ; preds = %32
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %282

131:                                              ; preds = %33
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %279

133:                                              ; preds = %34
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %11) #7
  br label %279

135:                                              ; preds = %35
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %278

137:                                              ; preds = %36
  %138 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %13) #7
  br label %278

139:                                              ; preds = %37
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %277

141:                                              ; preds = %38
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %145

143:                                              ; preds = %39
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %16) #7
  br label %145

145:                                              ; preds = %143, %141
  %.pn = phi { ptr, i32 } [ %144, %143 ], [ %142, %141 ]
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %15) #7
  br label %277

146:                                              ; preds = %53, %49, %44, %43
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %276

148:                                              ; preds = %152, %119, %115, %114, %109, %105, %104, %100, %96, %92, %73, %69, %65, %61
  %149 = landingpad { ptr, i32 }
          cleanup
  br label %276

150:                                              ; preds = %88, %80
  %151 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br label %276

152:                                              ; preds = %120
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 249, ptr noundef nonnull @.str.29, ptr noundef null)
          to label %153 unwind label %148

153:                                              ; preds = %152, %120
  invoke void @_ZN3tbb8internal13tbb_thread_v34joinEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %154 unwind label %157

154:                                              ; preds = %153
  invoke void @_ZN3tbb8internal13tbb_thread_v34joinEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr94.1)
          to label %155 unwind label %157

155:                                              ; preds = %154
  invoke void @_ZN3tbb8internal13tbb_thread_v34joinEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr94.2)
          to label %.preheader120.preheader unwind label %157

.preheader120.preheader:                          ; preds = %155
  %.sroa.014.0.copyload = load i64, ptr @_ZL8real_ids, align 16, !tbaa !5
  %.sroa.013.0.copyload = load i64, ptr %7, align 16, !tbaa !5
  %156 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %.sroa.014.0.copyload, i64 %.sroa.013.0.copyload) #7
  br i1 %156, label %.preheader120.1, label %159

157:                                              ; preds = %155, %154, %153
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %276

159:                                              ; preds = %.preheader120.preheader
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 260, ptr noundef nonnull @.str.30, ptr noundef null)
          to label %.preheader120.1 unwind label %166

.preheader120.1:                                  ; preds = %.preheader120.preheader, %159
  %.sroa.014.0.copyload.1 = load i64, ptr getelementptr inbounds (i8, ptr @_ZL8real_ids, i64 8), align 8, !tbaa !5
  %.sroa.013.0.copyload.1 = load i64, ptr %.ptr.1, align 8, !tbaa !5
  %160 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %.sroa.014.0.copyload.1, i64 %.sroa.013.0.copyload.1) #7
  br i1 %160, label %.preheader120.2, label %161

161:                                              ; preds = %.preheader120.1
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 260, ptr noundef nonnull @.str.30, ptr noundef null)
          to label %.preheader120.2 unwind label %166

.preheader120.2:                                  ; preds = %161, %.preheader120.1
  %.sroa.014.0.copyload.2 = load i64, ptr getelementptr inbounds (i8, ptr @_ZL8real_ids, i64 16), align 16, !tbaa !5
  %.sroa.013.0.copyload.2 = load i64, ptr %.ptr.2, align 16, !tbaa !5
  %162 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %.sroa.014.0.copyload.2, i64 %.sroa.013.0.copyload.2) #7
  br i1 %162, label %164, label %163

163:                                              ; preds = %.preheader120.2
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 260, ptr noundef nonnull @.str.30, ptr noundef null)
          to label %164 unwind label %166

164:                                              ; preds = %163, %.preheader120.2
  %165 = invoke noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZL3sum)
          to label %168 unwind label %200

166:                                              ; preds = %163, %161, %159
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %276

168:                                              ; preds = %164
  %169 = icmp eq i32 %165, 104
  br i1 %169, label %171, label %170

170:                                              ; preds = %168
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 264, ptr noundef nonnull @.str.31, ptr noundef null)
          to label %171 unwind label %200

171:                                              ; preds = %170, %168
  %172 = call noundef zeroext i1 @_ZNK3tbb8internal13tbb_thread_v38joinableEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr94.2) #7
  br i1 %172, label %173, label %174

173:                                              ; preds = %171
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 265, ptr noundef nonnull @.str.32, ptr noundef null)
          to label %174 unwind label %200

174:                                              ; preds = %173, %171
  %175 = invoke noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZL9BaseCount)
          to label %176 unwind label %200

176:                                              ; preds = %174
  %177 = icmp eq i32 %175, 4
  br i1 %177, label %179, label %178

178:                                              ; preds = %176
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 266, ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.12)
          to label %179 unwind label %200

179:                                              ; preds = %178, %176
  invoke void @_Z20CheckExceptionSafetyv()
          to label %180 unwind label %200

180:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  invoke void @_ZN10ThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %181 unwind label %202

181:                                              ; preds = %180
  invoke void @_ZN4DataILi0EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %4)
          to label %182 unwind label %204

182:                                              ; preds = %181
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I10ThreadFunc4DataILi0EEEET_T0_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull %20, ptr noundef nonnull %21)
          to label %183 unwind label %206

183:                                              ; preds = %182
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %21) #7
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %20) #7
  %184 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  store i64 %184, ptr getelementptr inbounds (i8, ptr @_ZL8real_ids, i64 24), align 8, !tbaa !5
  invoke void @_ZN3tbb8internal13tbb_thread_v36detachEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %185 unwind label %209

185:                                              ; preds = %183
  %186 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %.sroa.09.0.copyload = load i64, ptr %5, align 8, !tbaa !5
  %187 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %186, i64 %.sroa.09.0.copyload) #7
  br i1 %187, label %189, label %188

188:                                              ; preds = %185
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 279, ptr noundef nonnull @.str.34, ptr noundef null)
          to label %189 unwind label %209

189:                                              ; preds = %188, %185
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  invoke void @_ZN10ThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %190 unwind label %211

190:                                              ; preds = %189
  invoke void @_ZN4DataILi0EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %3)
          to label %191 unwind label %213

191:                                              ; preds = %190
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I10ThreadFunc4DataILi0EEEET_T0_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull %23, ptr noundef nonnull %24)
          to label %192 unwind label %215

192:                                              ; preds = %191
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %24) #7
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %23) #7
  %193 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  store i64 %193, ptr getelementptr inbounds (i8, ptr @_ZL8real_ids, i64 32), align 16, !tbaa !5
  invoke void @_ZN3tbb8internal13tbb_thread_v36detachEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %194 unwind label %218

194:                                              ; preds = %192
  %195 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %.sroa.06.0.copyload = load i64, ptr %5, align 8, !tbaa !5
  %196 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %195, i64 %.sroa.06.0.copyload) #7
  br i1 %196, label %198, label %197

197:                                              ; preds = %194
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 284, ptr noundef nonnull @.str.35, ptr noundef null)
          to label %198 unwind label %218

198:                                              ; preds = %197, %194
  invoke void @_Z14CheckRelationsPKN3tbb8internal13tbb_thread_v32idEib(ptr noundef nonnull @_ZL8real_ids, i32 noundef 5, i1 noundef zeroext true)
          to label %199 unwind label %218

199:                                              ; preds = %198
  invoke void @_Z14CheckRelationsPKN3tbb8internal13tbb_thread_v32idEib(ptr noundef nonnull %7, i32 noundef 3, i1 noundef zeroext false)
          to label %.preheader.preheader unwind label %218

.preheader.preheader:                             ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #7
  invoke void @_ZN17AnotherThreadFuncC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %220 unwind label %224

200:                                              ; preds = %179, %178, %174, %173, %170, %164
  %201 = landingpad { ptr, i32 }
          cleanup
  br label %276

202:                                              ; preds = %180
  %203 = landingpad { ptr, i32 }
          cleanup
  br label %275

204:                                              ; preds = %181
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %208

206:                                              ; preds = %182
  %207 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %21) #7
  br label %208

208:                                              ; preds = %206, %204
  %.pn97 = phi { ptr, i32 } [ %207, %206 ], [ %205, %204 ]
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %20) #7
  br label %275

209:                                              ; preds = %188, %183
  %210 = landingpad { ptr, i32 }
          cleanup
  br label %274

211:                                              ; preds = %189
  %212 = landingpad { ptr, i32 }
          cleanup
  br label %273

213:                                              ; preds = %190
  %214 = landingpad { ptr, i32 }
          cleanup
  br label %217

215:                                              ; preds = %191
  %216 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %24) #7
  br label %217

217:                                              ; preds = %215, %213
  %.pn99 = phi { ptr, i32 } [ %216, %215 ], [ %214, %213 ]
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %23) #7
  br label %273

218:                                              ; preds = %268, %199, %198, %197, %192
  %219 = landingpad { ptr, i32 }
          cleanup
  br label %272

220:                                              ; preds = %.preheader.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  invoke void @_ZN17AnotherThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %221 unwind label %226

221:                                              ; preds = %220
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I17AnotherThreadFuncEET_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull %27)
          to label %222 unwind label %228

222:                                              ; preds = %221
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #7
  invoke void @_ZN17AnotherThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %223 unwind label %230

223:                                              ; preds = %222
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I17AnotherThreadFuncEET_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull %29)
          to label %236 unwind label %232

224:                                              ; preds = %.preheader.1, %.preheader.preheader
  %225 = landingpad { ptr, i32 }
          cleanup
  br label %267

226:                                              ; preds = %247, %220
  %227 = landingpad { ptr, i32 }
          cleanup
  br label %266

228:                                              ; preds = %248, %221
  %229 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %27) #7
  br label %266

230:                                              ; preds = %249, %222
  %231 = landingpad { ptr, i32 }
          cleanup
  br label %265

232:                                              ; preds = %250, %223
  %233 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %29) #7
  br label %265

234:                                              ; preds = %262, %258, %251, %246, %242
  %235 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  br label %265

236:                                              ; preds = %223
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %29) #7
  %237 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3tbb8internal13tbb_thread_v3aSEOS1_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  %239 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  call void @_ZN3tbb8internal13tbb_thread_v32idC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  %240 = load i64, ptr %30, align 8
  %241 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %239, i64 %240) #7
  br i1 %241, label %243, label %242

242:                                              ; preds = %236
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 300, ptr noundef nonnull @.str.36, ptr noundef null)
          to label %243 unwind label %234

243:                                              ; preds = %242, %236
  %244 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  %245 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %244, i64 %237) #7
  br i1 %245, label %.preheader.1, label %246

246:                                              ; preds = %243
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 301, ptr noundef nonnull @.str.37, ptr noundef null)
          to label %.preheader.1 unwind label %234

.preheader.1:                                     ; preds = %246, %243
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #7
  invoke void @_ZN17AnotherThreadFuncC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %247 unwind label %224

247:                                              ; preds = %.preheader.1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  invoke void @_ZN17AnotherThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %248 unwind label %226

248:                                              ; preds = %247
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I17AnotherThreadFuncEET_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull %27)
          to label %249 unwind label %228

249:                                              ; preds = %248
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #7
  invoke void @_ZN17AnotherThreadFuncC2ERKS_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %250 unwind label %230

250:                                              ; preds = %249
  invoke void @_ZN3tbb8internal13tbb_thread_v3C2I17AnotherThreadFuncEET_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull %29)
          to label %251 unwind label %232

251:                                              ; preds = %250
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %29) #7
  %252 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  invoke void @_ZN3tbb8internal13tbb_thread_v34joinEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %253 unwind label %234

253:                                              ; preds = %251
  %254 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3tbb8internal13tbb_thread_v3aSEOS1_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  %255 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  call void @_ZN3tbb8internal13tbb_thread_v32idC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  %256 = load i64, ptr %30, align 8
  %257 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %255, i64 %256) #7
  br i1 %257, label %259, label %258

258:                                              ; preds = %253
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 300, ptr noundef nonnull @.str.36, ptr noundef null)
          to label %259 unwind label %234

259:                                              ; preds = %258, %253
  %260 = call i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  %261 = call noundef zeroext i1 @_ZN3tbb8internaleqENS0_13tbb_thread_v32idES2_(i64 %260, i64 %252) #7
  br i1 %261, label %263, label %262

262:                                              ; preds = %259
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 301, ptr noundef nonnull @.str.37, ptr noundef null)
          to label %263 unwind label %234

263:                                              ; preds = %262, %259
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #7
  %264 = call noundef i32 @_ZN3tbb8internal13tbb_thread_v320hardware_concurrencyEv() #7
  %.not = icmp eq i32 %264, 0
  br i1 %.not, label %268, label %269

265:                                              ; preds = %234, %232, %230
  %.pn102 = phi { ptr, i32 } [ %235, %234 ], [ %233, %232 ], [ %231, %230 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  br label %266

266:                                              ; preds = %265, %228, %226
  %.pn102.pn = phi { ptr, i32 } [ %.pn102, %265 ], [ %229, %228 ], [ %227, %226 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %25) #7
  br label %267

267:                                              ; preds = %266, %224
  %.pn102.pn.pn = phi { ptr, i32 } [ %.pn102.pn, %266 ], [ %225, %224 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #7
  br label %272

268:                                              ; preds = %263
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 304, ptr noundef nonnull @.str.38, ptr noundef null)
          to label %269 unwind label %218

269:                                              ; preds = %268, %263
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %270 = getelementptr inbounds i8, ptr %8, i64 16
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %270) #7
  %271 = getelementptr inbounds i8, ptr %8, i64 8
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %271) #7
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret void

272:                                              ; preds = %267, %218
  %.pn102.pn.pn.pn = phi { ptr, i32 } [ %.pn102.pn.pn, %267 ], [ %219, %218 ]
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br label %273

273:                                              ; preds = %272, %217, %211
  %.pn102.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn102.pn.pn.pn, %272 ], [ %.pn99, %217 ], [ %212, %211 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br label %274

274:                                              ; preds = %273, %209
  %.pn102.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn102.pn.pn.pn.pn, %273 ], [ %210, %209 ]
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br label %275

275:                                              ; preds = %274, %208, %202
  %.pn102.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn102.pn.pn.pn.pn.pn, %274 ], [ %.pn97, %208 ], [ %203, %202 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %276

276:                                              ; preds = %148, %150, %157, %166, %275, %200, %146
  %.pn111.pn = phi { ptr, i32 } [ %147, %146 ], [ %158, %157 ], [ %167, %166 ], [ %149, %148 ], [ %151, %150 ], [ %.pn102.pn.pn.pn.pn.pn.pn, %275 ], [ %201, %200 ]
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %277

277:                                              ; preds = %276, %145, %139
  %.pn111.pn.pn = phi { ptr, i32 } [ %.pn111.pn, %276 ], [ %.pn, %145 ], [ %140, %139 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br label %278

278:                                              ; preds = %277, %137, %135
  %.pn111.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn, %277 ], [ %138, %137 ], [ %136, %135 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br label %279

279:                                              ; preds = %278, %133, %131
  %.pn111.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn.pn, %278 ], [ %134, %133 ], [ %132, %131 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %280 = getelementptr inbounds i8, ptr %8, i64 16
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %280) #7
  %281 = getelementptr inbounds i8, ptr %8, i64 8
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %281) #7
  call void @_ZN3tbb8internal13tbb_thread_v3D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %4) #7
  br label %282

282:                                              ; preds = %279, %129
  %.pn111.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn.pn.pn, %279 ], [ %130, %129 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %3) #7
  br label %283

283:                                              ; preds = %282, %127
  %.pn111.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn.pn.pn.pn, %282 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(8) %2) #7
  br label %284

284:                                              ; preds = %283, %125
  %.pn111.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn.pn.pn.pn.pn, %283 ], [ %126, %125 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn111.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ThreadFuncC2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4DataILi0EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4BaseD2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i64 @_ZNK3tbb8internal13tbb_thread_v36get_idEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3tbb4moveERNS_8internal13tbb_thread_v3ES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN3tbb8internal13tbb_thread_v313native_handleEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb8internal13tbb_thread_v3C2EOS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb8internal13tbb_thread_v34swapERS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

declare void @_ZN3tbb8internal13tbb_thread_v36detachEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: nounwind
declare noundef i32 @_ZN3tbb8internal13tbb_thread_v320hardware_concurrencyEv() local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #5 = { "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 "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 #7 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,SCCPPass,SROAPass,SimplifyCFGPass