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

; 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_vector" = type { 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::precbuflowrank" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"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 }

@.str.135 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [64 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

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl28preparelowrankpreconditionerEPNS_9ae_vectorES1_PNS_9ae_matrixEllPNS_14precbuflowrankEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca double, align 8
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i64 %3, ptr %11, align 8, !tbaa !9
  store i64 %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 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 1, ptr %18) #4
  %20 = load i64, ptr %11, align 8, !tbaa !9
  %21 = icmp sgt i64 %20, 0
  %22 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef @.str.135, ptr noundef %22)
  %23 = load i64, ptr %12, align 8, !tbaa !9
  %24 = icmp sge i64 %23, 0
  %25 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef @.str.135, ptr noundef %25)
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %26

26:                                               ; preds = %40, %7
  %27 = load i64, ptr %15, align 8, !tbaa !9
  %28 = load i64, ptr %11, align 8, !tbaa !9
  %29 = sub nsw i64 %28, 1
  %30 = icmp sle i64 %27, %29
  br i1 %30, label %31, label %43

31:                                               ; preds = %26
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = load i64, ptr %15, align 8, !tbaa !9
  %36 = getelementptr inbounds double, ptr %34, i64 %35
  %37 = load double, ptr %36, align 8, !tbaa !12
  %38 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %37, double noundef 0.000000e+00)
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef @.str.136, ptr noundef %39)
  br label %40

40:                                               ; preds = %31
  %41 = load i64, ptr %15, align 8, !tbaa !9
  %42 = add nsw i64 %41, 1
  store i64 %42, ptr %15, align 8, !tbaa !9
  br label %26, !llvm.loop !14

43:                                               ; preds = %26
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %44

44:                                               ; preds = %58, %43
  %45 = load i64, ptr %15, align 8, !tbaa !9
  %46 = load i64, ptr %12, align 8, !tbaa !9
  %47 = sub nsw i64 %46, 1
  %48 = icmp sle i64 %45, %47
  br i1 %48, label %49, label %61

49:                                               ; preds = %44
  %50 = load ptr, ptr %9, 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 !11
  %53 = load i64, ptr %15, align 8, !tbaa !9
  %54 = getelementptr inbounds double, ptr %52, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !12
  %56 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %55, double noundef 0.000000e+00)
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %56, ptr noundef @.str.137, ptr noundef %57)
  br label %58

58:                                               ; preds = %49
  %59 = load i64, ptr %15, align 8, !tbaa !9
  %60 = add nsw i64 %59, 1
  store i64 %60, ptr %15, align 8, !tbaa !9
  br label %44, !llvm.loop !16

61:                                               ; preds = %44
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %62, i32 0, i32 2
  %64 = load i64, ptr %11, align 8, !tbaa !9
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %63, i64 noundef %64, ptr noundef %65)
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %66, i32 0, i32 3
  %68 = load i64, ptr %12, align 8, !tbaa !9
  %69 = load i64, ptr %11, align 8, !tbaa !9
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %67, i64 noundef %68, i64 noundef %69, ptr noundef %70)
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %71, i32 0, i32 4
  %73 = load i64, ptr %12, align 8, !tbaa !9
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %72, i64 noundef %73, ptr noundef %74)
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %75, i32 0, i32 6
  %77 = load i64, ptr %12, align 8, !tbaa !9
  %78 = add nsw i64 %77, 1
  %79 = load i64, ptr %11, align 8, !tbaa !9
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %76, i64 noundef %78, i64 noundef %79, ptr noundef %80)
  %81 = load i64, ptr %11, align 8, !tbaa !9
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %82, i32 0, i32 0
  store i64 %81, ptr %83, align 8, !tbaa !17
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %84, i32 0, i32 1
  store i64 0, ptr %85, align 8, !tbaa !23
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %204, %61
  %87 = load i64, ptr %15, align 8, !tbaa !9
  %88 = load i64, ptr %12, align 8, !tbaa !9
  %89 = sub nsw i64 %88, 1
  %90 = icmp sle i64 %87, %89
  br i1 %90, label %91, label %207

91:                                               ; preds = %86
  store double 0.000000e+00, ptr %17, align 8, !tbaa !12
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %92

92:                                               ; preds = %118, %91
  %93 = load i64, ptr %16, align 8, !tbaa !9
  %94 = load i64, ptr %11, align 8, !tbaa !9
  %95 = sub nsw i64 %94, 1
  %96 = icmp sle i64 %93, %95
  br i1 %96, label %97, label %121

97:                                               ; preds = %92
  %98 = load double, ptr %17, align 8, !tbaa !12
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %99, i32 0, i32 6
  %101 = load ptr, ptr %100, align 8, !tbaa !11
  %102 = load i64, ptr %15, align 8, !tbaa !9
  %103 = getelementptr inbounds ptr, ptr %101, i64 %102
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = load i64, ptr %16, align 8, !tbaa !9
  %106 = getelementptr inbounds double, ptr %104, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !12
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %108, i32 0, i32 6
  %110 = load ptr, ptr %109, align 8, !tbaa !11
  %111 = load i64, ptr %15, align 8, !tbaa !9
  %112 = getelementptr inbounds ptr, ptr %110, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = load i64, ptr %16, align 8, !tbaa !9
  %115 = getelementptr inbounds double, ptr %113, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !12
  %117 = call double @llvm.fmuladd.f64(double %107, double %116, double %98)
  store double %117, ptr %17, align 8, !tbaa !12
  br label %118

118:                                              ; preds = %97
  %119 = load i64, ptr %16, align 8, !tbaa !9
  %120 = add nsw i64 %119, 1
  store i64 %120, ptr %16, align 8, !tbaa !9
  br label %92, !llvm.loop !24

121:                                              ; preds = %92
  %122 = load double, ptr %17, align 8, !tbaa !12
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %123, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !11
  %126 = load i64, ptr %15, align 8, !tbaa !9
  %127 = getelementptr inbounds double, ptr %125, i64 %126
  %128 = load double, ptr %127, align 8, !tbaa !12
  %129 = fmul double %122, %128
  store double %129, ptr %17, align 8, !tbaa !12
  %130 = load double, ptr %17, align 8, !tbaa !12
  %131 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %130, double noundef 0.000000e+00)
  br i1 %131, label %132, label %133

132:                                              ; preds = %121
  br label %204

133:                                              ; preds = %121
  %134 = load double, ptr %17, align 8, !tbaa !12
  %135 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %134, double noundef 0.000000e+00)
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %135, ptr noundef @.str.138, ptr noundef %136)
  %137 = load ptr, ptr %9, 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 !11
  %140 = load i64, ptr %15, align 8, !tbaa !9
  %141 = getelementptr inbounds double, ptr %139, i64 %140
  %142 = load double, ptr %141, align 8, !tbaa !12
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %143, i32 0, i32 4
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %144, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !11
  %147 = load ptr, ptr %13, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %147, i32 0, i32 1
  %149 = load i64, ptr %148, align 8, !tbaa !23
  %150 = getelementptr inbounds double, ptr %146, i64 %149
  store double %142, ptr %150, align 8, !tbaa !12
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %197, %133
  %152 = load i64, ptr %16, align 8, !tbaa !9
  %153 = load i64, ptr %11, align 8, !tbaa !9
  %154 = sub nsw i64 %153, 1
  %155 = icmp sle i64 %152, %154
  br i1 %155, label %156, label %200

156:                                              ; preds = %151
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %157, i32 0, i32 6
  %159 = load ptr, ptr %158, align 8, !tbaa !11
  %160 = load i64, ptr %15, align 8, !tbaa !9
  %161 = getelementptr inbounds ptr, ptr %159, i64 %160
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = load i64, ptr %16, align 8, !tbaa !9
  %164 = getelementptr inbounds double, ptr %162, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !12
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %166, i32 0, i32 3
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %167, i32 0, i32 6
  %169 = load ptr, ptr %168, align 8, !tbaa !11
  %170 = load ptr, ptr %13, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %170, i32 0, i32 1
  %172 = load i64, ptr %171, align 8, !tbaa !23
  %173 = getelementptr inbounds ptr, ptr %169, i64 %172
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = load i64, ptr %16, align 8, !tbaa !9
  %176 = getelementptr inbounds double, ptr %174, i64 %175
  store double %165, ptr %176, align 8, !tbaa !12
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %177, i32 0, i32 6
  %179 = load ptr, ptr %178, align 8, !tbaa !11
  %180 = load i64, ptr %15, align 8, !tbaa !9
  %181 = getelementptr inbounds ptr, ptr %179, i64 %180
  %182 = load ptr, ptr %181, align 8, !tbaa !5
  %183 = load i64, ptr %16, align 8, !tbaa !9
  %184 = getelementptr inbounds double, ptr %182, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !12
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %186, i32 0, i32 6
  %188 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %187, i32 0, i32 6
  %189 = load ptr, ptr %188, align 8, !tbaa !11
  %190 = load ptr, ptr %13, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %190, i32 0, i32 1
  %192 = load i64, ptr %191, align 8, !tbaa !23
  %193 = getelementptr inbounds ptr, ptr %189, i64 %192
  %194 = load ptr, ptr %193, align 8, !tbaa !5
  %195 = load i64, ptr %16, align 8, !tbaa !9
  %196 = getelementptr inbounds double, ptr %194, i64 %195
  store double %185, ptr %196, align 8, !tbaa !12
  br label %197

197:                                              ; preds = %156
  %198 = load i64, ptr %16, align 8, !tbaa !9
  %199 = add nsw i64 %198, 1
  store i64 %199, ptr %16, align 8, !tbaa !9
  br label %151, !llvm.loop !25

200:                                              ; preds = %151
  %201 = load ptr, ptr %13, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %201, i32 0, i32 1
  %203 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef %202, ptr noundef %203)
  br label %204

204:                                              ; preds = %200, %132
  %205 = load i64, ptr %15, align 8, !tbaa !9
  %206 = add nsw i64 %205, 1
  store i64 %206, ptr %15, align 8, !tbaa !9
  br label %86, !llvm.loop !26

207:                                              ; preds = %86
  %208 = load ptr, ptr %13, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %208, i32 0, i32 1
  %210 = load i64, ptr %209, align 8, !tbaa !23
  store i64 %210, ptr %12, align 8, !tbaa !9
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %211

211:                                              ; preds = %230, %207
  %212 = load i64, ptr %15, align 8, !tbaa !9
  %213 = load i64, ptr %11, align 8, !tbaa !9
  %214 = sub nsw i64 %213, 1
  %215 = icmp sle i64 %212, %214
  br i1 %215, label %216, label %233

216:                                              ; preds = %211
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %217, i32 0, i32 4
  %219 = load ptr, ptr %218, align 8, !tbaa !11
  %220 = load i64, ptr %15, align 8, !tbaa !9
  %221 = getelementptr inbounds double, ptr %219, i64 %220
  %222 = load double, ptr %221, align 8, !tbaa !12
  %223 = fdiv double 1.000000e+00, %222
  %224 = load ptr, ptr %13, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %224, i32 0, i32 2
  %226 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %225, i32 0, i32 4
  %227 = load ptr, ptr %226, align 8, !tbaa !11
  %228 = load i64, ptr %15, align 8, !tbaa !9
  %229 = getelementptr inbounds double, ptr %227, i64 %228
  store double %223, ptr %229, align 8, !tbaa !12
  br label %230

230:                                              ; preds = %216
  %231 = load i64, ptr %15, align 8, !tbaa !9
  %232 = add nsw i64 %231, 1
  store i64 %232, ptr %15, align 8, !tbaa !9
  br label %211, !llvm.loop !27

233:                                              ; preds = %211
  %234 = load i64, ptr %12, align 8, !tbaa !9
  %235 = icmp eq i64 %234, 0
  br i1 %235, label %236, label %237

236:                                              ; preds = %233
  store i32 1, ptr %19, align 4
  br label %452

237:                                              ; preds = %233
  %238 = load ptr, ptr %13, align 8, !tbaa !5
  %239 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %238, i32 0, i32 5
  %240 = load i64, ptr %12, align 8, !tbaa !9
  %241 = load i64, ptr %12, align 8, !tbaa !9
  %242 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %239, i64 noundef %240, i64 noundef %241, ptr noundef %242)
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %243

243:                                              ; preds = %268, %237
  %244 = load i64, ptr %15, align 8, !tbaa !9
  %245 = load i64, ptr %12, align 8, !tbaa !9
  %246 = sub nsw i64 %245, 1
  %247 = icmp sle i64 %244, %246
  br i1 %247, label %248, label %271

248:                                              ; preds = %243
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %249

249:                                              ; preds = %264, %248
  %250 = load i64, ptr %16, align 8, !tbaa !9
  %251 = load i64, ptr %12, align 8, !tbaa !9
  %252 = sub nsw i64 %251, 1
  %253 = icmp sle i64 %250, %252
  br i1 %253, label %254, label %267

254:                                              ; preds = %249
  %255 = load ptr, ptr %13, align 8, !tbaa !5
  %256 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %255, i32 0, i32 5
  %257 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %256, i32 0, i32 6
  %258 = load ptr, ptr %257, align 8, !tbaa !11
  %259 = load i64, ptr %15, align 8, !tbaa !9
  %260 = getelementptr inbounds ptr, ptr %258, i64 %259
  %261 = load ptr, ptr %260, align 8, !tbaa !5
  %262 = load i64, ptr %16, align 8, !tbaa !9
  %263 = getelementptr inbounds double, ptr %261, i64 %262
  store double 0.000000e+00, ptr %263, align 8, !tbaa !12
  br label %264

264:                                              ; preds = %254
  %265 = load i64, ptr %16, align 8, !tbaa !9
  %266 = add nsw i64 %265, 1
  store i64 %266, ptr %16, align 8, !tbaa !9
  br label %249, !llvm.loop !28

267:                                              ; preds = %249
  br label %268

268:                                              ; preds = %267
  %269 = load i64, ptr %15, align 8, !tbaa !9
  %270 = add nsw i64 %269, 1
  store i64 %270, ptr %15, align 8, !tbaa !9
  br label %243, !llvm.loop !29

271:                                              ; preds = %243
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %272

272:                                              ; preds = %295, %271
  %273 = load i64, ptr %15, align 8, !tbaa !9
  %274 = load i64, ptr %12, align 8, !tbaa !9
  %275 = sub nsw i64 %274, 1
  %276 = icmp sle i64 %273, %275
  br i1 %276, label %277, label %298

277:                                              ; preds = %272
  %278 = load ptr, ptr %13, align 8, !tbaa !5
  %279 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %278, i32 0, i32 4
  %280 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %279, i32 0, i32 4
  %281 = load ptr, ptr %280, align 8, !tbaa !11
  %282 = load i64, ptr %15, align 8, !tbaa !9
  %283 = getelementptr inbounds double, ptr %281, i64 %282
  %284 = load double, ptr %283, align 8, !tbaa !12
  %285 = fdiv double 1.000000e+00, %284
  %286 = load ptr, ptr %13, align 8, !tbaa !5
  %287 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %286, i32 0, i32 5
  %288 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %287, i32 0, i32 6
  %289 = load ptr, ptr %288, align 8, !tbaa !11
  %290 = load i64, ptr %15, align 8, !tbaa !9
  %291 = getelementptr inbounds ptr, ptr %289, i64 %290
  %292 = load ptr, ptr %291, align 8, !tbaa !5
  %293 = load i64, ptr %15, align 8, !tbaa !9
  %294 = getelementptr inbounds double, ptr %292, i64 %293
  store double %285, ptr %294, align 8, !tbaa !12
  br label %295

295:                                              ; preds = %277
  %296 = load i64, ptr %15, align 8, !tbaa !9
  %297 = add nsw i64 %296, 1
  store i64 %297, ptr %15, align 8, !tbaa !9
  br label %272, !llvm.loop !30

298:                                              ; preds = %272
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %299

299:                                              ; preds = %323, %298
  %300 = load i64, ptr %16, align 8, !tbaa !9
  %301 = load i64, ptr %11, align 8, !tbaa !9
  %302 = sub nsw i64 %301, 1
  %303 = icmp sle i64 %300, %302
  br i1 %303, label %304, label %326

304:                                              ; preds = %299
  %305 = load ptr, ptr %8, align 8, !tbaa !5
  %306 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %305, i32 0, i32 4
  %307 = load ptr, ptr %306, align 8, !tbaa !11
  %308 = load i64, ptr %16, align 8, !tbaa !9
  %309 = getelementptr inbounds double, ptr %307, i64 %308
  %310 = load double, ptr %309, align 8, !tbaa !12
  %311 = load ptr, ptr %14, align 8, !tbaa !5
  %312 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %310, ptr noundef %311)
  %313 = fdiv double 1.000000e+00, %312
  %314 = load ptr, ptr %13, align 8, !tbaa !5
  %315 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %314, i32 0, i32 6
  %316 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %315, i32 0, i32 6
  %317 = load ptr, ptr %316, align 8, !tbaa !11
  %318 = load i64, ptr %12, align 8, !tbaa !9
  %319 = getelementptr inbounds ptr, ptr %317, i64 %318
  %320 = load ptr, ptr %319, align 8, !tbaa !5
  %321 = load i64, ptr %16, align 8, !tbaa !9
  %322 = getelementptr inbounds double, ptr %320, i64 %321
  store double %313, ptr %322, align 8, !tbaa !12
  br label %323

323:                                              ; preds = %304
  %324 = load i64, ptr %16, align 8, !tbaa !9
  %325 = add nsw i64 %324, 1
  store i64 %325, ptr %16, align 8, !tbaa !9
  br label %299, !llvm.loop !31

326:                                              ; preds = %299
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %327

327:                                              ; preds = %373, %326
  %328 = load i64, ptr %15, align 8, !tbaa !9
  %329 = load i64, ptr %12, align 8, !tbaa !9
  %330 = sub nsw i64 %329, 1
  %331 = icmp sle i64 %328, %330
  br i1 %331, label %332, label %376

332:                                              ; preds = %327
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %333

333:                                              ; preds = %369, %332
  %334 = load i64, ptr %16, align 8, !tbaa !9
  %335 = load i64, ptr %11, align 8, !tbaa !9
  %336 = sub nsw i64 %335, 1
  %337 = icmp sle i64 %334, %336
  br i1 %337, label %338, label %372

338:                                              ; preds = %333
  %339 = load ptr, ptr %13, align 8, !tbaa !5
  %340 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %339, i32 0, i32 6
  %341 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %340, i32 0, i32 6
  %342 = load ptr, ptr %341, align 8, !tbaa !11
  %343 = load i64, ptr %15, align 8, !tbaa !9
  %344 = getelementptr inbounds ptr, ptr %342, i64 %343
  %345 = load ptr, ptr %344, align 8, !tbaa !5
  %346 = load i64, ptr %16, align 8, !tbaa !9
  %347 = getelementptr inbounds double, ptr %345, i64 %346
  %348 = load double, ptr %347, align 8, !tbaa !12
  %349 = load ptr, ptr %13, align 8, !tbaa !5
  %350 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %349, i32 0, i32 6
  %351 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %350, i32 0, i32 6
  %352 = load ptr, ptr %351, align 8, !tbaa !11
  %353 = load i64, ptr %12, align 8, !tbaa !9
  %354 = getelementptr inbounds ptr, ptr %352, i64 %353
  %355 = load ptr, ptr %354, align 8, !tbaa !5
  %356 = load i64, ptr %16, align 8, !tbaa !9
  %357 = getelementptr inbounds double, ptr %355, i64 %356
  %358 = load double, ptr %357, align 8, !tbaa !12
  %359 = fmul double %348, %358
  %360 = load ptr, ptr %13, align 8, !tbaa !5
  %361 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %360, i32 0, i32 6
  %362 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %361, i32 0, i32 6
  %363 = load ptr, ptr %362, align 8, !tbaa !11
  %364 = load i64, ptr %15, align 8, !tbaa !9
  %365 = getelementptr inbounds ptr, ptr %363, i64 %364
  %366 = load ptr, ptr %365, align 8, !tbaa !5
  %367 = load i64, ptr %16, align 8, !tbaa !9
  %368 = getelementptr inbounds double, ptr %366, i64 %367
  store double %359, ptr %368, align 8, !tbaa !12
  br label %369

369:                                              ; preds = %338
  %370 = load i64, ptr %16, align 8, !tbaa !9
  %371 = add nsw i64 %370, 1
  store i64 %371, ptr %16, align 8, !tbaa !9
  br label %333, !llvm.loop !32

372:                                              ; preds = %333
  br label %373

373:                                              ; preds = %372
  %374 = load i64, ptr %15, align 8, !tbaa !9
  %375 = add nsw i64 %374, 1
  store i64 %375, ptr %15, align 8, !tbaa !9
  br label %327, !llvm.loop !33

376:                                              ; preds = %327
  %377 = load i64, ptr %12, align 8, !tbaa !9
  %378 = load i64, ptr %12, align 8, !tbaa !9
  %379 = load i64, ptr %11, align 8, !tbaa !9
  %380 = load ptr, ptr %13, align 8, !tbaa !5
  %381 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %380, i32 0, i32 6
  %382 = load ptr, ptr %13, align 8, !tbaa !5
  %383 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %382, i32 0, i32 6
  %384 = load ptr, ptr %13, align 8, !tbaa !5
  %385 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %384, i32 0, i32 5
  %386 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %377, i64 noundef %378, i64 noundef %379, double noundef 1.000000e+00, ptr noundef %381, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %383, i64 noundef 0, i64 noundef 0, i64 noundef 1, double noundef 1.000000e+00, ptr noundef %385, i64 noundef 0, i64 noundef 0, ptr noundef %386)
  %387 = load ptr, ptr %13, align 8, !tbaa !5
  %388 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %387, i32 0, i32 5
  %389 = load i64, ptr %12, align 8, !tbaa !9
  %390 = load ptr, ptr %13, align 8, !tbaa !5
  %391 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %390, i32 0, i32 7
  %392 = load ptr, ptr %14, align 8, !tbaa !5
  %393 = call noundef zeroext i1 @_ZN11alglib_impl20spdmatrixcholeskyrecEPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %388, i64 noundef 0, i64 noundef %389, i1 noundef zeroext true, ptr noundef %391, ptr noundef %392)
  %394 = zext i1 %393 to i8
  store i8 %394, ptr %18, align 1, !tbaa !34
  %395 = load i8, ptr %18, align 1, !tbaa !34, !range !35, !noundef !36
  %396 = trunc i8 %395 to i1
  %397 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %396, ptr noundef @.str.139, ptr noundef %397)
  %398 = load i64, ptr %12, align 8, !tbaa !9
  %399 = load i64, ptr %11, align 8, !tbaa !9
  %400 = load ptr, ptr %13, align 8, !tbaa !5
  %401 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %400, i32 0, i32 5
  %402 = load ptr, ptr %13, align 8, !tbaa !5
  %403 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %402, i32 0, i32 3
  %404 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %398, i64 noundef %399, ptr noundef %401, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 1, ptr noundef %403, i64 noundef 0, i64 noundef 0, ptr noundef %404)
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %405

405:                                              ; preds = %448, %376
  %406 = load i64, ptr %15, align 8, !tbaa !9
  %407 = load i64, ptr %12, align 8, !tbaa !9
  %408 = sub nsw i64 %407, 1
  %409 = icmp sle i64 %406, %408
  br i1 %409, label %410, label %451

410:                                              ; preds = %405
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %411

411:                                              ; preds = %444, %410
  %412 = load i64, ptr %16, align 8, !tbaa !9
  %413 = load i64, ptr %11, align 8, !tbaa !9
  %414 = sub nsw i64 %413, 1
  %415 = icmp sle i64 %412, %414
  br i1 %415, label %416, label %447

416:                                              ; preds = %411
  %417 = load ptr, ptr %13, align 8, !tbaa !5
  %418 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %417, i32 0, i32 3
  %419 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %418, i32 0, i32 6
  %420 = load ptr, ptr %419, align 8, !tbaa !11
  %421 = load i64, ptr %15, align 8, !tbaa !9
  %422 = getelementptr inbounds ptr, ptr %420, i64 %421
  %423 = load ptr, ptr %422, align 8, !tbaa !5
  %424 = load i64, ptr %16, align 8, !tbaa !9
  %425 = getelementptr inbounds double, ptr %423, i64 %424
  %426 = load double, ptr %425, align 8, !tbaa !12
  %427 = load ptr, ptr %13, align 8, !tbaa !5
  %428 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %427, i32 0, i32 2
  %429 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %428, i32 0, i32 4
  %430 = load ptr, ptr %429, align 8, !tbaa !11
  %431 = load i64, ptr %16, align 8, !tbaa !9
  %432 = getelementptr inbounds double, ptr %430, i64 %431
  %433 = load double, ptr %432, align 8, !tbaa !12
  %434 = fmul double %426, %433
  %435 = load ptr, ptr %13, align 8, !tbaa !5
  %436 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %435, i32 0, i32 3
  %437 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %436, i32 0, i32 6
  %438 = load ptr, ptr %437, align 8, !tbaa !11
  %439 = load i64, ptr %15, align 8, !tbaa !9
  %440 = getelementptr inbounds ptr, ptr %438, i64 %439
  %441 = load ptr, ptr %440, align 8, !tbaa !5
  %442 = load i64, ptr %16, align 8, !tbaa !9
  %443 = getelementptr inbounds double, ptr %441, i64 %442
  store double %434, ptr %443, align 8, !tbaa !12
  br label %444

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

447:                                              ; preds = %411
  br label %448

448:                                              ; preds = %447
  %449 = load i64, ptr %15, align 8, !tbaa !9
  %450 = add nsw i64 %449, 1
  store i64 %450, ptr %15, align 8, !tbaa !9
  br label %405, !llvm.loop !38

451:                                              ; preds = %405
  store i32 0, ptr %19, align 4
  br label %452

452:                                              ; preds = %451, %236
  call void @llvm.lifetime.end.p0(i64 1, 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
  %453 = load i32, ptr %19, align 4
  switch i32 %453, label %455 [
    i32 0, label %454
    i32 1, label %454
  ]

454:                                              ; preds = %452, %452
  ret void

455:                                              ; preds = %452
  unreachable
}

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

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

declare void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, i64 noundef, i64 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !10, i64 0, !10, i64 8, !19, i64 16, !22, i64 80, !19, i64 160, !22, i64 224, !22, i64 304, !19, i64 384}
!19 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !20, i64 16, !21, i64 24, !7, i64 56}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!22 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !20, i64 32, !21, i64 40, !7, i64 72}
!23 = !{!18, !10, i64 8}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}
!30 = distinct !{!30, !15}
!31 = distinct !{!31, !15}
!32 = distinct !{!32, !15}
!33 = distinct !{!33, !15}
!34 = !{!20, !20, i64 0}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = distinct !{!37, !15}
!38 = distinct !{!38, !15}


; 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.135 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [64 x i8], align 1

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

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

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) local_unnamed_addr #0

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

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

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

declare void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl28preparelowrankpreconditionerEPNS_9ae_vectorES1_PNS_9ae_matrixEllPNS_14precbuflowrankEPNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #2 {
  %8 = icmp sgt i64 %3, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.135, ptr noundef %6)
  %9 = icmp sgt i64 %4, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.135, ptr noundef %6)
  br i1 %8, label %.lr.ph, label %.preheader189

.lr.ph:                                           ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  br label %12

.preheader189:                                    ; preds = %12, %7
  %.not.not170192 = icmp sgt i64 %4, 0
  br i1 %.not.not170192, label %.lr.ph194, label %._crit_edge

.lr.ph194:                                        ; preds = %.preheader189
  %11 = getelementptr inbounds i8, ptr %1, i64 56
  br label %18

12:                                               ; preds = %.lr.ph, %12
  %.0159191 = phi i64 [ 0, %.lr.ph ], [ %17, %12 ]
  %13 = load ptr, ptr %10, align 8, !tbaa !5
  %14 = getelementptr inbounds double, ptr %13, i64 %.0159191
  %15 = load double, ptr %14, align 8, !tbaa !8
  %16 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %15, double noundef 0.000000e+00)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.136, ptr noundef %6)
  %17 = add nuw nsw i64 %.0159191, 1
  %exitcond.not = icmp eq i64 %17, %3
  br i1 %exitcond.not, label %.preheader189, label %12, !llvm.loop !10

18:                                               ; preds = %.lr.ph194, %18
  %.1160193 = phi i64 [ 0, %.lr.ph194 ], [ %23, %18 ]
  %19 = load ptr, ptr %11, align 8, !tbaa !5
  %20 = getelementptr inbounds double, ptr %19, i64 %.1160193
  %21 = load double, ptr %20, align 8, !tbaa !8
  %22 = tail call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %21, double noundef 0.000000e+00)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.137, ptr noundef %6)
  %23 = add nuw nsw i64 %.1160193, 1
  %exitcond240.not = icmp eq i64 %23, %4
  br i1 %exitcond240.not, label %._crit_edge, label %18, !llvm.loop !12

._crit_edge:                                      ; preds = %18, %.preheader189
  %24 = getelementptr inbounds i8, ptr %5, i64 16
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %24, i64 noundef %3, ptr noundef %6)
  %25 = getelementptr inbounds i8, ptr %5, i64 80
  tail call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef %4, i64 noundef %3, ptr noundef %6)
  %26 = getelementptr inbounds i8, ptr %5, i64 160
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %26, i64 noundef %4, ptr noundef %6)
  %27 = getelementptr inbounds i8, ptr %5, i64 304
  %28 = add nsw i64 %4, 1
  tail call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %27, i64 noundef %28, i64 noundef %3, ptr noundef %6)
  store i64 %3, ptr %5, align 8, !tbaa !13
  %29 = getelementptr inbounds i8, ptr %5, i64 8
  store i64 0, ptr %29, align 8, !tbaa !21
  br i1 %.not.not170192, label %.preheader188.lr.ph, label %._crit_edge207

.preheader188.lr.ph:                              ; preds = %._crit_edge
  %30 = getelementptr inbounds i8, ptr %2, i64 72
  %31 = getelementptr inbounds i8, ptr %1, i64 56
  %32 = getelementptr inbounds i8, ptr %5, i64 216
  %33 = getelementptr inbounds i8, ptr %5, i64 152
  %34 = getelementptr inbounds i8, ptr %5, i64 376
  %xtraiter = and i64 %3, 3
  %35 = icmp ult i64 %3, 4
  %unroll_iter = and i64 %3, 9223372036854775804
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader188

.preheader188:                                    ; preds = %.preheader188.lr.ph, %91
  %.2161206 = phi i64 [ 0, %.preheader188.lr.ph ], [ %92, %91 ]
  br i1 %8, label %.lr.ph198, label %._crit_edge199

.lr.ph198:                                        ; preds = %.preheader188
  %36 = load ptr, ptr %30, align 8, !tbaa !5
  %37 = getelementptr inbounds ptr, ptr %36, i64 %.2161206
  %38 = load ptr, ptr %37, align 8, !tbaa !22
  br i1 %35, label %._crit_edge199.loopexit.unr-lcssa, label %.lr.ph198.new

.lr.ph198.new:                                    ; preds = %.lr.ph198, %.lr.ph198.new
  %.0197 = phi double [ %53, %.lr.ph198.new ], [ 0.000000e+00, %.lr.ph198 ]
  %.0158196 = phi i64 [ %54, %.lr.ph198.new ], [ 0, %.lr.ph198 ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph198.new ], [ 0, %.lr.ph198 ]
  %39 = getelementptr inbounds double, ptr %38, i64 %.0158196
  %40 = load double, ptr %39, align 8, !tbaa !8
  %41 = tail call double @llvm.fmuladd.f64(double %40, double %40, double %.0197)
  %42 = or disjoint i64 %.0158196, 1
  %43 = getelementptr inbounds double, ptr %38, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !8
  %45 = tail call double @llvm.fmuladd.f64(double %44, double %44, double %41)
  %46 = or disjoint i64 %.0158196, 2
  %47 = getelementptr inbounds double, ptr %38, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !8
  %49 = tail call double @llvm.fmuladd.f64(double %48, double %48, double %45)
  %50 = or disjoint i64 %.0158196, 3
  %51 = getelementptr inbounds double, ptr %38, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !8
  %53 = tail call double @llvm.fmuladd.f64(double %52, double %52, double %49)
  %54 = add nuw nsw i64 %.0158196, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge199.loopexit.unr-lcssa, label %.lr.ph198.new, !llvm.loop !23

._crit_edge199.loopexit.unr-lcssa:                ; preds = %.lr.ph198.new, %.lr.ph198
  %.lcssa.ph = phi double [ poison, %.lr.ph198 ], [ %53, %.lr.ph198.new ]
  %.0197.unr = phi double [ 0.000000e+00, %.lr.ph198 ], [ %53, %.lr.ph198.new ]
  %.0158196.unr = phi i64 [ 0, %.lr.ph198 ], [ %54, %.lr.ph198.new ]
  br i1 %lcmp.mod.not, label %._crit_edge199, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge199.loopexit.unr-lcssa, %.epil.preheader
  %.0197.epil = phi double [ %57, %.epil.preheader ], [ %.0197.unr, %._crit_edge199.loopexit.unr-lcssa ]
  %.0158196.epil = phi i64 [ %58, %.epil.preheader ], [ %.0158196.unr, %._crit_edge199.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge199.loopexit.unr-lcssa ]
  %55 = getelementptr inbounds double, ptr %38, i64 %.0158196.epil
  %56 = load double, ptr %55, align 8, !tbaa !8
  %57 = tail call double @llvm.fmuladd.f64(double %56, double %56, double %.0197.epil)
  %58 = add nuw nsw i64 %.0158196.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge199, label %.epil.preheader, !llvm.loop !24

._crit_edge199:                                   ; preds = %._crit_edge199.loopexit.unr-lcssa, %.epil.preheader, %.preheader188
  %.0.lcssa = phi double [ 0.000000e+00, %.preheader188 ], [ %.lcssa.ph, %._crit_edge199.loopexit.unr-lcssa ], [ %57, %.epil.preheader ]
  %59 = load ptr, ptr %31, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %59, i64 %.2161206
  %61 = load double, ptr %60, align 8, !tbaa !8
  %62 = fmul double %.0.lcssa, %61
  %63 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %62, double noundef 0.000000e+00)
  br i1 %63, label %91, label %64

64:                                               ; preds = %._crit_edge199
  %65 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %62, double noundef 0.000000e+00)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %65, ptr noundef nonnull @.str.138, ptr noundef %6)
  %66 = load ptr, ptr %31, align 8, !tbaa !5
  %67 = getelementptr inbounds double, ptr %66, i64 %.2161206
  %68 = load double, ptr %67, align 8, !tbaa !8
  %69 = load ptr, ptr %32, align 8, !tbaa !5
  %70 = load i64, ptr %29, align 8, !tbaa !21
  %71 = getelementptr inbounds double, ptr %69, i64 %70
  store double %68, ptr %71, align 8, !tbaa !8
  br i1 %8, label %.lr.ph203, label %._crit_edge204

.lr.ph203:                                        ; preds = %64, %.lr.ph203
  %.1201 = phi i64 [ %90, %.lr.ph203 ], [ 0, %64 ]
  %72 = load ptr, ptr %30, align 8, !tbaa !5
  %73 = getelementptr inbounds ptr, ptr %72, i64 %.2161206
  %74 = load ptr, ptr %73, align 8, !tbaa !22
  %75 = getelementptr inbounds double, ptr %74, i64 %.1201
  %76 = load double, ptr %75, align 8, !tbaa !8
  %77 = load ptr, ptr %33, align 8, !tbaa !5
  %78 = getelementptr inbounds ptr, ptr %77, i64 %70
  %79 = load ptr, ptr %78, align 8, !tbaa !22
  %80 = getelementptr inbounds double, ptr %79, i64 %.1201
  store double %76, ptr %80, align 8, !tbaa !8
  %81 = load ptr, ptr %30, align 8, !tbaa !5
  %82 = getelementptr inbounds ptr, ptr %81, i64 %.2161206
  %83 = load ptr, ptr %82, align 8, !tbaa !22
  %84 = getelementptr inbounds double, ptr %83, i64 %.1201
  %85 = load double, ptr %84, align 8, !tbaa !8
  %86 = load ptr, ptr %34, align 8, !tbaa !5
  %87 = getelementptr inbounds ptr, ptr %86, i64 %70
  %88 = load ptr, ptr %87, align 8, !tbaa !22
  %89 = getelementptr inbounds double, ptr %88, i64 %.1201
  store double %85, ptr %89, align 8, !tbaa !8
  %90 = add nuw nsw i64 %.1201, 1
  %exitcond242.not = icmp eq i64 %90, %3
  br i1 %exitcond242.not, label %._crit_edge204, label %.lr.ph203, !llvm.loop !26

._crit_edge204:                                   ; preds = %.lr.ph203, %64
  tail call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef nonnull %29, ptr noundef %6)
  br label %91

91:                                               ; preds = %._crit_edge199, %._crit_edge204
  %92 = add nuw nsw i64 %.2161206, 1
  %exitcond243.not = icmp eq i64 %92, %4
  br i1 %exitcond243.not, label %._crit_edge207.loopexit, label %.preheader188, !llvm.loop !27

._crit_edge207.loopexit:                          ; preds = %91
  %.pre = load i64, ptr %29, align 8, !tbaa !21
  br label %._crit_edge207

._crit_edge207:                                   ; preds = %._crit_edge207.loopexit, %._crit_edge
  %93 = phi i64 [ %.pre, %._crit_edge207.loopexit ], [ 0, %._crit_edge ]
  br i1 %8, label %.lr.ph211, label %._crit_edge212

.lr.ph211:                                        ; preds = %._crit_edge207
  %94 = getelementptr inbounds i8, ptr %0, i64 56
  %95 = getelementptr inbounds i8, ptr %5, i64 72
  %xtraiter255 = and i64 %3, 1
  %96 = icmp eq i64 %3, 1
  br i1 %96, label %._crit_edge212.loopexit.unr-lcssa, label %.lr.ph211.new

.lr.ph211.new:                                    ; preds = %.lr.ph211
  %unroll_iter258 = and i64 %3, 9223372036854775806
  br label %97

97:                                               ; preds = %97, %.lr.ph211.new
  %.3162209 = phi i64 [ 0, %.lr.ph211.new ], [ %111, %97 ]
  %niter259 = phi i64 [ 0, %.lr.ph211.new ], [ %niter259.next.1, %97 ]
  %98 = load ptr, ptr %94, align 8, !tbaa !5
  %99 = getelementptr inbounds double, ptr %98, i64 %.3162209
  %100 = load double, ptr %99, align 8, !tbaa !8
  %101 = fdiv double 1.000000e+00, %100
  %102 = load ptr, ptr %95, align 8, !tbaa !5
  %103 = getelementptr inbounds double, ptr %102, i64 %.3162209
  store double %101, ptr %103, align 8, !tbaa !8
  %104 = or disjoint i64 %.3162209, 1
  %105 = load ptr, ptr %94, align 8, !tbaa !5
  %106 = getelementptr inbounds double, ptr %105, i64 %104
  %107 = load double, ptr %106, align 8, !tbaa !8
  %108 = fdiv double 1.000000e+00, %107
  %109 = load ptr, ptr %95, align 8, !tbaa !5
  %110 = getelementptr inbounds double, ptr %109, i64 %104
  store double %108, ptr %110, align 8, !tbaa !8
  %111 = add nuw nsw i64 %.3162209, 2
  %niter259.next.1 = add i64 %niter259, 2
  %niter259.ncmp.1 = icmp eq i64 %niter259.next.1, %unroll_iter258
  br i1 %niter259.ncmp.1, label %._crit_edge212.loopexit.unr-lcssa, label %97, !llvm.loop !28

._crit_edge212.loopexit.unr-lcssa:                ; preds = %97, %.lr.ph211
  %.3162209.unr = phi i64 [ 0, %.lr.ph211 ], [ %111, %97 ]
  %lcmp.mod257.not = icmp eq i64 %xtraiter255, 0
  br i1 %lcmp.mod257.not, label %._crit_edge212, label %._crit_edge212.loopexit.epilog-lcssa

._crit_edge212.loopexit.epilog-lcssa:             ; preds = %._crit_edge212.loopexit.unr-lcssa
  %112 = load ptr, ptr %94, align 8, !tbaa !5
  %113 = getelementptr inbounds double, ptr %112, i64 %.3162209.unr
  %114 = load double, ptr %113, align 8, !tbaa !8
  %115 = fdiv double 1.000000e+00, %114
  %116 = load ptr, ptr %95, align 8, !tbaa !5
  %117 = getelementptr inbounds double, ptr %116, i64 %.3162209.unr
  store double %115, ptr %117, align 8, !tbaa !8
  br label %._crit_edge212

._crit_edge212:                                   ; preds = %._crit_edge212.loopexit.epilog-lcssa, %._crit_edge212.loopexit.unr-lcssa, %._crit_edge207
  %118 = icmp eq i64 %93, 0
  br i1 %118, label %.loopexit, label %119

119:                                              ; preds = %._crit_edge212
  %120 = getelementptr inbounds i8, ptr %5, i64 224
  tail call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %120, i64 noundef %93, i64 noundef %93, ptr noundef %6)
  %.not.not173217 = icmp sgt i64 %93, 0
  br i1 %.not.not173217, label %.preheader187.lr.ph, label %.preheader185

.preheader187.lr.ph:                              ; preds = %119
  %121 = getelementptr inbounds i8, ptr %5, i64 296
  %xtraiter261 = and i64 %93, 3
  %122 = icmp ult i64 %93, 4
  %unroll_iter264 = and i64 %93, 9223372036854775804
  %lcmp.mod263.not = icmp eq i64 %xtraiter261, 0
  br label %.preheader187.us

.preheader187.us:                                 ; preds = %._crit_edge216.us, %.preheader187.lr.ph
  %.4163218.us = phi i64 [ 0, %.preheader187.lr.ph ], [ %148, %._crit_edge216.us ]
  br i1 %122, label %._crit_edge216.us.unr-lcssa, label %.preheader187.us.new

.preheader187.us.new:                             ; preds = %.preheader187.us, %.preheader187.us.new
  %.2214.us = phi i64 [ %142, %.preheader187.us.new ], [ 0, %.preheader187.us ]
  %niter265 = phi i64 [ %niter265.next.3, %.preheader187.us.new ], [ 0, %.preheader187.us ]
  %123 = load ptr, ptr %121, align 8, !tbaa !5
  %124 = getelementptr inbounds ptr, ptr %123, i64 %.4163218.us
  %125 = load ptr, ptr %124, align 8, !tbaa !22
  %126 = getelementptr inbounds double, ptr %125, i64 %.2214.us
  store double 0.000000e+00, ptr %126, align 8, !tbaa !8
  %127 = or disjoint i64 %.2214.us, 1
  %128 = load ptr, ptr %121, align 8, !tbaa !5
  %129 = getelementptr inbounds ptr, ptr %128, i64 %.4163218.us
  %130 = load ptr, ptr %129, align 8, !tbaa !22
  %131 = getelementptr inbounds double, ptr %130, i64 %127
  store double 0.000000e+00, ptr %131, align 8, !tbaa !8
  %132 = or disjoint i64 %.2214.us, 2
  %133 = load ptr, ptr %121, align 8, !tbaa !5
  %134 = getelementptr inbounds ptr, ptr %133, i64 %.4163218.us
  %135 = load ptr, ptr %134, align 8, !tbaa !22
  %136 = getelementptr inbounds double, ptr %135, i64 %132
  store double 0.000000e+00, ptr %136, align 8, !tbaa !8
  %137 = or disjoint i64 %.2214.us, 3
  %138 = load ptr, ptr %121, align 8, !tbaa !5
  %139 = getelementptr inbounds ptr, ptr %138, i64 %.4163218.us
  %140 = load ptr, ptr %139, align 8, !tbaa !22
  %141 = getelementptr inbounds double, ptr %140, i64 %137
  store double 0.000000e+00, ptr %141, align 8, !tbaa !8
  %142 = add nuw nsw i64 %.2214.us, 4
  %niter265.next.3 = add i64 %niter265, 4
  %niter265.ncmp.3 = icmp eq i64 %niter265.next.3, %unroll_iter264
  br i1 %niter265.ncmp.3, label %._crit_edge216.us.unr-lcssa, label %.preheader187.us.new, !llvm.loop !29

._crit_edge216.us.unr-lcssa:                      ; preds = %.preheader187.us.new, %.preheader187.us
  %.2214.us.unr = phi i64 [ 0, %.preheader187.us ], [ %142, %.preheader187.us.new ]
  br i1 %lcmp.mod263.not, label %._crit_edge216.us, label %.epil.preheader260

.epil.preheader260:                               ; preds = %._crit_edge216.us.unr-lcssa, %.epil.preheader260
  %.2214.us.epil = phi i64 [ %147, %.epil.preheader260 ], [ %.2214.us.unr, %._crit_edge216.us.unr-lcssa ]
  %epil.iter262 = phi i64 [ %epil.iter262.next, %.epil.preheader260 ], [ 0, %._crit_edge216.us.unr-lcssa ]
  %143 = load ptr, ptr %121, align 8, !tbaa !5
  %144 = getelementptr inbounds ptr, ptr %143, i64 %.4163218.us
  %145 = load ptr, ptr %144, align 8, !tbaa !22
  %146 = getelementptr inbounds double, ptr %145, i64 %.2214.us.epil
  store double 0.000000e+00, ptr %146, align 8, !tbaa !8
  %147 = add nuw nsw i64 %.2214.us.epil, 1
  %epil.iter262.next = add i64 %epil.iter262, 1
  %epil.iter262.cmp.not = icmp eq i64 %epil.iter262.next, %xtraiter261
  br i1 %epil.iter262.cmp.not, label %._crit_edge216.us, label %.epil.preheader260, !llvm.loop !30

._crit_edge216.us:                                ; preds = %.epil.preheader260, %._crit_edge216.us.unr-lcssa
  %148 = add nuw nsw i64 %.4163218.us, 1
  %exitcond246.not = icmp eq i64 %148, %93
  br i1 %exitcond246.not, label %.preheader186, label %.preheader187.us, !llvm.loop !31

.preheader186:                                    ; preds = %._crit_edge216.us
  br i1 %.not.not173217, label %.lr.ph221, label %.preheader185

.lr.ph221:                                        ; preds = %.preheader186
  %149 = getelementptr inbounds i8, ptr %5, i64 216
  %150 = getelementptr inbounds i8, ptr %5, i64 296
  %xtraiter267 = and i64 %93, 1
  %151 = icmp eq i64 %93, 1
  br i1 %151, label %.preheader185.loopexit.unr-lcssa, label %.lr.ph221.new

.lr.ph221.new:                                    ; preds = %.lr.ph221
  %unroll_iter270 = and i64 %93, 9223372036854775806
  br label %162

.preheader185.loopexit.unr-lcssa:                 ; preds = %162, %.lr.ph221
  %.5164220.unr = phi i64 [ 0, %.lr.ph221 ], [ %180, %162 ]
  %lcmp.mod269.not = icmp eq i64 %xtraiter267, 0
  br i1 %lcmp.mod269.not, label %.preheader185, label %.preheader185.loopexit.epilog-lcssa

.preheader185.loopexit.epilog-lcssa:              ; preds = %.preheader185.loopexit.unr-lcssa
  %152 = load ptr, ptr %149, align 8, !tbaa !5
  %153 = getelementptr inbounds double, ptr %152, i64 %.5164220.unr
  %154 = load double, ptr %153, align 8, !tbaa !8
  %155 = fdiv double 1.000000e+00, %154
  %156 = load ptr, ptr %150, align 8, !tbaa !5
  %157 = getelementptr inbounds ptr, ptr %156, i64 %.5164220.unr
  %158 = load ptr, ptr %157, align 8, !tbaa !22
  %159 = getelementptr inbounds double, ptr %158, i64 %.5164220.unr
  store double %155, ptr %159, align 8, !tbaa !8
  br label %.preheader185

.preheader185:                                    ; preds = %.preheader185.loopexit.epilog-lcssa, %.preheader185.loopexit.unr-lcssa, %119, %.preheader186
  br i1 %8, label %.lr.ph224, label %._crit_edge231

.lr.ph224:                                        ; preds = %.preheader185
  %160 = getelementptr inbounds i8, ptr %0, i64 56
  %161 = getelementptr inbounds i8, ptr %5, i64 376
  br label %216

162:                                              ; preds = %162, %.lr.ph221.new
  %.5164220 = phi i64 [ 0, %.lr.ph221.new ], [ %180, %162 ]
  %niter271 = phi i64 [ 0, %.lr.ph221.new ], [ %niter271.next.1, %162 ]
  %163 = load ptr, ptr %149, align 8, !tbaa !5
  %164 = getelementptr inbounds double, ptr %163, i64 %.5164220
  %165 = load double, ptr %164, align 8, !tbaa !8
  %166 = fdiv double 1.000000e+00, %165
  %167 = load ptr, ptr %150, align 8, !tbaa !5
  %168 = getelementptr inbounds ptr, ptr %167, i64 %.5164220
  %169 = load ptr, ptr %168, align 8, !tbaa !22
  %170 = getelementptr inbounds double, ptr %169, i64 %.5164220
  store double %166, ptr %170, align 8, !tbaa !8
  %171 = or disjoint i64 %.5164220, 1
  %172 = load ptr, ptr %149, align 8, !tbaa !5
  %173 = getelementptr inbounds double, ptr %172, i64 %171
  %174 = load double, ptr %173, align 8, !tbaa !8
  %175 = fdiv double 1.000000e+00, %174
  %176 = load ptr, ptr %150, align 8, !tbaa !5
  %177 = getelementptr inbounds ptr, ptr %176, i64 %171
  %178 = load ptr, ptr %177, align 8, !tbaa !22
  %179 = getelementptr inbounds double, ptr %178, i64 %171
  store double %175, ptr %179, align 8, !tbaa !8
  %180 = add nuw nsw i64 %.5164220, 2
  %niter271.next.1 = add i64 %niter271, 2
  %niter271.ncmp.1 = icmp eq i64 %niter271.next.1, %unroll_iter270
  br i1 %niter271.ncmp.1, label %.preheader185.loopexit.unr-lcssa, label %162, !llvm.loop !32

.preheader184:                                    ; preds = %216
  br i1 %.not.not173217, label %.preheader183.lr.ph, label %.loopexit.critedge

.preheader183.lr.ph:                              ; preds = %.preheader184
  %181 = getelementptr inbounds i8, ptr %5, i64 376
  br i1 %8, label %.preheader183.us.preheader, label %._crit_edge231

.preheader183.us.preheader:                       ; preds = %.preheader183.lr.ph
  %xtraiter273 = and i64 %3, 1
  %182 = icmp eq i64 %3, 1
  %unroll_iter276 = and i64 %3, 9223372036854775806
  %lcmp.mod275.not = icmp eq i64 %xtraiter273, 0
  br label %.preheader183.us

.preheader183.us:                                 ; preds = %.preheader183.us.preheader, %._crit_edge228.us
  %.6230.us = phi i64 [ %215, %._crit_edge228.us ], [ 0, %.preheader183.us.preheader ]
  br i1 %182, label %._crit_edge228.us.unr-lcssa, label %.preheader183.us.new

.preheader183.us.new:                             ; preds = %.preheader183.us, %.preheader183.us.new
  %.4226.us = phi i64 [ %204, %.preheader183.us.new ], [ 0, %.preheader183.us ]
  %niter277 = phi i64 [ %niter277.next.1, %.preheader183.us.new ], [ 0, %.preheader183.us ]
  %183 = load ptr, ptr %181, align 8, !tbaa !5
  %184 = getelementptr inbounds ptr, ptr %183, i64 %.6230.us
  %185 = load ptr, ptr %184, align 8, !tbaa !22
  %186 = getelementptr inbounds double, ptr %185, i64 %.4226.us
  %187 = load double, ptr %186, align 8, !tbaa !8
  %188 = getelementptr inbounds ptr, ptr %183, i64 %93
  %189 = load ptr, ptr %188, align 8, !tbaa !22
  %190 = getelementptr inbounds double, ptr %189, i64 %.4226.us
  %191 = load double, ptr %190, align 8, !tbaa !8
  %192 = fmul double %187, %191
  store double %192, ptr %186, align 8, !tbaa !8
  %193 = or disjoint i64 %.4226.us, 1
  %194 = load ptr, ptr %181, align 8, !tbaa !5
  %195 = getelementptr inbounds ptr, ptr %194, i64 %.6230.us
  %196 = load ptr, ptr %195, align 8, !tbaa !22
  %197 = getelementptr inbounds double, ptr %196, i64 %193
  %198 = load double, ptr %197, align 8, !tbaa !8
  %199 = getelementptr inbounds ptr, ptr %194, i64 %93
  %200 = load ptr, ptr %199, align 8, !tbaa !22
  %201 = getelementptr inbounds double, ptr %200, i64 %193
  %202 = load double, ptr %201, align 8, !tbaa !8
  %203 = fmul double %198, %202
  store double %203, ptr %197, align 8, !tbaa !8
  %204 = add nuw nsw i64 %.4226.us, 2
  %niter277.next.1 = add i64 %niter277, 2
  %niter277.ncmp.1 = icmp eq i64 %niter277.next.1, %unroll_iter276
  br i1 %niter277.ncmp.1, label %._crit_edge228.us.unr-lcssa, label %.preheader183.us.new, !llvm.loop !33

._crit_edge228.us.unr-lcssa:                      ; preds = %.preheader183.us.new, %.preheader183.us
  %.4226.us.unr = phi i64 [ 0, %.preheader183.us ], [ %204, %.preheader183.us.new ]
  br i1 %lcmp.mod275.not, label %._crit_edge228.us, label %._crit_edge228.us.epilog-lcssa

._crit_edge228.us.epilog-lcssa:                   ; preds = %._crit_edge228.us.unr-lcssa
  %205 = load ptr, ptr %181, align 8, !tbaa !5
  %206 = getelementptr inbounds ptr, ptr %205, i64 %.6230.us
  %207 = load ptr, ptr %206, align 8, !tbaa !22
  %208 = getelementptr inbounds double, ptr %207, i64 %.4226.us.unr
  %209 = load double, ptr %208, align 8, !tbaa !8
  %210 = getelementptr inbounds ptr, ptr %205, i64 %93
  %211 = load ptr, ptr %210, align 8, !tbaa !22
  %212 = getelementptr inbounds double, ptr %211, i64 %.4226.us.unr
  %213 = load double, ptr %212, align 8, !tbaa !8
  %214 = fmul double %209, %213
  store double %214, ptr %208, align 8, !tbaa !8
  br label %._crit_edge228.us

._crit_edge228.us:                                ; preds = %._crit_edge228.us.unr-lcssa, %._crit_edge228.us.epilog-lcssa
  %215 = add nuw nsw i64 %.6230.us, 1
  %exitcond250.not = icmp eq i64 %215, %93
  br i1 %exitcond250.not, label %._crit_edge231, label %.preheader183.us, !llvm.loop !34

216:                                              ; preds = %.lr.ph224, %216
  %.3223 = phi i64 [ 0, %.lr.ph224 ], [ %226, %216 ]
  %217 = load ptr, ptr %160, align 8, !tbaa !5
  %218 = getelementptr inbounds double, ptr %217, i64 %.3223
  %219 = load double, ptr %218, align 8, !tbaa !8
  %220 = tail call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %219, ptr noundef %6)
  %221 = fdiv double 1.000000e+00, %220
  %222 = load ptr, ptr %161, align 8, !tbaa !5
  %223 = getelementptr inbounds ptr, ptr %222, i64 %93
  %224 = load ptr, ptr %223, align 8, !tbaa !22
  %225 = getelementptr inbounds double, ptr %224, i64 %.3223
  store double %221, ptr %225, align 8, !tbaa !8
  %226 = add nuw nsw i64 %.3223, 1
  %exitcond248.not = icmp eq i64 %226, %3
  br i1 %exitcond248.not, label %.preheader184, label %216, !llvm.loop !35

._crit_edge231:                                   ; preds = %._crit_edge228.us, %.preheader185, %.preheader183.lr.ph
  tail call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %93, i64 noundef %93, i64 noundef %3, double noundef 1.000000e+00, ptr noundef nonnull %27, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %27, i64 noundef 0, i64 noundef 0, i64 noundef 1, double noundef 1.000000e+00, ptr noundef nonnull %120, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  %227 = getelementptr inbounds i8, ptr %5, i64 384
  %228 = tail call noundef zeroext i1 @_ZN11alglib_impl20spdmatrixcholeskyrecEPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %120, i64 noundef 0, i64 noundef %93, i1 noundef zeroext true, ptr noundef nonnull %227, ptr noundef %6)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %228, ptr noundef nonnull @.str.139, ptr noundef %6)
  tail call void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %93, i64 noundef %3, ptr noundef nonnull %120, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 1, ptr noundef nonnull %25, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  br i1 %.not.not173217, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %._crit_edge231
  %229 = getelementptr inbounds i8, ptr %5, i64 152
  %230 = getelementptr inbounds i8, ptr %5, i64 72
  br i1 %8, label %.preheader.us.preheader, label %.loopexit

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter279 = and i64 %3, 1
  %231 = icmp eq i64 %3, 1
  %unroll_iter282 = and i64 %3, 9223372036854775806
  %lcmp.mod281.not = icmp eq i64 %xtraiter279, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge235.us
  %.7237.us = phi i64 [ %261, %._crit_edge235.us ], [ 0, %.preheader.us.preheader ]
  br i1 %231, label %._crit_edge235.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.5233.us = phi i64 [ %251, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter283 = phi i64 [ %niter283.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %232 = load ptr, ptr %229, align 8, !tbaa !5
  %233 = getelementptr inbounds ptr, ptr %232, i64 %.7237.us
  %234 = load ptr, ptr %233, align 8, !tbaa !22
  %235 = getelementptr inbounds double, ptr %234, i64 %.5233.us
  %236 = load double, ptr %235, align 8, !tbaa !8
  %237 = load ptr, ptr %230, align 8, !tbaa !5
  %238 = getelementptr inbounds double, ptr %237, i64 %.5233.us
  %239 = load double, ptr %238, align 8, !tbaa !8
  %240 = fmul double %236, %239
  store double %240, ptr %235, align 8, !tbaa !8
  %241 = or disjoint i64 %.5233.us, 1
  %242 = load ptr, ptr %229, align 8, !tbaa !5
  %243 = getelementptr inbounds ptr, ptr %242, i64 %.7237.us
  %244 = load ptr, ptr %243, align 8, !tbaa !22
  %245 = getelementptr inbounds double, ptr %244, i64 %241
  %246 = load double, ptr %245, align 8, !tbaa !8
  %247 = load ptr, ptr %230, align 8, !tbaa !5
  %248 = getelementptr inbounds double, ptr %247, i64 %241
  %249 = load double, ptr %248, align 8, !tbaa !8
  %250 = fmul double %246, %249
  store double %250, ptr %245, align 8, !tbaa !8
  %251 = add nuw nsw i64 %.5233.us, 2
  %niter283.next.1 = add i64 %niter283, 2
  %niter283.ncmp.1 = icmp eq i64 %niter283.next.1, %unroll_iter282
  br i1 %niter283.ncmp.1, label %._crit_edge235.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !36

._crit_edge235.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.5233.us.unr = phi i64 [ 0, %.preheader.us ], [ %251, %.preheader.us.new ]
  br i1 %lcmp.mod281.not, label %._crit_edge235.us, label %._crit_edge235.us.epilog-lcssa

._crit_edge235.us.epilog-lcssa:                   ; preds = %._crit_edge235.us.unr-lcssa
  %252 = load ptr, ptr %229, align 8, !tbaa !5
  %253 = getelementptr inbounds ptr, ptr %252, i64 %.7237.us
  %254 = load ptr, ptr %253, align 8, !tbaa !22
  %255 = getelementptr inbounds double, ptr %254, i64 %.5233.us.unr
  %256 = load double, ptr %255, align 8, !tbaa !8
  %257 = load ptr, ptr %230, align 8, !tbaa !5
  %258 = getelementptr inbounds double, ptr %257, i64 %.5233.us.unr
  %259 = load double, ptr %258, align 8, !tbaa !8
  %260 = fmul double %256, %259
  store double %260, ptr %255, align 8, !tbaa !8
  br label %._crit_edge235.us

._crit_edge235.us:                                ; preds = %._crit_edge235.us.unr-lcssa, %._crit_edge235.us.epilog-lcssa
  %261 = add nuw nsw i64 %.7237.us, 1
  %exitcond252.not = icmp eq i64 %261, %93
  br i1 %exitcond252.not, label %.loopexit, label %.preheader.us, !llvm.loop !37

.loopexit.critedge:                               ; preds = %.preheader184
  tail call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %93, i64 noundef %93, i64 noundef %3, double noundef 1.000000e+00, ptr noundef nonnull %27, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %27, i64 noundef 0, i64 noundef 0, i64 noundef 1, double noundef 1.000000e+00, ptr noundef nonnull %120, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  %262 = getelementptr inbounds i8, ptr %5, i64 384
  %263 = tail call noundef zeroext i1 @_ZN11alglib_impl20spdmatrixcholeskyrecEPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %120, i64 noundef 0, i64 noundef %93, i1 noundef zeroext true, ptr noundef nonnull %262, ptr noundef %6)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %263, ptr noundef nonnull @.str.139, ptr noundef %6)
  tail call void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %93, i64 noundef %3, ptr noundef nonnull %120, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 1, ptr noundef nonnull %25, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge235.us, %.loopexit.critedge, %.preheader.lr.ph, %._crit_edge231, %._crit_edge212
  ret void
}

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

declare noundef zeroext i1 @_ZN11alglib_impl20spdmatrixcholeskyrecEPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

attributes #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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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" }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !15, i64 0, !15, i64 8, !16, i64 16, !20, i64 80, !16, i64 160, !20, i64 224, !20, i64 304, !16, i64 384}
!15 = !{!"long", !6, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !15, i64 0, !15, i64 8, !17, i64 16, !18, i64 24, !6, i64 56}
!17 = !{!"bool", !6, i64 0}
!18 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !19, i64 0, !19, i64 8, !19, i64 16, !19, i64 24}
!19 = !{!"any pointer", !6, i64 0}
!20 = !{!"_ZTSN11alglib_impl9ae_matrixE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !17, i64 32, !18, i64 40, !6, i64 72}
!21 = !{!14, !15, i64 8}
!22 = !{!19, !19, i64 0}
!23 = distinct !{!23, !11}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.unroll.disable"}
!26 = distinct !{!26, !11}
!27 = distinct !{!27, !11}
!28 = distinct !{!28, !11}
!29 = distinct !{!29, !11}
!30 = distinct !{!30, !25}
!31 = distinct !{!31, !11}
!32 = distinct !{!32, !11}
!33 = distinct !{!33, !11}
!34 = distinct !{!34, !11}
!35 = distinct !{!35, !11}
!36 = distinct !{!36, !11}
!37 = distinct !{!37, !11}


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