; 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::linearmodel" = type { %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::lrreport" = type { %"struct.alglib_impl::ae_matrix", double, double, double, double, double, double, i64, %"struct.alglib_impl::ae_vector" }

@.str.316 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.317 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.318 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.319 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.320 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.321 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.322 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.323 = external hidden unnamed_addr constant [18 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl8lrbuildsEPKNS_9ae_matrixEPKNS_9ae_vectorEllPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.alglib_impl::ae_frame", align 8
  %16 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca double, align 8
  %23 = alloca i64, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !9
  store i64 %3, ptr %11, align 8, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 8, ptr %27) #4
  %28 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %28, ptr noundef %15)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_linearmodel_clearEPv(ptr noundef %29)
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15_lrreport_clearEPv(ptr noundef %30)
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %31, i1 noundef zeroext true)
  %32 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 3, ptr noundef %32, i1 noundef zeroext true)
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 3, ptr noundef %33, i1 noundef zeroext true)
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 3, ptr noundef %34, i1 noundef zeroext true)
  %35 = load i64, ptr %11, align 8, !tbaa !9
  %36 = icmp sge i64 %35, 1
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef @.str.316, ptr noundef %37)
  %38 = load i64, ptr %10, align 8, !tbaa !9
  %39 = load i64, ptr %11, align 8, !tbaa !9
  %40 = add nsw i64 %39, 1
  %41 = icmp sgt i64 %38, %40
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef @.str.317, ptr noundef %42)
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %43, i32 0, i32 0
  %45 = load i64, ptr %44, align 8, !tbaa !11
  %46 = load i64, ptr %10, align 8, !tbaa !9
  %47 = icmp sge i64 %45, %46
  %48 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %47, ptr noundef @.str.318, ptr noundef %48)
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 1
  %51 = load i64, ptr %50, align 8, !tbaa !15
  %52 = load i64, ptr %11, align 8, !tbaa !9
  %53 = add nsw i64 %52, 1
  %54 = icmp sge i64 %51, %53
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %54, ptr noundef @.str.319, ptr noundef %55)
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %56, i32 0, i32 0
  %58 = load i64, ptr %57, align 8, !tbaa !16
  %59 = load i64, ptr %10, align 8, !tbaa !9
  %60 = icmp sge i64 %58, %59
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %60, ptr noundef @.str.320, ptr noundef %61)
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = load i64, ptr %10, align 8, !tbaa !9
  %64 = load i64, ptr %11, align 8, !tbaa !9
  %65 = add nsw i64 %64, 1
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %62, i64 noundef %63, i64 noundef %65, ptr noundef %66)
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %67, ptr noundef @.str.321, ptr noundef %68)
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = load i64, ptr %10, align 8, !tbaa !9
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %69, i64 noundef %70, ptr noundef %71)
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %72, ptr noundef @.str.322, ptr noundef %73)
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %74

74:                                               ; preds = %88, %7
  %75 = load i64, ptr %20, align 8, !tbaa !9
  %76 = load i64, ptr %10, align 8, !tbaa !9
  %77 = sub nsw i64 %76, 1
  %78 = icmp sle i64 %75, %77
  br i1 %78, label %79, label %91

79:                                               ; preds = %74
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %80, i32 0, i32 4
  %82 = load ptr, ptr %81, align 8, !tbaa !18
  %83 = load i64, ptr %20, align 8, !tbaa !9
  %84 = getelementptr inbounds double, ptr %82, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !19
  %86 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %85, double noundef 0.000000e+00)
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %86, ptr noundef @.str.323, ptr noundef %87)
  br label %88

88:                                               ; preds = %79
  %89 = load i64, ptr %20, align 8, !tbaa !9
  %90 = add nsw i64 %89, 1
  store i64 %90, ptr %20, align 8, !tbaa !9
  br label %74, !llvm.loop !21

91:                                               ; preds = %74
  %92 = load i64, ptr %10, align 8, !tbaa !9
  %93 = sub nsw i64 %92, 1
  %94 = add nsw i64 %93, 1
  %95 = load i64, ptr %11, align 8, !tbaa !9
  %96 = add nsw i64 %95, 1
  %97 = add nsw i64 %96, 1
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %16, i64 noundef %94, i64 noundef %97, ptr noundef %98)
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %99

99:                                               ; preds = %145, %91
  %100 = load i64, ptr %20, align 8, !tbaa !9
  %101 = load i64, ptr %10, align 8, !tbaa !9
  %102 = sub nsw i64 %101, 1
  %103 = icmp sle i64 %100, %102
  br i1 %103, label %104, label %148

104:                                              ; preds = %99
  %105 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %106 = load ptr, ptr %105, align 8, !tbaa !18
  %107 = load i64, ptr %20, align 8, !tbaa !9
  %108 = getelementptr inbounds ptr, ptr %106, i64 %107
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = getelementptr inbounds double, ptr %109, i64 0
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %111, i32 0, i32 6
  %113 = load ptr, ptr %112, align 8, !tbaa !18
  %114 = load i64, ptr %20, align 8, !tbaa !9
  %115 = getelementptr inbounds ptr, ptr %113, i64 %114
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = getelementptr inbounds double, ptr %116, i64 0
  %118 = load i64, ptr %11, align 8, !tbaa !9
  %119 = sub nsw i64 %118, 1
  %120 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %119)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %110, i64 noundef 1, ptr noundef %117, i64 noundef 1, i64 noundef %120)
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %122 = load ptr, ptr %121, align 8, !tbaa !18
  %123 = load i64, ptr %20, align 8, !tbaa !9
  %124 = getelementptr inbounds ptr, ptr %122, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = load i64, ptr %11, align 8, !tbaa !9
  %127 = getelementptr inbounds double, ptr %125, i64 %126
  store double 1.000000e+00, ptr %127, align 8, !tbaa !19
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %128, i32 0, i32 6
  %130 = load ptr, ptr %129, align 8, !tbaa !18
  %131 = load i64, ptr %20, align 8, !tbaa !9
  %132 = getelementptr inbounds ptr, ptr %130, i64 %131
  %133 = load ptr, ptr %132, align 8, !tbaa !5
  %134 = load i64, ptr %11, align 8, !tbaa !9
  %135 = getelementptr inbounds double, ptr %133, i64 %134
  %136 = load double, ptr %135, align 8, !tbaa !19
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %138 = load ptr, ptr %137, align 8, !tbaa !18
  %139 = load i64, ptr %20, 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 %11, align 8, !tbaa !9
  %143 = add nsw i64 %142, 1
  %144 = getelementptr inbounds double, ptr %141, i64 %143
  store double %136, ptr %144, align 8, !tbaa !19
  br label %145

