; 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::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::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.75 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.83 = 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_impl20pcatruncatedsubspaceEPNS_9ae_matrixEllldlPNS_9ae_vectorES1_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 2384, 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 2384, 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.75, 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.76, 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.77, 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.78, 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.79, 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.80, 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.81, 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.82, ptr noundef %79)
  %80 = load i64, ptr %11, align 8, !tbaa !9
  %81 = icmp eq i64 %80, 0
  br i1 %81, label %82, label %148

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

90:                                               ; preds = %101, %82
  %91 = load i64, ptr %23, align 8, !tbaa !9
  %92 = load i64, ptr %12, align 8, !tbaa !9
  %93 = sub nsw i64 %92, 1
  %94 = icmp sle i64 %91, %93
  br i1 %94, label %95, label %104

95:                                               ; preds = %90
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %96, i32 0, i32 4
  %98 = load ptr, ptr %97, align 8, !tbaa !18
  %99 = load i64, ptr %23, align 8, !tbaa !9
  %100 = getelementptr inbounds double, ptr %98, i64 %99
  store double 0.000000e+00, ptr %100, align 8, !tbaa !11
  br label %101

101:                                              ; preds = %95
  %102 = load i64, ptr %23, align 8, !tbaa !9
  %103 = add nsw i64 %102, 1
  store i64 %103, ptr %23, align 8, !tbaa !9
  br label %90, !llvm.loop !19

104:                                              ; preds = %90
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %105

105:                                              ; preds = %143, %104
  %106 = load i64, ptr %23, align 8, !tbaa !9
  %107 = load i64, ptr %12, align 8, !tbaa !9
  %108 = sub nsw i64 %107, 1
  %109 = icmp sle i64 %106, %108
  br i1 %109, label %110, label %146

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

111:                                              ; preds = %139, %110
  %112 = load i64, ptr %24, align 8, !tbaa !9
  %113 = load i64, ptr %13, align 8, !tbaa !9
  %114 = sub nsw i64 %113, 1
  %115 = icmp sle i64 %112, %114
  br i1 %115, label %116, label %142

116:                                              ; preds = %111
  %117 = load i64, ptr %23, align 8, !tbaa !9
  %118 = load i64, ptr %24, align 8, !tbaa !9
  %119 = icmp eq i64 %117, %118
  br i1 %119, label %120, label %129

120:                                              ; preds = %116
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %121, i32 0, i32 6
  %123 = load ptr, ptr %122, align 8, !tbaa !18
  %124 = load i64, ptr %23, align 8, !tbaa !9
  %125 = getelementptr inbounds ptr, ptr %123, i64 %124
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = load i64, ptr %24, align 8, !tbaa !9
  %128 = getelementptr inbounds double, ptr %126, i64 %127
  store double 1.000000e+00, ptr %128, align 8, !tbaa !11
  br label %138

129:                                              ; preds = %116
  %130 = load ptr, ptr %17, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %130, i32 0, i32 6
  %132 = load ptr, ptr %131, align 8, !tbaa !18
  %133 = load i64, ptr %23, align 8, !tbaa !9
  %134 = getelementptr inbounds ptr, ptr %132, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = load i64, ptr %24, align 8, !tbaa !9
  %137 = getelementptr inbounds double, ptr %135, i64 %136
  store double 0.000000e+00, ptr %137, align 8, !tbaa !11
  br label %138

138:                                              ; preds = %129, %120
  br label %139

139:                                              ; preds = %138
  %140 = load i64, ptr %24, align 8, !tbaa !9
  %141 = add nsw i64 %140, 1
  store i64 %141, ptr %24, align 8, !tbaa !9
  br label %111, !llvm.loop !21

142:                                              ; preds = %111
  br label %143

143:                                              ; preds = %142
  %144 = load i64, ptr %23, align 8, !tbaa !9
  %145 = add nsw i64 %144, 1
  store i64 %145, ptr %23, align 8, !tbaa !9
  br label %105, !llvm.loop !22

146:                                              ; preds = %105
  %147 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %147)
  store i32 1, ptr %29, align 4
  br label %297

148:                                              ; preds = %77
  %149 = load i64, ptr %12, align 8, !tbaa !9
  %150 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %149, ptr noundef %150)
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %161, %148
  %152 = load i64, ptr %23, align 8, !tbaa !9
  %153 = load i64, ptr %12, align 8, !tbaa !9
  %154 = sub nsw i64 %153, 1
  %155 = icmp sle i64 %152, %154
  br i1 %155, label %156, label %164

156:                                              ; preds = %151
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %158 = load ptr, ptr %157, align 8, !tbaa !18
  %159 = load i64, ptr %23, align 8, !tbaa !9
  %160 = getelementptr inbounds double, ptr %158, i64 %159
  store double 0.000000e+00, ptr %160, align 8, !tbaa !11
  br label %161

161:                                              ; preds = %156
  %162 = load i64, ptr %23, align 8, !tbaa !9
  %163 = add nsw i64 %162, 1
  store i64 %163, ptr %23, align 8, !tbaa !9
  br label %151, !llvm.loop !23

164:                                              ; preds = %151
  %165 = load i64, ptr %11, align 8, !tbaa !9
  %166 = sitofp i64 %165 to double
  %167 = fdiv double 1.000000e+00, %166
  store double %167, ptr %26, align 8, !tbaa !11
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %168

168:                                              ; preds = %188, %164
  %169 = load i64, ptr %23, align 8, !tbaa !9
  %170 = load i64, ptr %11, align 8, !tbaa !9
  %171 = sub nsw i64 %170, 1
  %172 = icmp sle i64 %169, %171
  br i1 %172, label %173, label %191

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

188:                                              ; preds = %173
  %189 = load i64, ptr %23, align 8, !tbaa !9
  %190 = add nsw i64 %189, 1
  store i64 %190, ptr %23, align 8, !tbaa !9
  br label %168, !llvm.loop !24

191:                                              ; preds = %168
  %192 = load i64, ptr %11, align 8, !tbaa !9
  %193 = load i64, ptr %12, align 8, !tbaa !9
  %194 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %20, i64 noundef %192, i64 noundef %193, ptr noundef %194)
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %195

195:                                              ; preds = %229, %191
  %196 = load i64, ptr %23, align 8, !tbaa !9
  %197 = load i64, ptr %11, align 8, !tbaa !9
  %198 = sub nsw i64 %197, 1
  %199 = icmp sle i64 %196, %198
  br i1 %199, label %200, label %232

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

229:                                              ; preds = %200
  %230 = load i64, ptr %23, align 8, !tbaa !9
  %231 = add nsw i64 %230, 1
  store i64 %231, ptr %23, align 8, !tbaa !9
  br label %195, !llvm.loop !25

232:                                              ; preds = %195
  %233 = load i64, ptr %12, align 8, !tbaa !9
  %234 = load i64, ptr %13, align 8, !tbaa !9
  %235 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl17eigsubspacecreateEllPNS_16eigsubspacestateEPNS_8ae_stateE(i64 noundef %233, i64 noundef %234, ptr noundef %27, ptr noundef %235)
  %236 = load double, ptr %14, align 8, !tbaa !11
  %237 = load i64, ptr %15, align 8, !tbaa !9
  %238 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl18eigsubspacesetcondEPNS_16eigsubspacestateEdlPNS_8ae_stateE(ptr noundef %27, double noundef %236, i64 noundef %237, ptr noundef %238)
  %239 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl19eigsubspaceoocstartEPNS_16eigsubspacestateElPNS_8ae_stateE(ptr noundef %27, i64 noundef 0, ptr noundef %239)
  br label %240

240:                                              ; preds = %243, %232
  %241 = load ptr, ptr %18, align 8, !tbaa !5
  %242 = call noundef zeroext i1 @_ZN11alglib_impl22eigsubspaceooccontinueEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef %27, ptr noundef %241)
  br i1 %242, label %243, label %263

243:                                              ; preds = %240
  %244 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %27, i32 0, i32 29
  %245 = load i64, ptr %244, align 8, !tbaa !26
  %246 = icmp eq i64 %245, 0
  %247 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %246, ptr noundef @.str.83, ptr noundef %247)
  %248 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %27, i32 0, i32 30
  %249 = load i64, ptr %248, align 8, !tbaa !33
  store i64 %249, ptr %25, align 8, !tbaa !9
  %250 = load i64, ptr %11, align 8, !tbaa !9
  %251 = load i64, ptr %25, align 8, !tbaa !9
  %252 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %21, i64 noundef %250, i64 noundef %251, ptr noundef %252)
  %253 = load i64, ptr %11, align 8, !tbaa !9
  %254 = load i64, ptr %25, align 8, !tbaa !9
  %255 = load i64, ptr %12, align 8, !tbaa !9
  %256 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %27, i32 0, i32 27
  %257 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %253, i64 noundef %254, i64 noundef %255, double noundef 1.000000e+00, ptr noundef %20, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %256, 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 %257)
  %258 = load i64, ptr %12, align 8, !tbaa !9
  %259 = load i64, ptr %25, align 8, !tbaa !9
  %260 = load i64, ptr %11, align 8, !tbaa !9
  %261 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %27, i32 0, i32 28
  %262 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %258, i64 noundef %259, i64 noundef %260, 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 %261, i64 noundef 0, i64 noundef 0, ptr noundef %262)
  br label %240, !llvm.loop !34

263:                                              ; preds = %240
  %264 = load ptr, ptr %16, align 8, !tbaa !5
  %265 = load ptr, ptr %17, align 8, !tbaa !5
  %266 = 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 %264, ptr noundef %265, ptr noundef %28, ptr noundef %266)
  %267 = load i64, ptr %11, align 8, !tbaa !9
  %268 = icmp ne i64 %267, 1
  br i1 %268, label %269, label %295

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

270:                                              ; preds = %291, %269
  %271 = load i64, ptr %23, align 8, !tbaa !9
  %272 = load i64, ptr %13, align 8, !tbaa !9
  %273 = sub nsw i64 %272, 1
  %274 = icmp sle i64 %271, %273
  br i1 %274, label %275, label %294

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

291:                                              ; preds = %275
  %292 = load i64, ptr %23, align 8, !tbaa !9
  %293 = add nsw i64 %292, 1
  store i64 %293, ptr %23, align 8, !tbaa !9
  br label %270, !llvm.loop !35

294:                                              ; preds = %270
  br label %295

295:                                              ; preds = %294, %263
  %296 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %296)
  store i32 0, ptr %29, align 4
  br label %297

297:                                              ; preds = %295, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 2384, 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
  %298 = load i32, ptr %29, align 4
  switch i32 %298, label %300 [
    i32 0, label %299
    i32 1, label %299
  ]

299:                                              ; preds = %297, %297
  ret void

300:                                              ; preds = %297
  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 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_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_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_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 2096}
!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, !30, i64 1200, !14, i64 1936, !14, i64 2016, !10, i64 2096, !10, i64 2104, !10, i64 2112, !31, i64 2120}
!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 2104}
!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::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.75 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.83 = 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_impl20pcatruncatedsubspaceEPNS_9ae_matrixEllldlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr nocapture noundef readonly %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 2384, 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(2384) %14, i8 0, i64 2384, 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.75, ptr noundef %8)
  %17 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.76, ptr noundef %8)
  %18 = icmp sgt i64 %3, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.77, ptr noundef %8)
  %19 = icmp sle i64 %3, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.78, ptr noundef %8)
  %20 = icmp sgt i64 %5, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.79, 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.80, 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.81, 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.82, ptr noundef %8)
  br i1 %31, label %33, label %72

33:                                               ; 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.ph151, label %._crit_edge158

.lr.ph151:                                        ; preds = %33
  %34 = getelementptr inbounds i8, ptr %6, i64 56
  %xtraiter176 = and i64 %2, 3
  %35 = icmp ult i64 %2, 4
  br i1 %35, label %.preheader127.unr-lcssa, label %.lr.ph151.new

.lr.ph151.new:                                    ; preds = %.lr.ph151
  %unroll_iter179 = and i64 %2, 9223372036854775804
  br label %59

.preheader127.unr-lcssa:                          ; preds = %59, %.lr.ph151
  %.0149.unr = phi i64 [ 0, %.lr.ph151 ], [ %71, %59 ]
  %lcmp.mod178.not = icmp eq i64 %xtraiter176, 0
  br i1 %lcmp.mod178.not, label %.preheader127, label %.epil.preheader175

.epil.preheader175:                               ; preds = %.preheader127.unr-lcssa, %.epil.preheader175
  %.0149.epil = phi i64 [ %38, %.epil.preheader175 ], [ %.0149.unr, %.preheader127.unr-lcssa ]
  %epil.iter177 = phi i64 [ %epil.iter177.next, %.epil.preheader175 ], [ 0, %.preheader127.unr-lcssa ]
  %36 = load ptr, ptr %34, align 8, !tbaa !14
  %37 = getelementptr inbounds double, ptr %36, i64 %.0149.epil
  store double 0.000000e+00, ptr %37, align 8, !tbaa !15
  %38 = add nuw nsw i64 %.0149.epil, 1
  %epil.iter177.next = add i64 %epil.iter177, 1
  %epil.iter177.cmp.not = icmp eq i64 %epil.iter177.next, %xtraiter176
  br i1 %epil.iter177.cmp.not, label %.preheader127, label %.epil.preheader175, !llvm.loop !17

.preheader127:                                    ; preds = %.epil.preheader175, %.preheader127.unr-lcssa
  br i1 %17, label %.preheader.lr.ph, label %._crit_edge158

.preheader.lr.ph:                                 ; preds = %.preheader127
  %39 = getelementptr inbounds i8, ptr %7, i64 72
  br i1 %18, label %.preheader.us.preheader, label %._crit_edge158

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter182 = and i64 %3, 1
  %40 = icmp eq i64 %3, 1
  %unroll_iter185 = and i64 %3, 9223372036854775806
  %lcmp.mod184.not = icmp eq i64 %xtraiter182, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge155.us
  %.1157.us = phi i64 [ %58, %._crit_edge155.us ], [ 0, %.preheader.us.preheader ]
  br i1 %40, label %._crit_edge155.us.unr-lcssa, label %.preheader.us.new

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

._crit_edge155.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.0116153.us.unr = phi i64 [ 0, %.preheader.us ], [ %52, %.preheader.us.new ]
  br i1 %lcmp.mod184.not, label %._crit_edge155.us, label %._crit_edge155.us.epilog-lcssa

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

._crit_edge155.us:                                ; preds = %._crit_edge155.us.unr-lcssa, %._crit_edge155.us.epilog-lcssa
  %58 = add nuw nsw i64 %.1157.us, 1
  %exitcond165.not = icmp eq i64 %58, %2
  br i1 %exitcond165.not, label %._crit_edge158, label %.preheader.us, !llvm.loop !22

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

72:                                               ; 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 = %72
  %73 = getelementptr inbounds i8, ptr %13, i64 56
  %xtraiter = and i64 %2, 3
  %74 = icmp ult i64 %2, 4
  br i1 %74, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

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

._crit_edge.loopexit.unr-lcssa:                   ; preds = %75, %.lr.ph
  %.2131.unr = phi i64 [ 0, %.lr.ph ], [ %87, %75 ]
  %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
  %.2131.epil = phi i64 [ %90, %.epil.preheader ], [ %.2131.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %88 = load ptr, ptr %73, align 8, !tbaa !14
  %89 = getelementptr inbounds double, ptr %88, i64 %.2131.epil
  store double 0.000000e+00, ptr %89, align 8, !tbaa !15
  %90 = add nuw nsw i64 %.2131.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, %72
  %91 = add nsw i64 %2, -1
  %92 = sitofp i64 %1 to double
  %93 = fdiv double 1.000000e+00, %92
  %.not.not121132 = icmp sgt i64 %1, 0
  br i1 %.not.not121132, label %.lr.ph135, label %._crit_edge136.thread

._crit_edge136.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_edge141

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

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

._crit_edge136:                                   ; preds = %96
  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.not121132, label %.lr.ph140, label %._crit_edge141

.lr.ph140:                                        ; preds = %._crit_edge136
  %103 = getelementptr inbounds i8, ptr %11, i64 72
  %104 = getelementptr inbounds i8, ptr %0, i64 72
  %105 = getelementptr inbounds i8, ptr %13, i64 56
  br label %106

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

._crit_edge141:                                   ; preds = %106, %._crit_edge136.thread, %._crit_edge136
  %120 = 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)
  %121 = call noundef zeroext i1 @_ZN11alglib_impl22eigsubspaceooccontinueEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef %8)
  br i1 %121, label %.lr.ph143, label %._crit_edge144

.lr.ph143:                                        ; preds = %._crit_edge141
  %122 = getelementptr inbounds i8, ptr %14, i64 2096
  %123 = getelementptr inbounds i8, ptr %14, i64 2104
  %124 = getelementptr inbounds i8, ptr %14, i64 1936
  %125 = getelementptr inbounds i8, ptr %14, i64 2016
  br label %126

126:                                              ; preds = %.lr.ph143, %126
  %127 = load i64, ptr %122, align 8, !tbaa !28
  %128 = icmp eq i64 %127, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %128, ptr noundef nonnull @.str.83, ptr noundef %8)
  %129 = load i64, ptr %123, align 8, !tbaa !35
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %1, i64 noundef %129, ptr noundef %8)
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %129, i64 noundef %2, double noundef 1.000000e+00, ptr noundef nonnull %11, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %124, 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_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %2, i64 noundef %129, 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 %125, i64 noundef 0, i64 noundef 0, ptr noundef %8)
  %130 = call noundef zeroext i1 @_ZN11alglib_impl22eigsubspaceooccontinueEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef %8)
  br i1 %130, label %126, label %._crit_edge144, !llvm.loop !36

._crit_edge144:                                   ; preds = %126, %._crit_edge141
  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.ph147, label %._crit_edge158

.lr.ph147:                                        ; preds = %._crit_edge144
  %131 = getelementptr inbounds i8, ptr %6, i64 56
  %132 = sitofp i64 %120 to double
  %xtraiter170 = and i64 %3, 3
  %133 = icmp ult i64 %3, 4
  br i1 %133, label %._crit_edge158.loopexit168.unr-lcssa, label %.lr.ph147.new

.lr.ph147.new:                                    ; preds = %.lr.ph147
  %unroll_iter173 = and i64 %3, 9223372036854775804
  br label %134

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

._crit_edge158.loopexit168.unr-lcssa:             ; preds = %134, %.lr.ph147
  %.5146.unr = phi i64 [ 0, %.lr.ph147 ], [ %154, %134 ]
  %lcmp.mod172.not = icmp eq i64 %xtraiter170, 0
  br i1 %lcmp.mod172.not, label %._crit_edge158, label %.epil.preheader169

.epil.preheader169:                               ; preds = %._crit_edge158.loopexit168.unr-lcssa, %.epil.preheader169
  %.5146.epil = phi i64 [ %159, %.epil.preheader169 ], [ %.5146.unr, %._crit_edge158.loopexit168.unr-lcssa ]
  %epil.iter171 = phi i64 [ %epil.iter171.next, %.epil.preheader169 ], [ 0, %._crit_edge158.loopexit168.unr-lcssa ]
  %155 = load ptr, ptr %131, align 8, !tbaa !14
  %156 = getelementptr inbounds double, ptr %155, i64 %.5146.epil
  %157 = load double, ptr %156, align 8, !tbaa !15
  %158 = fdiv double %157, %132
  store double %158, ptr %156, align 8, !tbaa !15
  %159 = add nuw nsw i64 %.5146.epil, 1
  %epil.iter171.next = add i64 %epil.iter171, 1
  %epil.iter171.cmp.not = icmp eq i64 %epil.iter171.next, %xtraiter170
  br i1 %epil.iter171.cmp.not, label %._crit_edge158, label %.epil.preheader169, !llvm.loop !38

._crit_edge158:                                   ; preds = %._crit_edge158.loopexit168.unr-lcssa, %.epil.preheader169, %._crit_edge155.us, %._crit_edge144, %.preheader127, %.preheader.lr.ph, %33
  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 2384, 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 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_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_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_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 2096}
!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, !32, i64 1200, !6, i64 1936, !6, i64 2016, !7, i64 2096, !7, i64 2104, !7, i64 2112, !33, i64 2120}
!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 2104}
!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,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass