; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src (solvers)

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

@.str.354 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.355 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.356 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.357 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.358 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.359 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.360 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.361 = external hidden unnamed_addr constant [51 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_impl14rmatrixsolvelsEPKNS_9ae_matrixEllPKNS_9ae_vectorEdPS3_PNS_19densesolverlsreportEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, double noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #3 {
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, 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_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %20 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca %"struct.alglib_impl::ae_vector", align 8
  %25 = alloca %"struct.alglib_impl::ae_vector", align 8
  %26 = alloca %"struct.alglib_impl::ae_vector", align 8
  %27 = alloca %"struct.alglib_impl::ae_vector", align 8
  %28 = alloca %"struct.alglib_impl::ae_vector", align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca i8, align 1
  %36 = alloca i8, align 1
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  %39 = alloca i8, align 1
  %40 = alloca i8, align 1
  %41 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i64 %1, ptr %10, align 8, !tbaa !9
  store i64 %2, ptr %11, align 8, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !5
  store double %4, ptr %13, align 8, !tbaa !11
  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) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #5
  %42 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %42, ptr noundef %17)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 64, i1 false)
  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 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 64, i1 false)
  %43 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %43)
  %44 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN11alglib_impl26_densesolverlsreport_clearEPv(ptr noundef %44)
  %45 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 3, ptr noundef %45, i1 noundef zeroext true)
  %46 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %46, i1 noundef zeroext true)
  %47 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %47, i1 noundef zeroext true)
  %48 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 3, ptr noundef %48, i1 noundef zeroext true)
  %49 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 3, ptr noundef %49, i1 noundef zeroext true)
  %50 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 3, ptr noundef %50, i1 noundef zeroext true)
  %51 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %24, i64 noundef 0, i64 noundef 3, ptr noundef %51, i1 noundef zeroext true)
  %52 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %25, i64 noundef 0, i64 noundef 3, ptr noundef %52, i1 noundef zeroext true)
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %26, i64 noundef 0, i64 noundef 3, ptr noundef %53, i1 noundef zeroext true)
  %54 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %27, i64 noundef 0, i64 noundef 3, ptr noundef %54, i1 noundef zeroext true)
  %55 = load ptr, ptr %16, 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 %55, i1 noundef zeroext true)
  %56 = load i64, ptr %10, align 8, !tbaa !9
  %57 = icmp sgt i64 %56, 0
  %58 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %57, ptr noundef @.str.354, ptr noundef %58)
  %59 = load i64, ptr %11, align 8, !tbaa !9
  %60 = icmp sgt i64 %59, 0
  %61 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %60, ptr noundef @.str.355, ptr noundef %61)
  %62 = load double, ptr %13, align 8, !tbaa !11
  %63 = load ptr, ptr %16, align 8, !tbaa !5
  %64 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %62, ptr noundef %63)
  br i1 %64, label %65, label %68

65:                                               ; preds = %8
  %66 = load double, ptr %13, align 8, !tbaa !11
  %67 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %66, double noundef 0.000000e+00)
  br label %68

68:                                               ; preds = %65, %8
  %69 = phi i1 [ false, %8 ], [ %67, %65 ]
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %69, ptr noundef @.str.356, ptr noundef %70)
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %71, i32 0, i32 0
  %73 = load i64, ptr %72, align 8, !tbaa !13
  %74 = load i64, ptr %10, align 8, !tbaa !9
  %75 = icmp sge i64 %73, %74
  %76 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %75, ptr noundef @.str.357, ptr noundef %76)
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %77, i32 0, i32 1
  %79 = load i64, ptr %78, align 8, !tbaa !17
  %80 = load i64, ptr %11, align 8, !tbaa !9
  %81 = icmp sge i64 %79, %80
  %82 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %81, ptr noundef @.str.358, ptr noundef %82)
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %83, i32 0, i32 0
  %85 = load i64, ptr %84, align 8, !tbaa !18
  %86 = load i64, ptr %10, align 8, !tbaa !9
  %87 = icmp sge i64 %85, %86
  %88 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %87, ptr noundef @.str.359, ptr noundef %88)
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = load i64, ptr %10, align 8, !tbaa !9
  %91 = load i64, ptr %11, align 8, !tbaa !9
  %92 = load ptr, ptr %16, align 8, !tbaa !5
  %93 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %89, i64 noundef %90, i64 noundef %91, ptr noundef %92)
  %94 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %93, ptr noundef @.str.360, ptr noundef %94)
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = load i64, ptr %10, align 8, !tbaa !9
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  %98 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %95, i64 noundef %96, ptr noundef %97)
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %98, ptr noundef @.str.361, ptr noundef %99)
  %100 = load double, ptr %13, align 8, !tbaa !11
  %101 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %100, double noundef 0.000000e+00)
  br i1 %101, label %102, label %103

102:                                              ; preds = %68
  store double 5.000000e-13, ptr %13, align 8, !tbaa !11
  br label %103

103:                                              ; preds = %102, %68
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = load i64, ptr %10, align 8, !tbaa !9
  %106 = load i64, ptr %11, align 8, !tbaa !9
  %107 = load ptr, ptr %16, align 8, !tbaa !5
  %108 = call noundef zeroext i1 @_ZN11alglib_impl10rmatrixsvdEPKNS_9ae_matrixElllllPNS_9ae_vectorEPS0_S5_PNS_8ae_stateE(ptr noundef %104, i64 noundef %105, i64 noundef %106, i64 noundef 1, i64 noundef 2, i64 noundef 2, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %107)
  %109 = xor i1 %108, true
  %110 = zext i1 %109 to i8
  store i8 %110, ptr %35, align 1, !tbaa !20
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %112 = load ptr, ptr %111, align 8, !tbaa !21
  %113 = getelementptr inbounds double, ptr %112, i64 0
  %114 = load double, ptr %113, align 8, !tbaa !11
  %115 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %114, double noundef 0.000000e+00)
  %116 = zext i1 %115 to i8
  store i8 %116, ptr %36, align 1, !tbaa !20
  %117 = load i8, ptr %35, align 1, !tbaa !20, !range !22, !noundef !23
  %118 = trunc i8 %117 to i1
  br i1 %118, label %122, label %119

119:                                              ; preds = %103
  %120 = load i8, ptr %36, align 1, !tbaa !20, !range !22, !noundef !23
  %121 = trunc i8 %120 to i1
  br i1 %121, label %122, label %208

122:                                              ; preds = %119, %103
  %123 = load i8, ptr %35, align 1, !tbaa !20, !range !22, !noundef !23
  %124 = trunc i8 %123 to i1
  br i1 %124, label %125, label %128

125:                                              ; preds = %122
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %126, i32 0, i32 0
  store i64 -4, ptr %127, align 8, !tbaa !24
  br label %131

128:                                              ; preds = %122
  %129 = load ptr, ptr %15, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %129, i32 0, i32 0
  store i64 1, ptr %130, align 8, !tbaa !24
  br label %131

131:                                              ; preds = %128, %125
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = load i64, ptr %11, align 8, !tbaa !9
  %134 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %132, i64 noundef %133, ptr noundef %134)
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %135

135:                                              ; preds = %146, %131
  %136 = load i64, ptr %29, align 8, !tbaa !9
  %137 = load i64, ptr %11, align 8, !tbaa !9
  %138 = sub nsw i64 %137, 1
  %139 = icmp sle i64 %136, %138
  br i1 %139, label %140, label %149

140:                                              ; preds = %135
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %141, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !21
  %144 = load i64, ptr %29, align 8, !tbaa !9
  %145 = getelementptr inbounds double, ptr %143, i64 %144
  store double 0.000000e+00, ptr %145, align 8, !tbaa !11
  br label %146

146:                                              ; preds = %140
  %147 = load i64, ptr %29, align 8, !tbaa !9
  %148 = add nsw i64 %147, 1
  store i64 %148, ptr %29, align 8, !tbaa !9
  br label %135, !llvm.loop !26

149:                                              ; preds = %135
  %150 = load i64, ptr %11, align 8, !tbaa !9
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %151, i32 0, i32 3
  store i64 %150, ptr %152, align 8, !tbaa !28
  %153 = load i64, ptr %11, align 8, !tbaa !9
  %154 = load ptr, ptr %15, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %154, i32 0, i32 4
  store i64 %153, ptr %155, align 8, !tbaa !29
  %156 = load ptr, ptr %15, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %156, i32 0, i32 2
  %158 = load i64, ptr %11, align 8, !tbaa !9
  %159 = load i64, ptr %11, align 8, !tbaa !9
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %157, i64 noundef %158, i64 noundef %159, ptr noundef %160)
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %161

161:                                              ; preds = %201, %149
  %162 = load i64, ptr %29, align 8, !tbaa !9
  %163 = load i64, ptr %11, align 8, !tbaa !9
  %164 = sub nsw i64 %163, 1
  %165 = icmp sle i64 %162, %164
  br i1 %165, label %166, label %204

166:                                              ; preds = %161
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %167

167:                                              ; preds = %197, %166
  %168 = load i64, ptr %30, align 8, !tbaa !9
  %169 = load i64, ptr %11, align 8, !tbaa !9
  %170 = sub nsw i64 %169, 1
  %171 = icmp sle i64 %168, %170
  br i1 %171, label %172, label %200

172:                                              ; preds = %167
  %173 = load i64, ptr %29, align 8, !tbaa !9
  %174 = load i64, ptr %30, align 8, !tbaa !9
  %175 = icmp eq i64 %173, %174
  br i1 %175, label %176, label %186

176:                                              ; preds = %172
  %177 = load ptr, ptr %15, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %177, i32 0, i32 2
  %179 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %178, i32 0, i32 6
  %180 = load ptr, ptr %179, align 8, !tbaa !21
  %181 = load i64, ptr %29, align 8, !tbaa !9
  %182 = getelementptr inbounds ptr, ptr %180, i64 %181
  %183 = load ptr, ptr %182, align 8, !tbaa !5
  %184 = load i64, ptr %30, align 8, !tbaa !9
  %185 = getelementptr inbounds double, ptr %183, i64 %184
  store double 1.000000e+00, ptr %185, align 8, !tbaa !11
  br label %196

186:                                              ; preds = %172
  %187 = load ptr, ptr %15, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %187, i32 0, i32 2
  %189 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %188, i32 0, i32 6
  %190 = load ptr, ptr %189, align 8, !tbaa !21
  %191 = load i64, ptr %29, align 8, !tbaa !9
  %192 = getelementptr inbounds ptr, ptr %190, i64 %191
  %193 = load ptr, ptr %192, align 8, !tbaa !5
  %194 = load i64, ptr %30, align 8, !tbaa !9
  %195 = getelementptr inbounds double, ptr %193, i64 %194
  store double 0.000000e+00, ptr %195, align 8, !tbaa !11
  br label %196

196:                                              ; preds = %186, %176
  br label %197

197:                                              ; preds = %196
  %198 = load i64, ptr %30, align 8, !tbaa !9
  %199 = add nsw i64 %198, 1
  store i64 %199, ptr %30, align 8, !tbaa !9
  br label %167, !llvm.loop !30

200:                                              ; preds = %167
  br label %201

201:                                              ; preds = %200
  %202 = load i64, ptr %29, align 8, !tbaa !9
  %203 = add nsw i64 %202, 1
  store i64 %203, ptr %29, align 8, !tbaa !9
  br label %161, !llvm.loop !31

204:                                              ; preds = %161
  %205 = load ptr, ptr %15, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %205, i32 0, i32 1
  store double 0.000000e+00, ptr %206, align 8, !tbaa !32
  %207 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %207)
  store i32 1, ptr %41, align 4
  br label %589

208:                                              ; preds = %119
  %209 = load i64, ptr %11, align 8, !tbaa !9
  %210 = load i64, ptr %10, align 8, !tbaa !9
  %211 = load ptr, ptr %16, align 8, !tbaa !5
  %212 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %209, i64 noundef %210, ptr noundef %211)
  store i64 %212, ptr %31, align 8, !tbaa !9
  %213 = load i64, ptr %31, align 8, !tbaa !9
  %214 = load i64, ptr %11, align 8, !tbaa !9
  %215 = icmp eq i64 %213, %214
  br i1 %215, label %216, label %230

216:                                              ; preds = %208
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !21
  %219 = load i64, ptr %31, align 8, !tbaa !9
  %220 = sub nsw i64 %219, 1
  %221 = getelementptr inbounds double, ptr %218, i64 %220
  %222 = load double, ptr %221, align 8, !tbaa !11
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !21
  %225 = getelementptr inbounds double, ptr %224, i64 0
  %226 = load double, ptr %225, align 8, !tbaa !11
  %227 = fdiv double %222, %226
  %228 = load ptr, ptr %15, align 8, !tbaa !5
  %229 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %228, i32 0, i32 1
  store double %227, ptr %229, align 8, !tbaa !32
  br label %233

230:                                              ; preds = %208
  %231 = load ptr, ptr %15, align 8, !tbaa !5
  %232 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %231, i32 0, i32 1
  store double 0.000000e+00, ptr %232, align 8, !tbaa !32
  br label %233

233:                                              ; preds = %230, %216
  %234 = load i64, ptr %11, align 8, !tbaa !9
  %235 = load ptr, ptr %15, align 8, !tbaa !5
  %236 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %235, i32 0, i32 3
  store i64 %234, ptr %236, align 8, !tbaa !28
  %237 = load ptr, ptr %15, align 8, !tbaa !5
  %238 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %237, i32 0, i32 0
  store i64 1, ptr %238, align 8, !tbaa !24
  %239 = load i64, ptr %31, align 8, !tbaa !9
  %240 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %239, ptr noundef %240)
  %241 = load i64, ptr %31, align 8, !tbaa !9
  %242 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %23, i64 noundef %241, ptr noundef %242)
  %243 = load ptr, ptr %14, align 8, !tbaa !5
  %244 = load i64, ptr %11, align 8, !tbaa !9
  %245 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %243, i64 noundef %244, ptr noundef %245)
  %246 = load i64, ptr %11, align 8, !tbaa !9
  %247 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %24, i64 noundef %246, ptr noundef %247)
  %248 = load i64, ptr %11, align 8, !tbaa !9
  %249 = add nsw i64 %248, 1
  %250 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef %249, ptr noundef %250)
  %251 = load i64, ptr %11, align 8, !tbaa !9
  %252 = add nsw i64 %251, 1
  %253 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %26, i64 noundef %252, ptr noundef %253)
  %254 = load i64, ptr %11, align 8, !tbaa !9
  %255 = add nsw i64 %254, 1
  %256 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %27, i64 noundef %255, ptr noundef %256)
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %257

257:                                              ; preds = %268, %233
  %258 = load i64, ptr %29, align 8, !tbaa !9
  %259 = load i64, ptr %11, align 8, !tbaa !9
  %260 = sub nsw i64 %259, 1
  %261 = icmp sle i64 %258, %260
  br i1 %261, label %262, label %271

262:                                              ; preds = %257
  %263 = load ptr, ptr %14, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %263, i32 0, i32 4
  %265 = load ptr, ptr %264, align 8, !tbaa !21
  %266 = load i64, ptr %29, align 8, !tbaa !9
  %267 = getelementptr inbounds double, ptr %265, i64 %266
  store double 0.000000e+00, ptr %267, align 8, !tbaa !11
  br label %268

268:                                              ; preds = %262
  %269 = load i64, ptr %29, align 8, !tbaa !9
  %270 = add nsw i64 %269, 1
  store i64 %270, ptr %29, align 8, !tbaa !9
  br label %257, !llvm.loop !33

271:                                              ; preds = %257
  %272 = load i64, ptr %31, align 8, !tbaa !9
  store i64 %272, ptr %32, align 8, !tbaa !9
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %273

273:                                              ; preds = %294, %271
  %274 = load i64, ptr %29, align 8, !tbaa !9
  %275 = load i64, ptr %31, align 8, !tbaa !9
  %276 = sub nsw i64 %275, 1
  %277 = icmp sle i64 %274, %276
  br i1 %277, label %278, label %297

278:                                              ; preds = %273
  %279 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %280 = load ptr, ptr %279, align 8, !tbaa !21
  %281 = load i64, ptr %29, align 8, !tbaa !9
  %282 = getelementptr inbounds double, ptr %280, i64 %281
  %283 = load double, ptr %282, align 8, !tbaa !11
  %284 = load double, ptr %13, align 8, !tbaa !11
  %285 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %286 = load ptr, ptr %285, align 8, !tbaa !21
  %287 = getelementptr inbounds double, ptr %286, i64 0
  %288 = load double, ptr %287, align 8, !tbaa !11
  %289 = fmul double %284, %288
  %290 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %283, double noundef %289)
  br i1 %290, label %291, label %293

291:                                              ; preds = %278
  %292 = load i64, ptr %29, align 8, !tbaa !9
  store i64 %292, ptr %32, align 8, !tbaa !9
  br label %297

293:                                              ; preds = %278
  br label %294

294:                                              ; preds = %293
  %295 = load i64, ptr %29, align 8, !tbaa !9
  %296 = add nsw i64 %295, 1
  store i64 %296, ptr %29, align 8, !tbaa !9
  br label %273, !llvm.loop !34

297:                                              ; preds = %291, %273
  %298 = load i64, ptr %11, align 8, !tbaa !9
  %299 = load i64, ptr %32, align 8, !tbaa !9
  %300 = sub nsw i64 %298, %299
  %301 = load ptr, ptr %15, align 8, !tbaa !5
  %302 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %301, i32 0, i32 4
  store i64 %300, ptr %302, align 8, !tbaa !29
  %303 = load i64, ptr %11, align 8, !tbaa !9
  %304 = load ptr, ptr %15, align 8, !tbaa !5
  %305 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %304, i32 0, i32 1
  %306 = load double, ptr %305, align 8, !tbaa !32
  %307 = load ptr, ptr %16, align 8, !tbaa !5
  %308 = call noundef i64 @_ZN11alglib_implL38directdensesolvers_densesolverrfsmaxv2EldPNS_8ae_stateE(i64 noundef %303, double noundef %306, ptr noundef %307)
  store i64 %308, ptr %38, align 8, !tbaa !9
  store i8 0, ptr %39, align 1, !tbaa !20
  %309 = load i64, ptr %10, align 8, !tbaa !9
  %310 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %309, ptr noundef %310)
  store i64 0, ptr %37, align 8, !tbaa !9
  br label %311

311:                                              ; preds = %536, %297
  %312 = load i64, ptr %37, align 8, !tbaa !9
  %313 = load i64, ptr %38, align 8, !tbaa !9
  %314 = icmp sle i64 %312, %313
  br i1 %314, label %315, label %539

315:                                              ; preds = %311
  %316 = load i8, ptr %39, align 1, !tbaa !20, !range !22, !noundef !23
  %317 = trunc i8 %316 to i1
  br i1 %317, label %318, label %319

318:                                              ; preds = %315
  br label %539

319:                                              ; preds = %315
  %320 = load i64, ptr %37, align 8, !tbaa !9
  %321 = icmp eq i64 %320, 0
  br i1 %321, label %322, label %333

322:                                              ; preds = %319
  %323 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %324 = load ptr, ptr %323, align 8, !tbaa !21
  %325 = getelementptr inbounds double, ptr %324, i64 0
  %326 = load ptr, ptr %12, align 8, !tbaa !5
  %327 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %326, i32 0, i32 4
  %328 = load ptr, ptr %327, align 8, !tbaa !21
  %329 = getelementptr inbounds double, ptr %328, i64 0
  %330 = load i64, ptr %10, align 8, !tbaa !9
  %331 = sub nsw i64 %330, 1
  %332 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %331)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %325, i64 noundef 1, ptr noundef %329, i64 noundef 1, i64 noundef %332)
  br label %406

333:                                              ; preds = %319
  store i8 1, ptr %40, align 1, !tbaa !20
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %334

334:                                              ; preds = %398, %333
  %335 = load i64, ptr %29, align 8, !tbaa !9
  %336 = load i64, ptr %10, align 8, !tbaa !9
  %337 = sub nsw i64 %336, 1
  %338 = icmp sle i64 %335, %337
  br i1 %338, label %339, label %401

339:                                              ; preds = %334
  %340 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %341 = load ptr, ptr %340, align 8, !tbaa !21
  %342 = getelementptr inbounds double, ptr %341, i64 0
  %343 = load ptr, ptr %9, align 8, !tbaa !5
  %344 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %343, i32 0, i32 6
  %345 = load ptr, ptr %344, align 8, !tbaa !21
  %346 = load i64, ptr %29, align 8, !tbaa !9
  %347 = getelementptr inbounds ptr, ptr %345, i64 %346
  %348 = load ptr, ptr %347, align 8, !tbaa !5
  %349 = getelementptr inbounds double, ptr %348, i64 0
  %350 = load i64, ptr %11, align 8, !tbaa !9
  %351 = sub nsw i64 %350, 1
  %352 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %351)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %342, i64 noundef 1, ptr noundef %349, i64 noundef 1, i64 noundef %352)
  %353 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %354 = load ptr, ptr %353, align 8, !tbaa !21
  %355 = load i64, ptr %11, align 8, !tbaa !9
  %356 = getelementptr inbounds double, ptr %354, i64 %355
  store double -1.000000e+00, ptr %356, align 8, !tbaa !11
  %357 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %358 = load ptr, ptr %357, align 8, !tbaa !21
  %359 = getelementptr inbounds double, ptr %358, i64 0
  %360 = load ptr, ptr %14, align 8, !tbaa !5
  %361 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %360, i32 0, i32 4
  %362 = load ptr, ptr %361, align 8, !tbaa !21
  %363 = getelementptr inbounds double, ptr %362, i64 0
  %364 = load i64, ptr %11, align 8, !tbaa !9
  %365 = sub nsw i64 %364, 1
  %366 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %365)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %359, i64 noundef 1, ptr noundef %363, i64 noundef 1, i64 noundef %366)
  %367 = load ptr, ptr %12, align 8, !tbaa !5
  %368 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %367, i32 0, i32 4
  %369 = load ptr, ptr %368, align 8, !tbaa !21
  %370 = load i64, ptr %29, align 8, !tbaa !9
  %371 = getelementptr inbounds double, ptr %369, i64 %370
  %372 = load double, ptr %371, align 8, !tbaa !11
  %373 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %374 = load ptr, ptr %373, align 8, !tbaa !21
  %375 = load i64, ptr %11, align 8, !tbaa !9
  %376 = getelementptr inbounds double, ptr %374, i64 %375
  store double %372, ptr %376, align 8, !tbaa !11
  %377 = load i64, ptr %11, align 8, !tbaa !9
  %378 = add nsw i64 %377, 1
  %379 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl4xdotEPKNS_9ae_vectorES2_lPS0_PdS4_PNS_8ae_stateE(ptr noundef %25, ptr noundef %26, i64 noundef %378, ptr noundef %27, ptr noundef %33, ptr noundef %34, ptr noundef %379)
  %380 = load double, ptr %33, align 8, !tbaa !11
  %381 = fneg double %380
  %382 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %383 = load ptr, ptr %382, align 8, !tbaa !21
  %384 = load i64, ptr %29, align 8, !tbaa !9
  %385 = getelementptr inbounds double, ptr %383, i64 %384
  store double %381, ptr %385, align 8, !tbaa !11
  %386 = load i8, ptr %40, align 1, !tbaa !20, !range !22, !noundef !23
  %387 = trunc i8 %386 to i1
  br i1 %387, label %388, label %395

388:                                              ; preds = %339
  %389 = load double, ptr %33, align 8, !tbaa !11
  %390 = load ptr, ptr %16, align 8, !tbaa !5
  %391 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %389, ptr noundef %390)
  %392 = load double, ptr %34, align 8, !tbaa !11
  %393 = fmul double 4.000000e+00, %392
  %394 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %391, double noundef %393)
  br label %395

395:                                              ; preds = %388, %339
  %396 = phi i1 [ false, %339 ], [ %394, %388 ]
  %397 = zext i1 %396 to i8
  store i8 %397, ptr %40, align 1, !tbaa !20
  br label %398

398:                                              ; preds = %395
  %399 = load i64, ptr %29, align 8, !tbaa !9
  %400 = add nsw i64 %399, 1
  store i64 %400, ptr %29, align 8, !tbaa !9
  br label %334, !llvm.loop !35

401:                                              ; preds = %334
  %402 = load i8, ptr %40, align 1, !tbaa !20, !range !22, !noundef !23
  %403 = trunc i8 %402 to i1
  br i1 %403, label %404, label %405

404:                                              ; preds = %401
  store i8 1, ptr %39, align 1, !tbaa !20
  br label %405

405:                                              ; preds = %404, %401
  br label %406

406:                                              ; preds = %405, %322
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %407

407:                                              ; preds = %417, %406
  %408 = load i64, ptr %29, align 8, !tbaa !9
  %409 = load i64, ptr %11, align 8, !tbaa !9
  %410 = sub nsw i64 %409, 1
  %411 = icmp sle i64 %408, %410
  br i1 %411, label %412, label %420

412:                                              ; preds = %407
  %413 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %414 = load ptr, ptr %413, align 8, !tbaa !21
  %415 = load i64, ptr %29, align 8, !tbaa !9
  %416 = getelementptr inbounds double, ptr %414, i64 %415
  store double 0.000000e+00, ptr %416, align 8, !tbaa !11
  br label %417

417:                                              ; preds = %412
  %418 = load i64, ptr %29, align 8, !tbaa !9
  %419 = add nsw i64 %418, 1
  store i64 %419, ptr %29, align 8, !tbaa !9
  br label %407, !llvm.loop !36

420:                                              ; preds = %407
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %421

421:                                              ; preds = %431, %420
  %422 = load i64, ptr %29, align 8, !tbaa !9
  %423 = load i64, ptr %31, align 8, !tbaa !9
  %424 = sub nsw i64 %423, 1
  %425 = icmp sle i64 %422, %424
  br i1 %425, label %426, label %434

426:                                              ; preds = %421
  %427 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %428 = load ptr, ptr %427, align 8, !tbaa !21
  %429 = load i64, ptr %29, align 8, !tbaa !9
  %430 = getelementptr inbounds double, ptr %428, i64 %429
  store double 0.000000e+00, ptr %430, align 8, !tbaa !11
  br label %431

431:                                              ; preds = %426
  %432 = load i64, ptr %29, align 8, !tbaa !9
  %433 = add nsw i64 %432, 1
  store i64 %433, ptr %29, align 8, !tbaa !9
  br label %421, !llvm.loop !37

434:                                              ; preds = %421
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %435

435:                                              ; preds = %459, %434
  %436 = load i64, ptr %29, align 8, !tbaa !9
  %437 = load i64, ptr %10, align 8, !tbaa !9
  %438 = sub nsw i64 %437, 1
  %439 = icmp sle i64 %436, %438
  br i1 %439, label %440, label %462

440:                                              ; preds = %435
  %441 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %442 = load ptr, ptr %441, align 8, !tbaa !21
  %443 = load i64, ptr %29, align 8, !tbaa !9
  %444 = getelementptr inbounds double, ptr %442, i64 %443
  %445 = load double, ptr %444, align 8, !tbaa !11
  store double %445, ptr %33, align 8, !tbaa !11
  %446 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %447 = load ptr, ptr %446, align 8, !tbaa !21
  %448 = getelementptr inbounds double, ptr %447, i64 0
  %449 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %450 = load ptr, ptr %449, align 8, !tbaa !21
  %451 = load i64, ptr %29, align 8, !tbaa !9
  %452 = getelementptr inbounds ptr, ptr %450, i64 %451
  %453 = load ptr, ptr %452, align 8, !tbaa !5
  %454 = getelementptr inbounds double, ptr %453, i64 0
  %455 = load i64, ptr %31, align 8, !tbaa !9
  %456 = sub nsw i64 %455, 1
  %457 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %456)
  %458 = load double, ptr %33, align 8, !tbaa !11
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %448, i64 noundef 1, ptr noundef %454, i64 noundef 1, i64 noundef %457, double noundef %458)
  br label %459

459:                                              ; preds = %440
  %460 = load i64, ptr %29, align 8, !tbaa !9
  %461 = add nsw i64 %460, 1
  store i64 %461, ptr %29, align 8, !tbaa !9
  br label %435, !llvm.loop !38

462:                                              ; preds = %435
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %463

463:                                              ; preds = %494, %462
  %464 = load i64, ptr %29, align 8, !tbaa !9
  %465 = load i64, ptr %31, align 8, !tbaa !9
  %466 = sub nsw i64 %465, 1
  %467 = icmp sle i64 %464, %466
  br i1 %467, label %468, label %497

468:                                              ; preds = %463
  %469 = load i64, ptr %29, align 8, !tbaa !9
  %470 = load i64, ptr %32, align 8, !tbaa !9
  %471 = icmp slt i64 %469, %470
  br i1 %471, label %472, label %488

472:                                              ; preds = %468
  %473 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %474 = load ptr, ptr %473, align 8, !tbaa !21
  %475 = load i64, ptr %29, align 8, !tbaa !9
  %476 = getelementptr inbounds double, ptr %474, i64 %475
  %477 = load double, ptr %476, align 8, !tbaa !11
  %478 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %479 = load ptr, ptr %478, align 8, !tbaa !21
  %480 = load i64, ptr %29, align 8, !tbaa !9
  %481 = getelementptr inbounds double, ptr %479, i64 %480
  %482 = load double, ptr %481, align 8, !tbaa !11
  %483 = fdiv double %477, %482
  %484 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %485 = load ptr, ptr %484, align 8, !tbaa !21
  %486 = load i64, ptr %29, align 8, !tbaa !9
  %487 = getelementptr inbounds double, ptr %485, i64 %486
  store double %483, ptr %487, align 8, !tbaa !11
  br label %493

488:                                              ; preds = %468
  %489 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %490 = load ptr, ptr %489, align 8, !tbaa !21
  %491 = load i64, ptr %29, align 8, !tbaa !9
  %492 = getelementptr inbounds double, ptr %490, i64 %491
  store double 0.000000e+00, ptr %492, align 8, !tbaa !11
  br label %493

493:                                              ; preds = %488, %472
  br label %494

494:                                              ; preds = %493
  %495 = load i64, ptr %29, align 8, !tbaa !9
  %496 = add nsw i64 %495, 1
  store i64 %496, ptr %29, align 8, !tbaa !9
  br label %463, !llvm.loop !39

497:                                              ; preds = %463
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %498

498:                                              ; preds = %522, %497
  %499 = load i64, ptr %29, align 8, !tbaa !9
  %500 = load i64, ptr %31, align 8, !tbaa !9
  %501 = sub nsw i64 %500, 1
  %502 = icmp sle i64 %499, %501
  br i1 %502, label %503, label %525

503:                                              ; preds = %498
  %504 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %505 = load ptr, ptr %504, align 8, !tbaa !21
  %506 = load i64, ptr %29, align 8, !tbaa !9
  %507 = getelementptr inbounds double, ptr %505, i64 %506
  %508 = load double, ptr %507, align 8, !tbaa !11
  store double %508, ptr %33, align 8, !tbaa !11
  %509 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %510 = load ptr, ptr %509, align 8, !tbaa !21
  %511 = getelementptr inbounds double, ptr %510, i64 0
  %512 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %513 = load ptr, ptr %512, align 8, !tbaa !21
  %514 = load i64, ptr %29, align 8, !tbaa !9
  %515 = getelementptr inbounds ptr, ptr %513, i64 %514
  %516 = load ptr, ptr %515, align 8, !tbaa !5
  %517 = getelementptr inbounds double, ptr %516, i64 0
  %518 = load i64, ptr %11, align 8, !tbaa !9
  %519 = sub nsw i64 %518, 1
  %520 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %519)
  %521 = load double, ptr %33, align 8, !tbaa !11
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %511, i64 noundef 1, ptr noundef %517, i64 noundef 1, i64 noundef %520, double noundef %521)
  br label %522

522:                                              ; preds = %503
  %523 = load i64, ptr %29, align 8, !tbaa !9
  %524 = add nsw i64 %523, 1
  store i64 %524, ptr %29, align 8, !tbaa !9
  br label %498, !llvm.loop !40

525:                                              ; preds = %498
  %526 = load ptr, ptr %14, align 8, !tbaa !5
  %527 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %526, i32 0, i32 4
  %528 = load ptr, ptr %527, align 8, !tbaa !21
  %529 = getelementptr inbounds double, ptr %528, i64 0
  %530 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %531 = load ptr, ptr %530, align 8, !tbaa !21
  %532 = getelementptr inbounds double, ptr %531, i64 0
  %533 = load i64, ptr %11, align 8, !tbaa !9
  %534 = sub nsw i64 %533, 1
  %535 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %534)
  call void @_ZN11alglib_impl8ae_v_addEPdlPKdll(ptr noundef %529, i64 noundef 1, ptr noundef %532, i64 noundef 1, i64 noundef %535)
  br label %536

536:                                              ; preds = %525
  %537 = load i64, ptr %37, align 8, !tbaa !9
  %538 = add nsw i64 %537, 1
  store i64 %538, ptr %37, align 8, !tbaa !9
  br label %311, !llvm.loop !41

539:                                              ; preds = %318, %311
  %540 = load ptr, ptr %15, align 8, !tbaa !5
  %541 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %540, i32 0, i32 4
  %542 = load i64, ptr %541, align 8, !tbaa !29
  %543 = icmp sgt i64 %542, 0
  br i1 %543, label %544, label %587

544:                                              ; preds = %539
  %545 = load ptr, ptr %15, align 8, !tbaa !5
  %546 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %545, i32 0, i32 2
  %547 = load i64, ptr %11, align 8, !tbaa !9
  %548 = load ptr, ptr %15, align 8, !tbaa !5
  %549 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %548, i32 0, i32 4
  %550 = load i64, ptr %549, align 8, !tbaa !29
  %551 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %546, i64 noundef %547, i64 noundef %550, ptr noundef %551)
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %552

552:                                              ; preds = %583, %544
  %553 = load i64, ptr %29, align 8, !tbaa !9
  %554 = load ptr, ptr %15, align 8, !tbaa !5
  %555 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %554, i32 0, i32 4
  %556 = load i64, ptr %555, align 8, !tbaa !29
  %557 = sub nsw i64 %556, 1
  %558 = icmp sle i64 %553, %557
  br i1 %558, label %559, label %586

559:                                              ; preds = %552
  %560 = load ptr, ptr %15, align 8, !tbaa !5
  %561 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %560, i32 0, i32 2
  %562 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %561, i32 0, i32 6
  %563 = load ptr, ptr %562, align 8, !tbaa !21
  %564 = getelementptr inbounds ptr, ptr %563, i64 0
  %565 = load ptr, ptr %564, align 8, !tbaa !5
  %566 = load i64, ptr %29, align 8, !tbaa !9
  %567 = getelementptr inbounds double, ptr %565, i64 %566
  %568 = load ptr, ptr %15, align 8, !tbaa !5
  %569 = getelementptr inbounds %"struct.alglib_impl::densesolverlsreport", ptr %568, i32 0, i32 2
  %570 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %569, i32 0, i32 2
  %571 = load i64, ptr %570, align 8, !tbaa !42
  %572 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %573 = load ptr, ptr %572, align 8, !tbaa !21
  %574 = load i64, ptr %32, align 8, !tbaa !9
  %575 = load i64, ptr %29, align 8, !tbaa !9
  %576 = add nsw i64 %574, %575
  %577 = getelementptr inbounds ptr, ptr %573, i64 %576
  %578 = load ptr, ptr %577, align 8, !tbaa !5
  %579 = getelementptr inbounds double, ptr %578, i64 0
  %580 = load i64, ptr %11, align 8, !tbaa !9
  %581 = sub nsw i64 %580, 1
  %582 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %581)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %567, i64 noundef %571, ptr noundef %579, i64 noundef 1, i64 noundef %582)
  br label %583

583:                                              ; preds = %559
  %584 = load i64, ptr %29, align 8, !tbaa !9
  %585 = add nsw i64 %584, 1
  store i64 %585, ptr %29, align 8, !tbaa !9
  br label %552, !llvm.loop !43

586:                                              ; preds = %552
  br label %587

587:                                              ; preds = %586, %539
  %588 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %588)
  store i32 0, ptr %41, align 4
  br label %589

589:                                              ; preds = %587, %204
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  %590 = load i32, ptr %41, align 4
  switch i32 %590, label %592 [
    i32 0, label %591
    i32 1, label %591
  ]

591:                                              ; preds = %589, %589
  ret void

592:                                              ; preds = %589
  unreachable
}

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

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

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

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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_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 noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) #2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN11alglib_implL38directdensesolvers_densesolverrfsmaxv2EldPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef) #4

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

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

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

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

declare void @_ZN11alglib_impl8ae_v_addEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 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 = { mustprogress nounwind 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !15, i64 32, !16, i64 40, !7, i64 72}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!14, !10, i64 8}
!18 = !{!19, !10, i64 0}
!19 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !15, i64 16, !16, i64 24, !7, i64 56}
!20 = !{!15, !15, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !10, i64 0}
!25 = !{!"_ZTSN11alglib_impl19densesolverlsreportE", !10, i64 0, !12, i64 8, !14, i64 16, !10, i64 96, !10, i64 104}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!25, !10, i64 96}
!29 = !{!25, !10, i64 104}
!30 = distinct !{!30, !27}
!31 = distinct !{!31, !27}
!32 = !{!25, !12, i64 8}
!33 = distinct !{!33, !27}
!34 = distinct !{!34, !27}
!35 = distinct !{!35, !27}
!36 = distinct !{!36, !27}
!37 = distinct !{!37, !27}
!38 = distinct !{!38, !27}
!39 = distinct !{!39, !27}
!40 = distinct !{!40, !27}
!41 = distinct !{!41, !27}
!42 = !{!25, !10, i64 32}
!43 = distinct !{!43, !27}


; 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.354 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.355 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.356 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.357 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.358 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.359 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.360 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.361 = external hidden unnamed_addr constant [51 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_impl14rmatrixsolvelsEPKNS_9ae_matrixEllPKNS_9ae_vectorEdPS3_PNS_19densesolverlsreportEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, double noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #3 {
  %9 = alloca %"struct.alglib_impl::ae_frame", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #5
  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(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %11, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %12, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %14, i8 0, i64 64, 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(64) %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %17, i8 0, i64 64, 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 @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %20, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %5)
  call void @_ZN11alglib_impl26_densesolverlsreport_clearEPv(ptr noundef %6)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, 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 %15, 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 %16, 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 %17, 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 %18, 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 %19, 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 %20, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  %23 = icmp sgt i64 %1, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef nonnull @.str.354, ptr noundef %7)
  %24 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.355, ptr noundef %7)
  %25 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef %7)
  br i1 %25, label %26, label %28

26:                                               ; preds = %8
  %27 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %4, double noundef 0.000000e+00)
  br label %28

28:                                               ; preds = %26, %8
  %29 = phi i1 [ false, %8 ], [ %27, %26 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef nonnull @.str.356, ptr noundef %7)
  %30 = load i64, ptr %0, align 8, !tbaa !5
  %31 = icmp sge i64 %30, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef nonnull @.str.357, ptr noundef %7)
  %32 = getelementptr inbounds i8, ptr %0, i64 8
  %33 = load i64, ptr %32, align 8, !tbaa !13
  %34 = icmp sge i64 %33, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef nonnull @.str.358, ptr noundef %7)
  %35 = load i64, ptr %3, align 8, !tbaa !14
  %36 = icmp sge i64 %35, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef nonnull @.str.359, ptr noundef %7)
  %37 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, i64 noundef %2, ptr noundef %7)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %37, ptr noundef nonnull @.str.360, ptr noundef %7)
  %38 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %1, ptr noundef %7)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef nonnull @.str.361, ptr noundef %7)
  %39 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %4, double noundef 0.000000e+00)
  %.0199 = select i1 %39, double 5.000000e-13, double %4
  %40 = call noundef zeroext i1 @_ZN11alglib_impl10rmatrixsvdEPKNS_9ae_matrixElllllPNS_9ae_vectorEPS0_S5_PNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, i64 noundef %2, i64 noundef 1, i64 noundef 2, i64 noundef 2, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %7)
  %41 = getelementptr inbounds i8, ptr %10, i64 56
  %42 = load ptr, ptr %41, align 8, !tbaa !16
  %43 = load double, ptr %42, align 8, !tbaa !17
  %44 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %43, double noundef 0.000000e+00)
  %.not221 = xor i1 %40, true
  %brmerge = or i1 %44, %.not221
  br i1 %brmerge, label %45, label %91

45:                                               ; preds = %28
  %. = select i1 %40, i64 1, i64 -4
  store i64 %., ptr %6, align 8, !tbaa !19
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %5, i64 noundef %2, ptr noundef %7)
  br i1 %24, label %.lr.ph273, label %._crit_edge274.thread

._crit_edge274.thread:                            ; preds = %45
  %46 = getelementptr inbounds i8, ptr %6, i64 96
  store i64 %2, ptr %46, align 8, !tbaa !21
  %47 = getelementptr inbounds i8, ptr %6, i64 104
  store i64 %2, ptr %47, align 8, !tbaa !22
  %48 = getelementptr inbounds i8, ptr %6, i64 16
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %48, i64 noundef %2, i64 noundef %2, ptr noundef %7)
  br label %._crit_edge281

.lr.ph273:                                        ; preds = %45
  %49 = getelementptr inbounds i8, ptr %5, i64 56
  %xtraiter314 = and i64 %2, 3
  %50 = icmp ult i64 %2, 4
  br i1 %50, label %._crit_edge274.unr-lcssa, label %.lr.ph273.new

.lr.ph273.new:                                    ; preds = %.lr.ph273
  %unroll_iter317 = and i64 %2, 9223372036854775804
  br label %51

51:                                               ; preds = %51, %.lr.ph273.new
  %.0201271 = phi i64 [ 0, %.lr.ph273.new ], [ %63, %51 ]
  %niter318 = phi i64 [ 0, %.lr.ph273.new ], [ %niter318.next.3, %51 ]
  %52 = load ptr, ptr %49, align 8, !tbaa !16
  %53 = getelementptr inbounds double, ptr %52, i64 %.0201271
  store double 0.000000e+00, ptr %53, align 8, !tbaa !17
  %54 = or disjoint i64 %.0201271, 1
  %55 = load ptr, ptr %49, align 8, !tbaa !16
  %56 = getelementptr inbounds double, ptr %55, i64 %54
  store double 0.000000e+00, ptr %56, align 8, !tbaa !17
  %57 = or disjoint i64 %.0201271, 2
  %58 = load ptr, ptr %49, align 8, !tbaa !16
  %59 = getelementptr inbounds double, ptr %58, i64 %57
  store double 0.000000e+00, ptr %59, align 8, !tbaa !17
  %60 = or disjoint i64 %.0201271, 3
  %61 = load ptr, ptr %49, align 8, !tbaa !16
  %62 = getelementptr inbounds double, ptr %61, i64 %60
  store double 0.000000e+00, ptr %62, align 8, !tbaa !17
  %63 = add nuw nsw i64 %.0201271, 4
  %niter318.next.3 = add i64 %niter318, 4
  %niter318.ncmp.3 = icmp eq i64 %niter318.next.3, %unroll_iter317
  br i1 %niter318.ncmp.3, label %._crit_edge274.unr-lcssa, label %51, !llvm.loop !23

._crit_edge274.unr-lcssa:                         ; preds = %51, %.lr.ph273
  %.0201271.unr = phi i64 [ 0, %.lr.ph273 ], [ %63, %51 ]
  %lcmp.mod316.not = icmp eq i64 %xtraiter314, 0
  br i1 %lcmp.mod316.not, label %._crit_edge274, label %.epil.preheader313

.epil.preheader313:                               ; preds = %._crit_edge274.unr-lcssa, %.epil.preheader313
  %.0201271.epil = phi i64 [ %66, %.epil.preheader313 ], [ %.0201271.unr, %._crit_edge274.unr-lcssa ]
  %epil.iter315 = phi i64 [ %epil.iter315.next, %.epil.preheader313 ], [ 0, %._crit_edge274.unr-lcssa ]
  %64 = load ptr, ptr %49, align 8, !tbaa !16
  %65 = getelementptr inbounds double, ptr %64, i64 %.0201271.epil
  store double 0.000000e+00, ptr %65, align 8, !tbaa !17
  %66 = add nuw nsw i64 %.0201271.epil, 1
  %epil.iter315.next = add i64 %epil.iter315, 1
  %epil.iter315.cmp.not = icmp eq i64 %epil.iter315.next, %xtraiter314
  br i1 %epil.iter315.cmp.not, label %._crit_edge274, label %.epil.preheader313, !llvm.loop !25

._crit_edge274:                                   ; preds = %.epil.preheader313, %._crit_edge274.unr-lcssa
  %67 = getelementptr inbounds i8, ptr %6, i64 96
  store i64 %2, ptr %67, align 8, !tbaa !21
  %68 = getelementptr inbounds i8, ptr %6, i64 104
  store i64 %2, ptr %68, align 8, !tbaa !22
  %69 = getelementptr inbounds i8, ptr %6, i64 16
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %69, i64 noundef %2, i64 noundef %2, ptr noundef %7)
  br i1 %24, label %.preheader.lr.ph, label %._crit_edge281

.preheader.lr.ph:                                 ; preds = %._crit_edge274
  %70 = getelementptr inbounds i8, ptr %6, i64 88
  %xtraiter320 = and i64 %2, 1
  %71 = icmp eq i64 %2, 1
  %unroll_iter323 = and i64 %2, 9223372036854775806
  %lcmp.mod322.not = icmp eq i64 %xtraiter320, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge278.us, %.preheader.lr.ph
  %.1202280.us = phi i64 [ 0, %.preheader.lr.ph ], [ %89, %._crit_edge278.us ]
  br i1 %71, label %._crit_edge278.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.0203276.us = phi i64 [ %83, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter324 = phi i64 [ %niter324.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %72 = icmp eq i64 %.1202280.us, %.0203276.us
  %73 = load ptr, ptr %70, align 8, !tbaa !16
  %74 = getelementptr inbounds ptr, ptr %73, i64 %.1202280.us
  %75 = load ptr, ptr %74, align 8, !tbaa !27
  %.297 = select i1 %72, double 1.000000e+00, double 0.000000e+00
  %76 = getelementptr inbounds double, ptr %75, i64 %.0203276.us
  store double %.297, ptr %76, align 8, !tbaa !17
  %77 = or disjoint i64 %.0203276.us, 1
  %78 = icmp eq i64 %.1202280.us, %77
  %79 = load ptr, ptr %70, align 8, !tbaa !16
  %80 = getelementptr inbounds ptr, ptr %79, i64 %.1202280.us
  %81 = load ptr, ptr %80, align 8, !tbaa !27
  %.297.1 = select i1 %78, double 1.000000e+00, double 0.000000e+00
  %82 = getelementptr inbounds double, ptr %81, i64 %77
  store double %.297.1, ptr %82, align 8, !tbaa !17
  %83 = add nuw nsw i64 %.0203276.us, 2
  %niter324.next.1 = add i64 %niter324, 2
  %niter324.ncmp.1 = icmp eq i64 %niter324.next.1, %unroll_iter323
  br i1 %niter324.ncmp.1, label %._crit_edge278.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !28

._crit_edge278.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.0203276.us.unr = phi i64 [ 0, %.preheader.us ], [ %83, %.preheader.us.new ]
  br i1 %lcmp.mod322.not, label %._crit_edge278.us, label %._crit_edge278.us.epilog-lcssa

._crit_edge278.us.epilog-lcssa:                   ; preds = %._crit_edge278.us.unr-lcssa
  %84 = icmp eq i64 %.1202280.us, %.0203276.us.unr
  %85 = load ptr, ptr %70, align 8, !tbaa !16
  %86 = getelementptr inbounds ptr, ptr %85, i64 %.1202280.us
  %87 = load ptr, ptr %86, align 8, !tbaa !27
  %.297.epil = select i1 %84, double 1.000000e+00, double 0.000000e+00
  %88 = getelementptr inbounds double, ptr %87, i64 %.0203276.us.unr
  store double %.297.epil, ptr %88, align 8, !tbaa !17
  br label %._crit_edge278.us

._crit_edge278.us:                                ; preds = %._crit_edge278.us.unr-lcssa, %._crit_edge278.us.epilog-lcssa
  %89 = add nuw nsw i64 %.1202280.us, 1
  %exitcond291.not = icmp eq i64 %89, %2
  br i1 %exitcond291.not, label %._crit_edge281, label %.preheader.us, !llvm.loop !29

._crit_edge281:                                   ; preds = %._crit_edge278.us, %._crit_edge274.thread, %._crit_edge274
  %90 = getelementptr inbounds i8, ptr %6, i64 8
  store double 0.000000e+00, ptr %90, align 8, !tbaa !30
  br label %.loopexit

91:                                               ; preds = %28
  %92 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %2, i64 noundef %1, ptr noundef %7)
  %93 = icmp eq i64 %92, %2
  br i1 %93, label %94, label %101

94:                                               ; preds = %91
  %95 = load ptr, ptr %41, align 8, !tbaa !16
  %96 = getelementptr double, ptr %95, i64 %2
  %97 = getelementptr i8, ptr %96, i64 -8
  %98 = load double, ptr %97, align 8, !tbaa !17
  %99 = load double, ptr %95, align 8, !tbaa !17
  %100 = fdiv double %98, %99
  br label %101

101:                                              ; preds = %91, %94
  %.sink = phi double [ %100, %94 ], [ 0.000000e+00, %91 ]
  %102 = getelementptr inbounds i8, ptr %6, i64 8
  store double %.sink, ptr %102, align 8
  %103 = getelementptr inbounds i8, ptr %6, i64 96
  store i64 %2, ptr %103, align 8, !tbaa !21
  store i64 1, ptr %6, align 8, !tbaa !19
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %92, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %92, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %5, i64 noundef %2, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %2, ptr noundef %7)
  %104 = add nsw i64 %2, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %104, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %104, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %104, ptr noundef %7)
  br i1 %24, label %.lr.ph, label %.preheader228

.lr.ph:                                           ; preds = %101
  %105 = getelementptr inbounds i8, ptr %5, i64 56
  %xtraiter = and i64 %2, 3
  %106 = icmp ult i64 %2, 4
  br i1 %106, label %.preheader228.loopexit.unr-lcssa, label %.lr.ph.new

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

.preheader228.loopexit.unr-lcssa:                 ; preds = %111, %.lr.ph
  %.2231.unr = phi i64 [ 0, %.lr.ph ], [ %123, %111 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader228, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader228.loopexit.unr-lcssa, %.epil.preheader
  %.2231.epil = phi i64 [ %109, %.epil.preheader ], [ %.2231.unr, %.preheader228.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader228.loopexit.unr-lcssa ]
  %107 = load ptr, ptr %105, align 8, !tbaa !16
  %108 = getelementptr inbounds double, ptr %107, i64 %.2231.epil
  store double 0.000000e+00, ptr %108, align 8, !tbaa !17
  %109 = add nuw nsw i64 %.2231.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader228, label %.epil.preheader, !llvm.loop !31

.preheader228:                                    ; preds = %.preheader228.loopexit.unr-lcssa, %.epil.preheader, %101
  %110 = add nsw i64 %2, -1
  %.not.not210232 = icmp sgt i64 %92, 0
  br i1 %.not.not210232, label %.lr.ph234, label %._crit_edge

111:                                              ; preds = %111, %.lr.ph.new
  %.2231 = phi i64 [ 0, %.lr.ph.new ], [ %123, %111 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %111 ]
  %112 = load ptr, ptr %105, align 8, !tbaa !16
  %113 = getelementptr inbounds double, ptr %112, i64 %.2231
  store double 0.000000e+00, ptr %113, align 8, !tbaa !17
  %114 = or disjoint i64 %.2231, 1
  %115 = load ptr, ptr %105, align 8, !tbaa !16
  %116 = getelementptr inbounds double, ptr %115, i64 %114
  store double 0.000000e+00, ptr %116, align 8, !tbaa !17
  %117 = or disjoint i64 %.2231, 2
  %118 = load ptr, ptr %105, align 8, !tbaa !16
  %119 = getelementptr inbounds double, ptr %118, i64 %117
  store double 0.000000e+00, ptr %119, align 8, !tbaa !17
  %120 = or disjoint i64 %.2231, 3
  %121 = load ptr, ptr %105, align 8, !tbaa !16
  %122 = getelementptr inbounds double, ptr %121, i64 %120
  store double 0.000000e+00, ptr %122, align 8, !tbaa !17
  %123 = add nuw nsw i64 %.2231, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader228.loopexit.unr-lcssa, label %111, !llvm.loop !32

.lr.ph234:                                        ; preds = %.preheader228, %130
  %.3233 = phi i64 [ %131, %130 ], [ 0, %.preheader228 ]
  %124 = load ptr, ptr %41, align 8, !tbaa !16
  %125 = getelementptr inbounds double, ptr %124, i64 %.3233
  %126 = load double, ptr %125, align 8, !tbaa !17
  %127 = load double, ptr %124, align 8, !tbaa !17
  %128 = fmul double %.0199, %127
  %129 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %126, double noundef %128)
  br i1 %129, label %._crit_edge, label %130

130:                                              ; preds = %.lr.ph234
  %131 = add nuw nsw i64 %.3233, 1
  %exitcond282.not = icmp eq i64 %131, %92
  br i1 %exitcond282.not, label %._crit_edge, label %.lr.ph234, !llvm.loop !33

._crit_edge:                                      ; preds = %130, %.lr.ph234, %.preheader228
  %.0204 = phi i64 [ %92, %.preheader228 ], [ %.3233, %.lr.ph234 ], [ %92, %130 ]
  %132 = add nsw i64 %92, -1
  %133 = sub nsw i64 %2, %.0204
  %134 = getelementptr inbounds i8, ptr %6, i64 104
  store i64 %133, ptr %134, align 8, !tbaa !22
  %135 = load double, ptr %102, align 8, !tbaa !30
  %136 = call noundef i64 @_ZN11alglib_implL38directdensesolvers_densesolverrfsmaxv2EldPNS_8ae_stateE(i64 noundef %2, double noundef %135, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %1, ptr noundef %7)
  %.not260 = icmp slt i64 %136, 0
  br i1 %.not260, label %._crit_edge265, label %.lr.ph264

.lr.ph264:                                        ; preds = %._crit_edge
  %137 = getelementptr inbounds i8, ptr %17, i64 56
  %138 = getelementptr inbounds i8, ptr %0, i64 72
  %139 = getelementptr inbounds i8, ptr %18, i64 56
  %140 = getelementptr inbounds i8, ptr %5, i64 56
  %141 = getelementptr inbounds i8, ptr %3, i64 56
  %142 = getelementptr inbounds i8, ptr %13, i64 56
  %143 = add nsw i64 %1, -1
  %144 = getelementptr inbounds i8, ptr %16, i64 56
  %145 = getelementptr inbounds i8, ptr %14, i64 56
  %146 = getelementptr inbounds i8, ptr %11, i64 72
  %147 = getelementptr inbounds i8, ptr %15, i64 56
  %148 = getelementptr inbounds i8, ptr %12, i64 72
  %xtraiter298 = and i64 %2, 3
  %149 = icmp ult i64 %2, 4
  %unroll_iter301 = and i64 %2, 9223372036854775804
  %lcmp.mod300.not = icmp eq i64 %xtraiter298, 0
  %xtraiter303 = and i64 %92, 3
  %150 = icmp ult i64 %92, 4
  %unroll_iter306 = and i64 %92, 9223372036854775804
  %lcmp.mod305.not = icmp eq i64 %xtraiter303, 0
  %xtraiter308 = and i64 %92, 1
  %151 = icmp eq i64 %92, 1
  %unroll_iter311 = and i64 %92, 9223372036854775806
  %lcmp.mod310.not = icmp eq i64 %xtraiter308, 0
  br label %152

152:                                              ; preds = %.lr.ph264, %._crit_edge259
  %.0200261 = phi i64 [ 0, %.lr.ph264 ], [ %275, %._crit_edge259 ]
  %153 = icmp eq i64 %.0200261, 0
  br i1 %153, label %154, label %.preheader227

.preheader227:                                    ; preds = %152
  br i1 %23, label %.lr.ph240, label %._crit_edge241

154:                                              ; preds = %152
  %155 = load ptr, ptr %142, align 8, !tbaa !16
  %156 = load ptr, ptr %141, align 8, !tbaa !16
  %157 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %143)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %155, i64 noundef 1, ptr noundef %156, i64 noundef 1, i64 noundef %157)
  br label %._crit_edge241

.lr.ph240:                                        ; preds = %.preheader227, %183
  %.0239 = phi i1 [ %184, %183 ], [ true, %.preheader227 ]
  %.4238 = phi i64 [ %185, %183 ], [ 0, %.preheader227 ]
  %158 = load ptr, ptr %137, align 8, !tbaa !16
  %159 = load ptr, ptr %138, align 8, !tbaa !16
  %160 = getelementptr inbounds ptr, ptr %159, i64 %.4238
  %161 = load ptr, ptr %160, align 8, !tbaa !27
  %162 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %110)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %158, i64 noundef 1, ptr noundef %161, i64 noundef 1, i64 noundef %162)
  %163 = load ptr, ptr %137, align 8, !tbaa !16
  %164 = getelementptr inbounds double, ptr %163, i64 %2
  store double -1.000000e+00, ptr %164, align 8, !tbaa !17
  %165 = load ptr, ptr %139, align 8, !tbaa !16
  %166 = load ptr, ptr %140, align 8, !tbaa !16
  %167 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %110)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %165, i64 noundef 1, ptr noundef %166, i64 noundef 1, i64 noundef %167)
  %168 = load ptr, ptr %141, align 8, !tbaa !16
  %169 = getelementptr inbounds double, ptr %168, i64 %.4238
  %170 = load double, ptr %169, align 8, !tbaa !17
  %171 = load ptr, ptr %139, align 8, !tbaa !16
  %172 = getelementptr inbounds double, ptr %171, i64 %2
  store double %170, ptr %172, align 8, !tbaa !17
  call void @_ZN11alglib_impl4xdotEPKNS_9ae_vectorES2_lPS0_PdS4_PNS_8ae_stateE(ptr noundef nonnull %17, ptr noundef nonnull %18, i64 noundef %104, ptr noundef nonnull %19, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef %7)
  %173 = load double, ptr %21, align 8, !tbaa !17
  %174 = fneg double %173
  %175 = load ptr, ptr %142, align 8, !tbaa !16
  %176 = getelementptr inbounds double, ptr %175, i64 %.4238
  store double %174, ptr %176, align 8, !tbaa !17
  br i1 %.0239, label %177, label %183

177:                                              ; preds = %.lr.ph240
  %178 = load double, ptr %21, align 8, !tbaa !17
  %179 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %178, ptr noundef %7)
  %180 = load double, ptr %22, align 8, !tbaa !17
  %181 = fmul double %180, 4.000000e+00
  %182 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %179, double noundef %181)
  br label %183

183:                                              ; preds = %177, %.lr.ph240
  %184 = phi i1 [ false, %.lr.ph240 ], [ %182, %177 ]
  %185 = add nuw nsw i64 %.4238, 1
  %exitcond283.not = icmp eq i64 %185, %1
  br i1 %exitcond283.not, label %._crit_edge241, label %.lr.ph240, !llvm.loop !34

._crit_edge241:                                   ; preds = %183, %.preheader227, %154
  %.1 = phi i1 [ false, %154 ], [ true, %.preheader227 ], [ %184, %183 ]
  br i1 %24, label %.lr.ph246.preheader, label %.preheader226

.lr.ph246.preheader:                              ; preds = %._crit_edge241
  br i1 %149, label %.preheader226.loopexit.unr-lcssa, label %.lr.ph246

.preheader226.loopexit.unr-lcssa:                 ; preds = %.lr.ph246, %.lr.ph246.preheader
  %.5244.unr = phi i64 [ 0, %.lr.ph246.preheader ], [ %200, %.lr.ph246 ]
  br i1 %lcmp.mod300.not, label %.preheader226, label %.lr.ph246.epil

.lr.ph246.epil:                                   ; preds = %.preheader226.loopexit.unr-lcssa, %.lr.ph246.epil
  %.5244.epil = phi i64 [ %188, %.lr.ph246.epil ], [ %.5244.unr, %.preheader226.loopexit.unr-lcssa ]
  %epil.iter299 = phi i64 [ %epil.iter299.next, %.lr.ph246.epil ], [ 0, %.preheader226.loopexit.unr-lcssa ]
  %186 = load ptr, ptr %144, align 8, !tbaa !16
  %187 = getelementptr inbounds double, ptr %186, i64 %.5244.epil
  store double 0.000000e+00, ptr %187, align 8, !tbaa !17
  %188 = add nuw nsw i64 %.5244.epil, 1
  %epil.iter299.next = add i64 %epil.iter299, 1
  %epil.iter299.cmp.not = icmp eq i64 %epil.iter299.next, %xtraiter298
  br i1 %epil.iter299.cmp.not, label %.preheader226, label %.lr.ph246.epil, !llvm.loop !35

.preheader226:                                    ; preds = %.preheader226.loopexit.unr-lcssa, %.lr.ph246.epil, %._crit_edge241
  br i1 %.not.not210232, label %.lr.ph249.preheader, label %.preheader225

.lr.ph249.preheader:                              ; preds = %.preheader226
  br i1 %150, label %.preheader225.loopexit.unr-lcssa, label %.lr.ph249

.lr.ph246:                                        ; preds = %.lr.ph246.preheader, %.lr.ph246
  %.5244 = phi i64 [ %200, %.lr.ph246 ], [ 0, %.lr.ph246.preheader ]
  %niter302 = phi i64 [ %niter302.next.3, %.lr.ph246 ], [ 0, %.lr.ph246.preheader ]
  %189 = load ptr, ptr %144, align 8, !tbaa !16
  %190 = getelementptr inbounds double, ptr %189, i64 %.5244
  store double 0.000000e+00, ptr %190, align 8, !tbaa !17
  %191 = or disjoint i64 %.5244, 1
  %192 = load ptr, ptr %144, align 8, !tbaa !16
  %193 = getelementptr inbounds double, ptr %192, i64 %191
  store double 0.000000e+00, ptr %193, align 8, !tbaa !17
  %194 = or disjoint i64 %.5244, 2
  %195 = load ptr, ptr %144, align 8, !tbaa !16
  %196 = getelementptr inbounds double, ptr %195, i64 %194
  store double 0.000000e+00, ptr %196, align 8, !tbaa !17
  %197 = or disjoint i64 %.5244, 3
  %198 = load ptr, ptr %144, align 8, !tbaa !16
  %199 = getelementptr inbounds double, ptr %198, i64 %197
  store double 0.000000e+00, ptr %199, align 8, !tbaa !17
  %200 = add nuw nsw i64 %.5244, 4
  %niter302.next.3 = add i64 %niter302, 4
  %niter302.ncmp.3 = icmp eq i64 %niter302.next.3, %unroll_iter301
  br i1 %niter302.ncmp.3, label %.preheader226.loopexit.unr-lcssa, label %.lr.ph246, !llvm.loop !36

.preheader225.loopexit.unr-lcssa:                 ; preds = %.lr.ph249, %.lr.ph249.preheader
  %.6248.unr = phi i64 [ 0, %.lr.ph249.preheader ], [ %215, %.lr.ph249 ]
  br i1 %lcmp.mod305.not, label %.preheader225, label %.lr.ph249.epil

.lr.ph249.epil:                                   ; preds = %.preheader225.loopexit.unr-lcssa, %.lr.ph249.epil
  %.6248.epil = phi i64 [ %203, %.lr.ph249.epil ], [ %.6248.unr, %.preheader225.loopexit.unr-lcssa ]
  %epil.iter304 = phi i64 [ %epil.iter304.next, %.lr.ph249.epil ], [ 0, %.preheader225.loopexit.unr-lcssa ]
  %201 = load ptr, ptr %145, align 8, !tbaa !16
  %202 = getelementptr inbounds double, ptr %201, i64 %.6248.epil
  store double 0.000000e+00, ptr %202, align 8, !tbaa !17
  %203 = add nuw nsw i64 %.6248.epil, 1
  %epil.iter304.next = add i64 %epil.iter304, 1
  %epil.iter304.cmp.not = icmp eq i64 %epil.iter304.next, %xtraiter303
  br i1 %epil.iter304.cmp.not, label %.preheader225, label %.lr.ph249.epil, !llvm.loop !37

.preheader225:                                    ; preds = %.preheader225.loopexit.unr-lcssa, %.lr.ph249.epil, %.preheader226
  br i1 %23, label %.lr.ph252, label %.preheader224

.lr.ph249:                                        ; preds = %.lr.ph249.preheader, %.lr.ph249
  %.6248 = phi i64 [ %215, %.lr.ph249 ], [ 0, %.lr.ph249.preheader ]
  %niter307 = phi i64 [ %niter307.next.3, %.lr.ph249 ], [ 0, %.lr.ph249.preheader ]
  %204 = load ptr, ptr %145, align 8, !tbaa !16
  %205 = getelementptr inbounds double, ptr %204, i64 %.6248
  store double 0.000000e+00, ptr %205, align 8, !tbaa !17
  %206 = or disjoint i64 %.6248, 1
  %207 = load ptr, ptr %145, align 8, !tbaa !16
  %208 = getelementptr inbounds double, ptr %207, i64 %206
  store double 0.000000e+00, ptr %208, align 8, !tbaa !17
  %209 = or disjoint i64 %.6248, 2
  %210 = load ptr, ptr %145, align 8, !tbaa !16
  %211 = getelementptr inbounds double, ptr %210, i64 %209
  store double 0.000000e+00, ptr %211, align 8, !tbaa !17
  %212 = or disjoint i64 %.6248, 3
  %213 = load ptr, ptr %145, align 8, !tbaa !16
  %214 = getelementptr inbounds double, ptr %213, i64 %212
  store double 0.000000e+00, ptr %214, align 8, !tbaa !17
  %215 = add nuw nsw i64 %.6248, 4
  %niter307.next.3 = add i64 %niter307, 4
  %niter307.ncmp.3 = icmp eq i64 %niter307.next.3, %unroll_iter306
  br i1 %niter307.ncmp.3, label %.preheader225.loopexit.unr-lcssa, label %.lr.ph249, !llvm.loop !38

.preheader224:                                    ; preds = %.lr.ph252, %.preheader225
  br i1 %.not.not210232, label %.lr.ph255.preheader, label %._crit_edge259

.lr.ph255.preheader:                              ; preds = %.preheader224
  br i1 %151, label %.preheader223.unr-lcssa, label %.lr.ph255

.lr.ph252:                                        ; preds = %.preheader225, %.lr.ph252
  %.7251 = phi i64 [ %225, %.lr.ph252 ], [ 0, %.preheader225 ]
  %216 = load ptr, ptr %142, align 8, !tbaa !16
  %217 = getelementptr inbounds double, ptr %216, i64 %.7251
  %218 = load double, ptr %217, align 8, !tbaa !17
  store double %218, ptr %21, align 8, !tbaa !17
  %219 = load ptr, ptr %145, align 8, !tbaa !16
  %220 = load ptr, ptr %146, align 8, !tbaa !16
  %221 = getelementptr inbounds ptr, ptr %220, i64 %.7251
  %222 = load ptr, ptr %221, align 8, !tbaa !27
  %223 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %132)
  %224 = load double, ptr %21, align 8, !tbaa !17
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %219, i64 noundef 1, ptr noundef %222, i64 noundef 1, i64 noundef %223, double noundef %224)
  %225 = add nuw nsw i64 %.7251, 1
  %exitcond286.not = icmp eq i64 %225, %1
  br i1 %exitcond286.not, label %.preheader224, label %.lr.ph252, !llvm.loop !39

.preheader223.unr-lcssa:                          ; preds = %258, %.lr.ph255.preheader
  %.8254.unr = phi i64 [ 0, %.lr.ph255.preheader ], [ %261, %258 ]
  br i1 %lcmp.mod310.not, label %.preheader223, label %.lr.ph255.epil

.lr.ph255.epil:                                   ; preds = %.preheader223.unr-lcssa
  %226 = icmp slt i64 %.8254.unr, %.0204
  br i1 %226, label %227, label %.preheader223.epilog-lcssa

227:                                              ; preds = %.lr.ph255.epil
  %228 = load ptr, ptr %145, align 8, !tbaa !16
  %229 = getelementptr inbounds double, ptr %228, i64 %.8254.unr
  %230 = load double, ptr %229, align 8, !tbaa !17
  %231 = load ptr, ptr %41, align 8, !tbaa !16
  %232 = getelementptr inbounds double, ptr %231, i64 %.8254.unr
  %233 = load double, ptr %232, align 8, !tbaa !17
  %234 = fdiv double %230, %233
  br label %.preheader223.epilog-lcssa

.preheader223.epilog-lcssa:                       ; preds = %227, %.lr.ph255.epil
  %.sink294.epil = phi double [ %234, %227 ], [ 0.000000e+00, %.lr.ph255.epil ]
  %235 = load ptr, ptr %147, align 8, !tbaa !16
  %236 = getelementptr inbounds double, ptr %235, i64 %.8254.unr
  store double %.sink294.epil, ptr %236, align 8, !tbaa !17
  br label %.preheader223

.preheader223:                                    ; preds = %.preheader223.unr-lcssa, %.preheader223.epilog-lcssa
  br i1 %.not.not210232, label %.lr.ph258, label %._crit_edge259

.lr.ph255:                                        ; preds = %.lr.ph255.preheader, %258
  %.8254 = phi i64 [ %261, %258 ], [ 0, %.lr.ph255.preheader ]
  %niter312 = phi i64 [ %niter312.next.1, %258 ], [ 0, %.lr.ph255.preheader ]
  %237 = icmp slt i64 %.8254, %.0204
  br i1 %237, label %238, label %.lr.ph255.1

238:                                              ; preds = %.lr.ph255
  %239 = load ptr, ptr %145, align 8, !tbaa !16
  %240 = getelementptr inbounds double, ptr %239, i64 %.8254
  %241 = load double, ptr %240, align 8, !tbaa !17
  %242 = load ptr, ptr %41, align 8, !tbaa !16
  %243 = getelementptr inbounds double, ptr %242, i64 %.8254
  %244 = load double, ptr %243, align 8, !tbaa !17
  %245 = fdiv double %241, %244
  br label %.lr.ph255.1

.lr.ph255.1:                                      ; preds = %.lr.ph255, %238
  %.sink294 = phi double [ %245, %238 ], [ 0.000000e+00, %.lr.ph255 ]
  %246 = load ptr, ptr %147, align 8, !tbaa !16
  %247 = getelementptr inbounds double, ptr %246, i64 %.8254
  store double %.sink294, ptr %247, align 8, !tbaa !17
  %248 = or disjoint i64 %.8254, 1
  %249 = icmp slt i64 %248, %.0204
  br i1 %249, label %250, label %258

250:                                              ; preds = %.lr.ph255.1
  %251 = load ptr, ptr %145, align 8, !tbaa !16
  %252 = getelementptr inbounds double, ptr %251, i64 %248
  %253 = load double, ptr %252, align 8, !tbaa !17
  %254 = load ptr, ptr %41, align 8, !tbaa !16
  %255 = getelementptr inbounds double, ptr %254, i64 %248
  %256 = load double, ptr %255, align 8, !tbaa !17
  %257 = fdiv double %253, %256
  br label %258

258:                                              ; preds = %250, %.lr.ph255.1
  %.sink294.1 = phi double [ %257, %250 ], [ 0.000000e+00, %.lr.ph255.1 ]
  %259 = load ptr, ptr %147, align 8, !tbaa !16
  %260 = getelementptr inbounds double, ptr %259, i64 %248
  store double %.sink294.1, ptr %260, align 8, !tbaa !17
  %261 = add nuw nsw i64 %.8254, 2
  %niter312.next.1 = add i64 %niter312, 2
  %niter312.ncmp.1 = icmp eq i64 %niter312.next.1, %unroll_iter311
  br i1 %niter312.ncmp.1, label %.preheader223.unr-lcssa, label %.lr.ph255, !llvm.loop !40

.lr.ph258:                                        ; preds = %.preheader223, %.lr.ph258
  %.9257 = phi i64 [ %271, %.lr.ph258 ], [ 0, %.preheader223 ]
  %262 = load ptr, ptr %147, align 8, !tbaa !16
  %263 = getelementptr inbounds double, ptr %262, i64 %.9257
  %264 = load double, ptr %263, align 8, !tbaa !17
  store double %264, ptr %21, align 8, !tbaa !17
  %265 = load ptr, ptr %144, align 8, !tbaa !16
  %266 = load ptr, ptr %148, align 8, !tbaa !16
  %267 = getelementptr inbounds ptr, ptr %266, i64 %.9257
  %268 = load ptr, ptr %267, align 8, !tbaa !27
  %269 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %110)
  %270 = load double, ptr %21, align 8, !tbaa !17
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %265, i64 noundef 1, ptr noundef %268, i64 noundef 1, i64 noundef %269, double noundef %270)
  %271 = add nuw nsw i64 %.9257, 1
  %exitcond288.not = icmp eq i64 %271, %92
  br i1 %exitcond288.not, label %._crit_edge259, label %.lr.ph258, !llvm.loop !41

._crit_edge259:                                   ; preds = %.lr.ph258, %.preheader224, %.preheader223
  %272 = load ptr, ptr %140, align 8, !tbaa !16
  %273 = load ptr, ptr %144, align 8, !tbaa !16
  %274 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %110)
  call void @_ZN11alglib_impl8ae_v_addEPdlPKdll(ptr noundef %272, i64 noundef 1, ptr noundef %273, i64 noundef 1, i64 noundef %274)
  %275 = add nuw nsw i64 %.0200261, 1
  %.not = icmp sge i64 %.0200261, %136
  %brmerge222 = or i1 %.not, %.1
  br i1 %brmerge222, label %._crit_edge265, label %152, !llvm.loop !42

._crit_edge265:                                   ; preds = %._crit_edge259, %._crit_edge
  %276 = load i64, ptr %134, align 8, !tbaa !22
  %277 = icmp sgt i64 %276, 0
  br i1 %277, label %278, label %.loopexit

278:                                              ; preds = %._crit_edge265
  %279 = getelementptr inbounds i8, ptr %6, i64 16
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %279, i64 noundef %2, i64 noundef %276, ptr noundef %7)
  %280 = load i64, ptr %134, align 8, !tbaa !22
  %.not217.not266 = icmp sgt i64 %280, 0
  br i1 %.not217.not266, label %.lr.ph269, label %.loopexit

.lr.ph269:                                        ; preds = %278
  %281 = getelementptr inbounds i8, ptr %6, i64 88
  %282 = getelementptr inbounds i8, ptr %6, i64 32
  %283 = getelementptr inbounds i8, ptr %12, i64 72
  br label %284

284:                                              ; preds = %.lr.ph269, %284
  %.10267 = phi i64 [ 0, %.lr.ph269 ], [ %294, %284 ]
  %285 = load ptr, ptr %281, align 8, !tbaa !16
  %286 = load ptr, ptr %285, align 8, !tbaa !27
  %287 = getelementptr inbounds double, ptr %286, i64 %.10267
  %288 = load i64, ptr %282, align 8, !tbaa !43
  %289 = load ptr, ptr %283, align 8, !tbaa !16
  %290 = getelementptr ptr, ptr %289, i64 %.0204
  %291 = getelementptr ptr, ptr %290, i64 %.10267
  %292 = load ptr, ptr %291, align 8, !tbaa !27
  %293 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %110)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %287, i64 noundef %288, ptr noundef %292, i64 noundef 1, i64 noundef %293)
  %294 = add nuw nsw i64 %.10267, 1
  %295 = load i64, ptr %134, align 8, !tbaa !22
  %.not217.not = icmp slt i64 %294, %295
  br i1 %.not217.not, label %284, label %.loopexit, !llvm.loop !44

.loopexit:                                        ; preds = %284, %._crit_edge265, %278, %._crit_edge281
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  ret void
}

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

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #2

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

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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_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 noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN11alglib_implL38directdensesolvers_densesolverrfsmaxv2EldPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef) local_unnamed_addr #4

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

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

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double 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 void @_ZN11alglib_impl8ae_v_addEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 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 = { mustprogress nounwind 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!15, !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!16 = !{!8, !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !8, i64 0}
!19 = !{!20, !7, i64 0}
!20 = !{!"_ZTSN11alglib_impl19densesolverlsreportE", !7, i64 0, !18, i64 8, !6, i64 16, !7, i64 96, !7, i64 104}
!21 = !{!20, !7, i64 96}
!22 = !{!20, !7, i64 104}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.unroll.disable"}
!27 = !{!12, !12, i64 0}
!28 = distinct !{!28, !24}
!29 = distinct !{!29, !24}
!30 = !{!20, !18, i64 8}
!31 = distinct !{!31, !26}
!32 = distinct !{!32, !24}
!33 = distinct !{!33, !24}
!34 = distinct !{!34, !24}
!35 = distinct !{!35, !26}
!36 = distinct !{!36, !24}
!37 = distinct !{!37, !26}
!38 = distinct !{!38, !24}
!39 = distinct !{!39, !24}
!40 = distinct !{!40, !24}
!41 = distinct !{!41, !24}
!42 = distinct !{!42, !24}
!43 = !{!20, !7, i64 32}
!44 = distinct !{!44, !24}


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