; LLVM IR from venumb/ZSPACE :: cpp/depends/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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::apbuffers" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }

@.str.65 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [28 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_impl14spearmancorrm2EPNS_9ae_matrixES1_lllS1_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 i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca i8, align 1
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca double, align 8
  %24 = alloca double, 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_matrix", align 8
  %28 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %29 = alloca %"struct.alglib_impl::apbuffers", align 8
  %30 = 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 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, 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 1, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, 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 80, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 736, ptr %29) #5
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %31, ptr noundef %15)
  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 %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 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %29, i8 0, i64 736, i1 false)
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %32)
  %33 = 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 %33, i1 noundef zeroext true)
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %25, i64 noundef 0, i64 noundef 3, ptr noundef %34, i1 noundef zeroext true)
  %35 = 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 3, ptr noundef %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %27, i64 noundef 0, 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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %28, i64 noundef 0, 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_impl15_apbuffers_initEPvPNS_8ae_stateEb(ptr noundef %29, ptr noundef %38, i1 noundef zeroext true)
  %39 = load i64, ptr %10, align 8, !tbaa !9
  %40 = icmp sge i64 %39, 0
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %40, ptr noundef @.str.65, ptr noundef %41)
  %42 = load i64, ptr %11, align 8, !tbaa !9
  %43 = icmp sge i64 %42, 1
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef @.str.66, ptr noundef %44)
  %45 = load i64, ptr %12, 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.67, ptr noundef %47)
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %48, i32 0, i32 0
  %50 = load i64, ptr %49, align 8, !tbaa !11
  %51 = load i64, ptr %10, align 8, !tbaa !9
  %52 = icmp sge i64 %50, %51
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef @.str.68, ptr noundef %53)
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %54, i32 0, i32 1
  %56 = load i64, ptr %55, align 8, !tbaa !15
  %57 = load i64, ptr %11, align 8, !tbaa !9
  %58 = icmp sge i64 %56, %57
  br i1 %58, label %62, label %59

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

62:                                               ; preds = %59, %7
  %63 = phi i1 [ true, %7 ], [ %61, %59 ]
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %63, ptr noundef @.str.69, ptr noundef %64)
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %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_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %65, 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.70, ptr noundef %70)
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %71, i32 0, i32 0
  %73 = load i64, ptr %72, align 8, !tbaa !11
  %74 = load i64, ptr %10, align 8, !tbaa !9
  %75 = icmp sge i64 %73, %74
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %75, ptr noundef @.str.71, ptr noundef %76)
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %77, i32 0, i32 1
  %79 = load i64, ptr %78, align 8, !tbaa !15
  %80 = load i64, ptr %12, align 8, !tbaa !9
  %81 = icmp sge i64 %79, %80
  br i1 %81, label %85, label %82

82:                                               ; preds = %62
  %83 = load i64, ptr %10, align 8, !tbaa !9
  %84 = icmp eq i64 %83, 0
  br label %85

85:                                               ; preds = %82, %62
  %86 = phi i1 [ true, %62 ], [ %84, %82 ]
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %86, ptr noundef @.str.72, ptr noundef %87)
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = load i64, ptr %10, align 8, !tbaa !9
  %90 = load i64, ptr %12, align 8, !tbaa !9
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %88, i64 noundef %89, i64 noundef %90, ptr noundef %91)
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %92, ptr noundef @.str.70, ptr noundef %93)
  %94 = load i64, ptr %10, align 8, !tbaa !9
  %95 = icmp sle i64 %94, 1
  br i1 %95, label %96, label %130

96:                                               ; preds = %85
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = load i64, ptr %11, align 8, !tbaa !9
  %99 = load i64, ptr %12, align 8, !tbaa !9
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %97, i64 noundef %98, i64 noundef %99, ptr noundef %100)
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %101

101:                                              ; preds = %125, %96
  %102 = load i64, ptr %16, align 8, !tbaa !9
  %103 = load i64, ptr %11, align 8, !tbaa !9
  %104 = sub nsw i64 %103, 1
  %105 = icmp sle i64 %102, %104
  br i1 %105, label %106, label %128

106:                                              ; preds = %101
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %107

107:                                              ; preds = %121, %106
  %108 = load i64, ptr %17, align 8, !tbaa !9
  %109 = load i64, ptr %12, align 8, !tbaa !9
  %110 = sub nsw i64 %109, 1
  %111 = icmp sle i64 %108, %110
  br i1 %111, label %112, label %124

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

121:                                              ; preds = %112
  %122 = load i64, ptr %17, align 8, !tbaa !9
  %123 = add nsw i64 %122, 1
  store i64 %123, ptr %17, align 8, !tbaa !9
  br label %107, !llvm.loop !19

124:                                              ; preds = %107
  br label %125

125:                                              ; preds = %124
  %126 = load i64, ptr %16, align 8, !tbaa !9
  %127 = add nsw i64 %126, 1
  store i64 %127, ptr %16, align 8, !tbaa !9
  br label %101, !llvm.loop !21

128:                                              ; preds = %101
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %129)
  store i32 1, ptr %30, align 4
  br label %533

130:                                              ; preds = %85
  %131 = load i64, ptr %11, align 8, !tbaa !9
  %132 = load i64, ptr %12, align 8, !tbaa !9
  %133 = load ptr, ptr %14, align 8, !tbaa !5
  %134 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %131, i64 noundef %132, ptr noundef %133)
  %135 = load i64, ptr %10, align 8, !tbaa !9
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %134, i64 noundef %135, ptr noundef %136)
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %137, ptr noundef %138)
  %139 = load i64, ptr %11, 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 %12, 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 ptr, ptr %13, align 8, !tbaa !5
  %144 = load i64, ptr %11, align 8, !tbaa !9
  %145 = load i64, ptr %12, align 8, !tbaa !9
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %143, i64 noundef %144, i64 noundef %145, ptr noundef %146)
  %147 = load i64, ptr %11, align 8, !tbaa !9
  %148 = load i64, ptr %10, align 8, !tbaa !9
  %149 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %27, i64 noundef %147, i64 noundef %148, ptr noundef %149)
  %150 = load i64, ptr %12, align 8, !tbaa !9
  %151 = load i64, ptr %10, align 8, !tbaa !9
  %152 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %28, i64 noundef %150, i64 noundef %151, ptr noundef %152)
  %153 = load i64, ptr %10, align 8, !tbaa !9
  %154 = load i64, ptr %11, align 8, !tbaa !9
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixtransposeEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %153, i64 noundef %154, ptr noundef %155, i64 noundef 0, i64 noundef 0, ptr noundef %27, i64 noundef 0, i64 noundef 0, ptr noundef %156)
  %157 = load i64, ptr %10, align 8, !tbaa !9
  %158 = load i64, ptr %12, align 8, !tbaa !9
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixtransposeEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %157, i64 noundef %158, ptr noundef %159, i64 noundef 0, i64 noundef 0, ptr noundef %28, i64 noundef 0, i64 noundef 0, ptr noundef %160)
  %161 = load i64, ptr %11, align 8, !tbaa !9
  %162 = load i64, ptr %10, align 8, !tbaa !9
  %163 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl8rankdataEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %27, i64 noundef %161, i64 noundef %162, ptr noundef %163)
  %164 = load i64, ptr %12, align 8, !tbaa !9
  %165 = load i64, ptr %10, align 8, !tbaa !9
  %166 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl8rankdataEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %28, i64 noundef %164, i64 noundef %165, ptr noundef %166)
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %167

167:                                              ; preds = %283, %130
  %168 = load i64, ptr %16, align 8, !tbaa !9
  %169 = load i64, ptr %11, align 8, !tbaa !9
  %170 = sub nsw i64 %169, 1
  %171 = icmp sle i64 %168, %170
  br i1 %171, label %172, label %286

172:                                              ; preds = %167
  store double 0.000000e+00, ptr %18, align 8, !tbaa !17
  store double 0.000000e+00, ptr %19, align 8, !tbaa !17
  store i8 1, ptr %21, align 1, !tbaa !22
  %173 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %27, i32 0, i32 6
  %174 = load ptr, ptr %173, align 8, !tbaa !16
  %175 = load i64, ptr %16, align 8, !tbaa !9
  %176 = getelementptr inbounds ptr, ptr %174, i64 %175
  %177 = load ptr, ptr %176, align 8, !tbaa !5
  %178 = getelementptr inbounds double, ptr %177, i64 0
  %179 = load double, ptr %178, align 8, !tbaa !17
  store double %179, ptr %23, align 8, !tbaa !17
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %180

180:                                              ; preds = %206, %172
  %181 = load i64, ptr %17, align 8, !tbaa !9
  %182 = load i64, ptr %10, align 8, !tbaa !9
  %183 = sub nsw i64 %182, 1
  %184 = icmp sle i64 %181, %183
  br i1 %184, label %185, label %209

185:                                              ; preds = %180
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %27, i32 0, i32 6
  %187 = load ptr, ptr %186, align 8, !tbaa !16
  %188 = load i64, ptr %16, align 8, !tbaa !9
  %189 = getelementptr inbounds ptr, ptr %187, i64 %188
  %190 = load ptr, ptr %189, align 8, !tbaa !5
  %191 = load i64, ptr %17, align 8, !tbaa !9
  %192 = getelementptr inbounds double, ptr %190, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !17
  store double %193, ptr %20, align 8, !tbaa !17
  %194 = load double, ptr %18, align 8, !tbaa !17
  %195 = load double, ptr %20, align 8, !tbaa !17
  %196 = fadd double %194, %195
  store double %196, ptr %18, align 8, !tbaa !17
  %197 = load i8, ptr %21, align 1, !tbaa !22, !range !23, !noundef !24
  %198 = trunc i8 %197 to i1
  br i1 %198, label %199, label %203

199:                                              ; preds = %185
  %200 = load double, ptr %20, align 8, !tbaa !17
  %201 = load double, ptr %23, align 8, !tbaa !17
  %202 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %200, double noundef %201)
  br label %203

203:                                              ; preds = %199, %185
  %204 = phi i1 [ false, %185 ], [ %202, %199 ]
  %205 = zext i1 %204 to i8
  store i8 %205, ptr %21, align 1, !tbaa !22
  br label %206

206:                                              ; preds = %203
  %207 = load i64, ptr %17, align 8, !tbaa !9
  %208 = add nsw i64 %207, 1
  store i64 %208, ptr %17, align 8, !tbaa !9
  br label %180, !llvm.loop !25

209:                                              ; preds = %180
  %210 = load double, ptr %18, align 8, !tbaa !17
  %211 = load i64, ptr %10, align 8, !tbaa !9
  %212 = sitofp i64 %211 to double
  %213 = fdiv double %210, %212
  store double %213, ptr %18, align 8, !tbaa !17
  %214 = load i8, ptr %21, align 1, !tbaa !22, !range !23, !noundef !24
  %215 = trunc i8 %214 to i1
  br i1 %215, label %216, label %234

216:                                              ; preds = %209
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %217

217:                                              ; preds = %230, %216
  %218 = load i64, ptr %17, align 8, !tbaa !9
  %219 = load i64, ptr %10, align 8, !tbaa !9
  %220 = sub nsw i64 %219, 1
  %221 = icmp sle i64 %218, %220
  br i1 %221, label %222, label %233

222:                                              ; preds = %217
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %27, i32 0, i32 6
  %224 = load ptr, ptr %223, align 8, !tbaa !16
  %225 = load i64, ptr %16, align 8, !tbaa !9
  %226 = getelementptr inbounds ptr, ptr %224, i64 %225
  %227 = load ptr, ptr %226, align 8, !tbaa !5
  %228 = load i64, ptr %17, align 8, !tbaa !9
  %229 = getelementptr inbounds double, ptr %227, i64 %228
  store double 0.000000e+00, ptr %229, align 8, !tbaa !17
  br label %230

230:                                              ; preds = %222
  %231 = load i64, ptr %17, align 8, !tbaa !9
  %232 = add nsw i64 %231, 1
  store i64 %232, ptr %17, align 8, !tbaa !9
  br label %217, !llvm.loop !26

233:                                              ; preds = %217
  br label %271

234:                                              ; preds = %209
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %235

235:                                              ; preds = %267, %234
  %236 = load i64, ptr %17, align 8, !tbaa !9
  %237 = load i64, ptr %10, align 8, !tbaa !9
  %238 = sub nsw i64 %237, 1
  %239 = icmp sle i64 %236, %238
  br i1 %239, label %240, label %270

240:                                              ; preds = %235
  %241 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %27, i32 0, i32 6
  %242 = load ptr, ptr %241, align 8, !tbaa !16
  %243 = load i64, ptr %16, align 8, !tbaa !9
  %244 = getelementptr inbounds ptr, ptr %242, i64 %243
  %245 = load ptr, ptr %244, align 8, !tbaa !5
  %246 = load i64, ptr %17, align 8, !tbaa !9
  %247 = getelementptr inbounds double, ptr %245, i64 %246
  %248 = load double, ptr %247, align 8, !tbaa !17
  store double %248, ptr %20, align 8, !tbaa !17
  %249 = load double, ptr %20, align 8, !tbaa !17
  %250 = load double, ptr %18, align 8, !tbaa !17
  %251 = fsub double %249, %250
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %27, i32 0, i32 6
  %253 = load ptr, ptr %252, align 8, !tbaa !16
  %254 = load i64, ptr %16, align 8, !tbaa !9
  %255 = getelementptr inbounds ptr, ptr %253, i64 %254
  %256 = load ptr, ptr %255, align 8, !tbaa !5
  %257 = load i64, ptr %17, align 8, !tbaa !9
  %258 = getelementptr inbounds double, ptr %256, i64 %257
  store double %251, ptr %258, align 8, !tbaa !17
  %259 = load double, ptr %19, align 8, !tbaa !17
  %260 = load double, ptr %20, align 8, !tbaa !17
  %261 = load double, ptr %18, align 8, !tbaa !17
  %262 = fsub double %260, %261
  %263 = load double, ptr %20, align 8, !tbaa !17
  %264 = load double, ptr %18, align 8, !tbaa !17
  %265 = fsub double %263, %264
  %266 = call double @llvm.fmuladd.f64(double %262, double %265, double %259)
  store double %266, ptr %19, align 8, !tbaa !17
  br label %267

267:                                              ; preds = %240
  %268 = load i64, ptr %17, align 8, !tbaa !9
  %269 = add nsw i64 %268, 1
  store i64 %269, ptr %17, align 8, !tbaa !9
  br label %235, !llvm.loop !27

270:                                              ; preds = %235
  br label %271

271:                                              ; preds = %270, %233
  %272 = load double, ptr %19, align 8, !tbaa !17
  %273 = load i64, ptr %10, align 8, !tbaa !9
  %274 = sub nsw i64 %273, 1
  %275 = sitofp i64 %274 to double
  %276 = fdiv double %272, %275
  %277 = load ptr, ptr %14, align 8, !tbaa !5
  %278 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %276, ptr noundef %277)
  %279 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %280 = load ptr, ptr %279, align 8, !tbaa !16
  %281 = load i64, ptr %16, align 8, !tbaa !9
  %282 = getelementptr inbounds double, ptr %280, i64 %281
  store double %278, ptr %282, align 8, !tbaa !17
  br label %283

283:                                              ; preds = %271
  %284 = load i64, ptr %16, align 8, !tbaa !9
  %285 = add nsw i64 %284, 1
  store i64 %285, ptr %16, align 8, !tbaa !9
  br label %167, !llvm.loop !28

286:                                              ; preds = %167
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %287

287:                                              ; preds = %403, %286
  %288 = load i64, ptr %16, align 8, !tbaa !9
  %289 = load i64, ptr %12, align 8, !tbaa !9
  %290 = sub nsw i64 %289, 1
  %291 = icmp sle i64 %288, %290
  br i1 %291, label %292, label %406

292:                                              ; preds = %287
  store double 0.000000e+00, ptr %18, align 8, !tbaa !17
  store double 0.000000e+00, ptr %19, align 8, !tbaa !17
  store i8 1, ptr %21, align 1, !tbaa !22
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 6
  %294 = load ptr, ptr %293, align 8, !tbaa !16
  %295 = load i64, ptr %16, align 8, !tbaa !9
  %296 = getelementptr inbounds ptr, ptr %294, i64 %295
  %297 = load ptr, ptr %296, align 8, !tbaa !5
  %298 = getelementptr inbounds double, ptr %297, i64 0
  %299 = load double, ptr %298, align 8, !tbaa !17
  store double %299, ptr %24, align 8, !tbaa !17
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %300

300:                                              ; preds = %326, %292
  %301 = load i64, ptr %17, align 8, !tbaa !9
  %302 = load i64, ptr %10, align 8, !tbaa !9
  %303 = sub nsw i64 %302, 1
  %304 = icmp sle i64 %301, %303
  br i1 %304, label %305, label %329

305:                                              ; preds = %300
  %306 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 6
  %307 = load ptr, ptr %306, align 8, !tbaa !16
  %308 = load i64, ptr %16, align 8, !tbaa !9
  %309 = getelementptr inbounds ptr, ptr %307, i64 %308
  %310 = load ptr, ptr %309, align 8, !tbaa !5
  %311 = load i64, ptr %17, align 8, !tbaa !9
  %312 = getelementptr inbounds double, ptr %310, i64 %311
  %313 = load double, ptr %312, align 8, !tbaa !17
  store double %313, ptr %20, align 8, !tbaa !17
  %314 = load double, ptr %18, align 8, !tbaa !17
  %315 = load double, ptr %20, align 8, !tbaa !17
  %316 = fadd double %314, %315
  store double %316, ptr %18, align 8, !tbaa !17
  %317 = load i8, ptr %21, align 1, !tbaa !22, !range !23, !noundef !24
  %318 = trunc i8 %317 to i1
  br i1 %318, label %319, label %323

319:                                              ; preds = %305
  %320 = load double, ptr %20, align 8, !tbaa !17
  %321 = load double, ptr %24, align 8, !tbaa !17
  %322 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %320, double noundef %321)
  br label %323

323:                                              ; preds = %319, %305
  %324 = phi i1 [ false, %305 ], [ %322, %319 ]
  %325 = zext i1 %324 to i8
  store i8 %325, ptr %21, align 1, !tbaa !22
  br label %326

326:                                              ; preds = %323
  %327 = load i64, ptr %17, align 8, !tbaa !9
  %328 = add nsw i64 %327, 1
  store i64 %328, ptr %17, align 8, !tbaa !9
  br label %300, !llvm.loop !29

329:                                              ; preds = %300
  %330 = load double, ptr %18, align 8, !tbaa !17
  %331 = load i64, ptr %10, align 8, !tbaa !9
  %332 = sitofp i64 %331 to double
  %333 = fdiv double %330, %332
  store double %333, ptr %18, align 8, !tbaa !17
  %334 = load i8, ptr %21, align 1, !tbaa !22, !range !23, !noundef !24
  %335 = trunc i8 %334 to i1
  br i1 %335, label %336, label %354

336:                                              ; preds = %329
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %337

337:                                              ; preds = %350, %336
  %338 = load i64, ptr %17, align 8, !tbaa !9
  %339 = load i64, ptr %10, align 8, !tbaa !9
  %340 = sub nsw i64 %339, 1
  %341 = icmp sle i64 %338, %340
  br i1 %341, label %342, label %353

342:                                              ; preds = %337
  %343 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 6
  %344 = load ptr, ptr %343, align 8, !tbaa !16
  %345 = load i64, ptr %16, align 8, !tbaa !9
  %346 = getelementptr inbounds ptr, ptr %344, i64 %345
  %347 = load ptr, ptr %346, align 8, !tbaa !5
  %348 = load i64, ptr %17, align 8, !tbaa !9
  %349 = getelementptr inbounds double, ptr %347, i64 %348
  store double 0.000000e+00, ptr %349, align 8, !tbaa !17
  br label %350

350:                                              ; preds = %342
  %351 = load i64, ptr %17, align 8, !tbaa !9
  %352 = add nsw i64 %351, 1
  store i64 %352, ptr %17, align 8, !tbaa !9
  br label %337, !llvm.loop !30

353:                                              ; preds = %337
  br label %391

354:                                              ; preds = %329
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %355

355:                                              ; preds = %387, %354
  %356 = load i64, ptr %17, align 8, !tbaa !9
  %357 = load i64, ptr %10, align 8, !tbaa !9
  %358 = sub nsw i64 %357, 1
  %359 = icmp sle i64 %356, %358
  br i1 %359, label %360, label %390

360:                                              ; preds = %355
  %361 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 6
  %362 = load ptr, ptr %361, align 8, !tbaa !16
  %363 = load i64, ptr %16, align 8, !tbaa !9
  %364 = getelementptr inbounds ptr, ptr %362, i64 %363
  %365 = load ptr, ptr %364, align 8, !tbaa !5
  %366 = load i64, ptr %17, align 8, !tbaa !9
  %367 = getelementptr inbounds double, ptr %365, i64 %366
  %368 = load double, ptr %367, align 8, !tbaa !17
  store double %368, ptr %20, align 8, !tbaa !17
  %369 = load double, ptr %20, align 8, !tbaa !17
  %370 = load double, ptr %18, align 8, !tbaa !17
  %371 = fsub double %369, %370
  %372 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 6
  %373 = load ptr, ptr %372, align 8, !tbaa !16
  %374 = load i64, ptr %16, align 8, !tbaa !9
  %375 = getelementptr inbounds ptr, ptr %373, i64 %374
  %376 = load ptr, ptr %375, align 8, !tbaa !5
  %377 = load i64, ptr %17, align 8, !tbaa !9
  %378 = getelementptr inbounds double, ptr %376, i64 %377
  store double %371, ptr %378, align 8, !tbaa !17
  %379 = load double, ptr %19, align 8, !tbaa !17
  %380 = load double, ptr %20, align 8, !tbaa !17
  %381 = load double, ptr %18, align 8, !tbaa !17
  %382 = fsub double %380, %381
  %383 = load double, ptr %20, align 8, !tbaa !17
  %384 = load double, ptr %18, align 8, !tbaa !17
  %385 = fsub double %383, %384
  %386 = call double @llvm.fmuladd.f64(double %382, double %385, double %379)
  store double %386, ptr %19, align 8, !tbaa !17
  br label %387

387:                                              ; preds = %360
  %388 = load i64, ptr %17, align 8, !tbaa !9
  %389 = add nsw i64 %388, 1
  store i64 %389, ptr %17, align 8, !tbaa !9
  br label %355, !llvm.loop !31

390:                                              ; preds = %355
  br label %391

391:                                              ; preds = %390, %353
  %392 = load double, ptr %19, align 8, !tbaa !17
  %393 = load i64, ptr %10, align 8, !tbaa !9
  %394 = sub nsw i64 %393, 1
  %395 = sitofp i64 %394 to double
  %396 = fdiv double %392, %395
  %397 = load ptr, ptr %14, align 8, !tbaa !5
  %398 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %396, ptr noundef %397)
  %399 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %400 = load ptr, ptr %399, align 8, !tbaa !16
  %401 = load i64, ptr %16, align 8, !tbaa !9
  %402 = getelementptr inbounds double, ptr %400, i64 %401
  store double %398, ptr %402, align 8, !tbaa !17
  br label %403

403:                                              ; preds = %391
  %404 = load i64, ptr %16, align 8, !tbaa !9
  %405 = add nsw i64 %404, 1
  store i64 %405, ptr %16, align 8, !tbaa !9
  br label %287, !llvm.loop !32

406:                                              ; preds = %287
  %407 = load i64, ptr %11, align 8, !tbaa !9
  %408 = load i64, ptr %12, align 8, !tbaa !9
  %409 = load i64, ptr %10, align 8, !tbaa !9
  %410 = load i64, ptr %10, align 8, !tbaa !9
  %411 = sub nsw i64 %410, 1
  %412 = sitofp i64 %411 to double
  %413 = fdiv double 1.000000e+00, %412
  %414 = load ptr, ptr %13, align 8, !tbaa !5
  %415 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %407, i64 noundef %408, i64 noundef %409, double noundef %413, ptr noundef %27, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %28, i64 noundef 0, i64 noundef 0, i64 noundef 1, double noundef 0.000000e+00, ptr noundef %414, i64 noundef 0, i64 noundef 0, ptr noundef %415)
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %416

416:                                              ; preds = %445, %406
  %417 = load i64, ptr %16, align 8, !tbaa !9
  %418 = load i64, ptr %11, align 8, !tbaa !9
  %419 = sub nsw i64 %418, 1
  %420 = icmp sle i64 %417, %419
  br i1 %420, label %421, label %448

421:                                              ; preds = %416
  %422 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %423 = load ptr, ptr %422, align 8, !tbaa !16
  %424 = load i64, ptr %16, align 8, !tbaa !9
  %425 = getelementptr inbounds double, ptr %423, i64 %424
  %426 = load double, ptr %425, align 8, !tbaa !17
  %427 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %426, double noundef 0.000000e+00)
  br i1 %427, label %428, label %439

428:                                              ; preds = %421
  %429 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %430 = load ptr, ptr %429, align 8, !tbaa !16
  %431 = load i64, ptr %16, align 8, !tbaa !9
  %432 = getelementptr inbounds double, ptr %430, i64 %431
  %433 = load double, ptr %432, align 8, !tbaa !17
  %434 = fdiv double 1.000000e+00, %433
  %435 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %436 = load ptr, ptr %435, align 8, !tbaa !16
  %437 = load i64, ptr %16, align 8, !tbaa !9
  %438 = getelementptr inbounds double, ptr %436, i64 %437
  store double %434, ptr %438, align 8, !tbaa !17
  br label %444

439:                                              ; preds = %421
  %440 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %441 = load ptr, ptr %440, align 8, !tbaa !16
  %442 = load i64, ptr %16, align 8, !tbaa !9
  %443 = getelementptr inbounds double, ptr %441, i64 %442
  store double 0.000000e+00, ptr %443, align 8, !tbaa !17
  br label %444

444:                                              ; preds = %439, %428
  br label %445

445:                                              ; preds = %444
  %446 = load i64, ptr %16, align 8, !tbaa !9
  %447 = add nsw i64 %446, 1
  store i64 %447, ptr %16, align 8, !tbaa !9
  br label %416, !llvm.loop !33

448:                                              ; preds = %416
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %449

449:                                              ; preds = %478, %448
  %450 = load i64, ptr %16, align 8, !tbaa !9
  %451 = load i64, ptr %12, align 8, !tbaa !9
  %452 = sub nsw i64 %451, 1
  %453 = icmp sle i64 %450, %452
  br i1 %453, label %454, label %481

454:                                              ; preds = %449
  %455 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %456 = load ptr, ptr %455, align 8, !tbaa !16
  %457 = load i64, ptr %16, align 8, !tbaa !9
  %458 = getelementptr inbounds double, ptr %456, i64 %457
  %459 = load double, ptr %458, align 8, !tbaa !17
  %460 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %459, double noundef 0.000000e+00)
  br i1 %460, label %461, label %472

461:                                              ; preds = %454
  %462 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %463 = load ptr, ptr %462, align 8, !tbaa !16
  %464 = load i64, ptr %16, align 8, !tbaa !9
  %465 = getelementptr inbounds double, ptr %463, i64 %464
  %466 = load double, ptr %465, align 8, !tbaa !17
  %467 = fdiv double 1.000000e+00, %466
  %468 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %469 = load ptr, ptr %468, align 8, !tbaa !16
  %470 = load i64, ptr %16, align 8, !tbaa !9
  %471 = getelementptr inbounds double, ptr %469, i64 %470
  store double %467, ptr %471, align 8, !tbaa !17
  br label %477

472:                                              ; preds = %454
  %473 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %474 = load ptr, ptr %473, align 8, !tbaa !16
  %475 = load i64, ptr %16, align 8, !tbaa !9
  %476 = getelementptr inbounds double, ptr %474, i64 %475
  store double 0.000000e+00, ptr %476, align 8, !tbaa !17
  br label %477

477:                                              ; preds = %472, %461
  br label %478

478:                                              ; preds = %477
  %479 = load i64, ptr %16, align 8, !tbaa !9
  %480 = add nsw i64 %479, 1
  store i64 %480, ptr %16, align 8, !tbaa !9
  br label %449, !llvm.loop !34

481:                                              ; preds = %449
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %482

482:                                              ; preds = %528, %481
  %483 = load i64, ptr %16, align 8, !tbaa !9
  %484 = load i64, ptr %11, align 8, !tbaa !9
  %485 = sub nsw i64 %484, 1
  %486 = icmp sle i64 %483, %485
  br i1 %486, label %487, label %531

487:                                              ; preds = %482
  %488 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %489 = load ptr, ptr %488, align 8, !tbaa !16
  %490 = load i64, ptr %16, align 8, !tbaa !9
  %491 = getelementptr inbounds double, ptr %489, i64 %490
  %492 = load double, ptr %491, align 8, !tbaa !17
  store double %492, ptr %18, align 8, !tbaa !17
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %493

493:                                              ; preds = %524, %487
  %494 = load i64, ptr %17, align 8, !tbaa !9
  %495 = load i64, ptr %12, align 8, !tbaa !9
  %496 = sub nsw i64 %495, 1
  %497 = icmp sle i64 %494, %496
  br i1 %497, label %498, label %527

498:                                              ; preds = %493
  %499 = load ptr, ptr %13, align 8, !tbaa !5
  %500 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %499, i32 0, i32 6
  %501 = load ptr, ptr %500, align 8, !tbaa !16
  %502 = load i64, ptr %16, align 8, !tbaa !9
  %503 = getelementptr inbounds ptr, ptr %501, i64 %502
  %504 = load ptr, ptr %503, align 8, !tbaa !5
  %505 = load i64, ptr %17, align 8, !tbaa !9
  %506 = getelementptr inbounds double, ptr %504, i64 %505
  %507 = load double, ptr %506, align 8, !tbaa !17
  %508 = load double, ptr %18, align 8, !tbaa !17
  %509 = fmul double %507, %508
  %510 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %511 = load ptr, ptr %510, align 8, !tbaa !16
  %512 = load i64, ptr %17, align 8, !tbaa !9
  %513 = getelementptr inbounds double, ptr %511, i64 %512
  %514 = load double, ptr %513, align 8, !tbaa !17
  %515 = fmul double %509, %514
  %516 = load ptr, ptr %13, align 8, !tbaa !5
  %517 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %516, i32 0, i32 6
  %518 = load ptr, ptr %517, align 8, !tbaa !16
  %519 = load i64, ptr %16, align 8, !tbaa !9
  %520 = getelementptr inbounds ptr, ptr %518, i64 %519
  %521 = load ptr, ptr %520, align 8, !tbaa !5
  %522 = load i64, ptr %17, align 8, !tbaa !9
  %523 = getelementptr inbounds double, ptr %521, i64 %522
  store double %515, ptr %523, align 8, !tbaa !17
  br label %524

524:                                              ; preds = %498
  %525 = load i64, ptr %17, align 8, !tbaa !9
  %526 = add nsw i64 %525, 1
  store i64 %526, ptr %17, align 8, !tbaa !9
  br label %493, !llvm.loop !35

527:                                              ; preds = %493
  br label %528

528:                                              ; preds = %527
  %529 = load i64, ptr %16, align 8, !tbaa !9
  %530 = add nsw i64 %529, 1
  store i64 %530, ptr %16, align 8, !tbaa !9
  br label %482, !llvm.loop !36

531:                                              ; preds = %482
  %532 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %532)
  store i32 0, ptr %30, align 4
  br label %533

533:                                              ; preds = %531, %128
  call void @llvm.lifetime.end.p0(i64 736, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 80, 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 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 1, 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 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  %534 = load i32, ptr %30, align 4
  switch i32 %534, label %536 [
    i32 0, label %535
    i32 1, label %535
  ]

535:                                              ; preds = %533, %533
  ret void

536:                                              ; preds = %533
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl8rankdataEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

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_impl15_apbuffers_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #2

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

declare void @_ZN11alglib_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_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

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

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

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

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 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !20}
!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}


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

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

@.str.65 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [28 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_impl14spearmancorrm2EPNS_9ae_matrixES1_lllS1_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_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %14 = alloca %"struct.alglib_impl::apbuffers", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 736, ptr nonnull %14) #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(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %12, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %13, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(736) %14, i8 0, i64 736, i1 false)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %5)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl15_apbuffers_initEPvPNS_8ae_stateEb(ptr noundef nonnull %14, ptr noundef %6, i1 noundef zeroext true)
  %15 = icmp sgt i64 %2, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.65, ptr noundef %6)
  %16 = icmp sgt i64 %3, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.66, ptr noundef %6)
  %17 = icmp sgt i64 %4, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.67, ptr noundef %6)
  %18 = load i64, ptr %0, align 8, !tbaa !5
  %19 = icmp sge i64 %18, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.68, ptr noundef %6)
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = load i64, ptr %20, align 8, !tbaa !13
  %22 = icmp sge i64 %21, %3
  %23 = icmp eq i64 %2, 0
  %24 = or i1 %23, %22
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.69, ptr noundef %6)
  %25 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %2, i64 noundef %3, ptr noundef %6)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.70, ptr noundef %6)
  %26 = load i64, ptr %1, align 8, !tbaa !5
  %27 = icmp sge i64 %26, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef nonnull @.str.71, ptr noundef %6)
  %28 = getelementptr inbounds i8, ptr %1, i64 8
  %29 = load i64, ptr %28, align 8, !tbaa !13
  %30 = icmp sge i64 %29, %4
  %31 = or i1 %23, %30
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef nonnull @.str.72, ptr noundef %6)
  %32 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, i64 noundef %4, ptr noundef %6)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef nonnull @.str.70, ptr noundef %6)
  %33 = icmp slt i64 %2, 2
  br i1 %33, label %34, label %63

34:                                               ; 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 %16, label %.preheader.lr.ph, label %._crit_edge307

.preheader.lr.ph:                                 ; preds = %34
  %35 = getelementptr inbounds i8, ptr %5, i64 72
  br i1 %17, label %.preheader.us.preheader, label %._crit_edge307

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter390 = and i64 %4, 3
  %36 = icmp ult i64 %4, 4
  %unroll_iter393 = and i64 %4, 9223372036854775804
  %lcmp.mod392.not = icmp eq i64 %xtraiter390, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge304.us
  %.0306.us = phi i64 [ %62, %._crit_edge304.us ], [ 0, %.preheader.us.preheader ]
  br i1 %36, label %._crit_edge304.us.unr-lcssa, label %.preheader.us.new

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

._crit_edge304.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.0202302.us.unr = phi i64 [ 0, %.preheader.us ], [ %56, %.preheader.us.new ]
  br i1 %lcmp.mod392.not, label %._crit_edge304.us, label %.epil.preheader389

.epil.preheader389:                               ; preds = %._crit_edge304.us.unr-lcssa, %.epil.preheader389
  %.0202302.us.epil = phi i64 [ %61, %.epil.preheader389 ], [ %.0202302.us.unr, %._crit_edge304.us.unr-lcssa ]
  %epil.iter391 = phi i64 [ %epil.iter391.next, %.epil.preheader389 ], [ 0, %._crit_edge304.us.unr-lcssa ]
  %57 = load ptr, ptr %35, align 8, !tbaa !14
  %58 = getelementptr inbounds ptr, ptr %57, i64 %.0306.us
  %59 = load ptr, ptr %58, align 8, !tbaa !15
  %60 = getelementptr inbounds double, ptr %59, i64 %.0202302.us.epil
  store double 0.000000e+00, ptr %60, align 8, !tbaa !16
  %61 = add nuw nsw i64 %.0202302.us.epil, 1
  %epil.iter391.next = add i64 %epil.iter391, 1
  %epil.iter391.cmp.not = icmp eq i64 %epil.iter391.next, %xtraiter390
  br i1 %epil.iter391.cmp.not, label %._crit_edge304.us, label %.epil.preheader389, !llvm.loop !20

._crit_edge304.us:                                ; preds = %.epil.preheader389, %._crit_edge304.us.unr-lcssa
  %62 = add nuw nsw i64 %.0306.us, 1
  %exitcond331.not = icmp eq i64 %62, %3
  br i1 %exitcond331.not, label %._crit_edge307, label %.preheader.us, !llvm.loop !22

63:                                               ; preds = %7
  %64 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %3, i64 noundef %4, ptr noundef %6)
  %65 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %64, i64 noundef %2, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %65, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %3, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, 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)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %3, i64 noundef %2, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %4, i64 noundef %2, ptr noundef %6)
  call void @_ZN11alglib_impl16rmatrixtransposeEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %2, i64 noundef %3, ptr noundef nonnull %0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  call void @_ZN11alglib_impl16rmatrixtransposeEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %2, i64 noundef %4, ptr noundef nonnull %1, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  call void @_ZN11alglib_impl8rankdataEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %3, i64 noundef %2, ptr noundef %6)
  call void @_ZN11alglib_impl8rankdataEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %4, i64 noundef %2, ptr noundef %6)
  br i1 %16, label %.lr.ph262, label %.preheader239

.lr.ph262:                                        ; preds = %63
  %66 = getelementptr inbounds i8, ptr %12, i64 72
  %67 = add nsw i64 %2, -1
  %68 = uitofp nneg i64 %2 to double
  %69 = uitofp nneg i64 %67 to double
  %70 = getelementptr inbounds i8, ptr %10, i64 56
  %xtraiter = and i64 %2, 1
  %unroll_iter = and i64 %2, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %xtraiter369 = and i64 %2, 3
  %71 = icmp ult i64 %2, 4
  %unroll_iter371 = and i64 %2, 9223372036854775804
  %lcmp.mod370.not = icmp eq i64 %xtraiter369, 0
  br label %.lr.ph.preheader

.preheader239:                                    ; preds = %.loopexit241, %63
  br i1 %17, label %.lr.ph283, label %._crit_edge284.thread

.lr.ph283:                                        ; preds = %.preheader239
  %72 = getelementptr inbounds i8, ptr %13, i64 72
  %73 = add nsw i64 %2, -1
  %74 = uitofp nneg i64 %2 to double
  %75 = uitofp nneg i64 %73 to double
  %76 = getelementptr inbounds i8, ptr %11, i64 56
  %smax = call i64 @llvm.smax.i64(i64 %2, i64 1)
  %xtraiter373 = and i64 %smax, 1
  %unroll_iter377 = and i64 %smax, 9223372036854775806
  %lcmp.mod375.not = icmp eq i64 %xtraiter373, 0
  %xtraiter379 = and i64 %smax, 3
  %77 = icmp slt i64 %2, 4
  %unroll_iter382 = and i64 %smax, 9223372036854775804
  %lcmp.mod381.not = icmp eq i64 %xtraiter379, 0
  br label %.lr.ph268.preheader

.lr.ph.preheader:                                 ; preds = %.loopexit241, %.lr.ph262
  %.1259 = phi i64 [ 0, %.lr.ph262 ], [ %145, %.loopexit241 ]
  %78 = load ptr, ptr %66, align 8, !tbaa !14
  %79 = getelementptr inbounds ptr, ptr %78, i64 %.1259
  %80 = load ptr, ptr %79, align 8, !tbaa !15
  %81 = load double, ptr %80, align 8, !tbaa !16
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.backedge, %.lr.ph.preheader
  %.1203248 = phi i64 [ 0, %.lr.ph.preheader ], [ %.1203248.be, %.lr.ph.backedge ]
  %.0208247 = phi i1 [ true, %.lr.ph.preheader ], [ %.0208247.be, %.lr.ph.backedge ]
  %.0214246 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %87, %.lr.ph.backedge ]
  %82 = load ptr, ptr %66, align 8, !tbaa !14
  %83 = getelementptr inbounds ptr, ptr %82, i64 %.1259
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  %85 = getelementptr inbounds double, ptr %84, i64 %.1203248
  %86 = load double, ptr %85, align 8, !tbaa !16
  %87 = fadd double %.0214246, %86
  br i1 %.0208247, label %88, label %.thread

88:                                               ; preds = %.lr.ph
  %89 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %86, double noundef %81)
  %90 = add nuw nsw i64 %.1203248, 1
  %exitcond.not = icmp eq i64 %90, %2
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph.backedge

.lr.ph.backedge:                                  ; preds = %88, %.thread
  %.1203248.be = phi i64 [ %90, %88 ], [ %91, %.thread ]
  %.0208247.be = phi i1 [ %89, %88 ], [ false, %.thread ]
  br label %.lr.ph, !llvm.loop !23

.thread:                                          ; preds = %.lr.ph
  %91 = add nuw nsw i64 %.1203248, 1
  %exitcond.not334 = icmp eq i64 %91, %2
  br i1 %exitcond.not334, label %.lr.ph253.preheader, label %.lr.ph.backedge

._crit_edge:                                      ; preds = %88
  br i1 %89, label %.lr.ph257.preheader, label %.lr.ph253.preheader

.lr.ph257.preheader:                              ; preds = %._crit_edge
  br i1 %71, label %.loopexit241.loopexit.unr-lcssa, label %.lr.ph257

.lr.ph253.preheader:                              ; preds = %.thread, %._crit_edge
  %92 = fdiv double %87, %68
  br label %.lr.ph253

.lr.ph257:                                        ; preds = %.lr.ph257.preheader, %.lr.ph257
  %.2204256 = phi i64 [ %112, %.lr.ph257 ], [ 0, %.lr.ph257.preheader ]
  %niter372 = phi i64 [ %niter372.next.3, %.lr.ph257 ], [ 0, %.lr.ph257.preheader ]
  %93 = load ptr, ptr %66, align 8, !tbaa !14
  %94 = getelementptr inbounds ptr, ptr %93, i64 %.1259
  %95 = load ptr, ptr %94, align 8, !tbaa !15
  %96 = getelementptr inbounds double, ptr %95, i64 %.2204256
  store double 0.000000e+00, ptr %96, align 8, !tbaa !16
  %97 = or disjoint i64 %.2204256, 1
  %98 = load ptr, ptr %66, align 8, !tbaa !14
  %99 = getelementptr inbounds ptr, ptr %98, i64 %.1259
  %100 = load ptr, ptr %99, align 8, !tbaa !15
  %101 = getelementptr inbounds double, ptr %100, i64 %97
  store double 0.000000e+00, ptr %101, align 8, !tbaa !16
  %102 = or disjoint i64 %.2204256, 2
  %103 = load ptr, ptr %66, align 8, !tbaa !14
  %104 = getelementptr inbounds ptr, ptr %103, i64 %.1259
  %105 = load ptr, ptr %104, align 8, !tbaa !15
  %106 = getelementptr inbounds double, ptr %105, i64 %102
  store double 0.000000e+00, ptr %106, align 8, !tbaa !16
  %107 = or disjoint i64 %.2204256, 3
  %108 = load ptr, ptr %66, align 8, !tbaa !14
  %109 = getelementptr inbounds ptr, ptr %108, i64 %.1259
  %110 = load ptr, ptr %109, align 8, !tbaa !15
  %111 = getelementptr inbounds double, ptr %110, i64 %107
  store double 0.000000e+00, ptr %111, align 8, !tbaa !16
  %112 = add nuw nsw i64 %.2204256, 4
  %niter372.next.3 = add i64 %niter372, 4
  %niter372.ncmp.3 = icmp eq i64 %niter372.next.3, %unroll_iter371
  br i1 %niter372.ncmp.3, label %.loopexit241.loopexit.unr-lcssa, label %.lr.ph257, !llvm.loop !24

.lr.ph253:                                        ; preds = %.lr.ph253, %.lr.ph253.preheader
  %.3205252 = phi i64 [ 0, %.lr.ph253.preheader ], [ %128, %.lr.ph253 ]
  %.0210251 = phi double [ 0.000000e+00, %.lr.ph253.preheader ], [ %127, %.lr.ph253 ]
  %niter = phi i64 [ 0, %.lr.ph253.preheader ], [ %niter.next.1, %.lr.ph253 ]
  %113 = load ptr, ptr %66, align 8, !tbaa !14
  %114 = getelementptr inbounds ptr, ptr %113, i64 %.1259
  %115 = load ptr, ptr %114, align 8, !tbaa !15
  %116 = getelementptr inbounds double, ptr %115, i64 %.3205252
  %117 = load double, ptr %116, align 8, !tbaa !16
  %118 = fsub double %117, %92
  store double %118, ptr %116, align 8, !tbaa !16
  %119 = call double @llvm.fmuladd.f64(double %118, double %118, double %.0210251)
  %120 = or disjoint i64 %.3205252, 1
  %121 = load ptr, ptr %66, align 8, !tbaa !14
  %122 = getelementptr inbounds ptr, ptr %121, i64 %.1259
  %123 = load ptr, ptr %122, align 8, !tbaa !15
  %124 = getelementptr inbounds double, ptr %123, i64 %120
  %125 = load double, ptr %124, align 8, !tbaa !16
  %126 = fsub double %125, %92
  store double %126, ptr %124, align 8, !tbaa !16
  %127 = call double @llvm.fmuladd.f64(double %126, double %126, double %119)
  %128 = add nuw nsw i64 %.3205252, 2
  %niter.next.1 = add nuw nsw i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.loopexit241.loopexit363.unr-lcssa, label %.lr.ph253, !llvm.loop !25

.loopexit241.loopexit.unr-lcssa:                  ; preds = %.lr.ph257, %.lr.ph257.preheader
  %.2204256.unr = phi i64 [ 0, %.lr.ph257.preheader ], [ %112, %.lr.ph257 ]
  br i1 %lcmp.mod370.not, label %.loopexit241, label %.lr.ph257.epil

.lr.ph257.epil:                                   ; preds = %.loopexit241.loopexit.unr-lcssa, %.lr.ph257.epil
  %.2204256.epil = phi i64 [ %133, %.lr.ph257.epil ], [ %.2204256.unr, %.loopexit241.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph257.epil ], [ 0, %.loopexit241.loopexit.unr-lcssa ]
  %129 = load ptr, ptr %66, align 8, !tbaa !14
  %130 = getelementptr inbounds ptr, ptr %129, i64 %.1259
  %131 = load ptr, ptr %130, align 8, !tbaa !15
  %132 = getelementptr inbounds double, ptr %131, i64 %.2204256.epil
  store double 0.000000e+00, ptr %132, align 8, !tbaa !16
  %133 = add nuw nsw i64 %.2204256.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter369
  br i1 %epil.iter.cmp.not, label %.loopexit241, label %.lr.ph257.epil, !llvm.loop !26

.loopexit241.loopexit363.unr-lcssa:               ; preds = %.lr.ph253
  br i1 %lcmp.mod.not, label %.loopexit241, label %.lr.ph253.epil

.lr.ph253.epil:                                   ; preds = %.loopexit241.loopexit363.unr-lcssa
  %134 = load ptr, ptr %66, align 8, !tbaa !14
  %135 = getelementptr inbounds ptr, ptr %134, i64 %.1259
  %136 = load ptr, ptr %135, align 8, !tbaa !15
  %137 = getelementptr inbounds double, ptr %136, i64 %128
  %138 = load double, ptr %137, align 8, !tbaa !16
  %139 = fsub double %138, %92
  store double %139, ptr %137, align 8, !tbaa !16
  %140 = call double @llvm.fmuladd.f64(double %139, double %139, double %127)
  br label %.loopexit241

.loopexit241:                                     ; preds = %.lr.ph253.epil, %.loopexit241.loopexit363.unr-lcssa, %.loopexit241.loopexit.unr-lcssa, %.lr.ph257.epil
  %.1211 = phi double [ 0.000000e+00, %.lr.ph257.epil ], [ 0.000000e+00, %.loopexit241.loopexit.unr-lcssa ], [ %127, %.loopexit241.loopexit363.unr-lcssa ], [ %140, %.lr.ph253.epil ]
  %141 = fdiv double %.1211, %69
  %142 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %141, ptr noundef %6)
  %143 = load ptr, ptr %70, align 8, !tbaa !14
  %144 = getelementptr inbounds double, ptr %143, i64 %.1259
  store double %142, ptr %144, align 8, !tbaa !16
  %145 = add nuw nsw i64 %.1259, 1
  %exitcond319.not = icmp eq i64 %145, %3
  br i1 %exitcond319.not, label %.preheader239, label %.lr.ph.preheader, !llvm.loop !27

.lr.ph268.preheader:                              ; preds = %.loopexit, %.lr.ph283
  %.2281 = phi i64 [ 0, %.lr.ph283 ], [ %213, %.loopexit ]
  %146 = load ptr, ptr %72, align 8, !tbaa !14
  %147 = getelementptr inbounds ptr, ptr %146, i64 %.2281
  %148 = load ptr, ptr %147, align 8, !tbaa !15
  %149 = load double, ptr %148, align 8, !tbaa !16
  br label %.lr.ph268

.lr.ph268:                                        ; preds = %.lr.ph268.backedge, %.lr.ph268.preheader
  %.4206266 = phi i64 [ 0, %.lr.ph268.preheader ], [ %.4206266.be, %.lr.ph268.backedge ]
  %.1209265 = phi i1 [ true, %.lr.ph268.preheader ], [ %.1209265.be, %.lr.ph268.backedge ]
  %.1215264 = phi double [ 0.000000e+00, %.lr.ph268.preheader ], [ %155, %.lr.ph268.backedge ]
  %150 = load ptr, ptr %72, align 8, !tbaa !14
  %151 = getelementptr inbounds ptr, ptr %150, i64 %.2281
  %152 = load ptr, ptr %151, align 8, !tbaa !15
  %153 = getelementptr inbounds double, ptr %152, i64 %.4206266
  %154 = load double, ptr %153, align 8, !tbaa !16
  %155 = fadd double %.1215264, %154
  br i1 %.1209265, label %156, label %.thread335

156:                                              ; preds = %.lr.ph268
  %157 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %154, double noundef %149)
  %158 = add nuw nsw i64 %.4206266, 1
  %exitcond320.not = icmp eq i64 %158, %smax
  br i1 %exitcond320.not, label %._crit_edge269, label %.lr.ph268.backedge

.lr.ph268.backedge:                               ; preds = %156, %.thread335
  %.4206266.be = phi i64 [ %158, %156 ], [ %159, %.thread335 ]
  %.1209265.be = phi i1 [ %157, %156 ], [ false, %.thread335 ]
  br label %.lr.ph268, !llvm.loop !28

.thread335:                                       ; preds = %.lr.ph268
  %159 = add nuw nsw i64 %.4206266, 1
  %exitcond320.not336 = icmp eq i64 %159, %smax
  br i1 %exitcond320.not336, label %.lr.ph275.preheader, label %.lr.ph268.backedge

._crit_edge269:                                   ; preds = %156
  br i1 %157, label %.lr.ph279.preheader, label %.lr.ph275.preheader

.lr.ph279.preheader:                              ; preds = %._crit_edge269
  br i1 %77, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph279

.lr.ph275.preheader:                              ; preds = %.thread335, %._crit_edge269
  %160 = fdiv double %155, %74
  br label %.lr.ph275

.lr.ph279:                                        ; preds = %.lr.ph279.preheader, %.lr.ph279
  %.5207278 = phi i64 [ %180, %.lr.ph279 ], [ 0, %.lr.ph279.preheader ]
  %niter383 = phi i64 [ %niter383.next.3, %.lr.ph279 ], [ 0, %.lr.ph279.preheader ]
  %161 = load ptr, ptr %72, align 8, !tbaa !14
  %162 = getelementptr inbounds ptr, ptr %161, i64 %.2281
  %163 = load ptr, ptr %162, align 8, !tbaa !15
  %164 = getelementptr inbounds double, ptr %163, i64 %.5207278
  store double 0.000000e+00, ptr %164, align 8, !tbaa !16
  %165 = or disjoint i64 %.5207278, 1
  %166 = load ptr, ptr %72, align 8, !tbaa !14
  %167 = getelementptr inbounds ptr, ptr %166, i64 %.2281
  %168 = load ptr, ptr %167, align 8, !tbaa !15
  %169 = getelementptr inbounds double, ptr %168, i64 %165
  store double 0.000000e+00, ptr %169, align 8, !tbaa !16
  %170 = or disjoint i64 %.5207278, 2
  %171 = load ptr, ptr %72, align 8, !tbaa !14
  %172 = getelementptr inbounds ptr, ptr %171, i64 %.2281
  %173 = load ptr, ptr %172, align 8, !tbaa !15
  %174 = getelementptr inbounds double, ptr %173, i64 %170
  store double 0.000000e+00, ptr %174, align 8, !tbaa !16
  %175 = or disjoint i64 %.5207278, 3
  %176 = load ptr, ptr %72, align 8, !tbaa !14
  %177 = getelementptr inbounds ptr, ptr %176, i64 %.2281
  %178 = load ptr, ptr %177, align 8, !tbaa !15
  %179 = getelementptr inbounds double, ptr %178, i64 %175
  store double 0.000000e+00, ptr %179, align 8, !tbaa !16
  %180 = add nuw nsw i64 %.5207278, 4
  %niter383.next.3 = add i64 %niter383, 4
  %niter383.ncmp.3 = icmp eq i64 %niter383.next.3, %unroll_iter382
  br i1 %niter383.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph279, !llvm.loop !29

.lr.ph275:                                        ; preds = %.lr.ph275, %.lr.ph275.preheader
  %.6274 = phi i64 [ 0, %.lr.ph275.preheader ], [ %196, %.lr.ph275 ]
  %.2212273 = phi double [ 0.000000e+00, %.lr.ph275.preheader ], [ %195, %.lr.ph275 ]
  %niter378 = phi i64 [ 0, %.lr.ph275.preheader ], [ %niter378.next.1, %.lr.ph275 ]
  %181 = load ptr, ptr %72, align 8, !tbaa !14
  %182 = getelementptr inbounds ptr, ptr %181, i64 %.2281
  %183 = load ptr, ptr %182, align 8, !tbaa !15
  %184 = getelementptr inbounds double, ptr %183, i64 %.6274
  %185 = load double, ptr %184, align 8, !tbaa !16
  %186 = fsub double %185, %160
  store double %186, ptr %184, align 8, !tbaa !16
  %187 = call double @llvm.fmuladd.f64(double %186, double %186, double %.2212273)
  %188 = or disjoint i64 %.6274, 1
  %189 = load ptr, ptr %72, align 8, !tbaa !14
  %190 = getelementptr inbounds ptr, ptr %189, i64 %.2281
  %191 = load ptr, ptr %190, align 8, !tbaa !15
  %192 = getelementptr inbounds double, ptr %191, i64 %188
  %193 = load double, ptr %192, align 8, !tbaa !16
  %194 = fsub double %193, %160
  store double %194, ptr %192, align 8, !tbaa !16
  %195 = call double @llvm.fmuladd.f64(double %194, double %194, double %187)
  %196 = add nuw nsw i64 %.6274, 2
  %niter378.next.1 = add i64 %niter378, 2
  %niter378.ncmp.1 = icmp eq i64 %niter378.next.1, %unroll_iter377
  br i1 %niter378.ncmp.1, label %.loopexit.loopexit359.unr-lcssa, label %.lr.ph275, !llvm.loop !30

.loopexit.loopexit.unr-lcssa:                     ; preds = %.lr.ph279, %.lr.ph279.preheader
  %.5207278.unr = phi i64 [ 0, %.lr.ph279.preheader ], [ %180, %.lr.ph279 ]
  br i1 %lcmp.mod381.not, label %.loopexit, label %.lr.ph279.epil

.lr.ph279.epil:                                   ; preds = %.loopexit.loopexit.unr-lcssa, %.lr.ph279.epil
  %.5207278.epil = phi i64 [ %201, %.lr.ph279.epil ], [ %.5207278.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter380 = phi i64 [ %epil.iter380.next, %.lr.ph279.epil ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %197 = load ptr, ptr %72, align 8, !tbaa !14
  %198 = getelementptr inbounds ptr, ptr %197, i64 %.2281
  %199 = load ptr, ptr %198, align 8, !tbaa !15
  %200 = getelementptr inbounds double, ptr %199, i64 %.5207278.epil
  store double 0.000000e+00, ptr %200, align 8, !tbaa !16
  %201 = add nuw nsw i64 %.5207278.epil, 1
  %epil.iter380.next = add i64 %epil.iter380, 1
  %epil.iter380.cmp.not = icmp eq i64 %epil.iter380.next, %xtraiter379
  br i1 %epil.iter380.cmp.not, label %.loopexit, label %.lr.ph279.epil, !llvm.loop !31

.loopexit.loopexit359.unr-lcssa:                  ; preds = %.lr.ph275
  br i1 %lcmp.mod375.not, label %.loopexit, label %.lr.ph275.epil

.lr.ph275.epil:                                   ; preds = %.loopexit.loopexit359.unr-lcssa
  %202 = load ptr, ptr %72, align 8, !tbaa !14
  %203 = getelementptr inbounds ptr, ptr %202, i64 %.2281
  %204 = load ptr, ptr %203, align 8, !tbaa !15
  %205 = getelementptr inbounds double, ptr %204, i64 %196
  %206 = load double, ptr %205, align 8, !tbaa !16
  %207 = fsub double %206, %160
  store double %207, ptr %205, align 8, !tbaa !16
  %208 = call double @llvm.fmuladd.f64(double %207, double %207, double %195)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph275.epil, %.loopexit.loopexit359.unr-lcssa, %.loopexit.loopexit.unr-lcssa, %.lr.ph279.epil
  %.3213 = phi double [ 0.000000e+00, %.lr.ph279.epil ], [ 0.000000e+00, %.loopexit.loopexit.unr-lcssa ], [ %195, %.loopexit.loopexit359.unr-lcssa ], [ %208, %.lr.ph275.epil ]
  %209 = fdiv double %.3213, %75
  %210 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %209, ptr noundef %6)
  %211 = load ptr, ptr %76, align 8, !tbaa !14
  %212 = getelementptr inbounds double, ptr %211, i64 %.2281
  store double %210, ptr %212, align 8, !tbaa !16
  %213 = add nuw nsw i64 %.2281, 1
  %exitcond325.not = icmp eq i64 %213, %4
  br i1 %exitcond325.not, label %._crit_edge284, label %.lr.ph268.preheader, !llvm.loop !32

._crit_edge284:                                   ; preds = %.loopexit
  %214 = fdiv double 1.000000e+00, %75
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %3, i64 noundef %4, i64 noundef %2, double noundef %214, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 1, double noundef 0.000000e+00, ptr noundef %5, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  br i1 %16, label %.lr.ph288, label %.preheader235.thread

._crit_edge284.thread:                            ; preds = %.preheader239
  %.pre = add nsw i64 %2, -1
  %.pre332 = uitofp nneg i64 %.pre to double
  %215 = fdiv double 1.000000e+00, %.pre332
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %3, i64 noundef %4, i64 noundef %2, double noundef %215, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 1, double noundef 0.000000e+00, ptr noundef %5, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  br i1 %16, label %.lr.ph288, label %._crit_edge307

.lr.ph288:                                        ; preds = %._crit_edge284.thread, %._crit_edge284
  %216 = getelementptr inbounds i8, ptr %10, i64 56
  br label %218

.preheader235:                                    ; preds = %228
  br i1 %17, label %.lr.ph291, label %._crit_edge307

.preheader235.thread:                             ; preds = %._crit_edge284
  br i1 %17, label %.lr.ph291, label %._crit_edge307

.lr.ph291:                                        ; preds = %.preheader235.thread, %.preheader235
  %217 = getelementptr inbounds i8, ptr %11, i64 56
  br label %270

218:                                              ; preds = %.lr.ph288, %228
  %.3286 = phi i64 [ 0, %.lr.ph288 ], [ %229, %228 ]
  %219 = load ptr, ptr %216, align 8, !tbaa !14
  %220 = getelementptr inbounds double, ptr %219, i64 %.3286
  %221 = load double, ptr %220, align 8, !tbaa !16
  %222 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %221, double noundef 0.000000e+00)
  %223 = load ptr, ptr %216, align 8, !tbaa !14
  %224 = getelementptr inbounds double, ptr %223, i64 %.3286
  br i1 %222, label %225, label %228

225:                                              ; preds = %218
  %226 = load double, ptr %224, align 8, !tbaa !16
  %227 = fdiv double 1.000000e+00, %226
  br label %228

228:                                              ; preds = %218, %225
  %.sink = phi double [ %227, %225 ], [ 0.000000e+00, %218 ]
  store double %.sink, ptr %224, align 8, !tbaa !16
  %229 = add nuw nsw i64 %.3286, 1
  %exitcond326.not = icmp eq i64 %229, %3
  br i1 %exitcond326.not, label %.preheader235, label %218, !llvm.loop !33

.preheader234:                                    ; preds = %280
  br i1 %16, label %.lr.ph299, label %._crit_edge307

.lr.ph299:                                        ; preds = %.preheader234
  %230 = getelementptr inbounds i8, ptr %10, i64 56
  %231 = getelementptr inbounds i8, ptr %5, i64 72
  %232 = getelementptr inbounds i8, ptr %11, i64 56
  br i1 %17, label %.lr.ph295.us.preheader, label %._crit_edge307

.lr.ph295.us.preheader:                           ; preds = %.lr.ph299
  %xtraiter384 = and i64 %4, 1
  %233 = icmp eq i64 %4, 1
  %unroll_iter387 = and i64 %4, 9223372036854775806
  %lcmp.mod386.not = icmp eq i64 %xtraiter384, 0
  br label %.lr.ph295.us

.lr.ph295.us:                                     ; preds = %.lr.ph295.us.preheader, %._crit_edge296.us
  %.5298.us = phi i64 [ %269, %._crit_edge296.us ], [ 0, %.lr.ph295.us.preheader ]
  %234 = load ptr, ptr %230, align 8, !tbaa !14
  %235 = getelementptr inbounds double, ptr %234, i64 %.5298.us
  %236 = load double, ptr %235, align 8, !tbaa !16
  br i1 %233, label %._crit_edge296.us.unr-lcssa, label %.lr.ph295.us.new

.lr.ph295.us.new:                                 ; preds = %.lr.ph295.us, %.lr.ph295.us.new
  %.7293.us = phi i64 [ %258, %.lr.ph295.us.new ], [ 0, %.lr.ph295.us ]
  %niter388 = phi i64 [ %niter388.next.1, %.lr.ph295.us.new ], [ 0, %.lr.ph295.us ]
  %237 = load ptr, ptr %231, align 8, !tbaa !14
  %238 = getelementptr inbounds ptr, ptr %237, i64 %.5298.us
  %239 = load ptr, ptr %238, align 8, !tbaa !15
  %240 = getelementptr inbounds double, ptr %239, i64 %.7293.us
  %241 = load double, ptr %240, align 8, !tbaa !16
  %242 = fmul double %236, %241
  %243 = load ptr, ptr %232, align 8, !tbaa !14
  %244 = getelementptr inbounds double, ptr %243, i64 %.7293.us
  %245 = load double, ptr %244, align 8, !tbaa !16
  %246 = fmul double %242, %245
  store double %246, ptr %240, align 8, !tbaa !16
  %247 = or disjoint i64 %.7293.us, 1
  %248 = load ptr, ptr %231, align 8, !tbaa !14
  %249 = getelementptr inbounds ptr, ptr %248, i64 %.5298.us
  %250 = load ptr, ptr %249, align 8, !tbaa !15
  %251 = getelementptr inbounds double, ptr %250, i64 %247
  %252 = load double, ptr %251, align 8, !tbaa !16
  %253 = fmul double %236, %252
  %254 = load ptr, ptr %232, align 8, !tbaa !14
  %255 = getelementptr inbounds double, ptr %254, i64 %247
  %256 = load double, ptr %255, align 8, !tbaa !16
  %257 = fmul double %253, %256
  store double %257, ptr %251, align 8, !tbaa !16
  %258 = add nuw nsw i64 %.7293.us, 2
  %niter388.next.1 = add i64 %niter388, 2
  %niter388.ncmp.1 = icmp eq i64 %niter388.next.1, %unroll_iter387
  br i1 %niter388.ncmp.1, label %._crit_edge296.us.unr-lcssa, label %.lr.ph295.us.new, !llvm.loop !34

._crit_edge296.us.unr-lcssa:                      ; preds = %.lr.ph295.us.new, %.lr.ph295.us
  %.7293.us.unr = phi i64 [ 0, %.lr.ph295.us ], [ %258, %.lr.ph295.us.new ]
  br i1 %lcmp.mod386.not, label %._crit_edge296.us, label %._crit_edge296.us.epilog-lcssa

._crit_edge296.us.epilog-lcssa:                   ; preds = %._crit_edge296.us.unr-lcssa
  %259 = load ptr, ptr %231, align 8, !tbaa !14
  %260 = getelementptr inbounds ptr, ptr %259, i64 %.5298.us
  %261 = load ptr, ptr %260, align 8, !tbaa !15
  %262 = getelementptr inbounds double, ptr %261, i64 %.7293.us.unr
  %263 = load double, ptr %262, align 8, !tbaa !16
  %264 = fmul double %236, %263
  %265 = load ptr, ptr %232, align 8, !tbaa !14
  %266 = getelementptr inbounds double, ptr %265, i64 %.7293.us.unr
  %267 = load double, ptr %266, align 8, !tbaa !16
  %268 = fmul double %264, %267
  store double %268, ptr %262, align 8, !tbaa !16
  br label %._crit_edge296.us

._crit_edge296.us:                                ; preds = %._crit_edge296.us.unr-lcssa, %._crit_edge296.us.epilog-lcssa
  %269 = add nuw nsw i64 %.5298.us, 1
  %exitcond329.not = icmp eq i64 %269, %3
  br i1 %exitcond329.not, label %._crit_edge307, label %.lr.ph295.us, !llvm.loop !35

270:                                              ; preds = %.lr.ph291, %280
  %.4290 = phi i64 [ 0, %.lr.ph291 ], [ %281, %280 ]
  %271 = load ptr, ptr %217, align 8, !tbaa !14
  %272 = getelementptr inbounds double, ptr %271, i64 %.4290
  %273 = load double, ptr %272, align 8, !tbaa !16
  %274 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %273, double noundef 0.000000e+00)
  %275 = load ptr, ptr %217, align 8, !tbaa !14
  %276 = getelementptr inbounds double, ptr %275, i64 %.4290
  br i1 %274, label %277, label %280

277:                                              ; preds = %270
  %278 = load double, ptr %276, align 8, !tbaa !16
  %279 = fdiv double 1.000000e+00, %278
  br label %280

280:                                              ; preds = %270, %277
  %.sink347 = phi double [ %279, %277 ], [ 0.000000e+00, %270 ]
  store double %.sink347, ptr %276, align 8, !tbaa !16
  %281 = add nuw nsw i64 %.4290, 1
  %exitcond327.not = icmp eq i64 %281, %4
  br i1 %exitcond327.not, label %.preheader234, label %270, !llvm.loop !36

._crit_edge307:                                   ; preds = %._crit_edge296.us, %._crit_edge304.us, %.preheader234, %.lr.ph299, %.preheader235.thread, %._crit_edge284.thread, %.preheader235, %34, %.preheader.lr.ph
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  call void @llvm.lifetime.end.p0(i64 736, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl8rankdataEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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_impl15_apbuffers_initEPvPNS_8ae_stateEb(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_impl20apservisfinitematrixEPNS_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_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

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

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

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

; 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 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !19}
!29 = distinct !{!29, !19}
!30 = distinct !{!30, !19}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !19}
!33 = distinct !{!33, !19}
!34 = distinct !{!34, !19}
!35 = distinct !{!35, !19}
!36 = distinct !{!36, !19}


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