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

; 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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%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.240 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.241 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.242 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.243 = external hidden unnamed_addr constant [44 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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl30spdmatrixcholeskyupdateadd1bufEPNS_9ae_matrixElbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i8, align 1
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  %21 = zext i1 %2 to i8
  store i8 %21, ptr %9, align 1, !tbaa !11
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  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 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %22 = load i64, ptr %8, align 8, !tbaa !9
  %23 = icmp sgt i64 %22, 0
  %24 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef @.str.240, ptr noundef %24)
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %25, i32 0, i32 0
  %27 = load i64, ptr %26, align 8, !tbaa !13
  %28 = load i64, ptr %8, align 8, !tbaa !9
  %29 = icmp sge i64 %27, %28
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef @.str.241, ptr noundef %30)
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %31, i32 0, i32 1
  %33 = load i64, ptr %32, align 8, !tbaa !16
  %34 = load i64, ptr %8, align 8, !tbaa !9
  %35 = icmp sge i64 %33, %34
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef @.str.242, ptr noundef %36)
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 0
  %39 = load i64, ptr %38, align 8, !tbaa !17
  %40 = load i64, ptr %8, align 8, !tbaa !9
  %41 = icmp sge i64 %39, %40
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef @.str.243, ptr noundef %42)
  %43 = load i64, ptr %8, align 8, !tbaa !9
  store i64 %43, ptr %15, align 8, !tbaa !9
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %44

44:                                               ; preds = %60, %6
  %45 = load i64, ptr %13, align 8, !tbaa !9
  %46 = load i64, ptr %8, align 8, !tbaa !9
  %47 = sub nsw i64 %46, 1
  %48 = icmp sle i64 %45, %47
  br i1 %48, label %49, label %63

49:                                               ; preds = %44
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %50, i32 0, i32 4
  %52 = load ptr, ptr %51, align 8, !tbaa !19
  %53 = load i64, ptr %13, align 8, !tbaa !9
  %54 = getelementptr inbounds double, ptr %52, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !20
  %56 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %55, double noundef 0.000000e+00)
  br i1 %56, label %57, label %59

57:                                               ; preds = %49
  %58 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %58, ptr %15, align 8, !tbaa !9
  br label %63

59:                                               ; preds = %49
  br label %60

60:                                               ; preds = %59
  %61 = load i64, ptr %13, align 8, !tbaa !9
  %62 = add nsw i64 %61, 1
  store i64 %62, ptr %13, align 8, !tbaa !9
  br label %44, !llvm.loop !22

63:                                               ; preds = %57, %44
  %64 = load i64, ptr %15, align 8, !tbaa !9
  %65 = load i64, ptr %8, align 8, !tbaa !9
  %66 = icmp eq i64 %64, %65
  br i1 %66, label %67, label %68

67:                                               ; preds = %63
  store i32 1, ptr %20, align 4
  br label %346

68:                                               ; preds = %63
  %69 = load i8, ptr %9, align 1, !tbaa !11, !range !24, !noundef !25
  %70 = trunc i8 %69 to i1
  br i1 %70, label %71, label %200

71:                                               ; preds = %68
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = load i64, ptr %8, align 8, !tbaa !9
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %72, i64 noundef %73, ptr noundef %74)
  %75 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %75, ptr %14, align 8, !tbaa !9
  br label %76

76:                                               ; preds = %93, %71
  %77 = load i64, ptr %14, align 8, !tbaa !9
  %78 = load i64, ptr %8, align 8, !tbaa !9
  %79 = sub nsw i64 %78, 1
  %80 = icmp sle i64 %77, %79
  br i1 %80, label %81, label %96

81:                                               ; preds = %76
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !19
  %85 = load i64, ptr %14, align 8, !tbaa !9
  %86 = getelementptr inbounds double, ptr %84, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !20
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !19
  %91 = load i64, ptr %14, align 8, !tbaa !9
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  store double %87, ptr %92, align 8, !tbaa !20
  br label %93

93:                                               ; preds = %81
  %94 = load i64, ptr %14, align 8, !tbaa !9
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %14, align 8, !tbaa !9
  br label %76, !llvm.loop !26

96:                                               ; preds = %76
  %97 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %97, ptr %13, align 8, !tbaa !9
  br label %98

98:                                               ; preds = %196, %96
  %99 = load i64, ptr %13, align 8, !tbaa !9
  %100 = load i64, ptr %8, align 8, !tbaa !9
  %101 = sub nsw i64 %100, 1
  %102 = icmp sle i64 %99, %101
  br i1 %102, label %103, label %199

103:                                              ; preds = %98
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %104, i32 0, i32 4
  %106 = load ptr, ptr %105, align 8, !tbaa !19
  %107 = load i64, ptr %13, align 8, !tbaa !9
  %108 = getelementptr inbounds double, ptr %106, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !20
  %110 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %109, double noundef 0.000000e+00)
  br i1 %110, label %111, label %195

111:                                              ; preds = %103
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %112, i32 0, i32 6
  %114 = load ptr, ptr %113, align 8, !tbaa !19
  %115 = load i64, ptr %13, align 8, !tbaa !9
  %116 = getelementptr inbounds ptr, ptr %114, i64 %115
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = load i64, ptr %13, align 8, !tbaa !9
  %119 = getelementptr inbounds double, ptr %117, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !20
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %121, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !19
  %124 = load i64, ptr %13, align 8, !tbaa !9
  %125 = getelementptr inbounds double, ptr %123, i64 %124
  %126 = load double, ptr %125, align 8, !tbaa !20
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl16generaterotationEddPdS0_S0_PNS_8ae_stateE(double noundef %120, double noundef %126, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %127)
  %128 = load double, ptr %18, align 8, !tbaa !20
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %129, i32 0, i32 6
  %131 = load ptr, ptr %130, align 8, !tbaa !19
  %132 = load i64, ptr %13, align 8, !tbaa !9
  %133 = getelementptr inbounds ptr, ptr %131, i64 %132
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  %135 = load i64, ptr %13, align 8, !tbaa !9
  %136 = getelementptr inbounds double, ptr %134, i64 %135
  store double %128, ptr %136, align 8, !tbaa !20
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %137, i32 0, i32 4
  %139 = load ptr, ptr %138, align 8, !tbaa !19
  %140 = load i64, ptr %13, align 8, !tbaa !9
  %141 = getelementptr inbounds double, ptr %139, i64 %140
  store double 0.000000e+00, ptr %141, align 8, !tbaa !20
  %142 = load i64, ptr %13, align 8, !tbaa !9
  %143 = add nsw i64 %142, 1
  store i64 %143, ptr %14, align 8, !tbaa !9
  br label %144

144:                                              ; preds = %191, %111
  %145 = load i64, ptr %14, align 8, !tbaa !9
  %146 = load i64, ptr %8, align 8, !tbaa !9
  %147 = sub nsw i64 %146, 1
  %148 = icmp sle i64 %145, %147
  br i1 %148, label %149, label %194

149:                                              ; preds = %144
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %150, i32 0, i32 6
  %152 = load ptr, ptr %151, align 8, !tbaa !19
  %153 = load i64, ptr %13, align 8, !tbaa !9
  %154 = getelementptr inbounds ptr, ptr %152, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = load i64, ptr %14, align 8, !tbaa !9
  %157 = getelementptr inbounds double, ptr %155, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !20
  store double %158, ptr %18, align 8, !tbaa !20
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %159, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !19
  %162 = load i64, ptr %14, align 8, !tbaa !9
  %163 = getelementptr inbounds double, ptr %161, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !20
  store double %164, ptr %19, align 8, !tbaa !20
  %165 = load double, ptr %16, align 8, !tbaa !20
  %166 = load double, ptr %18, align 8, !tbaa !20
  %167 = load double, ptr %17, align 8, !tbaa !20
  %168 = load double, ptr %19, align 8, !tbaa !20
  %169 = fmul double %167, %168
  %170 = call double @llvm.fmuladd.f64(double %165, double %166, double %169)
  %171 = load ptr, ptr %7, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %171, i32 0, i32 6
  %173 = load ptr, ptr %172, align 8, !tbaa !19
  %174 = load i64, ptr %13, align 8, !tbaa !9
  %175 = getelementptr inbounds ptr, ptr %173, i64 %174
  %176 = load ptr, ptr %175, align 8, !tbaa !5
  %177 = load i64, ptr %14, align 8, !tbaa !9
  %178 = getelementptr inbounds double, ptr %176, i64 %177
  store double %170, ptr %178, align 8, !tbaa !20
  %179 = load double, ptr %17, align 8, !tbaa !20
  %180 = fneg double %179
  %181 = load double, ptr %18, align 8, !tbaa !20
  %182 = load double, ptr %16, align 8, !tbaa !20
  %183 = load double, ptr %19, align 8, !tbaa !20
  %184 = fmul double %182, %183
  %185 = call double @llvm.fmuladd.f64(double %180, double %181, double %184)
  %186 = load ptr, ptr %11, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %186, i32 0, i32 4
  %188 = load ptr, ptr %187, align 8, !tbaa !19
  %189 = load i64, ptr %14, align 8, !tbaa !9
  %190 = getelementptr inbounds double, ptr %188, i64 %189
  store double %185, ptr %190, align 8, !tbaa !20
  br label %191

191:                                              ; preds = %149
  %192 = load i64, ptr %14, align 8, !tbaa !9
  %193 = add nsw i64 %192, 1
  store i64 %193, ptr %14, align 8, !tbaa !9
  br label %144, !llvm.loop !27

194:                                              ; preds = %144
  br label %195

195:                                              ; preds = %194, %103
  br label %196

196:                                              ; preds = %195
  %197 = load i64, ptr %13, align 8, !tbaa !9
  %198 = add nsw i64 %197, 1
  store i64 %198, ptr %13, align 8, !tbaa !9
  br label %98, !llvm.loop !28

199:                                              ; preds = %98
  br label %345

200:                                              ; preds = %68
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  %202 = load i64, ptr %8, align 8, !tbaa !9
  %203 = mul nsw i64 3, %202
  %204 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %201, i64 noundef %203, ptr noundef %204)
  %205 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %205, ptr %14, align 8, !tbaa !9
  br label %206

206:                                              ; preds = %223, %200
  %207 = load i64, ptr %14, align 8, !tbaa !9
  %208 = load i64, ptr %8, align 8, !tbaa !9
  %209 = sub nsw i64 %208, 1
  %210 = icmp sle i64 %207, %209
  br i1 %210, label %211, label %226

211:                                              ; preds = %206
  %212 = load ptr, ptr %10, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %212, i32 0, i32 4
  %214 = load ptr, ptr %213, align 8, !tbaa !19
  %215 = load i64, ptr %14, align 8, !tbaa !9
  %216 = getelementptr inbounds double, ptr %214, i64 %215
  %217 = load double, ptr %216, align 8, !tbaa !20
  %218 = load ptr, ptr %11, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %218, i32 0, i32 4
  %220 = load ptr, ptr %219, align 8, !tbaa !19
  %221 = load i64, ptr %14, align 8, !tbaa !9
  %222 = getelementptr inbounds double, ptr %220, i64 %221
  store double %217, ptr %222, align 8, !tbaa !20
  br label %223

223:                                              ; preds = %211
  %224 = load i64, ptr %14, align 8, !tbaa !9
  %225 = add nsw i64 %224, 1
  store i64 %225, ptr %14, align 8, !tbaa !9
  br label %206, !llvm.loop !29

226:                                              ; preds = %206
  %227 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %227, ptr %13, align 8, !tbaa !9
  br label %228

228:                                              ; preds = %341, %226
  %229 = load i64, ptr %13, align 8, !tbaa !9
  %230 = load i64, ptr %8, align 8, !tbaa !9
  %231 = sub nsw i64 %230, 1
  %232 = icmp sle i64 %229, %231
  br i1 %232, label %233, label %344

233:                                              ; preds = %228
  %234 = load ptr, ptr %11, align 8, !tbaa !5
  %235 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %234, i32 0, i32 4
  %236 = load ptr, ptr %235, align 8, !tbaa !19
  %237 = load i64, ptr %13, align 8, !tbaa !9
  %238 = getelementptr inbounds double, ptr %236, i64 %237
  %239 = load double, ptr %238, align 8, !tbaa !20
  store double %239, ptr %19, align 8, !tbaa !20
  %240 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %240, ptr %14, align 8, !tbaa !9
  br label %241

241:                                              ; preds = %297, %233
  %242 = load i64, ptr %14, align 8, !tbaa !9
  %243 = load i64, ptr %13, align 8, !tbaa !9
  %244 = sub nsw i64 %243, 1
  %245 = icmp sle i64 %242, %244
  br i1 %245, label %246, label %300

246:                                              ; preds = %241
  %247 = load ptr, ptr %11, align 8, !tbaa !5
  %248 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %247, i32 0, i32 4
  %249 = load ptr, ptr %248, align 8, !tbaa !19
  %250 = load i64, ptr %8, align 8, !tbaa !9
  %251 = load i64, ptr %14, align 8, !tbaa !9
  %252 = mul nsw i64 2, %251
  %253 = add nsw i64 %250, %252
  %254 = add nsw i64 %253, 0
  %255 = getelementptr inbounds double, ptr %249, i64 %254
  %256 = load double, ptr %255, align 8, !tbaa !20
  store double %256, ptr %16, align 8, !tbaa !20
  %257 = load ptr, ptr %11, align 8, !tbaa !5
  %258 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %257, i32 0, i32 4
  %259 = load ptr, ptr %258, align 8, !tbaa !19
  %260 = load i64, ptr %8, align 8, !tbaa !9
  %261 = load i64, ptr %14, align 8, !tbaa !9
  %262 = mul nsw i64 2, %261
  %263 = add nsw i64 %260, %262
  %264 = add nsw i64 %263, 1
  %265 = getelementptr inbounds double, ptr %259, i64 %264
  %266 = load double, ptr %265, align 8, !tbaa !20
  store double %266, ptr %17, align 8, !tbaa !20
  %267 = load ptr, ptr %7, align 8, !tbaa !5
  %268 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %267, i32 0, i32 6
  %269 = load ptr, ptr %268, align 8, !tbaa !19
  %270 = load i64, ptr %13, align 8, !tbaa !9
  %271 = getelementptr inbounds ptr, ptr %269, i64 %270
  %272 = load ptr, ptr %271, align 8, !tbaa !5
  %273 = load i64, ptr %14, align 8, !tbaa !9
  %274 = getelementptr inbounds double, ptr %272, i64 %273
  %275 = load double, ptr %274, align 8, !tbaa !20
  store double %275, ptr %18, align 8, !tbaa !20
  %276 = load double, ptr %16, align 8, !tbaa !20
  %277 = load double, ptr %18, align 8, !tbaa !20
  %278 = load double, ptr %17, align 8, !tbaa !20
  %279 = load double, ptr %19, align 8, !tbaa !20
  %280 = fmul double %278, %279
  %281 = call double @llvm.fmuladd.f64(double %276, double %277, double %280)
  %282 = load ptr, ptr %7, align 8, !tbaa !5
  %283 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %282, i32 0, i32 6
  %284 = load ptr, ptr %283, align 8, !tbaa !19
  %285 = load i64, ptr %13, align 8, !tbaa !9
  %286 = getelementptr inbounds ptr, ptr %284, i64 %285
  %287 = load ptr, ptr %286, align 8, !tbaa !5
  %288 = load i64, ptr %14, align 8, !tbaa !9
  %289 = getelementptr inbounds double, ptr %287, i64 %288
  store double %281, ptr %289, align 8, !tbaa !20
  %290 = load double, ptr %17, align 8, !tbaa !20
  %291 = fneg double %290
  %292 = load double, ptr %18, align 8, !tbaa !20
  %293 = load double, ptr %16, align 8, !tbaa !20
  %294 = load double, ptr %19, align 8, !tbaa !20
  %295 = fmul double %293, %294
  %296 = call double @llvm.fmuladd.f64(double %291, double %292, double %295)
  store double %296, ptr %19, align 8, !tbaa !20
  br label %297

297:                                              ; preds = %246
  %298 = load i64, ptr %14, align 8, !tbaa !9
  %299 = add nsw i64 %298, 1
  store i64 %299, ptr %14, align 8, !tbaa !9
  br label %241, !llvm.loop !30

300:                                              ; preds = %241
  %301 = load ptr, ptr %7, align 8, !tbaa !5
  %302 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %301, i32 0, i32 6
  %303 = load ptr, ptr %302, align 8, !tbaa !19
  %304 = load i64, ptr %13, align 8, !tbaa !9
  %305 = getelementptr inbounds ptr, ptr %303, i64 %304
  %306 = load ptr, ptr %305, align 8, !tbaa !5
  %307 = load i64, ptr %13, align 8, !tbaa !9
  %308 = getelementptr inbounds double, ptr %306, i64 %307
  %309 = load double, ptr %308, align 8, !tbaa !20
  %310 = load double, ptr %19, align 8, !tbaa !20
  %311 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl16generaterotationEddPdS0_S0_PNS_8ae_stateE(double noundef %309, double noundef %310, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %311)
  %312 = load double, ptr %18, align 8, !tbaa !20
  %313 = load ptr, ptr %7, align 8, !tbaa !5
  %314 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %313, i32 0, i32 6
  %315 = load ptr, ptr %314, align 8, !tbaa !19
  %316 = load i64, ptr %13, align 8, !tbaa !9
  %317 = getelementptr inbounds ptr, ptr %315, i64 %316
  %318 = load ptr, ptr %317, align 8, !tbaa !5
  %319 = load i64, ptr %13, align 8, !tbaa !9
  %320 = getelementptr inbounds double, ptr %318, i64 %319
  store double %312, ptr %320, align 8, !tbaa !20
  %321 = load double, ptr %16, align 8, !tbaa !20
  %322 = load ptr, ptr %11, align 8, !tbaa !5
  %323 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %322, i32 0, i32 4
  %324 = load ptr, ptr %323, align 8, !tbaa !19
  %325 = load i64, ptr %8, align 8, !tbaa !9
  %326 = load i64, ptr %13, align 8, !tbaa !9
  %327 = mul nsw i64 2, %326
  %328 = add nsw i64 %325, %327
  %329 = add nsw i64 %328, 0
  %330 = getelementptr inbounds double, ptr %324, i64 %329
  store double %321, ptr %330, align 8, !tbaa !20
  %331 = load double, ptr %17, align 8, !tbaa !20
  %332 = load ptr, ptr %11, align 8, !tbaa !5
  %333 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %332, i32 0, i32 4
  %334 = load ptr, ptr %333, align 8, !tbaa !19
  %335 = load i64, ptr %8, align 8, !tbaa !9
  %336 = load i64, ptr %13, align 8, !tbaa !9
  %337 = mul nsw i64 2, %336
  %338 = add nsw i64 %335, %337
  %339 = add nsw i64 %338, 1
  %340 = getelementptr inbounds double, ptr %334, i64 %339
  store double %331, ptr %340, align 8, !tbaa !20
  br label %341

341:                                              ; preds = %300
  %342 = load i64, ptr %13, align 8, !tbaa !9
  %343 = add nsw i64 %342, 1
  store i64 %343, ptr %13, align 8, !tbaa !9
  br label %228, !llvm.loop !31

344:                                              ; preds = %228
  br label %345

345:                                              ; preds = %344, %199
  store i32 0, ptr %20, align 4
  br label %346

346:                                              ; preds = %345, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  %347 = load i32, ptr %20, align 4
  switch i32 %347, label %349 [
    i32 0, label %348
    i32 1, label %348
  ]

348:                                              ; preds = %346, %346
  ret void

349:                                              ; preds = %346
  unreachable
}

declare void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

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

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

declare void @_ZN11alglib_impl16generaterotationEddPdS0_S0_PNS_8ae_stateE(double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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


; 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"

@.str.240 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.241 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.242 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.243 = external hidden unnamed_addr constant [44 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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl30spdmatrixcholeskyupdateadd1bufEPNS_9ae_matrixElbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr nocapture noundef readonly %0, i64 noundef %1, i1 noundef zeroext %2, ptr nocapture noundef readonly %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #2 {
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %10 = icmp sgt i64 %1, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.240, ptr noundef %5)
  %11 = load i64, ptr %0, align 8, !tbaa !5
  %12 = icmp sge i64 %11, %1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %12, ptr noundef nonnull @.str.241, ptr noundef %5)
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load i64, ptr %13, align 8, !tbaa !13
  %15 = icmp sge i64 %14, %1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.242, ptr noundef %5)
  %16 = load i64, ptr %3, align 8, !tbaa !14
  %17 = icmp sge i64 %16, %1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.243, ptr noundef %5)
  br i1 %10, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %6
  %18 = getelementptr inbounds i8, ptr %3, i64 56
  br label %19

19:                                               ; preds = %.lr.ph, %24
  %.0115134 = phi i64 [ 0, %.lr.ph ], [ %25, %24 ]
  %20 = load ptr, ptr %18, align 8, !tbaa !16
  %21 = getelementptr inbounds double, ptr %20, i64 %.0115134
  %22 = load double, ptr %21, align 8, !tbaa !17
  %23 = tail call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %22, double noundef 0.000000e+00)
  br i1 %23, label %26, label %24

24:                                               ; preds = %19
  %25 = add nuw nsw i64 %.0115134, 1
  %exitcond.not = icmp eq i64 %25, %1
  br i1 %exitcond.not, label %.thread, label %19, !llvm.loop !19

26:                                               ; preds = %19
  %27 = add nsw i64 %1, -1
  br i1 %2, label %28, label %81

28:                                               ; preds = %26
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %4, i64 noundef %1, ptr noundef %5)
  %.not.not124145 = icmp slt i64 %.0115134, %1
  br i1 %.not.not124145, label %.lr.ph148, label %.thread

.lr.ph148:                                        ; preds = %28
  %29 = getelementptr inbounds i8, ptr %4, i64 56
  br label %32

.preheader:                                       ; preds = %32
  br i1 %.not.not124145, label %.lr.ph156, label %.thread

.lr.ph156:                                        ; preds = %.preheader
  %30 = getelementptr inbounds i8, ptr %4, i64 56
  %31 = getelementptr inbounds i8, ptr %0, i64 72
  br label %39

32:                                               ; preds = %.lr.ph148, %32
  %.0114146 = phi i64 [ %.0115134, %.lr.ph148 ], [ %38, %32 ]
  %33 = load ptr, ptr %18, align 8, !tbaa !16
  %34 = getelementptr inbounds double, ptr %33, i64 %.0114146
  %35 = load double, ptr %34, align 8, !tbaa !17
  %36 = load ptr, ptr %29, align 8, !tbaa !16
  %37 = getelementptr inbounds double, ptr %36, i64 %.0114146
  store double %35, ptr %37, align 8, !tbaa !17
  %38 = add nuw nsw i64 %.0114146, 1
  %.not.not124 = icmp slt i64 %38, %1
  br i1 %.not.not124, label %32, label %.preheader, !llvm.loop !21

39:                                               ; preds = %.lr.ph156, %.loopexit
  %.1116154 = phi i64 [ %.0115134, %.lr.ph156 ], [ %80, %.loopexit ]
  %40 = load ptr, ptr %30, align 8, !tbaa !16
  %41 = getelementptr inbounds double, ptr %40, i64 %.1116154
  %42 = load double, ptr %41, align 8, !tbaa !17
  %43 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %42, double noundef 0.000000e+00)
  br i1 %43, label %44, label %.loopexit

44:                                               ; preds = %39
  %45 = load ptr, ptr %31, align 8, !tbaa !16
  %46 = getelementptr inbounds ptr, ptr %45, i64 %.1116154
  %47 = load ptr, ptr %46, align 8, !tbaa !22
  %48 = getelementptr inbounds double, ptr %47, i64 %.1116154
  %49 = load double, ptr %48, align 8, !tbaa !17
  %50 = load ptr, ptr %30, align 8, !tbaa !16
  %51 = getelementptr inbounds double, ptr %50, i64 %.1116154
  %52 = load double, ptr %51, align 8, !tbaa !17
  call void @_ZN11alglib_impl16generaterotationEddPdS0_S0_PNS_8ae_stateE(double noundef %49, double noundef %52, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %5)
  %53 = load double, ptr %9, align 8, !tbaa !17
  %54 = load ptr, ptr %31, align 8, !tbaa !16
  %55 = getelementptr inbounds ptr, ptr %54, i64 %.1116154
  %56 = load ptr, ptr %55, align 8, !tbaa !22
  %57 = getelementptr inbounds double, ptr %56, i64 %.1116154
  store double %53, ptr %57, align 8, !tbaa !17
  %58 = load ptr, ptr %30, align 8, !tbaa !16
  %59 = getelementptr inbounds double, ptr %58, i64 %.1116154
  store double 0.000000e+00, ptr %59, align 8, !tbaa !17
  %.not.not126149 = icmp slt i64 %.1116154, %27
  br i1 %.not.not126149, label %.lr.ph152, label %.loopexit

.lr.ph152:                                        ; preds = %44, %.lr.ph152
  %.1.in150 = phi i64 [ %.1, %.lr.ph152 ], [ %.1116154, %44 ]
  %.1 = add nuw nsw i64 %.1.in150, 1
  %60 = load ptr, ptr %31, align 8, !tbaa !16
  %61 = getelementptr inbounds ptr, ptr %60, i64 %.1116154
  %62 = load ptr, ptr %61, align 8, !tbaa !22
  %63 = getelementptr inbounds double, ptr %62, i64 %.1
  %64 = load double, ptr %63, align 8, !tbaa !17
  store double %64, ptr %9, align 8, !tbaa !17
  %65 = load ptr, ptr %30, align 8, !tbaa !16
  %66 = getelementptr inbounds double, ptr %65, i64 %.1
  %67 = load double, ptr %66, align 8, !tbaa !17
  %68 = load double, ptr %7, align 8, !tbaa !17
  %69 = load double, ptr %8, align 8, !tbaa !17
  %70 = fmul double %67, %69
  %71 = call double @llvm.fmuladd.f64(double %68, double %64, double %70)
  store double %71, ptr %63, align 8, !tbaa !17
  %72 = load double, ptr %8, align 8, !tbaa !17
  %73 = fneg double %72
  %74 = load double, ptr %9, align 8, !tbaa !17
  %75 = load double, ptr %7, align 8, !tbaa !17
  %76 = fmul double %67, %75
  %77 = call double @llvm.fmuladd.f64(double %73, double %74, double %76)
  %78 = load ptr, ptr %30, align 8, !tbaa !16
  %79 = getelementptr inbounds double, ptr %78, i64 %.1
  store double %77, ptr %79, align 8, !tbaa !17
  %.not.not126 = icmp slt i64 %.1, %27
  br i1 %.not.not126, label %.lr.ph152, label %.loopexit, !llvm.loop !23

.loopexit:                                        ; preds = %.lr.ph152, %44, %39
  %80 = add nuw nsw i64 %.1116154, 1
  %.not.not125 = icmp slt i64 %80, %1
  br i1 %.not.not125, label %39, label %.thread, !llvm.loop !24

81:                                               ; preds = %26
  %82 = mul nuw nsw i64 %1, 3
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %4, i64 noundef %82, ptr noundef %5)
  %.not.not121135 = icmp slt i64 %.0115134, %1
  br i1 %.not.not121135, label %.lr.ph137, label %.thread

.lr.ph137:                                        ; preds = %81
  %83 = getelementptr inbounds i8, ptr %4, i64 56
  br label %86

.preheader128:                                    ; preds = %86
  br i1 %.not.not121135, label %.lr.ph144, label %.thread

.lr.ph144:                                        ; preds = %.preheader128
  %84 = getelementptr inbounds i8, ptr %4, i64 56
  %85 = getelementptr inbounds i8, ptr %0, i64 72
  br label %93

86:                                               ; preds = %.lr.ph137, %86
  %.2136 = phi i64 [ %.0115134, %.lr.ph137 ], [ %92, %86 ]
  %87 = load ptr, ptr %18, align 8, !tbaa !16
  %88 = getelementptr inbounds double, ptr %87, i64 %.2136
  %89 = load double, ptr %88, align 8, !tbaa !17
  %90 = load ptr, ptr %83, align 8, !tbaa !16
  %91 = getelementptr inbounds double, ptr %90, i64 %.2136
  store double %89, ptr %91, align 8, !tbaa !17
  %92 = add nuw nsw i64 %.2136, 1
  %.not.not121 = icmp slt i64 %92, %1
  br i1 %.not.not121, label %86, label %.preheader128, !llvm.loop !25

93:                                               ; preds = %.lr.ph144, %._crit_edge
  %.2117143 = phi i64 [ %.0115134, %.lr.ph144 ], [ %136, %._crit_edge ]
  %94 = load ptr, ptr %84, align 8, !tbaa !16
  %95 = getelementptr inbounds double, ptr %94, i64 %.2117143
  %96 = load double, ptr %95, align 8, !tbaa !17
  %.not.not123138 = icmp ult i64 %.0115134, %.2117143
  br i1 %.not.not123138, label %.lr.ph141, label %._crit_edge

.lr.ph141:                                        ; preds = %93, %.lr.ph141
  %.0140 = phi double [ %115, %.lr.ph141 ], [ %96, %93 ]
  %.3139 = phi i64 [ %116, %.lr.ph141 ], [ %.0115134, %93 ]
  %97 = load ptr, ptr %84, align 8, !tbaa !16
  %.idx = shl i64 %.3139, 4
  %98 = getelementptr i8, ptr %97, i64 %.idx
  %99 = getelementptr double, ptr %98, i64 %1
  %100 = load double, ptr %99, align 8, !tbaa !17
  store double %100, ptr %7, align 8, !tbaa !17
  %101 = getelementptr i8, ptr %99, i64 8
  %102 = load double, ptr %101, align 8, !tbaa !17
  store double %102, ptr %8, align 8, !tbaa !17
  %103 = load ptr, ptr %85, align 8, !tbaa !16
  %104 = getelementptr inbounds ptr, ptr %103, i64 %.2117143
  %105 = load ptr, ptr %104, align 8, !tbaa !22
  %106 = getelementptr inbounds double, ptr %105, i64 %.3139
  %107 = load double, ptr %106, align 8, !tbaa !17
  store double %107, ptr %9, align 8, !tbaa !17
  %108 = fmul double %.0140, %102
  %109 = call double @llvm.fmuladd.f64(double %100, double %107, double %108)
  store double %109, ptr %106, align 8, !tbaa !17
  %110 = load double, ptr %8, align 8, !tbaa !17
  %111 = fneg double %110
  %112 = load double, ptr %9, align 8, !tbaa !17
  %113 = load double, ptr %7, align 8, !tbaa !17
  %114 = fmul double %.0140, %113
  %115 = call double @llvm.fmuladd.f64(double %111, double %112, double %114)
  %116 = add nuw nsw i64 %.3139, 1
  %exitcond160.not = icmp eq i64 %116, %.2117143
  br i1 %exitcond160.not, label %._crit_edge, label %.lr.ph141, !llvm.loop !26

._crit_edge:                                      ; preds = %.lr.ph141, %93
  %.0.lcssa = phi double [ %96, %93 ], [ %115, %.lr.ph141 ]
  %117 = load ptr, ptr %85, align 8, !tbaa !16
  %118 = getelementptr inbounds ptr, ptr %117, i64 %.2117143
  %119 = load ptr, ptr %118, align 8, !tbaa !22
  %120 = getelementptr inbounds double, ptr %119, i64 %.2117143
  %121 = load double, ptr %120, align 8, !tbaa !17
  call void @_ZN11alglib_impl16generaterotationEddPdS0_S0_PNS_8ae_stateE(double noundef %121, double noundef %.0.lcssa, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %5)
  %122 = load double, ptr %9, align 8, !tbaa !17
  %123 = load ptr, ptr %85, align 8, !tbaa !16
  %124 = getelementptr inbounds ptr, ptr %123, i64 %.2117143
  %125 = load ptr, ptr %124, align 8, !tbaa !22
  %126 = getelementptr inbounds double, ptr %125, i64 %.2117143
  store double %122, ptr %126, align 8, !tbaa !17
  %127 = load double, ptr %7, align 8, !tbaa !17
  %128 = load ptr, ptr %84, align 8, !tbaa !16
  %129 = shl nuw nsw i64 %.2117143, 1
  %130 = add nuw nsw i64 %129, %1
  %131 = getelementptr inbounds double, ptr %128, i64 %130
  store double %127, ptr %131, align 8, !tbaa !17
  %132 = load double, ptr %8, align 8, !tbaa !17
  %133 = load ptr, ptr %84, align 8, !tbaa !16
  %134 = getelementptr double, ptr %133, i64 %130
  %135 = getelementptr i8, ptr %134, i64 8
  store double %132, ptr %135, align 8, !tbaa !17
  %136 = add nuw nsw i64 %.2117143, 1
  %.not.not122 = icmp slt i64 %136, %1
  br i1 %.not.not122, label %93, label %.thread, !llvm.loop !27

.thread:                                          ; preds = %24, %._crit_edge, %.loopexit, %81, %28, %6, %.preheader128, %.preheader
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  ret void
}

declare void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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

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

declare void @_ZN11alglib_impl16generaterotationEddPdS0_S0_PNS_8ae_stateE(double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!15, !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!16 = !{!8, !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!12, !12, i64 0}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}


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