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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9lrbuildzsEPNS_9ae_matrixEPNS_9ae_vectorEllPlPNS_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, ptr noundef %7) #2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.alglib_impl::ae_frame", align 8
  %18 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca double, align 8
  %24 = alloca i64, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i64 %2, ptr %11, align 8, !tbaa !9
  store i64 %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 64, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %30 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %30, ptr noundef %17)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 0, ptr %31, align 8, !tbaa !9
  %32 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_linearmodel_clearEPv(ptr noundef %32)
  %33 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN11alglib_impl15_lrreport_clearEPv(ptr noundef %33)
  %34 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %34, i1 noundef zeroext true)
  %35 = load ptr, ptr %16, 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 %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 3, ptr noundef %36, i1 noundef zeroext true)
  %37 = load i64, ptr %11, align 8, !tbaa !9
  %38 = load i64, ptr %12, align 8, !tbaa !9
  %39 = add nsw i64 %38, 1
  %40 = icmp sle i64 %37, %39
  br i1 %40, label %44, label %41

41:                                               ; preds = %8
  %42 = load i64, ptr %12, align 8, !tbaa !9
  %43 = icmp slt i64 %42, 1
  br i1 %43, label %44, label %47

44:                                               ; preds = %41, %8
  %45 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 -1, ptr %45, align 8, !tbaa !9
  %46 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %46)
  store i32 1, ptr %29, align 4
  br label %286

47:                                               ; preds = %41
  %48 = load i64, ptr %11, align 8, !tbaa !9
  %49 = sub nsw i64 %48, 1
  %50 = add nsw i64 %49, 1
  %51 = load i64, ptr %12, align 8, !tbaa !9
  %52 = add nsw i64 %51, 1
  %53 = add nsw i64 %52, 1
  %54 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %18, i64 noundef %50, i64 noundef %53, ptr noundef %54)
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %101, %47
  %56 = load i64, ptr %21, align 8, !tbaa !9
  %57 = load i64, ptr %11, align 8, !tbaa !9
  %58 = sub nsw i64 %57, 1
  %59 = icmp sle i64 %56, %58
  br i1 %59, label %60, label %104

60:                                               ; preds = %55
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = load i64, ptr %21, align 8, !tbaa !9
  %64 = getelementptr inbounds ptr, ptr %62, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = getelementptr inbounds double, ptr %65, i64 0
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %67, i32 0, i32 6
  %69 = load ptr, ptr %68, align 8, !tbaa !11
  %70 = load i64, ptr %21, align 8, !tbaa !9
  %71 = getelementptr inbounds ptr, ptr %69, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = getelementptr inbounds double, ptr %72, i64 0
  %74 = load i64, ptr %12, align 8, !tbaa !9
  %75 = sub nsw i64 %74, 1
  %76 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %75)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %66, i64 noundef 1, ptr noundef %73, i64 noundef 1, i64 noundef %76)
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %78 = load ptr, ptr %77, align 8, !tbaa !11
  %79 = load i64, ptr %21, align 8, !tbaa !9
  %80 = getelementptr inbounds ptr, ptr %78, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = load i64, ptr %12, align 8, !tbaa !9
  %83 = getelementptr inbounds double, ptr %81, i64 %82
  store double 0.000000e+00, ptr %83, align 8, !tbaa !12
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %84, i32 0, i32 6
  %86 = load ptr, ptr %85, align 8, !tbaa !11
  %87 = load i64, ptr %21, align 8, !tbaa !9
  %88 = getelementptr inbounds ptr, ptr %86, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = load i64, ptr %12, align 8, !tbaa !9
  %91 = getelementptr inbounds double, ptr %89, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !12
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = load i64, ptr %21, align 8, !tbaa !9
  %96 = getelementptr inbounds ptr, ptr %94, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = load i64, ptr %12, align 8, !tbaa !9
  %99 = add nsw i64 %98, 1
  %100 = getelementptr inbounds double, ptr %97, i64 %99
  store double %92, ptr %100, align 8, !tbaa !12
  br label %101

101:                                              ; preds = %60
  %102 = load i64, ptr %21, align 8, !tbaa !9
  %103 = add nsw i64 %102, 1
  store i64 %103, ptr %21, align 8, !tbaa !9
  br label %55, !llvm.loop !14

104:                                              ; preds = %55
  %105 = load i64, ptr %11, align 8, !tbaa !9
  %106 = sub nsw i64 %105, 1
  %107 = add nsw i64 %106, 1
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %107, ptr noundef %108)
  %109 = load i64, ptr %12, align 8, !tbaa !9
  %110 = sub nsw i64 %109, 1
  %111 = add nsw i64 %110, 1
  %112 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %111, ptr noundef %112)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %113

113:                                              ; preds = %194, %104
  %114 = load i64, ptr %22, align 8, !tbaa !9
  %115 = load i64, ptr %12, align 8, !tbaa !9
  %116 = sub nsw i64 %115, 1
  %117 = icmp sle i64 %114, %116
  br i1 %117, label %118, label %197

118:                                              ; preds = %113
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %120 = load ptr, ptr %119, align 8, !tbaa !11
  %121 = getelementptr inbounds double, ptr %120, i64 0
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %122, i32 0, i32 6
  %124 = load ptr, ptr %123, align 8, !tbaa !11
  %125 = getelementptr inbounds ptr, ptr %124, i64 0
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = load i64, ptr %22, align 8, !tbaa !9
  %128 = getelementptr inbounds double, ptr %126, i64 %127
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %129, i32 0, i32 2
  %131 = load i64, ptr %130, align 8, !tbaa !16
  %132 = load i64, ptr %11, align 8, !tbaa !9
  %133 = sub nsw i64 %132, 1
  %134 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %133)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %121, i64 noundef 1, ptr noundef %128, i64 noundef %131, i64 noundef %134)
  %135 = load i64, ptr %11, align 8, !tbaa !9
  %136 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl13samplemomentsEPNS_9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %19, i64 noundef %135, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %136)
  %137 = load double, ptr %25, align 8, !tbaa !12
  %138 = load ptr, ptr %16, align 8, !tbaa !5
  %139 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %137, ptr noundef %138)
  %140 = load double, ptr %26, align 8, !tbaa !12
  %141 = load ptr, ptr %16, align 8, !tbaa !5
  %142 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %140, ptr noundef %141)
  %143 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %139, double noundef %142)
  br i1 %143, label %144, label %150

144:                                              ; preds = %118
  %145 = load double, ptr %25, align 8, !tbaa !12
  %146 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %147 = load ptr, ptr %146, align 8, !tbaa !11
  %148 = load i64, ptr %22, align 8, !tbaa !9
  %149 = getelementptr inbounds double, ptr %147, i64 %148
  store double %145, ptr %149, align 8, !tbaa !12
  br label %162

150:                                              ; preds = %118
  %151 = load double, ptr %26, align 8, !tbaa !12
  %152 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %151, double noundef 0.000000e+00)
  br i1 %152, label %153, label %154

153:                                              ; preds = %150
  store double 1.000000e+00, ptr %26, align 8, !tbaa !12
  br label %154

154:                                              ; preds = %153, %150
  %155 = load double, ptr %26, align 8, !tbaa !12
  %156 = load ptr, ptr %16, align 8, !tbaa !5
  %157 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %155, ptr noundef %156)
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %159 = load ptr, ptr %158, align 8, !tbaa !11
  %160 = load i64, ptr %22, align 8, !tbaa !9
  %161 = getelementptr inbounds double, ptr %159, i64 %160
  store double %157, ptr %161, align 8, !tbaa !12
  br label %162

162:                                              ; preds = %154, %144
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %163

163:                                              ; preds = %190, %162
  %164 = load i64, ptr %21, align 8, !tbaa !9
  %165 = load i64, ptr %11, align 8, !tbaa !9
  %166 = sub nsw i64 %165, 1
  %167 = icmp sle i64 %164, %166
  br i1 %167, label %168, label %193

168:                                              ; preds = %163
  %169 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %170 = load ptr, ptr %169, align 8, !tbaa !11
  %171 = load i64, ptr %21, align 8, !tbaa !9
  %172 = getelementptr inbounds ptr, ptr %170, i64 %171
  %173 = load ptr, ptr %172, align 8, !tbaa !5
  %174 = load i64, ptr %22, align 8, !tbaa !9
  %175 = getelementptr inbounds double, ptr %173, i64 %174
  %176 = load double, ptr %175, align 8, !tbaa !12
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !11
  %179 = load i64, ptr %22, align 8, !tbaa !9
  %180 = getelementptr inbounds double, ptr %178, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !12
  %182 = fdiv double %176, %181
  %183 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %184 = load ptr, ptr %183, align 8, !tbaa !11
  %185 = load i64, ptr %21, align 8, !tbaa !9
  %186 = getelementptr inbounds ptr, ptr %184, i64 %185
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  %188 = load i64, ptr %22, align 8, !tbaa !9
  %189 = getelementptr inbounds double, ptr %187, i64 %188
  store double %182, ptr %189, align 8, !tbaa !12
  br label %190

190:                                              ; preds = %168
  %191 = load i64, ptr %21, align 8, !tbaa !9
  %192 = add nsw i64 %191, 1
  store i64 %192, ptr %21, align 8, !tbaa !9
  br label %163, !llvm.loop !20

193:                                              ; preds = %163
  br label %194

194:                                              ; preds = %193
  %195 = load i64, ptr %22, align 8, !tbaa !9
  %196 = add nsw i64 %195, 1
  store i64 %196, ptr %22, align 8, !tbaa !9
  br label %113, !llvm.loop !21

197:                                              ; preds = %113
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  %199 = load i64, ptr %11, align 8, !tbaa !9
  %200 = load i64, ptr %12, align 8, !tbaa !9
  %201 = add nsw i64 %200, 1
  %202 = load ptr, ptr %13, align 8, !tbaa !5
  %203 = load ptr, ptr %14, align 8, !tbaa !5
  %204 = load ptr, ptr %15, align 8, !tbaa !5
  %205 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_implL17linreg_lrinternalEPNS_9ae_matrixEPNS_9ae_vectorEllPlPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef %18, ptr noundef %198, i64 noundef %199, i64 noundef %201, ptr noundef %202, ptr noundef %203, ptr noundef %204, ptr noundef %205)
  %206 = load ptr, ptr %13, align 8, !tbaa !5
  %207 = load i64, ptr %206, align 8, !tbaa !9
  %208 = icmp slt i64 %207, 0
  br i1 %208, label %209, label %211

209:                                              ; preds = %197
  %210 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %210)
  store i32 1, ptr %29, align 4
  br label %286

211:                                              ; preds = %197
  %212 = load ptr, ptr %14, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.alglib_impl::linearmodel", ptr %212, i32 0, i32 0
  %214 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %213, i32 0, i32 4
  %215 = load ptr, ptr %214, align 8, !tbaa !11
  %216 = getelementptr inbounds double, ptr %215, i64 3
  %217 = load double, ptr %216, align 8, !tbaa !12
  %218 = load ptr, ptr %16, align 8, !tbaa !5
  %219 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %217, ptr noundef %218)
  store i64 %219, ptr %24, align 8, !tbaa !9
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %220

220:                                              ; preds = %281, %211
  %221 = load i64, ptr %22, align 8, !tbaa !9
  %222 = load i64, ptr %12, align 8, !tbaa !9
  %223 = sub nsw i64 %222, 1
  %224 = icmp sle i64 %221, %223
  br i1 %224, label %225, label %284

225:                                              ; preds = %220
  %226 = load ptr, ptr %14, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.alglib_impl::linearmodel", ptr %226, i32 0, i32 0
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %227, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !11
  %230 = load i64, ptr %24, align 8, !tbaa !9
  %231 = load i64, ptr %22, align 8, !tbaa !9
  %232 = add nsw i64 %230, %231
  %233 = getelementptr inbounds double, ptr %229, i64 %232
  %234 = load double, ptr %233, align 8, !tbaa !12
  %235 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %236 = load ptr, ptr %235, align 8, !tbaa !11
  %237 = load i64, ptr %22, align 8, !tbaa !9
  %238 = getelementptr inbounds double, ptr %236, i64 %237
  %239 = load double, ptr %238, align 8, !tbaa !12
  %240 = fdiv double %234, %239
  %241 = load ptr, ptr %14, align 8, !tbaa !5
  %242 = getelementptr inbounds %"struct.alglib_impl::linearmodel", ptr %241, i32 0, i32 0
  %243 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %242, i32 0, i32 4
  %244 = load ptr, ptr %243, align 8, !tbaa !11
  %245 = load i64, ptr %24, align 8, !tbaa !9
  %246 = load i64, ptr %22, align 8, !tbaa !9
  %247 = add nsw i64 %245, %246
  %248 = getelementptr inbounds double, ptr %244, i64 %247
  store double %240, ptr %248, align 8, !tbaa !12
  %249 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %250 = load ptr, ptr %249, align 8, !tbaa !11
  %251 = load i64, ptr %22, align 8, !tbaa !9
  %252 = getelementptr inbounds double, ptr %250, i64 %251
  %253 = load double, ptr %252, align 8, !tbaa !12
  %254 = fdiv double 1.000000e+00, %253
  store double %254, ptr %23, align 8, !tbaa !12
  %255 = load ptr, ptr %15, align 8, !tbaa !5
  %256 = getelementptr inbounds %"struct.alglib_impl::lrreport", ptr %255, i32 0, i32 0
  %257 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %256, i32 0, i32 6
  %258 = load ptr, ptr %257, align 8, !tbaa !11
  %259 = load i64, ptr %22, align 8, !tbaa !9
  %260 = getelementptr inbounds ptr, ptr %258, i64 %259
  %261 = load ptr, ptr %260, align 8, !tbaa !5
  %262 = getelementptr inbounds double, ptr %261, i64 0
  %263 = load i64, ptr %12, align 8, !tbaa !9
  %264 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %263)
  %265 = load double, ptr %23, align 8, !tbaa !12
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %262, i64 noundef 1, i64 noundef %264, double noundef %265)
  %266 = load ptr, ptr %15, align 8, !tbaa !5
  %267 = getelementptr inbounds %"struct.alglib_impl::lrreport", ptr %266, i32 0, i32 0
  %268 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %267, i32 0, i32 6
  %269 = load ptr, ptr %268, align 8, !tbaa !11
  %270 = getelementptr inbounds ptr, ptr %269, i64 0
  %271 = load ptr, ptr %270, align 8, !tbaa !5
  %272 = load i64, ptr %22, align 8, !tbaa !9
  %273 = getelementptr inbounds double, ptr %271, i64 %272
  %274 = load ptr, ptr %15, align 8, !tbaa !5
  %275 = getelementptr inbounds %"struct.alglib_impl::lrreport", ptr %274, i32 0, i32 0
  %276 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %275, i32 0, i32 2
  %277 = load i64, ptr %276, align 8, !tbaa !22
  %278 = load i64, ptr %12, align 8, !tbaa !9
  %279 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %278)
  %280 = load double, ptr %23, align 8, !tbaa !12
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %273, i64 noundef %277, i64 noundef %279, double noundef %280)
  br label %281

281:                                              ; preds = %225
  %282 = load i64, ptr %22, align 8, !tbaa !9
  %283 = add nsw i64 %282, 1
  store i64 %283, ptr %22, align 8, !tbaa !9
  br label %220, !llvm.loop !25

284:                                              ; preds = %220
  %285 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %285)
  store i32 0, ptr %29, align 4
  br label %286

286:                                              ; preds = %284, %209, %44
  call void @llvm.lifetime.end.p0(i64 8, 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 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 64, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #4
  %287 = load i32, ptr %29, align 4
  switch i32 %287, label %289 [
    i32 0, label %288
    i32 1, label %288
  ]

288:                                              ; preds = %286, %286
  ret void

289:                                              ; preds = %286
  unreachable
}

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

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

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

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

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

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

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

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

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

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) #3

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL17linreg_lrinternalEPNS_9ae_matrixEPNS_9ae_vectorEllPlPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr 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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !10, i64 16}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !18, i64 32, !19, i64 40, !7, i64 72}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = !{!23, !10, i64 16}
!23 = !{!"_ZTSN11alglib_impl8lrreportE", !17, i64 0, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !10, i64 128, !24, i64 136}
!24 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !18, i64 16, !19, i64 24, !7, i64 56}
!25 = distinct !{!25, !15}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::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 }

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9lrbuildzsEPNS_9ae_matrixEPNS_9ae_vectorEllPlPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #2 {
  %9 = alloca %"struct.alglib_impl::ae_frame", align 8
  %10 = alloca %"struct.alglib_impl::ae_matrix", 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 %9) #4
  call void @llvm.lifetime.start.p0(i64 80, 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 %7, ptr noundef nonnull %9)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %10, i8 0, i64 80, 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)
  store i64 0, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_linearmodel_clearEPv(ptr noundef %5)
  call void @_ZN11alglib_impl15_lrreport_clearEPv(ptr noundef %6)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %7, 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 %7, 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 %7, i1 noundef zeroext true)
  %17 = add nsw i64 %3, 1
  %18 = icmp sge i64 %17, %2
  %19 = icmp slt i64 %3, 1
  %or.cond = or i1 %19, %18
  br i1 %or.cond, label %20, label %21

20:                                               ; preds = %8
  store i64 -1, ptr %4, align 8, !tbaa !5
  br label %._crit_edge113

21:                                               ; preds = %8
  %22 = add nsw i64 %2, -1
  %23 = add nuw nsw i64 %3, 2
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %2, i64 noundef %23, ptr noundef %7)
  %.not.not97 = icmp sgt i64 %2, 0
  br i1 %.not.not97, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %21
  %24 = getelementptr inbounds i8, ptr %10, i64 72
  %25 = getelementptr inbounds i8, ptr %0, i64 72
  %26 = add nsw i64 %3, -1
  br label %27

27:                                               ; preds = %.lr.ph, %27
  %.098 = phi i64 [ 0, %.lr.ph ], [ %48, %27 ]
  %28 = load ptr, ptr %24, align 8, !tbaa !9
  %29 = getelementptr inbounds ptr, ptr %28, i64 %.098
  %30 = load ptr, ptr %29, align 8, !tbaa !10
  %31 = load ptr, ptr %25, align 8, !tbaa !9
  %32 = getelementptr inbounds ptr, ptr %31, i64 %.098
  %33 = load ptr, ptr %32, align 8, !tbaa !10
  %34 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %26)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %30, i64 noundef 1, ptr noundef %33, i64 noundef 1, i64 noundef %34)
  %35 = load ptr, ptr %24, align 8, !tbaa !9
  %36 = getelementptr inbounds ptr, ptr %35, i64 %.098
  %37 = load ptr, ptr %36, align 8, !tbaa !10
  %38 = getelementptr inbounds double, ptr %37, i64 %3
  store double 0.000000e+00, ptr %38, align 8, !tbaa !12
  %39 = load ptr, ptr %25, align 8, !tbaa !9
  %40 = getelementptr inbounds ptr, ptr %39, i64 %.098
  %41 = load ptr, ptr %40, align 8, !tbaa !10
  %42 = getelementptr inbounds double, ptr %41, i64 %3
  %43 = load double, ptr %42, align 8, !tbaa !12
  %44 = load ptr, ptr %24, align 8, !tbaa !9
  %45 = getelementptr inbounds ptr, ptr %44, i64 %.098
  %46 = load ptr, ptr %45, align 8, !tbaa !10
  %47 = getelementptr inbounds double, ptr %46, i64 %17
  store double %43, ptr %47, align 8, !tbaa !12
  %48 = add nuw nsw i64 %.098, 1
  %exitcond.not = icmp eq i64 %48, %2
  br i1 %exitcond.not, label %._crit_edge, label %27, !llvm.loop !14

._crit_edge:                                      ; preds = %27, %21
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %2, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %3, ptr noundef %7)
  %.not.not94104 = icmp sgt i64 %3, 0
  br i1 %.not.not94104, label %.lr.ph107, label %._crit_edge108

.lr.ph107:                                        ; preds = %._crit_edge
  %49 = getelementptr inbounds i8, ptr %11, i64 56
  %50 = getelementptr inbounds i8, ptr %0, i64 72
  %51 = getelementptr inbounds i8, ptr %0, i64 16
  %52 = getelementptr inbounds i8, ptr %12, i64 56
  %53 = getelementptr inbounds i8, ptr %10, i64 72
  %xtraiter = and i64 %2, 1
  %54 = icmp eq i64 %2, 1
  %unroll_iter = and i64 %2, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %55

55:                                               ; preds = %.lr.ph107, %._crit_edge103
  %.087105 = phi i64 [ 0, %.lr.ph107 ], [ %108, %._crit_edge103 ]
  %56 = load ptr, ptr %49, align 8, !tbaa !9
  %57 = load ptr, ptr %50, align 8, !tbaa !9
  %58 = load ptr, ptr %57, align 8, !tbaa !10
  %59 = getelementptr inbounds double, ptr %58, i64 %.087105
  %60 = load i64, ptr %51, align 8, !tbaa !16
  %61 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %22)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %56, i64 noundef 1, ptr noundef %59, i64 noundef %60, i64 noundef %61)
  call void @_ZN11alglib_impl13samplemomentsEPNS_9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %2, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef %7)
  %62 = load double, ptr %13, align 8, !tbaa !12
  %63 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %62, ptr noundef %7)
  %64 = load double, ptr %14, align 8, !tbaa !12
  %65 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %64, ptr noundef %7)
  %66 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %63, double noundef %65)
  br i1 %66, label %67, label %69

67:                                               ; preds = %55
  %68 = load double, ptr %13, align 8, !tbaa !12
  br label %76

69:                                               ; preds = %55
  %70 = load double, ptr %14, align 8, !tbaa !12
  %71 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %70, double noundef 0.000000e+00)
  br i1 %71, label %72, label %._crit_edge117

._crit_edge117:                                   ; preds = %69
  %.pre = load double, ptr %14, align 8, !tbaa !12
  br label %73

72:                                               ; preds = %69
  store double 1.000000e+00, ptr %14, align 8, !tbaa !12
  br label %73

73:                                               ; preds = %._crit_edge117, %72
  %74 = phi double [ %.pre, %._crit_edge117 ], [ 1.000000e+00, %72 ]
  %75 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %74, ptr noundef %7)
  br label %76

76:                                               ; preds = %73, %67
  %.sink = phi double [ %75, %73 ], [ %68, %67 ]
  %77 = load ptr, ptr %52, align 8, !tbaa !9
  %78 = getelementptr inbounds double, ptr %77, i64 %.087105
  store double %.sink, ptr %78, align 8, !tbaa !12
  br i1 %.not.not97, label %.lr.ph102.preheader, label %._crit_edge103

.lr.ph102.preheader:                              ; preds = %76
  br i1 %54, label %._crit_edge103.loopexit.unr-lcssa, label %.lr.ph102

.lr.ph102:                                        ; preds = %.lr.ph102.preheader, %.lr.ph102
  %.1100 = phi i64 [ %98, %.lr.ph102 ], [ 0, %.lr.ph102.preheader ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph102 ], [ 0, %.lr.ph102.preheader ]
  %79 = load ptr, ptr %53, align 8, !tbaa !9
  %80 = getelementptr inbounds ptr, ptr %79, i64 %.1100
  %81 = load ptr, ptr %80, align 8, !tbaa !10
  %82 = getelementptr inbounds double, ptr %81, i64 %.087105
  %83 = load double, ptr %82, align 8, !tbaa !12
  %84 = load ptr, ptr %52, align 8, !tbaa !9
  %85 = getelementptr inbounds double, ptr %84, i64 %.087105
  %86 = load double, ptr %85, align 8, !tbaa !12
  %87 = fdiv double %83, %86
  store double %87, ptr %82, align 8, !tbaa !12
  %88 = or disjoint i64 %.1100, 1
  %89 = load ptr, ptr %53, align 8, !tbaa !9
  %90 = getelementptr inbounds ptr, ptr %89, i64 %88
  %91 = load ptr, ptr %90, align 8, !tbaa !10
  %92 = getelementptr inbounds double, ptr %91, i64 %.087105
  %93 = load double, ptr %92, align 8, !tbaa !12
  %94 = load ptr, ptr %52, align 8, !tbaa !9
  %95 = getelementptr inbounds double, ptr %94, i64 %.087105
  %96 = load double, ptr %95, align 8, !tbaa !12
  %97 = fdiv double %93, %96
  store double %97, ptr %92, align 8, !tbaa !12
  %98 = add nuw nsw i64 %.1100, 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_edge103.loopexit.unr-lcssa, label %.lr.ph102, !llvm.loop !20

._crit_edge103.loopexit.unr-lcssa:                ; preds = %.lr.ph102, %.lr.ph102.preheader
  %.1100.unr = phi i64 [ 0, %.lr.ph102.preheader ], [ %98, %.lr.ph102 ]
  br i1 %lcmp.mod.not, label %._crit_edge103, label %.lr.ph102.epil

.lr.ph102.epil:                                   ; preds = %._crit_edge103.loopexit.unr-lcssa
  %99 = load ptr, ptr %53, align 8, !tbaa !9
  %100 = getelementptr inbounds ptr, ptr %99, i64 %.1100.unr
  %101 = load ptr, ptr %100, align 8, !tbaa !10
  %102 = getelementptr inbounds double, ptr %101, i64 %.087105
  %103 = load double, ptr %102, align 8, !tbaa !12
  %104 = load ptr, ptr %52, align 8, !tbaa !9
  %105 = getelementptr inbounds double, ptr %104, i64 %.087105
  %106 = load double, ptr %105, align 8, !tbaa !12
  %107 = fdiv double %103, %106
  store double %107, ptr %102, align 8, !tbaa !12
  br label %._crit_edge103

._crit_edge103:                                   ; preds = %.lr.ph102.epil, %._crit_edge103.loopexit.unr-lcssa, %76
  %108 = add nuw nsw i64 %.087105, 1
  %exitcond115.not = icmp eq i64 %108, %3
  br i1 %exitcond115.not, label %._crit_edge108, label %55, !llvm.loop !21

._crit_edge108:                                   ; preds = %._crit_edge103, %._crit_edge
  call void @_ZN11alglib_implL17linreg_lrinternalEPNS_9ae_matrixEPNS_9ae_vectorEllPlPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef %1, i64 noundef %2, i64 noundef %17, ptr noundef nonnull %4, ptr noundef %5, ptr noundef %6, ptr noundef %7)
  %109 = load i64, ptr %4, align 8, !tbaa !5
  %110 = icmp slt i64 %109, 0
  br i1 %110, label %._crit_edge113, label %111

111:                                              ; preds = %._crit_edge108
  %112 = getelementptr inbounds i8, ptr %5, i64 56
  %113 = load ptr, ptr %112, align 8, !tbaa !9
  %114 = getelementptr inbounds i8, ptr %113, i64 24
  %115 = load double, ptr %114, align 8, !tbaa !12
  %116 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %115, ptr noundef %7)
  br i1 %.not.not94104, label %.lr.ph112, label %._crit_edge113

.lr.ph112:                                        ; preds = %111
  %117 = getelementptr inbounds i8, ptr %12, i64 56
  %118 = getelementptr inbounds i8, ptr %6, i64 72
  %119 = getelementptr inbounds i8, ptr %6, i64 16
  br label %120

120:                                              ; preds = %.lr.ph112, %120
  %.188110 = phi i64 [ 0, %.lr.ph112 ], [ %142, %120 ]
  %121 = load ptr, ptr %112, align 8, !tbaa !9
  %122 = getelementptr double, ptr %121, i64 %116
  %123 = getelementptr double, ptr %122, i64 %.188110
  %124 = load double, ptr %123, align 8, !tbaa !12
  %125 = load ptr, ptr %117, align 8, !tbaa !9
  %126 = getelementptr inbounds double, ptr %125, i64 %.188110
  %127 = load double, ptr %126, align 8, !tbaa !12
  %128 = fdiv double %124, %127
  store double %128, ptr %123, align 8, !tbaa !12
  %129 = load ptr, ptr %117, align 8, !tbaa !9
  %130 = getelementptr inbounds double, ptr %129, i64 %.188110
  %131 = load double, ptr %130, align 8, !tbaa !12
  %132 = fdiv double 1.000000e+00, %131
  %133 = load ptr, ptr %118, align 8, !tbaa !9
  %134 = getelementptr inbounds ptr, ptr %133, i64 %.188110
  %135 = load ptr, ptr %134, align 8, !tbaa !10
  %136 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %3)
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %135, i64 noundef 1, i64 noundef %136, double noundef %132)
  %137 = load ptr, ptr %118, align 8, !tbaa !9
  %138 = load ptr, ptr %137, align 8, !tbaa !10
  %139 = getelementptr inbounds double, ptr %138, i64 %.188110
  %140 = load i64, ptr %119, align 8, !tbaa !22
  %141 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %3)
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %139, i64 noundef %140, i64 noundef %141, double noundef %132)
  %142 = add nuw nsw i64 %.188110, 1
  %exitcond116.not = icmp eq i64 %142, %3
  br i1 %exitcond116.not, label %._crit_edge113, label %120, !llvm.loop !25

._crit_edge113:                                   ; preds = %120, %111, %._crit_edge108, %20
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %7)
  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 80, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #4
  ret void
}

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

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

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL17linreg_lrinternalEPNS_9ae_matrixEPNS_9ae_vectorEllPlPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr 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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !6, i64 16}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !18, i64 32, !19, i64 40, !7, i64 72}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = !{!23, !6, i64 16}
!23 = !{!"_ZTSN11alglib_impl8lrreportE", !17, i64 0, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !6, i64 128, !24, i64 136}
!24 = !{!"_ZTSN11alglib_impl9ae_vectorE", !6, i64 0, !6, i64 8, !18, i64 16, !19, i64 24, !7, i64 56}
!25 = distinct !{!25, !15}


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