145:                                              ; preds = %104
  %146 = load i64, ptr %20, align 8, !tbaa !9
  %147 = add nsw i64 %146, 1
  store i64 %147, ptr %20, align 8, !tbaa !9
  br label %99, !llvm.loop !23

148:                                              ; preds = %99
  %149 = load i64, ptr %10, align 8, !tbaa !9
  %150 = sub nsw i64 %149, 1
  %151 = add nsw i64 %150, 1
  %152 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %151, ptr noundef %152)
  %153 = load i64, ptr %11, align 8, !tbaa !9
  %154 = sub nsw i64 %153, 1
  %155 = add nsw i64 %154, 1
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %155, ptr noundef %156)
  %157 = load i64, ptr %11, align 8, !tbaa !9
  %158 = sub nsw i64 %157, 1
  %159 = add nsw i64 %158, 1
  %160 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %159, ptr noundef %160)
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %161

161:                                              ; preds = %246, %148
  %162 = load i64, ptr %21, align 8, !tbaa !9
  %163 = load i64, ptr %11, align 8, !tbaa !9
  %164 = sub nsw i64 %163, 1
  %165 = icmp sle i64 %162, %164
  br i1 %165, label %166, label %249

166:                                              ; preds = %161
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %168 = load ptr, ptr %167, align 8, !tbaa !18
  %169 = getelementptr inbounds double, ptr %168, i64 0
  %170 = load ptr, ptr %8, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %170, i32 0, i32 6
  %172 = load ptr, ptr %171, align 8, !tbaa !18
  %173 = getelementptr inbounds ptr, ptr %172, i64 0
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = load i64, ptr %21, align 8, !tbaa !9
  %176 = getelementptr inbounds double, ptr %174, i64 %175
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %177, i32 0, i32 2
  %179 = load i64, ptr %178, align 8, !tbaa !24
  %180 = load i64, ptr %10, align 8, !tbaa !9
  %181 = sub nsw i64 %180, 1
  %182 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %181)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %169, i64 noundef 1, ptr noundef %176, i64 noundef %179, i64 noundef %182)
  %183 = load i64, ptr %10, align 8, !tbaa !9
  %184 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13samplemomentsEPKNS_9ae_vectorElPdS3_S3_S3_PNS_8ae_stateE(ptr noundef %17, i64 noundef %183, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %184)
  %185 = load double, ptr %24, align 8, !tbaa !19
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %187 = load ptr, ptr %186, align 8, !tbaa !18
  %188 = load i64, ptr %21, align 8, !tbaa !9
  %189 = getelementptr inbounds double, ptr %187, i64 %188
  store double %185, ptr %189, align 8, !tbaa !19
  %190 = load double, ptr %25, align 8, !tbaa !19
  %191 = load ptr, ptr %14, align 8, !tbaa !5
  %192 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %190, ptr noundef %191)
  %193 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %194 = load ptr, ptr %193, align 8, !tbaa !18
  %195 = load i64, ptr %21, align 8, !tbaa !9
  %196 = getelementptr inbounds double, ptr %194, i64 %195
  store double %192, ptr %196, align 8, !tbaa !19
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %198 = load ptr, ptr %197, align 8, !tbaa !18
  %199 = load i64, ptr %21, align 8, !tbaa !9
  %200 = getelementptr inbounds double, ptr %198, i64 %199
  %201 = load double, ptr %200, align 8, !tbaa !19
  %202 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %201, double noundef 0.000000e+00)
  br i1 %202, label %203, label %208

203:                                              ; preds = %166
  %204 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %205 = load ptr, ptr %204, align 8, !tbaa !18
  %206 = load i64, ptr %21, align 8, !tbaa !9
  %207 = getelementptr inbounds double, ptr %205, i64 %206
  store double 1.000000e+00, ptr %207, align 8, !tbaa !19
  br label %208

208:                                              ; preds = %203, %166
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %209

209:                                              ; preds = %242, %208
  %210 = load i64, ptr %20, align 8, !tbaa !9
  %211 = load i64, ptr %10, align 8, !tbaa !9
  %212 = sub nsw i64 %211, 1
  %213 = icmp sle i64 %210, %212
  br i1 %213, label %214, label %245

214:                                              ; preds = %209
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %216 = load ptr, ptr %215, align 8, !tbaa !18
  %217 = load i64, ptr %20, align 8, !tbaa !9
  %218 = getelementptr inbounds ptr, ptr %216, i64 %217
  %219 = load ptr, ptr %218, align 8, !tbaa !5
  %220 = load i64, ptr %21, align 8, !tbaa !9
  %221 = getelementptr inbounds double, ptr %219, i64 %220
  %222 = load double, ptr %221, align 8, !tbaa !19
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !18
  %225 = load i64, ptr %21, align 8, !tbaa !9
  %226 = getelementptr inbounds double, ptr %224, i64 %225
  %227 = load double, ptr %226, align 8, !tbaa !19
  %228 = fsub double %222, %227
  %229 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %230 = load ptr, ptr %229, align 8, !tbaa !18
  %231 = load i64, ptr %21, align 8, !tbaa !9
  %232 = getelementptr inbounds double, ptr %230, i64 %231
  %233 = load double, ptr %232, align 8, !tbaa !19
  %234 = fdiv double %228, %233
  %235 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %236 = load ptr, ptr %235, align 8, !tbaa !18
  %237 = load i64, ptr %20, align 8, !tbaa !9
  %238 = getelementptr inbounds ptr, ptr %236, i64 %237
  %239 = load ptr, ptr %238, align 8, !tbaa !5
  %240 = load i64, ptr %21, align 8, !tbaa !9
  %241 = getelementptr inbounds double, ptr %239, i64 %240
  store double %234, ptr %241, align 8, !tbaa !19
  br label %242

242:                                              ; preds = %214
  %243 = load i64, ptr %20, align 8, !tbaa !9
  %244 = add nsw i64 %243, 1
  store i64 %244, ptr %20, align 8, !tbaa !9
  br label %209, !llvm.loop !25

245:                                              ; preds = %209
  br label %246

246:                                              ; preds = %245
  %247 = load i64, ptr %21, align 8, !tbaa !9
  %248 = add nsw i64 %247, 1
  store i64 %248, ptr %21, align 8, !tbaa !9
  br label %161, !llvm.loop !26

249:                                              ; preds = %161
  %250 = load ptr, ptr %9, align 8, !tbaa !5
  %251 = load i64, ptr %10, align 8, !tbaa !9
  %252 = load i64, ptr %11, align 8, !tbaa !9
  %253 = add nsw i64 %252, 1
  %254 = load ptr, ptr %12, align 8, !tbaa !5
  %255 = load ptr, ptr %13, align 8, !tbaa !5
  %256 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL17linreg_lrinternalEPKNS_9ae_matrixEPKNS_9ae_vectorEllPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef %16, ptr noundef %250, i64 noundef %251, i64 noundef %253, ptr noundef %254, ptr noundef %255, ptr noundef %256)
  %257 = load ptr, ptr %12, align 8, !tbaa !5
  %258 = getelementptr inbounds %"struct.alglib_impl::linearmodel", ptr %257, i32 0, i32 0
  %259 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %258, i32 0, i32 4
  %260 = load ptr, ptr %259, align 8, !tbaa !18
  %261 = getelementptr inbounds double, ptr %260, i64 3
  %262 = load double, ptr %261, align 8, !tbaa !19
  %263 = load ptr, ptr %14, align 8, !tbaa !5
  %264 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %262, ptr noundef %263)
  store i64 %264, ptr %23, align 8, !tbaa !9
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %265

265:                                              ; preds = %422, %249
  %266 = load i64, ptr %21, align 8, !tbaa !9
  %267 = load i64, ptr %11, align 8, !tbaa !9
  %268 = sub nsw i64 %267, 1
  %269 = icmp sle i64 %266, %268
  br i1 %269, label %270, label %425

270:                                              ; preds = %265
  %271 = load ptr, ptr %12, align 8, !tbaa !5
  %272 = getelementptr inbounds %"struct.alglib_impl::linearmodel", ptr %271, i32 0, i32 0
  %273 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %272, i32 0, i32 4
  %274 = load ptr, ptr %273, align 8, !tbaa !18
  %275 = load i64, ptr %23, align 8, !tbaa !9
  %276 = load i64, ptr %11, align 8, !tbaa !9
  %277 = add nsw i64 %275, %276
  %278 = getelementptr inbounds double, ptr %274, i64 %277
  %279 = load double, ptr %278, align 8, !tbaa !19
  %280 = load ptr, ptr %12, align 8, !tbaa !5
  %281 = getelementptr inbounds %"struct.alglib_impl::linearmodel", ptr %280, i32 0, i32 0
  %282 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %281, i32 0, i32 4
  %283 = load ptr, ptr %282, align 8, !tbaa !18
  %284 = load i64, ptr %23, align 8, !tbaa !9
  %285 = load i64, ptr %21, align 8, !tbaa !9
  %286 = add nsw i64 %284, %285
  %287 = getelementptr inbounds double, ptr %283, i64 %286
  %288 = load double, ptr %287, align 8, !tbaa !19
  %289 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %290 = load ptr, ptr %289, align 8, !tbaa !18
  %291 = load i64, ptr %21, align 8, !tbaa !9
  %292 = getelementptr inbounds double, ptr %290, i64 %291
  %293 = load double, ptr %292, align 8, !tbaa !19
  %294 = fmul double %288, %293
  %295 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %296 = load ptr, ptr %295, align 8, !tbaa !18
  %297 = load i64, ptr %21, align 8, !tbaa !9
  %298 = getelementptr inbounds double, ptr %296, i64 %297
  %299 = load double, ptr %298, align 8, !tbaa !19
  %300 = fdiv double %294, %299
  %301 = fsub double %279, %300
  %302 = load ptr, ptr %12, align 8, !tbaa !5
  %303 = getelementptr inbounds %"struct.alglib_impl::linearmodel", ptr %302, i32 0, i32 0
  %304 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %303, i32 0, i32 4
  %305 = load ptr, ptr %304, align 8, !tbaa !18
  %306 = load i64, ptr %23, align 8, !tbaa !9
  %307 = load i64, ptr %11, align 8, !tbaa !9
  %308 = add nsw i64 %306, %307
  %309 = getelementptr inbounds double, ptr %305, i64 %308
  store double %301, ptr %309, align 8, !tbaa !19
  %310 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %311 = load ptr, ptr %310, align 8, !tbaa !18
  %312 = load i64, ptr %21, align 8, !tbaa !9
  %313 = getelementptr inbounds double, ptr %311, i64 %312
  %314 = load double, ptr %313, align 8, !tbaa !19
  %315 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %316 = load ptr, ptr %315, align 8, !tbaa !18
  %317 = load i64, ptr %21, align 8, !tbaa !9
  %318 = getelementptr inbounds double, ptr %316, i64 %317
  %319 = load double, ptr %318, align 8, !tbaa !19
  %320 = fdiv double %314, %319
  store double %320, ptr %22, align 8, !tbaa !19
  %321 = load ptr, ptr %13, align 8, !tbaa !5
  %322 = getelementptr inbounds %"struct.alglib_impl::lrreport", ptr %321, i32 0, i32 0
  %323 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %322, i32 0, i32 6
  %324 = load ptr, ptr %323, align 8, !tbaa !18
  %325 = load i64, ptr %11, align 8, !tbaa !9
  %326 = getelementptr inbounds ptr, ptr %324, i64 %325
  %327 = load ptr, ptr %326, align 8, !tbaa !5
  %328 = getelementptr inbounds double, ptr %327, i64 0
  %329 = load ptr, ptr %13, align 8, !tbaa !5
  %330 = getelementptr inbounds %"struct.alglib_impl::lrreport", ptr %329, i32 0, i32 0
  %331 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %330, i32 0, i32 6
  %332 = load ptr, ptr %331, align 8, !tbaa !18
  %333 = load i64, ptr %21, align 8, !tbaa !9
  %334 = getelementptr inbounds ptr, ptr %332, i64 %333
  %335 = load ptr, ptr %334, align 8, !tbaa !5
  %336 = getelementptr inbounds double, ptr %335, i64 0
  %337 = load i64, ptr %11, align 8, !tbaa !9
  %338 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %337)
  %339 = load double, ptr %22, align 8, !tbaa !19
  call void @_ZN11alglib_impl9ae_v_subdEPdlPKdlld(ptr noundef %328, i64 noundef 1, ptr noundef %336, i64 noundef 1, i64 noundef %338, double noundef %339)
  %340 = load ptr, ptr %13, align 8, !tbaa !5
  %341 = getelementptr inbounds %"struct.alglib_impl::lrreport", ptr %340, i32 0, i32 0
  %342 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %341, i32 0, i32 6
  %343 = load ptr, ptr %342, align 8, !tbaa !18
  %344 = getelementptr inbounds ptr, ptr %343, i64 0
  %345 = load ptr, ptr %344, align 8, !tbaa !5
  %346 = load i64, ptr %11, align 8, !tbaa !9
  %347 = getelementptr inbounds double, ptr %345, i64 %346
  %348 = load ptr, ptr %13, align 8, !tbaa !5
  %349 = getelementptr inbounds %"struct.alglib_impl::lrreport", ptr %348, i32 0, i32 0
  %350 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %349, i32 0, i32 2
  %351 = load i64, ptr %350, align 8, !tbaa !27
  %352 = load ptr, ptr %13, align 8, !tbaa !5
  %353 = getelementptr inbounds %"struct.alglib_impl::lrreport", ptr %352, i32 0, i32 0
  %354 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %353, i32 0, i32 6
  %355 = load ptr, ptr %354, align 8, !tbaa !18
  %356 = getelementptr inbounds ptr, ptr %355, i64 0
  %357 = load ptr, ptr %356, align 8, !tbaa !5
  %358 = load i64, ptr %21, align 8, !tbaa !9
  %359 = getelementptr inbounds double, ptr %357, i64 %358
  %360 = load ptr, ptr %13, align 8, !tbaa !5
  %361 = getelementptr inbounds %"struct.alglib_impl::lrreport", ptr %360, i32 0, i32 0
  %362 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %361, i32 0, i32 2
  %363 = load i64, ptr %362, align 8, !tbaa !27
  %364 = load i64, ptr %11, align 8, !tbaa !9
  %365 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %364)
  %366 = load double, ptr %22, align 8, !tbaa !19
  call void @_ZN11alglib_impl9ae_v_subdEPdlPKdlld(ptr noundef %347, i64 noundef %351, ptr noundef %359, i64 noundef %363, i64 noundef %365, double noundef %366)
  %367 = load ptr, ptr %12, align 8, !tbaa !5
  %368 = getelementptr inbounds %"struct.alglib_impl::linearmodel", ptr %367, i32 0, i32 0
  %369 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %368, i32 0, i32 4
  %370 = load ptr, ptr %369, align 8, !tbaa !18
  %371 = load i64, ptr %23, align 8, !tbaa !9
  %372 = load i64, ptr %21, align 8, !tbaa !9
  %373 = add nsw i64 %371, %372
  %374 = getelementptr inbounds double, ptr %370, i64 %373
  %375 = load double, ptr %374, align 8, !tbaa !19
  %376 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %377 = load ptr, ptr %376, align 8, !tbaa !18
  %378 = load i64, ptr %21, align 8, !tbaa !9
  %379 = getelementptr inbounds double, ptr %377, i64 %378
  %380 = load double, ptr %379, align 8, !tbaa !19
  %381 = fdiv double %375, %380
  %382 = load ptr, ptr %12, align 8, !tbaa !5
  %383 = getelementptr inbounds %"struct.alglib_impl::linearmodel", ptr %382, i32 0, i32 0
  %384 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %383, i32 0, i32 4
  %385 = load ptr, ptr %384, align 8, !tbaa !18
  %386 = load i64, ptr %23, align 8, !tbaa !9
  %387 = load i64, ptr %21, align 8, !tbaa !9
  %388 = add nsw i64 %386, %387
  %389 = getelementptr inbounds double, ptr %385, i64 %388
  store double %381, ptr %389, align 8, !tbaa !19
  %390 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %391 = load ptr, ptr %390, align 8, !tbaa !18
  %392 = load i64, ptr %21, align 8, !tbaa !9
  %393 = getelementptr inbounds double, ptr %391, i64 %392
  %394 = load double, ptr %393, align 8, !tbaa !19
  %395 = fdiv double 1.000000e+00, %394
  store double %395, ptr %22, align 8, !tbaa !19
  %396 = load ptr, ptr %13, align 8, !tbaa !5
  %397 = getelementptr inbounds %"struct.alglib_impl::lrreport", ptr %396, i32 0, i32 0
  %398 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %397, i32 0, i32 6
  %399 = load ptr, ptr %398, align 8, !tbaa !18
  %400 = load i64, ptr %21, align 8, !tbaa !9
  %401 = getelementptr inbounds ptr, ptr %399, i64 %400
  %402 = load ptr, ptr %401, align 8, !tbaa !5
  %403 = getelementptr inbounds double, ptr %402, i64 0
  %404 = load i64, ptr %11, align 8, !tbaa !9
  %405 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %404)
  %406 = load double, ptr %22, align 8, !tbaa !19
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %403, i64 noundef 1, i64 noundef %405, double noundef %406)
  %407 = load ptr, ptr %13, align 8, !tbaa !5
  %408 = getelementptr inbounds %"struct.alglib_impl::lrreport", ptr %407, i32 0, i32 0
  %409 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %408, i32 0, i32 6
  %410 = load ptr, ptr %409, align 8, !tbaa !18
  %411 = getelementptr inbounds ptr, ptr %410, i64 0
  %412 = load ptr, ptr %411, align 8, !tbaa !5
  %413 = load i64, ptr %21, align 8, !tbaa !9
  %414 = getelementptr inbounds double, ptr %412, i64 %413
  %415 = load ptr, ptr %13, align 8, !tbaa !5
  %416 = getelementptr inbounds %"struct.alglib_impl::lrreport", ptr %415, i32 0, i32 0
  %417 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %416, i32 0, i32 2
  %418 = load i64, ptr %417, align 8, !tbaa !27
  %419 = load i64, ptr %11, align 8, !tbaa !9
  %420 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %419)
  %421 = load double, ptr %22, align 8, !tbaa !19
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %414, i64 noundef %418, i64 noundef %420, double noundef %421)
  br label %422

422:                                              ; preds = %270
  %423 = load i64, ptr %21, align 8, !tbaa !9
  %424 = add nsw i64 %423, 1
  store i64 %424, ptr %21, align 8, !tbaa !9
  br label %265, !llvm.loop !29

425:                                              ; preds = %265
  %426 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %426)
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  ret void
}

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

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

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

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

declare void @_ZN11alglib_impl13samplemomentsEPKNS_9ae_vectorElPdS3_S3_S3_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) #2

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef, i64 noundef, i64 noundef, double noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18_linearmodel_clearEPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15_lrreport_clearEPv(ptr noundef) #3

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL17linreg_lrinternalEPKNS_9ae_matrixEPKNS_9ae_vectorEllPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl9ae_v_subdEPdlPKdlld(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, double noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!12, !10, i64 8}
!16 = !{!17, !10, i64 0}
!17 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!12, !10, i64 16}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}
!27 = !{!28, !10, i64 16}
!28 = !{!"_ZTSN11alglib_impl8lrreportE", !12, i64 0, !20, i64 80, !20, i64 88, !20, i64 96, !20, i64 104, !20, i64 112, !20, i64 120, !10, i64 128, !17, i64 136}
!29 = distinct !{!29, !22}


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

@.str.316 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.317 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.318 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.319 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.320 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.321 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.322 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.323 = external hidden unnamed_addr constant [18 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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl8lrbuildsEPKNS_9ae_matrixEPKNS_9ae_vectorEllPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #3 {
  %8 = alloca %"struct.alglib_impl::ae_frame", align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %6, ptr noundef nonnull %8)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %9, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl18_linearmodel_clearEPv(ptr noundef %4)
  call void @_ZN11alglib_impl15_lrreport_clearEPv(ptr noundef %5)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  %17 = icmp sgt i64 %3, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.316, ptr noundef %6)
  %18 = add nsw i64 %3, 1
  %19 = icmp slt i64 %18, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.317, ptr noundef %6)
  %20 = load i64, ptr %0, align 8, !tbaa !5
  %21 = icmp sge i64 %20, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.318, ptr noundef %6)
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load i64, ptr %22, align 8, !tbaa !13
  %24 = icmp sgt i64 %23, %3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.319, ptr noundef %6)
  %25 = load i64, ptr %1, align 8, !tbaa !14
  %26 = icmp sge i64 %25, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef nonnull @.str.320, ptr noundef %6)
  %27 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %2, i64 noundef %18, ptr noundef %6)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef nonnull @.str.321, ptr noundef %6)
  %28 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, ptr noundef %6)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %28, ptr noundef nonnull @.str.322, ptr noundef %6)
  %.not.not145 = icmp sgt i64 %2, 0
  br i1 %.not.not145, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %7
  %29 = add nsw i64 %3, 2
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %2, i64 noundef %29, ptr noundef %6)
  br label %._crit_edge151

.lr.ph:                                           ; preds = %7
  %30 = getelementptr inbounds i8, ptr %1, i64 56
  br label %31

31:                                               ; preds = %.lr.ph, %31
  %.0146 = phi i64 [ 0, %.lr.ph ], [ %36, %31 ]
  %32 = load ptr, ptr %30, align 8, !tbaa !16
  %33 = getelementptr inbounds double, ptr %32, i64 %.0146
  %34 = load double, ptr %33, align 8, !tbaa !17
  %35 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %34, double noundef 0.000000e+00)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef nonnull @.str.323, ptr noundef %6)
  %36 = add nuw nsw i64 %.0146, 1
  %exitcond.not = icmp eq i64 %36, %2
  br i1 %exitcond.not, label %._crit_edge, label %31, !llvm.loop !19

._crit_edge:                                      ; preds = %31
  %37 = add nsw i64 %3, 2
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %2, i64 noundef %37, ptr noundef %6)
  br i1 %.not.not145, label %.lr.ph150, label %._crit_edge151

.lr.ph150:                                        ; preds = %._crit_edge
  %38 = getelementptr inbounds i8, ptr %9, i64 72
  %39 = getelementptr inbounds i8, ptr %0, i64 72
  %40 = add nsw i64 %3, -1
  br label %41

41:                                               ; preds = %.lr.ph150, %41
  %.1148 = phi i64 [ 0, %.lr.ph150 ], [ %62, %41 ]
  %42 = load ptr, ptr %38, align 8, !tbaa !16
  %43 = getelementptr inbounds ptr, ptr %42, i64 %.1148
  %44 = load ptr, ptr %43, align 8, !tbaa !21
  %45 = load ptr, ptr %39, align 8, !tbaa !16
  %46 = getelementptr inbounds ptr, ptr %45, i64 %.1148
  %47 = load ptr, ptr %46, align 8, !tbaa !21
  %48 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %40)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %44, i64 noundef 1, ptr noundef %47, i64 noundef 1, i64 noundef %48)
  %49 = load ptr, ptr %38, align 8, !tbaa !16
  %50 = getelementptr inbounds ptr, ptr %49, i64 %.1148
  %51 = load ptr, ptr %50, align 8, !tbaa !21
  %52 = getelementptr inbounds double, ptr %51, i64 %3
  store double 1.000000e+00, ptr %52, align 8, !tbaa !17
  %53 = load ptr, ptr %39, align 8, !tbaa !16
  %54 = getelementptr inbounds ptr, ptr %53, i64 %.1148
  %55 = load ptr, ptr %54, align 8, !tbaa !21
  %56 = getelementptr inbounds double, ptr %55, i64 %3
  %57 = load double, ptr %56, align 8, !tbaa !17
  %58 = load ptr, ptr %38, align 8, !tbaa !16
  %59 = getelementptr inbounds ptr, ptr %58, i64 %.1148
  %60 = load ptr, ptr %59, align 8, !tbaa !21
  %61 = getelementptr inbounds double, ptr %60, i64 %18
  store double %57, ptr %61, align 8, !tbaa !17
  %62 = add nuw nsw i64 %.1148, 1
  %exitcond167.not = icmp eq i64 %62, %2
  br i1 %exitcond167.not, label %._crit_edge151, label %41, !llvm.loop !22

._crit_edge151:                                   ; preds = %41, %._crit_edge.thread, %._crit_edge
  %63 = add nsw i64 %2, -1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %2, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %3, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %3, ptr noundef %6)
  br i1 %17, label %.lr.ph160, label %._crit_edge161

.lr.ph160:                                        ; preds = %._crit_edge151
  %64 = getelementptr inbounds i8, ptr %10, i64 56
  %65 = getelementptr inbounds i8, ptr %0, i64 72
  %66 = getelementptr inbounds i8, ptr %0, i64 16
  %67 = getelementptr inbounds i8, ptr %11, i64 56
  %68 = getelementptr inbounds i8, ptr %12, i64 56
  %69 = getelementptr inbounds i8, ptr %9, i64 72
  %xtraiter = and i64 %2, 1
  %70 = icmp eq i64 %2, 1
  %unroll_iter = and i64 %2, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %71

71:                                               ; preds = %.lr.ph160, %._crit_edge156
  %.0137158 = phi i64 [ 0, %.lr.ph160 ], [ %134, %._crit_edge156 ]
  %72 = load ptr, ptr %64, align 8, !tbaa !16
  %73 = load ptr, ptr %65, align 8, !tbaa !16
  %74 = load ptr, ptr %73, align 8, !tbaa !21
  %75 = getelementptr inbounds double, ptr %74, i64 %.0137158
  %76 = load i64, ptr %66, align 8, !tbaa !23
  %77 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %63)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %72, i64 noundef 1, ptr noundef %75, i64 noundef %76, i64 noundef %77)
  call void @_ZN11alglib_impl13samplemomentsEPKNS_9ae_vectorElPdS3_S3_S3_PNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %2, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef %6)
  %78 = load double, ptr %13, align 8, !tbaa !17
  %79 = load ptr, ptr %67, align 8, !tbaa !16
  %80 = getelementptr inbounds double, ptr %79, i64 %.0137158
  store double %78, ptr %80, align 8, !tbaa !17
  %81 = load double, ptr %14, align 8, !tbaa !17
  %82 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %81, ptr noundef %6)
  %83 = load ptr, ptr %68, align 8, !tbaa !16
  %84 = getelementptr inbounds double, ptr %83, i64 %.0137158
  store double %82, ptr %84, align 8, !tbaa !17
  %85 = load ptr, ptr %68, align 8, !tbaa !16
  %86 = getelementptr inbounds double, ptr %85, i64 %.0137158
  %87 = load double, ptr %86, align 8, !tbaa !17
  %88 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %87, double noundef 0.000000e+00)
  br i1 %88, label %89, label %92

89:                                               ; preds = %71
  %90 = load ptr, ptr %68, align 8, !tbaa !16
  %91 = getelementptr inbounds double, ptr %90, i64 %.0137158
  store double 1.000000e+00, ptr %91, align 8, !tbaa !17
  br label %92

92:                                               ; preds = %89, %71
  br i1 %.not.not145, label %.lr.ph155.preheader, label %._crit_edge156

.lr.ph155.preheader:                              ; preds = %92
  br i1 %70, label %._crit_edge156.loopexit.unr-lcssa, label %.lr.ph155

.lr.ph155:                                        ; preds = %.lr.ph155.preheader, %.lr.ph155
  %.2153 = phi i64 [ %120, %.lr.ph155 ], [ 0, %.lr.ph155.preheader ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph155 ], [ 0, %.lr.ph155.preheader ]
  %93 = load ptr, ptr %69, align 8, !tbaa !16
  %94 = getelementptr inbounds ptr, ptr %93, i64 %.2153
  %95 = load ptr, ptr %94, align 8, !tbaa !21
  %96 = getelementptr inbounds double, ptr %95, i64 %.0137158
  %97 = load double, ptr %96, align 8, !tbaa !17
  %98 = load ptr, ptr %67, align 8, !tbaa !16
  %99 = getelementptr inbounds double, ptr %98, i64 %.0137158
  %100 = load double, ptr %99, align 8, !tbaa !17
  %101 = fsub double %97, %100
  %102 = load ptr, ptr %68, align 8, !tbaa !16
  %103 = getelementptr inbounds double, ptr %102, i64 %.0137158
  %104 = load double, ptr %103, align 8, !tbaa !17
  %105 = fdiv double %101, %104
  store double %105, ptr %96, align 8, !tbaa !17
  %106 = or disjoint i64 %.2153, 1
  %107 = load ptr, ptr %69, align 8, !tbaa !16
  %108 = getelementptr inbounds ptr, ptr %107, i64 %106
  %109 = load ptr, ptr %108, align 8, !tbaa !21
  %110 = getelementptr inbounds double, ptr %109, i64 %.0137158
  %111 = load double, ptr %110, align 8, !tbaa !17
  %112 = load ptr, ptr %67, align 8, !tbaa !16
  %113 = getelementptr inbounds double, ptr %112, i64 %.0137158
  %114 = load double, ptr %113, align 8, !tbaa !17
  %115 = fsub double %111, %114
  %116 = load ptr, ptr %68, align 8, !tbaa !16
  %117 = getelementptr inbounds double, ptr %116, i64 %.0137158
  %118 = load double, ptr %117, align 8, !tbaa !17
  %119 = fdiv double %115, %118
  store double %119, ptr %110, align 8, !tbaa !17
  %120 = add nuw nsw i64 %.2153, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge156.loopexit.unr-lcssa, label %.lr.ph155, !llvm.loop !24

._crit_edge156.loopexit.unr-lcssa:                ; preds = %.lr.ph155, %.lr.ph155.preheader
  %.2153.unr = phi i64 [ 0, %.lr.ph155.preheader ], [ %120, %.lr.ph155 ]
  br i1 %lcmp.mod.not, label %._crit_edge156, label %.lr.ph155.epil

.lr.ph155.epil:                                   ; preds = %._crit_edge156.loopexit.unr-lcssa
  %121 = load ptr, ptr %69, align 8, !tbaa !16
  %122 = getelementptr inbounds ptr, ptr %121, i64 %.2153.unr
  %123 = load ptr, ptr %122, align 8, !tbaa !21
  %124 = getelementptr inbounds double, ptr %123, i64 %.0137158
  %125 = load double, ptr %124, align 8, !tbaa !17
  %126 = load ptr, ptr %67, align 8, !tbaa !16
  %127 = getelementptr inbounds double, ptr %126, i64 %.0137158
  %128 = load double, ptr %127, align 8, !tbaa !17
  %129 = fsub double %125, %128
  %130 = load ptr, ptr %68, align 8, !tbaa !16
  %131 = getelementptr inbounds double, ptr %130, i64 %.0137158
  %132 = load double, ptr %131, align 8, !tbaa !17
  %133 = fdiv double %129, %132
  store double %133, ptr %124, align 8, !tbaa !17
  br label %._crit_edge156

._crit_edge156:                                   ; preds = %.lr.ph155.epil, %._crit_edge156.loopexit.unr-lcssa, %92
  %134 = add nuw nsw i64 %.0137158, 1
  %exitcond169.not = icmp eq i64 %134, %3
  br i1 %exitcond169.not, label %._crit_edge161, label %71, !llvm.loop !25

._crit_edge161:                                   ; preds = %._crit_edge156, %._crit_edge151
  call void @_ZN11alglib_implL17linreg_lrinternalEPKNS_9ae_matrixEPKNS_9ae_vectorEllPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %1, i64 noundef %2, i64 noundef %18, ptr noundef %4, ptr noundef %5, ptr noundef %6)
  %135 = getelementptr inbounds i8, ptr %4, i64 56
  %136 = load ptr, ptr %135, align 8, !tbaa !16
  %137 = getelementptr inbounds i8, ptr %136, i64 24
  %138 = load double, ptr %137, align 8, !tbaa !17
  %139 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %138, ptr noundef %6)
  br i1 %17, label %.lr.ph165, label %._crit_edge166

.lr.ph165:                                        ; preds = %._crit_edge161
  %140 = getelementptr inbounds i8, ptr %11, i64 56
  %141 = getelementptr inbounds i8, ptr %12, i64 56
  %142 = getelementptr inbounds i8, ptr %5, i64 72
  %143 = getelementptr inbounds i8, ptr %5, i64 16
  br label %144

144:                                              ; preds = %.lr.ph165, %144
  %.1138163 = phi i64 [ 0, %.lr.ph165 ], [ %200, %144 ]
  %145 = load ptr, ptr %135, align 8, !tbaa !16
  %146 = getelementptr double, ptr %145, i64 %139
  %147 = getelementptr double, ptr %146, i64 %3
  %148 = load double, ptr %147, align 8, !tbaa !17
  %149 = add nsw i64 %.1138163, %139
  %150 = getelementptr inbounds double, ptr %145, i64 %149
  %151 = load double, ptr %150, align 8, !tbaa !17
  %152 = load ptr, ptr %140, align 8, !tbaa !16
  %153 = getelementptr inbounds double, ptr %152, i64 %.1138163
  %154 = load double, ptr %153, align 8, !tbaa !17
  %155 = fmul double %151, %154
  %156 = load ptr, ptr %141, align 8, !tbaa !16
  %157 = getelementptr inbounds double, ptr %156, i64 %.1138163
  %158 = load double, ptr %157, align 8, !tbaa !17
  %159 = fdiv double %155, %158
  %160 = fsub double %148, %159
  store double %160, ptr %147, align 8, !tbaa !17
  %161 = load ptr, ptr %140, align 8, !tbaa !16
  %162 = getelementptr inbounds double, ptr %161, i64 %.1138163
  %163 = load double, ptr %162, align 8, !tbaa !17
  %164 = load ptr, ptr %141, align 8, !tbaa !16
  %165 = getelementptr inbounds double, ptr %164, i64 %.1138163
  %166 = load double, ptr %165, align 8, !tbaa !17
  %167 = fdiv double %163, %166
  %168 = load ptr, ptr %142, align 8, !tbaa !16
  %169 = getelementptr inbounds ptr, ptr %168, i64 %3
  %170 = load ptr, ptr %169, align 8, !tbaa !21
  %171 = getelementptr inbounds ptr, ptr %168, i64 %.1138163
  %172 = load ptr, ptr %171, align 8, !tbaa !21
  %173 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %3)
  call void @_ZN11alglib_impl9ae_v_subdEPdlPKdlld(ptr noundef %170, i64 noundef 1, ptr noundef %172, i64 noundef 1, i64 noundef %173, double noundef %167)
  %174 = load ptr, ptr %142, align 8, !tbaa !16
  %175 = load ptr, ptr %174, align 8, !tbaa !21
  %176 = getelementptr inbounds double, ptr %175, i64 %3
  %177 = load i64, ptr %143, align 8, !tbaa !26
  %178 = getelementptr inbounds double, ptr %175, i64 %.1138163
  %179 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %3)
  call void @_ZN11alglib_impl9ae_v_subdEPdlPKdlld(ptr noundef nonnull %176, i64 noundef %177, ptr noundef %178, i64 noundef %177, i64 noundef %179, double noundef %167)
  %180 = load ptr, ptr %135, align 8, !tbaa !16
  %181 = getelementptr inbounds double, ptr %180, i64 %149
  %182 = load double, ptr %181, align 8, !tbaa !17
  %183 = load ptr, ptr %141, align 8, !tbaa !16
  %184 = getelementptr inbounds double, ptr %183, i64 %.1138163
  %185 = load double, ptr %184, align 8, !tbaa !17
  %186 = fdiv double %182, %185
  store double %186, ptr %181, align 8, !tbaa !17
  %187 = load ptr, ptr %141, align 8, !tbaa !16
  %188 = getelementptr inbounds double, ptr %187, i64 %.1138163
  %189 = load double, ptr %188, align 8, !tbaa !17
  %190 = fdiv double 1.000000e+00, %189
  %191 = load ptr, ptr %142, align 8, !tbaa !16
  %192 = getelementptr inbounds ptr, ptr %191, i64 %.1138163
  %193 = load ptr, ptr %192, align 8, !tbaa !21
  %194 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %3)
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %193, i64 noundef 1, i64 noundef %194, double noundef %190)
  %195 = load ptr, ptr %142, align 8, !tbaa !16
  %196 = load ptr, ptr %195, align 8, !tbaa !21
  %197 = getelementptr inbounds double, ptr %196, i64 %.1138163
  %198 = load i64, ptr %143, align 8, !tbaa !26
  %199 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %3)
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %197, i64 noundef %198, i64 noundef %199, double noundef %190)
  %200 = add nuw nsw i64 %.1138163, 1
  %exitcond170.not = icmp eq i64 %200, %3
  br i1 %exitcond170.not, label %._crit_edge166, label %144, !llvm.loop !28

._crit_edge166:                                   ; preds = %144, %._crit_edge161
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  ret void
}

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

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 #2

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

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

declare void @_ZN11alglib_impl13samplemomentsEPKNS_9ae_vectorElPdS3_S3_S3_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef, i64 noundef, i64 noundef, double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18_linearmodel_clearEPv(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15_lrreport_clearEPv(ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL17linreg_lrinternalEPKNS_9ae_matrixEPKNS_9ae_vectorEllPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl9ae_v_subdEPdlPKdlld(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, double noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!15, !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!16 = !{!8, !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!12, !12, i64 0}
!22 = distinct !{!22, !20}
!23 = !{!6, !7, i64 16}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = !{!27, !7, i64 16}
!27 = !{!"_ZTSN11alglib_impl8lrreportE", !6, i64 0, !18, i64 80, !18, i64 88, !18, i64 96, !18, i64 104, !18, i64 112, !18, i64 120, !7, i64 128, !15, i64 136}
!28 = distinct !{!28, !20}


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