; LLVM IR from Dimandragon/non-parametric-dsp :: 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::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::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::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::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.107 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [45 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_impl20pcatruncatedsubspaceEPKNS_9ae_matrixEllldlPNS_9ae_vectorEPS0_PNS_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::ae_matrix", align 8
  %21 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca double, align 8
  %27 = alloca %"struct.alglib_impl::eigsubspacestate", align 8
  %28 = alloca %"struct.alglib_impl::eigsubspacereport", align 8
  %29 = 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) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 2448, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %30 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %30, ptr noundef %19)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 80, 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 %27, i8 0, i64 2448, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 8, i1 false)
  %31 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %31)
  %32 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %32)
  %33 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %33, i1 noundef zeroext true)
  %34 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %34, i1 noundef zeroext true)
  %35 = 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 %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl22_eigsubspacestate_initEPvPNS_8ae_stateEb(ptr noundef %27, ptr noundef %36, i1 noundef zeroext true)
  %37 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl23_eigsubspacereport_initEPvPNS_8ae_stateEb(ptr noundef %28, ptr noundef %37, i1 noundef zeroext true)
  %38 = load i64, ptr %11, align 8, !tbaa !9
  %39 = icmp sge i64 %38, 0
  %40 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %39, ptr noundef @.str.107, ptr noundef %40)
  %41 = load i64, ptr %12, align 8, !tbaa !9
  %42 = icmp sge i64 %41, 1
  %43 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef @.str.108, ptr noundef %43)
  %44 = load i64, ptr %13, align 8, !tbaa !9
  %45 = icmp sgt i64 %44, 0
  %46 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %45, ptr noundef @.str.109, ptr noundef %46)
  %47 = load i64, ptr %13, align 8, !tbaa !9
  %48 = load i64, ptr %12, align 8, !tbaa !9
  %49 = icmp sle i64 %47, %48
  %50 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.110, ptr noundef %50)
  %51 = load i64, ptr %15, align 8, !tbaa !9
  %52 = icmp sge i64 %51, 0
  %53 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef @.str.111, ptr noundef %53)
  %54 = load double, ptr %14, align 8, !tbaa !11
  %55 = load ptr, ptr %18, align 8, !tbaa !5
  %56 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %54, ptr noundef %55)
  br i1 %56, label %57, label %60

57:                                               ; preds = %9
  %58 = load double, ptr %14, align 8, !tbaa !11
  %59 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %58, double noundef 0.000000e+00)
  br label %60

60:                                               ; preds = %57, %9
  %61 = phi i1 [ false, %9 ], [ %59, %57 ]
  %62 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %61, ptr noundef @.str.112, ptr noundef %62)
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %63, i32 0, i32 0
  %65 = load i64, ptr %64, align 8, !tbaa !13
  %66 = load i64, ptr %11, align 8, !tbaa !9
  %67 = icmp sge i64 %65, %66
  %68 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %67, ptr noundef @.str.113, ptr noundef %68)
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %69, i32 0, i32 1
  %71 = load i64, ptr %70, align 8, !tbaa !17
  %72 = load i64, ptr %12, align 8, !tbaa !9
  %73 = icmp sge i64 %71, %72
  br i1 %73, label %77, label %74

74:                                               ; preds = %60
  %75 = load i64, ptr %11, align 8, !tbaa !9
  %76 = icmp eq i64 %75, 0
  br label %77

77:                                               ; preds = %74, %60
  %78 = phi i1 [ true, %60 ], [ %76, %74 ]
  %79 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %78, ptr noundef @.str.114, ptr noundef %79)
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = load i64, ptr %11, align 8, !tbaa !9
  %82 = load i64, ptr %12, align 8, !tbaa !9
  %83 = load ptr, ptr %18, align 8, !tbaa !5
  %84 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %80, i64 noundef %81, i64 noundef %82, ptr noundef %83)
  %85 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %84, ptr noundef @.str.115, ptr noundef %85)
  %86 = load i64, ptr %11, align 8, !tbaa !9
  %87 = icmp eq i64 %86, 0
  br i1 %87, label %88, label %154

88:                                               ; preds = %77
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = load i64, ptr %13, align 8, !tbaa !9
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %89, i64 noundef %90, ptr noundef %91)
  %92 = load ptr, ptr %17, align 8, !tbaa !5
  %93 = load i64, ptr %12, align 8, !tbaa !9
  %94 = load i64, ptr %13, align 8, !tbaa !9
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %92, i64 noundef %93, i64 noundef %94, ptr noundef %95)
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %96

96:                                               ; preds = %107, %88
  %97 = load i64, ptr %23, align 8, !tbaa !9
  %98 = load i64, ptr %12, align 8, !tbaa !9
  %99 = sub nsw i64 %98, 1
  %100 = icmp sle i64 %97, %99
  br i1 %100, label %101, label %110

101:                                              ; preds = %96
  %102 = load ptr, ptr %16, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !18
  %105 = load i64, ptr %23, align 8, !tbaa !9
  %106 = getelementptr inbounds double, ptr %104, i64 %105
  store double 0.000000e+00, ptr %106, align 8, !tbaa !11
  br label %107

107:                                              ; preds = %101
  %108 = load i64, ptr %23, align 8, !tbaa !9
  %109 = add nsw i64 %108, 1
  store i64 %109, ptr %23, align 8, !tbaa !9
  br label %96, !llvm.loop !19

110:                                              ; preds = %96
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %111

111:                                              ; preds = %149, %110
  %112 = load i64, ptr %23, align 8, !tbaa !9
  %113 = load i64, ptr %12, align 8, !tbaa !9
  %114 = sub nsw i64 %113, 1
  %115 = icmp sle i64 %112, %114
  br i1 %115, label %116, label %152

116:                                              ; preds = %111
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %145, %116
  %118 = load i64, ptr %24, align 8, !tbaa !9
  %119 = load i64, ptr %13, align 8, !tbaa !9
  %120 = sub nsw i64 %119, 1
  %121 = icmp sle i64 %118, %120
  br i1 %121, label %122, label %148

122:                                              ; preds = %117
  %123 = load i64, ptr %23, align 8, !tbaa !9
  %124 = load i64, ptr %24, align 8, !tbaa !9
  %125 = icmp eq i64 %123, %124
  br i1 %125, label %126, label %135

126:                                              ; preds = %122
  %127 = load ptr, ptr %17, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %127, i32 0, i32 6
  %129 = load ptr, ptr %128, align 8, !tbaa !18
  %130 = load i64, ptr %23, align 8, !tbaa !9
  %131 = getelementptr inbounds ptr, ptr %129, i64 %130
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = load i64, ptr %24, align 8, !tbaa !9
  %134 = getelementptr inbounds double, ptr %132, i64 %133
  store double 1.000000e+00, ptr %134, align 8, !tbaa !11
  br label %144

135:                                              ; preds = %122
  %136 = load ptr, ptr %17, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %136, i32 0, i32 6
  %138 = load ptr, ptr %137, align 8, !tbaa !18
  %139 = load i64, ptr %23, align 8, !tbaa !9
  %140 = getelementptr inbounds ptr, ptr %138, i64 %139
  %141 = load ptr, ptr %140, align 8, !tbaa !5
  %142 = load i64, ptr %24, align 8, !tbaa !9
  %143 = getelementptr inbounds double, ptr %141, i64 %142
  store double 0.000000e+00, ptr %143, align 8, !tbaa !11
  br label %144

144:                                              ; preds = %135, %126
  br label %145

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

148:                                              ; preds = %117
  br label %149

149:                                              ; preds = %148
  %150 = load i64, ptr %23, align 8, !tbaa !9
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %23, align 8, !tbaa !9
  br label %111, !llvm.loop !22

152:                                              ; preds = %111
  %153 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %153)
  store i32 1, ptr %29, align 4
  br label %303

154:                                              ; preds = %77
  %155 = load i64, ptr %12, align 8, !tbaa !9
  %156 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %155, ptr noundef %156)
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %157

157:                                              ; preds = %167, %154
  %158 = load i64, ptr %23, align 8, !tbaa !9
  %159 = load i64, ptr %12, align 8, !tbaa !9
  %160 = sub nsw i64 %159, 1
  %161 = icmp sle i64 %158, %160
  br i1 %161, label %162, label %170

162:                                              ; preds = %157
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %164 = load ptr, ptr %163, align 8, !tbaa !18
  %165 = load i64, ptr %23, align 8, !tbaa !9
  %166 = getelementptr inbounds double, ptr %164, i64 %165
  store double 0.000000e+00, ptr %166, align 8, !tbaa !11
  br label %167

167:                                              ; preds = %162
  %168 = load i64, ptr %23, align 8, !tbaa !9
  %169 = add nsw i64 %168, 1
  store i64 %169, ptr %23, align 8, !tbaa !9
  br label %157, !llvm.loop !23

170:                                              ; preds = %157
  %171 = load i64, ptr %11, align 8, !tbaa !9
  %172 = sitofp i64 %171 to double
  %173 = fdiv double 1.000000e+00, %172
  store double %173, ptr %26, align 8, !tbaa !11
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %174

174:                                              ; preds = %194, %170
  %175 = load i64, ptr %23, align 8, !tbaa !9
  %176 = load i64, ptr %11, align 8, !tbaa !9
  %177 = sub nsw i64 %176, 1
  %178 = icmp sle i64 %175, %177
  br i1 %178, label %179, label %197

179:                                              ; preds = %174
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %181 = load ptr, ptr %180, align 8, !tbaa !18
  %182 = getelementptr inbounds double, ptr %181, i64 0
  %183 = load ptr, ptr %10, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %183, i32 0, i32 6
  %185 = load ptr, ptr %184, align 8, !tbaa !18
  %186 = load i64, ptr %23, align 8, !tbaa !9
  %187 = getelementptr inbounds ptr, ptr %185, i64 %186
  %188 = load ptr, ptr %187, align 8, !tbaa !5
  %189 = getelementptr inbounds double, ptr %188, i64 0
  %190 = load i64, ptr %12, align 8, !tbaa !9
  %191 = sub nsw i64 %190, 1
  %192 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %191)
  %193 = load double, ptr %26, align 8, !tbaa !11
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %182, i64 noundef 1, ptr noundef %189, i64 noundef 1, i64 noundef %192, double noundef %193)
  br label %194

194:                                              ; preds = %179
  %195 = load i64, ptr %23, align 8, !tbaa !9
  %196 = add nsw i64 %195, 1
  store i64 %196, ptr %23, align 8, !tbaa !9
  br label %174, !llvm.loop !24

197:                                              ; preds = %174
  %198 = load i64, ptr %11, align 8, !tbaa !9
  %199 = load i64, ptr %12, align 8, !tbaa !9
  %200 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %20, i64 noundef %198, i64 noundef %199, ptr noundef %200)
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %201

201:                                              ; preds = %235, %197
  %202 = load i64, ptr %23, align 8, !tbaa !9
  %203 = load i64, ptr %11, align 8, !tbaa !9
  %204 = sub nsw i64 %203, 1
  %205 = icmp sle i64 %202, %204
  br i1 %205, label %206, label %238

206:                                              ; preds = %201
  %207 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %208 = load ptr, ptr %207, align 8, !tbaa !18
  %209 = load i64, ptr %23, align 8, !tbaa !9
  %210 = getelementptr inbounds ptr, ptr %208, i64 %209
  %211 = load ptr, ptr %210, align 8, !tbaa !5
  %212 = getelementptr inbounds double, ptr %211, i64 0
  %213 = load ptr, ptr %10, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %213, i32 0, i32 6
  %215 = load ptr, ptr %214, align 8, !tbaa !18
  %216 = load i64, ptr %23, align 8, !tbaa !9
  %217 = getelementptr inbounds ptr, ptr %215, i64 %216
  %218 = load ptr, ptr %217, align 8, !tbaa !5
  %219 = getelementptr inbounds double, ptr %218, i64 0
  %220 = load i64, ptr %12, align 8, !tbaa !9
  %221 = sub nsw i64 %220, 1
  %222 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %221)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %212, i64 noundef 1, ptr noundef %219, i64 noundef 1, i64 noundef %222)
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %224 = load ptr, ptr %223, align 8, !tbaa !18
  %225 = load i64, ptr %23, align 8, !tbaa !9
  %226 = getelementptr inbounds ptr, ptr %224, i64 %225
  %227 = load ptr, ptr %226, align 8, !tbaa !5
  %228 = getelementptr inbounds double, ptr %227, i64 0
  %229 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %230 = load ptr, ptr %229, align 8, !tbaa !18
  %231 = getelementptr inbounds double, ptr %230, i64 0
  %232 = load i64, ptr %12, align 8, !tbaa !9
  %233 = sub nsw i64 %232, 1
  %234 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %233)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %228, i64 noundef 1, ptr noundef %231, i64 noundef 1, i64 noundef %234)
  br label %235

235:                                              ; preds = %206
  %236 = load i64, ptr %23, align 8, !tbaa !9
  %237 = add nsw i64 %236, 1
  store i64 %237, ptr %23, align 8, !tbaa !9
  br label %201, !llvm.loop !25

238:                                              ; preds = %201
  %239 = load i64, ptr %12, align 8, !tbaa !9
  %240 = load i64, ptr %13, align 8, !tbaa !9
  %241 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl17eigsubspacecreateEllPNS_16eigsubspacestateEPNS_8ae_stateE(i64 noundef %239, i64 noundef %240, ptr noundef %27, ptr noundef %241)
  %242 = load double, ptr %14, align 8, !tbaa !11
  %243 = load i64, ptr %15, align 8, !tbaa !9
  %244 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl18eigsubspacesetcondEPNS_16eigsubspacestateEdlPNS_8ae_stateE(ptr noundef %27, double noundef %242, i64 noundef %243, ptr noundef %244)
  %245 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl19eigsubspaceoocstartEPNS_16eigsubspacestateElPNS_8ae_stateE(ptr noundef %27, i64 noundef 0, ptr noundef %245)
  br label %246

246:                                              ; preds = %249, %238
  %247 = load ptr, ptr %18, align 8, !tbaa !5
  %248 = call noundef zeroext i1 @_ZN11alglib_impl22eigsubspaceooccontinueEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef %27, ptr noundef %247)
  br i1 %248, label %249, label %269

249:                                              ; preds = %246
  %250 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %27, i32 0, i32 30
  %251 = load i64, ptr %250, align 8, !tbaa !26
  %252 = icmp eq i64 %251, 0
  %253 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %252, ptr noundef @.str.116, ptr noundef %253)
  %254 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %27, i32 0, i32 31
  %255 = load i64, ptr %254, align 8, !tbaa !33
  store i64 %255, ptr %25, align 8, !tbaa !9
  %256 = load i64, ptr %11, align 8, !tbaa !9
  %257 = load i64, ptr %25, align 8, !tbaa !9
  %258 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %21, i64 noundef %256, i64 noundef %257, ptr noundef %258)
  %259 = load i64, ptr %11, align 8, !tbaa !9
  %260 = load i64, ptr %25, align 8, !tbaa !9
  %261 = load i64, ptr %12, align 8, !tbaa !9
  %262 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %27, i32 0, i32 28
  %263 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef %259, i64 noundef %260, i64 noundef %261, double noundef 1.000000e+00, ptr noundef %20, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %262, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %21, i64 noundef 0, i64 noundef 0, ptr noundef %263)
  %264 = load i64, ptr %12, align 8, !tbaa !9
  %265 = load i64, ptr %25, align 8, !tbaa !9
  %266 = load i64, ptr %11, align 8, !tbaa !9
  %267 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %27, i32 0, i32 29
  %268 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef %264, i64 noundef %265, i64 noundef %266, double noundef 1.000000e+00, ptr noundef %20, i64 noundef 0, i64 noundef 0, i64 noundef 1, ptr noundef %21, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %267, i64 noundef 0, i64 noundef 0, ptr noundef %268)
  br label %246, !llvm.loop !34

269:                                              ; preds = %246
  %270 = load ptr, ptr %16, align 8, !tbaa !5
  %271 = load ptr, ptr %17, align 8, !tbaa !5
  %272 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl18eigsubspaceoocstopEPNS_16eigsubspacestateEPNS_9ae_vectorEPNS_9ae_matrixEPNS_17eigsubspacereportEPNS_8ae_stateE(ptr noundef %27, ptr noundef %270, ptr noundef %271, ptr noundef %28, ptr noundef %272)
  %273 = load i64, ptr %11, align 8, !tbaa !9
  %274 = icmp ne i64 %273, 1
  br i1 %274, label %275, label %301

275:                                              ; preds = %269
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %276

276:                                              ; preds = %297, %275
  %277 = load i64, ptr %23, align 8, !tbaa !9
  %278 = load i64, ptr %13, align 8, !tbaa !9
  %279 = sub nsw i64 %278, 1
  %280 = icmp sle i64 %277, %279
  br i1 %280, label %281, label %300

281:                                              ; preds = %276
  %282 = load ptr, ptr %16, align 8, !tbaa !5
  %283 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %282, i32 0, i32 4
  %284 = load ptr, ptr %283, align 8, !tbaa !18
  %285 = load i64, ptr %23, align 8, !tbaa !9
  %286 = getelementptr inbounds double, ptr %284, i64 %285
  %287 = load double, ptr %286, align 8, !tbaa !11
  %288 = load i64, ptr %11, align 8, !tbaa !9
  %289 = sub nsw i64 %288, 1
  %290 = sitofp i64 %289 to double
  %291 = fdiv double %287, %290
  %292 = load ptr, ptr %16, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %292, i32 0, i32 4
  %294 = load ptr, ptr %293, align 8, !tbaa !18
  %295 = load i64, ptr %23, align 8, !tbaa !9
  %296 = getelementptr inbounds double, ptr %294, i64 %295
  store double %291, ptr %296, align 8, !tbaa !11
  br label %297

297:                                              ; preds = %281
  %298 = load i64, ptr %23, align 8, !tbaa !9
  %299 = add nsw i64 %298, 1
  store i64 %299, ptr %23, align 8, !tbaa !9
  br label %276, !llvm.loop !35

300:                                              ; preds = %276
  br label %301

301:                                              ; preds = %300, %269
  %302 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %302)
  store i32 0, ptr %29, align 4
  br label %303

303:                                              ; preds = %301, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 2448, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  %304 = load i32, ptr %29, align 4
  switch i32 %304, label %306 [
    i32 0, label %305
    i32 1, label %305
  ]

305:                                              ; preds = %303, %303
  ret void

306:                                              ; preds = %303
  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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #3

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

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, 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_impl14ae_frame_leaveEPNS_8ae_stateE(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_impl8ae_v_subEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, 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_impl9ae_v_adddEPdlPKdlld(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 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_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

declare void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 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

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 = { 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 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !15, i64 32, !16, i64 40, !7, i64 72}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!14, !10, i64 8}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = !{!27, !10, i64 2160}
!27 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !10, i64 40, !10, i64 48, !15, i64 56, !15, i64 57, !28, i64 64, !15, i64 88, !29, i64 96, !14, i64 160, !14, i64 240, !14, i64 320, !14, i64 400, !14, i64 480, !14, i64 560, !14, i64 640, !14, i64 720, !14, i64 800, !29, i64 880, !29, i64 944, !29, i64 1008, !29, i64 1072, !29, i64 1136, !29, i64 1200, !30, i64 1264, !14, i64 2000, !14, i64 2080, !10, i64 2160, !10, i64 2168, !10, i64 2176, !31, i64 2184}
!28 = !{!"_ZTSN11alglib_impl10hqrndstateE", !10, i64 0, !10, i64 8, !10, i64 16}
!29 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !15, i64 16, !16, i64 24, !7, i64 56}
!30 = !{!"_ZTSN11alglib_impl9apbuffersE", !29, i64 0, !29, i64 64, !29, i64 128, !29, i64 192, !29, i64 256, !29, i64 320, !29, i64 384, !29, i64 448, !29, i64 512, !14, i64 576, !14, i64 656}
!31 = !{!"_ZTSN11alglib_impl10rcommstateE", !32, i64 0, !29, i64 8, !29, i64 72, !29, i64 136, !29, i64 200}
!32 = !{!"int", !7, i64 0}
!33 = !{!27, !10, i64 2168}
!34 = distinct !{!34, !20}
!35 = distinct !{!35, !20}


; 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::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::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::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::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.107 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [45 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_impl20pcatruncatedsubspaceEPKNS_9ae_matrixEllldlPNS_9ae_vectorEPS0_PNS_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::ae_matrix", align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::eigsubspacestate", align 8
  %15 = alloca %"struct.alglib_impl::eigsubspacereport", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 2448, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  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(80) %11, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %12, i8 0, i64 80, 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(2448) %14, i8 0, i64 2448, i1 false)
  store i64 0, ptr %15, 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_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, 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_impl22_eigsubspacestate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %14, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl23_eigsubspacereport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %15, ptr noundef %8, i1 noundef zeroext true)
  %16 = icmp sgt i64 %1, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.107, ptr noundef %8)
  %17 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.108, ptr noundef %8)
  %18 = icmp sgt i64 %3, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.109, ptr noundef %8)
  %19 = icmp sle i64 %3, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.110, ptr noundef %8)
  %20 = icmp sgt i64 %5, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.111, ptr noundef %8)
  %21 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef %8)
  br i1 %21, label %22, label %24

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

24:                                               ; preds = %22, %9
  %25 = phi i1 [ false, %9 ], [ %23, %22 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.112, ptr noundef %8)
  %26 = load i64, ptr %0, align 8, !tbaa !5
  %27 = icmp sge i64 %26, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef nonnull @.str.113, ptr noundef %8)
  %28 = getelementptr inbounds i8, ptr %0, i64 8
  %29 = load i64, ptr %28, align 8, !tbaa !13
  %30 = icmp sge i64 %29, %2
  %31 = icmp eq i64 %1, 0
  %32 = or i1 %31, %30
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef nonnull @.str.114, ptr noundef %8)
  %33 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, i64 noundef %2, ptr noundef %8)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %33, ptr noundef nonnull @.str.115, ptr noundef %8)
  br i1 %31, label %34, label %73

34:                                               ; preds = %24
  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 %17, label %.lr.ph156, label %._crit_edge163

.lr.ph156:                                        ; preds = %34
  %35 = getelementptr inbounds i8, ptr %6, i64 56
  %xtraiter181 = and i64 %2, 3
  %36 = icmp ult i64 %2, 4
  br i1 %36, label %.preheader132.unr-lcssa, label %.lr.ph156.new

.lr.ph156.new:                                    ; preds = %.lr.ph156
  %unroll_iter184 = and i64 %2, 9223372036854775804
  br label %60

.preheader132.unr-lcssa:                          ; preds = %60, %.lr.ph156
  %.0154.unr = phi i64 [ 0, %.lr.ph156 ], [ %72, %60 ]
  %lcmp.mod183.not = icmp eq i64 %xtraiter181, 0
  br i1 %lcmp.mod183.not, label %.preheader132, label %.epil.preheader180

.epil.preheader180:                               ; preds = %.preheader132.unr-lcssa, %.epil.preheader180
  %.0154.epil = phi i64 [ %39, %.epil.preheader180 ], [ %.0154.unr, %.preheader132.unr-lcssa ]
  %epil.iter182 = phi i64 [ %epil.iter182.next, %.epil.preheader180 ], [ 0, %.preheader132.unr-lcssa ]
  %37 = load ptr, ptr %35, align 8, !tbaa !14
  %38 = getelementptr inbounds double, ptr %37, i64 %.0154.epil
  store double 0.000000e+00, ptr %38, align 8, !tbaa !15
  %39 = add nuw nsw i64 %.0154.epil, 1
  %epil.iter182.next = add i64 %epil.iter182, 1
  %epil.iter182.cmp.not = icmp eq i64 %epil.iter182.next, %xtraiter181
  br i1 %epil.iter182.cmp.not, label %.preheader132, label %.epil.preheader180, !llvm.loop !17

.preheader132:                                    ; preds = %.epil.preheader180, %.preheader132.unr-lcssa
  br i1 %17, label %.preheader.lr.ph, label %._crit_edge163

.preheader.lr.ph:                                 ; preds = %.preheader132
  %40 = getelementptr inbounds i8, ptr %7, i64 72
  br i1 %18, label %.preheader.us.preheader, label %._crit_edge163

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter187 = and i64 %3, 1
  %41 = icmp eq i64 %3, 1
  %unroll_iter190 = and i64 %3, 9223372036854775806
  %lcmp.mod189.not = icmp eq i64 %xtraiter187, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge160.us
  %.1162.us = phi i64 [ %59, %._crit_edge160.us ], [ 0, %.preheader.us.preheader ]
  br i1 %41, label %._crit_edge160.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.0121158.us = phi i64 [ %53, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter191 = phi i64 [ %niter191.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %42 = icmp eq i64 %.1162.us, %.0121158.us
  %43 = load ptr, ptr %40, align 8, !tbaa !14
  %44 = getelementptr inbounds ptr, ptr %43, i64 %.1162.us
  %45 = load ptr, ptr %44, align 8, !tbaa !19
  %. = select i1 %42, double 1.000000e+00, double 0.000000e+00
  %46 = getelementptr inbounds double, ptr %45, i64 %.0121158.us
  store double %., ptr %46, align 8, !tbaa !15
  %47 = or disjoint i64 %.0121158.us, 1
  %48 = icmp eq i64 %.1162.us, %47
  %49 = load ptr, ptr %40, align 8, !tbaa !14
  %50 = getelementptr inbounds ptr, ptr %49, i64 %.1162.us
  %51 = load ptr, ptr %50, align 8, !tbaa !19
  %..1 = select i1 %48, double 1.000000e+00, double 0.000000e+00
  %52 = getelementptr inbounds double, ptr %51, i64 %47
  store double %..1, ptr %52, align 8, !tbaa !15
  %53 = add nuw nsw i64 %.0121158.us, 2
  %niter191.next.1 = add i64 %niter191, 2
  %niter191.ncmp.1 = icmp eq i64 %niter191.next.1, %unroll_iter190
  br i1 %niter191.ncmp.1, label %._crit_edge160.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !20

._crit_edge160.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.0121158.us.unr = phi i64 [ 0, %.preheader.us ], [ %53, %.preheader.us.new ]
  br i1 %lcmp.mod189.not, label %._crit_edge160.us, label %._crit_edge160.us.epilog-lcssa

._crit_edge160.us.epilog-lcssa:                   ; preds = %._crit_edge160.us.unr-lcssa
  %54 = icmp eq i64 %.1162.us, %.0121158.us.unr
  %55 = load ptr, ptr %40, align 8, !tbaa !14
  %56 = getelementptr inbounds ptr, ptr %55, i64 %.1162.us
  %57 = load ptr, ptr %56, align 8, !tbaa !19
  %..epil = select i1 %54, double 1.000000e+00, double 0.000000e+00
  %58 = getelementptr inbounds double, ptr %57, i64 %.0121158.us.unr
  store double %..epil, ptr %58, align 8, !tbaa !15
  br label %._crit_edge160.us

._crit_edge160.us:                                ; preds = %._crit_edge160.us.unr-lcssa, %._crit_edge160.us.epilog-lcssa
  %59 = add nuw nsw i64 %.1162.us, 1
  %exitcond170.not = icmp eq i64 %59, %2
  br i1 %exitcond170.not, label %._crit_edge163, label %.preheader.us, !llvm.loop !22

60:                                               ; preds = %60, %.lr.ph156.new
  %.0154 = phi i64 [ 0, %.lr.ph156.new ], [ %72, %60 ]
  %niter185 = phi i64 [ 0, %.lr.ph156.new ], [ %niter185.next.3, %60 ]
  %61 = load ptr, ptr %35, align 8, !tbaa !14
  %62 = getelementptr inbounds double, ptr %61, i64 %.0154
  store double 0.000000e+00, ptr %62, align 8, !tbaa !15
  %63 = or disjoint i64 %.0154, 1
  %64 = load ptr, ptr %35, align 8, !tbaa !14
  %65 = getelementptr inbounds double, ptr %64, i64 %63
  store double 0.000000e+00, ptr %65, align 8, !tbaa !15
  %66 = or disjoint i64 %.0154, 2
  %67 = load ptr, ptr %35, align 8, !tbaa !14
  %68 = getelementptr inbounds double, ptr %67, i64 %66
  store double 0.000000e+00, ptr %68, align 8, !tbaa !15
  %69 = or disjoint i64 %.0154, 3
  %70 = load ptr, ptr %35, align 8, !tbaa !14
  %71 = getelementptr inbounds double, ptr %70, i64 %69
  store double 0.000000e+00, ptr %71, align 8, !tbaa !15
  %72 = add nuw nsw i64 %.0154, 4
  %niter185.next.3 = add i64 %niter185, 4
  %niter185.ncmp.3 = icmp eq i64 %niter185.next.3, %unroll_iter184
  br i1 %niter185.ncmp.3, label %.preheader132.unr-lcssa, label %60, !llvm.loop !23

73:                                               ; preds = %24
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %2, ptr noundef %8)
  br i1 %17, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %73
  %74 = getelementptr inbounds i8, ptr %13, i64 56
  %xtraiter = and i64 %2, 3
  %75 = icmp ult i64 %2, 4
  br i1 %75, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

76:                                               ; preds = %76, %.lr.ph.new
  %.2136 = phi i64 [ 0, %.lr.ph.new ], [ %88, %76 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %76 ]
  %77 = load ptr, ptr %74, align 8, !tbaa !14
  %78 = getelementptr inbounds double, ptr %77, i64 %.2136
  store double 0.000000e+00, ptr %78, align 8, !tbaa !15
  %79 = or disjoint i64 %.2136, 1
  %80 = load ptr, ptr %74, align 8, !tbaa !14
  %81 = getelementptr inbounds double, ptr %80, i64 %79
  store double 0.000000e+00, ptr %81, align 8, !tbaa !15
  %82 = or disjoint i64 %.2136, 2
  %83 = load ptr, ptr %74, align 8, !tbaa !14
  %84 = getelementptr inbounds double, ptr %83, i64 %82
  store double 0.000000e+00, ptr %84, align 8, !tbaa !15
  %85 = or disjoint i64 %.2136, 3
  %86 = load ptr, ptr %74, align 8, !tbaa !14
  %87 = getelementptr inbounds double, ptr %86, i64 %85
  store double 0.000000e+00, ptr %87, align 8, !tbaa !15
  %88 = add nuw nsw i64 %.2136, 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 %._crit_edge.loopexit.unr-lcssa, label %76, !llvm.loop !24

._crit_edge.loopexit.unr-lcssa:                   ; preds = %76, %.lr.ph
  %.2136.unr = phi i64 [ 0, %.lr.ph ], [ %88, %76 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.2136.epil = phi i64 [ %91, %.epil.preheader ], [ %.2136.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %89 = load ptr, ptr %74, align 8, !tbaa !14
  %90 = getelementptr inbounds double, ptr %89, i64 %.2136.epil
  store double 0.000000e+00, ptr %90, align 8, !tbaa !15
  %91 = add nuw nsw i64 %.2136.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 %._crit_edge, label %.epil.preheader, !llvm.loop !25

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %73
  %92 = add nsw i64 %2, -1
  %93 = sitofp i64 %1 to double
  %94 = fdiv double 1.000000e+00, %93
  %.not.not126137 = icmp sgt i64 %1, 0
  br i1 %.not.not126137, label %.lr.ph140, label %._crit_edge141.thread

._crit_edge141.thread:                            ; preds = %._crit_edge
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, i64 noundef %2, ptr noundef %8)
  br label %._crit_edge146

.lr.ph140:                                        ; preds = %._crit_edge
  %95 = getelementptr inbounds i8, ptr %13, i64 56
  %96 = getelementptr inbounds i8, ptr %0, i64 72
  br label %97

97:                                               ; preds = %.lr.ph140, %97
  %.3138 = phi i64 [ 0, %.lr.ph140 ], [ %103, %97 ]
  %98 = load ptr, ptr %95, align 8, !tbaa !14
  %99 = load ptr, ptr %96, align 8, !tbaa !14
  %100 = getelementptr inbounds ptr, ptr %99, i64 %.3138
  %101 = load ptr, ptr %100, align 8, !tbaa !19
  %102 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %92)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %98, i64 noundef 1, ptr noundef %101, i64 noundef 1, i64 noundef %102, double noundef %94)
  %103 = add nuw nsw i64 %.3138, 1
  %exitcond165.not = icmp eq i64 %103, %1
  br i1 %exitcond165.not, label %._crit_edge141, label %97, !llvm.loop !26

._crit_edge141:                                   ; preds = %97
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, i64 noundef %2, ptr noundef %8)
  br i1 %.not.not126137, label %.lr.ph145, label %._crit_edge146

.lr.ph145:                                        ; preds = %._crit_edge141
  %104 = getelementptr inbounds i8, ptr %11, i64 72
  %105 = getelementptr inbounds i8, ptr %0, i64 72
  %106 = getelementptr inbounds i8, ptr %13, i64 56
  br label %107

107:                                              ; preds = %.lr.ph145, %107
  %.4143 = phi i64 [ 0, %.lr.ph145 ], [ %120, %107 ]
  %108 = load ptr, ptr %104, align 8, !tbaa !14
  %109 = getelementptr inbounds ptr, ptr %108, i64 %.4143
  %110 = load ptr, ptr %109, align 8, !tbaa !19
  %111 = load ptr, ptr %105, align 8, !tbaa !14
  %112 = getelementptr inbounds ptr, ptr %111, i64 %.4143
  %113 = load ptr, ptr %112, align 8, !tbaa !19
  %114 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %92)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %110, i64 noundef 1, ptr noundef %113, i64 noundef 1, i64 noundef %114)
  %115 = load ptr, ptr %104, align 8, !tbaa !14
  %116 = getelementptr inbounds ptr, ptr %115, i64 %.4143
  %117 = load ptr, ptr %116, align 8, !tbaa !19
  %118 = load ptr, ptr %106, align 8, !tbaa !14
  %119 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %92)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %117, i64 noundef 1, ptr noundef %118, i64 noundef 1, i64 noundef %119)
  %120 = add nuw nsw i64 %.4143, 1
  %exitcond166.not = icmp eq i64 %120, %1
  br i1 %exitcond166.not, label %._crit_edge146, label %107, !llvm.loop !27

._crit_edge146:                                   ; preds = %107, %._crit_edge141.thread, %._crit_edge141
  %121 = add nsw i64 %1, -1
  call void @_ZN11alglib_impl17eigsubspacecreateEllPNS_16eigsubspacestateEPNS_8ae_stateE(i64 noundef %2, i64 noundef %3, ptr noundef nonnull %14, ptr noundef %8)
  call void @_ZN11alglib_impl18eigsubspacesetcondEPNS_16eigsubspacestateEdlPNS_8ae_stateE(ptr noundef nonnull %14, double noundef %4, i64 noundef %5, ptr noundef %8)
  call void @_ZN11alglib_impl19eigsubspaceoocstartEPNS_16eigsubspacestateElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef 0, ptr noundef %8)
  %122 = call noundef zeroext i1 @_ZN11alglib_impl22eigsubspaceooccontinueEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef %8)
  br i1 %122, label %.lr.ph148, label %._crit_edge149

.lr.ph148:                                        ; preds = %._crit_edge146
  %123 = getelementptr inbounds i8, ptr %14, i64 2160
  %124 = getelementptr inbounds i8, ptr %14, i64 2168
  %125 = getelementptr inbounds i8, ptr %14, i64 2000
  %126 = getelementptr inbounds i8, ptr %14, i64 2080
  br label %127

127:                                              ; preds = %.lr.ph148, %127
  %128 = load i64, ptr %123, align 8, !tbaa !28
  %129 = icmp eq i64 %128, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %129, ptr noundef nonnull @.str.116, ptr noundef %8)
  %130 = load i64, ptr %124, align 8, !tbaa !35
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %1, i64 noundef %130, ptr noundef %8)
  call void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %130, i64 noundef %2, double noundef 1.000000e+00, ptr noundef nonnull %11, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %125, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, ptr noundef %8)
  call void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef %2, i64 noundef %130, i64 noundef %1, double noundef 1.000000e+00, ptr noundef nonnull %11, i64 noundef 0, i64 noundef 0, i64 noundef 1, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %126, i64 noundef 0, i64 noundef 0, ptr noundef %8)
  %131 = call noundef zeroext i1 @_ZN11alglib_impl22eigsubspaceooccontinueEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef %8)
  br i1 %131, label %127, label %._crit_edge149, !llvm.loop !36

._crit_edge149:                                   ; preds = %127, %._crit_edge146
  call void @_ZN11alglib_impl18eigsubspaceoocstopEPNS_16eigsubspacestateEPNS_9ae_vectorEPNS_9ae_matrixEPNS_17eigsubspacereportEPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %15, ptr noundef %8)
  %.not = icmp ne i64 %1, 1
  %or.cond = and i1 %.not, %18
  br i1 %or.cond, label %.lr.ph152, label %._crit_edge163

.lr.ph152:                                        ; preds = %._crit_edge149
  %132 = getelementptr inbounds i8, ptr %6, i64 56
  %133 = sitofp i64 %121 to double
  %xtraiter175 = and i64 %3, 3
  %134 = icmp ult i64 %3, 4
  br i1 %134, label %._crit_edge163.loopexit173.unr-lcssa, label %.lr.ph152.new

.lr.ph152.new:                                    ; preds = %.lr.ph152
  %unroll_iter178 = and i64 %3, 9223372036854775804
  br label %135

135:                                              ; preds = %135, %.lr.ph152.new
  %.5151 = phi i64 [ 0, %.lr.ph152.new ], [ %155, %135 ]
  %niter179 = phi i64 [ 0, %.lr.ph152.new ], [ %niter179.next.3, %135 ]
  %136 = load ptr, ptr %132, align 8, !tbaa !14
  %137 = getelementptr inbounds double, ptr %136, i64 %.5151
  %138 = load double, ptr %137, align 8, !tbaa !15
  %139 = fdiv double %138, %133
  store double %139, ptr %137, align 8, !tbaa !15
  %140 = or disjoint i64 %.5151, 1
  %141 = load ptr, ptr %132, align 8, !tbaa !14
  %142 = getelementptr inbounds double, ptr %141, i64 %140
  %143 = load double, ptr %142, align 8, !tbaa !15
  %144 = fdiv double %143, %133
  store double %144, ptr %142, align 8, !tbaa !15
  %145 = or disjoint i64 %.5151, 2
  %146 = load ptr, ptr %132, align 8, !tbaa !14
  %147 = getelementptr inbounds double, ptr %146, i64 %145
  %148 = load double, ptr %147, align 8, !tbaa !15
  %149 = fdiv double %148, %133
  store double %149, ptr %147, align 8, !tbaa !15
  %150 = or disjoint i64 %.5151, 3
  %151 = load ptr, ptr %132, align 8, !tbaa !14
  %152 = getelementptr inbounds double, ptr %151, i64 %150
  %153 = load double, ptr %152, align 8, !tbaa !15
  %154 = fdiv double %153, %133
  store double %154, ptr %152, align 8, !tbaa !15
  %155 = add nuw nsw i64 %.5151, 4
  %niter179.next.3 = add i64 %niter179, 4
  %niter179.ncmp.3 = icmp eq i64 %niter179.next.3, %unroll_iter178
  br i1 %niter179.ncmp.3, label %._crit_edge163.loopexit173.unr-lcssa, label %135, !llvm.loop !37

._crit_edge163.loopexit173.unr-lcssa:             ; preds = %135, %.lr.ph152
  %.5151.unr = phi i64 [ 0, %.lr.ph152 ], [ %155, %135 ]
  %lcmp.mod177.not = icmp eq i64 %xtraiter175, 0
  br i1 %lcmp.mod177.not, label %._crit_edge163, label %.epil.preheader174

.epil.preheader174:                               ; preds = %._crit_edge163.loopexit173.unr-lcssa, %.epil.preheader174
  %.5151.epil = phi i64 [ %160, %.epil.preheader174 ], [ %.5151.unr, %._crit_edge163.loopexit173.unr-lcssa ]
  %epil.iter176 = phi i64 [ %epil.iter176.next, %.epil.preheader174 ], [ 0, %._crit_edge163.loopexit173.unr-lcssa ]
  %156 = load ptr, ptr %132, align 8, !tbaa !14
  %157 = getelementptr inbounds double, ptr %156, i64 %.5151.epil
  %158 = load double, ptr %157, align 8, !tbaa !15
  %159 = fdiv double %158, %133
  store double %159, ptr %157, align 8, !tbaa !15
  %160 = add nuw nsw i64 %.5151.epil, 1
  %epil.iter176.next = add i64 %epil.iter176, 1
  %epil.iter176.cmp.not = icmp eq i64 %epil.iter176.next, %xtraiter175
  br i1 %epil.iter176.cmp.not, label %._crit_edge163, label %.epil.preheader174, !llvm.loop !38

._crit_edge163:                                   ; preds = %._crit_edge163.loopexit173.unr-lcssa, %.epil.preheader174, %._crit_edge160.us, %._crit_edge149, %.preheader132, %.preheader.lr.ph, %34
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 2448, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) 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 noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, 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_impl14ae_frame_leaveEPNS_8ae_stateE(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_impl8ae_v_subEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, 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_impl9ae_v_adddEPdlPKdlld(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 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_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 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

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 = { 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, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!8, !8, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = !{!12, !12, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}
!28 = !{!29, !7, i64 2160}
!29 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !16, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !10, i64 57, !30, i64 64, !10, i64 88, !31, i64 96, !6, i64 160, !6, i64 240, !6, i64 320, !6, i64 400, !6, i64 480, !6, i64 560, !6, i64 640, !6, i64 720, !6, i64 800, !31, i64 880, !31, i64 944, !31, i64 1008, !31, i64 1072, !31, i64 1136, !31, i64 1200, !32, i64 1264, !6, i64 2000, !6, i64 2080, !7, i64 2160, !7, i64 2168, !7, i64 2176, !33, i64 2184}
!30 = !{!"_ZTSN11alglib_impl10hqrndstateE", !7, i64 0, !7, i64 8, !7, i64 16}
!31 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!32 = !{!"_ZTSN11alglib_impl9apbuffersE", !31, i64 0, !31, i64 64, !31, i64 128, !31, i64 192, !31, i64 256, !31, i64 320, !31, i64 384, !31, i64 448, !31, i64 512, !6, i64 576, !6, i64 656}
!33 = !{!"_ZTSN11alglib_impl10rcommstateE", !34, i64 0, !31, i64 8, !31, i64 72, !31, i64 136, !31, i64 200}
!34 = !{!"int", !8, i64 0}
!35 = !{!29, !7, i64 2168}
!36 = distinct !{!36, !21}
!37 = distinct !{!37, !21}
!38 = distinct !{!38, !18}


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