; LLVM IR from dcajasn/Riskfolio-Lib :: lib/spectra-1.0.1/benchmark (Cpp)

; 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.Spectra::DenseGenMatProd" = type { %"class.Eigen::Ref" }
%"class.Eigen::Ref" = type { %"class.Eigen::RefBase", %"class.Eigen::Matrix" }
%"class.Eigen::RefBase" = type { %"class.Eigen::MapBase", %"class.Eigen::Stride" }
%"class.Eigen::MapBase" = type { ptr, %"class.Eigen::internal::variable_if_dynamic", %"class.Eigen::internal::variable_if_dynamic" }
%"class.Eigen::internal::variable_if_dynamic" = type { i64 }
%"class.Eigen::Stride" = type <{ %"class.Eigen::internal::variable_if_dynamic", [8 x i8] }>
%"class.Eigen::Matrix" = type { %"class.Eigen::PlainObjectBase" }
%"class.Eigen::PlainObjectBase" = type { %"class.Eigen::DenseStorage" }
%"class.Eigen::DenseStorage" = type { ptr, i64, i64 }
%"class.Spectra::GenEigsSolver" = type { %"class.Spectra::GenEigsBase.base", [4 x i8] }
%"class.Spectra::GenEigsBase.base" = type <{ ptr, ptr, i64, i64, i64, i64, i64, %"class.Spectra::Arnoldi.44", %"class.Eigen::Matrix.46", %"class.Eigen::Matrix.55", %"class.Eigen::Matrix.46", %"class.Eigen::Array", i32 }>
%"class.Spectra::Arnoldi.44" = type { ptr, %"class.Spectra::ArnoldiOp.45", i64, i64, i64, %"class.Eigen::Matrix", %"class.Eigen::Matrix", %"class.Eigen::Matrix.8", double }
%"class.Spectra::ArnoldiOp.45" = type { ptr }
%"class.Eigen::Matrix.8" = type { %"class.Eigen::PlainObjectBase.9" }
%"class.Eigen::PlainObjectBase.9" = type { %"class.Eigen::DenseStorage.16" }
%"class.Eigen::DenseStorage.16" = type { ptr, i64 }
%"class.Eigen::Matrix.55" = type { %"class.Eigen::PlainObjectBase.56" }
%"class.Eigen::PlainObjectBase.56" = type { %"class.Eigen::DenseStorage.63" }
%"class.Eigen::DenseStorage.63" = type { ptr, i64, i64 }
%"class.Eigen::Matrix.46" = type { %"class.Eigen::PlainObjectBase.47" }
%"class.Eigen::PlainObjectBase.47" = type { %"class.Eigen::DenseStorage.54" }
%"class.Eigen::DenseStorage.54" = type { ptr, i64 }
%"class.Eigen::Array" = type { %"class.Eigen::PlainObjectBase.17" }
%"class.Eigen::PlainObjectBase.17" = type { %"class.Eigen::DenseStorage.23" }
%"class.Eigen::DenseStorage.23" = type { ptr, i64 }
%"class.Eigen::CwiseBinaryOp.64" = type <{ %"class.Eigen::Product.70", %"class.Eigen::Product.77", [8 x i8] }>
%"class.Eigen::Product.70" = type { ptr, ptr }
%"class.Eigen::Product.77" = type { ptr, %"class.Eigen::DiagonalWrapper.84" }
%"class.Eigen::DiagonalWrapper.84" = type { ptr }
%"class.Eigen::CwiseUnaryOp.88" = type <{ ptr, [8 x i8] }>

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_Z13get_wall_timev() #1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12eigs_gen_CppRN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEERNS0_IdLin1ELi1ELi0ELin1ELi1EEEiiRdS5_Ri(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %6) #2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca %"class.Spectra::DenseGenMatProd", align 8
  %18 = alloca %"class.Spectra::GenEigsSolver", align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"class.Eigen::Matrix.46", align 8
  %24 = alloca %"class.Eigen::Matrix.55", align 8
  %25 = alloca %"class.Eigen::Matrix.55", align 8
  %26 = alloca %"class.Eigen::CwiseBinaryOp.64", align 8
  %27 = alloca %"class.Eigen::Product.70", align 8
  %28 = alloca %"class.Eigen::Product.77", align 8
  %29 = alloca %"class.Eigen::DiagonalWrapper.84", align 8
  %30 = alloca %"class.Eigen::CwiseUnaryOp.88", align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %31 = call noundef double @_Z13get_wall_timev()
  store double %31, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #5
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN7Spectra15DenseGenMatProdIdLi0EEC2IN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERKNS3_10MatrixBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(64) %17, ptr noundef nonnull align 1 dereferenceable(1) %32)
  call void @llvm.lifetime.start.p0(i64 248, ptr %18) #5
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = load i32, ptr %11, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  invoke void @_ZN7Spectra13GenEigsSolverINS_15DenseGenMatProdIdLi0EEEEC2ERS2_ll(ptr noundef nonnull align 8 dereferenceable(244) %18, ptr noundef nonnull align 8 dereferenceable(64) %17, i64 noundef %34, i64 noundef %36)
          to label %37 unwind label %83

37:                                               ; preds = %7
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = invoke noundef ptr @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %38)
          to label %40 unwind label %87

40:                                               ; preds = %37
  invoke void @_ZN7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE4initEPKd(ptr noundef nonnull align 8 dereferenceable(244) %18, ptr noundef %39)
          to label %41 unwind label %87

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %42 = invoke noundef i64 @_ZN7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE7computeENS_8SortRuleEldS5_(ptr noundef nonnull align 8 dereferenceable(244) %18, i32 noundef 0, i64 noundef 1000, double noundef 1.000000e-10, i32 noundef 0)
          to label %43 unwind label %91

43:                                               ; preds = %41
  %44 = trunc i64 %42 to i32
  store i32 %44, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %45 = invoke noundef i64 @_ZNK7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE14num_iterationsEv(ptr noundef nonnull align 8 dereferenceable(244) %18)
          to label %46 unwind label %95

46:                                               ; preds = %43
  %47 = trunc i64 %45 to i32
  store i32 %47, ptr %22, align 4, !tbaa !9
  %48 = invoke noundef i64 @_ZNK7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE14num_operationsEv(ptr noundef nonnull align 8 dereferenceable(244) %18)
          to label %49 unwind label %95

49:                                               ; preds = %46
  %50 = trunc i64 %48 to i32
  %51 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %50, ptr %51, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  invoke void @_ZNK7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE11eigenvaluesEv(ptr dead_on_unwind writable sret(%"class.Eigen::Matrix.46") align 8 %23, ptr noundef nonnull align 8 dereferenceable(244) %18)
          to label %52 unwind label %99

52:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #5
  invoke void @_ZNK7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE12eigenvectorsEv(ptr dead_on_unwind writable sret(%"class.Eigen::Matrix.55") align 8 %24, ptr noundef nonnull align 8 dereferenceable(244) %18)
          to label %53 unwind label %103

53:                                               ; preds = %52
  %54 = invoke noundef double @_Z13get_wall_timev()
          to label %55 unwind label %107

55:                                               ; preds = %53
  store double %54, ptr %16, align 8, !tbaa !11
  %56 = load double, ptr %16, align 8, !tbaa !11
  %57 = load double, ptr %15, align 8, !tbaa !11
  %58 = fsub double %56, %57
  %59 = fmul double %58, 1.000000e+03
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  store double %59, ptr %60, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = invoke { ptr, ptr } @_ZNK5Eigen10MatrixBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEmlINS1_ISt7complexIdELin1ELin1ELi0ELin1ELin1EEEEEKNS_7ProductIS2_T_Li0EEERKNS0_IS9_EE(ptr noundef nonnull align 1 dereferenceable(1) %61, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %63 unwind label %111

63:                                               ; preds = %55
  %64 = getelementptr inbounds { ptr, ptr }, ptr %27, i32 0, i32 0
  %65 = extractvalue { ptr, ptr } %62, 0
  store ptr %65, ptr %64, align 8
  %66 = getelementptr inbounds { ptr, ptr }, ptr %27, i32 0, i32 1
  %67 = extractvalue { ptr, ptr } %62, 1
  store ptr %67, ptr %66, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %68 = invoke ptr @_ZNK5Eigen10MatrixBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEE10asDiagonalEv(ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %69 unwind label %115

69:                                               ; preds = %63
  %70 = getelementptr inbounds %"class.Eigen::DiagonalWrapper.84", ptr %29, i32 0, i32 0
  store ptr %68, ptr %70, align 8
  %71 = invoke { ptr, ptr } @_ZNK5Eigen10MatrixBaseINS_6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEEEmlINS_15DiagonalWrapperIKNS1_IS3_Lin1ELi1ELi0ELin1ELi1EEEEEEEKNS_7ProductIS4_T_Li1EEERKNS_12DiagonalBaseISC_EE(ptr noundef nonnull align 1 dereferenceable(1) %24, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %72 unwind label %115

72:                                               ; preds = %69
  %73 = getelementptr inbounds { ptr, ptr }, ptr %28, i32 0, i32 0
  %74 = extractvalue { ptr, ptr } %71, 0
  store ptr %74, ptr %73, align 8
  %75 = getelementptr inbounds { ptr, ptr }, ptr %28, i32 0, i32 1
  %76 = extractvalue { ptr, ptr } %71, 1
  store ptr %76, ptr %75, align 8
  invoke void @_ZNK5Eigen10MatrixBaseINS_7ProductINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEENS2_ISt7complexIdELin1ELin1ELi0ELin1ELin1EEELi0EEEEmiINS1_IS6_NS_15DiagonalWrapperIKNS2_IS5_Lin1ELi1ELi0ELin1ELi1EEEEELi1EEEEEKNS_13CwiseBinaryOpINS_8internal20scalar_difference_opIS5_NSG_6traitsIT_E6ScalarEEEKS7_KSJ_EERKNS0_ISJ_EE(ptr dead_on_unwind writable sret(%"class.Eigen::CwiseBinaryOp.64") align 8 %26, ptr noundef nonnull align 1 dereferenceable(1) %27, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %77 unwind label %115

77:                                               ; preds = %72
  invoke void @_ZN5Eigen6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEC2INS_13CwiseBinaryOpINS_8internal20scalar_difference_opIS2_S2_EEKNS_7ProductINS0_IdLin1ELin1ELi0ELin1ELin1EEES3_Li0EEEKNS9_IS3_NS_15DiagonalWrapperIKNS0_IS2_Lin1ELi1ELi0ELin1ELi1EEEEELi1EEEEEEERKNS_9EigenBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %78 unwind label %115

78:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #5
  invoke void @_ZNK5Eigen10MatrixBaseINS_6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEEE8cwiseAbsEv(ptr dead_on_unwind writable sret(%"class.Eigen::CwiseUnaryOp.88") align 8 %30, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %79 unwind label %120

79:                                               ; preds = %78
  %80 = invoke noundef double @_ZNK5Eigen9DenseBaseINS_12CwiseUnaryOpINS_8internal13scalar_abs_opISt7complexIdEEEKNS_6MatrixIS5_Lin1ELin1ELi0ELin1ELin1EEEEEE8maxCoeffEv(ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %81 unwind label %120

81:                                               ; preds = %79
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  store double %80, ptr %82, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #5
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #5
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @_ZN7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEED2Ev(ptr noundef nonnull align 8 dereferenceable(244) %18) #5
  call void @llvm.lifetime.end.p0(i64 248, ptr %18) #5
  call void @_ZN7Spectra15DenseGenMatProdIdLi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  ret void

83:                                               ; preds = %7
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %19, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %20, align 4
  br label %131

87:                                               ; preds = %40, %37
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %19, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %20, align 4
  br label %130

91:                                               ; preds = %41
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %19, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %20, align 4
  br label %129

95:                                               ; preds = %46, %43
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %19, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %20, align 4
  br label %128

99:                                               ; preds = %49
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %19, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %20, align 4
  br label %127

103:                                              ; preds = %52
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %19, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %20, align 4
  br label %126

107:                                              ; preds = %53
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %19, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %20, align 4
  br label %125

111:                                              ; preds = %55
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %19, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %20, align 4
  br label %119

115:                                              ; preds = %77, %72, %69, %63
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %19, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  br label %119

119:                                              ; preds = %115, %111
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #5
  br label %124

120:                                              ; preds = %79, %78
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %19, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #5
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  br label %124

124:                                              ; preds = %120, %119
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  br label %125

125:                                              ; preds = %124, %107
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  br label %126

126:                                              ; preds = %125, %103
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #5
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  br label %127

127:                                              ; preds = %126, %99
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  br label %128

128:                                              ; preds = %127, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %129

129:                                              ; preds = %128, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %130

130:                                              ; preds = %129, %87
  call void @_ZN7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEED2Ev(ptr noundef nonnull align 8 dereferenceable(244) %18) #5
  br label %131

131:                                              ; preds = %130, %83
  call void @llvm.lifetime.end.p0(i64 248, ptr %18) #5
  call void @_ZN7Spectra15DenseGenMatProdIdLi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %132

132:                                              ; preds = %131
  %133 = load ptr, ptr %19, align 8
  %134 = load i32, ptr %20, align 4
  %135 = insertvalue { ptr, i32 } poison, ptr %133, 0
  %136 = insertvalue { ptr, i32 } %135, i32 %134, 1
  resume { ptr, i32 } %136
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Spectra13GenEigsSolverINS_15DenseGenMatProdIdLi0EEEEC2ERS2_ll(ptr noundef nonnull align 8 dereferenceable(244), ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, i64 noundef) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE7computeENS_8SortRuleEldS5_(ptr noundef nonnull align 8 dereferenceable(244), i32 noundef, i64 noundef, double noundef, i32 noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE11eigenvaluesEv(ptr dead_on_unwind noalias writable sret(%"class.Eigen::Matrix.46") align 8, ptr noundef nonnull align 8 dereferenceable(244)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE12eigenvectorsEv(ptr dead_on_unwind noalias writable sret(%"class.Eigen::Matrix.55") align 8, ptr noundef nonnull align 8 dereferenceable(244)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK5Eigen10MatrixBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEmlINS1_ISt7complexIdELin1ELin1ELi0ELin1ELin1EEEEEKNS_7ProductIS2_T_Li0EEERKNS0_IS9_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK5Eigen10MatrixBaseINS_6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEEEmlINS_15DiagonalWrapperIKNS1_IS3_Lin1ELi1ELi0ELin1ELi1EEEEEEEKNS_7ProductIS4_T_Li1EEERKNS_12DiagonalBaseISC_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #4 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK5Eigen9DenseBaseINS_12CwiseUnaryOpINS_8internal13scalar_abs_opISt7complexIdEEEKNS_6MatrixIS5_Lin1ELin1ELi0ELin1ELin1EEEEEE8maxCoeffEv(ptr noundef nonnull align 1 dereferenceable(1)) #4 align 2

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !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.Spectra::DenseGenMatProd" = type { %"class.Eigen::Ref" }
%"class.Eigen::Ref" = type { %"class.Eigen::RefBase", %"class.Eigen::Matrix" }
%"class.Eigen::RefBase" = type { %"class.Eigen::MapBase", %"class.Eigen::Stride" }
%"class.Eigen::MapBase" = type { ptr, %"class.Eigen::internal::variable_if_dynamic", %"class.Eigen::internal::variable_if_dynamic" }
%"class.Eigen::internal::variable_if_dynamic" = type { i64 }
%"class.Eigen::Stride" = type <{ %"class.Eigen::internal::variable_if_dynamic", [8 x i8] }>
%"class.Eigen::Matrix" = type { %"class.Eigen::PlainObjectBase" }
%"class.Eigen::PlainObjectBase" = type { %"class.Eigen::DenseStorage" }
%"class.Eigen::DenseStorage" = type { ptr, i64, i64 }
%"class.Spectra::GenEigsSolver" = type { %"class.Spectra::GenEigsBase.base", [4 x i8] }
%"class.Spectra::GenEigsBase.base" = type <{ ptr, ptr, i64, i64, i64, i64, i64, %"class.Spectra::Arnoldi.44", %"class.Eigen::Matrix.46", %"class.Eigen::Matrix.55", %"class.Eigen::Matrix.46", %"class.Eigen::Array", i32 }>
%"class.Spectra::Arnoldi.44" = type { ptr, %"class.Spectra::ArnoldiOp.45", i64, i64, i64, %"class.Eigen::Matrix", %"class.Eigen::Matrix", %"class.Eigen::Matrix.8", double }
%"class.Spectra::ArnoldiOp.45" = type { ptr }
%"class.Eigen::Matrix.8" = type { %"class.Eigen::PlainObjectBase.9" }
%"class.Eigen::PlainObjectBase.9" = type { %"class.Eigen::DenseStorage.16" }
%"class.Eigen::DenseStorage.16" = type { ptr, i64 }
%"class.Eigen::Matrix.55" = type { %"class.Eigen::PlainObjectBase.56" }
%"class.Eigen::PlainObjectBase.56" = type { %"class.Eigen::DenseStorage.63" }
%"class.Eigen::DenseStorage.63" = type { ptr, i64, i64 }
%"class.Eigen::Matrix.46" = type { %"class.Eigen::PlainObjectBase.47" }
%"class.Eigen::PlainObjectBase.47" = type { %"class.Eigen::DenseStorage.54" }
%"class.Eigen::DenseStorage.54" = type { ptr, i64 }
%"class.Eigen::Array" = type { %"class.Eigen::PlainObjectBase.17" }
%"class.Eigen::PlainObjectBase.17" = type { %"class.Eigen::DenseStorage.23" }
%"class.Eigen::DenseStorage.23" = type { ptr, i64 }
%"class.Eigen::CwiseBinaryOp.64" = type <{ %"class.Eigen::Product.70", %"class.Eigen::Product.77", [8 x i8] }>
%"class.Eigen::Product.70" = type { ptr, ptr }
%"class.Eigen::Product.77" = type { ptr, %"class.Eigen::DiagonalWrapper.84" }
%"class.Eigen::DiagonalWrapper.84" = type { ptr }
%"class.Eigen::CwiseUnaryOp.88" = type <{ ptr, [8 x i8] }>

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_Z13get_wall_timev() local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12eigs_gen_CppRN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEERNS0_IdLin1ELi1ELi0ELin1ELi1EEEiiRdS5_Ri(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef %2, i32 noundef %3, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %4, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %5, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %6) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.Spectra::DenseGenMatProd", align 8
  %9 = alloca %"class.Spectra::GenEigsSolver", align 8
  %10 = alloca %"class.Eigen::Matrix.46", align 8
  %11 = alloca %"class.Eigen::Matrix.55", align 8
  %12 = alloca %"class.Eigen::Matrix.55", align 8
  %13 = alloca %"class.Eigen::CwiseBinaryOp.64", align 8
  %14 = alloca %"class.Eigen::Product.70", align 8
  %15 = alloca %"class.Eigen::Product.77", align 8
  %16 = alloca %"class.Eigen::DiagonalWrapper.84", align 8
  %17 = alloca %"class.Eigen::CwiseUnaryOp.88", align 8
  %18 = tail call noundef double @_Z13get_wall_timev()
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  call void @_ZN7Spectra15DenseGenMatProdIdLi0EEC2IN5Eigen6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERKNS3_10MatrixBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(64) %8, ptr noundef nonnull align 1 dereferenceable(1) %0)
  call void @llvm.lifetime.start.p0(i64 248, ptr nonnull %9) #5
  %19 = sext i32 %2 to i64
  %20 = sext i32 %3 to i64
  invoke void @_ZN7Spectra13GenEigsSolverINS_15DenseGenMatProdIdLi0EEEEC2ERS2_ll(ptr noundef nonnull align 8 dereferenceable(244) %9, ptr noundef nonnull align 8 dereferenceable(64) %8, i64 noundef %19, i64 noundef %20)
          to label %21 unwind label %51

21:                                               ; preds = %7
  %22 = call noundef ptr @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  invoke void @_ZN7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE4initEPKd(ptr noundef nonnull align 8 dereferenceable(244) %9, ptr noundef %22)
          to label %23 unwind label %53

23:                                               ; preds = %21
  %24 = invoke noundef i64 @_ZN7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE7computeENS_8SortRuleEldS5_(ptr noundef nonnull align 8 dereferenceable(244) %9, i32 noundef 0, i64 noundef 1000, double noundef 1.000000e-10, i32 noundef 0)
          to label %25 unwind label %55

25:                                               ; preds = %23
  %26 = call noundef i64 @_ZNK7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE14num_iterationsEv(ptr noundef nonnull align 8 dereferenceable(244) %9)
  %27 = call noundef i64 @_ZNK7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE14num_operationsEv(ptr noundef nonnull align 8 dereferenceable(244) %9)
  %28 = trunc i64 %27 to i32
  store i32 %28, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  invoke void @_ZNK7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE11eigenvaluesEv(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Matrix.46") align 8 %10, ptr noundef nonnull align 8 dereferenceable(244) %9)
          to label %29 unwind label %57

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  invoke void @_ZNK7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE12eigenvectorsEv(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Matrix.55") align 8 %11, ptr noundef nonnull align 8 dereferenceable(244) %9)
          to label %30 unwind label %59

30:                                               ; preds = %29
  %31 = call noundef double @_Z13get_wall_timev()
  %32 = fsub double %31, %18
  %33 = fmul double %32, 1.000000e+03
  store double %33, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  %34 = invoke { ptr, ptr } @_ZNK5Eigen10MatrixBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEmlINS1_ISt7complexIdELin1ELin1ELi0ELin1ELin1EEEEEKNS_7ProductIS2_T_Li0EEERKNS0_IS9_EE(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %35 unwind label %61

35:                                               ; preds = %30
  %36 = extractvalue { ptr, ptr } %34, 0
  store ptr %36, ptr %14, align 8
  %37 = getelementptr inbounds i8, ptr %14, i64 8
  %38 = extractvalue { ptr, ptr } %34, 1
  store ptr %38, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %39 = invoke ptr @_ZNK5Eigen10MatrixBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEE10asDiagonalEv(ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %40 unwind label %63

40:                                               ; preds = %35
  store ptr %39, ptr %16, align 8
  %41 = invoke { ptr, ptr } @_ZNK5Eigen10MatrixBaseINS_6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEEEmlINS_15DiagonalWrapperIKNS1_IS3_Lin1ELi1ELi0ELin1ELi1EEEEEEEKNS_7ProductIS4_T_Li1EEERKNS_12DiagonalBaseISC_EE(ptr noundef nonnull align 1 dereferenceable(1) %11, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %42 unwind label %63

42:                                               ; preds = %40
  %43 = extractvalue { ptr, ptr } %41, 0
  store ptr %43, ptr %15, align 8
  %44 = getelementptr inbounds i8, ptr %15, i64 8
  %45 = extractvalue { ptr, ptr } %41, 1
  store ptr %45, ptr %44, align 8
  invoke void @_ZNK5Eigen10MatrixBaseINS_7ProductINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEENS2_ISt7complexIdELin1ELin1ELi0ELin1ELin1EEELi0EEEEmiINS1_IS6_NS_15DiagonalWrapperIKNS2_IS5_Lin1ELi1ELi0ELin1ELi1EEEEELi1EEEEEKNS_13CwiseBinaryOpINS_8internal20scalar_difference_opIS5_NSG_6traitsIT_E6ScalarEEEKS7_KSJ_EERKNS0_ISJ_EE(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::CwiseBinaryOp.64") align 8 %13, ptr noundef nonnull align 1 dereferenceable(1) %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %46 unwind label %63

46:                                               ; preds = %42
  invoke void @_ZN5Eigen6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEC2INS_13CwiseBinaryOpINS_8internal20scalar_difference_opIS2_S2_EEKNS_7ProductINS0_IdLin1ELin1ELi0ELin1ELin1EEES3_Li0EEEKNS9_IS3_NS_15DiagonalWrapperIKNS0_IS2_Lin1ELi1ELi0ELin1ELi1EEEEELi1EEEEEEERKNS_9EigenBaseIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %47 unwind label %63

47:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  invoke void @_ZNK5Eigen10MatrixBaseINS_6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEEE8cwiseAbsEv(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::CwiseUnaryOp.88") align 8 %17, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %48 unwind label %66

48:                                               ; preds = %47
  %49 = invoke noundef double @_ZNK5Eigen9DenseBaseINS_12CwiseUnaryOpINS_8internal13scalar_abs_opISt7complexIdEEEKNS_6MatrixIS5_Lin1ELin1ELi0ELin1ELin1EEEEEE8maxCoeffEv(ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %50 unwind label %66

50:                                               ; preds = %48
  store double %49, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @_ZN7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEED2Ev(ptr noundef nonnull align 8 dereferenceable(244) %9) #5
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %9) #5
  call void @_ZN7Spectra15DenseGenMatProdIdLi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  ret void

51:                                               ; preds = %7
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %72

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

55:                                               ; preds = %23
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %71

57:                                               ; preds = %25
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %70

59:                                               ; preds = %29
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %69

61:                                               ; preds = %30
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %65

63:                                               ; preds = %46, %42, %40, %35
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  br label %65

65:                                               ; preds = %63, %61
  %.pn = phi { ptr, i32 } [ %64, %63 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #5
  br label %68

66:                                               ; preds = %48, %47
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %68

68:                                               ; preds = %66, %65
  %.pn19 = phi { ptr, i32 } [ %67, %66 ], [ %.pn, %65 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  br label %69

69:                                               ; preds = %68, %59
  %.pn19.pn = phi { ptr, i32 } [ %.pn19, %68 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  br label %70

70:                                               ; preds = %69, %57
  %.pn19.pn.pn = phi { ptr, i32 } [ %.pn19.pn, %69 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  br label %71

71:                                               ; preds = %55, %70, %53
  %.pn19.pn.pn.pn.pn = phi { ptr, i32 } [ %54, %53 ], [ %.pn19.pn.pn, %70 ], [ %56, %55 ]
  call void @_ZN7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEED2Ev(ptr noundef nonnull align 8 dereferenceable(244) %9) #5
  br label %72

72:                                               ; preds = %71, %51
  %.pn19.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn19.pn.pn.pn.pn, %71 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %9) #5
  call void @_ZN7Spectra15DenseGenMatProdIdLi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  resume { ptr, i32 } %.pn19.pn.pn.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Spectra13GenEigsSolverINS_15DenseGenMatProdIdLi0EEEEC2ERS2_ll(ptr noundef nonnull align 8 dereferenceable(244), ptr noundef nonnull align 8 dereferenceable(64), i64 noundef, i64 noundef) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE7computeENS_8SortRuleEldS5_(ptr noundef nonnull align 8 dereferenceable(244), i32 noundef, i64 noundef, double noundef, i32 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE11eigenvaluesEv(ptr dead_on_unwind noalias writable sret(%"class.Eigen::Matrix.46") align 8, ptr noundef nonnull align 8 dereferenceable(244)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Spectra11GenEigsBaseINS_15DenseGenMatProdIdLi0EEENS_11IdentityBOpEE12eigenvectorsEv(ptr dead_on_unwind noalias writable sret(%"class.Eigen::Matrix.55") align 8, ptr noundef nonnull align 8 dereferenceable(244)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK5Eigen10MatrixBaseINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEmlINS1_ISt7complexIdELin1ELin1ELi0ELin1ELin1EEEEEKNS_7ProductIS2_T_Li0EEERKNS0_IS9_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK5Eigen10MatrixBaseINS_6MatrixISt7complexIdELin1ELin1ELi0ELin1ELin1EEEEmlINS_15DiagonalWrapperIKNS1_IS3_Lin1ELi1ELi0ELin1ELi1EEEEEEEKNS_7ProductIS4_T_Li1EEERKNS_12DiagonalBaseISC_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK5Eigen9DenseBaseINS_12CwiseUnaryOpINS_8internal13scalar_abs_opISt7complexIdEEEKNS_6MatrixIS5_Lin1ELin1ELi0ELin1ELin1EEEEEE8maxCoeffEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4 align 2

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

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass