; 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.29 = 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.43 = 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 uwtable
define dso_local void @_Z35test_large_number_of_tasks_no_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.29, 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.43, 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
  %23 = load i32, ptr %1, align 4, !tbaa !5
  invoke void @_ZN5Eigen11ThreadLocalI7Counter11InitCounterNS_8internal22ThreadLocalNoOpReleaseIS1_EEEC2EiS2_(ptr noundef nonnull align 8 dereferenceable(160) %6, i32 noundef %23)
          to label %24 unwind label %32

24:                                               ; 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
  %25 = load i32, ptr %10, align 4, !tbaa !5
  invoke void @_ZN5Eigen7BarrierC2Ej(ptr noundef nonnull align 8 dereferenceable(93) %11, i32 noundef %25)
          to label %26 unwind label %36

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

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

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

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

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

40:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %41 = getelementptr inbounds %class.anon.29, ptr %14, i32 0, i32 0
  store ptr %6, ptr %41, align 8, !tbaa !9
  %42 = getelementptr inbounds %class.anon.29, ptr %14, i32 0, i32 1
  store ptr %11, ptr %42, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvvEEC2IZ35test_large_number_of_tasks_no_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 %43 unwind label %47

43:                                               ; preds = %40
  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 %44

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

47:                                               ; preds = %40
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %8, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, 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 %89

51:                                               ; preds = %31
  invoke void @_ZN5Eigen7Barrier4WaitEv(ptr noundef nonnull align 8 dereferenceable(93) %11)
          to label %52 unwind label %72

52:                                               ; preds = %51
  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
  %53 = getelementptr inbounds %class.anon.43, ptr %18, i32 0, i32 0
  store ptr %15, ptr %53, align 8, !tbaa !9
  %54 = getelementptr inbounds %class.anon.43, ptr %18, i32 0, i32 1
  store ptr %16, ptr %54, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvNSt6thread2idER7CounterEEC2IZ35test_large_number_of_tasks_no_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 %55 unwind label %76

55:                                               ; preds = %52
  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
  %56 = 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 %57 unwind label %80

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

60:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  %61 = call noundef i64 @_ZNKSt13unordered_setINSt6thread2idESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %16) #5
  %62 = load i32, ptr %1, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  %64 = sext i32 %63 to i64
  %65 = icmp ule i64 %61, %64
  %66 = zext i1 %65 to i8
  store i8 %66, 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
  %67 = 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 %68 unwind label %84

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

71:                                               ; preds = %68
  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

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

76:                                               ; preds = %52
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %8, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, 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 %88

80:                                               ; preds = %57, %55
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %8, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %9, align 4
  br label %88

84:                                               ; preds = %68, %60
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %8, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, 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 %88

88:                                               ; preds = %84, %80, %76
  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 %89

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

90:                                               ; preds = %89, %36
  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 %91

91:                                               ; preds = %90, %32
  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 %92

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZ35test_large_number_of_tasks_no_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 dso_local void @_ZNSt13unordered_setINSt6thread2idESt4hashIS1_ESt8equal_toIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvNSt6thread2idER7CounterEEC2IZ35test_large_number_of_tasks_no_spillvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) 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

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.29 = 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.43 = 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 uwtable
define dso_local void @_Z35test_large_number_of_tasks_no_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.29, 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.43, 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 %15)
          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
  %.014 = 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 @"_ZNSt8functionIFvvEEC2IZ35test_large_number_of_tasks_no_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 %.014, 1
  %22 = icmp ult i32 %.014, 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 @"_ZNSt8functionIFvNSt6thread2idER7CounterEEC2IZ35test_large_number_of_tasks_no_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 102, 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 106, 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
  %.pn11 = 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
  %.pn11.pn = phi { ptr, i32 } [ %.pn11, %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 } %.pn11.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZ35test_large_number_of_tasks_no_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 dso_local void @_ZNSt13unordered_setINSt6thread2idESt4hashIS1_ESt8equal_toIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvNSt6thread2idER7CounterEEC2IZ35test_large_number_of_tasks_no_spillvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) 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

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