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

; 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.34 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [39 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_impl4covmEPKNS_9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.alglib_impl::ae_frame", align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca double, align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #4
  %20 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %20, ptr noundef %11)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef %12, ptr noundef %21, ptr noundef %22, i1 noundef zeroext true)
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %23)
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 3, ptr noundef %24, i1 noundef zeroext true)
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 3, ptr noundef %25, i1 noundef zeroext true)
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 1, ptr noundef %26, i1 noundef zeroext true)
  %27 = load i64, ptr %7, align 8, !tbaa !9
  %28 = icmp sge i64 %27, 0
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %28, ptr noundef @.str.34, ptr noundef %29)
  %30 = load i64, ptr %8, align 8, !tbaa !9
  %31 = icmp sge i64 %30, 1
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef @.str.35, ptr noundef %32)
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 0
  %34 = load i64, ptr %33, align 8, !tbaa !11
  %35 = load i64, ptr %7, align 8, !tbaa !9
  %36 = icmp sge i64 %34, %35
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef @.str.36, ptr noundef %37)
  %38 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 1
  %39 = load i64, ptr %38, align 8, !tbaa !15
  %40 = load i64, ptr %8, align 8, !tbaa !9
  %41 = icmp sge i64 %39, %40
  br i1 %41, label %45, label %42

42:                                               ; preds = %5
  %43 = load i64, ptr %7, align 8, !tbaa !9
  %44 = icmp eq i64 %43, 0
  br label %45

45:                                               ; preds = %42, %5
  %46 = phi i1 [ true, %5 ], [ %44, %42 ]
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %46, ptr noundef @.str.37, ptr noundef %47)
  %48 = load i64, ptr %7, align 8, !tbaa !9
  %49 = load i64, ptr %8, align 8, !tbaa !9
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %12, i64 noundef %48, i64 noundef %49, ptr noundef %50)
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %51, ptr noundef @.str.38, ptr noundef %52)
  %53 = load i64, ptr %7, align 8, !tbaa !9
  %54 = icmp sle i64 %53, 1
  br i1 %54, label %55, label %89

55:                                               ; preds = %45
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = load i64, ptr %8, align 8, !tbaa !9
  %58 = load i64, ptr %8, align 8, !tbaa !9
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %56, i64 noundef %57, i64 noundef %58, ptr noundef %59)
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %60

60:                                               ; preds = %84, %55
  %61 = load i64, ptr %13, align 8, !tbaa !9
  %62 = load i64, ptr %8, align 8, !tbaa !9
  %63 = sub nsw i64 %62, 1
  %64 = icmp sle i64 %61, %63
  br i1 %64, label %65, label %87

65:                                               ; preds = %60
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %80, %65
  %67 = load i64, ptr %14, align 8, !tbaa !9
  %68 = load i64, ptr %8, align 8, !tbaa !9
  %69 = sub nsw i64 %68, 1
  %70 = icmp sle i64 %67, %69
  br i1 %70, label %71, label %83

71:                                               ; preds = %66
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %72, i32 0, i32 6
  %74 = load ptr, ptr %73, align 8, !tbaa !16
  %75 = load i64, ptr %13, align 8, !tbaa !9
  %76 = getelementptr inbounds ptr, ptr %74, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = load i64, ptr %14, align 8, !tbaa !9
  %79 = getelementptr inbounds double, ptr %77, i64 %78
  store double 0.000000e+00, ptr %79, align 8, !tbaa !17
  br label %80

80:                                               ; preds = %71
  %81 = load i64, ptr %14, align 8, !tbaa !9
  %82 = add nsw i64 %81, 1
  store i64 %82, ptr %14, align 8, !tbaa !9
  br label %66, !llvm.loop !19

83:                                               ; preds = %66
  br label %84

84:                                               ; preds = %83
  %85 = load i64, ptr %13, align 8, !tbaa !9
  %86 = add nsw i64 %85, 1
  store i64 %86, ptr %13, align 8, !tbaa !9
  br label %60, !llvm.loop !21

87:                                               ; preds = %60
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %88)
  store i32 1, ptr %19, align 4
  br label %252

89:                                               ; preds = %45
  %90 = load i64, ptr %8, align 8, !tbaa !9
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %90, ptr noundef %91)
  %92 = load i64, ptr %8, align 8, !tbaa !9
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %92, ptr noundef %93)
  %94 = load i64, ptr %8, align 8, !tbaa !9
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %94, ptr noundef %95)
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load i64, ptr %8, align 8, !tbaa !9
  %98 = load i64, ptr %8, align 8, !tbaa !9
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %96, i64 noundef %97, i64 noundef %98, ptr noundef %99)
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %100

100:                                              ; preds = %114, %89
  %101 = load i64, ptr %13, align 8, !tbaa !9
  %102 = load i64, ptr %8, align 8, !tbaa !9
  %103 = sub nsw i64 %102, 1
  %104 = icmp sle i64 %101, %103
  br i1 %104, label %105, label %117

105:                                              ; preds = %100
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %107 = load ptr, ptr %106, align 8, !tbaa !16
  %108 = load i64, ptr %13, align 8, !tbaa !9
  %109 = getelementptr inbounds double, ptr %107, i64 %108
  store double 0.000000e+00, ptr %109, align 8, !tbaa !17
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !16
  %112 = load i64, ptr %13, align 8, !tbaa !9
  %113 = getelementptr inbounds i8, ptr %111, i64 %112
  store i8 1, ptr %113, align 1, !tbaa !22
  br label %114

114:                                              ; preds = %105
  %115 = load i64, ptr %13, align 8, !tbaa !9
  %116 = add nsw i64 %115, 1
  store i64 %116, ptr %13, align 8, !tbaa !9
  br label %100, !llvm.loop !23

117:                                              ; preds = %100
  %118 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %119 = load ptr, ptr %118, align 8, !tbaa !16
  %120 = getelementptr inbounds double, ptr %119, i64 0
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %122 = load ptr, ptr %121, align 8, !tbaa !16
  %123 = getelementptr inbounds ptr, ptr %122, i64 0
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = getelementptr inbounds double, ptr %124, i64 0
  %126 = load i64, ptr %8, align 8, !tbaa !9
  %127 = sub nsw i64 %126, 1
  %128 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %127)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %120, i64 noundef 1, ptr noundef %125, i64 noundef 1, i64 noundef %128)
  %129 = load i64, ptr %7, align 8, !tbaa !9
  %130 = sitofp i64 %129 to double
  %131 = fdiv double 1.000000e+00, %130
  store double %131, ptr %15, align 8, !tbaa !17
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %132

132:                                              ; preds = %189, %117
  %133 = load i64, ptr %13, align 8, !tbaa !9
  %134 = load i64, ptr %7, align 8, !tbaa !9
  %135 = sub nsw i64 %134, 1
  %136 = icmp sle i64 %133, %135
  br i1 %136, label %137, label %192

137:                                              ; preds = %132
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %139 = load ptr, ptr %138, align 8, !tbaa !16
  %140 = getelementptr inbounds double, ptr %139, i64 0
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %142 = load ptr, ptr %141, align 8, !tbaa !16
  %143 = load i64, ptr %13, align 8, !tbaa !9
  %144 = getelementptr inbounds ptr, ptr %142, i64 %143
  %145 = load ptr, ptr %144, align 8, !tbaa !5
  %146 = getelementptr inbounds double, ptr %145, i64 0
  %147 = load i64, ptr %8, align 8, !tbaa !9
  %148 = sub nsw i64 %147, 1
  %149 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %148)
  %150 = load double, ptr %15, align 8, !tbaa !17
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %140, i64 noundef 1, ptr noundef %146, i64 noundef 1, i64 noundef %149, double noundef %150)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %185, %137
  %152 = load i64, ptr %14, align 8, !tbaa !9
  %153 = load i64, ptr %8, align 8, !tbaa !9
  %154 = sub nsw i64 %153, 1
  %155 = icmp sle i64 %152, %154
  br i1 %155, label %156, label %188

156:                                              ; preds = %151
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %158 = load ptr, ptr %157, align 8, !tbaa !16
  %159 = load i64, ptr %14, align 8, !tbaa !9
  %160 = getelementptr inbounds i8, ptr %158, i64 %159
  %161 = load i8, ptr %160, align 1, !tbaa !22, !range !24, !noundef !25
  %162 = trunc i8 %161 to i1
  br i1 %162, label %163, label %178

163:                                              ; preds = %156
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %165 = load ptr, ptr %164, align 8, !tbaa !16
  %166 = load i64, ptr %13, align 8, !tbaa !9
  %167 = getelementptr inbounds ptr, ptr %165, i64 %166
  %168 = load ptr, ptr %167, align 8, !tbaa !5
  %169 = load i64, ptr %14, align 8, !tbaa !9
  %170 = getelementptr inbounds double, ptr %168, i64 %169
  %171 = load double, ptr %170, align 8, !tbaa !17
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !16
  %174 = load i64, ptr %14, align 8, !tbaa !9
  %175 = getelementptr inbounds double, ptr %173, i64 %174
  %176 = load double, ptr %175, align 8, !tbaa !17
  %177 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %171, double noundef %176)
  br label %178

178:                                              ; preds = %163, %156
  %179 = phi i1 [ false, %156 ], [ %177, %163 ]
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %181 = load ptr, ptr %180, align 8, !tbaa !16
  %182 = load i64, ptr %14, align 8, !tbaa !9
  %183 = getelementptr inbounds i8, ptr %181, i64 %182
  %184 = zext i1 %179 to i8
  store i8 %184, ptr %183, align 1, !tbaa !22
  br label %185

185:                                              ; preds = %178
  %186 = load i64, ptr %14, align 8, !tbaa !9
  %187 = add nsw i64 %186, 1
  store i64 %187, ptr %14, align 8, !tbaa !9
  br label %151, !llvm.loop !26

188:                                              ; preds = %151
  br label %189

189:                                              ; preds = %188
  %190 = load i64, ptr %13, align 8, !tbaa !9
  %191 = add nsw i64 %190, 1
  store i64 %191, ptr %13, align 8, !tbaa !9
  br label %132, !llvm.loop !27

192:                                              ; preds = %132
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %193

193:                                              ; preds = %236, %192
  %194 = load i64, ptr %13, align 8, !tbaa !9
  %195 = load i64, ptr %7, align 8, !tbaa !9
  %196 = sub nsw i64 %195, 1
  %197 = icmp sle i64 %194, %196
  br i1 %197, label %198, label %239

198:                                              ; preds = %193
  %199 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %200 = load ptr, ptr %199, align 8, !tbaa !16
  %201 = load i64, ptr %13, align 8, !tbaa !9
  %202 = getelementptr inbounds ptr, ptr %200, i64 %201
  %203 = load ptr, ptr %202, align 8, !tbaa !5
  %204 = getelementptr inbounds double, ptr %203, i64 0
  %205 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %206 = load ptr, ptr %205, align 8, !tbaa !16
  %207 = getelementptr inbounds double, ptr %206, i64 0
  %208 = load i64, ptr %8, align 8, !tbaa !9
  %209 = sub nsw i64 %208, 1
  %210 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %209)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %204, i64 noundef 1, ptr noundef %207, i64 noundef 1, i64 noundef %210)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %211

211:                                              ; preds = %232, %198
  %212 = load i64, ptr %14, align 8, !tbaa !9
  %213 = load i64, ptr %8, align 8, !tbaa !9
  %214 = sub nsw i64 %213, 1
  %215 = icmp sle i64 %212, %214
  br i1 %215, label %216, label %235

216:                                              ; preds = %211
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !16
  %219 = load i64, ptr %14, align 8, !tbaa !9
  %220 = getelementptr inbounds i8, ptr %218, i64 %219
  %221 = load i8, ptr %220, align 1, !tbaa !22, !range !24, !noundef !25
  %222 = trunc i8 %221 to i1
  br i1 %222, label %223, label %231

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

231:                                              ; preds = %223, %216
  br label %232

232:                                              ; preds = %231
  %233 = load i64, ptr %14, align 8, !tbaa !9
  %234 = add nsw i64 %233, 1
  store i64 %234, ptr %14, align 8, !tbaa !9
  br label %211, !llvm.loop !28

235:                                              ; preds = %211
  br label %236

236:                                              ; preds = %235
  %237 = load i64, ptr %13, align 8, !tbaa !9
  %238 = add nsw i64 %237, 1
  store i64 %238, ptr %13, align 8, !tbaa !9
  br label %193, !llvm.loop !29

239:                                              ; preds = %193
  %240 = load i64, ptr %8, align 8, !tbaa !9
  %241 = load i64, ptr %7, align 8, !tbaa !9
  %242 = load i64, ptr %7, align 8, !tbaa !9
  %243 = sub nsw i64 %242, 1
  %244 = sitofp i64 %243 to double
  %245 = fdiv double 1.000000e+00, %244
  %246 = load ptr, ptr %9, align 8, !tbaa !5
  %247 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixsyrkElldPKNS_9ae_matrixEllldPS0_llbPNS_8ae_stateE(i64 noundef %240, i64 noundef %241, double noundef %245, ptr noundef %12, i64 noundef 0, i64 noundef 0, i64 noundef 1, double noundef 0.000000e+00, ptr noundef %246, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, ptr noundef %247)
  %248 = load ptr, ptr %9, align 8, !tbaa !5
  %249 = load i64, ptr %8, align 8, !tbaa !9
  %250 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl26rmatrixenforcesymmetricityEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %248, i64 noundef %249, i1 noundef zeroext true, ptr noundef %250)
  %251 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %251)
  store i32 0, ptr %19, align 4
  br label %252

252:                                              ; preds = %239, %87
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  %253 = load i32, ptr %19, align 4
  switch i32 %253, label %255 [
    i32 0, label %254
    i32 1, label %254
  ]

254:                                              ; preds = %252, %252
  ret void

255:                                              ; preds = %252
  unreachable
}

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

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) #3

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

declare void @_ZN11alglib_impl26rmatrixenforcesymmetricityEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, 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 nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_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}


; 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.34 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [39 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_impl4covmEPKNS_9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = alloca %"struct.alglib_impl::ae_frame", align 8
  %7 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %4, ptr noundef nonnull %6)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %7, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  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 @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %7, ptr noundef %0, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %3)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 1, ptr noundef %4, i1 noundef zeroext true)
  %11 = icmp sgt i64 %1, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.34, ptr noundef %4)
  %12 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %12, ptr noundef nonnull @.str.35, ptr noundef %4)
  %13 = load i64, ptr %7, align 8, !tbaa !5
  %14 = icmp sge i64 %13, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.36, ptr noundef %4)
  %15 = getelementptr inbounds i8, ptr %7, i64 8
  %16 = load i64, ptr %15, align 8, !tbaa !13
  %17 = icmp sge i64 %16, %2
  %18 = icmp eq i64 %1, 0
  %19 = or i1 %18, %17
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.37, ptr noundef %4)
  %20 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %1, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.38, ptr noundef %4)
  %21 = icmp slt i64 %1, 2
  br i1 %21, label %22, label %51

22:                                               ; preds = %5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %3, i64 noundef %2, i64 noundef %2, ptr noundef %4)
  br i1 %12, label %.preheader.lr.ph, label %._crit_edge126

.preheader.lr.ph:                                 ; preds = %22
  %23 = getelementptr inbounds i8, ptr %3, i64 72
  %xtraiter152 = and i64 %2, 3
  %24 = icmp ult i64 %2, 4
  %unroll_iter154 = and i64 %2, 9223372036854775804
  %lcmp.mod153.not = icmp eq i64 %xtraiter152, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge123.us, %.preheader.lr.ph
  %.0125.us = phi i64 [ 0, %.preheader.lr.ph ], [ %50, %._crit_edge123.us ]
  br i1 %24, label %._crit_edge123.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.085121.us = phi i64 [ %44, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter155 = phi i64 [ %niter155.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %25 = load ptr, ptr %23, align 8, !tbaa !14
  %26 = getelementptr inbounds ptr, ptr %25, i64 %.0125.us
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  %28 = getelementptr inbounds double, ptr %27, i64 %.085121.us
  store double 0.000000e+00, ptr %28, align 8, !tbaa !16
  %29 = or disjoint i64 %.085121.us, 1
  %30 = load ptr, ptr %23, align 8, !tbaa !14
  %31 = getelementptr inbounds ptr, ptr %30, i64 %.0125.us
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %33 = getelementptr inbounds double, ptr %32, i64 %29
  store double 0.000000e+00, ptr %33, align 8, !tbaa !16
  %34 = or disjoint i64 %.085121.us, 2
  %35 = load ptr, ptr %23, align 8, !tbaa !14
  %36 = getelementptr inbounds ptr, ptr %35, i64 %.0125.us
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  %38 = getelementptr inbounds double, ptr %37, i64 %34
  store double 0.000000e+00, ptr %38, align 8, !tbaa !16
  %39 = or disjoint i64 %.085121.us, 3
  %40 = load ptr, ptr %23, align 8, !tbaa !14
  %41 = getelementptr inbounds ptr, ptr %40, i64 %.0125.us
  %42 = load ptr, ptr %41, align 8, !tbaa !15
  %43 = getelementptr inbounds double, ptr %42, i64 %39
  store double 0.000000e+00, ptr %43, align 8, !tbaa !16
  %44 = add nuw nsw i64 %.085121.us, 4
  %niter155.next.3 = add i64 %niter155, 4
  %niter155.ncmp.3 = icmp eq i64 %niter155.next.3, %unroll_iter154
  br i1 %niter155.ncmp.3, label %._crit_edge123.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !18

._crit_edge123.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.085121.us.unr = phi i64 [ 0, %.preheader.us ], [ %44, %.preheader.us.new ]
  br i1 %lcmp.mod153.not, label %._crit_edge123.us, label %.epil.preheader151

.epil.preheader151:                               ; preds = %._crit_edge123.us.unr-lcssa, %.epil.preheader151
  %.085121.us.epil = phi i64 [ %49, %.epil.preheader151 ], [ %.085121.us.unr, %._crit_edge123.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader151 ], [ 0, %._crit_edge123.us.unr-lcssa ]
  %45 = load ptr, ptr %23, align 8, !tbaa !14
  %46 = getelementptr inbounds ptr, ptr %45, i64 %.0125.us
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  %48 = getelementptr inbounds double, ptr %47, i64 %.085121.us.epil
  store double 0.000000e+00, ptr %48, align 8, !tbaa !16
  %49 = add nuw nsw i64 %.085121.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter152
  br i1 %epil.iter.cmp.not, label %._crit_edge123.us, label %.epil.preheader151, !llvm.loop !20

._crit_edge123.us:                                ; preds = %.epil.preheader151, %._crit_edge123.us.unr-lcssa
  %50 = add nuw nsw i64 %.0125.us, 1
  %exitcond139.not = icmp eq i64 %50, %2
  br i1 %exitcond139.not, label %._crit_edge126, label %.preheader.us, !llvm.loop !22

51:                                               ; preds = %5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %3, i64 noundef %2, i64 noundef %2, ptr noundef %4)
  br i1 %12, label %.lr.ph, label %.lr.ph110

.lr.ph:                                           ; preds = %51
  %52 = getelementptr inbounds i8, ptr %8, i64 56
  %53 = getelementptr inbounds i8, ptr %10, i64 56
  %xtraiter = and i64 %2, 1
  %54 = icmp eq i64 %2, 1
  br i1 %54, label %.lr.ph110.loopexit.unr-lcssa, label %.lr.ph.new

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

55:                                               ; preds = %55, %.lr.ph.new
  %.1101 = phi i64 [ 0, %.lr.ph.new ], [ %65, %55 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %55 ]
  %56 = load ptr, ptr %52, align 8, !tbaa !14
  %57 = getelementptr inbounds double, ptr %56, i64 %.1101
  store double 0.000000e+00, ptr %57, align 8, !tbaa !16
  %58 = load ptr, ptr %53, align 8, !tbaa !14
  %59 = getelementptr inbounds i8, ptr %58, i64 %.1101
  store i8 1, ptr %59, align 1, !tbaa !23
  %60 = or disjoint i64 %.1101, 1
  %61 = load ptr, ptr %52, align 8, !tbaa !14
  %62 = getelementptr inbounds double, ptr %61, i64 %60
  store double 0.000000e+00, ptr %62, align 8, !tbaa !16
  %63 = load ptr, ptr %53, align 8, !tbaa !14
  %64 = getelementptr inbounds i8, ptr %63, i64 %60
  store i8 1, ptr %64, align 1, !tbaa !23
  %65 = add nuw nsw i64 %.1101, 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.ph110.loopexit.unr-lcssa, label %55, !llvm.loop !24

.lr.ph110.loopexit.unr-lcssa:                     ; preds = %55, %.lr.ph
  %.1101.unr = phi i64 [ 0, %.lr.ph ], [ %65, %55 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph110, label %.lr.ph110.loopexit.epilog-lcssa

.lr.ph110.loopexit.epilog-lcssa:                  ; preds = %.lr.ph110.loopexit.unr-lcssa
  %66 = load ptr, ptr %52, align 8, !tbaa !14
  %67 = getelementptr inbounds double, ptr %66, i64 %.1101.unr
  store double 0.000000e+00, ptr %67, align 8, !tbaa !16
  %68 = load ptr, ptr %53, align 8, !tbaa !14
  %69 = getelementptr inbounds i8, ptr %68, i64 %.1101.unr
  store i8 1, ptr %69, align 1, !tbaa !23
  br label %.lr.ph110

.lr.ph110:                                        ; preds = %.lr.ph110.loopexit.epilog-lcssa, %.lr.ph110.loopexit.unr-lcssa, %51
  %70 = add nsw i64 %2, -1
  %71 = getelementptr inbounds i8, ptr %9, i64 56
  %72 = load ptr, ptr %71, align 8, !tbaa !14
  %73 = getelementptr inbounds i8, ptr %7, i64 72
  %74 = load ptr, ptr %73, align 8, !tbaa !14
  %75 = load ptr, ptr %74, align 8, !tbaa !15
  %76 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %70)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %72, i64 noundef 1, ptr noundef %75, i64 noundef 1, i64 noundef %76)
  %77 = uitofp nneg i64 %1 to double
  %78 = fdiv double 1.000000e+00, %77
  %79 = getelementptr inbounds i8, ptr %8, i64 56
  %80 = getelementptr inbounds i8, ptr %10, i64 56
  %smax131 = call i64 @llvm.smax.i64(i64 %1, i64 1)
  br i1 %12, label %.lr.ph105.us, label %.lr.ph110.split

.lr.ph105.us:                                     ; preds = %.lr.ph110, %._crit_edge106.us
  %.2108.us = phi i64 [ %107, %._crit_edge106.us ], [ 0, %.lr.ph110 ]
  %81 = load ptr, ptr %79, align 8, !tbaa !14
  %82 = load ptr, ptr %73, align 8, !tbaa !14
  %83 = getelementptr inbounds ptr, ptr %82, i64 %.2108.us
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  %85 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %70)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %81, i64 noundef 1, ptr noundef %84, i64 noundef 1, i64 noundef %85, double noundef %78)
  br label %86

86:                                               ; preds = %.lr.ph105.us, %101
  %.186103.us = phi i64 [ 0, %.lr.ph105.us ], [ %106, %101 ]
  %87 = load ptr, ptr %80, align 8, !tbaa !14
  %88 = getelementptr inbounds i8, ptr %87, i64 %.186103.us
  %89 = load i8, ptr %88, align 1, !tbaa !23, !range !25, !noundef !26
  %90 = trunc nuw i8 %89 to i1
  br i1 %90, label %91, label %101

91:                                               ; preds = %86
  %92 = load ptr, ptr %73, align 8, !tbaa !14
  %93 = getelementptr inbounds ptr, ptr %92, i64 %.2108.us
  %94 = load ptr, ptr %93, align 8, !tbaa !15
  %95 = getelementptr inbounds double, ptr %94, i64 %.186103.us
  %96 = load double, ptr %95, align 8, !tbaa !16
  %97 = load ptr, ptr %71, align 8, !tbaa !14
  %98 = getelementptr inbounds double, ptr %97, i64 %.186103.us
  %99 = load double, ptr %98, align 8, !tbaa !16
  %100 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %96, double noundef %99)
  %.pre = load ptr, ptr %80, align 8, !tbaa !14
  br label %101

101:                                              ; preds = %91, %86
  %102 = phi ptr [ %87, %86 ], [ %.pre, %91 ]
  %103 = phi i1 [ false, %86 ], [ %100, %91 ]
  %104 = getelementptr inbounds i8, ptr %102, i64 %.186103.us
  %105 = zext i1 %103 to i8
  store i8 %105, ptr %104, align 1, !tbaa !23
  %106 = add nuw nsw i64 %.186103.us, 1
  %exitcond130.not = icmp eq i64 %106, %2
  br i1 %exitcond130.not, label %._crit_edge106.us, label %86, !llvm.loop !27

._crit_edge106.us:                                ; preds = %101
  %107 = add nuw nsw i64 %.2108.us, 1
  %exitcond132.not = icmp eq i64 %107, %smax131
  br i1 %exitcond132.not, label %.lr.ph118, label %.lr.ph105.us, !llvm.loop !28

.lr.ph118:                                        ; preds = %.lr.ph110.split, %._crit_edge106.us
  %108 = add nsw i64 %1, -1
  %109 = getelementptr inbounds i8, ptr %8, i64 56
  %110 = getelementptr inbounds i8, ptr %10, i64 56
  %smax136 = call i64 @llvm.smax.i64(i64 %1, i64 1)
  br i1 %12, label %.lr.ph114.us.preheader, label %.lr.ph118.split

.lr.ph114.us.preheader:                           ; preds = %.lr.ph118
  %xtraiter147 = and i64 %2, 1
  %111 = icmp eq i64 %2, 1
  %unroll_iter149 = and i64 %2, 9223372036854775806
  %lcmp.mod148.not = icmp eq i64 %xtraiter147, 0
  br label %.lr.ph114.us

.lr.ph114.us:                                     ; preds = %.lr.ph114.us.preheader, %._crit_edge115.us
  %.3117.us = phi i64 [ %148, %._crit_edge115.us ], [ 0, %.lr.ph114.us.preheader ]
  %112 = load ptr, ptr %73, align 8, !tbaa !14
  %113 = getelementptr inbounds ptr, ptr %112, i64 %.3117.us
  %114 = load ptr, ptr %113, align 8, !tbaa !15
  %115 = load ptr, ptr %109, align 8, !tbaa !14
  %116 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %70)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %114, i64 noundef 1, ptr noundef %115, i64 noundef 1, i64 noundef %116)
  br i1 %111, label %._crit_edge115.us.unr-lcssa, label %.lr.ph114.us.new

.lr.ph114.us.new:                                 ; preds = %.lr.ph114.us, %137
  %.287112.us = phi i64 [ %138, %137 ], [ 0, %.lr.ph114.us ]
  %niter150 = phi i64 [ %niter150.next.1, %137 ], [ 0, %.lr.ph114.us ]
  %117 = load ptr, ptr %110, align 8, !tbaa !14
  %118 = getelementptr inbounds i8, ptr %117, i64 %.287112.us
  %119 = load i8, ptr %118, align 1, !tbaa !23, !range !25, !noundef !26
  %120 = trunc nuw i8 %119 to i1
  br i1 %120, label %121, label %126

121:                                              ; preds = %.lr.ph114.us.new
  %122 = load ptr, ptr %73, align 8, !tbaa !14
  %123 = getelementptr inbounds ptr, ptr %122, i64 %.3117.us
  %124 = load ptr, ptr %123, align 8, !tbaa !15
  %125 = getelementptr inbounds double, ptr %124, i64 %.287112.us
  store double 0.000000e+00, ptr %125, align 8, !tbaa !16
  br label %126

126:                                              ; preds = %121, %.lr.ph114.us.new
  %127 = or disjoint i64 %.287112.us, 1
  %128 = load ptr, ptr %110, align 8, !tbaa !14
  %129 = getelementptr inbounds i8, ptr %128, i64 %127
  %130 = load i8, ptr %129, align 1, !tbaa !23, !range !25, !noundef !26
  %131 = trunc nuw i8 %130 to i1
  br i1 %131, label %132, label %137

132:                                              ; preds = %126
  %133 = load ptr, ptr %73, align 8, !tbaa !14
  %134 = getelementptr inbounds ptr, ptr %133, i64 %.3117.us
  %135 = load ptr, ptr %134, align 8, !tbaa !15
  %136 = getelementptr inbounds double, ptr %135, i64 %127
  store double 0.000000e+00, ptr %136, align 8, !tbaa !16
  br label %137

137:                                              ; preds = %132, %126
  %138 = add nuw nsw i64 %.287112.us, 2
  %niter150.next.1 = add i64 %niter150, 2
  %niter150.ncmp.1 = icmp eq i64 %niter150.next.1, %unroll_iter149
  br i1 %niter150.ncmp.1, label %._crit_edge115.us.unr-lcssa, label %.lr.ph114.us.new, !llvm.loop !29

._crit_edge115.us.unr-lcssa:                      ; preds = %137, %.lr.ph114.us
  %.287112.us.unr = phi i64 [ 0, %.lr.ph114.us ], [ %138, %137 ]
  br i1 %lcmp.mod148.not, label %._crit_edge115.us, label %.epil.preheader146

.epil.preheader146:                               ; preds = %._crit_edge115.us.unr-lcssa
  %139 = load ptr, ptr %110, align 8, !tbaa !14
  %140 = getelementptr inbounds i8, ptr %139, i64 %.287112.us.unr
  %141 = load i8, ptr %140, align 1, !tbaa !23, !range !25, !noundef !26
  %142 = trunc nuw i8 %141 to i1
  br i1 %142, label %143, label %._crit_edge115.us

143:                                              ; preds = %.epil.preheader146
  %144 = load ptr, ptr %73, align 8, !tbaa !14
  %145 = getelementptr inbounds ptr, ptr %144, i64 %.3117.us
  %146 = load ptr, ptr %145, align 8, !tbaa !15
  %147 = getelementptr inbounds double, ptr %146, i64 %.287112.us.unr
  store double 0.000000e+00, ptr %147, align 8, !tbaa !16
  br label %._crit_edge115.us

._crit_edge115.us:                                ; preds = %.epil.preheader146, %143, %._crit_edge115.us.unr-lcssa
  %148 = add nuw nsw i64 %.3117.us, 1
  %exitcond137.not = icmp eq i64 %148, %smax136
  br i1 %exitcond137.not, label %._crit_edge119, label %.lr.ph114.us, !llvm.loop !30

.lr.ph110.split:                                  ; preds = %.lr.ph110, %.lr.ph110.split
  %.2108 = phi i64 [ %154, %.lr.ph110.split ], [ 0, %.lr.ph110 ]
  %149 = load ptr, ptr %79, align 8, !tbaa !14
  %150 = load ptr, ptr %73, align 8, !tbaa !14
  %151 = getelementptr inbounds ptr, ptr %150, i64 %.2108
  %152 = load ptr, ptr %151, align 8, !tbaa !15
  %153 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %70)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %149, i64 noundef 1, ptr noundef %152, i64 noundef 1, i64 noundef %153, double noundef %78)
  %154 = add nuw nsw i64 %.2108, 1
  %exitcond129.not = icmp eq i64 %154, %smax131
  br i1 %exitcond129.not, label %.lr.ph118, label %.lr.ph110.split, !llvm.loop !28

.lr.ph118.split:                                  ; preds = %.lr.ph118, %.lr.ph118.split
  %.3117 = phi i64 [ %160, %.lr.ph118.split ], [ 0, %.lr.ph118 ]
  %155 = load ptr, ptr %73, align 8, !tbaa !14
  %156 = getelementptr inbounds ptr, ptr %155, i64 %.3117
  %157 = load ptr, ptr %156, align 8, !tbaa !15
  %158 = load ptr, ptr %109, align 8, !tbaa !14
  %159 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %70)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %157, i64 noundef 1, ptr noundef %158, i64 noundef 1, i64 noundef %159)
  %160 = add nuw nsw i64 %.3117, 1
  %exitcond134.not = icmp eq i64 %160, %smax136
  br i1 %exitcond134.not, label %._crit_edge119, label %.lr.ph118.split, !llvm.loop !30

._crit_edge119:                                   ; preds = %.lr.ph118.split, %._crit_edge115.us
  %161 = uitofp nneg i64 %108 to double
  %162 = fdiv double 1.000000e+00, %161
  call void @_ZN11alglib_impl11rmatrixsyrkElldPKNS_9ae_matrixEllldPS0_llbPNS_8ae_stateE(i64 noundef %2, i64 noundef %1, double noundef %162, ptr noundef nonnull %7, i64 noundef 0, i64 noundef 0, i64 noundef 1, double noundef 0.000000e+00, ptr noundef %3, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, ptr noundef %4)
  call void @_ZN11alglib_impl26rmatrixenforcesymmetricityEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %3, i64 noundef %2, i1 noundef zeroext true, ptr noundef %4)
  br label %._crit_edge126

._crit_edge126:                                   ; preds = %._crit_edge123.us, %22, %._crit_edge119
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  ret void
}

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

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) #3

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 void @_ZN11alglib_impl11rmatrixsyrkElldPKNS_9ae_matrixEllldPS0_llbPNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #2

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

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

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 nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!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}


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