; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (dataanalysis)

; 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"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::eigsubspacestate" = type { i64, i64, i64, i64, double, i64, i64, i8, i8, %"struct.alglib_impl::hqrndstate", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::apbuffers", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i64, i64, i64, %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::apbuffers" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::eigsubspacereport" = type { i64 }

@.str.83 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [43 x i8], align 1

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

; Function Attrs: 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 @_ZN11alglib_impl26pcatruncatedsubspacesparseEPNS_12sparsematrixEllldlPNS_9ae_vectorEPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, double noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #1 {
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.alglib_impl::ae_frame", align 8
  %20 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca double, align 8
  %28 = alloca %"struct.alglib_impl::ae_vector", align 8
  %29 = alloca %"struct.alglib_impl::eigsubspacestate", align 8
  %30 = alloca %"struct.alglib_impl::eigsubspacereport", align 8
  %31 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i64 %1, ptr %11, align 8, !tbaa !9
  store i64 %2, ptr %12, align 8, !tbaa !9
  store i64 %3, ptr %13, align 8, !tbaa !9
  store double %4, ptr %14, align 8, !tbaa !11
  store i64 %5, ptr %15, align 8, !tbaa !9
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 2384, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %32 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %32, ptr noundef %19)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %29, i8 0, i64 2384, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %30, i8 0, i64 8, i1 false)
  %33 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %33)
  %34 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %34)
  %35 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %20, ptr noundef %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 3, ptr noundef %36, i1 noundef zeroext true)
  %37 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 3, ptr noundef %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 3, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %28, i64 noundef 0, i64 noundef 3, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl22_eigsubspacestate_initEPvPNS_8ae_stateEb(ptr noundef %29, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl23_eigsubspacereport_initEPvPNS_8ae_stateEb(ptr noundef %30, ptr noundef %41, i1 noundef zeroext true)
  %42 = load i64, ptr %11, align 8, !tbaa !9
  %43 = icmp sge i64 %42, 0
  %44 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef @.str.84, ptr noundef %44)
  %45 = load i64, ptr %12, align 8, !tbaa !9
  %46 = icmp sge i64 %45, 1
  %47 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %46, ptr noundef @.str.85, ptr noundef %47)
  %48 = load i64, ptr %13, align 8, !tbaa !9
  %49 = icmp sgt i64 %48, 0
  %50 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.86, ptr noundef %50)
  %51 = load i64, ptr %13, align 8, !tbaa !9
  %52 = load i64, ptr %12, align 8, !tbaa !9
  %53 = icmp sle i64 %51, %52
  %54 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %53, ptr noundef @.str.87, ptr noundef %54)
  %55 = load i64, ptr %15, align 8, !tbaa !9
  %56 = icmp sge i64 %55, 0
  %57 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %56, ptr noundef @.str.88, ptr noundef %57)
  %58 = load double, ptr %14, align 8, !tbaa !11
  %59 = load ptr, ptr %18, align 8, !tbaa !5
  %60 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %58, ptr noundef %59)
  br i1 %60, label %61, label %64

61:                                               ; preds = %9
  %62 = load double, ptr %14, align 8, !tbaa !11
  %63 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %62, double noundef 0.000000e+00)
  br label %64

64:                                               ; preds = %61, %9
  %65 = phi i1 [ false, %9 ], [ %63, %61 ]
  %66 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %65, ptr noundef @.str.89, ptr noundef %66)
  %67 = load i64, ptr %11, align 8, !tbaa !9
  %68 = icmp sgt i64 %67, 0
  br i1 %68, label %69, label %82

69:                                               ; preds = %64
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = load ptr, ptr %18, align 8, !tbaa !5
  %72 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %70, ptr noundef %71)
  %73 = load i64, ptr %11, align 8, !tbaa !9
  %74 = icmp eq i64 %72, %73
  %75 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %74, ptr noundef @.str.90, ptr noundef %75)
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = load ptr, ptr %18, align 8, !tbaa !5
  %78 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %76, ptr noundef %77)
  %79 = load i64, ptr %12, align 8, !tbaa !9
  %80 = icmp eq i64 %78, %79
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %80, ptr noundef @.str.91, ptr noundef %81)
  br label %82

82:                                               ; preds = %69, %64
  %83 = load i64, ptr %11, align 8, !tbaa !9
  %84 = icmp eq i64 %83, 0
  br i1 %84, label %85, label %151

85:                                               ; preds = %82
  %86 = load ptr, ptr %16, align 8, !tbaa !5
  %87 = load i64, ptr %13, align 8, !tbaa !9
  %88 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %86, i64 noundef %87, ptr noundef %88)
  %89 = load ptr, ptr %17, align 8, !tbaa !5
  %90 = load i64, ptr %12, align 8, !tbaa !9
  %91 = load i64, ptr %13, align 8, !tbaa !9
  %92 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %89, i64 noundef %90, i64 noundef %91, ptr noundef %92)
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %93

93:                                               ; preds = %104, %85
  %94 = load i64, ptr %24, align 8, !tbaa !9
  %95 = load i64, ptr %12, align 8, !tbaa !9
  %96 = sub nsw i64 %95, 1
  %97 = icmp sle i64 %94, %96
  br i1 %97, label %98, label %107

98:                                               ; preds = %93
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %99, i32 0, i32 4
  %101 = load ptr, ptr %100, align 8, !tbaa !13
  %102 = load i64, ptr %24, align 8, !tbaa !9
  %103 = getelementptr inbounds double, ptr %101, i64 %102
  store double 0.000000e+00, ptr %103, align 8, !tbaa !11
  br label %104

104:                                              ; preds = %98
  %105 = load i64, ptr %24, align 8, !tbaa !9
  %106 = add nsw i64 %105, 1
  store i64 %106, ptr %24, align 8, !tbaa !9
  br label %93, !llvm.loop !14

107:                                              ; preds = %93
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %108

108:                                              ; preds = %146, %107
  %109 = load i64, ptr %24, align 8, !tbaa !9
  %110 = load i64, ptr %12, align 8, !tbaa !9
  %111 = sub nsw i64 %110, 1
  %112 = icmp sle i64 %109, %111
  br i1 %112, label %113, label %149

113:                                              ; preds = %108
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %114

114:                                              ; preds = %142, %113
  %115 = load i64, ptr %25, align 8, !tbaa !9
  %116 = load i64, ptr %13, align 8, !tbaa !9
  %117 = sub nsw i64 %116, 1
  %118 = icmp sle i64 %115, %117
  br i1 %118, label %119, label %145

119:                                              ; preds = %114
  %120 = load i64, ptr %24, align 8, !tbaa !9
  %121 = load i64, ptr %25, align 8, !tbaa !9
  %122 = icmp eq i64 %120, %121
  br i1 %122, label %123, label %132

123:                                              ; preds = %119
  %124 = load ptr, ptr %17, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %124, i32 0, i32 6
  %126 = load ptr, ptr %125, align 8, !tbaa !13
  %127 = load i64, ptr %24, align 8, !tbaa !9
  %128 = getelementptr inbounds ptr, ptr %126, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %130 = load i64, ptr %25, align 8, !tbaa !9
  %131 = getelementptr inbounds double, ptr %129, i64 %130
  store double 1.000000e+00, ptr %131, align 8, !tbaa !11
  br label %141

132:                                              ; preds = %119
  %133 = load ptr, ptr %17, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %133, i32 0, i32 6
  %135 = load ptr, ptr %134, align 8, !tbaa !13
  %136 = load i64, ptr %24, align 8, !tbaa !9
  %137 = getelementptr inbounds ptr, ptr %135, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  %139 = load i64, ptr %25, align 8, !tbaa !9
  %140 = getelementptr inbounds double, ptr %138, i64 %139
  store double 0.000000e+00, ptr %140, align 8, !tbaa !11
  br label %141

141:                                              ; preds = %132, %123
  br label %142

142:                                              ; preds = %141
  %143 = load i64, ptr %25, align 8, !tbaa !9
  %144 = add nsw i64 %143, 1
  store i64 %144, ptr %25, align 8, !tbaa !9
  br label %114, !llvm.loop !16

145:                                              ; preds = %114
  br label %146

146:                                              ; preds = %145
  %147 = load i64, ptr %24, align 8, !tbaa !9
  %148 = add nsw i64 %147, 1
  store i64 %148, ptr %24, align 8, !tbaa !9
  br label %108, !llvm.loop !17

149:                                              ; preds = %108
  %150 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %150)
  store i32 1, ptr %31, align 4
  br label %372

151:                                              ; preds = %82
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = load ptr, ptr %18, align 8, !tbaa !5
  %154 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %152, ptr noundef %153)
  br i1 %154, label %167, label %155

155:                                              ; preds = %151
  %156 = load ptr, ptr %10, align 8, !tbaa !5
  %157 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %156, ptr noundef %20, ptr noundef %157)
  %158 = load i64, ptr %11, align 8, !tbaa !9
  %159 = load i64, ptr %12, align 8, !tbaa !9
  %160 = load i64, ptr %13, align 8, !tbaa !9
  %161 = load double, ptr %14, align 8, !tbaa !11
  %162 = load i64, ptr %15, align 8, !tbaa !9
  %163 = load ptr, ptr %16, align 8, !tbaa !5
  %164 = load ptr, ptr %17, align 8, !tbaa !5
  %165 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl26pcatruncatedsubspacesparseEPNS_12sparsematrixEllldlPNS_9ae_vectorEPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %20, i64 noundef %158, i64 noundef %159, i64 noundef %160, double noundef %161, i64 noundef %162, ptr noundef %163, ptr noundef %164, ptr noundef %165)
  %166 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %166)
  store i32 1, ptr %31, align 4
  br label %372

167:                                              ; preds = %151
  %168 = load i64, ptr %11, align 8, !tbaa !9
  %169 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %168, ptr noundef %169)
  %170 = load i64, ptr %12, align 8, !tbaa !9
  %171 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %23, i64 noundef %170, ptr noundef %171)
  %172 = load double, ptr %14, align 8, !tbaa !11
  %173 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %172, double noundef 0.000000e+00)
  br i1 %173, label %174, label %178

174:                                              ; preds = %167
  %175 = load i64, ptr %15, align 8, !tbaa !9
  %176 = icmp eq i64 %175, 0
  br i1 %176, label %177, label %178

177:                                              ; preds = %174
  store double 0x3EB0C6F7A0B5ED8D, ptr %14, align 8, !tbaa !11
  br label %178

178:                                              ; preds = %177, %174, %167
  %179 = load i64, ptr %15, align 8, !tbaa !9
  %180 = icmp eq i64 %179, 0
  br i1 %180, label %181, label %185

181:                                              ; preds = %178
  %182 = load i64, ptr %12, align 8, !tbaa !9
  %183 = mul nsw i64 2, %182
  %184 = add nsw i64 50, %183
  store i64 %184, ptr %15, align 8, !tbaa !9
  br label %185

185:                                              ; preds = %181, %178
  %186 = load i64, ptr %11, align 8, !tbaa !9
  %187 = sitofp i64 %186 to double
  %188 = fdiv double 1.000000e+00, %187
  store double %188, ptr %27, align 8, !tbaa !11
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %189

189:                                              ; preds = %200, %185
  %190 = load i64, ptr %24, align 8, !tbaa !9
  %191 = load i64, ptr %11, align 8, !tbaa !9
  %192 = sub nsw i64 %191, 1
  %193 = icmp sle i64 %190, %192
  br i1 %193, label %194, label %203

194:                                              ; preds = %189
  %195 = load double, ptr %27, align 8, !tbaa !11
  %196 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %197 = load ptr, ptr %196, align 8, !tbaa !13
  %198 = load i64, ptr %24, align 8, !tbaa !9
  %199 = getelementptr inbounds double, ptr %197, i64 %198
  store double %195, ptr %199, align 8, !tbaa !11
  br label %200

200:                                              ; preds = %194
  %201 = load i64, ptr %24, align 8, !tbaa !9
  %202 = add nsw i64 %201, 1
  store i64 %202, ptr %24, align 8, !tbaa !9
  br label %189, !llvm.loop !18

203:                                              ; preds = %189
  %204 = load ptr, ptr %10, align 8, !tbaa !5
  %205 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsemtvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %204, ptr noundef %21, ptr noundef %28, ptr noundef %205)
  %206 = load i64, ptr %12, align 8, !tbaa !9
  %207 = load i64, ptr %13, align 8, !tbaa !9
  %208 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl17eigsubspacecreateEllPNS_16eigsubspacestateEPNS_8ae_stateE(i64 noundef %206, i64 noundef %207, ptr noundef %29, ptr noundef %208)
  %209 = load double, ptr %14, align 8, !tbaa !11
  %210 = load i64, ptr %15, align 8, !tbaa !9
  %211 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl18eigsubspacesetcondEPNS_16eigsubspacestateEdlPNS_8ae_stateE(ptr noundef %29, double noundef %209, i64 noundef %210, ptr noundef %211)
  %212 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl19eigsubspaceoocstartEPNS_16eigsubspacestateElPNS_8ae_stateE(ptr noundef %29, i64 noundef 0, ptr noundef %212)
  br label %213

213:                                              ; preds = %337, %203
  %214 = load ptr, ptr %18, align 8, !tbaa !5
  %215 = call noundef zeroext i1 @_ZN11alglib_impl22eigsubspaceooccontinueEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef %29, ptr noundef %214)
  br i1 %215, label %216, label %338

216:                                              ; preds = %213
  %217 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %29, i32 0, i32 29
  %218 = load i64, ptr %217, align 8, !tbaa !19
  %219 = icmp eq i64 %218, 0
  %220 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %219, ptr noundef @.str.83, ptr noundef %220)
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %221

221:                                              ; preds = %334, %216
  %222 = load i64, ptr %26, align 8, !tbaa !9
  %223 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %29, i32 0, i32 30
  %224 = load i64, ptr %223, align 8, !tbaa !29
  %225 = sub nsw i64 %224, 1
  %226 = icmp sle i64 %222, %225
  br i1 %226, label %227, label %337

227:                                              ; preds = %221
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !13
  %230 = getelementptr inbounds double, ptr %229, i64 0
  %231 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %29, i32 0, i32 27
  %232 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %231, i32 0, i32 6
  %233 = load ptr, ptr %232, align 8, !tbaa !13
  %234 = getelementptr inbounds ptr, ptr %233, i64 0
  %235 = load ptr, ptr %234, align 8, !tbaa !5
  %236 = load i64, ptr %26, align 8, !tbaa !9
  %237 = getelementptr inbounds double, ptr %235, i64 %236
  %238 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %29, i32 0, i32 27
  %239 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %238, i32 0, i32 2
  %240 = load i64, ptr %239, align 8, !tbaa !30
  %241 = load i64, ptr %12, align 8, !tbaa !9
  %242 = sub nsw i64 %241, 1
  %243 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %242)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %230, i64 noundef 1, ptr noundef %237, i64 noundef %240, i64 noundef %243)
  %244 = load ptr, ptr %10, align 8, !tbaa !5
  %245 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl8sparsemvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %244, ptr noundef %23, ptr noundef %21, ptr noundef %245)
  %246 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %29, i32 0, i32 27
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %246, i32 0, i32 6
  %248 = load ptr, ptr %247, align 8, !tbaa !13
  %249 = getelementptr inbounds ptr, ptr %248, i64 0
  %250 = load ptr, ptr %249, align 8, !tbaa !5
  %251 = load i64, ptr %26, align 8, !tbaa !9
  %252 = getelementptr inbounds double, ptr %250, i64 %251
  %253 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %29, i32 0, i32 27
  %254 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %253, i32 0, i32 2
  %255 = load i64, ptr %254, align 8, !tbaa !30
  %256 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %257 = load ptr, ptr %256, align 8, !tbaa !13
  %258 = getelementptr inbounds double, ptr %257, i64 0
  %259 = load i64, ptr %12, align 8, !tbaa !9
  %260 = sub nsw i64 %259, 1
  %261 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %260)
  %262 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %252, i64 noundef %255, ptr noundef %258, i64 noundef 1, i64 noundef %261)
  store double %262, ptr %27, align 8, !tbaa !11
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %263

263:                                              ; preds = %280, %227
  %264 = load i64, ptr %24, align 8, !tbaa !9
  %265 = load i64, ptr %11, align 8, !tbaa !9
  %266 = sub nsw i64 %265, 1
  %267 = icmp sle i64 %264, %266
  br i1 %267, label %268, label %283

268:                                              ; preds = %263
  %269 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %270 = load ptr, ptr %269, align 8, !tbaa !13
  %271 = load i64, ptr %24, align 8, !tbaa !9
  %272 = getelementptr inbounds double, ptr %270, i64 %271
  %273 = load double, ptr %272, align 8, !tbaa !11
  %274 = load double, ptr %27, align 8, !tbaa !11
  %275 = fsub double %273, %274
  %276 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %277 = load ptr, ptr %276, align 8, !tbaa !13
  %278 = load i64, ptr %24, align 8, !tbaa !9
  %279 = getelementptr inbounds double, ptr %277, i64 %278
  store double %275, ptr %279, align 8, !tbaa !11
  br label %280

280:                                              ; preds = %268
  %281 = load i64, ptr %24, align 8, !tbaa !9
  %282 = add nsw i64 %281, 1
  store i64 %282, ptr %24, align 8, !tbaa !9
  br label %263, !llvm.loop !31

283:                                              ; preds = %263
  %284 = load ptr, ptr %10, align 8, !tbaa !5
  %285 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsemtvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %284, ptr noundef %21, ptr noundef %22, ptr noundef %285)
  store double 0.000000e+00, ptr %27, align 8, !tbaa !11
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %286

286:                                              ; preds = %299, %283
  %287 = load i64, ptr %24, align 8, !tbaa !9
  %288 = load i64, ptr %11, align 8, !tbaa !9
  %289 = sub nsw i64 %288, 1
  %290 = icmp sle i64 %287, %289
  br i1 %290, label %291, label %302

291:                                              ; preds = %286
  %292 = load double, ptr %27, align 8, !tbaa !11
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %294 = load ptr, ptr %293, align 8, !tbaa !13
  %295 = load i64, ptr %24, align 8, !tbaa !9
  %296 = getelementptr inbounds double, ptr %294, i64 %295
  %297 = load double, ptr %296, align 8, !tbaa !11
  %298 = fadd double %292, %297
  store double %298, ptr %27, align 8, !tbaa !11
  br label %299

299:                                              ; preds = %291
  %300 = load i64, ptr %24, align 8, !tbaa !9
  %301 = add nsw i64 %300, 1
  store i64 %301, ptr %24, align 8, !tbaa !9
  br label %286, !llvm.loop !32

302:                                              ; preds = %286
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %303

303:                                              ; preds = %330, %302
  %304 = load i64, ptr %25, align 8, !tbaa !9
  %305 = load i64, ptr %12, align 8, !tbaa !9
  %306 = sub nsw i64 %305, 1
  %307 = icmp sle i64 %304, %306
  br i1 %307, label %308, label %333

308:                                              ; preds = %303
  %309 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %310 = load ptr, ptr %309, align 8, !tbaa !13
  %311 = load i64, ptr %25, align 8, !tbaa !9
  %312 = getelementptr inbounds double, ptr %310, i64 %311
  %313 = load double, ptr %312, align 8, !tbaa !11
  %314 = load double, ptr %27, align 8, !tbaa !11
  %315 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %316 = load ptr, ptr %315, align 8, !tbaa !13
  %317 = load i64, ptr %25, align 8, !tbaa !9
  %318 = getelementptr inbounds double, ptr %316, i64 %317
  %319 = load double, ptr %318, align 8, !tbaa !11
  %320 = fneg double %314
  %321 = call double @llvm.fmuladd.f64(double %320, double %319, double %313)
  %322 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %29, i32 0, i32 28
  %323 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %322, i32 0, i32 6
  %324 = load ptr, ptr %323, align 8, !tbaa !13
  %325 = load i64, ptr %25, align 8, !tbaa !9
  %326 = getelementptr inbounds ptr, ptr %324, i64 %325
  %327 = load ptr, ptr %326, align 8, !tbaa !5
  %328 = load i64, ptr %26, align 8, !tbaa !9
  %329 = getelementptr inbounds double, ptr %327, i64 %328
  store double %321, ptr %329, align 8, !tbaa !11
  br label %330

330:                                              ; preds = %308
  %331 = load i64, ptr %25, align 8, !tbaa !9
  %332 = add nsw i64 %331, 1
  store i64 %332, ptr %25, align 8, !tbaa !9
  br label %303, !llvm.loop !33

333:                                              ; preds = %303
  br label %334

334:                                              ; preds = %333
  %335 = load i64, ptr %26, align 8, !tbaa !9
  %336 = add nsw i64 %335, 1
  store i64 %336, ptr %26, align 8, !tbaa !9
  br label %221, !llvm.loop !34

337:                                              ; preds = %221
  br label %213, !llvm.loop !35

338:                                              ; preds = %213
  %339 = load ptr, ptr %16, align 8, !tbaa !5
  %340 = load ptr, ptr %17, align 8, !tbaa !5
  %341 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl18eigsubspaceoocstopEPNS_16eigsubspacestateEPNS_9ae_vectorEPNS_9ae_matrixEPNS_17eigsubspacereportEPNS_8ae_stateE(ptr noundef %29, ptr noundef %339, ptr noundef %340, ptr noundef %30, ptr noundef %341)
  %342 = load i64, ptr %11, align 8, !tbaa !9
  %343 = icmp ne i64 %342, 1
  br i1 %343, label %344, label %370

344:                                              ; preds = %338
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %345

345:                                              ; preds = %366, %344
  %346 = load i64, ptr %24, align 8, !tbaa !9
  %347 = load i64, ptr %13, align 8, !tbaa !9
  %348 = sub nsw i64 %347, 1
  %349 = icmp sle i64 %346, %348
  br i1 %349, label %350, label %369

350:                                              ; preds = %345
  %351 = load ptr, ptr %16, align 8, !tbaa !5
  %352 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %351, i32 0, i32 4
  %353 = load ptr, ptr %352, align 8, !tbaa !13
  %354 = load i64, ptr %24, align 8, !tbaa !9
  %355 = getelementptr inbounds double, ptr %353, i64 %354
  %356 = load double, ptr %355, align 8, !tbaa !11
  %357 = load i64, ptr %11, align 8, !tbaa !9
  %358 = sub nsw i64 %357, 1
  %359 = sitofp i64 %358 to double
  %360 = fdiv double %356, %359
  %361 = load ptr, ptr %16, align 8, !tbaa !5
  %362 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %361, i32 0, i32 4
  %363 = load ptr, ptr %362, align 8, !tbaa !13
  %364 = load i64, ptr %24, align 8, !tbaa !9
  %365 = getelementptr inbounds double, ptr %363, i64 %364
  store double %360, ptr %365, align 8, !tbaa !11
  br label %366

366:                                              ; preds = %350
  %367 = load i64, ptr %24, align 8, !tbaa !9
  %368 = add nsw i64 %367, 1
  store i64 %368, ptr %24, align 8, !tbaa !9
  br label %345, !llvm.loop !36

369:                                              ; preds = %345
  br label %370

370:                                              ; preds = %369, %338
  %371 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %371)
  store i32 0, ptr %31, align 4
  br label %372

372:                                              ; preds = %370, %155, %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 2384, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  %373 = load i32, ptr %31, align 4
  switch i32 %373, label %375 [
    i32 0, label %374
    i32 1, label %374
  ]

374:                                              ; preds = %372, %372
  ret void

375:                                              ; preds = %372
  unreachable
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #3

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #3

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #3

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #3

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #3

declare void @_ZN11alglib_impl22_eigsubspacestate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

declare void @_ZN11alglib_impl23_eigsubspacereport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) #3

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) #3

declare void @_ZN11alglib_impl17eigsubspacecreateEllPNS_16eigsubspacestateEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl18eigsubspacesetcondEPNS_16eigsubspacestateEdlPNS_8ae_stateE(ptr noundef, double noundef, i64 noundef, ptr noundef) #3

declare void @_ZN11alglib_impl19eigsubspaceoocstartEPNS_16eigsubspacestateElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #3

declare noundef zeroext i1 @_ZN11alglib_impl22eigsubspaceooccontinueEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl18eigsubspaceoocstopEPNS_16eigsubspacestateEPNS_9ae_vectorEPNS_9ae_matrixEPNS_17eigsubspacereportEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

declare noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

declare noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

declare noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #3

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) #3

declare void @_ZN11alglib_impl9sparsemtvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl8sparsemvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = !{!20, !10, i64 2096}
!20 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !10, i64 40, !10, i64 48, !21, i64 56, !21, i64 57, !22, i64 64, !21, i64 88, !23, i64 96, !25, i64 160, !25, i64 240, !25, i64 320, !25, i64 400, !25, i64 480, !25, i64 560, !25, i64 640, !25, i64 720, !25, i64 800, !23, i64 880, !23, i64 944, !23, i64 1008, !23, i64 1072, !23, i64 1136, !26, i64 1200, !25, i64 1936, !25, i64 2016, !10, i64 2096, !10, i64 2104, !10, i64 2112, !27, i64 2120}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSN11alglib_impl10hqrndstateE", !10, i64 0, !10, i64 8, !10, i64 16}
!23 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !21, i64 16, !24, i64 24, !7, i64 56}
!24 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!25 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !21, i64 32, !24, i64 40, !7, i64 72}
!26 = !{!"_ZTSN11alglib_impl9apbuffersE", !23, i64 0, !23, i64 64, !23, i64 128, !23, i64 192, !23, i64 256, !23, i64 320, !23, i64 384, !23, i64 448, !23, i64 512, !25, i64 576, !25, i64 656}
!27 = !{!"_ZTSN11alglib_impl10rcommstateE", !28, i64 0, !23, i64 8, !23, i64 72, !23, i64 136, !23, i64 200}
!28 = !{!"int", !7, i64 0}
!29 = !{!20, !10, i64 2104}
!30 = !{!20, !10, i64 1952}
!31 = distinct !{!31, !15}
!32 = distinct !{!32, !15}
!33 = distinct !{!33, !15}
!34 = distinct !{!34, !15}
!35 = distinct !{!35, !15}
!36 = distinct !{!36, !15}


; 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"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::eigsubspacestate" = type { i64, i64, i64, i64, double, i64, i64, i8, i8, %"struct.alglib_impl::hqrndstate", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::apbuffers", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i64, i64, i64, %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::apbuffers" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::eigsubspacereport" = type { i64 }

@.str.83 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [43 x i8], align 1

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

; Function Attrs: mustprogress 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 @_ZN11alglib_impl26pcatruncatedsubspacesparseEPNS_12sparsematrixEllldlPNS_9ae_vectorEPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, double noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #1 {
  %10 = alloca %"struct.alglib_impl::ae_frame", align 8
  %11 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::eigsubspacestate", align 8
  %17 = alloca %"struct.alglib_impl::eigsubspacereport", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 2384, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %8, ptr noundef nonnull %10)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %11, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(2384) %16, i8 0, i64 2384, i1 false)
  store i64 0, ptr %17, align 8
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %6)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %7)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %11, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl22_eigsubspacestate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %16, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl23_eigsubspacereport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %17, ptr noundef %8, i1 noundef zeroext true)
  %18 = icmp sgt i64 %1, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.84, ptr noundef %8)
  %19 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.85, ptr noundef %8)
  %20 = icmp sgt i64 %3, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.86, ptr noundef %8)
  %21 = icmp sle i64 %3, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.87, ptr noundef %8)
  %22 = icmp sgt i64 %5, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.88, ptr noundef %8)
  %23 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef %8)
  br i1 %23, label %24, label %26

24:                                               ; preds = %9
  %25 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %4, double noundef 0.000000e+00)
  br label %26

26:                                               ; preds = %24, %9
  %27 = phi i1 [ false, %9 ], [ %25, %24 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef nonnull @.str.89, ptr noundef %8)
  %28 = icmp sgt i64 %1, 0
  br i1 %28, label %.thread, label %33

.thread:                                          ; preds = %26
  %29 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %8)
  %30 = icmp eq i64 %29, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef nonnull @.str.90, ptr noundef %8)
  %31 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %8)
  %32 = icmp eq i64 %31, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef nonnull @.str.91, ptr noundef %8)
  br label %74

33:                                               ; preds = %26
  %34 = icmp eq i64 %1, 0
  br i1 %34, label %35, label %74

35:                                               ; preds = %33
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %6, i64 noundef %3, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %7, i64 noundef %2, i64 noundef %3, ptr noundef %8)
  br i1 %19, label %.lr.ph, label %._crit_edge172

.lr.ph:                                           ; preds = %35
  %36 = getelementptr inbounds i8, ptr %6, i64 56
  %xtraiter = and i64 %2, 3
  %37 = icmp ult i64 %2, 4
  br i1 %37, label %.preheader164.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %2, 9223372036854775804
  br label %61

.preheader164.unr-lcssa:                          ; preds = %61, %.lr.ph
  %.0144166.unr = phi i64 [ 0, %.lr.ph ], [ %73, %61 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader164, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader164.unr-lcssa, %.epil.preheader
  %.0144166.epil = phi i64 [ %40, %.epil.preheader ], [ %.0144166.unr, %.preheader164.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader164.unr-lcssa ]
  %38 = load ptr, ptr %36, align 8, !tbaa !5
  %39 = getelementptr inbounds double, ptr %38, i64 %.0144166.epil
  store double 0.000000e+00, ptr %39, align 8, !tbaa !8
  %40 = add nuw nsw i64 %.0144166.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader164, label %.epil.preheader, !llvm.loop !10

.preheader164:                                    ; preds = %.epil.preheader, %.preheader164.unr-lcssa
  br i1 %19, label %.preheader163.lr.ph, label %._crit_edge172

.preheader163.lr.ph:                              ; preds = %.preheader164
  %41 = getelementptr inbounds i8, ptr %7, i64 72
  br i1 %20, label %.preheader163.us.preheader, label %._crit_edge172

.preheader163.us.preheader:                       ; preds = %.preheader163.lr.ph
  %xtraiter213 = and i64 %3, 1
  %42 = icmp eq i64 %3, 1
  %unroll_iter216 = and i64 %3, 9223372036854775806
  %lcmp.mod215.not = icmp eq i64 %xtraiter213, 0
  br label %.preheader163.us

.preheader163.us:                                 ; preds = %.preheader163.us.preheader, %._crit_edge.us
  %.1145171.us = phi i64 [ %60, %._crit_edge.us ], [ 0, %.preheader163.us.preheader ]
  br i1 %42, label %._crit_edge.us.unr-lcssa, label %.preheader163.us.new

.preheader163.us.new:                             ; preds = %.preheader163.us, %.preheader163.us.new
  %.0143168.us = phi i64 [ %54, %.preheader163.us.new ], [ 0, %.preheader163.us ]
  %niter217 = phi i64 [ %niter217.next.1, %.preheader163.us.new ], [ 0, %.preheader163.us ]
  %43 = icmp eq i64 %.1145171.us, %.0143168.us
  %44 = load ptr, ptr %41, align 8, !tbaa !5
  %45 = getelementptr inbounds ptr, ptr %44, i64 %.1145171.us
  %46 = load ptr, ptr %45, align 8, !tbaa !12
  %. = select i1 %43, double 1.000000e+00, double 0.000000e+00
  %47 = getelementptr inbounds double, ptr %46, i64 %.0143168.us
  store double %., ptr %47, align 8, !tbaa !8
  %48 = or disjoint i64 %.0143168.us, 1
  %49 = icmp eq i64 %.1145171.us, %48
  %50 = load ptr, ptr %41, align 8, !tbaa !5
  %51 = getelementptr inbounds ptr, ptr %50, i64 %.1145171.us
  %52 = load ptr, ptr %51, align 8, !tbaa !12
  %..1 = select i1 %49, double 1.000000e+00, double 0.000000e+00
  %53 = getelementptr inbounds double, ptr %52, i64 %48
  store double %..1, ptr %53, align 8, !tbaa !8
  %54 = add nuw nsw i64 %.0143168.us, 2
  %niter217.next.1 = add i64 %niter217, 2
  %niter217.ncmp.1 = icmp eq i64 %niter217.next.1, %unroll_iter216
  br i1 %niter217.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.preheader163.us.new, !llvm.loop !14

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader163.us.new, %.preheader163.us
  %.0143168.us.unr = phi i64 [ 0, %.preheader163.us ], [ %54, %.preheader163.us.new ]
  br i1 %lcmp.mod215.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %55 = icmp eq i64 %.1145171.us, %.0143168.us.unr
  %56 = load ptr, ptr %41, align 8, !tbaa !5
  %57 = getelementptr inbounds ptr, ptr %56, i64 %.1145171.us
  %58 = load ptr, ptr %57, align 8, !tbaa !12
  %..epil = select i1 %55, double 1.000000e+00, double 0.000000e+00
  %59 = getelementptr inbounds double, ptr %58, i64 %.0143168.us.unr
  store double %..epil, ptr %59, align 8, !tbaa !8
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %60 = add nuw nsw i64 %.1145171.us, 1
  %exitcond203.not = icmp eq i64 %60, %2
  br i1 %exitcond203.not, label %._crit_edge172, label %.preheader163.us, !llvm.loop !16

61:                                               ; preds = %61, %.lr.ph.new
  %.0144166 = phi i64 [ 0, %.lr.ph.new ], [ %73, %61 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %61 ]
  %62 = load ptr, ptr %36, align 8, !tbaa !5
  %63 = getelementptr inbounds double, ptr %62, i64 %.0144166
  store double 0.000000e+00, ptr %63, align 8, !tbaa !8
  %64 = or disjoint i64 %.0144166, 1
  %65 = load ptr, ptr %36, align 8, !tbaa !5
  %66 = getelementptr inbounds double, ptr %65, i64 %64
  store double 0.000000e+00, ptr %66, align 8, !tbaa !8
  %67 = or disjoint i64 %.0144166, 2
  %68 = load ptr, ptr %36, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %68, i64 %67
  store double 0.000000e+00, ptr %69, align 8, !tbaa !8
  %70 = or disjoint i64 %.0144166, 3
  %71 = load ptr, ptr %36, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %71, i64 %70
  store double 0.000000e+00, ptr %72, align 8, !tbaa !8
  %73 = add nuw nsw i64 %.0144166, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader164.unr-lcssa, label %61, !llvm.loop !17

74:                                               ; preds = %.thread, %33
  %75 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %8)
  br i1 %75, label %77, label %76

76:                                               ; preds = %74
  call void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %11, ptr noundef %8)
  call void @_ZN11alglib_impl26pcatruncatedsubspacesparseEPNS_12sparsematrixEllldlPNS_9ae_vectorEPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, i64 noundef %2, i64 noundef %3, double noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8)
  br label %._crit_edge172

77:                                               ; preds = %74
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %1, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %2, ptr noundef %8)
  %78 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %4, double noundef 0.000000e+00)
  %79 = icmp eq i64 %5, 0
  %or.cond = and i1 %79, %78
  %.0146 = select i1 %or.cond, double 0x3EB0C6F7A0B5ED8D, double %4
  %80 = shl nsw i64 %2, 1
  %81 = add nsw i64 %80, 50
  %.0147 = select i1 %79, i64 %81, i64 %5
  %82 = sitofp i64 %1 to double
  %83 = fdiv double 1.000000e+00, %82
  br i1 %28, label %.lr.ph175, label %._crit_edge

.lr.ph175:                                        ; preds = %77
  %84 = getelementptr inbounds i8, ptr %12, i64 56
  %xtraiter219 = and i64 %1, 3
  %85 = icmp ult i64 %1, 4
  br i1 %85, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph175.new

.lr.ph175.new:                                    ; preds = %.lr.ph175
  %unroll_iter222 = and i64 %1, 9223372036854775804
  br label %86

86:                                               ; preds = %86, %.lr.ph175.new
  %.2174 = phi i64 [ 0, %.lr.ph175.new ], [ %98, %86 ]
  %niter223 = phi i64 [ 0, %.lr.ph175.new ], [ %niter223.next.3, %86 ]
  %87 = load ptr, ptr %84, align 8, !tbaa !5
  %88 = getelementptr inbounds double, ptr %87, i64 %.2174
  store double %83, ptr %88, align 8, !tbaa !8
  %89 = or disjoint i64 %.2174, 1
  %90 = load ptr, ptr %84, align 8, !tbaa !5
  %91 = getelementptr inbounds double, ptr %90, i64 %89
  store double %83, ptr %91, align 8, !tbaa !8
  %92 = or disjoint i64 %.2174, 2
  %93 = load ptr, ptr %84, align 8, !tbaa !5
  %94 = getelementptr inbounds double, ptr %93, i64 %92
  store double %83, ptr %94, align 8, !tbaa !8
  %95 = or disjoint i64 %.2174, 3
  %96 = load ptr, ptr %84, align 8, !tbaa !5
  %97 = getelementptr inbounds double, ptr %96, i64 %95
  store double %83, ptr %97, align 8, !tbaa !8
  %98 = add nuw nsw i64 %.2174, 4
  %niter223.next.3 = add i64 %niter223, 4
  %niter223.ncmp.3 = icmp eq i64 %niter223.next.3, %unroll_iter222
  br i1 %niter223.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %86, !llvm.loop !18

._crit_edge.loopexit.unr-lcssa:                   ; preds = %86, %.lr.ph175
  %.2174.unr = phi i64 [ 0, %.lr.ph175 ], [ %98, %86 ]
  %lcmp.mod221.not = icmp eq i64 %xtraiter219, 0
  br i1 %lcmp.mod221.not, label %._crit_edge, label %.epil.preheader218

.epil.preheader218:                               ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader218
  %.2174.epil = phi i64 [ %101, %.epil.preheader218 ], [ %.2174.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter220 = phi i64 [ %epil.iter220.next, %.epil.preheader218 ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %99 = load ptr, ptr %84, align 8, !tbaa !5
  %100 = getelementptr inbounds double, ptr %99, i64 %.2174.epil
  store double %83, ptr %100, align 8, !tbaa !8
  %101 = add nuw nsw i64 %.2174.epil, 1
  %epil.iter220.next = add i64 %epil.iter220, 1
  %epil.iter220.cmp.not = icmp eq i64 %epil.iter220.next, %xtraiter219
  br i1 %epil.iter220.cmp.not, label %._crit_edge, label %.epil.preheader218, !llvm.loop !19

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader218, %77
  %102 = add nsw i64 %1, -1
  call void @_ZN11alglib_impl9sparsemtvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %12, ptr noundef nonnull %15, ptr noundef %8)
  call void @_ZN11alglib_impl17eigsubspacecreateEllPNS_16eigsubspacestateEPNS_8ae_stateE(i64 noundef %2, i64 noundef %3, ptr noundef nonnull %16, ptr noundef %8)
  call void @_ZN11alglib_impl18eigsubspacesetcondEPNS_16eigsubspacestateEdlPNS_8ae_stateE(ptr noundef nonnull %16, double noundef %.0146, i64 noundef %.0147, ptr noundef %8)
  call void @_ZN11alglib_impl19eigsubspaceoocstartEPNS_16eigsubspacestateElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef 0, ptr noundef %8)
  %103 = call noundef zeroext i1 @_ZN11alglib_impl22eigsubspaceooccontinueEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef %8)
  br i1 %103, label %.lr.ph195, label %._crit_edge196

.lr.ph195:                                        ; preds = %._crit_edge
  %104 = getelementptr inbounds i8, ptr %16, i64 2096
  %105 = getelementptr inbounds i8, ptr %16, i64 2104
  %106 = getelementptr inbounds i8, ptr %14, i64 56
  %107 = getelementptr inbounds i8, ptr %16, i64 2008
  %108 = getelementptr inbounds i8, ptr %16, i64 1952
  %109 = add nsw i64 %2, -1
  %110 = getelementptr inbounds i8, ptr %15, i64 56
  %111 = getelementptr inbounds i8, ptr %12, i64 56
  %112 = getelementptr inbounds i8, ptr %13, i64 56
  %113 = getelementptr inbounds i8, ptr %16, i64 2088
  %xtraiter224 = and i64 %1, 3
  %114 = icmp ult i64 %1, 4
  %unroll_iter227 = and i64 %1, 9223372036854775804
  %lcmp.mod226.not = icmp eq i64 %xtraiter224, 0
  %xtraiter230 = and i64 %1, 7
  %115 = icmp ult i64 %1, 8
  %unroll_iter234 = and i64 %1, 9223372036854775800
  %lcmp.mod232.not = icmp eq i64 %xtraiter230, 0
  %xtraiter237 = and i64 %2, 1
  %116 = icmp eq i64 %2, 1
  %unroll_iter240 = and i64 %2, 9223372036854775806
  %lcmp.mod239.not = icmp eq i64 %xtraiter237, 0
  br label %118

.loopexit162:                                     ; preds = %._crit_edge189, %118
  %117 = call noundef zeroext i1 @_ZN11alglib_impl22eigsubspaceooccontinueEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef %8)
  br i1 %117, label %118, label %._crit_edge196, !llvm.loop !20

118:                                              ; preds = %.lr.ph195, %.loopexit162
  %119 = load i64, ptr %104, align 8, !tbaa !21
  %120 = icmp eq i64 %119, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %120, ptr noundef nonnull @.str.83, ptr noundef %8)
  %121 = load i64, ptr %105, align 8, !tbaa !32
  %.not154.not190 = icmp sgt i64 %121, 0
  br i1 %.not154.not190, label %.lr.ph193, label %.loopexit162

.lr.ph193:                                        ; preds = %118, %._crit_edge189
  %.0142191 = phi i64 [ %233, %._crit_edge189 ], [ 0, %118 ]
  %122 = load ptr, ptr %106, align 8, !tbaa !5
  %123 = load ptr, ptr %107, align 8, !tbaa !5
  %124 = load ptr, ptr %123, align 8, !tbaa !12
  %125 = getelementptr inbounds double, ptr %124, i64 %.0142191
  %126 = load i64, ptr %108, align 8, !tbaa !33
  %127 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %109)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %122, i64 noundef 1, ptr noundef %125, i64 noundef %126, i64 noundef %127)
  call void @_ZN11alglib_impl8sparsemvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %14, ptr noundef nonnull %12, ptr noundef %8)
  %128 = load ptr, ptr %107, align 8, !tbaa !5
  %129 = load ptr, ptr %128, align 8, !tbaa !12
  %130 = getelementptr inbounds double, ptr %129, i64 %.0142191
  %131 = load i64, ptr %108, align 8, !tbaa !33
  %132 = load ptr, ptr %110, align 8, !tbaa !5
  %133 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %109)
  %134 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %130, i64 noundef %131, ptr noundef %132, i64 noundef 1, i64 noundef %133)
  br i1 %28, label %.lr.ph179.preheader, label %._crit_edge180.thread

.lr.ph179.preheader:                              ; preds = %.lr.ph193
  br i1 %114, label %._crit_edge180.unr-lcssa, label %.lr.ph179

._crit_edge180.thread:                            ; preds = %.lr.ph193
  call void @_ZN11alglib_impl9sparsemtvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef %8)
  br label %.preheader161

.lr.ph179:                                        ; preds = %.lr.ph179.preheader, %.lr.ph179
  %.3177 = phi i64 [ %154, %.lr.ph179 ], [ 0, %.lr.ph179.preheader ]
  %niter228 = phi i64 [ %niter228.next.3, %.lr.ph179 ], [ 0, %.lr.ph179.preheader ]
  %135 = load ptr, ptr %111, align 8, !tbaa !5
  %136 = getelementptr inbounds double, ptr %135, i64 %.3177
  %137 = load double, ptr %136, align 8, !tbaa !8
  %138 = fsub double %137, %134
  store double %138, ptr %136, align 8, !tbaa !8
  %139 = or disjoint i64 %.3177, 1
  %140 = load ptr, ptr %111, align 8, !tbaa !5
  %141 = getelementptr inbounds double, ptr %140, i64 %139
  %142 = load double, ptr %141, align 8, !tbaa !8
  %143 = fsub double %142, %134
  store double %143, ptr %141, align 8, !tbaa !8
  %144 = or disjoint i64 %.3177, 2
  %145 = load ptr, ptr %111, align 8, !tbaa !5
  %146 = getelementptr inbounds double, ptr %145, i64 %144
  %147 = load double, ptr %146, align 8, !tbaa !8
  %148 = fsub double %147, %134
  store double %148, ptr %146, align 8, !tbaa !8
  %149 = or disjoint i64 %.3177, 3
  %150 = load ptr, ptr %111, align 8, !tbaa !5
  %151 = getelementptr inbounds double, ptr %150, i64 %149
  %152 = load double, ptr %151, align 8, !tbaa !8
  %153 = fsub double %152, %134
  store double %153, ptr %151, align 8, !tbaa !8
  %154 = add nuw nsw i64 %.3177, 4
  %niter228.next.3 = add i64 %niter228, 4
  %niter228.ncmp.3 = icmp eq i64 %niter228.next.3, %unroll_iter227
  br i1 %niter228.ncmp.3, label %._crit_edge180.unr-lcssa, label %.lr.ph179, !llvm.loop !34

._crit_edge180.unr-lcssa:                         ; preds = %.lr.ph179, %.lr.ph179.preheader
  %.3177.unr = phi i64 [ 0, %.lr.ph179.preheader ], [ %154, %.lr.ph179 ]
  br i1 %lcmp.mod226.not, label %._crit_edge180, label %.lr.ph179.epil

.lr.ph179.epil:                                   ; preds = %._crit_edge180.unr-lcssa, %.lr.ph179.epil
  %.3177.epil = phi i64 [ %159, %.lr.ph179.epil ], [ %.3177.unr, %._crit_edge180.unr-lcssa ]
  %epil.iter225 = phi i64 [ %epil.iter225.next, %.lr.ph179.epil ], [ 0, %._crit_edge180.unr-lcssa ]
  %155 = load ptr, ptr %111, align 8, !tbaa !5
  %156 = getelementptr inbounds double, ptr %155, i64 %.3177.epil
  %157 = load double, ptr %156, align 8, !tbaa !8
  %158 = fsub double %157, %134
  store double %158, ptr %156, align 8, !tbaa !8
  %159 = add nuw nsw i64 %.3177.epil, 1
  %epil.iter225.next = add i64 %epil.iter225, 1
  %epil.iter225.cmp.not = icmp eq i64 %epil.iter225.next, %xtraiter224
  br i1 %epil.iter225.cmp.not, label %._crit_edge180, label %.lr.ph179.epil, !llvm.loop !35

._crit_edge180:                                   ; preds = %.lr.ph179.epil, %._crit_edge180.unr-lcssa
  call void @_ZN11alglib_impl9sparsemtvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef %8)
  br i1 %28, label %.lr.ph185, label %.preheader161

.lr.ph185:                                        ; preds = %._crit_edge180
  %160 = load ptr, ptr %111, align 8, !tbaa !5
  br i1 %115, label %.preheader161.loopexit.unr-lcssa, label %.lr.ph185.new

.preheader161.loopexit.unr-lcssa:                 ; preds = %.lr.ph185.new, %.lr.ph185
  %.lcssa.ph = phi double [ poison, %.lr.ph185 ], [ %196, %.lr.ph185.new ]
  %.0183.unr = phi double [ 0.000000e+00, %.lr.ph185 ], [ %196, %.lr.ph185.new ]
  %.4182.unr = phi i64 [ 0, %.lr.ph185 ], [ %197, %.lr.ph185.new ]
  br i1 %lcmp.mod232.not, label %.preheader161, label %.epil.preheader229

.epil.preheader229:                               ; preds = %.preheader161.loopexit.unr-lcssa, %.epil.preheader229
  %.0183.epil = phi double [ %163, %.epil.preheader229 ], [ %.0183.unr, %.preheader161.loopexit.unr-lcssa ]
  %.4182.epil = phi i64 [ %164, %.epil.preheader229 ], [ %.4182.unr, %.preheader161.loopexit.unr-lcssa ]
  %epil.iter231 = phi i64 [ %epil.iter231.next, %.epil.preheader229 ], [ 0, %.preheader161.loopexit.unr-lcssa ]
  %161 = getelementptr inbounds double, ptr %160, i64 %.4182.epil
  %162 = load double, ptr %161, align 8, !tbaa !8
  %163 = fadd double %.0183.epil, %162
  %164 = add nuw nsw i64 %.4182.epil, 1
  %epil.iter231.next = add i64 %epil.iter231, 1
  %epil.iter231.cmp.not = icmp eq i64 %epil.iter231.next, %xtraiter230
  br i1 %epil.iter231.cmp.not, label %.preheader161, label %.epil.preheader229, !llvm.loop !36

.preheader161:                                    ; preds = %.preheader161.loopexit.unr-lcssa, %.epil.preheader229, %._crit_edge180.thread, %._crit_edge180
  %.0.lcssa = phi double [ 0.000000e+00, %._crit_edge180 ], [ 0.000000e+00, %._crit_edge180.thread ], [ %.lcssa.ph, %.preheader161.loopexit.unr-lcssa ], [ %163, %.epil.preheader229 ]
  br i1 %19, label %.lr.ph188, label %._crit_edge189

.lr.ph188:                                        ; preds = %.preheader161
  %165 = fneg double %.0.lcssa
  br i1 %116, label %._crit_edge189.loopexit.unr-lcssa, label %.lr.ph188.new

.lr.ph185.new:                                    ; preds = %.lr.ph185, %.lr.ph185.new
  %.0183 = phi double [ %196, %.lr.ph185.new ], [ 0.000000e+00, %.lr.ph185 ]
  %.4182 = phi i64 [ %197, %.lr.ph185.new ], [ 0, %.lr.ph185 ]
  %niter235 = phi i64 [ %niter235.next.7, %.lr.ph185.new ], [ 0, %.lr.ph185 ]
  %166 = getelementptr inbounds double, ptr %160, i64 %.4182
  %167 = load double, ptr %166, align 8, !tbaa !8
  %168 = fadd double %.0183, %167
  %169 = or disjoint i64 %.4182, 1
  %170 = getelementptr inbounds double, ptr %160, i64 %169
  %171 = load double, ptr %170, align 8, !tbaa !8
  %172 = fadd double %168, %171
  %173 = or disjoint i64 %.4182, 2
  %174 = getelementptr inbounds double, ptr %160, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !8
  %176 = fadd double %172, %175
  %177 = or disjoint i64 %.4182, 3
  %178 = getelementptr inbounds double, ptr %160, i64 %177
  %179 = load double, ptr %178, align 8, !tbaa !8
  %180 = fadd double %176, %179
  %181 = or disjoint i64 %.4182, 4
  %182 = getelementptr inbounds double, ptr %160, i64 %181
  %183 = load double, ptr %182, align 8, !tbaa !8
  %184 = fadd double %180, %183
  %185 = or disjoint i64 %.4182, 5
  %186 = getelementptr inbounds double, ptr %160, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !8
  %188 = fadd double %184, %187
  %189 = or disjoint i64 %.4182, 6
  %190 = getelementptr inbounds double, ptr %160, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !8
  %192 = fadd double %188, %191
  %193 = or disjoint i64 %.4182, 7
  %194 = getelementptr inbounds double, ptr %160, i64 %193
  %195 = load double, ptr %194, align 8, !tbaa !8
  %196 = fadd double %192, %195
  %197 = add nuw nsw i64 %.4182, 8
  %niter235.next.7 = add i64 %niter235, 8
  %niter235.ncmp.7 = icmp eq i64 %niter235.next.7, %unroll_iter234
  br i1 %niter235.ncmp.7, label %.preheader161.loopexit.unr-lcssa, label %.lr.ph185.new, !llvm.loop !37

.lr.ph188.new:                                    ; preds = %.lr.ph188, %.lr.ph188.new
  %.1187 = phi i64 [ %221, %.lr.ph188.new ], [ 0, %.lr.ph188 ]
  %niter241 = phi i64 [ %niter241.next.1, %.lr.ph188.new ], [ 0, %.lr.ph188 ]
  %198 = load ptr, ptr %112, align 8, !tbaa !5
  %199 = getelementptr inbounds double, ptr %198, i64 %.1187
  %200 = load double, ptr %199, align 8, !tbaa !8
  %201 = load ptr, ptr %110, align 8, !tbaa !5
  %202 = getelementptr inbounds double, ptr %201, i64 %.1187
  %203 = load double, ptr %202, align 8, !tbaa !8
  %204 = call double @llvm.fmuladd.f64(double %165, double %203, double %200)
  %205 = load ptr, ptr %113, align 8, !tbaa !5
  %206 = getelementptr inbounds ptr, ptr %205, i64 %.1187
  %207 = load ptr, ptr %206, align 8, !tbaa !12
  %208 = getelementptr inbounds double, ptr %207, i64 %.0142191
  store double %204, ptr %208, align 8, !tbaa !8
  %209 = or disjoint i64 %.1187, 1
  %210 = load ptr, ptr %112, align 8, !tbaa !5
  %211 = getelementptr inbounds double, ptr %210, i64 %209
  %212 = load double, ptr %211, align 8, !tbaa !8
  %213 = load ptr, ptr %110, align 8, !tbaa !5
  %214 = getelementptr inbounds double, ptr %213, i64 %209
  %215 = load double, ptr %214, align 8, !tbaa !8
  %216 = call double @llvm.fmuladd.f64(double %165, double %215, double %212)
  %217 = load ptr, ptr %113, align 8, !tbaa !5
  %218 = getelementptr inbounds ptr, ptr %217, i64 %209
  %219 = load ptr, ptr %218, align 8, !tbaa !12
  %220 = getelementptr inbounds double, ptr %219, i64 %.0142191
  store double %216, ptr %220, align 8, !tbaa !8
  %221 = add nuw nsw i64 %.1187, 2
  %niter241.next.1 = add i64 %niter241, 2
  %niter241.ncmp.1 = icmp eq i64 %niter241.next.1, %unroll_iter240
  br i1 %niter241.ncmp.1, label %._crit_edge189.loopexit.unr-lcssa, label %.lr.ph188.new, !llvm.loop !38

._crit_edge189.loopexit.unr-lcssa:                ; preds = %.lr.ph188.new, %.lr.ph188
  %.1187.unr = phi i64 [ 0, %.lr.ph188 ], [ %221, %.lr.ph188.new ]
  br i1 %lcmp.mod239.not, label %._crit_edge189, label %._crit_edge189.loopexit.epilog-lcssa

._crit_edge189.loopexit.epilog-lcssa:             ; preds = %._crit_edge189.loopexit.unr-lcssa
  %222 = load ptr, ptr %112, align 8, !tbaa !5
  %223 = getelementptr inbounds double, ptr %222, i64 %.1187.unr
  %224 = load double, ptr %223, align 8, !tbaa !8
  %225 = load ptr, ptr %110, align 8, !tbaa !5
  %226 = getelementptr inbounds double, ptr %225, i64 %.1187.unr
  %227 = load double, ptr %226, align 8, !tbaa !8
  %228 = call double @llvm.fmuladd.f64(double %165, double %227, double %224)
  %229 = load ptr, ptr %113, align 8, !tbaa !5
  %230 = getelementptr inbounds ptr, ptr %229, i64 %.1187.unr
  %231 = load ptr, ptr %230, align 8, !tbaa !12
  %232 = getelementptr inbounds double, ptr %231, i64 %.0142191
  store double %228, ptr %232, align 8, !tbaa !8
  br label %._crit_edge189

._crit_edge189:                                   ; preds = %._crit_edge189.loopexit.epilog-lcssa, %._crit_edge189.loopexit.unr-lcssa, %.preheader161
  %233 = add nuw nsw i64 %.0142191, 1
  %234 = load i64, ptr %105, align 8, !tbaa !32
  %.not154.not = icmp slt i64 %233, %234
  br i1 %.not154.not, label %.lr.ph193, label %.loopexit162, !llvm.loop !39

._crit_edge196:                                   ; preds = %.loopexit162, %._crit_edge
  call void @_ZN11alglib_impl18eigsubspaceoocstopEPNS_16eigsubspacestateEPNS_9ae_vectorEPNS_9ae_matrixEPNS_17eigsubspacereportEPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %17, ptr noundef %8)
  %.not = icmp ne i64 %1, 1
  %or.cond200 = and i1 %.not, %20
  br i1 %or.cond200, label %.lr.ph199, label %._crit_edge172

.lr.ph199:                                        ; preds = %._crit_edge196
  %235 = getelementptr inbounds i8, ptr %6, i64 56
  %236 = sitofp i64 %102 to double
  %xtraiter243 = and i64 %3, 3
  %237 = icmp ult i64 %3, 4
  br i1 %237, label %._crit_edge172.loopexit.unr-lcssa, label %.lr.ph199.new

.lr.ph199.new:                                    ; preds = %.lr.ph199
  %unroll_iter246 = and i64 %3, 9223372036854775804
  br label %238

238:                                              ; preds = %238, %.lr.ph199.new
  %.5198 = phi i64 [ 0, %.lr.ph199.new ], [ %258, %238 ]
  %niter247 = phi i64 [ 0, %.lr.ph199.new ], [ %niter247.next.3, %238 ]
  %239 = load ptr, ptr %235, align 8, !tbaa !5
  %240 = getelementptr inbounds double, ptr %239, i64 %.5198
  %241 = load double, ptr %240, align 8, !tbaa !8
  %242 = fdiv double %241, %236
  store double %242, ptr %240, align 8, !tbaa !8
  %243 = or disjoint i64 %.5198, 1
  %244 = load ptr, ptr %235, align 8, !tbaa !5
  %245 = getelementptr inbounds double, ptr %244, i64 %243
  %246 = load double, ptr %245, align 8, !tbaa !8
  %247 = fdiv double %246, %236
  store double %247, ptr %245, align 8, !tbaa !8
  %248 = or disjoint i64 %.5198, 2
  %249 = load ptr, ptr %235, align 8, !tbaa !5
  %250 = getelementptr inbounds double, ptr %249, i64 %248
  %251 = load double, ptr %250, align 8, !tbaa !8
  %252 = fdiv double %251, %236
  store double %252, ptr %250, align 8, !tbaa !8
  %253 = or disjoint i64 %.5198, 3
  %254 = load ptr, ptr %235, align 8, !tbaa !5
  %255 = getelementptr inbounds double, ptr %254, i64 %253
  %256 = load double, ptr %255, align 8, !tbaa !8
  %257 = fdiv double %256, %236
  store double %257, ptr %255, align 8, !tbaa !8
  %258 = add nuw nsw i64 %.5198, 4
  %niter247.next.3 = add i64 %niter247, 4
  %niter247.ncmp.3 = icmp eq i64 %niter247.next.3, %unroll_iter246
  br i1 %niter247.ncmp.3, label %._crit_edge172.loopexit.unr-lcssa, label %238, !llvm.loop !40

._crit_edge172.loopexit.unr-lcssa:                ; preds = %238, %.lr.ph199
  %.5198.unr = phi i64 [ 0, %.lr.ph199 ], [ %258, %238 ]
  %lcmp.mod245.not = icmp eq i64 %xtraiter243, 0
  br i1 %lcmp.mod245.not, label %._crit_edge172, label %.epil.preheader242

.epil.preheader242:                               ; preds = %._crit_edge172.loopexit.unr-lcssa, %.epil.preheader242
  %.5198.epil = phi i64 [ %263, %.epil.preheader242 ], [ %.5198.unr, %._crit_edge172.loopexit.unr-lcssa ]
  %epil.iter244 = phi i64 [ %epil.iter244.next, %.epil.preheader242 ], [ 0, %._crit_edge172.loopexit.unr-lcssa ]
  %259 = load ptr, ptr %235, align 8, !tbaa !5
  %260 = getelementptr inbounds double, ptr %259, i64 %.5198.epil
  %261 = load double, ptr %260, align 8, !tbaa !8
  %262 = fdiv double %261, %236
  store double %262, ptr %260, align 8, !tbaa !8
  %263 = add nuw nsw i64 %.5198.epil, 1
  %epil.iter244.next = add i64 %epil.iter244, 1
  %epil.iter244.cmp.not = icmp eq i64 %epil.iter244.next, %xtraiter243
  br i1 %epil.iter244.cmp.not, label %._crit_edge172, label %.epil.preheader242, !llvm.loop !41

._crit_edge172:                                   ; preds = %._crit_edge.us, %._crit_edge172.loopexit.unr-lcssa, %.epil.preheader242, %._crit_edge196, %.preheader164, %.preheader163.lr.ph, %35, %76
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 2384, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl22_eigsubspacestate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

declare void @_ZN11alglib_impl23_eigsubspacereport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl17eigsubspacecreateEllPNS_16eigsubspacestateEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl18eigsubspacesetcondEPNS_16eigsubspacestateEdlPNS_8ae_stateE(ptr noundef, double noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl19eigsubspaceoocstartEPNS_16eigsubspacestateElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN11alglib_impl22eigsubspaceooccontinueEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl18eigsubspaceoocstopEPNS_16eigsubspacestateEPNS_9ae_vectorEPNS_9ae_matrixEPNS_17eigsubspacereportEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

declare noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl9sparsemtvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl8sparsemvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.unroll.disable"}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !6, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !15}
!21 = !{!22, !23, i64 2096}
!22 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !23, i64 0, !23, i64 8, !23, i64 16, !23, i64 24, !9, i64 32, !23, i64 40, !23, i64 48, !24, i64 56, !24, i64 57, !25, i64 64, !24, i64 88, !26, i64 96, !28, i64 160, !28, i64 240, !28, i64 320, !28, i64 400, !28, i64 480, !28, i64 560, !28, i64 640, !28, i64 720, !28, i64 800, !26, i64 880, !26, i64 944, !26, i64 1008, !26, i64 1072, !26, i64 1136, !29, i64 1200, !28, i64 1936, !28, i64 2016, !23, i64 2096, !23, i64 2104, !23, i64 2112, !30, i64 2120}
!23 = !{!"long", !6, i64 0}
!24 = !{!"bool", !6, i64 0}
!25 = !{!"_ZTSN11alglib_impl10hqrndstateE", !23, i64 0, !23, i64 8, !23, i64 16}
!26 = !{!"_ZTSN11alglib_impl9ae_vectorE", !23, i64 0, !23, i64 8, !24, i64 16, !27, i64 24, !6, i64 56}
!27 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!28 = !{!"_ZTSN11alglib_impl9ae_matrixE", !23, i64 0, !23, i64 8, !23, i64 16, !23, i64 24, !24, i64 32, !27, i64 40, !6, i64 72}
!29 = !{!"_ZTSN11alglib_impl9apbuffersE", !26, i64 0, !26, i64 64, !26, i64 128, !26, i64 192, !26, i64 256, !26, i64 320, !26, i64 384, !26, i64 448, !26, i64 512, !28, i64 576, !28, i64 656}
!30 = !{!"_ZTSN11alglib_impl10rcommstateE", !31, i64 0, !26, i64 8, !26, i64 72, !26, i64 136, !26, i64 200}
!31 = !{!"int", !6, i64 0}
!32 = !{!22, !23, i64 2104}
!33 = !{!22, !23, i64 1952}
!34 = distinct !{!34, !15}
!35 = distinct !{!35, !11}
!36 = distinct !{!36, !11}
!37 = distinct !{!37, !15}
!38 = distinct !{!38, !15}
!39 = distinct !{!39, !15}
!40 = distinct !{!40, !15}
!41 = distinct !{!41, !11}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass