; LLVM IR from ardiloot/NonlinearTMM :: NonlinearTMM/src/eigen-3.4.0/unsupported/test (cxx11_tensor_thread_local)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Eigen::ThreadPoolTempl" = type { %"class.Eigen::ThreadPoolInterface", [4 x i8], i32, i8, %"class.Eigen::MaxSizeVector", %"class.Eigen::MaxSizeVector.9", %"class.Eigen::MaxSizeVector.10", i32, %"struct.std::atomic", %"struct.std::atomic.11", %"struct.std::atomic.11", %"struct.std::atomic.11", %"class.Eigen::EventCount" }
%"class.Eigen::ThreadPoolInterface" = type { ptr }
%"class.Eigen::MaxSizeVector" = type { i64, i64, ptr }
%"class.Eigen::MaxSizeVector.9" = type { i64, i64, ptr }
%"class.Eigen::MaxSizeVector.10" = type { i64, i64, ptr }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"struct.std::atomic.11" = type { %"struct.std::__atomic_base.12" }
%"struct.std::__atomic_base.12" = type { i8 }
%"class.Eigen::EventCount" = type { %"struct.std::atomic.13", ptr }
%"struct.std::atomic.13" = type { %"struct.std::__atomic_base.14" }
%"struct.std::__atomic_base.14" = type { i64 }
%"struct.Eigen::StlThreadEnvironment" = type { i8 }
%"class.Eigen::ThreadLocal" = type { [4 x i8], i32, %"class.Eigen::MaxSizeVector.15", %"class.Eigen::MaxSizeVector.16", %"struct.std::atomic.17", %"class.std::mutex", %"class.std::unordered_map" }
%"class.Eigen::MaxSizeVector.15" = type { i64, i64, ptr }
%"class.Eigen::MaxSizeVector.16" = type { i64, i64, ptr }
%"struct.std::atomic.17" = type { %"struct.std::__atomic_base.18" }
%"struct.std::__atomic_base.18" = type { i32 }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.InitCounter = type { i8 }
%"class.Eigen::Barrier" = type <{ %"class.std::mutex", %"class.std::condition_variable", %"struct.std::atomic", i8, [3 x i8] }>
%"class.std::condition_variable" = type { %"class.std::__condvar" }
%"class.std::__condvar" = type { %union.pthread_cond_t }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.44 = type { ptr, ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.30" }
%"class.std::_Hashtable.30" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::function.24" = type { %"class.std::_Function_base", ptr }
%class.anon.45 = type { ptr, ptr }

@_ZN5EigenL12g_test_stackB5cxx11E = external hidden global %"class.std::vector", align 8
@.str.28 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [91 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Eigen8internal6randomIiEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Eigen13test_is_equalIiiEEbRKT_RKT0_b(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Eigen13test_is_equalIbbEEbRKT_RKT0_b(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), i1 noundef zeroext) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z37test_large_number_of_tasks_with_spillv() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.Eigen::ThreadPoolTempl", align 8
  %5 = alloca %"struct.Eigen::StlThreadEnvironment", align 1
  %6 = alloca %"class.Eigen::ThreadLocal", align 8
  %7 = alloca %struct.InitCounter, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.Eigen::Barrier", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::function", align 8
  %14 = alloca %class.anon.44, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::unordered_set", align 8
  %17 = alloca %"class.std::function.24", align 8
  %18 = alloca %class.anon.45, align 8
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 4, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 32, ptr %3, align 4, !tbaa !5
  %21 = call noundef i32 @_ZN5Eigen8internal6randomIiEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  store i32 %21, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %4) #5
  %22 = load i32, ptr %1, align 4, !tbaa !5
  call void @_ZN5Eigen15ThreadPoolTemplINS_20StlThreadEnvironmentEEC2EiS1_(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef %22)
  call void @llvm.lifetime.start.p0(i64 160, ptr %6) #5
  invoke void @_ZN5Eigen11ThreadLocalI7Counter11InitCounterNS_8internal22ThreadLocalNoOpReleaseIS1_EEEC2EiS2_(ptr noundef nonnull align 8 dereferenceable(160) %6, i32 noundef 1)
          to label %23 unwind label %31

23:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 10000, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 96, ptr %11) #5
  %24 = load i32, ptr %10, align 4, !tbaa !5
  invoke void @_ZN5Eigen7BarrierC2Ej(ptr noundef nonnull align 8 dereferenceable(93) %11, i32 noundef %24)
          to label %25 unwind label %35

25:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %43, %25
  %27 = load i32, ptr %12, align 4, !tbaa !5
  %28 = load i32, ptr %10, align 4, !tbaa !5
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %39, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %50

31:                                               ; preds = %0
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %8, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %9, align 4
  br label %90

35:                                               ; preds = %23
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %8, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %9, align 4
  br label %89

39:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %40 = getelementptr inbounds %class.anon.44, ptr %14, i32 0, i32 0
  store ptr %6, ptr %40, align 8, !tbaa !9
  %41 = getelementptr inbounds %class.anon.44, ptr %14, i32 0, i32 1
  store ptr %11, ptr %41, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvvEEC2IZ37test_large_number_of_tasks_with_spillvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  invoke void @_ZN5Eigen15ThreadPoolTemplINS_20StlThreadEnvironmentEE8ScheduleESt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(128) %4, ptr noundef %13)
          to label %42 unwind label %46

42:                                               ; preds = %39
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  br label %43

43:                                               ; preds = %42
  %44 = load i32, ptr %12, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %12, align 4, !tbaa !5
  br label %26, !llvm.loop !11

46:                                               ; preds = %39
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %8, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %9, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %88

50:                                               ; preds = %30
  invoke void @_ZN5Eigen7Barrier4WaitEv(ptr noundef nonnull align 8 dereferenceable(93) %11)
          to label %51 unwind label %71

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %16) #5
  call void @_ZNSt13unordered_setINSt6thread2idESt4hashIS1_ESt8equal_toIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %52 = getelementptr inbounds %class.anon.45, ptr %18, i32 0, i32 0
  store ptr %15, ptr %52, align 8, !tbaa !9
  %53 = getelementptr inbounds %class.anon.45, ptr %18, i32 0, i32 1
  store ptr %16, ptr %53, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvNSt6thread2idER7CounterEEC2IZ37test_large_number_of_tasks_with_spillvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  invoke void @_ZN5Eigen11ThreadLocalI7Counter11InitCounterNS_8internal22ThreadLocalNoOpReleaseIS1_EEE7ForEachESt8functionIFvNSt6thread2idERS1_EE(ptr noundef nonnull align 8 dereferenceable(160) %6, ptr noundef %17)
          to label %54 unwind label %75

54:                                               ; preds = %51
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  %55 = invoke noundef zeroext i1 @_ZN5Eigen13test_is_equalIiiEEbRKT_RKT0_b(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %10, i1 noundef zeroext true)
          to label %56 unwind label %79

56:                                               ; preds = %54
  %57 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #5
  %58 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %57) #5
  invoke void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %55, ptr noundef %58, ptr noundef @.str.28, i32 noundef 137, ptr noundef @.str.30)
          to label %59 unwind label %79

59:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  %60 = call noundef i64 @_ZNKSt13unordered_setINSt6thread2idESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %16) #5
  %61 = load i32, ptr %1, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  %63 = sext i32 %62 to i64
  %64 = icmp ule i64 %60, %63
  %65 = zext i1 %64 to i8
  store i8 %65, ptr %19, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  store i8 1, ptr %20, align 1, !tbaa !13
  %66 = invoke noundef zeroext i1 @_ZN5Eigen13test_is_equalIbbEEbRKT_RKT0_b(ptr noundef nonnull align 1 dereferenceable(1) %19, ptr noundef nonnull align 1 dereferenceable(1) %20, i1 noundef zeroext true)
          to label %67 unwind label %83

67:                                               ; preds = %59
  %68 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #5
  %69 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %68) #5
  invoke void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %66, ptr noundef %69, ptr noundef @.str.28, i32 noundef 141, ptr noundef @.str.31)
          to label %70 unwind label %83

70:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @_ZNSt13unordered_setINSt6thread2idESt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @_ZN5Eigen7BarrierD2Ev(ptr noundef nonnull align 8 dereferenceable(93) %11) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @_ZN5Eigen11ThreadLocalI7Counter11InitCounterNS_8internal22ThreadLocalNoOpReleaseIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(160) %6) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %6) #5
  call void @_ZN5Eigen15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(128) %4) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret void

71:                                               ; preds = %50
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %8, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %9, align 4
  br label %88

75:                                               ; preds = %51
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %8, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %9, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  br label %87

79:                                               ; preds = %56, %54
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %8, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %9, align 4
  br label %87

83:                                               ; preds = %67, %59
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %8, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  br label %87

87:                                               ; preds = %83, %79, %75
  call void @_ZNSt13unordered_setINSt6thread2idESt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %88

88:                                               ; preds = %87, %71, %46
  call void @_ZN5Eigen7BarrierD2Ev(ptr noundef nonnull align 8 dereferenceable(93) %11) #5
  br label %89

89:                                               ; preds = %88, %35
  call void @llvm.lifetime.end.p0(i64 96, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @_ZN5Eigen11ThreadLocalI7Counter11InitCounterNS_8internal22ThreadLocalNoOpReleaseIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(160) %6) #5
  br label %90

90:                                               ; preds = %89, %31
  call void @llvm.lifetime.end.p0(i64 160, ptr %6) #5
  call void @_ZN5Eigen15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(128) %4) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  br label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr %8, align 8
  %93 = load i32, ptr %9, align 4
  %94 = insertvalue { ptr, i32 } poison, ptr %92, 0
  %95 = insertvalue { ptr, i32 } %94, i32 %93, 1
  resume { ptr, i32 } %95
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZ37test_large_number_of_tasks_with_spillvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvNSt6thread2idER7CounterEEC2IZ37test_large_number_of_tasks_with_spillvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Eigen::ThreadPoolTempl" = type { %"class.Eigen::ThreadPoolInterface", [4 x i8], i32, i8, %"class.Eigen::MaxSizeVector", %"class.Eigen::MaxSizeVector.9", %"class.Eigen::MaxSizeVector.10", i32, %"struct.std::atomic", %"struct.std::atomic.11", %"struct.std::atomic.11", %"struct.std::atomic.11", %"class.Eigen::EventCount" }
%"class.Eigen::ThreadPoolInterface" = type { ptr }
%"class.Eigen::MaxSizeVector" = type { i64, i64, ptr }
%"class.Eigen::MaxSizeVector.9" = type { i64, i64, ptr }
%"class.Eigen::MaxSizeVector.10" = type { i64, i64, ptr }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"struct.std::atomic.11" = type { %"struct.std::__atomic_base.12" }
%"struct.std::__atomic_base.12" = type { i8 }
%"class.Eigen::EventCount" = type { %"struct.std::atomic.13", ptr }
%"struct.std::atomic.13" = type { %"struct.std::__atomic_base.14" }
%"struct.std::__atomic_base.14" = type { i64 }
%"class.Eigen::ThreadLocal" = type { [4 x i8], i32, %"class.Eigen::MaxSizeVector.15", %"class.Eigen::MaxSizeVector.16", %"struct.std::atomic.17", %"class.std::mutex", %"class.std::unordered_map" }
%"class.Eigen::MaxSizeVector.15" = type { i64, i64, ptr }
%"class.Eigen::MaxSizeVector.16" = type { i64, i64, ptr }
%"struct.std::atomic.17" = type { %"struct.std::__atomic_base.18" }
%"struct.std::__atomic_base.18" = type { i32 }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.Eigen::Barrier" = type <{ %"class.std::mutex", %"class.std::condition_variable", %"struct.std::atomic", i8, [3 x i8] }>
%"class.std::condition_variable" = type { %"class.std::__condvar" }
%"class.std::__condvar" = type { %union.pthread_cond_t }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.44 = type { ptr, ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.30" }
%"class.std::_Hashtable.30" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::function.24" = type { %"class.std::_Function_base", ptr }
%class.anon.45 = type { ptr, ptr }

@_ZN5EigenL12g_test_stackB5cxx11E = external hidden global %"class.std::vector", align 8
@.str.28 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [91 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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Eigen8internal6randomIiEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Eigen7Barrier4WaitEv(ptr noundef nonnull align 8 dereferenceable(93)) local_unnamed_addr #3 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Eigen13test_is_equalIiiEEbRKT_RKT0_b(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Eigen13test_is_equalIbbEEbRKT_RKT0_b(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), i1 noundef zeroext) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z37test_large_number_of_tasks_with_spillv() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.Eigen::ThreadPoolTempl", align 8
  %4 = alloca %"class.Eigen::ThreadLocal", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.Eigen::Barrier", align 8
  %7 = alloca %"class.std::function", align 8
  %8 = alloca %class.anon.44, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::unordered_set", align 8
  %11 = alloca %"class.std::function.24", align 8
  %12 = alloca %class.anon.45, align 8
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  store i32 4, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 32, ptr %2, align 4, !tbaa !5
  %15 = call noundef i32 @_ZN5Eigen8internal6randomIiEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #5
  call void @_ZN5Eigen15ThreadPoolTemplINS_20StlThreadEnvironmentEEC2EiS1_(ptr noundef nonnull align 8 dereferenceable(128) %3, i32 noundef %15)
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %4) #5
  invoke void @_ZN5Eigen11ThreadLocalI7Counter11InitCounterNS_8internal22ThreadLocalNoOpReleaseIS1_EEEC2EiS2_(ptr noundef nonnull align 8 dereferenceable(160) %4, i32 noundef 1)
          to label %.lr.ph unwind label %17

.lr.ph:                                           ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 10000, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %6) #5
  call void @_ZN5Eigen7BarrierC2Ej(ptr noundef nonnull align 8 dereferenceable(93) %6, i32 noundef 10000)
  %16 = getelementptr inbounds i8, ptr %8, i64 8
  br label %19

._crit_edge:                                      ; preds = %20
  invoke void @_ZN5Eigen7Barrier4WaitEv(ptr noundef nonnull align 8 dereferenceable(93) %6)
          to label %25 unwind label %43

17:                                               ; preds = %0
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %53

19:                                               ; preds = %.lr.ph, %20
  %.013 = phi i32 [ 0, %.lr.ph ], [ %21, %20 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  store ptr %4, ptr %8, align 8, !tbaa !9
  store ptr %6, ptr %16, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvvEEC2IZ37test_large_number_of_tasks_with_spillvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  invoke void @_ZN5Eigen15ThreadPoolTemplINS_20StlThreadEnvironmentEE8ScheduleESt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(128) %3, ptr noundef nonnull %7)
          to label %20 unwind label %23

20:                                               ; preds = %19
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  %21 = add nuw nsw i32 %.013, 1
  %22 = icmp ult i32 %.013, 9999
  br i1 %22, label %19, label %._crit_edge, !llvm.loop !11

23:                                               ; preds = %19
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  br label %52

25:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %10) #5
  call void @_ZNSt13unordered_setINSt6thread2idESt4hashIS1_ESt8equal_toIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  store ptr %9, ptr %12, align 8, !tbaa !9
  %26 = getelementptr inbounds i8, ptr %12, i64 8
  store ptr %10, ptr %26, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvNSt6thread2idER7CounterEEC2IZ37test_large_number_of_tasks_with_spillvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  invoke void @_ZN5Eigen11ThreadLocalI7Counter11InitCounterNS_8internal22ThreadLocalNoOpReleaseIS1_EEE7ForEachESt8functionIFvNSt6thread2idERS1_EE(ptr noundef nonnull align 8 dereferenceable(160) %4, ptr noundef nonnull %11)
          to label %27 unwind label %45

27:                                               ; preds = %25
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  %28 = invoke noundef zeroext i1 @_ZN5Eigen13test_is_equalIiiEEbRKT_RKT0_b(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %5, i1 noundef zeroext true)
          to label %29 unwind label %47

29:                                               ; preds = %27
  %30 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #5
  %31 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %30) #5
  invoke void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %28, ptr noundef %31, ptr noundef nonnull @.str.28, i32 noundef 137, ptr noundef nonnull @.str.30)
          to label %32 unwind label %47

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #5
  %33 = call noundef i64 @_ZNKSt13unordered_setINSt6thread2idESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %10) #5
  %34 = add nsw i32 %15, 1
  %35 = sext i32 %34 to i64
  %36 = icmp ule i64 %33, %35
  %37 = zext i1 %36 to i8
  store i8 %37, ptr %13, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #5
  store i8 1, ptr %14, align 1, !tbaa !13
  %38 = invoke noundef zeroext i1 @_ZN5Eigen13test_is_equalIbbEEbRKT_RKT0_b(ptr noundef nonnull align 1 dereferenceable(1) %13, ptr noundef nonnull align 1 dereferenceable(1) %14, i1 noundef zeroext true)
          to label %39 unwind label %49

39:                                               ; preds = %32
  %40 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #5
  %41 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %40) #5
  invoke void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %38, ptr noundef %41, ptr noundef nonnull @.str.28, i32 noundef 141, ptr noundef nonnull @.str.31)
          to label %42 unwind label %49

42:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @_ZNSt13unordered_setINSt6thread2idESt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @_ZN5Eigen7BarrierD2Ev(ptr noundef nonnull align 8 dereferenceable(93) %6) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @_ZN5Eigen11ThreadLocalI7Counter11InitCounterNS_8internal22ThreadLocalNoOpReleaseIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(160) %4) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %4) #5
  call void @_ZN5Eigen15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(128) %3) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #5
  ret void

43:                                               ; preds = %._crit_edge
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %52

45:                                               ; preds = %25
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br label %51

47:                                               ; preds = %29, %27
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %51

49:                                               ; preds = %39, %32
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  br label %51

51:                                               ; preds = %49, %47, %45
  %.pn = phi { ptr, i32 } [ %50, %49 ], [ %48, %47 ], [ %46, %45 ]
  call void @_ZNSt13unordered_setINSt6thread2idESt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  br label %52

52:                                               ; preds = %51, %43, %23
  %.pn10 = phi { ptr, i32 } [ %24, %23 ], [ %.pn, %51 ], [ %44, %43 ]
  call void @_ZN5Eigen7BarrierD2Ev(ptr noundef nonnull align 8 dereferenceable(93) %6) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @_ZN5Eigen11ThreadLocalI7Counter11InitCounterNS_8internal22ThreadLocalNoOpReleaseIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(160) %4) #5
  br label %53

53:                                               ; preds = %52, %17
  %.pn10.pn = phi { ptr, i32 } [ %.pn10, %52 ], [ %18, %17 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %4) #5
  call void @_ZN5Eigen15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(128) %3) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn10.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZ37test_large_number_of_tasks_with_spillvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvNSt6thread2idER7CounterEEC2IZ37test_large_number_of_tasks_with_spillvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}


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