; LLVM IR from Dimandragon/non-parametric-dsp :: 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.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

@.str.413 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.414 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.415 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.416 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.417 = external hidden unnamed_addr constant [63 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_matrixElbPKNS_9ae_vectorEPS2_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.413, 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.414, 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.415, 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.416, ptr noundef %42)
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = load i64, ptr %8, align 8, !tbaa !9
  %45 = load i8, ptr %9, align 1, !tbaa !11, !range !19, !noundef !20
  %46 = trunc i8 %45 to i1
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = call noundef zeroext i1 @_ZN11alglib_impl17isfinitertrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %43, i64 noundef %44, i1 noundef zeroext %46, ptr noundef %47)
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.417, ptr noundef %49)
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = load i64, ptr %8, align 8, !tbaa !9
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %50, i64 noundef %51, ptr noundef %52)
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %53, ptr noundef @.str.417, ptr noundef %54)
  %55 = load i64, ptr %8, align 8, !tbaa !9
  store i64 %55, ptr %15, align 8, !tbaa !9
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %72, %6
  %57 = load i64, ptr %13, align 8, !tbaa !9
  %58 = load i64, ptr %8, align 8, !tbaa !9
  %59 = sub nsw i64 %58, 1
  %60 = icmp sle i64 %57, %59
  br i1 %60, label %61, label %75

61:                                               ; preds = %56
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %62, i32 0, i32 4
  %64 = load ptr, ptr %63, align 8, !tbaa !21
  %65 = load i64, ptr %13, align 8, !tbaa !9
  %66 = getelementptr inbounds double, ptr %64, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !22
  %68 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %67, double noundef 0.000000e+00)
  br i1 %68, label %69, label %71

69:                                               ; preds = %61
  %70 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %70, ptr %15, align 8, !tbaa !9
  br label %75

71:                                               ; preds = %61
  br label %72

72:                                               ; preds = %71
  %73 = load i64, ptr %13, align 8, !tbaa !9
  %74 = add nsw i64 %73, 1
  store i64 %74, ptr %13, align 8, !tbaa !9
  br label %56, !llvm.loop !24

75:                                               ; preds = %69, %56
  %76 = load i64, ptr %15, align 8, !tbaa !9
  %77 = load i64, ptr %8, align 8, !tbaa !9
  %78 = icmp eq i64 %76, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %75
  store i32 1, ptr %20, align 4
  br label %358

80:                                               ; preds = %75
  %81 = load i8, ptr %9, align 1, !tbaa !11, !range !19, !noundef !20
  %82 = trunc i8 %81 to i1
  br i1 %82, label %83, label %212

83:                                               ; preds = %80
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = load i64, ptr %8, align 8, !tbaa !9
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %84, i64 noundef %85, ptr noundef %86)
  %87 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %87, ptr %14, align 8, !tbaa !9
  br label %88

88:                                               ; preds = %105, %83
  %89 = load i64, ptr %14, align 8, !tbaa !9
  %90 = load i64, ptr %8, align 8, !tbaa !9
  %91 = sub nsw i64 %90, 1
  %92 = icmp sle i64 %89, %91
  br i1 %92, label %93, label %108

93:                                               ; preds = %88
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !21
  %97 = load i64, ptr %14, align 8, !tbaa !9
  %98 = getelementptr inbounds double, ptr %96, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !22
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %100, i32 0, i32 4
  %102 = load ptr, ptr %101, align 8, !tbaa !21
  %103 = load i64, ptr %14, align 8, !tbaa !9
  %104 = getelementptr inbounds double, ptr %102, i64 %103
  store double %99, ptr %104, align 8, !tbaa !22
  br label %105

105:                                              ; preds = %93
  %106 = load i64, ptr %14, align 8, !tbaa !9
  %107 = add nsw i64 %106, 1
  store i64 %107, ptr %14, align 8, !tbaa !9
  br label %88, !llvm.loop !26

108:                                              ; preds = %88
  %109 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %109, ptr %13, align 8, !tbaa !9
  br label %110

110:                                              ; preds = %208, %108
  %111 = load i64, ptr %13, align 8, !tbaa !9
  %112 = load i64, ptr %8, align 8, !tbaa !9
  %113 = sub nsw i64 %112, 1
  %114 = icmp sle i64 %111, %113
  br i1 %114, label %115, label %211

