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

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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.57 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13pearsoncorrm2EPKNS_9ae_matrixES2_lllPS0_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) #1 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.alglib_impl::ae_frame", align 8
  %16 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %17 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca double, 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 i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !9
  store i64 %3, ptr %11, align 8, !tbaa !9
  store i64 %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, 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
  %29 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %29, ptr noundef %15)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 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)
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef %16, ptr noundef %30, ptr noundef %31, i1 noundef zeroext true)
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef %17, ptr noundef %32, ptr noundef %33, i1 noundef zeroext true)
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %34)
  %35 = load ptr, ptr %14, 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 %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %14, 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 %36, i1 noundef zeroext true)
  %37 = load ptr, ptr %14, 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 %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %14, 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 %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %14, 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 %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %26, i64 noundef 0, i64 noundef 1, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %27, i64 noundef 0, i64 noundef 1, ptr noundef %41, i1 noundef zeroext true)
  %42 = load i64, ptr %10, align 8, !tbaa !9
  %43 = icmp sge i64 %42, 0
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef @.str.57, ptr noundef %44)
  %45 = load i64, ptr %11, align 8, !tbaa !9
  %46 = icmp sge i64 %45, 1
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %46, ptr noundef @.str.58, ptr noundef %47)
  %48 = load i64, ptr %12, align 8, !tbaa !9
  %49 = icmp sge i64 %48, 1
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.59, ptr noundef %50)
  %51 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 0
  %52 = load i64, ptr %51, align 8, !tbaa !11
  %53 = load i64, ptr %10, align 8, !tbaa !9
  %54 = icmp sge i64 %52, %53
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %54, ptr noundef @.str.60, ptr noundef %55)
  %56 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 1
  %57 = load i64, ptr %56, align 8, !tbaa !15
  %58 = load i64, ptr %11, align 8, !tbaa !9
  %59 = icmp sge i64 %57, %58
  br i1 %59, label %63, label %60

60:                                               ; preds = %7
  %61 = load i64, ptr %10, align 8, !tbaa !9
  %62 = icmp eq i64 %61, 0
  br label %63

63:                                               ; preds = %60, %7
  %64 = phi i1 [ true, %7 ], [ %62, %60 ]
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %64, ptr noundef @.str.61, ptr noundef %65)
  %66 = load i64, ptr %10, align 8, !tbaa !9
  %67 = load i64, ptr %11, align 8, !tbaa !9
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %16, i64 noundef %66, i64 noundef %67, ptr noundef %68)
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %69, ptr noundef @.str.62, ptr noundef %70)
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 0
  %72 = load i64, ptr %71, align 8, !tbaa !11
  %73 = load i64, ptr %10, align 8, !tbaa !9
  %74 = icmp sge i64 %72, %73
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %74, ptr noundef @.str.63, ptr noundef %75)
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 1
  %77 = load i64, ptr %76, align 8, !tbaa !15
  %78 = load i64, ptr %12, align 8, !tbaa !9
  %79 = icmp sge i64 %77, %78
  br i1 %79, label %83, label %80

80:                                               ; preds = %63
  %81 = load i64, ptr %10, align 8, !tbaa !9
  %82 = icmp eq i64 %81, 0
  br label %83

83:                                               ; preds = %80, %63
  %84 = phi i1 [ true, %63 ], [ %82, %80 ]
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %84, ptr noundef @.str.64, ptr noundef %85)
  %86 = load i64, ptr %10, align 8, !tbaa !9
  %87 = load i64, ptr %12, align 8, !tbaa !9
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %17, i64 noundef %86, i64 noundef %87, ptr noundef %88)
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %89, ptr noundef @.str.62, ptr noundef %90)
  %91 = load i64, ptr %10, align 8, !tbaa !9
  %92 = icmp sle i64 %91, 1
  br i1 %92, label %93, label %127

93:                                               ; preds = %83
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  %95 = load i64, ptr %11, align 8, !tbaa !9
  %96 = load i64, ptr %12, align 8, !tbaa !9
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %94, i64 noundef %95, i64 noundef %96, ptr noundef %97)
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %98

98:                                               ; preds = %122, %93
  %99 = load i64, ptr %18, align 8, !tbaa !9
  %100 = load i64, ptr %11, align 8, !tbaa !9
  %101 = sub nsw i64 %100, 1
  %102 = icmp sle i64 %99, %101
  br i1 %102, label %103, label %125

103:                                              ; preds = %98
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %104

104:                                              ; preds = %118, %103
  %105 = load i64, ptr %19, align 8, !tbaa !9
  %106 = load i64, ptr %12, align 8, !tbaa !9
  %107 = sub nsw i64 %106, 1
  %108 = icmp sle i64 %105, %107
  br i1 %108, label %109, label %121

109:                                              ; preds = %104
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %110, i32 0, i32 6
  %112 = load ptr, ptr %111, align 8, !tbaa !16
  %113 = load i64, ptr %18, align 8, !tbaa !9
  %114 = getelementptr inbounds ptr, ptr %112, i64 %113
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  %116 = load i64, ptr %19, align 8, !tbaa !9
  %117 = getelementptr inbounds double, ptr %115, i64 %116
  store double 0.000000e+00, ptr %117, align 8, !tbaa !17
  br label %118

118:                                              ; preds = %109
  %119 = load i64, ptr %19, align 8, !tbaa !9
  %120 = add nsw i64 %119, 1
  store i64 %120, ptr %19, align 8, !tbaa !9
  br label %104, !llvm.loop !19

121:                                              ; preds = %104
  br label %122

122:                                              ; preds = %121
  %123 = load i64, ptr %18, align 8, !tbaa !9
  %124 = add nsw i64 %123, 1
  store i64 %124, ptr %18, align 8, !tbaa !9
  br label %98, !llvm.loop !21

125:                                              ; preds = %98
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %126)
  store i32 1, ptr %28, align 4
  br label %665

127:                                              ; preds = %83
  %128 = load i64, ptr %11, align 8, !tbaa !9
  %129 = load i64, ptr %12, align 8, !tbaa !9
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %128, i64 noundef %129, ptr noundef %130)
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %131, ptr noundef %132)
  %133 = load i64, ptr %11, align 8, !tbaa !9
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %133, ptr noundef %134)
  %135 = load i64, ptr %12, align 8, !tbaa !9
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %23, i64 noundef %135, ptr noundef %136)
  %137 = load i64, ptr %11, align 8, !tbaa !9
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %24, i64 noundef %137, ptr noundef %138)
  %139 = load i64, ptr %12, align 8, !tbaa !9
  %140 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef %139, ptr noundef %140)
  %141 = load i64, ptr %11, align 8, !tbaa !9
  %142 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %26, i64 noundef %141, ptr noundef %142)
  %143 = load i64, ptr %12, align 8, !tbaa !9
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %27, i64 noundef %143, ptr noundef %144)
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = load i64, ptr %11, align 8, !tbaa !9
  %147 = load i64, ptr %12, align 8, !tbaa !9
  %148 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %145, i64 noundef %146, i64 noundef %147, ptr noundef %148)
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %149

149:                                              ; preds = %167, %127
  %150 = load i64, ptr %18, align 8, !tbaa !9
  %151 = load i64, ptr %11, align 8, !tbaa !9
  %152 = sub nsw i64 %151, 1
  %153 = icmp sle i64 %150, %152
  br i1 %153, label %154, label %170

154:                                              ; preds = %149
  %155 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %156 = load ptr, ptr %155, align 8, !tbaa !16
  %157 = load i64, ptr %18, align 8, !tbaa !9
  %158 = getelementptr inbounds double, ptr %156, i64 %157
  store double 0.000000e+00, ptr %158, align 8, !tbaa !17
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !16
  %161 = load i64, ptr %18, align 8, !tbaa !9
  %162 = getelementptr inbounds i8, ptr %160, i64 %161
  store i8 1, ptr %162, align 1, !tbaa !22
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %164 = load ptr, ptr %163, align 8, !tbaa !16
  %165 = load i64, ptr %18, align 8, !tbaa !9
  %166 = getelementptr inbounds double, ptr %164, i64 %165
  store double 0.000000e+00, ptr %166, align 8, !tbaa !17
  br label %167

167:                                              ; preds = %154
  %168 = load i64, ptr %18, align 8, !tbaa !9
  %169 = add nsw i64 %168, 1
  store i64 %169, ptr %18, align 8, !tbaa !9
  br label %149, !llvm.loop !23

170:                                              ; preds = %149
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !16
  %173 = getelementptr inbounds double, ptr %172, i64 0
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %175 = load ptr, ptr %174, align 8, !tbaa !16
  %176 = getelementptr inbounds ptr, ptr %175, i64 0
  %177 = load ptr, ptr %176, align 8, !tbaa !5
  %178 = getelementptr inbounds double, ptr %177, i64 0
  %179 = load i64, ptr %11, align 8, !tbaa !9
  %180 = sub nsw i64 %179, 1
  %181 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %180)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %173, i64 noundef 1, ptr noundef %178, i64 noundef 1, i64 noundef %181)
  %182 = load i64, ptr %10, align 8, !tbaa !9
  %183 = sitofp i64 %182 to double
  %184 = fdiv double 1.000000e+00, %183
  store double %184, ptr %20, align 8, !tbaa !17
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %185

185:                                              ; preds = %242, %170
  %186 = load i64, ptr %18, align 8, !tbaa !9
  %187 = load i64, ptr %10, align 8, !tbaa !9
  %188 = sub nsw i64 %187, 1
  %189 = icmp sle i64 %186, %188
  br i1 %189, label %190, label %245

190:                                              ; preds = %185
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !16
  %193 = getelementptr inbounds double, ptr %192, i64 0
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %195 = load ptr, ptr %194, align 8, !tbaa !16
  %196 = load i64, ptr %18, align 8, !tbaa !9
  %197 = getelementptr inbounds ptr, ptr %195, i64 %196
  %198 = load ptr, ptr %197, align 8, !tbaa !5
  %199 = getelementptr inbounds double, ptr %198, i64 0
  %200 = load i64, ptr %11, align 8, !tbaa !9
  %201 = sub nsw i64 %200, 1
  %202 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %201)
  %203 = load double, ptr %20, align 8, !tbaa !17
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %193, i64 noundef 1, ptr noundef %199, i64 noundef 1, i64 noundef %202, double noundef %203)
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %204

204:                                              ; preds = %238, %190
  %205 = load i64, ptr %19, align 8, !tbaa !9
  %206 = load i64, ptr %11, align 8, !tbaa !9
  %207 = sub nsw i64 %206, 1
  %208 = icmp sle i64 %205, %207
  br i1 %208, label %209, label %241

209:                                              ; preds = %204
  %210 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %211 = load ptr, ptr %210, align 8, !tbaa !16
  %212 = load i64, ptr %19, align 8, !tbaa !9
  %213 = getelementptr inbounds i8, ptr %211, i64 %212
  %214 = load i8, ptr %213, align 1, !tbaa !22, !range !24, !noundef !25
  %215 = trunc i8 %214 to i1
  br i1 %215, label %216, label %231

216:                                              ; preds = %209
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %218 = load ptr, ptr %217, align 8, !tbaa !16
  %219 = load i64, ptr %18, align 8, !tbaa !9
  %220 = getelementptr inbounds ptr, ptr %218, i64 %219
  %221 = load ptr, ptr %220, align 8, !tbaa !5
  %222 = load i64, ptr %19, align 8, !tbaa !9
  %223 = getelementptr inbounds double, ptr %221, i64 %222
  %224 = load double, ptr %223, align 8, !tbaa !17
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %226 = load ptr, ptr %225, align 8, !tbaa !16
  %227 = load i64, ptr %19, align 8, !tbaa !9
  %228 = getelementptr inbounds double, ptr %226, i64 %227
  %229 = load double, ptr %228, align 8, !tbaa !17
  %230 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %224, double noundef %229)
  br label %231

231:                                              ; preds = %216, %209
  %232 = phi i1 [ false, %209 ], [ %230, %216 ]
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %234 = load ptr, ptr %233, align 8, !tbaa !16
  %235 = load i64, ptr %19, align 8, !tbaa !9
  %236 = getelementptr inbounds i8, ptr %234, i64 %235
  %237 = zext i1 %232 to i8
  store i8 %237, ptr %236, align 1, !tbaa !22
  br label %238

238:                                              ; preds = %231
  %239 = load i64, ptr %19, align 8, !tbaa !9
  %240 = add nsw i64 %239, 1
  store i64 %240, ptr %19, align 8, !tbaa !9
  br label %204, !llvm.loop !26

241:                                              ; preds = %204
  br label %242

242:                                              ; preds = %241
  %243 = load i64, ptr %18, align 8, !tbaa !9
  %244 = add nsw i64 %243, 1
  store i64 %244, ptr %18, align 8, !tbaa !9
  br label %185, !llvm.loop !27

245:                                              ; preds = %185
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %246

246:                                              ; preds = %315, %245
  %247 = load i64, ptr %18, align 8, !tbaa !9
  %248 = load i64, ptr %10, align 8, !tbaa !9
  %249 = sub nsw i64 %248, 1
  %250 = icmp sle i64 %247, %249
  br i1 %250, label %251, label %318

251:                                              ; preds = %246
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %253 = load ptr, ptr %252, align 8, !tbaa !16
  %254 = load i64, ptr %18, align 8, !tbaa !9
  %255 = getelementptr inbounds ptr, ptr %253, i64 %254
  %256 = load ptr, ptr %255, align 8, !tbaa !5
  %257 = getelementptr inbounds double, ptr %256, i64 0
  %258 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %259 = load ptr, ptr %258, align 8, !tbaa !16
  %260 = getelementptr inbounds double, ptr %259, i64 0
  %261 = load i64, ptr %11, align 8, !tbaa !9
  %262 = sub nsw i64 %261, 1
  %263 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %262)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %257, i64 noundef 1, ptr noundef %260, i64 noundef 1, i64 noundef %263)
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %264

264:                                              ; preds = %311, %251
  %265 = load i64, ptr %19, align 8, !tbaa !9
  %266 = load i64, ptr %11, align 8, !tbaa !9
  %267 = sub nsw i64 %266, 1
  %268 = icmp sle i64 %265, %267
  br i1 %268, label %269, label %314

269:                                              ; preds = %264
  %270 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %271 = load ptr, ptr %270, align 8, !tbaa !16
  %272 = load i64, ptr %19, align 8, !tbaa !9
  %273 = getelementptr inbounds i8, ptr %271, i64 %272
  %274 = load i8, ptr %273, align 1, !tbaa !22, !range !24, !noundef !25
  %275 = trunc i8 %274 to i1
  br i1 %275, label %276, label %284

276:                                              ; preds = %269
  %277 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %278 = load ptr, ptr %277, align 8, !tbaa !16
  %279 = load i64, ptr %18, align 8, !tbaa !9
  %280 = getelementptr inbounds ptr, ptr %278, i64 %279
  %281 = load ptr, ptr %280, align 8, !tbaa !5
  %282 = load i64, ptr %19, align 8, !tbaa !9
  %283 = getelementptr inbounds double, ptr %281, i64 %282
  store double 0.000000e+00, ptr %283, align 8, !tbaa !17
  br label %284

284:                                              ; preds = %276, %269
  %285 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %286 = load ptr, ptr %285, align 8, !tbaa !16
  %287 = load i64, ptr %19, align 8, !tbaa !9
  %288 = getelementptr inbounds double, ptr %286, i64 %287
  %289 = load double, ptr %288, align 8, !tbaa !17
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %291 = load ptr, ptr %290, align 8, !tbaa !16
  %292 = load i64, ptr %18, align 8, !tbaa !9
  %293 = getelementptr inbounds ptr, ptr %291, i64 %292
  %294 = load ptr, ptr %293, align 8, !tbaa !5
  %295 = load i64, ptr %19, align 8, !tbaa !9
  %296 = getelementptr inbounds double, ptr %294, i64 %295
  %297 = load double, ptr %296, align 8, !tbaa !17
  %298 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %299 = load ptr, ptr %298, align 8, !tbaa !16
  %300 = load i64, ptr %18, align 8, !tbaa !9
  %301 = getelementptr inbounds ptr, ptr %299, i64 %300
  %302 = load ptr, ptr %301, align 8, !tbaa !5
  %303 = load i64, ptr %19, align 8, !tbaa !9
  %304 = getelementptr inbounds double, ptr %302, i64 %303
  %305 = load double, ptr %304, align 8, !tbaa !17
  %306 = call double @llvm.fmuladd.f64(double %297, double %305, double %289)
  %307 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %308 = load ptr, ptr %307, align 8, !tbaa !16
  %309 = load i64, ptr %19, align 8, !tbaa !9
  %310 = getelementptr inbounds double, ptr %308, i64 %309
  store double %306, ptr %310, align 8, !tbaa !17
  br label %311

311:                                              ; preds = %284
  %312 = load i64, ptr %19, align 8, !tbaa !9
  %313 = add nsw i64 %312, 1
  store i64 %313, ptr %19, align 8, !tbaa !9
  br label %264, !llvm.loop !28

314:                                              ; preds = %264
  br label %315

315:                                              ; preds = %314
  %316 = load i64, ptr %18, align 8, !tbaa !9
  %317 = add nsw i64 %316, 1
  store i64 %317, ptr %18, align 8, !tbaa !9
  br label %246, !llvm.loop !29

318:                                              ; preds = %246
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %319

319:                                              ; preds = %340, %318
  %320 = load i64, ptr %19, align 8, !tbaa !9
  %321 = load i64, ptr %11, align 8, !tbaa !9
  %322 = sub nsw i64 %321, 1
  %323 = icmp sle i64 %320, %322
  br i1 %323, label %324, label %343

324:                                              ; preds = %319
  %325 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %326 = load ptr, ptr %325, align 8, !tbaa !16
  %327 = load i64, ptr %19, align 8, !tbaa !9
  %328 = getelementptr inbounds double, ptr %326, i64 %327
  %329 = load double, ptr %328, align 8, !tbaa !17
  %330 = load i64, ptr %10, align 8, !tbaa !9
  %331 = sub nsw i64 %330, 1
  %332 = sitofp i64 %331 to double
  %333 = fdiv double %329, %332
  %334 = load ptr, ptr %14, align 8, !tbaa !5
  %335 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %333, ptr noundef %334)
  %336 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %337 = load ptr, ptr %336, align 8, !tbaa !16
  %338 = load i64, ptr %19, align 8, !tbaa !9
  %339 = getelementptr inbounds double, ptr %337, i64 %338
  store double %335, ptr %339, align 8, !tbaa !17
  br label %340

340:                                              ; preds = %324
  %341 = load i64, ptr %19, align 8, !tbaa !9
  %342 = add nsw i64 %341, 1
  store i64 %342, ptr %19, align 8, !tbaa !9
  br label %319, !llvm.loop !30

343:                                              ; preds = %319
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %344

344:                                              ; preds = %362, %343
  %345 = load i64, ptr %18, align 8, !tbaa !9
  %346 = load i64, ptr %12, align 8, !tbaa !9
  %347 = sub nsw i64 %346, 1
  %348 = icmp sle i64 %345, %347
  br i1 %348, label %349, label %365

349:                                              ; preds = %344
  %350 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %351 = load ptr, ptr %350, align 8, !tbaa !16
  %352 = load i64, ptr %18, align 8, !tbaa !9
  %353 = getelementptr inbounds double, ptr %351, i64 %352
  store double 0.000000e+00, ptr %353, align 8, !tbaa !17
  %354 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %355 = load ptr, ptr %354, align 8, !tbaa !16
  %356 = load i64, ptr %18, align 8, !tbaa !9
  %357 = getelementptr inbounds i8, ptr %355, i64 %356
  store i8 1, ptr %357, align 1, !tbaa !22
  %358 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %359 = load ptr, ptr %358, align 8, !tbaa !16
  %360 = load i64, ptr %18, align 8, !tbaa !9
  %361 = getelementptr inbounds double, ptr %359, i64 %360
  store double 0.000000e+00, ptr %361, align 8, !tbaa !17
  br label %362

362:                                              ; preds = %349
  %363 = load i64, ptr %18, align 8, !tbaa !9
  %364 = add nsw i64 %363, 1
  store i64 %364, ptr %18, align 8, !tbaa !9
  br label %344, !llvm.loop !31

365:                                              ; preds = %344
  %366 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %367 = load ptr, ptr %366, align 8, !tbaa !16
  %368 = getelementptr inbounds double, ptr %367, i64 0
  %369 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %370 = load ptr, ptr %369, align 8, !tbaa !16
  %371 = getelementptr inbounds ptr, ptr %370, i64 0
  %372 = load ptr, ptr %371, align 8, !tbaa !5
  %373 = getelementptr inbounds double, ptr %372, i64 0
  %374 = load i64, ptr %12, align 8, !tbaa !9
  %375 = sub nsw i64 %374, 1
  %376 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %375)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %368, i64 noundef 1, ptr noundef %373, i64 noundef 1, i64 noundef %376)
  %377 = load i64, ptr %10, align 8, !tbaa !9
  %378 = sitofp i64 %377 to double
  %379 = fdiv double 1.000000e+00, %378
  store double %379, ptr %20, align 8, !tbaa !17
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %380

380:                                              ; preds = %437, %365
  %381 = load i64, ptr %18, align 8, !tbaa !9
  %382 = load i64, ptr %10, align 8, !tbaa !9
  %383 = sub nsw i64 %382, 1
  %384 = icmp sle i64 %381, %383
  br i1 %384, label %385, label %440

385:                                              ; preds = %380
  %386 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %387 = load ptr, ptr %386, align 8, !tbaa !16
  %388 = getelementptr inbounds double, ptr %387, i64 0
  %389 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %390 = load ptr, ptr %389, align 8, !tbaa !16
  %391 = load i64, ptr %18, align 8, !tbaa !9
  %392 = getelementptr inbounds ptr, ptr %390, i64 %391
  %393 = load ptr, ptr %392, align 8, !tbaa !5
  %394 = getelementptr inbounds double, ptr %393, i64 0
  %395 = load i64, ptr %12, align 8, !tbaa !9
  %396 = sub nsw i64 %395, 1
  %397 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %396)
  %398 = load double, ptr %20, align 8, !tbaa !17
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %388, i64 noundef 1, ptr noundef %394, i64 noundef 1, i64 noundef %397, double noundef %398)
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %399

399:                                              ; preds = %433, %385
  %400 = load i64, ptr %19, align 8, !tbaa !9
  %401 = load i64, ptr %12, align 8, !tbaa !9
  %402 = sub nsw i64 %401, 1
  %403 = icmp sle i64 %400, %402
  br i1 %403, label %404, label %436

404:                                              ; preds = %399
  %405 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %406 = load ptr, ptr %405, align 8, !tbaa !16
  %407 = load i64, ptr %19, align 8, !tbaa !9
  %408 = getelementptr inbounds i8, ptr %406, i64 %407
  %409 = load i8, ptr %408, align 1, !tbaa !22, !range !24, !noundef !25
  %410 = trunc i8 %409 to i1
  br i1 %410, label %411, label %426

411:                                              ; preds = %404
  %412 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %413 = load ptr, ptr %412, align 8, !tbaa !16
  %414 = load i64, ptr %18, align 8, !tbaa !9
  %415 = getelementptr inbounds ptr, ptr %413, i64 %414
  %416 = load ptr, ptr %415, align 8, !tbaa !5
  %417 = load i64, ptr %19, align 8, !tbaa !9
  %418 = getelementptr inbounds double, ptr %416, i64 %417
  %419 = load double, ptr %418, align 8, !tbaa !17
  %420 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %421 = load ptr, ptr %420, align 8, !tbaa !16
  %422 = load i64, ptr %19, align 8, !tbaa !9
  %423 = getelementptr inbounds double, ptr %421, i64 %422
  %424 = load double, ptr %423, align 8, !tbaa !17
  %425 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %419, double noundef %424)
  br label %426

426:                                              ; preds = %411, %404
  %427 = phi i1 [ false, %404 ], [ %425, %411 ]
  %428 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %429 = load ptr, ptr %428, align 8, !tbaa !16
  %430 = load i64, ptr %19, align 8, !tbaa !9
  %431 = getelementptr inbounds i8, ptr %429, i64 %430
  %432 = zext i1 %427 to i8
  store i8 %432, ptr %431, align 1, !tbaa !22
  br label %433

433:                                              ; preds = %426
  %434 = load i64, ptr %19, align 8, !tbaa !9
  %435 = add nsw i64 %434, 1
  store i64 %435, ptr %19, align 8, !tbaa !9
  br label %399, !llvm.loop !32

436:                                              ; preds = %399
  br label %437

437:                                              ; preds = %436
  %438 = load i64, ptr %18, align 8, !tbaa !9
  %439 = add nsw i64 %438, 1
  store i64 %439, ptr %18, align 8, !tbaa !9
  br label %380, !llvm.loop !33

440:                                              ; preds = %380
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %441

441:                                              ; preds = %510, %440
  %442 = load i64, ptr %18, align 8, !tbaa !9
  %443 = load i64, ptr %10, align 8, !tbaa !9
  %444 = sub nsw i64 %443, 1
  %445 = icmp sle i64 %442, %444
  br i1 %445, label %446, label %513

446:                                              ; preds = %441
  %447 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %448 = load ptr, ptr %447, align 8, !tbaa !16
  %449 = load i64, ptr %18, align 8, !tbaa !9
  %450 = getelementptr inbounds ptr, ptr %448, i64 %449
  %451 = load ptr, ptr %450, align 8, !tbaa !5
  %452 = getelementptr inbounds double, ptr %451, i64 0
  %453 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %454 = load ptr, ptr %453, align 8, !tbaa !16
  %455 = getelementptr inbounds double, ptr %454, i64 0
  %456 = load i64, ptr %12, align 8, !tbaa !9
  %457 = sub nsw i64 %456, 1
  %458 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %457)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %452, i64 noundef 1, ptr noundef %455, i64 noundef 1, i64 noundef %458)
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %459

459:                                              ; preds = %506, %446
  %460 = load i64, ptr %19, align 8, !tbaa !9
  %461 = load i64, ptr %12, align 8, !tbaa !9
  %462 = sub nsw i64 %461, 1
  %463 = icmp sle i64 %460, %462
  br i1 %463, label %464, label %509

464:                                              ; preds = %459
  %465 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %466 = load ptr, ptr %465, align 8, !tbaa !16
  %467 = load i64, ptr %19, align 8, !tbaa !9
  %468 = getelementptr inbounds i8, ptr %466, i64 %467
  %469 = load i8, ptr %468, align 1, !tbaa !22, !range !24, !noundef !25
  %470 = trunc i8 %469 to i1
  br i1 %470, label %471, label %479

471:                                              ; preds = %464
  %472 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %473 = load ptr, ptr %472, align 8, !tbaa !16
  %474 = load i64, ptr %18, align 8, !tbaa !9
  %475 = getelementptr inbounds ptr, ptr %473, i64 %474
  %476 = load ptr, ptr %475, align 8, !tbaa !5
  %477 = load i64, ptr %19, align 8, !tbaa !9
  %478 = getelementptr inbounds double, ptr %476, i64 %477
  store double 0.000000e+00, ptr %478, align 8, !tbaa !17
  br label %479

479:                                              ; preds = %471, %464
  %480 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %481 = load ptr, ptr %480, align 8, !tbaa !16
  %482 = load i64, ptr %19, align 8, !tbaa !9
  %483 = getelementptr inbounds double, ptr %481, i64 %482
  %484 = load double, ptr %483, align 8, !tbaa !17
  %485 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %486 = load ptr, ptr %485, align 8, !tbaa !16
  %487 = load i64, ptr %18, align 8, !tbaa !9
  %488 = getelementptr inbounds ptr, ptr %486, i64 %487
  %489 = load ptr, ptr %488, align 8, !tbaa !5
  %490 = load i64, ptr %19, align 8, !tbaa !9
  %491 = getelementptr inbounds double, ptr %489, i64 %490
  %492 = load double, ptr %491, align 8, !tbaa !17
  %493 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %494 = load ptr, ptr %493, align 8, !tbaa !16
  %495 = load i64, ptr %18, align 8, !tbaa !9
  %496 = getelementptr inbounds ptr, ptr %494, i64 %495
  %497 = load ptr, ptr %496, align 8, !tbaa !5
  %498 = load i64, ptr %19, align 8, !tbaa !9
  %499 = getelementptr inbounds double, ptr %497, i64 %498
  %500 = load double, ptr %499, align 8, !tbaa !17
  %501 = call double @llvm.fmuladd.f64(double %492, double %500, double %484)
  %502 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %503 = load ptr, ptr %502, align 8, !tbaa !16
  %504 = load i64, ptr %19, align 8, !tbaa !9
  %505 = getelementptr inbounds double, ptr %503, i64 %504
  store double %501, ptr %505, align 8, !tbaa !17
  br label %506

506:                                              ; preds = %479
  %507 = load i64, ptr %19, align 8, !tbaa !9
  %508 = add nsw i64 %507, 1
  store i64 %508, ptr %19, align 8, !tbaa !9
  br label %459, !llvm.loop !34

509:                                              ; preds = %459
  br label %510

510:                                              ; preds = %509
  %511 = load i64, ptr %18, align 8, !tbaa !9
  %512 = add nsw i64 %511, 1
  store i64 %512, ptr %18, align 8, !tbaa !9
  br label %441, !llvm.loop !35

513:                                              ; preds = %441
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %514

514:                                              ; preds = %535, %513
  %515 = load i64, ptr %19, align 8, !tbaa !9
  %516 = load i64, ptr %12, align 8, !tbaa !9
  %517 = sub nsw i64 %516, 1
  %518 = icmp sle i64 %515, %517
  br i1 %518, label %519, label %538

519:                                              ; preds = %514
  %520 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %521 = load ptr, ptr %520, align 8, !tbaa !16
  %522 = load i64, ptr %19, align 8, !tbaa !9
  %523 = getelementptr inbounds double, ptr %521, i64 %522
  %524 = load double, ptr %523, align 8, !tbaa !17
  %525 = load i64, ptr %10, align 8, !tbaa !9
  %526 = sub nsw i64 %525, 1
  %527 = sitofp i64 %526 to double
  %528 = fdiv double %524, %527
  %529 = load ptr, ptr %14, align 8, !tbaa !5
  %530 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %528, ptr noundef %529)
  %531 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %532 = load ptr, ptr %531, align 8, !tbaa !16
  %533 = load i64, ptr %19, align 8, !tbaa !9
  %534 = getelementptr inbounds double, ptr %532, i64 %533
  store double %530, ptr %534, align 8, !tbaa !17
  br label %535

535:                                              ; preds = %519
  %536 = load i64, ptr %19, align 8, !tbaa !9
  %537 = add nsw i64 %536, 1
  store i64 %537, ptr %19, align 8, !tbaa !9
  br label %514, !llvm.loop !36

538:                                              ; preds = %514
  %539 = load i64, ptr %11, align 8, !tbaa !9
  %540 = load i64, ptr %12, align 8, !tbaa !9
  %541 = load i64, ptr %10, align 8, !tbaa !9
  %542 = load i64, ptr %10, align 8, !tbaa !9
  %543 = sub nsw i64 %542, 1
  %544 = sitofp i64 %543 to double
  %545 = fdiv double 1.000000e+00, %544
  %546 = load ptr, ptr %13, align 8, !tbaa !5
  %547 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef %539, i64 noundef %540, i64 noundef %541, double noundef %545, ptr noundef %16, i64 noundef 0, i64 noundef 0, i64 noundef 1, ptr noundef %17, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %546, i64 noundef 0, i64 noundef 0, ptr noundef %547)
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %548

548:                                              ; preds = %577, %538
  %549 = load i64, ptr %18, align 8, !tbaa !9
  %550 = load i64, ptr %11, align 8, !tbaa !9
  %551 = sub nsw i64 %550, 1
  %552 = icmp sle i64 %549, %551
  br i1 %552, label %553, label %580

553:                                              ; preds = %548
  %554 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %555 = load ptr, ptr %554, align 8, !tbaa !16
  %556 = load i64, ptr %18, align 8, !tbaa !9
  %557 = getelementptr inbounds double, ptr %555, i64 %556
  %558 = load double, ptr %557, align 8, !tbaa !17
  %559 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %558, double noundef 0.000000e+00)
  br i1 %559, label %560, label %571

560:                                              ; preds = %553
  %561 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %562 = load ptr, ptr %561, align 8, !tbaa !16
  %563 = load i64, ptr %18, align 8, !tbaa !9
  %564 = getelementptr inbounds double, ptr %562, i64 %563
  %565 = load double, ptr %564, align 8, !tbaa !17
  %566 = fdiv double 1.000000e+00, %565
  %567 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %568 = load ptr, ptr %567, align 8, !tbaa !16
  %569 = load i64, ptr %18, align 8, !tbaa !9
  %570 = getelementptr inbounds double, ptr %568, i64 %569
  store double %566, ptr %570, align 8, !tbaa !17
  br label %576

571:                                              ; preds = %553
  %572 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %573 = load ptr, ptr %572, align 8, !tbaa !16
  %574 = load i64, ptr %18, align 8, !tbaa !9
  %575 = getelementptr inbounds double, ptr %573, i64 %574
  store double 0.000000e+00, ptr %575, align 8, !tbaa !17
  br label %576

576:                                              ; preds = %571, %560
  br label %577

577:                                              ; preds = %576
  %578 = load i64, ptr %18, align 8, !tbaa !9
  %579 = add nsw i64 %578, 1
  store i64 %579, ptr %18, align 8, !tbaa !9
  br label %548, !llvm.loop !37

580:                                              ; preds = %548
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %581

581:                                              ; preds = %610, %580
  %582 = load i64, ptr %18, align 8, !tbaa !9
  %583 = load i64, ptr %12, align 8, !tbaa !9
  %584 = sub nsw i64 %583, 1
  %585 = icmp sle i64 %582, %584
  br i1 %585, label %586, label %613

586:                                              ; preds = %581
  %587 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %588 = load ptr, ptr %587, align 8, !tbaa !16
  %589 = load i64, ptr %18, align 8, !tbaa !9
  %590 = getelementptr inbounds double, ptr %588, i64 %589
  %591 = load double, ptr %590, align 8, !tbaa !17
  %592 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %591, double noundef 0.000000e+00)
  br i1 %592, label %593, label %604

593:                                              ; preds = %586
  %594 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %595 = load ptr, ptr %594, align 8, !tbaa !16
  %596 = load i64, ptr %18, align 8, !tbaa !9
  %597 = getelementptr inbounds double, ptr %595, i64 %596
  %598 = load double, ptr %597, align 8, !tbaa !17
  %599 = fdiv double 1.000000e+00, %598
  %600 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %601 = load ptr, ptr %600, align 8, !tbaa !16
  %602 = load i64, ptr %18, align 8, !tbaa !9
  %603 = getelementptr inbounds double, ptr %601, i64 %602
  store double %599, ptr %603, align 8, !tbaa !17
  br label %609

604:                                              ; preds = %586
  %605 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %606 = load ptr, ptr %605, align 8, !tbaa !16
  %607 = load i64, ptr %18, align 8, !tbaa !9
  %608 = getelementptr inbounds double, ptr %606, i64 %607
  store double 0.000000e+00, ptr %608, align 8, !tbaa !17
  br label %609

609:                                              ; preds = %604, %593
  br label %610

610:                                              ; preds = %609
  %611 = load i64, ptr %18, align 8, !tbaa !9
  %612 = add nsw i64 %611, 1
  store i64 %612, ptr %18, align 8, !tbaa !9
  br label %581, !llvm.loop !38

613:                                              ; preds = %581
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %614

614:                                              ; preds = %660, %613
  %615 = load i64, ptr %18, align 8, !tbaa !9
  %616 = load i64, ptr %11, align 8, !tbaa !9
  %617 = sub nsw i64 %616, 1
  %618 = icmp sle i64 %615, %617
  br i1 %618, label %619, label %663

619:                                              ; preds = %614
  %620 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %621 = load ptr, ptr %620, align 8, !tbaa !16
  %622 = load i64, ptr %18, align 8, !tbaa !9
  %623 = getelementptr inbounds double, ptr %621, i64 %622
  %624 = load double, ptr %623, align 8, !tbaa !17
  store double %624, ptr %20, align 8, !tbaa !17
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %625

625:                                              ; preds = %656, %619
  %626 = load i64, ptr %19, align 8, !tbaa !9
  %627 = load i64, ptr %12, align 8, !tbaa !9
  %628 = sub nsw i64 %627, 1
  %629 = icmp sle i64 %626, %628
  br i1 %629, label %630, label %659

630:                                              ; preds = %625
  %631 = load ptr, ptr %13, align 8, !tbaa !5
  %632 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %631, i32 0, i32 6
  %633 = load ptr, ptr %632, align 8, !tbaa !16
  %634 = load i64, ptr %18, align 8, !tbaa !9
  %635 = getelementptr inbounds ptr, ptr %633, i64 %634
  %636 = load ptr, ptr %635, align 8, !tbaa !5
  %637 = load i64, ptr %19, align 8, !tbaa !9
  %638 = getelementptr inbounds double, ptr %636, i64 %637
  %639 = load double, ptr %638, align 8, !tbaa !17
  %640 = load double, ptr %20, align 8, !tbaa !17
  %641 = fmul double %639, %640
  %642 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %643 = load ptr, ptr %642, align 8, !tbaa !16
  %644 = load i64, ptr %19, align 8, !tbaa !9
  %645 = getelementptr inbounds double, ptr %643, i64 %644
  %646 = load double, ptr %645, align 8, !tbaa !17
  %647 = fmul double %641, %646
  %648 = load ptr, ptr %13, align 8, !tbaa !5
  %649 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %648, i32 0, i32 6
  %650 = load ptr, ptr %649, align 8, !tbaa !16
  %651 = load i64, ptr %18, align 8, !tbaa !9
  %652 = getelementptr inbounds ptr, ptr %650, i64 %651
  %653 = load ptr, ptr %652, align 8, !tbaa !5
  %654 = load i64, ptr %19, align 8, !tbaa !9
  %655 = getelementptr inbounds double, ptr %653, i64 %654
  store double %647, ptr %655, align 8, !tbaa !17
  br label %656

656:                                              ; preds = %630
  %657 = load i64, ptr %19, align 8, !tbaa !9
  %658 = add nsw i64 %657, 1
  store i64 %658, ptr %19, align 8, !tbaa !9
  br label %625, !llvm.loop !39

659:                                              ; preds = %625
  br label %660

660:                                              ; preds = %659
  %661 = load i64, ptr %18, align 8, !tbaa !9
  %662 = add nsw i64 %661, 1
  store i64 %662, ptr %18, align 8, !tbaa !9
  br label %614, !llvm.loop !40

663:                                              ; preds = %614
  %664 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %664)
  store i32 0, ptr %28, align 4
  br label %665

665:                                              ; preds = %663, %125
  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 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  %666 = load i32, ptr %28, align 4
  switch i32 %666, label %668 [
    i32 0, label %667
    i32 1, label %667
  ]

667:                                              ; preds = %665, %665
  ret void

668:                                              ; preds = %665
  unreachable
}

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(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_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!12, !10, i64 8}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!13, !13, i64 0}
!23 = distinct !{!23, !20}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}
!30 = distinct !{!30, !20}
!31 = distinct !{!31, !20}
!32 = distinct !{!32, !20}
!33 = distinct !{!33, !20}
!34 = distinct !{!34, !20}
!35 = distinct !{!35, !20}
!36 = distinct !{!36, !20}
!37 = distinct !{!37, !20}
!38 = distinct !{!38, !20}
!39 = distinct !{!39, !20}
!40 = distinct !{!40, !20}


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.57 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13pearsoncorrm2EPKNS_9ae_matrixES2_lllPS0_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #1 {
  %8 = alloca %"struct.alglib_impl::ae_frame", align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %10 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"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
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %6, ptr noundef nonnull %8)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %9, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %10, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  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 @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %9, ptr noundef %0, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %10, ptr noundef %1, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %5)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 1, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 1, ptr noundef %6, i1 noundef zeroext true)
  %18 = icmp sgt i64 %2, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.57, ptr noundef %6)
  %19 = icmp sgt i64 %3, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.58, ptr noundef %6)
  %20 = icmp sgt i64 %4, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.59, ptr noundef %6)
  %21 = load i64, ptr %9, align 8, !tbaa !5
  %22 = icmp sge i64 %21, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.60, ptr noundef %6)
  %23 = getelementptr inbounds i8, ptr %9, i64 8
  %24 = load i64, ptr %23, align 8, !tbaa !13
  %25 = icmp sge i64 %24, %3
  %26 = icmp eq i64 %2, 0
  %27 = or i1 %26, %25
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef nonnull @.str.61, ptr noundef %6)
  %28 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %2, i64 noundef %3, ptr noundef %6)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %28, ptr noundef nonnull @.str.62, ptr noundef %6)
  %29 = load i64, ptr %10, align 8, !tbaa !5
  %30 = icmp sge i64 %29, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef nonnull @.str.63, ptr noundef %6)
  %31 = getelementptr inbounds i8, ptr %10, i64 8
  %32 = load i64, ptr %31, align 8, !tbaa !13
  %33 = icmp sge i64 %32, %4
  %34 = or i1 %26, %33
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef nonnull @.str.64, ptr noundef %6)
  %35 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %2, i64 noundef %4, ptr noundef %6)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef nonnull @.str.62, ptr noundef %6)
  %36 = icmp slt i64 %2, 2
  br i1 %36, label %37, label %66

37:                                               ; preds = %7
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %3, i64 noundef %4, ptr noundef %6)
  br i1 %19, label %.preheader.lr.ph, label %._crit_edge306

.preheader.lr.ph:                                 ; preds = %37
  %38 = getelementptr inbounds i8, ptr %5, i64 72
  br i1 %20, label %.preheader.us.preheader, label %._crit_edge306

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter352 = and i64 %4, 3
  %39 = icmp ult i64 %4, 4
  %unroll_iter354 = and i64 %4, 9223372036854775804
  %lcmp.mod353.not = icmp eq i64 %xtraiter352, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge303.us
  %.0199305.us = phi i64 [ %65, %._crit_edge303.us ], [ 0, %.preheader.us.preheader ]
  br i1 %39, label %._crit_edge303.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.0301.us = phi i64 [ %59, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter355 = phi i64 [ %niter355.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %40 = load ptr, ptr %38, align 8, !tbaa !14
  %41 = getelementptr inbounds ptr, ptr %40, i64 %.0199305.us
  %42 = load ptr, ptr %41, align 8, !tbaa !15
  %43 = getelementptr inbounds double, ptr %42, i64 %.0301.us
  store double 0.000000e+00, ptr %43, align 8, !tbaa !16
  %44 = or disjoint i64 %.0301.us, 1
  %45 = load ptr, ptr %38, align 8, !tbaa !14
  %46 = getelementptr inbounds ptr, ptr %45, i64 %.0199305.us
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  %48 = getelementptr inbounds double, ptr %47, i64 %44
  store double 0.000000e+00, ptr %48, align 8, !tbaa !16
  %49 = or disjoint i64 %.0301.us, 2
  %50 = load ptr, ptr %38, align 8, !tbaa !14
  %51 = getelementptr inbounds ptr, ptr %50, i64 %.0199305.us
  %52 = load ptr, ptr %51, align 8, !tbaa !15
  %53 = getelementptr inbounds double, ptr %52, i64 %49
  store double 0.000000e+00, ptr %53, align 8, !tbaa !16
  %54 = or disjoint i64 %.0301.us, 3
  %55 = load ptr, ptr %38, align 8, !tbaa !14
  %56 = getelementptr inbounds ptr, ptr %55, i64 %.0199305.us
  %57 = load ptr, ptr %56, align 8, !tbaa !15
  %58 = getelementptr inbounds double, ptr %57, i64 %54
  store double 0.000000e+00, ptr %58, align 8, !tbaa !16
  %59 = add nuw nsw i64 %.0301.us, 4
  %niter355.next.3 = add i64 %niter355, 4
  %niter355.ncmp.3 = icmp eq i64 %niter355.next.3, %unroll_iter354
  br i1 %niter355.ncmp.3, label %._crit_edge303.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !18

._crit_edge303.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.0301.us.unr = phi i64 [ 0, %.preheader.us ], [ %59, %.preheader.us.new ]
  br i1 %lcmp.mod353.not, label %._crit_edge303.us, label %.epil.preheader351

.epil.preheader351:                               ; preds = %._crit_edge303.us.unr-lcssa, %.epil.preheader351
  %.0301.us.epil = phi i64 [ %64, %.epil.preheader351 ], [ %.0301.us.unr, %._crit_edge303.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader351 ], [ 0, %._crit_edge303.us.unr-lcssa ]
  %60 = load ptr, ptr %38, align 8, !tbaa !14
  %61 = getelementptr inbounds ptr, ptr %60, i64 %.0199305.us
  %62 = load ptr, ptr %61, align 8, !tbaa !15
  %63 = getelementptr inbounds double, ptr %62, i64 %.0301.us.epil
  store double 0.000000e+00, ptr %63, align 8, !tbaa !16
  %64 = add nuw nsw i64 %.0301.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter352
  br i1 %epil.iter.cmp.not, label %._crit_edge303.us, label %.epil.preheader351, !llvm.loop !20

._crit_edge303.us:                                ; preds = %.epil.preheader351, %._crit_edge303.us.unr-lcssa
  %65 = add nuw nsw i64 %.0199305.us, 1
  %exitcond328.not = icmp eq i64 %65, %3
  br i1 %exitcond328.not, label %._crit_edge306, label %.preheader.us, !llvm.loop !22

66:                                               ; preds = %7
  %67 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %3, i64 noundef %4, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %67, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %3, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %4, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %3, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %4, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %3, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %4, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %3, i64 noundef %4, ptr noundef %6)
  br i1 %19, label %.lr.ph, label %.lr.ph247

.lr.ph:                                           ; preds = %66
  %68 = getelementptr inbounds i8, ptr %11, i64 56
  %69 = getelementptr inbounds i8, ptr %16, i64 56
  %70 = getelementptr inbounds i8, ptr %14, i64 56
  %xtraiter = and i64 %3, 1
  %71 = icmp eq i64 %3, 1
  br i1 %71, label %.lr.ph247.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %3, 9223372036854775806
  br label %72

72:                                               ; preds = %72, %.lr.ph.new
  %.1200238 = phi i64 [ 0, %.lr.ph.new ], [ %86, %72 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %72 ]
  %73 = load ptr, ptr %68, align 8, !tbaa !14
  %74 = getelementptr inbounds double, ptr %73, i64 %.1200238
  store double 0.000000e+00, ptr %74, align 8, !tbaa !16
  %75 = load ptr, ptr %69, align 8, !tbaa !14
  %76 = getelementptr inbounds i8, ptr %75, i64 %.1200238
  store i8 1, ptr %76, align 1, !tbaa !23
  %77 = load ptr, ptr %70, align 8, !tbaa !14
  %78 = getelementptr inbounds double, ptr %77, i64 %.1200238
  store double 0.000000e+00, ptr %78, align 8, !tbaa !16
  %79 = or disjoint i64 %.1200238, 1
  %80 = load ptr, ptr %68, align 8, !tbaa !14
  %81 = getelementptr inbounds double, ptr %80, i64 %79
  store double 0.000000e+00, ptr %81, align 8, !tbaa !16
  %82 = load ptr, ptr %69, align 8, !tbaa !14
  %83 = getelementptr inbounds i8, ptr %82, i64 %79
  store i8 1, ptr %83, align 1, !tbaa !23
  %84 = load ptr, ptr %70, align 8, !tbaa !14
  %85 = getelementptr inbounds double, ptr %84, i64 %79
  store double 0.000000e+00, ptr %85, align 8, !tbaa !16
  %86 = add nuw nsw i64 %.1200238, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.lr.ph247.loopexit.unr-lcssa, label %72, !llvm.loop !24

.lr.ph247.loopexit.unr-lcssa:                     ; preds = %72, %.lr.ph
  %.1200238.unr = phi i64 [ 0, %.lr.ph ], [ %86, %72 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph247, label %.lr.ph247.loopexit.epilog-lcssa

.lr.ph247.loopexit.epilog-lcssa:                  ; preds = %.lr.ph247.loopexit.unr-lcssa
  %87 = load ptr, ptr %68, align 8, !tbaa !14
  %88 = getelementptr inbounds double, ptr %87, i64 %.1200238.unr
  store double 0.000000e+00, ptr %88, align 8, !tbaa !16
  %89 = load ptr, ptr %69, align 8, !tbaa !14
  %90 = getelementptr inbounds i8, ptr %89, i64 %.1200238.unr
  store i8 1, ptr %90, align 1, !tbaa !23
  %91 = load ptr, ptr %70, align 8, !tbaa !14
  %92 = getelementptr inbounds double, ptr %91, i64 %.1200238.unr
  store double 0.000000e+00, ptr %92, align 8, !tbaa !16
  br label %.lr.ph247

.lr.ph247:                                        ; preds = %.lr.ph247.loopexit.epilog-lcssa, %.lr.ph247.loopexit.unr-lcssa, %66
  %93 = add nsw i64 %3, -1
  %94 = getelementptr inbounds i8, ptr %12, i64 56
  %95 = load ptr, ptr %94, align 8, !tbaa !14
  %96 = getelementptr inbounds i8, ptr %9, i64 72
  %97 = load ptr, ptr %96, align 8, !tbaa !14
  %98 = load ptr, ptr %97, align 8, !tbaa !15
  %99 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %93)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %95, i64 noundef 1, ptr noundef %98, i64 noundef 1, i64 noundef %99)
  %100 = uitofp nneg i64 %2 to double
  %101 = fdiv double 1.000000e+00, %100
  %102 = getelementptr inbounds i8, ptr %11, i64 56
  %103 = getelementptr inbounds i8, ptr %16, i64 56
  %smax = call i64 @llvm.smax.i64(i64 %2, i64 1)
  br label %108

.lr.ph255:                                        ; preds = %._crit_edge243
  %104 = add nsw i64 %2, -1
  %105 = getelementptr inbounds i8, ptr %11, i64 56
  %106 = getelementptr inbounds i8, ptr %16, i64 56
  %107 = getelementptr inbounds i8, ptr %14, i64 56
  %smax312 = call i64 @llvm.smax.i64(i64 %2, i64 1)
  br label %.backedge335

108:                                              ; preds = %.lr.ph247, %._crit_edge243
  %.2201245 = phi i64 [ 0, %.lr.ph247 ], [ %134, %._crit_edge243 ]
  %109 = load ptr, ptr %102, align 8, !tbaa !14
  %110 = load ptr, ptr %96, align 8, !tbaa !14
  %111 = getelementptr inbounds ptr, ptr %110, i64 %.2201245
  %112 = load ptr, ptr %111, align 8, !tbaa !15
  %113 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %93)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %109, i64 noundef 1, ptr noundef %112, i64 noundef 1, i64 noundef %113, double noundef %101)
  br i1 %19, label %.lr.ph242, label %._crit_edge243

.lr.ph242:                                        ; preds = %108, %128
  %.1240 = phi i64 [ %133, %128 ], [ 0, %108 ]
  %114 = load ptr, ptr %103, align 8, !tbaa !14
  %115 = getelementptr inbounds i8, ptr %114, i64 %.1240
  %116 = load i8, ptr %115, align 1, !tbaa !23, !range !25, !noundef !26
  %117 = trunc nuw i8 %116 to i1
  br i1 %117, label %118, label %128

118:                                              ; preds = %.lr.ph242
  %119 = load ptr, ptr %96, align 8, !tbaa !14
  %120 = getelementptr inbounds ptr, ptr %119, i64 %.2201245
  %121 = load ptr, ptr %120, align 8, !tbaa !15
  %122 = getelementptr inbounds double, ptr %121, i64 %.1240
  %123 = load double, ptr %122, align 8, !tbaa !16
  %124 = load ptr, ptr %94, align 8, !tbaa !14
  %125 = getelementptr inbounds double, ptr %124, i64 %.1240
  %126 = load double, ptr %125, align 8, !tbaa !16
  %127 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %123, double noundef %126)
  %.pre = load ptr, ptr %103, align 8, !tbaa !14
  br label %128

128:                                              ; preds = %118, %.lr.ph242
  %129 = phi ptr [ %114, %.lr.ph242 ], [ %.pre, %118 ]
  %130 = phi i1 [ false, %.lr.ph242 ], [ %127, %118 ]
  %131 = getelementptr inbounds i8, ptr %129, i64 %.1240
  %132 = zext i1 %130 to i8
  store i8 %132, ptr %131, align 1, !tbaa !23
  %133 = add nuw nsw i64 %.1240, 1
  %exitcond309.not = icmp eq i64 %133, %3
  br i1 %exitcond309.not, label %._crit_edge243, label %.lr.ph242, !llvm.loop !27

._crit_edge243:                                   ; preds = %128, %108
  %134 = add nuw nsw i64 %.2201245, 1
  %exitcond310.not = icmp eq i64 %134, %smax
  br i1 %exitcond310.not, label %.lr.ph255, label %108, !llvm.loop !28

.preheader233:                                    ; preds = %._crit_edge252
  br i1 %19, label %.lr.ph258, label %.preheader232

.lr.ph258:                                        ; preds = %.preheader233
  %135 = getelementptr inbounds i8, ptr %14, i64 56
  %136 = uitofp nneg i64 %104 to double
  br label %168

.backedge335:                                     ; preds = %.backedge335.backedge, %.lr.ph255
  %.3202254 = phi i64 [ 0, %.lr.ph255 ], [ %.3202254.be, %.backedge335.backedge ]
  %137 = load ptr, ptr %96, align 8, !tbaa !14
  %138 = getelementptr inbounds ptr, ptr %137, i64 %.3202254
  %139 = load ptr, ptr %138, align 8, !tbaa !15
  %140 = load ptr, ptr %105, align 8, !tbaa !14
  %141 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %93)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %139, i64 noundef 1, ptr noundef %140, i64 noundef 1, i64 noundef %141)
  br i1 %19, label %.lr.ph251, label %._crit_edge252.thread

.lr.ph251:                                        ; preds = %.backedge335, %151
  %.2249 = phi i64 [ %161, %151 ], [ 0, %.backedge335 ]
  %142 = load ptr, ptr %106, align 8, !tbaa !14
  %143 = getelementptr inbounds i8, ptr %142, i64 %.2249
  %144 = load i8, ptr %143, align 1, !tbaa !23, !range !25, !noundef !26
  %145 = trunc nuw i8 %144 to i1
  br i1 %145, label %146, label %151

146:                                              ; preds = %.lr.ph251
  %147 = load ptr, ptr %96, align 8, !tbaa !14
  %148 = getelementptr inbounds ptr, ptr %147, i64 %.3202254
  %149 = load ptr, ptr %148, align 8, !tbaa !15
  %150 = getelementptr inbounds double, ptr %149, i64 %.2249
  store double 0.000000e+00, ptr %150, align 8, !tbaa !16
  br label %151

151:                                              ; preds = %146, %.lr.ph251
  %152 = load ptr, ptr %107, align 8, !tbaa !14
  %153 = getelementptr inbounds double, ptr %152, i64 %.2249
  %154 = load double, ptr %153, align 8, !tbaa !16
  %155 = load ptr, ptr %96, align 8, !tbaa !14
  %156 = getelementptr inbounds ptr, ptr %155, i64 %.3202254
  %157 = load ptr, ptr %156, align 8, !tbaa !15
  %158 = getelementptr inbounds double, ptr %157, i64 %.2249
  %159 = load double, ptr %158, align 8, !tbaa !16
  %160 = call double @llvm.fmuladd.f64(double %159, double %159, double %154)
  store double %160, ptr %153, align 8, !tbaa !16
  %161 = add nuw nsw i64 %.2249, 1
  %exitcond311.not = icmp eq i64 %161, %3
  br i1 %exitcond311.not, label %._crit_edge252, label %.lr.ph251, !llvm.loop !29

._crit_edge252:                                   ; preds = %151
  %162 = add nuw nsw i64 %.3202254, 1
  %exitcond313.not = icmp eq i64 %162, %smax312
  br i1 %exitcond313.not, label %.preheader233, label %.backedge335.backedge

.backedge335.backedge:                            ; preds = %._crit_edge252, %._crit_edge252.thread
  %.3202254.be = phi i64 [ %162, %._crit_edge252 ], [ %163, %._crit_edge252.thread ]
  br label %.backedge335, !llvm.loop !30

._crit_edge252.thread:                            ; preds = %.backedge335
  %163 = add nuw nsw i64 %.3202254, 1
  %exitcond313.not331 = icmp eq i64 %163, %smax312
  br i1 %exitcond313.not331, label %.preheader232, label %.backedge335.backedge

.preheader232:                                    ; preds = %._crit_edge252.thread, %168, %.preheader233
  br i1 %20, label %.lr.ph261, label %.lr.ph271

.lr.ph261:                                        ; preds = %.preheader232
  %164 = getelementptr inbounds i8, ptr %11, i64 56
  %165 = getelementptr inbounds i8, ptr %17, i64 56
  %166 = getelementptr inbounds i8, ptr %15, i64 56
  %xtraiter342 = and i64 %4, 1
  %167 = icmp eq i64 %4, 1
  br i1 %167, label %.lr.ph271.loopexit.unr-lcssa, label %.lr.ph261.new

.lr.ph261.new:                                    ; preds = %.lr.ph261
  %unroll_iter344 = and i64 %4, 9223372036854775806
  br label %177

168:                                              ; preds = %.lr.ph258, %168
  %.3257 = phi i64 [ 0, %.lr.ph258 ], [ %176, %168 ]
  %169 = load ptr, ptr %135, align 8, !tbaa !14
  %170 = getelementptr inbounds double, ptr %169, i64 %.3257
  %171 = load double, ptr %170, align 8, !tbaa !16
  %172 = fdiv double %171, %136
  %173 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %172, ptr noundef %6)
  %174 = load ptr, ptr %135, align 8, !tbaa !14
  %175 = getelementptr inbounds double, ptr %174, i64 %.3257
  store double %173, ptr %175, align 8, !tbaa !16
  %176 = add nuw nsw i64 %.3257, 1
  %exitcond314.not = icmp eq i64 %176, %3
  br i1 %exitcond314.not, label %.preheader232, label %168, !llvm.loop !31

177:                                              ; preds = %177, %.lr.ph261.new
  %.4203260 = phi i64 [ 0, %.lr.ph261.new ], [ %191, %177 ]
  %niter345 = phi i64 [ 0, %.lr.ph261.new ], [ %niter345.next.1, %177 ]
  %178 = load ptr, ptr %164, align 8, !tbaa !14
  %179 = getelementptr inbounds double, ptr %178, i64 %.4203260
  store double 0.000000e+00, ptr %179, align 8, !tbaa !16
  %180 = load ptr, ptr %165, align 8, !tbaa !14
  %181 = getelementptr inbounds i8, ptr %180, i64 %.4203260
  store i8 1, ptr %181, align 1, !tbaa !23
  %182 = load ptr, ptr %166, align 8, !tbaa !14
  %183 = getelementptr inbounds double, ptr %182, i64 %.4203260
  store double 0.000000e+00, ptr %183, align 8, !tbaa !16
  %184 = or disjoint i64 %.4203260, 1
  %185 = load ptr, ptr %164, align 8, !tbaa !14
  %186 = getelementptr inbounds double, ptr %185, i64 %184
  store double 0.000000e+00, ptr %186, align 8, !tbaa !16
  %187 = load ptr, ptr %165, align 8, !tbaa !14
  %188 = getelementptr inbounds i8, ptr %187, i64 %184
  store i8 1, ptr %188, align 1, !tbaa !23
  %189 = load ptr, ptr %166, align 8, !tbaa !14
  %190 = getelementptr inbounds double, ptr %189, i64 %184
  store double 0.000000e+00, ptr %190, align 8, !tbaa !16
  %191 = add nuw nsw i64 %.4203260, 2
  %niter345.next.1 = add i64 %niter345, 2
  %niter345.ncmp.1 = icmp eq i64 %niter345.next.1, %unroll_iter344
  br i1 %niter345.ncmp.1, label %.lr.ph271.loopexit.unr-lcssa, label %177, !llvm.loop !32

.lr.ph271.loopexit.unr-lcssa:                     ; preds = %177, %.lr.ph261
  %.4203260.unr = phi i64 [ 0, %.lr.ph261 ], [ %191, %177 ]
  %lcmp.mod343.not = icmp eq i64 %xtraiter342, 0
  br i1 %lcmp.mod343.not, label %.lr.ph271, label %.lr.ph271.loopexit.epilog-lcssa

.lr.ph271.loopexit.epilog-lcssa:                  ; preds = %.lr.ph271.loopexit.unr-lcssa
  %192 = load ptr, ptr %164, align 8, !tbaa !14
  %193 = getelementptr inbounds double, ptr %192, i64 %.4203260.unr
  store double 0.000000e+00, ptr %193, align 8, !tbaa !16
  %194 = load ptr, ptr %165, align 8, !tbaa !14
  %195 = getelementptr inbounds i8, ptr %194, i64 %.4203260.unr
  store i8 1, ptr %195, align 1, !tbaa !23
  %196 = load ptr, ptr %166, align 8, !tbaa !14
  %197 = getelementptr inbounds double, ptr %196, i64 %.4203260.unr
  store double 0.000000e+00, ptr %197, align 8, !tbaa !16
  br label %.lr.ph271

.lr.ph271:                                        ; preds = %.lr.ph271.loopexit.epilog-lcssa, %.lr.ph271.loopexit.unr-lcssa, %.preheader232
  %198 = add nsw i64 %4, -1
  %199 = getelementptr inbounds i8, ptr %13, i64 56
  %200 = load ptr, ptr %199, align 8, !tbaa !14
  %201 = getelementptr inbounds i8, ptr %10, i64 72
  %202 = load ptr, ptr %201, align 8, !tbaa !14
  %203 = load ptr, ptr %202, align 8, !tbaa !15
  %204 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %198)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %200, i64 noundef 1, ptr noundef %203, i64 noundef 1, i64 noundef %204)
  %205 = getelementptr inbounds i8, ptr %11, i64 56
  %206 = getelementptr inbounds i8, ptr %17, i64 56
  %smax317 = call i64 @llvm.smax.i64(i64 %2, i64 1)
  br label %210

.lr.ph279:                                        ; preds = %._crit_edge267
  %207 = getelementptr inbounds i8, ptr %11, i64 56
  %208 = getelementptr inbounds i8, ptr %17, i64 56
  %209 = getelementptr inbounds i8, ptr %15, i64 56
  %smax320 = call i64 @llvm.smax.i64(i64 %2, i64 1)
  br label %.backedge

210:                                              ; preds = %.lr.ph271, %._crit_edge267
  %.5204269 = phi i64 [ 0, %.lr.ph271 ], [ %236, %._crit_edge267 ]
  %211 = load ptr, ptr %205, align 8, !tbaa !14
  %212 = load ptr, ptr %201, align 8, !tbaa !14
  %213 = getelementptr inbounds ptr, ptr %212, i64 %.5204269
  %214 = load ptr, ptr %213, align 8, !tbaa !15
  %215 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %198)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %211, i64 noundef 1, ptr noundef %214, i64 noundef 1, i64 noundef %215, double noundef %101)
  br i1 %20, label %.lr.ph266, label %._crit_edge267

.lr.ph266:                                        ; preds = %210, %230
  %.4264 = phi i64 [ %235, %230 ], [ 0, %210 ]
  %216 = load ptr, ptr %206, align 8, !tbaa !14
  %217 = getelementptr inbounds i8, ptr %216, i64 %.4264
  %218 = load i8, ptr %217, align 1, !tbaa !23, !range !25, !noundef !26
  %219 = trunc nuw i8 %218 to i1
  br i1 %219, label %220, label %230

220:                                              ; preds = %.lr.ph266
  %221 = load ptr, ptr %201, align 8, !tbaa !14
  %222 = getelementptr inbounds ptr, ptr %221, i64 %.5204269
  %223 = load ptr, ptr %222, align 8, !tbaa !15
  %224 = getelementptr inbounds double, ptr %223, i64 %.4264
  %225 = load double, ptr %224, align 8, !tbaa !16
  %226 = load ptr, ptr %199, align 8, !tbaa !14
  %227 = getelementptr inbounds double, ptr %226, i64 %.4264
  %228 = load double, ptr %227, align 8, !tbaa !16
  %229 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %225, double noundef %228)
  %.pre329 = load ptr, ptr %206, align 8, !tbaa !14
  br label %230

230:                                              ; preds = %220, %.lr.ph266
  %231 = phi ptr [ %216, %.lr.ph266 ], [ %.pre329, %220 ]
  %232 = phi i1 [ false, %.lr.ph266 ], [ %229, %220 ]
  %233 = getelementptr inbounds i8, ptr %231, i64 %.4264
  %234 = zext i1 %232 to i8
  store i8 %234, ptr %233, align 1, !tbaa !23
  %235 = add nuw nsw i64 %.4264, 1
  %exitcond316.not = icmp eq i64 %235, %4
  br i1 %exitcond316.not, label %._crit_edge267, label %.lr.ph266, !llvm.loop !33

._crit_edge267:                                   ; preds = %230, %210
  %236 = add nuw nsw i64 %.5204269, 1
  %exitcond318.not = icmp eq i64 %236, %smax317
  br i1 %exitcond318.not, label %.lr.ph279, label %210, !llvm.loop !34

.preheader230:                                    ; preds = %._crit_edge276
  br i1 %20, label %.lr.ph282, label %._crit_edge283.thread

.lr.ph282:                                        ; preds = %.preheader230
  %237 = getelementptr inbounds i8, ptr %15, i64 56
  %238 = uitofp nneg i64 %104 to double
  br label %266

.backedge:                                        ; preds = %.backedge.backedge, %.lr.ph279
  %.6205278 = phi i64 [ 0, %.lr.ph279 ], [ %.6205278.be, %.backedge.backedge ]
  %239 = load ptr, ptr %201, align 8, !tbaa !14
  %240 = getelementptr inbounds ptr, ptr %239, i64 %.6205278
  %241 = load ptr, ptr %240, align 8, !tbaa !15
  %242 = load ptr, ptr %207, align 8, !tbaa !14
  %243 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %198)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %241, i64 noundef 1, ptr noundef %242, i64 noundef 1, i64 noundef %243)
  br i1 %20, label %.lr.ph275, label %._crit_edge276.thread

.lr.ph275:                                        ; preds = %.backedge, %253
  %.5273 = phi i64 [ %263, %253 ], [ 0, %.backedge ]
  %244 = load ptr, ptr %208, align 8, !tbaa !14
  %245 = getelementptr inbounds i8, ptr %244, i64 %.5273
  %246 = load i8, ptr %245, align 1, !tbaa !23, !range !25, !noundef !26
  %247 = trunc nuw i8 %246 to i1
  br i1 %247, label %248, label %253

248:                                              ; preds = %.lr.ph275
  %249 = load ptr, ptr %201, align 8, !tbaa !14
  %250 = getelementptr inbounds ptr, ptr %249, i64 %.6205278
  %251 = load ptr, ptr %250, align 8, !tbaa !15
  %252 = getelementptr inbounds double, ptr %251, i64 %.5273
  store double 0.000000e+00, ptr %252, align 8, !tbaa !16
  br label %253

253:                                              ; preds = %248, %.lr.ph275
  %254 = load ptr, ptr %209, align 8, !tbaa !14
  %255 = getelementptr inbounds double, ptr %254, i64 %.5273
  %256 = load double, ptr %255, align 8, !tbaa !16
  %257 = load ptr, ptr %201, align 8, !tbaa !14
  %258 = getelementptr inbounds ptr, ptr %257, i64 %.6205278
  %259 = load ptr, ptr %258, align 8, !tbaa !15
  %260 = getelementptr inbounds double, ptr %259, i64 %.5273
  %261 = load double, ptr %260, align 8, !tbaa !16
  %262 = call double @llvm.fmuladd.f64(double %261, double %261, double %256)
  store double %262, ptr %255, align 8, !tbaa !16
  %263 = add nuw nsw i64 %.5273, 1
  %exitcond319.not = icmp eq i64 %263, %4
  br i1 %exitcond319.not, label %._crit_edge276, label %.lr.ph275, !llvm.loop !35

._crit_edge276:                                   ; preds = %253
  %264 = add nuw nsw i64 %.6205278, 1
  %exitcond321.not = icmp eq i64 %264, %smax320
  br i1 %exitcond321.not, label %.preheader230, label %.backedge.backedge

.backedge.backedge:                               ; preds = %._crit_edge276, %._crit_edge276.thread
  %.6205278.be = phi i64 [ %264, %._crit_edge276 ], [ %265, %._crit_edge276.thread ]
  br label %.backedge, !llvm.loop !36

._crit_edge276.thread:                            ; preds = %.backedge
  %265 = add nuw nsw i64 %.6205278, 1
  %exitcond321.not332 = icmp eq i64 %265, %smax320
  br i1 %exitcond321.not332, label %._crit_edge283.thread, label %.backedge.backedge

266:                                              ; preds = %.lr.ph282, %266
  %.6281 = phi i64 [ 0, %.lr.ph282 ], [ %274, %266 ]
  %267 = load ptr, ptr %237, align 8, !tbaa !14
  %268 = getelementptr inbounds double, ptr %267, i64 %.6281
  %269 = load double, ptr %268, align 8, !tbaa !16
  %270 = fdiv double %269, %238
  %271 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %270, ptr noundef %6)
  %272 = load ptr, ptr %237, align 8, !tbaa !14
  %273 = getelementptr inbounds double, ptr %272, i64 %.6281
  store double %271, ptr %273, align 8, !tbaa !16
  %274 = add nuw nsw i64 %.6281, 1
  %exitcond322.not = icmp eq i64 %274, %4
  br i1 %exitcond322.not, label %._crit_edge283, label %266, !llvm.loop !37

._crit_edge283:                                   ; preds = %266
  %275 = fdiv double 1.000000e+00, %238
  call void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef %3, i64 noundef %4, i64 noundef %2, double noundef %275, ptr noundef nonnull %9, i64 noundef 0, i64 noundef 0, i64 noundef 1, ptr noundef nonnull %10, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %5, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  br i1 %19, label %.lr.ph287, label %.preheader229.thread

._crit_edge283.thread:                            ; preds = %._crit_edge276.thread, %.preheader230
  %.pre330 = uitofp nneg i64 %104 to double
  %276 = fdiv double 1.000000e+00, %.pre330
  call void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef %3, i64 noundef %4, i64 noundef %2, double noundef %276, ptr noundef nonnull %9, i64 noundef 0, i64 noundef 0, i64 noundef 1, ptr noundef nonnull %10, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %5, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  br i1 %19, label %.lr.ph287, label %._crit_edge306

.lr.ph287:                                        ; preds = %._crit_edge283.thread, %._crit_edge283
  %277 = getelementptr inbounds i8, ptr %14, i64 56
  br label %279

.preheader229:                                    ; preds = %289
  br i1 %20, label %.lr.ph290, label %._crit_edge306

.preheader229.thread:                             ; preds = %._crit_edge283
  br i1 %20, label %.lr.ph290, label %._crit_edge306

.lr.ph290:                                        ; preds = %.preheader229.thread, %.preheader229
  %278 = getelementptr inbounds i8, ptr %15, i64 56
  br label %331

279:                                              ; preds = %.lr.ph287, %289
  %.7206285 = phi i64 [ 0, %.lr.ph287 ], [ %290, %289 ]
  %280 = load ptr, ptr %277, align 8, !tbaa !14
  %281 = getelementptr inbounds double, ptr %280, i64 %.7206285
  %282 = load double, ptr %281, align 8, !tbaa !16
  %283 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %282, double noundef 0.000000e+00)
  %284 = load ptr, ptr %277, align 8, !tbaa !14
  %285 = getelementptr inbounds double, ptr %284, i64 %.7206285
  br i1 %283, label %286, label %289

286:                                              ; preds = %279
  %287 = load double, ptr %285, align 8, !tbaa !16
  %288 = fdiv double 1.000000e+00, %287
  br label %289

289:                                              ; preds = %279, %286
  %.sink = phi double [ %288, %286 ], [ 0.000000e+00, %279 ]
  store double %.sink, ptr %285, align 8, !tbaa !16
  %290 = add nuw nsw i64 %.7206285, 1
  %exitcond323.not = icmp eq i64 %290, %3
  br i1 %exitcond323.not, label %.preheader229, label %279, !llvm.loop !38

.preheader228:                                    ; preds = %341
  br i1 %19, label %.lr.ph298, label %._crit_edge306

.lr.ph298:                                        ; preds = %.preheader228
  %291 = getelementptr inbounds i8, ptr %14, i64 56
  %292 = getelementptr inbounds i8, ptr %5, i64 72
  %293 = getelementptr inbounds i8, ptr %15, i64 56
  br i1 %20, label %.lr.ph294.us.preheader, label %._crit_edge306

.lr.ph294.us.preheader:                           ; preds = %.lr.ph298
  %xtraiter347 = and i64 %4, 1
  %294 = icmp eq i64 %4, 1
  %unroll_iter349 = and i64 %4, 9223372036854775806
  %lcmp.mod348.not = icmp eq i64 %xtraiter347, 0
  br label %.lr.ph294.us

.lr.ph294.us:                                     ; preds = %.lr.ph294.us.preheader, %._crit_edge295.us
  %.9297.us = phi i64 [ %330, %._crit_edge295.us ], [ 0, %.lr.ph294.us.preheader ]
  %295 = load ptr, ptr %291, align 8, !tbaa !14
  %296 = getelementptr inbounds double, ptr %295, i64 %.9297.us
  %297 = load double, ptr %296, align 8, !tbaa !16
  br i1 %294, label %._crit_edge295.us.unr-lcssa, label %.lr.ph294.us.new

.lr.ph294.us.new:                                 ; preds = %.lr.ph294.us, %.lr.ph294.us.new
  %.7292.us = phi i64 [ %319, %.lr.ph294.us.new ], [ 0, %.lr.ph294.us ]
  %niter350 = phi i64 [ %niter350.next.1, %.lr.ph294.us.new ], [ 0, %.lr.ph294.us ]
  %298 = load ptr, ptr %292, align 8, !tbaa !14
  %299 = getelementptr inbounds ptr, ptr %298, i64 %.9297.us
  %300 = load ptr, ptr %299, align 8, !tbaa !15
  %301 = getelementptr inbounds double, ptr %300, i64 %.7292.us
  %302 = load double, ptr %301, align 8, !tbaa !16
  %303 = fmul double %297, %302
  %304 = load ptr, ptr %293, align 8, !tbaa !14
  %305 = getelementptr inbounds double, ptr %304, i64 %.7292.us
  %306 = load double, ptr %305, align 8, !tbaa !16
  %307 = fmul double %303, %306
  store double %307, ptr %301, align 8, !tbaa !16
  %308 = or disjoint i64 %.7292.us, 1
  %309 = load ptr, ptr %292, align 8, !tbaa !14
  %310 = getelementptr inbounds ptr, ptr %309, i64 %.9297.us
  %311 = load ptr, ptr %310, align 8, !tbaa !15
  %312 = getelementptr inbounds double, ptr %311, i64 %308
  %313 = load double, ptr %312, align 8, !tbaa !16
  %314 = fmul double %297, %313
  %315 = load ptr, ptr %293, align 8, !tbaa !14
  %316 = getelementptr inbounds double, ptr %315, i64 %308
  %317 = load double, ptr %316, align 8, !tbaa !16
  %318 = fmul double %314, %317
  store double %318, ptr %312, align 8, !tbaa !16
  %319 = add nuw nsw i64 %.7292.us, 2
  %niter350.next.1 = add i64 %niter350, 2
  %niter350.ncmp.1 = icmp eq i64 %niter350.next.1, %unroll_iter349
  br i1 %niter350.ncmp.1, label %._crit_edge295.us.unr-lcssa, label %.lr.ph294.us.new, !llvm.loop !39

._crit_edge295.us.unr-lcssa:                      ; preds = %.lr.ph294.us.new, %.lr.ph294.us
  %.7292.us.unr = phi i64 [ 0, %.lr.ph294.us ], [ %319, %.lr.ph294.us.new ]
  br i1 %lcmp.mod348.not, label %._crit_edge295.us, label %._crit_edge295.us.epilog-lcssa

._crit_edge295.us.epilog-lcssa:                   ; preds = %._crit_edge295.us.unr-lcssa
  %320 = load ptr, ptr %292, align 8, !tbaa !14
  %321 = getelementptr inbounds ptr, ptr %320, i64 %.9297.us
  %322 = load ptr, ptr %321, align 8, !tbaa !15
  %323 = getelementptr inbounds double, ptr %322, i64 %.7292.us.unr
  %324 = load double, ptr %323, align 8, !tbaa !16
  %325 = fmul double %297, %324
  %326 = load ptr, ptr %293, align 8, !tbaa !14
  %327 = getelementptr inbounds double, ptr %326, i64 %.7292.us.unr
  %328 = load double, ptr %327, align 8, !tbaa !16
  %329 = fmul double %325, %328
  store double %329, ptr %323, align 8, !tbaa !16
  br label %._crit_edge295.us

._crit_edge295.us:                                ; preds = %._crit_edge295.us.unr-lcssa, %._crit_edge295.us.epilog-lcssa
  %330 = add nuw nsw i64 %.9297.us, 1
  %exitcond326.not = icmp eq i64 %330, %3
  br i1 %exitcond326.not, label %._crit_edge306, label %.lr.ph294.us, !llvm.loop !40

331:                                              ; preds = %.lr.ph290, %341
  %.8289 = phi i64 [ 0, %.lr.ph290 ], [ %342, %341 ]
  %332 = load ptr, ptr %278, align 8, !tbaa !14
  %333 = getelementptr inbounds double, ptr %332, i64 %.8289
  %334 = load double, ptr %333, align 8, !tbaa !16
  %335 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %334, double noundef 0.000000e+00)
  %336 = load ptr, ptr %278, align 8, !tbaa !14
  %337 = getelementptr inbounds double, ptr %336, i64 %.8289
  br i1 %335, label %338, label %341

338:                                              ; preds = %331
  %339 = load double, ptr %337, align 8, !tbaa !16
  %340 = fdiv double 1.000000e+00, %339
  br label %341

341:                                              ; preds = %331, %338
  %.sink336 = phi double [ %340, %338 ], [ 0.000000e+00, %331 ]
  store double %.sink336, ptr %337, align 8, !tbaa !16
  %342 = add nuw nsw i64 %.8289, 1
  %exitcond324.not = icmp eq i64 %342, %4
  br i1 %exitcond324.not, label %.preheader228, label %331, !llvm.loop !41

._crit_edge306:                                   ; preds = %._crit_edge295.us, %._crit_edge303.us, %.preheader228, %.lr.ph298, %.preheader229.thread, %._crit_edge283.thread, %.preheader229, %37, %.preheader.lr.ph
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  ret void
}

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

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

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


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