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

; 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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::lsfitreport" = type { double, i64, i64, double, double, double, double, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double }

@.str.541 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.542 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.543 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.544 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.545 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.546 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.547 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.548 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.549 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.550 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.551 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.552 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.553 = external hidden unnamed_addr constant [56 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13lsfitlinearwcEPNS_9ae_vectorES1_PNS_9ae_matrixES3_lllPlS1_PNS_11lsfitreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, i64 noundef %5, i64 noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #3 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"struct.alglib_impl::ae_frame", align 8
  %24 = alloca %"struct.alglib_impl::ae_vector", align 8
  %25 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca %"struct.alglib_impl::ae_vector", align 8
  %29 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %30 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %31 = alloca %"struct.alglib_impl::ae_vector", align 8
  %32 = alloca %"struct.alglib_impl::ae_vector", align 8
  %33 = alloca double, align 8
  %34 = alloca i32, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store i64 %4, ptr %16, align 8, !tbaa !9
  store i64 %5, ptr %17, align 8, !tbaa !9
  store i64 %6, ptr %18, align 8, !tbaa !9
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  store ptr %10, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 80, 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
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  %35 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %35, ptr noundef %23)
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %29, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %30, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 64, i1 false)
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %24, ptr noundef %36, ptr noundef %37, i1 noundef zeroext true)
  store ptr %24, ptr %12, align 8, !tbaa !5
  %38 = load ptr, ptr %15, align 8, !tbaa !5
  %39 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef %25, ptr noundef %38, ptr noundef %39, i1 noundef zeroext true)
  store ptr %25, ptr %15, align 8, !tbaa !5
  %40 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 0, ptr %40, align 8, !tbaa !9
  %41 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %41)
  %42 = load ptr, ptr %21, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_lsfitreport_clearEPv(ptr noundef %42)
  %43 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %28, i64 noundef 0, i64 noundef 3, ptr noundef %43, i1 noundef zeroext true)
  %44 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %29, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %44, i1 noundef zeroext true)
  %45 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %30, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %45, i1 noundef zeroext true)
  %46 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %31, i64 noundef 0, i64 noundef 3, ptr noundef %46, i1 noundef zeroext true)
  %47 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %32, i64 noundef 0, i64 noundef 3, ptr noundef %47, i1 noundef zeroext true)
  %48 = load i64, ptr %16, align 8, !tbaa !9
  %49 = icmp sge i64 %48, 1
  %50 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.541, ptr noundef %50)
  %51 = load i64, ptr %17, align 8, !tbaa !9
  %52 = icmp sge i64 %51, 1
  %53 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef @.str.542, ptr noundef %53)
  %54 = load i64, ptr %18, align 8, !tbaa !9
  %55 = icmp sge i64 %54, 0
  %56 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %55, ptr noundef @.str.543, ptr noundef %56)
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %57, i32 0, i32 0
  %59 = load i64, ptr %58, align 8, !tbaa !11
  %60 = load i64, ptr %16, align 8, !tbaa !9
  %61 = icmp sge i64 %59, %60
  %62 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %61, ptr noundef @.str.544, ptr noundef %62)
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = load i64, ptr %16, align 8, !tbaa !9
  %65 = load ptr, ptr %22, align 8, !tbaa !5
  %66 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %63, i64 noundef %64, ptr noundef %65)
  %67 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %66, ptr noundef @.str.545, ptr noundef %67)
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %68, i32 0, i32 0
  %70 = load i64, ptr %69, align 8, !tbaa !11
  %71 = load i64, ptr %16, align 8, !tbaa !9
  %72 = icmp sge i64 %70, %71
  %73 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %72, ptr noundef @.str.546, ptr noundef %73)
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  %75 = load i64, ptr %16, align 8, !tbaa !9
  %76 = load ptr, ptr %22, align 8, !tbaa !5
  %77 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %74, i64 noundef %75, ptr noundef %76)
  %78 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %77, ptr noundef @.str.547, ptr noundef %78)
  %79 = load ptr, ptr %14, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %79, i32 0, i32 0
  %81 = load i64, ptr %80, align 8, !tbaa !15
  %82 = load i64, ptr %16, align 8, !tbaa !9
  %83 = icmp sge i64 %81, %82
  %84 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %83, ptr noundef @.str.548, ptr noundef %84)
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %85, i32 0, i32 1
  %87 = load i64, ptr %86, align 8, !tbaa !17
  %88 = load i64, ptr %17, align 8, !tbaa !9
  %89 = icmp sge i64 %87, %88
  %90 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %89, ptr noundef @.str.549, ptr noundef %90)
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = load i64, ptr %16, align 8, !tbaa !9
  %93 = load i64, ptr %17, align 8, !tbaa !9
  %94 = load ptr, ptr %22, align 8, !tbaa !5
  %95 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %91, i64 noundef %92, i64 noundef %93, ptr noundef %94)
  %96 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %95, ptr noundef @.str.550, ptr noundef %96)
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %97, i32 0, i32 0
  %99 = load i64, ptr %98, align 8, !tbaa !15
  %100 = load i64, ptr %18, align 8, !tbaa !9
  %101 = icmp sge i64 %99, %100
  %102 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %101, ptr noundef @.str.551, ptr noundef %102)
  %103 = load ptr, ptr %15, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %103, i32 0, i32 1
  %105 = load i64, ptr %104, align 8, !tbaa !17
  %106 = load i64, ptr %17, align 8, !tbaa !9
  %107 = add nsw i64 %106, 1
  %108 = icmp sge i64 %105, %107
  br i1 %108, label %112, label %109

109:                                              ; preds = %11
  %110 = load i64, ptr %18, align 8, !tbaa !9
  %111 = icmp eq i64 %110, 0
  br label %112

112:                                              ; preds = %109, %11
  %113 = phi i1 [ true, %11 ], [ %111, %109 ]
  %114 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %113, ptr noundef @.str.552, ptr noundef %114)
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = load i64, ptr %18, align 8, !tbaa !9
  %117 = load i64, ptr %17, align 8, !tbaa !9
  %118 = add nsw i64 %117, 1
  %119 = load ptr, ptr %22, align 8, !tbaa !5
  %120 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %115, i64 noundef %116, i64 noundef %118, ptr noundef %119)
  %121 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %120, ptr noundef @.str.553, ptr noundef %121)
  %122 = load i64, ptr %18, align 8, !tbaa !9
  %123 = load i64, ptr %17, align 8, !tbaa !9
  %124 = icmp sge i64 %122, %123
  br i1 %124, label %125, label %128

125:                                              ; preds = %112
  %126 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -3, ptr %126, align 8, !tbaa !9
  %127 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %127)
  store i32 1, ptr %34, align 4
  br label %365

128:                                              ; preds = %112
  %129 = load i64, ptr %18, align 8, !tbaa !9
  %130 = icmp eq i64 %129, 0
  br i1 %130, label %131, label %141

131:                                              ; preds = %128
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = load i64, ptr %16, align 8, !tbaa !9
  %136 = load i64, ptr %17, align 8, !tbaa !9
  %137 = load ptr, ptr %19, align 8, !tbaa !5
  %138 = load ptr, ptr %20, align 8, !tbaa !5
  %139 = load ptr, ptr %21, align 8, !tbaa !5
  %140 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_lsfitlinearinternalEPNS_9ae_vectorES1_PNS_9ae_matrixEllPlS1_PNS_11lsfitreportEPNS_8ae_stateE(ptr noundef %132, ptr noundef %133, ptr noundef %134, i64 noundef %135, i64 noundef %136, ptr noundef %137, ptr noundef %138, ptr noundef %139, ptr noundef %140)
  br label %363

141:                                              ; preds = %128
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = load i64, ptr %18, align 8, !tbaa !9
  %144 = load i64, ptr %17, align 8, !tbaa !9
  %145 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl9rmatrixlqEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %142, i64 noundef %143, i64 noundef %144, ptr noundef %28, ptr noundef %145)
  %146 = load ptr, ptr %15, align 8, !tbaa !5
  %147 = load i64, ptr %18, align 8, !tbaa !9
  %148 = load i64, ptr %17, align 8, !tbaa !9
  %149 = load i64, ptr %17, align 8, !tbaa !9
  %150 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixlqunpackqEPNS_9ae_matrixEllPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef %146, i64 noundef %147, i64 noundef %148, ptr noundef %28, i64 noundef %149, ptr noundef %29, ptr noundef %150)
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %177, %141
  %152 = load i64, ptr %26, align 8, !tbaa !9
  %153 = load i64, ptr %18, align 8, !tbaa !9
  %154 = sub nsw i64 %153, 1
  %155 = icmp sle i64 %152, %154
  br i1 %155, label %156, label %180

156:                                              ; preds = %151
  %157 = load i64, ptr %26, align 8, !tbaa !9
  %158 = add nsw i64 %157, 1
  store i64 %158, ptr %27, align 8, !tbaa !9
  br label %159

159:                                              ; preds = %173, %156
  %160 = load i64, ptr %27, align 8, !tbaa !9
  %161 = load i64, ptr %17, align 8, !tbaa !9
  %162 = sub nsw i64 %161, 1
  %163 = icmp sle i64 %160, %162
  br i1 %163, label %164, label %176

164:                                              ; preds = %159
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %165, i32 0, i32 6
  %167 = load ptr, ptr %166, align 8, !tbaa !18
  %168 = load i64, ptr %26, align 8, !tbaa !9
  %169 = getelementptr inbounds ptr, ptr %167, i64 %168
  %170 = load ptr, ptr %169, align 8, !tbaa !5
  %171 = load i64, ptr %27, align 8, !tbaa !9
  %172 = getelementptr inbounds double, ptr %170, i64 %171
  store double 0.000000e+00, ptr %172, align 8, !tbaa !19
  br label %173

173:                                              ; preds = %164
  %174 = load i64, ptr %27, align 8, !tbaa !9
  %175 = add nsw i64 %174, 1
  store i64 %175, ptr %27, align 8, !tbaa !9
  br label %159, !llvm.loop !21

176:                                              ; preds = %159
  br label %177

177:                                              ; preds = %176
  %178 = load i64, ptr %26, align 8, !tbaa !9
  %179 = add nsw i64 %178, 1
  store i64 %179, ptr %26, align 8, !tbaa !9
  br label %151, !llvm.loop !23

180:                                              ; preds = %151
  %181 = load ptr, ptr %15, align 8, !tbaa !5
  %182 = load i64, ptr %18, align 8, !tbaa !9
  %183 = load ptr, ptr %22, align 8, !tbaa !5
  %184 = call noundef double @_ZN11alglib_impl17rmatrixlurcondinfEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %181, i64 noundef %182, ptr noundef %183)
  %185 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %184, double noundef 5.000000e-13)
  br i1 %185, label %186, label %189

186:                                              ; preds = %180
  %187 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -3, ptr %187, align 8, !tbaa !9
  %188 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %188)
  store i32 1, ptr %34, align 4
  br label %365

189:                                              ; preds = %180
  %190 = load i64, ptr %18, align 8, !tbaa !9
  %191 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %190, ptr noundef %191)
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %192

192:                                              ; preds = %242, %189
  %193 = load i64, ptr %26, align 8, !tbaa !9
  %194 = load i64, ptr %18, align 8, !tbaa !9
  %195 = sub nsw i64 %194, 1
  %196 = icmp sle i64 %193, %195
  br i1 %196, label %197, label %245

197:                                              ; preds = %192
  %198 = load i64, ptr %26, align 8, !tbaa !9
  %199 = icmp sgt i64 %198, 0
  br i1 %199, label %200, label %215

200:                                              ; preds = %197
  %201 = load ptr, ptr %15, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %201, i32 0, i32 6
  %203 = load ptr, ptr %202, align 8, !tbaa !18
  %204 = load i64, ptr %26, align 8, !tbaa !9
  %205 = getelementptr inbounds ptr, ptr %203, i64 %204
  %206 = load ptr, ptr %205, align 8, !tbaa !5
  %207 = getelementptr inbounds double, ptr %206, i64 0
  %208 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %209 = load ptr, ptr %208, align 8, !tbaa !18
  %210 = getelementptr inbounds double, ptr %209, i64 0
  %211 = load i64, ptr %26, align 8, !tbaa !9
  %212 = sub nsw i64 %211, 1
  %213 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %212)
  %214 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %207, i64 noundef 1, ptr noundef %210, i64 noundef 1, i64 noundef %213)
  store double %214, ptr %33, align 8, !tbaa !19
  br label %216

215:                                              ; preds = %197
  store double 0.000000e+00, ptr %33, align 8, !tbaa !19
  br label %216

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

242:                                              ; preds = %216
  %243 = load i64, ptr %26, align 8, !tbaa !9
  %244 = add nsw i64 %243, 1
  store i64 %244, ptr %26, align 8, !tbaa !9
  br label %192, !llvm.loop !24

245:                                              ; preds = %192
  %246 = load i64, ptr %17, align 8, !tbaa !9
  %247 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %246, ptr noundef %247)
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %248

248:                                              ; preds = %258, %245
  %249 = load i64, ptr %26, align 8, !tbaa !9
  %250 = load i64, ptr %17, align 8, !tbaa !9
  %251 = sub nsw i64 %250, 1
  %252 = icmp sle i64 %249, %251
  br i1 %252, label %253, label %261

253:                                              ; preds = %248
  %254 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %255 = load ptr, ptr %254, align 8, !tbaa !18
  %256 = load i64, ptr %26, align 8, !tbaa !9
  %257 = getelementptr inbounds double, ptr %255, i64 %256
  store double 0.000000e+00, ptr %257, align 8, !tbaa !19
  br label %258

258:                                              ; preds = %253
  %259 = load i64, ptr %26, align 8, !tbaa !9
  %260 = add nsw i64 %259, 1
  store i64 %260, ptr %26, align 8, !tbaa !9
  br label %248, !llvm.loop !25

261:                                              ; preds = %248
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %262

262:                                              ; preds = %286, %261
  %263 = load i64, ptr %26, align 8, !tbaa !9
  %264 = load i64, ptr %18, align 8, !tbaa !9
  %265 = sub nsw i64 %264, 1
  %266 = icmp sle i64 %263, %265
  br i1 %266, label %267, label %289

267:                                              ; preds = %262
  %268 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %269 = load ptr, ptr %268, align 8, !tbaa !18
  %270 = load i64, ptr %26, align 8, !tbaa !9
  %271 = getelementptr inbounds double, ptr %269, i64 %270
  %272 = load double, ptr %271, align 8, !tbaa !19
  store double %272, ptr %33, align 8, !tbaa !19
  %273 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %274 = load ptr, ptr %273, align 8, !tbaa !18
  %275 = getelementptr inbounds double, ptr %274, i64 0
  %276 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %29, i32 0, i32 6
  %277 = load ptr, ptr %276, align 8, !tbaa !18
  %278 = load i64, ptr %26, align 8, !tbaa !9
  %279 = getelementptr inbounds ptr, ptr %277, i64 %278
  %280 = load ptr, ptr %279, align 8, !tbaa !5
  %281 = getelementptr inbounds double, ptr %280, i64 0
  %282 = load i64, ptr %17, align 8, !tbaa !9
  %283 = sub nsw i64 %282, 1
  %284 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %283)
  %285 = load double, ptr %33, align 8, !tbaa !19
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %275, i64 noundef 1, ptr noundef %281, i64 noundef 1, i64 noundef %284, double noundef %285)
  br label %286

286:                                              ; preds = %267
  %287 = load i64, ptr %26, align 8, !tbaa !9
  %288 = add nsw i64 %287, 1
  store i64 %288, ptr %26, align 8, !tbaa !9
  br label %262, !llvm.loop !26

289:                                              ; preds = %262
  %290 = load i64, ptr %16, align 8, !tbaa !9
  %291 = load i64, ptr %17, align 8, !tbaa !9
  %292 = load ptr, ptr %22, align 8, !tbaa !5
  %293 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %290, i64 noundef %291, ptr noundef %292)
  %294 = add nsw i64 %293, 1
  %295 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %294, ptr noundef %295)
  %296 = load i64, ptr %16, align 8, !tbaa !9
  %297 = load i64, ptr %17, align 8, !tbaa !9
  %298 = load i64, ptr %18, align 8, !tbaa !9
  %299 = sub nsw i64 %297, %298
  %300 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %30, i64 noundef %296, i64 noundef %299, ptr noundef %300)
  %301 = load ptr, ptr %14, align 8, !tbaa !5
  %302 = load i64, ptr %16, align 8, !tbaa !9
  %303 = sub nsw i64 %302, 1
  %304 = load i64, ptr %17, align 8, !tbaa !9
  %305 = sub nsw i64 %304, 1
  %306 = load i64, ptr %17, align 8, !tbaa !9
  %307 = sub nsw i64 %306, 1
  %308 = load ptr, ptr %12, align 8, !tbaa !5
  %309 = load i64, ptr %16, align 8, !tbaa !9
  %310 = sub nsw i64 %309, 1
  %311 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %301, i64 noundef 0, i64 noundef %303, i64 noundef 0, i64 noundef %305, i1 noundef zeroext false, ptr noundef %32, i64 noundef 0, i64 noundef %307, double noundef -1.000000e+00, ptr noundef %308, i64 noundef 0, i64 noundef %310, double noundef 1.000000e+00, ptr noundef %311)
  %312 = load i64, ptr %16, align 8, !tbaa !9
  %313 = load i64, ptr %17, align 8, !tbaa !9
  %314 = load i64, ptr %18, align 8, !tbaa !9
  %315 = sub nsw i64 %313, %314
  %316 = load i64, ptr %17, align 8, !tbaa !9
  %317 = load ptr, ptr %14, align 8, !tbaa !5
  %318 = load i64, ptr %18, align 8, !tbaa !9
  %319 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %312, i64 noundef %315, i64 noundef %316, double noundef 1.000000e+00, ptr noundef %317, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %29, i64 noundef %318, i64 noundef 0, i64 noundef 1, double noundef 0.000000e+00, ptr noundef %30, i64 noundef 0, i64 noundef 0, ptr noundef %319)
  %320 = load ptr, ptr %12, align 8, !tbaa !5
  %321 = load ptr, ptr %13, align 8, !tbaa !5
  %322 = load i64, ptr %16, align 8, !tbaa !9
  %323 = load i64, ptr %17, align 8, !tbaa !9
  %324 = load i64, ptr %18, align 8, !tbaa !9
  %325 = sub nsw i64 %323, %324
  %326 = load ptr, ptr %19, align 8, !tbaa !5
  %327 = load ptr, ptr %21, align 8, !tbaa !5
  %328 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_lsfitlinearinternalEPNS_9ae_vectorES1_PNS_9ae_matrixEllPlS1_PNS_11lsfitreportEPNS_8ae_stateE(ptr noundef %320, ptr noundef %321, ptr noundef %30, i64 noundef %322, i64 noundef %325, ptr noundef %326, ptr noundef %31, ptr noundef %327, ptr noundef %328)
  %329 = load ptr, ptr %21, align 8, !tbaa !5
  %330 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %329, i32 0, i32 0
  store double -1.000000e+00, ptr %330, align 8, !tbaa !27
  %331 = load ptr, ptr %19, align 8, !tbaa !5
  %332 = load i64, ptr %331, align 8, !tbaa !9
  %333 = icmp sle i64 %332, 0
  br i1 %333, label %334, label %336

334:                                              ; preds = %289
  %335 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %335)
  store i32 1, ptr %34, align 4
  br label %365

336:                                              ; preds = %289
  %337 = load ptr, ptr %20, align 8, !tbaa !5
  %338 = load i64, ptr %17, align 8, !tbaa !9
  %339 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %337, i64 noundef %338, ptr noundef %339)
  %340 = load ptr, ptr %20, align 8, !tbaa !5
  %341 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %340, i32 0, i32 4
  %342 = load ptr, ptr %341, align 8, !tbaa !18
  %343 = getelementptr inbounds double, ptr %342, i64 0
  %344 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %345 = load ptr, ptr %344, align 8, !tbaa !18
  %346 = getelementptr inbounds double, ptr %345, i64 0
  %347 = load i64, ptr %17, align 8, !tbaa !9
  %348 = sub nsw i64 %347, 1
  %349 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %348)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %343, i64 noundef 1, ptr noundef %346, i64 noundef 1, i64 noundef %349)
  %350 = load i64, ptr %18, align 8, !tbaa !9
  %351 = load i64, ptr %17, align 8, !tbaa !9
  %352 = sub nsw i64 %351, 1
  %353 = load i64, ptr %17, align 8, !tbaa !9
  %354 = sub nsw i64 %353, 1
  %355 = load i64, ptr %17, align 8, !tbaa !9
  %356 = load i64, ptr %18, align 8, !tbaa !9
  %357 = sub nsw i64 %355, %356
  %358 = sub nsw i64 %357, 1
  %359 = load ptr, ptr %20, align 8, !tbaa !5
  %360 = load i64, ptr %17, align 8, !tbaa !9
  %361 = sub nsw i64 %360, 1
  %362 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %29, i64 noundef %350, i64 noundef %352, i64 noundef 0, i64 noundef %354, i1 noundef zeroext true, ptr noundef %31, i64 noundef 0, i64 noundef %358, double noundef 1.000000e+00, ptr noundef %359, i64 noundef 0, i64 noundef %361, double noundef 1.000000e+00, ptr noundef %362)
  br label %363

363:                                              ; preds = %336, %131
  %364 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %364)
  store i32 0, ptr %34, align 4
  br label %365

365:                                              ; preds = %363, %334, %186, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #4
  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 80, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #4
  %366 = load i32, ptr %34, align 4
  switch i32 %366, label %368 [
    i32 0, label %367
    i32 1, label %367
  ]

367:                                              ; preds = %365, %365
  ret void

368:                                              ; preds = %365
  unreachable
}

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #2

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

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr 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_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #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_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #2

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(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_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) #2

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i1 noundef zeroext, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr 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_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!17 = !{!16, !10, i64 8}
!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 = distinct !{!24, !22}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}
!27 = !{!28, !20, i64 0}
!28 = !{!"_ZTSN11alglib_impl11lsfitreportE", !20, i64 0, !10, i64 8, !10, i64 16, !20, i64 24, !20, i64 32, !20, i64 40, !20, i64 48, !20, i64 56, !16, i64 64, !12, i64 144, !12, i64 208, !12, i64 272, !20, i64 336}


; 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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

@.str.541 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.542 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.543 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.544 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.545 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.546 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.547 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.548 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.549 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.550 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.551 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.552 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.553 = external hidden unnamed_addr constant [56 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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_impl13lsfitlinearwcEPNS_9ae_vectorES1_PNS_9ae_matrixES3_lllPlS1_PNS_11lsfitreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, i64 noundef %5, i64 noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) local_unnamed_addr #3 {
  %12 = alloca %"struct.alglib_impl::ae_frame", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %17 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %10, ptr noundef nonnull %12)
  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(80) %14, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %16, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %17, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %19, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %13, ptr noundef %0, ptr noundef %10, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef nonnull %14, ptr noundef %3, ptr noundef %10, i1 noundef zeroext true)
  store i64 0, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %8)
  call void @_ZN11alglib_impl18_lsfitreport_clearEPv(ptr noundef %9)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %10, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %10, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %10, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %18, i64 noundef 0, i64 noundef 3, ptr noundef %10, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %19, i64 noundef 0, i64 noundef 3, ptr noundef %10, i1 noundef zeroext true)
  %20 = icmp sgt i64 %4, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.541, ptr noundef %10)
  %21 = icmp sgt i64 %5, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.542, ptr noundef %10)
  %22 = icmp sgt i64 %6, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.543, ptr noundef %10)
  %23 = load i64, ptr %13, align 8, !tbaa !9
  %24 = icmp sge i64 %23, %4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.544, ptr noundef %10)
  %25 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %4, ptr noundef %10)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.545, ptr noundef %10)
  %26 = load i64, ptr %1, align 8, !tbaa !9
  %27 = icmp sge i64 %26, %4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef nonnull @.str.546, ptr noundef %10)
  %28 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %4, ptr noundef %10)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %28, ptr noundef nonnull @.str.547, ptr noundef %10)
  %29 = load i64, ptr %2, align 8, !tbaa !14
  %30 = icmp sge i64 %29, %4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef nonnull @.str.548, ptr noundef %10)
  %31 = getelementptr inbounds i8, ptr %2, i64 8
  %32 = load i64, ptr %31, align 8, !tbaa !16
  %33 = icmp sge i64 %32, %5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %33, ptr noundef nonnull @.str.549, ptr noundef %10)
  %34 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %2, i64 noundef %4, i64 noundef %5, ptr noundef %10)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef nonnull @.str.550, ptr noundef %10)
  %35 = load i64, ptr %14, align 8, !tbaa !14
  %36 = icmp sge i64 %35, %6
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef nonnull @.str.551, ptr noundef %10)
  %37 = getelementptr inbounds i8, ptr %14, i64 8
  %38 = load i64, ptr %37, align 8, !tbaa !16
  %39 = add nsw i64 %5, 1
  %40 = icmp sgt i64 %38, %5
  %41 = icmp eq i64 %6, 0
  %42 = or i1 %41, %40
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef nonnull @.str.552, ptr noundef %10)
  %43 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %6, i64 noundef %39, ptr noundef %10)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef nonnull @.str.553, ptr noundef %10)
  %.not = icmp slt i64 %6, %5
  br i1 %.not, label %45, label %44

44:                                               ; preds = %11
  store i64 -3, ptr %7, align 8, !tbaa !5
  br label %141

45:                                               ; preds = %11
  br i1 %41, label %46, label %47

46:                                               ; preds = %45
  call void @_ZN11alglib_implL25lsfit_lsfitlinearinternalEPNS_9ae_vectorES1_PNS_9ae_matrixEllPlS1_PNS_11lsfitreportEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef nonnull %1, ptr noundef nonnull %2, i64 noundef %4, i64 noundef %5, ptr noundef nonnull %7, ptr noundef %8, ptr noundef %9, ptr noundef %10)
  br label %141

47:                                               ; preds = %45
  call void @_ZN11alglib_impl9rmatrixlqEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %6, i64 noundef %5, ptr noundef nonnull %15, ptr noundef %10)
  call void @_ZN11alglib_impl16rmatrixlqunpackqEPNS_9ae_matrixEllPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %6, i64 noundef %5, ptr noundef nonnull %15, i64 noundef %5, ptr noundef nonnull %16, ptr noundef %10)
  %.not176.not184 = icmp sgt i64 %6, 0
  br i1 %.not176.not184, label %.lr.ph186, label %._crit_edge

.lr.ph186:                                        ; preds = %47
  %48 = getelementptr inbounds i8, ptr %14, i64 72
  %xtraiter = and i64 %6, 1
  %49 = icmp eq i64 %6, 1
  br i1 %49, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph186.new

.lr.ph186.new:                                    ; preds = %.lr.ph186
  %unroll_iter = and i64 %6, 9223372036854775806
  br label %56

.loopexit:                                        ; preds = %.lr.ph, %56
  %50 = add nuw nsw i64 %.0171185, 2
  %.not181.not182.1 = icmp slt i64 %50, %5
  br i1 %.not181.not182.1, label %.lr.ph.1, label %.loopexit.1

.lr.ph.1:                                         ; preds = %.loopexit, %.lr.ph.1
  %.0170183.1 = phi i64 [ %55, %.lr.ph.1 ], [ %50, %.loopexit ]
  %51 = load ptr, ptr %48, align 8, !tbaa !17
  %52 = getelementptr inbounds ptr, ptr %51, i64 %57
  %53 = load ptr, ptr %52, align 8, !tbaa !18
  %54 = getelementptr inbounds double, ptr %53, i64 %.0170183.1
  store double 0.000000e+00, ptr %54, align 8, !tbaa !19
  %55 = add nuw nsw i64 %.0170183.1, 1
  %.not181.not.1 = icmp slt i64 %55, %5
  br i1 %.not181.not.1, label %.lr.ph.1, label %.loopexit.1, !llvm.loop !21

.loopexit.1:                                      ; preds = %.lr.ph.1, %.loopexit
  %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_edge.loopexit.unr-lcssa, label %56, !llvm.loop !23

56:                                               ; preds = %.loopexit.1, %.lr.ph186.new
  %.0171185 = phi i64 [ 0, %.lr.ph186.new ], [ %50, %.loopexit.1 ]
  %niter = phi i64 [ 0, %.lr.ph186.new ], [ %niter.next.1, %.loopexit.1 ]
  %57 = or disjoint i64 %.0171185, 1
  %.not181.not182 = icmp slt i64 %57, %5
  br i1 %.not181.not182, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %56, %.lr.ph
  %.0170183 = phi i64 [ %62, %.lr.ph ], [ %57, %56 ]
  %58 = load ptr, ptr %48, align 8, !tbaa !17
  %59 = getelementptr inbounds ptr, ptr %58, i64 %.0171185
  %60 = load ptr, ptr %59, align 8, !tbaa !18
  %61 = getelementptr inbounds double, ptr %60, i64 %.0170183
  store double 0.000000e+00, ptr %61, align 8, !tbaa !19
  %62 = add nuw nsw i64 %.0170183, 1
  %.not181.not = icmp slt i64 %62, %5
  br i1 %.not181.not, label %.lr.ph, label %.loopexit, !llvm.loop !21

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.loopexit.1, %.lr.ph186
  %.0171185.unr = phi i64 [ 0, %.lr.ph186 ], [ %50, %.loopexit.1 ]
  %lcmp.mod.not = icmp ne i64 %xtraiter, 0
  %63 = add nuw nsw i64 %.0171185.unr, 1
  %.not181.not182.epil = icmp slt i64 %63, %5
  %or.cond = select i1 %lcmp.mod.not, i1 %.not181.not182.epil, i1 false
  br i1 %or.cond, label %.lr.ph.epil, label %._crit_edge

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %.0170183.epil = phi i64 [ %68, %.lr.ph.epil ], [ %63, %._crit_edge.loopexit.unr-lcssa ]
  %64 = load ptr, ptr %48, align 8, !tbaa !17
  %65 = getelementptr inbounds ptr, ptr %64, i64 %.0171185.unr
  %66 = load ptr, ptr %65, align 8, !tbaa !18
  %67 = getelementptr inbounds double, ptr %66, i64 %.0170183.epil
  store double 0.000000e+00, ptr %67, align 8, !tbaa !19
  %68 = add nuw nsw i64 %.0170183.epil, 1
  %.not181.not.epil = icmp slt i64 %68, %5
  br i1 %.not181.not.epil, label %.lr.ph.epil, label %._crit_edge, !llvm.loop !21

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %47
  %69 = call noundef double @_ZN11alglib_impl17rmatrixlurcondinfEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %6, ptr noundef %10)
  %70 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %69, double noundef 5.000000e-13)
  br i1 %70, label %71, label %72

71:                                               ; preds = %._crit_edge
  store i64 -3, ptr %7, align 8, !tbaa !5
  br label %141

72:                                               ; preds = %._crit_edge
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %6, ptr noundef %10)
  br i1 %.not176.not184, label %73, label %._crit_edge191

73:                                               ; preds = %72
  %74 = getelementptr inbounds i8, ptr %14, i64 72
  %75 = getelementptr inbounds i8, ptr %18, i64 56
  %.pre207 = load ptr, ptr %75, align 8, !tbaa !17
  %.pre = load ptr, ptr %74, align 8, !tbaa !17
  %.pre204 = load ptr, ptr %.pre, align 8, !tbaa !18
  %.pre206 = load double, ptr %.pre204, align 8, !tbaa !19
  %.phi.trans.insert = getelementptr inbounds double, ptr %.pre204, i64 %5
  %.pre205 = load double, ptr %.phi.trans.insert, align 8, !tbaa !19
  %76 = fdiv double %.pre205, %.pre206
  store double %76, ptr %.pre207, align 8, !tbaa !19
  %exitcond200.peel.not = icmp eq i64 %6, 1
  br i1 %exitcond200.peel.not, label %._crit_edge191, label %.peel.next

.peel.next:                                       ; preds = %73, %.peel.next
  %.1188 = phi i64 [ %95, %.peel.next ], [ 1, %73 ]
  %77 = load ptr, ptr %74, align 8, !tbaa !17
  %78 = getelementptr inbounds ptr, ptr %77, i64 %.1188
  %79 = load ptr, ptr %78, align 8, !tbaa !18
  %80 = load ptr, ptr %75, align 8, !tbaa !17
  %81 = add nsw i64 %.1188, -1
  %82 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %81)
  %83 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %79, i64 noundef 1, ptr noundef %80, i64 noundef 1, i64 noundef %82)
  %84 = load ptr, ptr %74, align 8, !tbaa !17
  %85 = getelementptr inbounds ptr, ptr %84, i64 %.1188
  %86 = load ptr, ptr %85, align 8, !tbaa !18
  %87 = getelementptr inbounds double, ptr %86, i64 %5
  %88 = load double, ptr %87, align 8, !tbaa !19
  %89 = fsub double %88, %83
  %90 = getelementptr inbounds double, ptr %86, i64 %.1188
  %91 = load double, ptr %90, align 8, !tbaa !19
  %92 = fdiv double %89, %91
  %93 = load ptr, ptr %75, align 8, !tbaa !17
  %94 = getelementptr inbounds double, ptr %93, i64 %.1188
  store double %92, ptr %94, align 8, !tbaa !19
  %95 = add nuw nsw i64 %.1188, 1
  %exitcond200.not = icmp eq i64 %95, %6
  br i1 %exitcond200.not, label %._crit_edge191, label %.peel.next, !llvm.loop !24

._crit_edge191:                                   ; preds = %.peel.next, %73, %72
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %5, ptr noundef %10)
  br i1 %21, label %.lr.ph195, label %.preheader

.lr.ph195:                                        ; preds = %._crit_edge191
  %96 = getelementptr inbounds i8, ptr %19, i64 56
  %xtraiter210 = and i64 %5, 3
  %97 = icmp ult i64 %5, 4
  br i1 %97, label %.preheader.loopexit.unr-lcssa, label %.lr.ph195.new

.lr.ph195.new:                                    ; preds = %.lr.ph195
  %unroll_iter212 = and i64 %5, 9223372036854775804
  br label %105

.preheader.loopexit.unr-lcssa:                    ; preds = %105, %.lr.ph195
  %.2193.unr = phi i64 [ 0, %.lr.ph195 ], [ %117, %105 ]
  %lcmp.mod211.not = icmp eq i64 %xtraiter210, 0
  br i1 %lcmp.mod211.not, label %.preheader, label %.epil.preheader209

.epil.preheader209:                               ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader209
  %.2193.epil = phi i64 [ %100, %.epil.preheader209 ], [ %.2193.unr, %.preheader.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader209 ], [ 0, %.preheader.loopexit.unr-lcssa ]
  %98 = load ptr, ptr %96, align 8, !tbaa !17
  %99 = getelementptr inbounds double, ptr %98, i64 %.2193.epil
  store double 0.000000e+00, ptr %99, align 8, !tbaa !19
  %100 = add nuw nsw i64 %.2193.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter210
  br i1 %epil.iter.cmp.not, label %.preheader, label %.epil.preheader209, !llvm.loop !26

.preheader:                                       ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader209, %._crit_edge191
  %101 = add nsw i64 %5, -1
  br i1 %.not176.not184, label %.lr.ph198, label %._crit_edge199

.lr.ph198:                                        ; preds = %.preheader
  %102 = getelementptr inbounds i8, ptr %18, i64 56
  %103 = getelementptr inbounds i8, ptr %19, i64 56
  %104 = getelementptr inbounds i8, ptr %16, i64 72
  br label %118

105:                                              ; preds = %105, %.lr.ph195.new
  %.2193 = phi i64 [ 0, %.lr.ph195.new ], [ %117, %105 ]
  %niter213 = phi i64 [ 0, %.lr.ph195.new ], [ %niter213.next.3, %105 ]
  %106 = load ptr, ptr %96, align 8, !tbaa !17
  %107 = getelementptr inbounds double, ptr %106, i64 %.2193
  store double 0.000000e+00, ptr %107, align 8, !tbaa !19
  %108 = or disjoint i64 %.2193, 1
  %109 = load ptr, ptr %96, align 8, !tbaa !17
  %110 = getelementptr inbounds double, ptr %109, i64 %108
  store double 0.000000e+00, ptr %110, align 8, !tbaa !19
  %111 = or disjoint i64 %.2193, 2
  %112 = load ptr, ptr %96, align 8, !tbaa !17
  %113 = getelementptr inbounds double, ptr %112, i64 %111
  store double 0.000000e+00, ptr %113, align 8, !tbaa !19
  %114 = or disjoint i64 %.2193, 3
  %115 = load ptr, ptr %96, align 8, !tbaa !17
  %116 = getelementptr inbounds double, ptr %115, i64 %114
  store double 0.000000e+00, ptr %116, align 8, !tbaa !19
  %117 = add nuw nsw i64 %.2193, 4
  %niter213.next.3 = add i64 %niter213, 4
  %niter213.ncmp.3 = icmp eq i64 %niter213.next.3, %unroll_iter212
  br i1 %niter213.ncmp.3, label %.preheader.loopexit.unr-lcssa, label %105, !llvm.loop !28

118:                                              ; preds = %.lr.ph198, %118
  %.3197 = phi i64 [ 0, %.lr.ph198 ], [ %127, %118 ]
  %119 = load ptr, ptr %102, align 8, !tbaa !17
  %120 = getelementptr inbounds double, ptr %119, i64 %.3197
  %121 = load double, ptr %120, align 8, !tbaa !19
  %122 = load ptr, ptr %103, align 8, !tbaa !17
  %123 = load ptr, ptr %104, align 8, !tbaa !17
  %124 = getelementptr inbounds ptr, ptr %123, i64 %.3197
  %125 = load ptr, ptr %124, align 8, !tbaa !18
  %126 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %101)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %122, i64 noundef 1, ptr noundef %125, i64 noundef 1, i64 noundef %126, double noundef %121)
  %127 = add nuw nsw i64 %.3197, 1
  %exitcond203.not = icmp eq i64 %127, %6
  br i1 %exitcond203.not, label %._crit_edge199, label %118, !llvm.loop !29

._crit_edge199:                                   ; preds = %118, %.preheader
  %128 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %4, i64 noundef %5, ptr noundef %10)
  %129 = add nsw i64 %128, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %129, ptr noundef %10)
  %130 = sub nsw i64 %5, %6
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %4, i64 noundef %130, ptr noundef %10)
  %131 = add nsw i64 %4, -1
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef nonnull %2, i64 noundef 0, i64 noundef %131, i64 noundef 0, i64 noundef %101, i1 noundef zeroext false, ptr noundef nonnull %19, i64 noundef 0, i64 noundef %101, double noundef -1.000000e+00, ptr noundef nonnull %13, i64 noundef 0, i64 noundef %131, double noundef 1.000000e+00, ptr noundef %10)
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %4, i64 noundef %130, i64 noundef %5, double noundef 1.000000e+00, ptr noundef nonnull %2, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %16, i64 noundef %6, i64 noundef 0, i64 noundef 1, double noundef 0.000000e+00, ptr noundef nonnull %17, i64 noundef 0, i64 noundef 0, ptr noundef %10)
  call void @_ZN11alglib_implL25lsfit_lsfitlinearinternalEPNS_9ae_vectorES1_PNS_9ae_matrixEllPlS1_PNS_11lsfitreportEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef nonnull %1, ptr noundef nonnull %17, i64 noundef %4, i64 noundef %130, ptr noundef nonnull %7, ptr noundef nonnull %18, ptr noundef %9, ptr noundef %10)
  store double -1.000000e+00, ptr %9, align 8, !tbaa !30
  %132 = load i64, ptr %7, align 8, !tbaa !5
  %133 = icmp slt i64 %132, 1
  br i1 %133, label %141, label %134

134:                                              ; preds = %._crit_edge199
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %8, i64 noundef %5, ptr noundef %10)
  %135 = getelementptr inbounds i8, ptr %8, i64 56
  %136 = load ptr, ptr %135, align 8, !tbaa !17
  %137 = getelementptr inbounds i8, ptr %19, i64 56
  %138 = load ptr, ptr %137, align 8, !tbaa !17
  %139 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %101)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %136, i64 noundef 1, ptr noundef %138, i64 noundef 1, i64 noundef %139)
  %140 = add nsw i64 %130, -1
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %6, i64 noundef %101, i64 noundef 0, i64 noundef %101, i1 noundef zeroext true, ptr noundef nonnull %18, i64 noundef 0, i64 noundef %140, double noundef 1.000000e+00, ptr noundef %8, i64 noundef 0, i64 noundef %101, double noundef 1.000000e+00, ptr noundef %10)
  br label %141

141:                                              ; preds = %46, %134, %._crit_edge199, %71, %44
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %10)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #4
  ret void
}

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr 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_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) 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_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

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

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

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 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 void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(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_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 #2

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i1 noundef zeroext, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr 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, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !6, i64 0, !6, i64 8, !11, i64 16, !12, i64 24, !7, i64 56}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !12, i64 40, !7, i64 72}
!16 = !{!15, !6, i64 8}
!17 = !{!7, !7, i64 0}
!18 = !{!13, !13, 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 = distinct !{!24, !22, !25}
!25 = !{!"llvm.loop.peeled.count", i32 1}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.unroll.disable"}
!28 = distinct !{!28, !22}
!29 = distinct !{!29, !22}
!30 = !{!31, !20, i64 0}
!31 = !{!"_ZTSN11alglib_impl11lsfitreportE", !20, i64 0, !6, i64 8, !6, i64 16, !20, i64 24, !20, i64 32, !20, i64 40, !20, i64 48, !20, i64 56, !15, i64 64, !10, i64 144, !10, i64 208, !10, i64 272, !20, i64 336}


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