115:                                              ; preds = %110
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !21
  %119 = load i64, ptr %13, align 8, !tbaa !9
  %120 = getelementptr inbounds double, ptr %118, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !22
  %122 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %121, double noundef 0.000000e+00)
  br i1 %122, label %123, label %207

123:                                              ; preds = %115
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %124, i32 0, i32 6
  %126 = load ptr, ptr %125, align 8, !tbaa !21
  %127 = load i64, ptr %13, align 8, !tbaa !9
  %128 = getelementptr inbounds ptr, ptr %126, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %130 = load i64, ptr %13, align 8, !tbaa !9
  %131 = getelementptr inbounds double, ptr %129, i64 %130
  %132 = load double, ptr %131, align 8, !tbaa !22
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %133, i32 0, i32 4
  %135 = load ptr, ptr %134, align 8, !tbaa !21
  %136 = load i64, ptr %13, align 8, !tbaa !9
  %137 = getelementptr inbounds double, ptr %135, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !22
  %139 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl16generaterotationEddPdS0_S0_PNS_8ae_stateE(double noundef %132, double noundef %138, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %139)
  %140 = load double, ptr %18, align 8, !tbaa !22
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %141, i32 0, i32 6
  %143 = load ptr, ptr %142, align 8, !tbaa !21
  %144 = load i64, ptr %13, align 8, !tbaa !9
  %145 = getelementptr inbounds ptr, ptr %143, i64 %144
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = load i64, ptr %13, align 8, !tbaa !9
  %148 = getelementptr inbounds double, ptr %146, i64 %147
  store double %140, ptr %148, align 8, !tbaa !22
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %149, i32 0, i32 4
  %151 = load ptr, ptr %150, align 8, !tbaa !21
  %152 = load i64, ptr %13, align 8, !tbaa !9
  %153 = getelementptr inbounds double, ptr %151, i64 %152
  store double 0.000000e+00, ptr %153, align 8, !tbaa !22
  %154 = load i64, ptr %13, align 8, !tbaa !9
  %155 = add nsw i64 %154, 1
  store i64 %155, ptr %14, align 8, !tbaa !9
  br label %156

156:                                              ; preds = %203, %123
  %157 = load i64, ptr %14, align 8, !tbaa !9
  %158 = load i64, ptr %8, align 8, !tbaa !9
  %159 = sub nsw i64 %158, 1
  %160 = icmp sle i64 %157, %159
  br i1 %160, label %161, label %206

161:                                              ; preds = %156
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %162, i32 0, i32 6
  %164 = load ptr, ptr %163, align 8, !tbaa !21
  %165 = load i64, ptr %13, align 8, !tbaa !9
  %166 = getelementptr inbounds ptr, ptr %164, i64 %165
  %167 = load ptr, ptr %166, align 8, !tbaa !5
  %168 = load i64, ptr %14, align 8, !tbaa !9
  %169 = getelementptr inbounds double, ptr %167, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !22
  store double %170, ptr %18, align 8, !tbaa !22
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %171, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !21
  %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 !22
  store double %176, ptr %19, align 8, !tbaa !22
  %177 = load double, ptr %16, align 8, !tbaa !22
  %178 = load double, ptr %18, align 8, !tbaa !22
  %179 = load double, ptr %17, align 8, !tbaa !22
  %180 = load double, ptr %19, align 8, !tbaa !22
  %181 = fmul double %179, %180
  %182 = call double @llvm.fmuladd.f64(double %177, double %178, double %181)
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %183, i32 0, i32 6
  %185 = load ptr, ptr %184, align 8, !tbaa !21
  %186 = load i64, ptr %13, align 8, !tbaa !9
  %187 = getelementptr inbounds ptr, ptr %185, i64 %186
  %188 = load ptr, ptr %187, align 8, !tbaa !5
  %189 = load i64, ptr %14, align 8, !tbaa !9
  %190 = getelementptr inbounds double, ptr %188, i64 %189
  store double %182, ptr %190, align 8, !tbaa !22
  %191 = load double, ptr %17, align 8, !tbaa !22
  %192 = fneg double %191
  %193 = load double, ptr %18, align 8, !tbaa !22
  %194 = load double, ptr %16, align 8, !tbaa !22
  %195 = load double, ptr %19, align 8, !tbaa !22
  %196 = fmul double %194, %195
  %197 = call double @llvm.fmuladd.f64(double %192, double %193, double %196)
  %198 = load ptr, ptr %11, align 8, !tbaa !5
  %199 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %198, i32 0, i32 4
  %200 = load ptr, ptr %199, align 8, !tbaa !21
  %201 = load i64, ptr %14, align 8, !tbaa !9
  %202 = getelementptr inbounds double, ptr %200, i64 %201
  store double %197, ptr %202, align 8, !tbaa !22
  br label %203

203:                                              ; preds = %161
  %204 = load i64, ptr %14, align 8, !tbaa !9
  %205 = add nsw i64 %204, 1
  store i64 %205, ptr %14, align 8, !tbaa !9
  br label %156, !llvm.loop !27

206:                                              ; preds = %156
  br label %207

207:                                              ; preds = %206, %115
  br label %208

208:                                              ; preds = %207
  %209 = load i64, ptr %13, align 8, !tbaa !9
  %210 = add nsw i64 %209, 1
  store i64 %210, ptr %13, align 8, !tbaa !9
  br label %110, !llvm.loop !28

211:                                              ; preds = %110
  br label %357

212:                                              ; preds = %80
  %213 = load ptr, ptr %11, align 8, !tbaa !5
  %214 = load i64, ptr %8, align 8, !tbaa !9
  %215 = mul nsw i64 3, %214
  %216 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %213, i64 noundef %215, ptr noundef %216)
  %217 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %217, ptr %14, align 8, !tbaa !9
  br label %218

218:                                              ; preds = %235, %212
  %219 = load i64, ptr %14, align 8, !tbaa !9
  %220 = load i64, ptr %8, align 8, !tbaa !9
  %221 = sub nsw i64 %220, 1
  %222 = icmp sle i64 %219, %221
  br i1 %222, label %223, label %238

223:                                              ; preds = %218
  %224 = load ptr, ptr %10, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %224, i32 0, i32 4
  %226 = load ptr, ptr %225, align 8, !tbaa !21
  %227 = load i64, ptr %14, align 8, !tbaa !9
  %228 = getelementptr inbounds double, ptr %226, i64 %227
  %229 = load double, ptr %228, align 8, !tbaa !22
  %230 = load ptr, ptr %11, align 8, !tbaa !5
  %231 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %230, i32 0, i32 4
  %232 = load ptr, ptr %231, align 8, !tbaa !21
  %233 = load i64, ptr %14, align 8, !tbaa !9
  %234 = getelementptr inbounds double, ptr %232, i64 %233
  store double %229, ptr %234, align 8, !tbaa !22
  br label %235

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

238:                                              ; preds = %218
  %239 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %239, ptr %13, align 8, !tbaa !9
  br label %240

240:                                              ; preds = %353, %238
  %241 = load i64, ptr %13, align 8, !tbaa !9
  %242 = load i64, ptr %8, align 8, !tbaa !9
  %243 = sub nsw i64 %242, 1
  %244 = icmp sle i64 %241, %243
  br i1 %244, label %245, label %356

245:                                              ; preds = %240
  %246 = load ptr, ptr %11, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %246, i32 0, i32 4
  %248 = load ptr, ptr %247, align 8, !tbaa !21
  %249 = load i64, ptr %13, align 8, !tbaa !9
  %250 = getelementptr inbounds double, ptr %248, i64 %249
  %251 = load double, ptr %250, align 8, !tbaa !22
  store double %251, ptr %19, align 8, !tbaa !22
  %252 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %252, ptr %14, align 8, !tbaa !9
  br label %253

253:                                              ; preds = %309, %245
  %254 = load i64, ptr %14, align 8, !tbaa !9
  %255 = load i64, ptr %13, align 8, !tbaa !9
  %256 = sub nsw i64 %255, 1
  %257 = icmp sle i64 %254, %256
  br i1 %257, label %258, label %312

258:                                              ; preds = %253
  %259 = load ptr, ptr %11, align 8, !tbaa !5
  %260 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %259, i32 0, i32 4
  %261 = load ptr, ptr %260, align 8, !tbaa !21
  %262 = load i64, ptr %8, align 8, !tbaa !9
  %263 = load i64, ptr %14, align 8, !tbaa !9
  %264 = mul nsw i64 2, %263
  %265 = add nsw i64 %262, %264
  %266 = add nsw i64 %265, 0
  %267 = getelementptr inbounds double, ptr %261, i64 %266
  %268 = load double, ptr %267, align 8, !tbaa !22
  store double %268, ptr %16, align 8, !tbaa !22
  %269 = load ptr, ptr %11, align 8, !tbaa !5
  %270 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %269, i32 0, i32 4
  %271 = load ptr, ptr %270, align 8, !tbaa !21
  %272 = load i64, ptr %8, align 8, !tbaa !9
  %273 = load i64, ptr %14, align 8, !tbaa !9
  %274 = mul nsw i64 2, %273
  %275 = add nsw i64 %272, %274
  %276 = add nsw i64 %275, 1
  %277 = getelementptr inbounds double, ptr %271, i64 %276
  %278 = load double, ptr %277, align 8, !tbaa !22
  store double %278, ptr %17, align 8, !tbaa !22
  %279 = load ptr, ptr %7, align 8, !tbaa !5
  %280 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %279, i32 0, i32 6
  %281 = load ptr, ptr %280, align 8, !tbaa !21
  %282 = load i64, ptr %13, align 8, !tbaa !9
  %283 = getelementptr inbounds ptr, ptr %281, i64 %282
  %284 = load ptr, ptr %283, align 8, !tbaa !5
  %285 = load i64, ptr %14, align 8, !tbaa !9
  %286 = getelementptr inbounds double, ptr %284, i64 %285
  %287 = load double, ptr %286, align 8, !tbaa !22
  store double %287, ptr %18, align 8, !tbaa !22
  %288 = load double, ptr %16, align 8, !tbaa !22
  %289 = load double, ptr %18, align 8, !tbaa !22
  %290 = load double, ptr %17, align 8, !tbaa !22
  %291 = load double, ptr %19, align 8, !tbaa !22
  %292 = fmul double %290, %291
  %293 = call double @llvm.fmuladd.f64(double %288, double %289, double %292)
  %294 = load ptr, ptr %7, align 8, !tbaa !5
  %295 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %294, i32 0, i32 6
  %296 = load ptr, ptr %295, align 8, !tbaa !21
  %297 = load i64, ptr %13, align 8, !tbaa !9
  %298 = getelementptr inbounds ptr, ptr %296, i64 %297
  %299 = load ptr, ptr %298, align 8, !tbaa !5
  %300 = load i64, ptr %14, align 8, !tbaa !9
  %301 = getelementptr inbounds double, ptr %299, i64 %300
  store double %293, ptr %301, align 8, !tbaa !22
  %302 = load double, ptr %17, align 8, !tbaa !22
  %303 = fneg double %302
  %304 = load double, ptr %18, align 8, !tbaa !22
  %305 = load double, ptr %16, align 8, !tbaa !22
  %306 = load double, ptr %19, align 8, !tbaa !22
  %307 = fmul double %305, %306
  %308 = call double @llvm.fmuladd.f64(double %303, double %304, double %307)
  store double %308, ptr %19, align 8, !tbaa !22
  br label %309

309:                                              ; preds = %258
  %310 = load i64, ptr %14, align 8, !tbaa !9
  %311 = add nsw i64 %310, 1
  store i64 %311, ptr %14, align 8, !tbaa !9
  br label %253, !llvm.loop !30

312:                                              ; preds = %253
  %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 !21
  %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
  %321 = load double, ptr %320, align 8, !tbaa !22
  %322 = load double, ptr %19, align 8, !tbaa !22
  %323 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl16generaterotationEddPdS0_S0_PNS_8ae_stateE(double noundef %321, double noundef %322, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %323)
  %324 = load double, ptr %18, align 8, !tbaa !22
  %325 = load ptr, ptr %7, align 8, !tbaa !5
  %326 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %325, i32 0, i32 6
  %327 = load ptr, ptr %326, align 8, !tbaa !21
  %328 = load i64, ptr %13, align 8, !tbaa !9
  %329 = getelementptr inbounds ptr, ptr %327, i64 %328
  %330 = load ptr, ptr %329, align 8, !tbaa !5
  %331 = load i64, ptr %13, align 8, !tbaa !9
  %332 = getelementptr inbounds double, ptr %330, i64 %331
  store double %324, ptr %332, align 8, !tbaa !22
  %333 = load double, ptr %16, align 8, !tbaa !22
  %334 = load ptr, ptr %11, align 8, !tbaa !5
  %335 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %334, i32 0, i32 4
  %336 = load ptr, ptr %335, align 8, !tbaa !21
  %337 = load i64, ptr %8, align 8, !tbaa !9
  %338 = load i64, ptr %13, align 8, !tbaa !9
  %339 = mul nsw i64 2, %338
  %340 = add nsw i64 %337, %339
  %341 = add nsw i64 %340, 0
  %342 = getelementptr inbounds double, ptr %336, i64 %341
  store double %333, ptr %342, align 8, !tbaa !22
  %343 = load double, ptr %17, align 8, !tbaa !22
  %344 = load ptr, ptr %11, align 8, !tbaa !5
  %345 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %344, i32 0, i32 4
  %346 = load ptr, ptr %345, align 8, !tbaa !21
  %347 = load i64, ptr %8, align 8, !tbaa !9
  %348 = load i64, ptr %13, align 8, !tbaa !9
  %349 = mul nsw i64 2, %348
  %350 = add nsw i64 %347, %349
  %351 = add nsw i64 %350, 1
  %352 = getelementptr inbounds double, ptr %346, i64 %351
  store double %343, ptr %352, align 8, !tbaa !22
  br label %353

353:                                              ; preds = %312
  %354 = load i64, ptr %13, align 8, !tbaa !9
  %355 = add nsw i64 %354, 1
  store i64 %355, ptr %13, align 8, !tbaa !9
  br label %240, !llvm.loop !31

356:                                              ; preds = %240
  br label %357

357:                                              ; preds = %356, %211
  store i32 0, ptr %20, align 4
  br label %358

358:                                              ; preds = %357, %79
  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
  %359 = load i32, ptr %20, align 4
  switch i32 %359, label %361 [
    i32 0, label %360
    i32 1, label %360
  ]

360:                                              ; preds = %358, %358
  ret void

361:                                              ; preds = %358
  unreachable
}

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl17isfinitertrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) #1

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 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !25}
!30 = distinct !{!30, !25}
!31 = distinct !{!31, !25}


; 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.413 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.414 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.415 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.416 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.417 = external hidden unnamed_addr constant [63 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_matrixElbPKNS_9ae_vectorEPS2_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %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.413, 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.414, 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.415, 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.416, ptr noundef %5)
  %18 = tail call noundef zeroext i1 @_ZN11alglib_impl17isfinitertrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %5)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.417, ptr noundef %5)
  %19 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %1, ptr noundef %5)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.417, ptr noundef %5)
  br i1 %10, label %.lr.ph, label %.thread

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

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

26:                                               ; preds = %21
  %27 = add nuw nsw i64 %.0124143, 1
  %exitcond.not = icmp eq i64 %27, %1
  br i1 %exitcond.not, label %.thread, label %21, !llvm.loop !19

28:                                               ; preds = %21
  %29 = add nsw i64 %1, -1
  br i1 %2, label %30, label %83

30:                                               ; preds = %28
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %4, i64 noundef %1, ptr noundef %5)
  %.not.not133154 = icmp slt i64 %.0124143, %1
  br i1 %.not.not133154, label %.lr.ph157, label %.thread

.lr.ph157:                                        ; preds = %30
  %31 = getelementptr inbounds i8, ptr %4, i64 56
  br label %34

.preheader:                                       ; preds = %34
  br i1 %.not.not133154, label %.lr.ph165, label %.thread

.lr.ph165:                                        ; preds = %.preheader
  %32 = getelementptr inbounds i8, ptr %4, i64 56
  %33 = getelementptr inbounds i8, ptr %0, i64 72
  br label %41

34:                                               ; preds = %.lr.ph157, %34
  %.0123155 = phi i64 [ %.0124143, %.lr.ph157 ], [ %40, %34 ]
  %35 = load ptr, ptr %20, align 8, !tbaa !16
  %36 = getelementptr inbounds double, ptr %35, i64 %.0123155
  %37 = load double, ptr %36, align 8, !tbaa !17
  %38 = load ptr, ptr %31, align 8, !tbaa !16
  %39 = getelementptr inbounds double, ptr %38, i64 %.0123155
  store double %37, ptr %39, align 8, !tbaa !17
  %40 = add nuw nsw i64 %.0123155, 1
  %.not.not133 = icmp slt i64 %40, %1
  br i1 %.not.not133, label %34, label %.preheader, !llvm.loop !21

41:                                               ; preds = %.lr.ph165, %.loopexit
  %.1125163 = phi i64 [ %.0124143, %.lr.ph165 ], [ %82, %.loopexit ]
  %42 = load ptr, ptr %32, align 8, !tbaa !16
  %43 = getelementptr inbounds double, ptr %42, i64 %.1125163
  %44 = load double, ptr %43, align 8, !tbaa !17
  %45 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %44, double noundef 0.000000e+00)
  br i1 %45, label %46, label %.loopexit

46:                                               ; preds = %41
  %47 = load ptr, ptr %33, align 8, !tbaa !16
  %48 = getelementptr inbounds ptr, ptr %47, i64 %.1125163
  %49 = load ptr, ptr %48, align 8, !tbaa !22
  %50 = getelementptr inbounds double, ptr %49, i64 %.1125163
  %51 = load double, ptr %50, align 8, !tbaa !17
  %52 = load ptr, ptr %32, align 8, !tbaa !16
  %53 = getelementptr inbounds double, ptr %52, i64 %.1125163
  %54 = load double, ptr %53, align 8, !tbaa !17
  call void @_ZN11alglib_impl16generaterotationEddPdS0_S0_PNS_8ae_stateE(double noundef %51, double noundef %54, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %5)
  %55 = load double, ptr %9, align 8, !tbaa !17
  %56 = load ptr, ptr %33, align 8, !tbaa !16
  %57 = getelementptr inbounds ptr, ptr %56, i64 %.1125163
  %58 = load ptr, ptr %57, align 8, !tbaa !22
  %59 = getelementptr inbounds double, ptr %58, i64 %.1125163
  store double %55, ptr %59, align 8, !tbaa !17
  %60 = load ptr, ptr %32, align 8, !tbaa !16
  %61 = getelementptr inbounds double, ptr %60, i64 %.1125163
  store double 0.000000e+00, ptr %61, align 8, !tbaa !17
  %.not.not135158 = icmp slt i64 %.1125163, %29
  br i1 %.not.not135158, label %.lr.ph161, label %.loopexit

.lr.ph161:                                        ; preds = %46, %.lr.ph161
  %.1.in159 = phi i64 [ %.1, %.lr.ph161 ], [ %.1125163, %46 ]
  %.1 = add nuw nsw i64 %.1.in159, 1
  %62 = load ptr, ptr %33, align 8, !tbaa !16
  %63 = getelementptr inbounds ptr, ptr %62, i64 %.1125163
  %64 = load ptr, ptr %63, align 8, !tbaa !22
  %65 = getelementptr inbounds double, ptr %64, i64 %.1
  %66 = load double, ptr %65, align 8, !tbaa !17
  store double %66, ptr %9, align 8, !tbaa !17
  %67 = load ptr, ptr %32, align 8, !tbaa !16
  %68 = getelementptr inbounds double, ptr %67, i64 %.1
  %69 = load double, ptr %68, align 8, !tbaa !17
  %70 = load double, ptr %7, align 8, !tbaa !17
  %71 = load double, ptr %8, align 8, !tbaa !17
  %72 = fmul double %69, %71
  %73 = call double @llvm.fmuladd.f64(double %70, double %66, double %72)
  store double %73, ptr %65, align 8, !tbaa !17
  %74 = load double, ptr %8, align 8, !tbaa !17
  %75 = fneg double %74
  %76 = load double, ptr %9, align 8, !tbaa !17
  %77 = load double, ptr %7, align 8, !tbaa !17
  %78 = fmul double %69, %77
  %79 = call double @llvm.fmuladd.f64(double %75, double %76, double %78)
  %80 = load ptr, ptr %32, align 8, !tbaa !16
  %81 = getelementptr inbounds double, ptr %80, i64 %.1
  store double %79, ptr %81, align 8, !tbaa !17
  %.not.not135 = icmp slt i64 %.1, %29
  br i1 %.not.not135, label %.lr.ph161, label %.loopexit, !llvm.loop !23

.loopexit:                                        ; preds = %.lr.ph161, %46, %41
  %82 = add nuw nsw i64 %.1125163, 1
  %.not.not134 = icmp slt i64 %82, %1
  br i1 %.not.not134, label %41, label %.thread, !llvm.loop !24

83:                                               ; preds = %28
  %84 = mul nuw nsw i64 %1, 3
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %4, i64 noundef %84, ptr noundef %5)
  %.not.not130144 = icmp slt i64 %.0124143, %1
  br i1 %.not.not130144, label %.lr.ph146, label %.thread

.lr.ph146:                                        ; preds = %83
  %85 = getelementptr inbounds i8, ptr %4, i64 56
  br label %88

.preheader137:                                    ; preds = %88
  br i1 %.not.not130144, label %.lr.ph153, label %.thread

.lr.ph153:                                        ; preds = %.preheader137
  %86 = getelementptr inbounds i8, ptr %4, i64 56
  %87 = getelementptr inbounds i8, ptr %0, i64 72
  br label %95

88:                                               ; preds = %.lr.ph146, %88
  %.2145 = phi i64 [ %.0124143, %.lr.ph146 ], [ %94, %88 ]
  %89 = load ptr, ptr %20, align 8, !tbaa !16
  %90 = getelementptr inbounds double, ptr %89, i64 %.2145
  %91 = load double, ptr %90, align 8, !tbaa !17
  %92 = load ptr, ptr %85, align 8, !tbaa !16
  %93 = getelementptr inbounds double, ptr %92, i64 %.2145
  store double %91, ptr %93, align 8, !tbaa !17
  %94 = add nuw nsw i64 %.2145, 1
  %.not.not130 = icmp slt i64 %94, %1
  br i1 %.not.not130, label %88, label %.preheader137, !llvm.loop !25

95:                                               ; preds = %.lr.ph153, %._crit_edge
  %.2126152 = phi i64 [ %.0124143, %.lr.ph153 ], [ %138, %._crit_edge ]
  %96 = load ptr, ptr %86, align 8, !tbaa !16
  %97 = getelementptr inbounds double, ptr %96, i64 %.2126152
  %98 = load double, ptr %97, align 8, !tbaa !17
  %.not.not132147 = icmp ult i64 %.0124143, %.2126152
  br i1 %.not.not132147, label %.lr.ph150, label %._crit_edge

.lr.ph150:                                        ; preds = %95, %.lr.ph150
  %.0149 = phi double [ %117, %.lr.ph150 ], [ %98, %95 ]
  %.3148 = phi i64 [ %118, %.lr.ph150 ], [ %.0124143, %95 ]
  %99 = load ptr, ptr %86, align 8, !tbaa !16
  %.idx = shl i64 %.3148, 4
  %100 = getelementptr i8, ptr %99, i64 %.idx
  %101 = getelementptr double, ptr %100, i64 %1
  %102 = load double, ptr %101, align 8, !tbaa !17
  store double %102, ptr %7, align 8, !tbaa !17
  %103 = getelementptr i8, ptr %101, i64 8
  %104 = load double, ptr %103, align 8, !tbaa !17
  store double %104, ptr %8, align 8, !tbaa !17
  %105 = load ptr, ptr %87, align 8, !tbaa !16
  %106 = getelementptr inbounds ptr, ptr %105, i64 %.2126152
  %107 = load ptr, ptr %106, align 8, !tbaa !22
  %108 = getelementptr inbounds double, ptr %107, i64 %.3148
  %109 = load double, ptr %108, align 8, !tbaa !17
  store double %109, ptr %9, align 8, !tbaa !17
  %110 = fmul double %.0149, %104
  %111 = call double @llvm.fmuladd.f64(double %102, double %109, double %110)
  store double %111, ptr %108, align 8, !tbaa !17
  %112 = load double, ptr %8, align 8, !tbaa !17
  %113 = fneg double %112
  %114 = load double, ptr %9, align 8, !tbaa !17
  %115 = load double, ptr %7, align 8, !tbaa !17
  %116 = fmul double %.0149, %115
  %117 = call double @llvm.fmuladd.f64(double %113, double %114, double %116)
  %118 = add nuw nsw i64 %.3148, 1
  %exitcond169.not = icmp eq i64 %118, %.2126152
  br i1 %exitcond169.not, label %._crit_edge, label %.lr.ph150, !llvm.loop !26

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

.thread:                                          ; preds = %26, %._crit_edge, %.loopexit, %83, %30, %6, %.preheader137, %.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 noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr 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 noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl17isfinitertrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #1

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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass