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

; 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::Tensor" = type { %"class.Eigen::TensorStorage" }
%"class.Eigen::TensorStorage" = type { ptr, %"struct.Eigen::DSizes" }
%"struct.Eigen::DSizes" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x i64] }
%"class.Eigen::Tensor.10" = type { %"class.Eigen::TensorStorage.13" }
%"class.Eigen::TensorStorage.13" = type { ptr, %"struct.Eigen::DSizes" }
%"class.Eigen::ThreadPoolTempl" = type { %"class.Eigen::ThreadPoolInterface", [4 x i8], i32, i8, %"class.Eigen::MaxSizeVector", %"class.Eigen::MaxSizeVector.14", %"class.Eigen::MaxSizeVector.15", i32, %"struct.std::atomic", %"struct.std::atomic.16", %"struct.std::atomic.16", %"struct.std::atomic.16", %"class.Eigen::EventCount" }
%"class.Eigen::ThreadPoolInterface" = type { ptr }
%"class.Eigen::MaxSizeVector" = type { i64, i64, ptr }
%"class.Eigen::MaxSizeVector.14" = type { i64, i64, ptr }
%"class.Eigen::MaxSizeVector.15" = type { i64, i64, ptr }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"struct.std::atomic.16" = type { %"struct.std::__atomic_base.17" }
%"struct.std::__atomic_base.17" = type { i8 }
%"class.Eigen::EventCount" = type { %"struct.std::atomic.18", ptr }
%"struct.std::atomic.18" = type { %"struct.std::__atomic_base.19" }
%"struct.std::__atomic_base.19" = type { i64 }
%"struct.Eigen::StlThreadEnvironment" = type { i8 }
%"struct.Eigen::ThreadPoolDevice" = type { ptr, i32, ptr }
%"class.Eigen::TensorConversionOp" = type { %"class.Eigen::TensorCwiseBinaryOp" }
%"class.Eigen::TensorCwiseBinaryOp" = type <{ ptr, %"class.Eigen::TensorCwiseUnaryOp", [8 x i8] }>
%"class.Eigen::TensorCwiseUnaryOp" = type <{ ptr, %"struct.Eigen::internal::bind2nd_op", [4 x i8] }>
%"struct.Eigen::internal::bind2nd_op" = type { float }
%"class.Eigen::TensorDevice" = type { ptr, ptr }

@_ZN5EigenL12g_test_stackB5cxx11E = external hidden global %"class.std::vector", align 8
@.str.28 = external hidden unnamed_addr constant [130 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [87 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: mustprogress uwtable
define dso_local void @_Z28test_multithread_elementwisev() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.Eigen::Tensor", align 8
  %2 = alloca %"class.Eigen::Tensor", align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.Eigen::Tensor.10", align 8
  %6 = alloca %"class.Eigen::ThreadPoolTempl", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.Eigen::StlThreadEnvironment", align 1
  %10 = alloca %"struct.Eigen::ThreadPoolDevice", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.Eigen::TensorConversionOp", align 8
  %14 = alloca %"class.Eigen::TensorCwiseBinaryOp", align 8
  %15 = alloca %"class.Eigen::TensorCwiseUnaryOp", align 8
  %16 = alloca %"class.Eigen::TensorDevice", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %1) #6
  call void @_ZN5Eigen6TensorIfLi3ELi0ElEC2IJiiEEElDpT_(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 200, i32 noundef 30, i32 noundef 70)
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #6
  invoke void @_ZN5Eigen6TensorIfLi3ELi0ElEC2IJiiEEElDpT_(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 200, i32 noundef 30, i32 noundef 70)
          to label %22 unwind label %49

22:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  invoke void @_ZN5Eigen6TensorIdLi3ELi0ElEC2IJiiEEElDpT_(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef 200, i32 noundef 30, i32 noundef 70)
          to label %23 unwind label %53

23:                                               ; preds = %22
  %24 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5Eigen10TensorBaseINS_6TensorIfLi3ELi0ElEELi1EE9setRandomEv(ptr noundef nonnull align 1 dereferenceable(1) %1)
          to label %25 unwind label %57

25:                                               ; preds = %23
  %26 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5Eigen10TensorBaseINS_6TensorIfLi3ELi0ElEELi1EE9setRandomEv(ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %27 unwind label %57

27:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 128, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 3, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 11, ptr %8, align 4, !tbaa !5
  %28 = invoke noundef i32 @_ZN5Eigen8internal6randomIiEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %29 unwind label %61

29:                                               ; preds = %27
  invoke void @_ZN5Eigen15ThreadPoolTemplINS_20StlThreadEnvironmentEEC2EiS1_(ptr noundef nonnull align 8 dereferenceable(128) %6, i32 noundef %28)
          to label %30 unwind label %61

30:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 3, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 11, ptr %12, align 4, !tbaa !5
  %31 = invoke noundef i32 @_ZN5Eigen8internal6randomIiEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %32 unwind label %65

32:                                               ; preds = %30
  invoke void @_ZN5Eigen16ThreadPoolDeviceC2EPNS_19ThreadPoolInterfaceEiPNS_9AllocatorE(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef %6, i32 noundef %31, ptr noundef null)
          to label %33 unwind label %65

33:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  invoke void @_ZNK5Eigen10TensorBaseINS_6TensorIfLi3ELi0ElEELi0EEmlEf(ptr dead_on_unwind writable sret(%"class.Eigen::TensorCwiseUnaryOp") align 8 %15, ptr noundef nonnull align 1 dereferenceable(1) %2, float noundef 0x40091EB860000000)
          to label %34 unwind label %69

34:                                               ; preds = %33
  invoke void @_ZNK5Eigen10TensorBaseINS_6TensorIfLi3ELi0ElEELi0EEplINS_18TensorCwiseUnaryOpINS_8internal10bind2nd_opINS6_17scalar_product_opIffEEEEKS2_EEEEKNS_19TensorCwiseBinaryOpINS6_13scalar_sum_opIffEESB_KT_EERSH_(ptr dead_on_unwind writable sret(%"class.Eigen::TensorCwiseBinaryOp") align 8 %14, ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull align 8 dereferenceable(12) %15)
          to label %35 unwind label %69

35:                                               ; preds = %34
  invoke void @_ZNK5Eigen10TensorBaseINS_19TensorCwiseBinaryOpINS_8internal13scalar_sum_opIffEEKNS_6TensorIfLi3ELi0ElEEKNS_18TensorCwiseUnaryOpINS2_10bind2nd_opINS2_17scalar_product_opIffEEEES7_EEEELi0EE4castIdEEKNS2_11conditionalIXsr8internal7is_sameIT_fEE5valueESF_NS_18TensorConversionOpISJ_KSF_EEE4typeEv(ptr dead_on_unwind writable sret(%"class.Eigen::TensorConversionOp") align 8 %13, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %36 unwind label %69

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  %37 = invoke { ptr, ptr } @_ZN5Eigen10TensorBaseINS_6TensorIdLi3ELi0ElEELi1EE6deviceINS_16ThreadPoolDeviceEEENS_12TensorDeviceIS2_T_EERKS7_(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %38 unwind label %73

38:                                               ; preds = %36
  %39 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 0
  %40 = extractvalue { ptr, ptr } %37, 0
  store ptr %40, ptr %39, align 8
  %41 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 1
  %42 = extractvalue { ptr, ptr } %37, 1
  store ptr %42, ptr %41, align 8
  %43 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen12TensorDeviceINS_6TensorIdLi3ELi0ElEENS_16ThreadPoolDeviceEEaSINS_18TensorConversionOpIdKNS_19TensorCwiseBinaryOpINS_8internal13scalar_sum_opIffEEKNS1_IfLi3ELi0ElEEKNS_18TensorCwiseUnaryOpINS8_10bind2nd_opINS8_17scalar_product_opIffEEEESC_EEEEEEEERS4_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %44 unwind label %73

44:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %136, %44
  %46 = load i32, ptr %17, align 4, !tbaa !5
  %47 = icmp slt i32 %46, 200
  br i1 %47, label %78, label %48

48:                                               ; preds = %45
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %139

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

53:                                               ; preds = %22
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %3, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %4, align 4
  br label %143

57:                                               ; preds = %25, %23
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %3, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %4, align 4
  br label %142

61:                                               ; preds = %29, %27
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %3, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %141

65:                                               ; preds = %32, %30
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %3, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %140

69:                                               ; preds = %35, %34, %33
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %3, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %4, align 4
  br label %77

73:                                               ; preds = %38, %36
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %3, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  br label %77

77:                                               ; preds = %73, %69
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  br label %140

78:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %132, %78
  %80 = load i32, ptr %19, align 4, !tbaa !5
  %81 = icmp slt i32 %80, 30
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %135

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %119, %83
  %85 = load i32, ptr %20, align 4, !tbaa !5
  %86 = icmp slt i32 %85, 70
  br i1 %86, label %88, label %87

87:                                               ; preds = %84
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %131

88:                                               ; preds = %84
  %89 = load i32, ptr %17, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = load i32, ptr %19, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = load i32, ptr %20, align 4, !tbaa !5
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen6TensorIdLi3ELi0ElEclIJiEEERdllDpT_(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %90, i64 noundef %92, i32 noundef %93)
          to label %95 unwind label %122

95:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %96 = load i32, ptr %17, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = load i32, ptr %19, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = load i32, ptr %20, align 4, !tbaa !5
  %101 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen6TensorIfLi3ELi0ElEclIJiEEERfllDpT_(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %97, i64 noundef %99, i32 noundef %100)
          to label %102 unwind label %126

102:                                              ; preds = %95
  %103 = load float, ptr %101, align 4, !tbaa !9
  %104 = load i32, ptr %17, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = load i32, ptr %19, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = load i32, ptr %20, align 4, !tbaa !5
  %109 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen6TensorIfLi3ELi0ElEclIJiEEERfllDpT_(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %105, i64 noundef %107, i32 noundef %108)
          to label %110 unwind label %126

110:                                              ; preds = %102
  %111 = load float, ptr %109, align 4, !tbaa !9
  %112 = call float @llvm.fmuladd.f32(float %111, float 0x40091EB860000000, float %103)
  %113 = fpext float %112 to double
  store double %113, ptr %21, align 8, !tbaa !11
  %114 = invoke noundef zeroext i1 @_ZN5Eigen14verifyIsApproxIddEEbRKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %115 unwind label %126

115:                                              ; preds = %110
  %116 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #6
  %117 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %116) #6
  invoke void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %114, ptr noundef %117, ptr noundef @.str.28, i32 noundef 55, ptr noundef @.str.29)
          to label %118 unwind label %126

118:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %20, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %20, align 4, !tbaa !5
  br label %84, !llvm.loop !13

122:                                              ; preds = %88
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %3, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %4, align 4
  br label %130

126:                                              ; preds = %115, %110, %102, %95
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %3, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %130

130:                                              ; preds = %126, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %140

131:                                              ; preds = %87
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %19, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %19, align 4, !tbaa !5
  br label %79, !llvm.loop !15

135:                                              ; preds = %82
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %17, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %17, align 4, !tbaa !5
  br label %45, !llvm.loop !16

139:                                              ; preds = %48
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @_ZN5Eigen15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(128) %6) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %6) #6
  call void @_ZN5Eigen6TensorIdLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  call void @_ZN5Eigen6TensorIfLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #6
  call void @_ZN5Eigen6TensorIfLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
  ret void

140:                                              ; preds = %130, %77, %65
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @_ZN5Eigen15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(128) %6) #6
  br label %141

141:                                              ; preds = %140, %61
  call void @llvm.lifetime.end.p0(i64 128, ptr %6) #6
  br label %142

142:                                              ; preds = %141, %57
  call void @_ZN5Eigen6TensorIdLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %143

143:                                              ; preds = %142, %53
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  call void @_ZN5Eigen6TensorIfLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  br label %144

144:                                              ; preds = %143, %49
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #6
  call void @_ZN5Eigen6TensorIfLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
  br label %145

145:                                              ; preds = %144
  %146 = load ptr, ptr %3, align 8
  %147 = load i32, ptr %4, align 4
  %148 = insertvalue { ptr, i32 } poison, ptr %146, 0
  %149 = insertvalue { ptr, i32 } %148, i32 %147, 1
  resume { ptr, i32 } %149
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen6TensorIfLi3ELi0ElEC2IJiiEEElDpT_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i32 noundef, i32 noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen6TensorIdLi3ELi0ElEC2IJiiEEElDpT_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i32 noundef, i32 noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN5Eigen10TensorBaseINS_6TensorIfLi3ELi0ElEELi1EE9setRandomEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 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 nounwind uwtable
declare dso_local void @_ZN5Eigen16ThreadPoolDeviceC2EPNS_19ThreadPoolInterfaceEiPNS_9AllocatorE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, ptr noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Eigen10TensorBaseINS_6TensorIfLi3ELi0ElEELi0EEplINS_18TensorCwiseUnaryOpINS_8internal10bind2nd_opINS6_17scalar_product_opIffEEEEKS2_EEEEKNS_19TensorCwiseBinaryOpINS6_13scalar_sum_opIffEESB_KT_EERSH_(ptr dead_on_unwind noalias writable sret(%"class.Eigen::TensorCwiseBinaryOp") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(12)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Eigen10TensorBaseINS_6TensorIfLi3ELi0ElEELi0EEmlEf(ptr dead_on_unwind noalias writable sret(%"class.Eigen::TensorCwiseUnaryOp") align 8, ptr noundef nonnull align 1 dereferenceable(1), float noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Eigen10TensorBaseINS_19TensorCwiseBinaryOpINS_8internal13scalar_sum_opIffEEKNS_6TensorIfLi3ELi0ElEEKNS_18TensorCwiseUnaryOpINS2_10bind2nd_opINS2_17scalar_product_opIffEEEES7_EEEELi0EE4castIdEEKNS2_11conditionalIXsr8internal7is_sameIT_fEE5valueESF_NS_18TensorConversionOpISJ_KSF_EEE4typeEv(ptr dead_on_unwind noalias writable sret(%"class.Eigen::TensorConversionOp") align 8, ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5Eigen10TensorBaseINS_6TensorIdLi3ELi0ElEELi1EE6deviceINS_16ThreadPoolDeviceEEENS_12TensorDeviceIS2_T_EERKS7_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen6TensorIdLi3ELi0ElEclIJiEEERdllDpT_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen6TensorIfLi3ELi0ElEclIJiEEERfllDpT_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, i32 noundef) #1 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen6TensorIdLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen6TensorIfLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }

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

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


; 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::Tensor" = type { %"class.Eigen::TensorStorage" }
%"class.Eigen::TensorStorage" = type { ptr, %"struct.Eigen::DSizes" }
%"struct.Eigen::DSizes" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x i64] }
%"class.Eigen::Tensor.10" = type { %"class.Eigen::TensorStorage.13" }
%"class.Eigen::TensorStorage.13" = type { ptr, %"struct.Eigen::DSizes" }
%"class.Eigen::ThreadPoolTempl" = type { %"class.Eigen::ThreadPoolInterface", [4 x i8], i32, i8, %"class.Eigen::MaxSizeVector", %"class.Eigen::MaxSizeVector.14", %"class.Eigen::MaxSizeVector.15", i32, %"struct.std::atomic", %"struct.std::atomic.16", %"struct.std::atomic.16", %"struct.std::atomic.16", %"class.Eigen::EventCount" }
%"class.Eigen::ThreadPoolInterface" = type { ptr }
%"class.Eigen::MaxSizeVector" = type { i64, i64, ptr }
%"class.Eigen::MaxSizeVector.14" = type { i64, i64, ptr }
%"class.Eigen::MaxSizeVector.15" = type { i64, i64, ptr }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"struct.std::atomic.16" = type { %"struct.std::__atomic_base.17" }
%"struct.std::__atomic_base.17" = type { i8 }
%"class.Eigen::EventCount" = type { %"struct.std::atomic.18", ptr }
%"struct.std::atomic.18" = type { %"struct.std::__atomic_base.19" }
%"struct.std::__atomic_base.19" = type { i64 }
%"struct.Eigen::ThreadPoolDevice" = type { ptr, i32, ptr }
%"class.Eigen::TensorConversionOp" = type { %"class.Eigen::TensorCwiseBinaryOp" }
%"class.Eigen::TensorCwiseBinaryOp" = type <{ ptr, %"class.Eigen::TensorCwiseUnaryOp", [8 x i8] }>
%"class.Eigen::TensorCwiseUnaryOp" = type <{ ptr, %"struct.Eigen::internal::bind2nd_op", [4 x i8] }>
%"struct.Eigen::internal::bind2nd_op" = type { float }
%"class.Eigen::TensorDevice" = type { ptr, ptr }

@_ZN5EigenL12g_test_stackB5cxx11E = external hidden global %"class.std::vector", align 8
@.str.28 = external hidden unnamed_addr constant [130 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [87 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: mustprogress uwtable
define dso_local void @_Z28test_multithread_elementwisev() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.Eigen::Tensor", align 8
  %2 = alloca %"class.Eigen::Tensor", align 8
  %3 = alloca %"class.Eigen::Tensor.10", align 8
  %4 = alloca %"class.Eigen::ThreadPoolTempl", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.Eigen::ThreadPoolDevice", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.Eigen::TensorConversionOp", align 8
  %11 = alloca %"class.Eigen::TensorCwiseBinaryOp", align 8
  %12 = alloca %"class.Eigen::TensorCwiseUnaryOp", align 8
  %13 = alloca %"class.Eigen::TensorDevice", align 8
  %14 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  call void @_ZN5Eigen6TensorIfLi3ELi0ElEC2IJiiEEElDpT_(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 200, i32 noundef 30, i32 noundef 70)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  invoke void @_ZN5Eigen6TensorIfLi3ELi0ElEC2IJiiEEElDpT_(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 200, i32 noundef 30, i32 noundef 70)
          to label %15 unwind label %37

15:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  invoke void @_ZN5Eigen6TensorIdLi3ELi0ElEC2IJiiEEElDpT_(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 200, i32 noundef 30, i32 noundef 70)
          to label %16 unwind label %39

16:                                               ; preds = %15
  %17 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5Eigen10TensorBaseINS_6TensorIfLi3ELi0ElEELi1EE9setRandomEv(ptr noundef nonnull align 1 dereferenceable(1) %1)
          to label %18 unwind label %41

18:                                               ; preds = %16
  %19 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5Eigen10TensorBaseINS_6TensorIfLi3ELi0ElEELi1EE9setRandomEv(ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %20 unwind label %41

20:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 3, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store i32 11, ptr %6, align 4, !tbaa !5
  %21 = invoke noundef i32 @_ZN5Eigen8internal6randomIiEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %22 unwind label %43

22:                                               ; preds = %20
  invoke void @_ZN5Eigen15ThreadPoolTemplINS_20StlThreadEnvironmentEEC2EiS1_(ptr noundef nonnull align 8 dereferenceable(128) %4, i32 noundef %21)
          to label %23 unwind label %43

23:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 3, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store i32 11, ptr %9, align 4, !tbaa !5
  %24 = invoke noundef i32 @_ZN5Eigen8internal6randomIiEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %25 unwind label %45

25:                                               ; preds = %23
  call void @_ZN5Eigen16ThreadPoolDeviceC2EPNS_19ThreadPoolInterfaceEiPNS_9AllocatorE(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull %4, i32 noundef %24, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  invoke void @_ZNK5Eigen10TensorBaseINS_6TensorIfLi3ELi0ElEELi0EEmlEf(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::TensorCwiseUnaryOp") align 8 %12, ptr noundef nonnull align 1 dereferenceable(1) %2, float noundef 0x40091EB860000000)
          to label %26 unwind label %47

26:                                               ; preds = %25
  invoke void @_ZNK5Eigen10TensorBaseINS_6TensorIfLi3ELi0ElEELi0EEplINS_18TensorCwiseUnaryOpINS_8internal10bind2nd_opINS6_17scalar_product_opIffEEEEKS2_EEEEKNS_19TensorCwiseBinaryOpINS6_13scalar_sum_opIffEESB_KT_EERSH_(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::TensorCwiseBinaryOp") align 8 %11, ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull align 8 dereferenceable(12) %12)
          to label %27 unwind label %47

27:                                               ; preds = %26
  invoke void @_ZNK5Eigen10TensorBaseINS_19TensorCwiseBinaryOpINS_8internal13scalar_sum_opIffEEKNS_6TensorIfLi3ELi0ElEEKNS_18TensorCwiseUnaryOpINS2_10bind2nd_opINS2_17scalar_product_opIffEEEES7_EEEELi0EE4castIdEEKNS2_11conditionalIXsr8internal7is_sameIT_fEE5valueESF_NS_18TensorConversionOpISJ_KSF_EEE4typeEv(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::TensorConversionOp") align 8 %10, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %28 unwind label %47

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  %29 = invoke { ptr, ptr } @_ZN5Eigen10TensorBaseINS_6TensorIdLi3ELi0ElEELi1EE6deviceINS_16ThreadPoolDeviceEEENS_12TensorDeviceIS2_T_EERKS7_(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %30 unwind label %49

30:                                               ; preds = %28
  %31 = extractvalue { ptr, ptr } %29, 0
  store ptr %31, ptr %13, align 8
  %32 = getelementptr inbounds i8, ptr %13, i64 8
  %33 = extractvalue { ptr, ptr } %29, 1
  store ptr %33, ptr %32, align 8
  %34 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen12TensorDeviceINS_6TensorIdLi3ELi0ElEENS_16ThreadPoolDeviceEEaSINS_18TensorConversionOpIdKNS_19TensorCwiseBinaryOpINS_8internal13scalar_sum_opIffEEKNS1_IfLi3ELi0ElEEKNS_18TensorCwiseUnaryOpINS8_10bind2nd_opINS8_17scalar_product_opIffEEEESC_EEEEEEEERS4_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %35 unwind label %49

35:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %.preheader34

.preheader34:                                     ; preds = %35, %52
  %indvars.iv40 = phi i64 [ 0, %35 ], [ %indvars.iv.next41, %52 ]
  br label %.preheader

36:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZN5Eigen15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(128) %4) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #6
  call void @_ZN5Eigen6TensorIdLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  call void @_ZN5Eigen6TensorIfLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  call void @_ZN5Eigen6TensorIfLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  ret void

37:                                               ; preds = %0
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %79

39:                                               ; preds = %15
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %78

41:                                               ; preds = %18, %16
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %77

43:                                               ; preds = %22, %20
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %76

45:                                               ; preds = %23
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %75

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

49:                                               ; preds = %30, %28
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %51

51:                                               ; preds = %49, %47
  %.pn = phi { ptr, i32 } [ %50, %49 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %75

.preheader:                                       ; preds = %.preheader34, %53
  %indvars.iv = phi i64 [ 0, %.preheader34 ], [ %indvars.iv.next, %53 ]
  br label %54

52:                                               ; preds = %53
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %exitcond43.not = icmp eq i64 %indvars.iv.next41, 200
  br i1 %exitcond43.not, label %36, label %.preheader34, !llvm.loop !9

53:                                               ; preds = %69
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond39.not = icmp eq i64 %indvars.iv.next, 30
  br i1 %exitcond39.not, label %52, label %.preheader, !llvm.loop !11

54:                                               ; preds = %.preheader, %69
  %.035 = phi i32 [ 0, %.preheader ], [ %70, %69 ]
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen6TensorIdLi3ELi0ElEclIJiEEERdllDpT_(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %indvars.iv40, i64 noundef %indvars.iv, i32 noundef %.035)
          to label %56 unwind label %71

56:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %57 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen6TensorIfLi3ELi0ElEclIJiEEERfllDpT_(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv40, i64 noundef %indvars.iv, i32 noundef %.035)
          to label %58 unwind label %73

58:                                               ; preds = %56
  %59 = load float, ptr %57, align 4, !tbaa !12
  %60 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen6TensorIfLi3ELi0ElEclIJiEEERfllDpT_(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv40, i64 noundef %indvars.iv, i32 noundef %.035)
          to label %61 unwind label %73

61:                                               ; preds = %58
  %62 = load float, ptr %60, align 4, !tbaa !12
  %63 = call float @llvm.fmuladd.f32(float %62, float 0x40091EB860000000, float %59)
  %64 = fpext float %63 to double
  store double %64, ptr %14, align 8, !tbaa !14
  %65 = invoke noundef zeroext i1 @_ZN5Eigen14verifyIsApproxIddEEbRKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %66 unwind label %73

66:                                               ; preds = %61
  %67 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #6
  %68 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %67) #6
  invoke void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %65, ptr noundef %68, ptr noundef nonnull @.str.28, i32 noundef 55, ptr noundef nonnull @.str.29)
          to label %69 unwind label %73

69:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  %70 = add nuw nsw i32 %.035, 1
  %exitcond.not = icmp eq i32 %70, 70
  br i1 %exitcond.not, label %53, label %54, !llvm.loop !16

71:                                               ; preds = %54
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

73:                                               ; preds = %66, %61, %58, %56
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %75

75:                                               ; preds = %71, %73, %51, %45
  %.pn27.pn = phi { ptr, i32 } [ %.pn, %51 ], [ %46, %45 ], [ %74, %73 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZN5Eigen15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(128) %4) #6
  br label %76

76:                                               ; preds = %75, %43
  %.pn27.pn.pn = phi { ptr, i32 } [ %.pn27.pn, %75 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #6
  br label %77

77:                                               ; preds = %76, %41
  %.pn27.pn.pn.pn = phi { ptr, i32 } [ %.pn27.pn.pn, %76 ], [ %42, %41 ]
  call void @_ZN5Eigen6TensorIdLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  br label %78

78:                                               ; preds = %77, %39
  %.pn27.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn27.pn.pn.pn, %77 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  call void @_ZN5Eigen6TensorIfLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  br label %79

79:                                               ; preds = %78, %37
  %.pn27.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn27.pn.pn.pn.pn, %78 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  call void @_ZN5Eigen6TensorIfLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn27.pn.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen6TensorIfLi3ELi0ElEC2IJiiEEElDpT_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i32 noundef, i32 noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen6TensorIdLi3ELi0ElEC2IJiiEEElDpT_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i32 noundef, i32 noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN5Eigen10TensorBaseINS_6TensorIfLi3ELi0ElEELi1EE9setRandomEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 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 nounwind uwtable
declare dso_local void @_ZN5Eigen16ThreadPoolDeviceC2EPNS_19ThreadPoolInterfaceEiPNS_9AllocatorE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, ptr noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Eigen10TensorBaseINS_6TensorIfLi3ELi0ElEELi0EEplINS_18TensorCwiseUnaryOpINS_8internal10bind2nd_opINS6_17scalar_product_opIffEEEEKS2_EEEEKNS_19TensorCwiseBinaryOpINS6_13scalar_sum_opIffEESB_KT_EERSH_(ptr dead_on_unwind noalias writable sret(%"class.Eigen::TensorCwiseBinaryOp") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Eigen10TensorBaseINS_6TensorIfLi3ELi0ElEELi0EEmlEf(ptr dead_on_unwind noalias writable sret(%"class.Eigen::TensorCwiseUnaryOp") align 8, ptr noundef nonnull align 1 dereferenceable(1), float noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Eigen10TensorBaseINS_19TensorCwiseBinaryOpINS_8internal13scalar_sum_opIffEEKNS_6TensorIfLi3ELi0ElEEKNS_18TensorCwiseUnaryOpINS2_10bind2nd_opINS2_17scalar_product_opIffEEEES7_EEEELi0EE4castIdEEKNS2_11conditionalIXsr8internal7is_sameIT_fEE5valueESF_NS_18TensorConversionOpISJ_KSF_EEE4typeEv(ptr dead_on_unwind noalias writable sret(%"class.Eigen::TensorConversionOp") align 8, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5Eigen10TensorBaseINS_6TensorIdLi3ELi0ElEELi1EE6deviceINS_16ThreadPoolDeviceEEENS_12TensorDeviceIS2_T_EERKS7_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5Eigen6TensorIdLi3ELi0ElEclIJiEEERdllDpT_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen6TensorIfLi3ELi0ElEclIJiEEERfllDpT_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen6TensorIdLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen6TensorIfLi3ELi0ElED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass