; 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::precbuflbfgs" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"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 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.133 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [34 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_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_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #1

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl26inexactlbfgspreconditionerEPNS_9ae_vectorElS1_S1_PNS_9ae_matrixElPNS_12precbuflbfgsEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7) #3 {
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i64 %1, ptr %10, align 8, !tbaa !9
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store i64 %5, ptr %14, align 8, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %25 = load ptr, ptr %15, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %25, i32 0, i32 0
  %27 = load i64, ptr %14, align 8, !tbaa !9
  %28 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %26, i64 noundef %27, ptr noundef %28)
  %29 = load ptr, ptr %15, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %29, i32 0, i32 1
  %31 = load i64, ptr %14, align 8, !tbaa !9
  %32 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %31, ptr noundef %32)
  %33 = load ptr, ptr %15, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %33, i32 0, i32 2
  %35 = load i64, ptr %14, align 8, !tbaa !9
  %36 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %34, i64 noundef %35, ptr noundef %36)
  %37 = load ptr, ptr %15, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %37, i32 0, i32 3
  %39 = load i64, ptr %14, align 8, !tbaa !9
  %40 = load i64, ptr %10, align 8, !tbaa !9
  %41 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %38, i64 noundef %39, i64 noundef %40, ptr noundef %41)
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %42, i32 0, i32 4
  %44 = load i64, ptr %14, align 8, !tbaa !9
  %45 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %43, i64 noundef %44, ptr noundef %45)
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %60, %8
  %47 = load i64, ptr %18, align 8, !tbaa !9
  %48 = load i64, ptr %10, align 8, !tbaa !9
  %49 = sub nsw i64 %48, 1
  %50 = icmp sle i64 %47, %49
  br i1 %50, label %51, label %63

51:                                               ; preds = %46
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !11
  %55 = load i64, ptr %18, align 8, !tbaa !9
  %56 = getelementptr inbounds double, ptr %54, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !12
  %58 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %57, double noundef 0.000000e+00)
  %59 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %58, ptr noundef @.str.133, ptr noundef %59)
  br label %60

60:                                               ; preds = %51
  %61 = load i64, ptr %18, align 8, !tbaa !9
  %62 = add nsw i64 %61, 1
  store i64 %62, ptr %18, align 8, !tbaa !9
  br label %46, !llvm.loop !14

63:                                               ; preds = %46
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %78, %63
  %65 = load i64, ptr %18, align 8, !tbaa !9
  %66 = load i64, ptr %14, align 8, !tbaa !9
  %67 = sub nsw i64 %66, 1
  %68 = icmp sle i64 %65, %67
  br i1 %68, label %69, label %81

69:                                               ; preds = %64
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %70, i32 0, i32 4
  %72 = load ptr, ptr %71, align 8, !tbaa !11
  %73 = load i64, ptr %18, align 8, !tbaa !9
  %74 = getelementptr inbounds double, ptr %72, i64 %73
  %75 = load double, ptr %74, align 8, !tbaa !12
  %76 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %75, double noundef 0.000000e+00)
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %76, ptr noundef @.str.134, ptr noundef %77)
  br label %78

78:                                               ; preds = %69
  %79 = load i64, ptr %18, align 8, !tbaa !9
  %80 = add nsw i64 %79, 1
  store i64 %80, ptr %18, align 8, !tbaa !9
  br label %64, !llvm.loop !16

81:                                               ; preds = %64
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %82

82:                                               ; preds = %127, %81
  %83 = load i64, ptr %17, align 8, !tbaa !9
  %84 = load i64, ptr %14, align 8, !tbaa !9
  %85 = sub nsw i64 %84, 1
  %86 = icmp sle i64 %83, %85
  br i1 %86, label %87, label %130

87:                                               ; preds = %82
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %88, i32 0, i32 6
  %90 = load ptr, ptr %89, align 8, !tbaa !11
  %91 = load i64, ptr %17, align 8, !tbaa !9
  %92 = getelementptr inbounds ptr, ptr %90, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = getelementptr inbounds double, ptr %93, i64 0
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %95, i32 0, i32 6
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = load i64, ptr %17, align 8, !tbaa !9
  %99 = getelementptr inbounds ptr, ptr %97, i64 %98
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = getelementptr inbounds double, ptr %100, i64 0
  %102 = load i64, ptr %10, align 8, !tbaa !9
  %103 = sub nsw i64 %102, 1
  %104 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %103)
  %105 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %94, i64 noundef 1, ptr noundef %101, i64 noundef 1, i64 noundef %104)
  store double %105, ptr %20, align 8, !tbaa !12
  %106 = load double, ptr %20, align 8, !tbaa !12
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %107, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !11
  %110 = load i64, ptr %17, align 8, !tbaa !9
  %111 = getelementptr inbounds double, ptr %109, i64 %110
  %112 = load double, ptr %111, align 8, !tbaa !12
  %113 = fmul double %106, %112
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %115, i32 0, i32 4
  %117 = load ptr, ptr %116, align 8, !tbaa !11
  %118 = load i64, ptr %17, align 8, !tbaa !9
  %119 = getelementptr inbounds double, ptr %117, i64 %118
  store double %113, ptr %119, align 8, !tbaa !12
  %120 = load i64, ptr %17, align 8, !tbaa !9
  %121 = load ptr, ptr %15, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %121, i32 0, i32 4
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !11
  %125 = load i64, ptr %17, align 8, !tbaa !9
  %126 = getelementptr inbounds i64, ptr %124, i64 %125
  store i64 %120, ptr %126, align 8, !tbaa !9
  br label %127

127:                                              ; preds = %87
  %128 = load i64, ptr %17, align 8, !tbaa !9
  %129 = add nsw i64 %128, 1
  store i64 %129, ptr %17, align 8, !tbaa !9
  br label %82, !llvm.loop !17

130:                                              ; preds = %82
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %131, i32 0, i32 0
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %133, i32 0, i32 4
  %135 = load ptr, ptr %15, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %135, i32 0, i32 5
  %137 = load ptr, ptr %15, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %137, i32 0, i32 6
  %139 = load i64, ptr %14, align 8, !tbaa !9
  %140 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl12tagsortfastiEPNS_9ae_vectorES1_S1_S1_lPNS_8ae_stateE(ptr noundef %132, ptr noundef %134, ptr noundef %136, ptr noundef %138, i64 noundef %139, ptr noundef %140)
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %141

141:                                              ; preds = %295, %130
  %142 = load i64, ptr %17, align 8, !tbaa !9
  %143 = load i64, ptr %14, align 8, !tbaa !9
  %144 = sub nsw i64 %143, 1
  %145 = icmp sle i64 %142, %144
  br i1 %145, label %146, label %298

146:                                              ; preds = %141
  %147 = load ptr, ptr %15, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %147, i32 0, i32 4
  %149 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %148, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !11
  %151 = load i64, ptr %17, align 8, !tbaa !9
  %152 = getelementptr inbounds i64, ptr %150, i64 %151
  %153 = load i64, ptr %152, align 8, !tbaa !9
  store i64 %153, ptr %18, align 8, !tbaa !9
  %154 = load ptr, ptr %13, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %154, i32 0, i32 6
  %156 = load ptr, ptr %155, align 8, !tbaa !11
  %157 = load i64, ptr %18, align 8, !tbaa !9
  %158 = getelementptr inbounds ptr, ptr %156, i64 %157
  %159 = load ptr, ptr %158, align 8, !tbaa !5
  %160 = getelementptr inbounds double, ptr %159, i64 0
  %161 = load ptr, ptr %13, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %161, i32 0, i32 6
  %163 = load ptr, ptr %162, align 8, !tbaa !11
  %164 = load i64, ptr %18, align 8, !tbaa !9
  %165 = getelementptr inbounds ptr, ptr %163, i64 %164
  %166 = load ptr, ptr %165, align 8, !tbaa !5
  %167 = getelementptr inbounds double, ptr %166, i64 0
  %168 = load i64, ptr %10, align 8, !tbaa !9
  %169 = sub nsw i64 %168, 1
  %170 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %169)
  %171 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %160, i64 noundef 1, ptr noundef %167, i64 noundef 1, i64 noundef %170)
  store double %171, ptr %20, align 8, !tbaa !12
  %172 = load double, ptr %20, align 8, !tbaa !12
  %173 = load ptr, ptr %12, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %173, i32 0, i32 4
  %175 = load ptr, ptr %174, align 8, !tbaa !11
  %176 = load i64, ptr %18, align 8, !tbaa !9
  %177 = getelementptr inbounds double, ptr %175, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !12
  %179 = fmul double %172, %178
  store double %179, ptr %20, align 8, !tbaa !12
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %180

180:                                              ; preds = %213, %146
  %181 = load i64, ptr %19, align 8, !tbaa !9
  %182 = load i64, ptr %10, align 8, !tbaa !9
  %183 = sub nsw i64 %182, 1
  %184 = icmp sle i64 %181, %183
  br i1 %184, label %185, label %216

185:                                              ; preds = %180
  %186 = load ptr, ptr %11, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %186, i32 0, i32 4
  %188 = load ptr, ptr %187, align 8, !tbaa !11
  %189 = load i64, ptr %19, align 8, !tbaa !9
  %190 = getelementptr inbounds double, ptr %188, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !12
  %192 = load double, ptr %20, align 8, !tbaa !12
  %193 = fadd double %191, %192
  %194 = load ptr, ptr %13, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %194, i32 0, i32 6
  %196 = load ptr, ptr %195, align 8, !tbaa !11
  %197 = load i64, ptr %18, align 8, !tbaa !9
  %198 = getelementptr inbounds ptr, ptr %196, i64 %197
  %199 = load ptr, ptr %198, align 8, !tbaa !5
  %200 = load i64, ptr %19, align 8, !tbaa !9
  %201 = getelementptr inbounds double, ptr %199, i64 %200
  %202 = load double, ptr %201, align 8, !tbaa !12
  %203 = fmul double %193, %202
  %204 = load ptr, ptr %15, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %204, i32 0, i32 3
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %205, i32 0, i32 6
  %207 = load ptr, ptr %206, align 8, !tbaa !11
  %208 = load i64, ptr %18, align 8, !tbaa !9
  %209 = getelementptr inbounds ptr, ptr %207, i64 %208
  %210 = load ptr, ptr %209, align 8, !tbaa !5
  %211 = load i64, ptr %19, align 8, !tbaa !9
  %212 = getelementptr inbounds double, ptr %210, i64 %211
  store double %203, ptr %212, align 8, !tbaa !12
  br label %213

213:                                              ; preds = %185
  %214 = load i64, ptr %19, align 8, !tbaa !9
  %215 = add nsw i64 %214, 1
  store i64 %215, ptr %19, align 8, !tbaa !9
  br label %180, !llvm.loop !18

216:                                              ; preds = %180
  store double 0.000000e+00, ptr %20, align 8, !tbaa !12
  store double 0.000000e+00, ptr %21, align 8, !tbaa !12
  store double 0.000000e+00, ptr %22, align 8, !tbaa !12
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %217

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

222:                                              ; preds = %217
  %223 = load ptr, ptr %13, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %223, i32 0, i32 6
  %225 = load ptr, ptr %224, align 8, !tbaa !11
  %226 = load i64, ptr %18, align 8, !tbaa !9
  %227 = getelementptr inbounds ptr, ptr %225, i64 %226
  %228 = load ptr, ptr %227, align 8, !tbaa !5
  %229 = load i64, ptr %19, align 8, !tbaa !9
  %230 = getelementptr inbounds double, ptr %228, i64 %229
  %231 = load double, ptr %230, align 8, !tbaa !12
  store double %231, ptr %23, align 8, !tbaa !12
  %232 = load ptr, ptr %15, align 8, !tbaa !5
  %233 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %232, i32 0, i32 3
  %234 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %233, i32 0, i32 6
  %235 = load ptr, ptr %234, align 8, !tbaa !11
  %236 = load i64, ptr %18, align 8, !tbaa !9
  %237 = getelementptr inbounds ptr, ptr %235, i64 %236
  %238 = load ptr, ptr %237, align 8, !tbaa !5
  %239 = load i64, ptr %19, align 8, !tbaa !9
  %240 = getelementptr inbounds double, ptr %238, i64 %239
  %241 = load double, ptr %240, align 8, !tbaa !12
  store double %241, ptr %24, align 8, !tbaa !12
  %242 = load double, ptr %20, align 8, !tbaa !12
  %243 = load double, ptr %23, align 8, !tbaa !12
  %244 = load double, ptr %24, align 8, !tbaa !12
  %245 = call double @llvm.fmuladd.f64(double %243, double %244, double %242)
  store double %245, ptr %20, align 8, !tbaa !12
  %246 = load double, ptr %21, align 8, !tbaa !12
  %247 = load double, ptr %23, align 8, !tbaa !12
  %248 = load double, ptr %23, align 8, !tbaa !12
  %249 = call double @llvm.fmuladd.f64(double %247, double %248, double %246)
  store double %249, ptr %21, align 8, !tbaa !12
  %250 = load double, ptr %22, align 8, !tbaa !12
  %251 = load double, ptr %24, align 8, !tbaa !12
  %252 = load double, ptr %24, align 8, !tbaa !12
  %253 = call double @llvm.fmuladd.f64(double %251, double %252, double %250)
  store double %253, ptr %22, align 8, !tbaa !12
  br label %254

254:                                              ; preds = %222
  %255 = load i64, ptr %19, align 8, !tbaa !9
  %256 = add nsw i64 %255, 1
  store i64 %256, ptr %19, align 8, !tbaa !9
  br label %217, !llvm.loop !19

257:                                              ; preds = %217
  %258 = load double, ptr %20, align 8, !tbaa !12
  %259 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %258, double noundef 0.000000e+00)
  br i1 %259, label %260, label %287

260:                                              ; preds = %257
  %261 = load double, ptr %21, align 8, !tbaa !12
  %262 = load double, ptr %22, align 8, !tbaa !12
  %263 = fmul double %261, %262
  %264 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %263, double noundef 0.000000e+00)
  br i1 %264, label %265, label %287

265:                                              ; preds = %260
  %266 = load double, ptr %20, align 8, !tbaa !12
  %267 = load double, ptr %21, align 8, !tbaa !12
  %268 = load double, ptr %22, align 8, !tbaa !12
  %269 = fmul double %267, %268
  %270 = load ptr, ptr %16, align 8, !tbaa !5
  %271 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %269, ptr noundef %270)
  %272 = fdiv double %266, %271
  %273 = load i64, ptr %10, align 8, !tbaa !9
  %274 = mul nsw i64 %273, 10
  %275 = sitofp i64 %274 to double
  %276 = fmul double %275, 5.000000e-16
  %277 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %272, double noundef %276)
  br i1 %277, label %278, label %287

278:                                              ; preds = %265
  %279 = load double, ptr %20, align 8, !tbaa !12
  %280 = fdiv double 1.000000e+00, %279
  %281 = load ptr, ptr %15, align 8, !tbaa !5
  %282 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %281, i32 0, i32 2
  %283 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %282, i32 0, i32 4
  %284 = load ptr, ptr %283, align 8, !tbaa !11
  %285 = load i64, ptr %18, align 8, !tbaa !9
  %286 = getelementptr inbounds double, ptr %284, i64 %285
  store double %280, ptr %286, align 8, !tbaa !12
  br label %294

287:                                              ; preds = %265, %260, %257
  %288 = load ptr, ptr %15, align 8, !tbaa !5
  %289 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %288, i32 0, i32 2
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %289, i32 0, i32 4
  %291 = load ptr, ptr %290, align 8, !tbaa !11
  %292 = load i64, ptr %18, align 8, !tbaa !9
  %293 = getelementptr inbounds double, ptr %291, i64 %292
  store double 0.000000e+00, ptr %293, align 8, !tbaa !12
  br label %294

294:                                              ; preds = %287, %278
  br label %295

295:                                              ; preds = %294
  %296 = load i64, ptr %17, align 8, !tbaa !9
  %297 = add nsw i64 %296, 1
  store i64 %297, ptr %17, align 8, !tbaa !9
  br label %141, !llvm.loop !20

298:                                              ; preds = %141
  %299 = load i64, ptr %14, align 8, !tbaa !9
  %300 = sub nsw i64 %299, 1
  store i64 %300, ptr %17, align 8, !tbaa !9
  br label %301

301:                                              ; preds = %359, %298
  %302 = load i64, ptr %17, align 8, !tbaa !9
  %303 = icmp sge i64 %302, 0
  br i1 %303, label %304, label %362

304:                                              ; preds = %301
  %305 = load ptr, ptr %15, align 8, !tbaa !5
  %306 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %305, i32 0, i32 4
  %307 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %306, i32 0, i32 4
  %308 = load ptr, ptr %307, align 8, !tbaa !11
  %309 = load i64, ptr %17, align 8, !tbaa !9
  %310 = getelementptr inbounds i64, ptr %308, i64 %309
  %311 = load i64, ptr %310, align 8, !tbaa !9
  store i64 %311, ptr %18, align 8, !tbaa !9
  %312 = load ptr, ptr %13, align 8, !tbaa !5
  %313 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %312, i32 0, i32 6
  %314 = load ptr, ptr %313, align 8, !tbaa !11
  %315 = load i64, ptr %18, align 8, !tbaa !9
  %316 = getelementptr inbounds ptr, ptr %314, i64 %315
  %317 = load ptr, ptr %316, align 8, !tbaa !5
  %318 = getelementptr inbounds double, ptr %317, i64 0
  %319 = load ptr, ptr %9, align 8, !tbaa !5
  %320 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %319, i32 0, i32 4
  %321 = load ptr, ptr %320, align 8, !tbaa !11
  %322 = getelementptr inbounds double, ptr %321, i64 0
  %323 = load i64, ptr %10, align 8, !tbaa !9
  %324 = sub nsw i64 %323, 1
  %325 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %324)
  %326 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %318, i64 noundef 1, ptr noundef %322, i64 noundef 1, i64 noundef %325)
  store double %326, ptr %20, align 8, !tbaa !12
  %327 = load ptr, ptr %15, align 8, !tbaa !5
  %328 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %327, i32 0, i32 2
  %329 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %328, i32 0, i32 4
  %330 = load ptr, ptr %329, align 8, !tbaa !11
  %331 = load i64, ptr %18, align 8, !tbaa !9
  %332 = getelementptr inbounds double, ptr %330, i64 %331
  %333 = load double, ptr %332, align 8, !tbaa !12
  %334 = load double, ptr %20, align 8, !tbaa !12
  %335 = fmul double %333, %334
  store double %335, ptr %20, align 8, !tbaa !12
  %336 = load double, ptr %20, align 8, !tbaa !12
  %337 = load ptr, ptr %15, align 8, !tbaa !5
  %338 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %337, i32 0, i32 1
  %339 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %338, i32 0, i32 4
  %340 = load ptr, ptr %339, align 8, !tbaa !11
  %341 = load i64, ptr %18, align 8, !tbaa !9
  %342 = getelementptr inbounds double, ptr %340, i64 %341
  store double %336, ptr %342, align 8, !tbaa !12
  %343 = load ptr, ptr %9, align 8, !tbaa !5
  %344 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %343, i32 0, i32 4
  %345 = load ptr, ptr %344, align 8, !tbaa !11
  %346 = getelementptr inbounds double, ptr %345, i64 0
  %347 = load ptr, ptr %15, align 8, !tbaa !5
  %348 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %347, i32 0, i32 3
  %349 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %348, i32 0, i32 6
  %350 = load ptr, ptr %349, align 8, !tbaa !11
  %351 = load i64, ptr %18, align 8, !tbaa !9
  %352 = getelementptr inbounds ptr, ptr %350, i64 %351
  %353 = load ptr, ptr %352, align 8, !tbaa !5
  %354 = getelementptr inbounds double, ptr %353, i64 0
  %355 = load i64, ptr %10, align 8, !tbaa !9
  %356 = sub nsw i64 %355, 1
  %357 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %356)
  %358 = load double, ptr %20, align 8, !tbaa !12
  call void @_ZN11alglib_impl9ae_v_subdEPdlPKdlld(ptr noundef %346, i64 noundef 1, ptr noundef %354, i64 noundef 1, i64 noundef %357, double noundef %358)
  br label %359

359:                                              ; preds = %304
  %360 = load i64, ptr %17, align 8, !tbaa !9
  %361 = add nsw i64 %360, -1
  store i64 %361, ptr %17, align 8, !tbaa !9
  br label %301, !llvm.loop !21

362:                                              ; preds = %301
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %363

363:                                              ; preds = %387, %362
  %364 = load i64, ptr %19, align 8, !tbaa !9
  %365 = load i64, ptr %10, align 8, !tbaa !9
  %366 = sub nsw i64 %365, 1
  %367 = icmp sle i64 %364, %366
  br i1 %367, label %368, label %390

368:                                              ; preds = %363
  %369 = load ptr, ptr %9, align 8, !tbaa !5
  %370 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %369, i32 0, i32 4
  %371 = load ptr, ptr %370, align 8, !tbaa !11
  %372 = load i64, ptr %19, align 8, !tbaa !9
  %373 = getelementptr inbounds double, ptr %371, i64 %372
  %374 = load double, ptr %373, align 8, !tbaa !12
  %375 = load ptr, ptr %11, align 8, !tbaa !5
  %376 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %375, i32 0, i32 4
  %377 = load ptr, ptr %376, align 8, !tbaa !11
  %378 = load i64, ptr %19, align 8, !tbaa !9
  %379 = getelementptr inbounds double, ptr %377, i64 %378
  %380 = load double, ptr %379, align 8, !tbaa !12
  %381 = fdiv double %374, %380
  %382 = load ptr, ptr %9, align 8, !tbaa !5
  %383 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %382, i32 0, i32 4
  %384 = load ptr, ptr %383, align 8, !tbaa !11
  %385 = load i64, ptr %19, align 8, !tbaa !9
  %386 = getelementptr inbounds double, ptr %384, i64 %385
  store double %381, ptr %386, align 8, !tbaa !12
  br label %387

387:                                              ; preds = %368
  %388 = load i64, ptr %19, align 8, !tbaa !9
  %389 = add nsw i64 %388, 1
  store i64 %389, ptr %19, align 8, !tbaa !9
  br label %363, !llvm.loop !22

390:                                              ; preds = %363
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %391

391:                                              ; preds = %452, %390
  %392 = load i64, ptr %17, align 8, !tbaa !9
  %393 = load i64, ptr %14, align 8, !tbaa !9
  %394 = sub nsw i64 %393, 1
  %395 = icmp sle i64 %392, %394
  br i1 %395, label %396, label %455

396:                                              ; preds = %391
  %397 = load ptr, ptr %15, align 8, !tbaa !5
  %398 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %397, i32 0, i32 4
  %399 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %398, i32 0, i32 4
  %400 = load ptr, ptr %399, align 8, !tbaa !11
  %401 = load i64, ptr %17, align 8, !tbaa !9
  %402 = getelementptr inbounds i64, ptr %400, i64 %401
  %403 = load i64, ptr %402, align 8, !tbaa !9
  store i64 %403, ptr %18, align 8, !tbaa !9
  %404 = load ptr, ptr %15, align 8, !tbaa !5
  %405 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %404, i32 0, i32 3
  %406 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %405, i32 0, i32 6
  %407 = load ptr, ptr %406, align 8, !tbaa !11
  %408 = load i64, ptr %18, align 8, !tbaa !9
  %409 = getelementptr inbounds ptr, ptr %407, i64 %408
  %410 = load ptr, ptr %409, align 8, !tbaa !5
  %411 = getelementptr inbounds double, ptr %410, i64 0
  %412 = load ptr, ptr %9, align 8, !tbaa !5
  %413 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %412, i32 0, i32 4
  %414 = load ptr, ptr %413, align 8, !tbaa !11
  %415 = getelementptr inbounds double, ptr %414, i64 0
  %416 = load i64, ptr %10, align 8, !tbaa !9
  %417 = sub nsw i64 %416, 1
  %418 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %417)
  %419 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %411, i64 noundef 1, ptr noundef %415, i64 noundef 1, i64 noundef %418)
  store double %419, ptr %20, align 8, !tbaa !12
  %420 = load ptr, ptr %15, align 8, !tbaa !5
  %421 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", ptr %420, i32 0, i32 1
  %422 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %421, i32 0, i32 4
  %423 = load ptr, ptr %422, align 8, !tbaa !11
  %424 = load i64, ptr %18, 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 %15, align 8, !tbaa !5
  %428 = getelementptr inbounds %"struct.alglib_impl::precbuflbfgs", 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 %18, align 8, !tbaa !9
  %432 = getelementptr inbounds double, ptr %430, i64 %431
  %433 = load double, ptr %432, align 8, !tbaa !12
  %434 = load double, ptr %20, align 8, !tbaa !12
  %435 = fneg double %433
  %436 = call double @llvm.fmuladd.f64(double %435, double %434, double %426)
  store double %436, ptr %20, align 8, !tbaa !12
  %437 = load ptr, ptr %9, align 8, !tbaa !5
  %438 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %437, i32 0, i32 4
  %439 = load ptr, ptr %438, align 8, !tbaa !11
  %440 = getelementptr inbounds double, ptr %439, i64 0
  %441 = load ptr, ptr %13, align 8, !tbaa !5
  %442 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %441, i32 0, i32 6
  %443 = load ptr, ptr %442, align 8, !tbaa !11
  %444 = load i64, ptr %18, align 8, !tbaa !9
  %445 = getelementptr inbounds ptr, ptr %443, i64 %444
  %446 = load ptr, ptr %445, align 8, !tbaa !5
  %447 = getelementptr inbounds double, ptr %446, i64 0
  %448 = load i64, ptr %10, align 8, !tbaa !9
  %449 = sub nsw i64 %448, 1
  %450 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %449)
  %451 = load double, ptr %20, align 8, !tbaa !12
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %440, i64 noundef 1, ptr noundef %447, i64 noundef 1, i64 noundef %450, double noundef %451)
  br label %452

452:                                              ; preds = %396
  %453 = load i64, ptr %17, align 8, !tbaa !9
  %454 = add nsw i64 %453, 1
  store i64 %454, ptr %17, align 8, !tbaa !9
  br label %391, !llvm.loop !23

455:                                              ; preds = %391
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  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
  ret void
}

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

declare void @_ZN11alglib_impl12tagsortfastiEPNS_9ae_vectorES1_S1_S1_lPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr 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 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !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.133 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [34 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_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_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl26inexactlbfgspreconditionerEPNS_9ae_vectorElS1_S1_PNS_9ae_matrixElPNS_12precbuflbfgsEPNS_8ae_stateE(ptr nocapture noundef readonly %0, i64 noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, i64 noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #2 {
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %6, i64 noundef %5, ptr noundef %7)
  %9 = getelementptr inbounds i8, ptr %6, i64 64
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %5, ptr noundef %7)
  %10 = getelementptr inbounds i8, ptr %6, i64 128
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %5, ptr noundef %7)
  %11 = getelementptr inbounds i8, ptr %6, i64 192
  tail call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %5, i64 noundef %1, ptr noundef %7)
  %12 = getelementptr inbounds i8, ptr %6, i64 272
  tail call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %5, ptr noundef %7)
  %.not.not175 = icmp sgt i64 %1, 0
  br i1 %.not.not175, label %.lr.ph, label %.preheader174

.lr.ph:                                           ; preds = %8
  %13 = getelementptr inbounds i8, ptr %2, i64 56
  br label %16

.preheader174:                                    ; preds = %16, %8
  %14 = add nsw i64 %1, -1
  %.not.not163177 = icmp sgt i64 %5, 0
  br i1 %.not.not163177, label %.lr.ph179, label %._crit_edge.thread

.lr.ph179:                                        ; preds = %.preheader174
  %15 = getelementptr inbounds i8, ptr %3, i64 56
  br label %26

16:                                               ; preds = %.lr.ph, %16
  %.0153176 = phi i64 [ 0, %.lr.ph ], [ %21, %16 ]
  %17 = load ptr, ptr %13, align 8, !tbaa !5
  %18 = getelementptr inbounds double, ptr %17, i64 %.0153176
  %19 = load double, ptr %18, align 8, !tbaa !8
  %20 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %19, double noundef 0.000000e+00)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.133, ptr noundef %7)
  %21 = add nuw nsw i64 %.0153176, 1
  %exitcond.not = icmp eq i64 %21, %1
  br i1 %exitcond.not, label %.preheader174, label %16, !llvm.loop !10

.preheader173:                                    ; preds = %26
  br i1 %.not.not163177, label %.lr.ph182, label %._crit_edge.thread

.lr.ph182:                                        ; preds = %.preheader173
  %22 = getelementptr inbounds i8, ptr %4, i64 72
  %23 = getelementptr inbounds i8, ptr %3, i64 56
  %24 = getelementptr inbounds i8, ptr %6, i64 56
  %25 = getelementptr inbounds i8, ptr %6, i64 328
  br label %32

26:                                               ; preds = %.lr.ph179, %26
  %.1154178 = phi i64 [ 0, %.lr.ph179 ], [ %31, %26 ]
  %27 = load ptr, ptr %15, align 8, !tbaa !5
  %28 = getelementptr inbounds double, ptr %27, i64 %.1154178
  %29 = load double, ptr %28, align 8, !tbaa !8
  %30 = tail call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %29, double noundef 0.000000e+00)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef nonnull @.str.134, ptr noundef %7)
  %31 = add nuw nsw i64 %.1154178, 1
  %exitcond211.not = icmp eq i64 %31, %5
  br i1 %exitcond211.not, label %.preheader173, label %26, !llvm.loop !12

32:                                               ; preds = %.lr.ph182, %32
  %.0181 = phi i64 [ 0, %.lr.ph182 ], [ %46, %32 ]
  %33 = load ptr, ptr %22, align 8, !tbaa !5
  %34 = getelementptr inbounds ptr, ptr %33, i64 %.0181
  %35 = load ptr, ptr %34, align 8, !tbaa !13
  %36 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %14)
  %37 = tail call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %35, i64 noundef 1, ptr noundef %35, i64 noundef 1, i64 noundef %36)
  %38 = load ptr, ptr %23, align 8, !tbaa !5
  %39 = getelementptr inbounds double, ptr %38, i64 %.0181
  %40 = load double, ptr %39, align 8, !tbaa !8
  %41 = fmul double %37, %40
  %42 = load ptr, ptr %24, align 8, !tbaa !5
  %43 = getelementptr inbounds double, ptr %42, i64 %.0181
  store double %41, ptr %43, align 8, !tbaa !8
  %44 = load ptr, ptr %25, align 8, !tbaa !5
  %45 = getelementptr inbounds i64, ptr %44, i64 %.0181
  store i64 %.0181, ptr %45, align 8, !tbaa !15
  %46 = add nuw nsw i64 %.0181, 1
  %exitcond212.not = icmp eq i64 %46, %5
  br i1 %exitcond212.not, label %._crit_edge, label %32, !llvm.loop !17

._crit_edge.thread:                               ; preds = %.preheader173, %.preheader174
  %47 = getelementptr inbounds i8, ptr %6, i64 336
  %48 = getelementptr inbounds i8, ptr %6, i64 400
  tail call void @_ZN11alglib_impl12tagsortfastiEPNS_9ae_vectorES1_S1_S1_lPNS_8ae_stateE(ptr noundef %6, ptr noundef nonnull %12, ptr noundef nonnull %47, ptr noundef nonnull %48, i64 noundef %5, ptr noundef %7)
  br label %.preheader170

._crit_edge:                                      ; preds = %32
  %49 = getelementptr inbounds i8, ptr %6, i64 336
  %50 = getelementptr inbounds i8, ptr %6, i64 400
  tail call void @_ZN11alglib_impl12tagsortfastiEPNS_9ae_vectorES1_S1_S1_lPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %49, ptr noundef nonnull %50, i64 noundef %5, ptr noundef %7)
  br i1 %.not.not163177, label %.lr.ph199, label %.preheader170

.lr.ph199:                                        ; preds = %._crit_edge
  %51 = getelementptr inbounds i8, ptr %6, i64 328
  %52 = getelementptr inbounds i8, ptr %4, i64 72
  %53 = getelementptr inbounds i8, ptr %3, i64 56
  %54 = getelementptr inbounds i8, ptr %2, i64 56
  %55 = getelementptr inbounds i8, ptr %6, i64 264
  %56 = mul nsw i64 %1, 10
  %57 = sitofp i64 %56 to double
  %58 = fmul double %57, 5.000000e-16
  %59 = getelementptr inbounds i8, ptr %6, i64 184
  %60 = add i64 %1, -1
  %xtraiter = and i64 %1, 1
  %61 = icmp eq i64 %60, 0
  %unroll_iter = and i64 %1, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %xtraiter225 = and i64 %1, 1
  %62 = icmp eq i64 %60, 0
  %unroll_iter229 = and i64 %1, 9223372036854775806
  %lcmp.mod226.not = icmp eq i64 %xtraiter225, 0
  br label %69

.preheader171:                                    ; preds = %175
  br i1 %.not.not163177, label %.lr.ph201, label %.preheader170

.lr.ph201:                                        ; preds = %.preheader171
  %63 = getelementptr inbounds i8, ptr %6, i64 328
  %64 = getelementptr inbounds i8, ptr %4, i64 72
  %65 = getelementptr inbounds i8, ptr %0, i64 56
  %66 = getelementptr inbounds i8, ptr %6, i64 184
  %67 = getelementptr inbounds i8, ptr %6, i64 120
  %68 = getelementptr inbounds i8, ptr %6, i64 264
  br label %182

69:                                               ; preds = %.lr.ph199, %175
  %.1197 = phi i64 [ 0, %.lr.ph199 ], [ %178, %175 ]
  %70 = load ptr, ptr %51, align 8, !tbaa !5
  %71 = getelementptr inbounds i64, ptr %70, i64 %.1197
  %72 = load i64, ptr %71, align 8, !tbaa !15
  %73 = load ptr, ptr %52, align 8, !tbaa !5
  %74 = getelementptr inbounds ptr, ptr %73, i64 %72
  %75 = load ptr, ptr %74, align 8, !tbaa !13
  %76 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %14)
  %77 = tail call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %75, i64 noundef 1, ptr noundef %75, i64 noundef 1, i64 noundef %76)
  %78 = load ptr, ptr %53, align 8, !tbaa !5
  %79 = getelementptr inbounds double, ptr %78, i64 %72
  %80 = load double, ptr %79, align 8, !tbaa !8
  %81 = fmul double %77, %80
  br i1 %.not.not175, label %.lr.ph186.preheader, label %._crit_edge193

.lr.ph186.preheader:                              ; preds = %69
  br i1 %61, label %.preheader172.unr-lcssa, label %.lr.ph186

.preheader172.unr-lcssa:                          ; preds = %.lr.ph186, %.lr.ph186.preheader
  %.0158184.unr = phi i64 [ 0, %.lr.ph186.preheader ], [ %131, %.lr.ph186 ]
  br i1 %lcmp.mod.not, label %.preheader172, label %.lr.ph186.epil

.lr.ph186.epil:                                   ; preds = %.preheader172.unr-lcssa
  %82 = load ptr, ptr %54, align 8, !tbaa !5
  %83 = getelementptr inbounds double, ptr %82, i64 %.0158184.unr
  %84 = load double, ptr %83, align 8, !tbaa !8
  %85 = fadd double %81, %84
  %86 = load ptr, ptr %52, align 8, !tbaa !5
  %87 = getelementptr inbounds ptr, ptr %86, i64 %72
  %88 = load ptr, ptr %87, align 8, !tbaa !13
  %89 = getelementptr inbounds double, ptr %88, i64 %.0158184.unr
  %90 = load double, ptr %89, align 8, !tbaa !8
  %91 = fmul double %85, %90
  %92 = load ptr, ptr %55, align 8, !tbaa !5
  %93 = getelementptr inbounds ptr, ptr %92, i64 %72
  %94 = load ptr, ptr %93, align 8, !tbaa !13
  %95 = getelementptr inbounds double, ptr %94, i64 %.0158184.unr
  store double %91, ptr %95, align 8, !tbaa !8
  br label %.preheader172

.preheader172:                                    ; preds = %.preheader172.unr-lcssa, %.lr.ph186.epil
  br i1 %.not.not175, label %.lr.ph192, label %._crit_edge193

.lr.ph192:                                        ; preds = %.preheader172
  %96 = load ptr, ptr %52, align 8, !tbaa !5
  %97 = getelementptr inbounds ptr, ptr %96, i64 %72
  %98 = load ptr, ptr %97, align 8, !tbaa !13
  %99 = load ptr, ptr %55, align 8, !tbaa !5
  %100 = getelementptr inbounds ptr, ptr %99, i64 %72
  %101 = load ptr, ptr %100, align 8, !tbaa !13
  br i1 %62, label %._crit_edge193.loopexit.unr-lcssa, label %.lr.ph192.new

.lr.ph186:                                        ; preds = %.lr.ph186.preheader, %.lr.ph186
  %.0158184 = phi i64 [ %131, %.lr.ph186 ], [ 0, %.lr.ph186.preheader ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph186 ], [ 0, %.lr.ph186.preheader ]
  %102 = load ptr, ptr %54, align 8, !tbaa !5
  %103 = getelementptr inbounds double, ptr %102, i64 %.0158184
  %104 = load double, ptr %103, align 8, !tbaa !8
  %105 = fadd double %81, %104
  %106 = load ptr, ptr %52, align 8, !tbaa !5
  %107 = getelementptr inbounds ptr, ptr %106, i64 %72
  %108 = load ptr, ptr %107, align 8, !tbaa !13
  %109 = getelementptr inbounds double, ptr %108, i64 %.0158184
  %110 = load double, ptr %109, align 8, !tbaa !8
  %111 = fmul double %105, %110
  %112 = load ptr, ptr %55, align 8, !tbaa !5
  %113 = getelementptr inbounds ptr, ptr %112, i64 %72
  %114 = load ptr, ptr %113, align 8, !tbaa !13
  %115 = getelementptr inbounds double, ptr %114, i64 %.0158184
  store double %111, ptr %115, align 8, !tbaa !8
  %116 = or disjoint i64 %.0158184, 1
  %117 = load ptr, ptr %54, align 8, !tbaa !5
  %118 = getelementptr inbounds double, ptr %117, i64 %116
  %119 = load double, ptr %118, align 8, !tbaa !8
  %120 = fadd double %81, %119
  %121 = load ptr, ptr %52, align 8, !tbaa !5
  %122 = getelementptr inbounds ptr, ptr %121, i64 %72
  %123 = load ptr, ptr %122, align 8, !tbaa !13
  %124 = getelementptr inbounds double, ptr %123, i64 %116
  %125 = load double, ptr %124, align 8, !tbaa !8
  %126 = fmul double %120, %125
  %127 = load ptr, ptr %55, align 8, !tbaa !5
  %128 = getelementptr inbounds ptr, ptr %127, i64 %72
  %129 = load ptr, ptr %128, align 8, !tbaa !13
  %130 = getelementptr inbounds double, ptr %129, i64 %116
  store double %126, ptr %130, align 8, !tbaa !8
  %131 = add nuw nsw i64 %.0158184, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader172.unr-lcssa, label %.lr.ph186, !llvm.loop !18

.lr.ph192.new:                                    ; preds = %.lr.ph192, %.lr.ph192.new
  %.0155191 = phi double [ %151, %.lr.ph192.new ], [ 0.000000e+00, %.lr.ph192 ]
  %.1159188 = phi i64 [ %152, %.lr.ph192.new ], [ 0, %.lr.ph192 ]
  %132 = phi <2 x double> [ %150, %.lr.ph192.new ], [ zeroinitializer, %.lr.ph192 ]
  %niter230 = phi i64 [ %niter230.next.1, %.lr.ph192.new ], [ 0, %.lr.ph192 ]
  %133 = getelementptr inbounds double, ptr %98, i64 %.1159188
  %134 = load double, ptr %133, align 8, !tbaa !8
  %135 = getelementptr inbounds double, ptr %101, i64 %.1159188
  %136 = load double, ptr %135, align 8, !tbaa !8
  %137 = insertelement <2 x double> poison, double %134, i64 0
  %138 = shufflevector <2 x double> %137, <2 x double> poison, <2 x i32> zeroinitializer
  %139 = insertelement <2 x double> %137, double %136, i64 1
  %140 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %138, <2 x double> %139, <2 x double> %132)
  %141 = tail call double @llvm.fmuladd.f64(double %136, double %136, double %.0155191)
  %142 = or disjoint i64 %.1159188, 1
  %143 = getelementptr inbounds double, ptr %98, i64 %142
  %144 = load double, ptr %143, align 8, !tbaa !8
  %145 = getelementptr inbounds double, ptr %101, i64 %142
  %146 = load double, ptr %145, align 8, !tbaa !8
  %147 = insertelement <2 x double> poison, double %144, i64 0
  %148 = shufflevector <2 x double> %147, <2 x double> poison, <2 x i32> zeroinitializer
  %149 = insertelement <2 x double> %147, double %146, i64 1
  %150 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %148, <2 x double> %149, <2 x double> %140)
  %151 = tail call double @llvm.fmuladd.f64(double %146, double %146, double %141)
  %152 = add nuw nsw i64 %.1159188, 2
  %niter230.next.1 = add i64 %niter230, 2
  %niter230.ncmp.1 = icmp eq i64 %niter230.next.1, %unroll_iter229
  br i1 %niter230.ncmp.1, label %._crit_edge193.loopexit.unr-lcssa, label %.lr.ph192.new, !llvm.loop !19

._crit_edge193.loopexit.unr-lcssa:                ; preds = %.lr.ph192.new, %.lr.ph192
  %.lcssa224.ph = phi <2 x double> [ poison, %.lr.ph192 ], [ %150, %.lr.ph192.new ]
  %.lcssa.ph = phi double [ poison, %.lr.ph192 ], [ %151, %.lr.ph192.new ]
  %.0155191.unr = phi double [ 0.000000e+00, %.lr.ph192 ], [ %151, %.lr.ph192.new ]
  %.1159188.unr = phi i64 [ 0, %.lr.ph192 ], [ %152, %.lr.ph192.new ]
  %.unr = phi <2 x double> [ zeroinitializer, %.lr.ph192 ], [ %150, %.lr.ph192.new ]
  br i1 %lcmp.mod226.not, label %._crit_edge193, label %._crit_edge193.loopexit.epilog-lcssa

._crit_edge193.loopexit.epilog-lcssa:             ; preds = %._crit_edge193.loopexit.unr-lcssa
  %153 = getelementptr inbounds double, ptr %98, i64 %.1159188.unr
  %154 = load double, ptr %153, align 8, !tbaa !8
  %155 = getelementptr inbounds double, ptr %101, i64 %.1159188.unr
  %156 = load double, ptr %155, align 8, !tbaa !8
  %157 = insertelement <2 x double> poison, double %154, i64 0
  %158 = shufflevector <2 x double> %157, <2 x double> poison, <2 x i32> zeroinitializer
  %159 = insertelement <2 x double> %157, double %156, i64 1
  %160 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %158, <2 x double> %159, <2 x double> %.unr)
  %161 = tail call double @llvm.fmuladd.f64(double %156, double %156, double %.0155191.unr)
  br label %._crit_edge193

._crit_edge193:                                   ; preds = %._crit_edge193.loopexit.epilog-lcssa, %._crit_edge193.loopexit.unr-lcssa, %69, %.preheader172
  %.0155.lcssa = phi double [ 0.000000e+00, %.preheader172 ], [ 0.000000e+00, %69 ], [ %.lcssa.ph, %._crit_edge193.loopexit.unr-lcssa ], [ %161, %._crit_edge193.loopexit.epilog-lcssa ]
  %162 = phi <2 x double> [ zeroinitializer, %.preheader172 ], [ zeroinitializer, %69 ], [ %.lcssa224.ph, %._crit_edge193.loopexit.unr-lcssa ], [ %160, %._crit_edge193.loopexit.epilog-lcssa ]
  %163 = extractelement <2 x double> %162, i64 1
  %164 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %163, double noundef 0.000000e+00)
  br i1 %164, label %165, label %175

165:                                              ; preds = %._crit_edge193
  %166 = extractelement <2 x double> %162, i64 0
  %167 = fmul double %166, %.0155.lcssa
  %168 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %167, double noundef 0.000000e+00)
  br i1 %168, label %169, label %175

169:                                              ; preds = %165
  %170 = tail call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %167, ptr noundef %7)
  %171 = fdiv double %163, %170
  %172 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %171, double noundef %58)
  br i1 %172, label %173, label %175

173:                                              ; preds = %169
  %174 = fdiv double 1.000000e+00, %163
  br label %175

175:                                              ; preds = %._crit_edge193, %165, %169, %173
  %.sink = phi double [ %174, %173 ], [ 0.000000e+00, %169 ], [ 0.000000e+00, %165 ], [ 0.000000e+00, %._crit_edge193 ]
  %176 = load ptr, ptr %59, align 8, !tbaa !5
  %177 = getelementptr inbounds double, ptr %176, i64 %72
  store double %.sink, ptr %177, align 8, !tbaa !8
  %178 = add nuw nsw i64 %.1197, 1
  %exitcond215.not = icmp eq i64 %178, %5
  br i1 %exitcond215.not, label %.preheader171, label %69, !llvm.loop !20

.preheader170:                                    ; preds = %182, %._crit_edge, %._crit_edge.thread, %.preheader171
  br i1 %.not.not175, label %.lr.ph204, label %.preheader

.lr.ph204:                                        ; preds = %.preheader170
  %179 = getelementptr inbounds i8, ptr %0, i64 56
  %180 = getelementptr inbounds i8, ptr %2, i64 56
  %xtraiter232 = and i64 %1, 1
  %181 = icmp eq i64 %1, 1
  br i1 %181, label %.preheader.loopexit.unr-lcssa, label %.lr.ph204.new

.lr.ph204.new:                                    ; preds = %.lr.ph204
  %unroll_iter234 = and i64 %1, 9223372036854775806
  br label %217

182:                                              ; preds = %.lr.ph201, %182
  %.2.in200 = phi i64 [ %5, %.lr.ph201 ], [ %.2, %182 ]
  %.2 = add nsw i64 %.2.in200, -1
  %183 = load ptr, ptr %63, align 8, !tbaa !5
  %184 = getelementptr inbounds i64, ptr %183, i64 %.2
  %185 = load i64, ptr %184, align 8, !tbaa !15
  %186 = load ptr, ptr %64, align 8, !tbaa !5
  %187 = getelementptr inbounds ptr, ptr %186, i64 %185
  %188 = load ptr, ptr %187, align 8, !tbaa !13
  %189 = load ptr, ptr %65, align 8, !tbaa !5
  %190 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %14)
  %191 = tail call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %188, i64 noundef 1, ptr noundef %189, i64 noundef 1, i64 noundef %190)
  %192 = load ptr, ptr %66, align 8, !tbaa !5
  %193 = getelementptr inbounds double, ptr %192, i64 %185
  %194 = load double, ptr %193, align 8, !tbaa !8
  %195 = fmul double %191, %194
  %196 = load ptr, ptr %67, align 8, !tbaa !5
  %197 = getelementptr inbounds double, ptr %196, i64 %185
  store double %195, ptr %197, align 8, !tbaa !8
  %198 = load ptr, ptr %65, align 8, !tbaa !5
  %199 = load ptr, ptr %68, align 8, !tbaa !5
  %200 = getelementptr inbounds ptr, ptr %199, i64 %185
  %201 = load ptr, ptr %200, align 8, !tbaa !13
  %202 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %14)
  tail call void @_ZN11alglib_impl9ae_v_subdEPdlPKdlld(ptr noundef %198, i64 noundef 1, ptr noundef %201, i64 noundef 1, i64 noundef %202, double noundef %195)
  %203 = icmp ugt i64 %.2.in200, 1
  br i1 %203, label %182, label %.preheader170, !llvm.loop !21

.preheader.loopexit.unr-lcssa:                    ; preds = %217, %.lr.ph204
  %.2160203.unr = phi i64 [ 0, %.lr.ph204 ], [ %233, %217 ]
  %lcmp.mod233.not = icmp eq i64 %xtraiter232, 0
  br i1 %lcmp.mod233.not, label %.preheader, label %.preheader.loopexit.epilog-lcssa

.preheader.loopexit.epilog-lcssa:                 ; preds = %.preheader.loopexit.unr-lcssa
  %204 = load ptr, ptr %179, align 8, !tbaa !5
  %205 = getelementptr inbounds double, ptr %204, i64 %.2160203.unr
  %206 = load double, ptr %205, align 8, !tbaa !8
  %207 = load ptr, ptr %180, align 8, !tbaa !5
  %208 = getelementptr inbounds double, ptr %207, i64 %.2160203.unr
  %209 = load double, ptr %208, align 8, !tbaa !8
  %210 = fdiv double %206, %209
  store double %210, ptr %205, align 8, !tbaa !8
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit.epilog-lcssa, %.preheader.loopexit.unr-lcssa, %.preheader170
  br i1 %.not.not163177, label %.lr.ph207, label %._crit_edge208

.lr.ph207:                                        ; preds = %.preheader
  %211 = getelementptr inbounds i8, ptr %6, i64 328
  %212 = getelementptr inbounds i8, ptr %6, i64 264
  %213 = getelementptr inbounds i8, ptr %0, i64 56
  %214 = getelementptr inbounds i8, ptr %6, i64 120
  %215 = getelementptr inbounds i8, ptr %6, i64 184
  %216 = getelementptr inbounds i8, ptr %4, i64 72
  br label %234

217:                                              ; preds = %217, %.lr.ph204.new
  %.2160203 = phi i64 [ 0, %.lr.ph204.new ], [ %233, %217 ]
  %niter235 = phi i64 [ 0, %.lr.ph204.new ], [ %niter235.next.1, %217 ]
  %218 = load ptr, ptr %179, align 8, !tbaa !5
  %219 = getelementptr inbounds double, ptr %218, i64 %.2160203
  %220 = load double, ptr %219, align 8, !tbaa !8
  %221 = load ptr, ptr %180, align 8, !tbaa !5
  %222 = getelementptr inbounds double, ptr %221, i64 %.2160203
  %223 = load double, ptr %222, align 8, !tbaa !8
  %224 = fdiv double %220, %223
  store double %224, ptr %219, align 8, !tbaa !8
  %225 = or disjoint i64 %.2160203, 1
  %226 = load ptr, ptr %179, align 8, !tbaa !5
  %227 = getelementptr inbounds double, ptr %226, i64 %225
  %228 = load double, ptr %227, align 8, !tbaa !8
  %229 = load ptr, ptr %180, align 8, !tbaa !5
  %230 = getelementptr inbounds double, ptr %229, i64 %225
  %231 = load double, ptr %230, align 8, !tbaa !8
  %232 = fdiv double %228, %231
  store double %232, ptr %227, align 8, !tbaa !8
  %233 = add nuw nsw i64 %.2160203, 2
  %niter235.next.1 = add i64 %niter235, 2
  %niter235.ncmp.1 = icmp eq i64 %niter235.next.1, %unroll_iter234
  br i1 %niter235.ncmp.1, label %.preheader.loopexit.unr-lcssa, label %217, !llvm.loop !22

234:                                              ; preds = %.lr.ph207, %234
  %.3206 = phi i64 [ 0, %.lr.ph207 ], [ %257, %234 ]
  %235 = load ptr, ptr %211, align 8, !tbaa !5
  %236 = getelementptr inbounds i64, ptr %235, i64 %.3206
  %237 = load i64, ptr %236, align 8, !tbaa !15
  %238 = load ptr, ptr %212, align 8, !tbaa !5
  %239 = getelementptr inbounds ptr, ptr %238, i64 %237
  %240 = load ptr, ptr %239, align 8, !tbaa !13
  %241 = load ptr, ptr %213, align 8, !tbaa !5
  %242 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %14)
  %243 = tail call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %240, i64 noundef 1, ptr noundef %241, i64 noundef 1, i64 noundef %242)
  %244 = load ptr, ptr %214, align 8, !tbaa !5
  %245 = getelementptr inbounds double, ptr %244, i64 %237
  %246 = load double, ptr %245, align 8, !tbaa !8
  %247 = load ptr, ptr %215, align 8, !tbaa !5
  %248 = getelementptr inbounds double, ptr %247, i64 %237
  %249 = load double, ptr %248, align 8, !tbaa !8
  %250 = fneg double %249
  %251 = tail call double @llvm.fmuladd.f64(double %250, double %243, double %246)
  %252 = load ptr, ptr %213, align 8, !tbaa !5
  %253 = load ptr, ptr %216, align 8, !tbaa !5
  %254 = getelementptr inbounds ptr, ptr %253, i64 %237
  %255 = load ptr, ptr %254, align 8, !tbaa !13
  %256 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %14)
  tail call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %252, i64 noundef 1, ptr noundef %255, i64 noundef 1, i64 noundef %256, double noundef %251)
  %257 = add nuw nsw i64 %.3206, 1
  %exitcond217.not = icmp eq i64 %257, %5
  br i1 %exitcond217.not, label %._crit_edge208, label %234, !llvm.loop !23

._crit_edge208:                                   ; preds = %234, %.preheader
  ret void
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #3

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

!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, !14, i64 0}
!14 = !{!"any pointer", !6, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !6, i64 0}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}
!23 = distinct !{!23, !11}


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