; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src (linalg)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::spcholanalysis" = type { i64, i64, i64, i8, i64, double, double, double, double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, i8, %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, i8, %"struct.alglib_impl::spcholadj", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::amdbuffer", %"struct.alglib_impl::priorityamdbuffers", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::spcholadj" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_nxpool" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_dyn_block", %"struct.alglib_impl::ae_lock", %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::amdbuffer" = type { i64, i8, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::amdllmatrix", %"struct.alglib_impl::amdvertexset", %"struct.alglib_impl::niset", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::niset", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::amdllmatrix" = type { i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64 }
%"struct.alglib_impl::amdvertexset" = type { i64, i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::amdknset" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::niset" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64 }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::priorityamdbuffers" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::amdbuffer", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix" }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

; 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 noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13spsymmdiagerrEPNS_14spcholanalysisEPdS2_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  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 %6, align 8, !tbaa !5
  store double 0.000000e+00, ptr %25, align 8, !tbaa !9
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  store double 0.000000e+00, ptr %26, align 8, !tbaa !9
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %27, i32 0, i32 1
  %29 = load i64, ptr %28, align 8, !tbaa !11
  store i64 %29, ptr %9, align 8, !tbaa !28
  store i64 1, ptr %12, align 8, !tbaa !28
  %30 = load i64, ptr %12, align 8, !tbaa !28
  %31 = load i64, ptr %9, align 8, !tbaa !28
  %32 = mul nsw i64 %30, %31
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %33, i32 0, i32 61
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %32, double noundef 0.000000e+00, ptr noundef %34, ptr noundef %35)
  store i64 0, ptr %18, align 8, !tbaa !28
  br label %36

36:                                               ; preds = %277, %4
  %37 = load i64, ptr %18, align 8, !tbaa !28
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %38, i32 0, i32 16
  %40 = load i64, ptr %39, align 8, !tbaa !29
  %41 = sub nsw i64 %40, 1
  %42 = icmp sle i64 %37, %41
  br i1 %42, label %43, label %280

43:                                               ; preds = %36
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %44, i32 0, i32 20
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !30
  %48 = load i64, ptr %18, align 8, !tbaa !28
  %49 = getelementptr inbounds i64, ptr %47, i64 %48
  %50 = load i64, ptr %49, align 8, !tbaa !28
  store i64 %50, ptr %14, align 8, !tbaa !28
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %51, i32 0, i32 20
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !30
  %55 = load i64, ptr %18, align 8, !tbaa !28
  %56 = add nsw i64 %55, 1
  %57 = getelementptr inbounds i64, ptr %54, i64 %56
  %58 = load i64, ptr %57, align 8, !tbaa !28
  store i64 %58, ptr %15, align 8, !tbaa !28
  %59 = load i64, ptr %15, align 8, !tbaa !28
  %60 = load i64, ptr %14, align 8, !tbaa !28
  %61 = sub nsw i64 %59, %60
  store i64 %61, ptr %19, align 8, !tbaa !28
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %62, i32 0, i32 37
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %63, i32 0, i32 4
  %65 = load ptr, ptr %64, align 8, !tbaa !30
  %66 = load i64, ptr %18, align 8, !tbaa !28
  %67 = getelementptr inbounds i64, ptr %65, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !28
  store i64 %68, ptr %16, align 8, !tbaa !28
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %69, i32 0, i32 36
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %70, i32 0, i32 4
  %72 = load ptr, ptr %71, align 8, !tbaa !30
  %73 = load i64, ptr %18, align 8, !tbaa !28
  %74 = getelementptr inbounds i64, ptr %72, i64 %73
  %75 = load i64, ptr %74, align 8, !tbaa !28
  store i64 %75, ptr %17, align 8, !tbaa !28
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %76, i32 0, i32 21
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %77, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !30
  %80 = load i64, ptr %18, align 8, !tbaa !28
  %81 = getelementptr inbounds i64, ptr %79, i64 %80
  %82 = load i64, ptr %81, align 8, !tbaa !28
  store i64 %82, ptr %20, align 8, !tbaa !28
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %83, i32 0, i32 21
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !30
  %87 = load i64, ptr %18, align 8, !tbaa !28
  %88 = add nsw i64 %87, 1
  %89 = getelementptr inbounds i64, ptr %86, i64 %88
  %90 = load i64, ptr %89, align 8, !tbaa !28
  %91 = load i64, ptr %20, align 8, !tbaa !28
  %92 = sub nsw i64 %90, %91
  store i64 %92, ptr %21, align 8, !tbaa !28
  %93 = load i64, ptr %14, align 8, !tbaa !28
  store i64 %93, ptr %22, align 8, !tbaa !28
  br label %94

94:                                               ; preds = %196, %43
  %95 = load i64, ptr %22, align 8, !tbaa !28
  %96 = load i64, ptr %15, align 8, !tbaa !28
  %97 = sub nsw i64 %96, 1
  %98 = icmp sle i64 %95, %97
  br i1 %98, label %99, label %199

99:                                               ; preds = %94
  %100 = load i64, ptr %16, align 8, !tbaa !28
  %101 = load i64, ptr %22, align 8, !tbaa !28
  %102 = load i64, ptr %14, align 8, !tbaa !28
  %103 = sub nsw i64 %101, %102
  %104 = load i64, ptr %17, align 8, !tbaa !28
  %105 = mul nsw i64 %103, %104
  %106 = add nsw i64 %100, %105
  %107 = load i64, ptr %14, align 8, !tbaa !28
  %108 = sub nsw i64 0, %107
  %109 = add nsw i64 %106, %108
  store i64 %109, ptr %13, align 8, !tbaa !28
  store double 0.000000e+00, ptr %10, align 8, !tbaa !9
  store i64 0, ptr %23, align 8, !tbaa !28
  br label %110

110:                                              ; preds = %129, %99
  %111 = load i64, ptr %23, align 8, !tbaa !28
  %112 = load i64, ptr %12, align 8, !tbaa !28
  %113 = sub nsw i64 %112, 1
  %114 = icmp sle i64 %111, %113
  br i1 %114, label %115, label %132

115:                                              ; preds = %110
  %116 = load double, ptr %10, align 8, !tbaa !9
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %117, i32 0, i32 61
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %118, i32 0, i32 4
  %120 = load ptr, ptr %119, align 8, !tbaa !30
  %121 = load i64, ptr %22, align 8, !tbaa !28
  %122 = load i64, ptr %12, align 8, !tbaa !28
  %123 = mul nsw i64 %121, %122
  %124 = load i64, ptr %23, align 8, !tbaa !28
  %125 = add nsw i64 %123, %124
  %126 = getelementptr inbounds double, ptr %120, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !9
  %128 = fadd double %116, %127
  store double %128, ptr %10, align 8, !tbaa !9
  br label %129

129:                                              ; preds = %115
  %130 = load i64, ptr %23, align 8, !tbaa !28
  %131 = add nsw i64 %130, 1
  store i64 %131, ptr %23, align 8, !tbaa !28
  br label %110, !llvm.loop !31

132:                                              ; preds = %110
  %133 = load i64, ptr %14, align 8, !tbaa !28
  store i64 %133, ptr %23, align 8, !tbaa !28
  br label %134

134:                                              ; preds = %160, %132
  %135 = load i64, ptr %23, align 8, !tbaa !28
  %136 = load i64, ptr %22, align 8, !tbaa !28
  %137 = icmp sle i64 %135, %136
  br i1 %137, label %138, label %163

138:                                              ; preds = %134
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %139, i32 0, i32 35
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %140, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !30
  %143 = load i64, ptr %13, align 8, !tbaa !28
  %144 = load i64, ptr %23, align 8, !tbaa !28
  %145 = add nsw i64 %143, %144
  %146 = getelementptr inbounds double, ptr %142, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !9
  store double %147, ptr %11, align 8, !tbaa !9
  %148 = load double, ptr %10, align 8, !tbaa !9
  %149 = load double, ptr %11, align 8, !tbaa !9
  %150 = load double, ptr %11, align 8, !tbaa !9
  %151 = fmul double %149, %150
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %152, i32 0, i32 38
  %154 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %153, i32 0, i32 4
  %155 = load ptr, ptr %154, align 8, !tbaa !30
  %156 = load i64, ptr %23, align 8, !tbaa !28
  %157 = getelementptr inbounds double, ptr %155, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !9
  %159 = call double @llvm.fmuladd.f64(double %151, double %158, double %148)
  store double %159, ptr %10, align 8, !tbaa !9
  br label %160

160:                                              ; preds = %138
  %161 = load i64, ptr %23, align 8, !tbaa !28
  %162 = add nsw i64 %161, 1
  store i64 %162, ptr %23, align 8, !tbaa !28
  br label %134, !llvm.loop !33

163:                                              ; preds = %134
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = load double, ptr %164, align 8, !tbaa !9
  %166 = load ptr, ptr %5, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %166, i32 0, i32 34
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %167, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !30
  %170 = load i64, ptr %13, align 8, !tbaa !28
  %171 = load i64, ptr %22, align 8, !tbaa !28
  %172 = add nsw i64 %170, %171
  %173 = getelementptr inbounds double, ptr %169, i64 %172
  %174 = load double, ptr %173, align 8, !tbaa !9
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  %176 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %174, ptr noundef %175)
  %177 = fadd double %165, %176
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  store double %177, ptr %178, align 8, !tbaa !9
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  %180 = load double, ptr %179, align 8, !tbaa !9
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %181, i32 0, i32 34
  %183 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %182, i32 0, i32 4
  %184 = load ptr, ptr %183, align 8, !tbaa !30
  %185 = load i64, ptr %13, align 8, !tbaa !28
  %186 = load i64, ptr %22, align 8, !tbaa !28
  %187 = add nsw i64 %185, %186
  %188 = getelementptr inbounds double, ptr %184, i64 %187
  %189 = load double, ptr %188, align 8, !tbaa !9
  %190 = load double, ptr %10, align 8, !tbaa !9
  %191 = fsub double %189, %190
  %192 = load ptr, ptr %8, align 8, !tbaa !5
  %193 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %191, ptr noundef %192)
  %194 = fadd double %180, %193
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  store double %194, ptr %195, align 8, !tbaa !9
  br label %196

196:                                              ; preds = %163
  %197 = load i64, ptr %22, align 8, !tbaa !28
  %198 = add nsw i64 %197, 1
  store i64 %198, ptr %22, align 8, !tbaa !28
  br label %94, !llvm.loop !34

199:                                              ; preds = %94
  store i64 0, ptr %24, align 8, !tbaa !28
  br label %200

200:                                              ; preds = %273, %199
  %201 = load i64, ptr %24, align 8, !tbaa !28
  %202 = load i64, ptr %21, align 8, !tbaa !28
  %203 = sub nsw i64 %202, 1
  %204 = icmp sle i64 %201, %203
  br i1 %204, label %205, label %276

205:                                              ; preds = %200
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %206, i32 0, i32 22
  %208 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %207, i32 0, i32 4
  %209 = load ptr, ptr %208, align 8, !tbaa !30
  %210 = load i64, ptr %20, align 8, !tbaa !28
  %211 = load i64, ptr %24, align 8, !tbaa !28
  %212 = add nsw i64 %210, %211
  %213 = getelementptr inbounds i64, ptr %209, i64 %212
  %214 = load i64, ptr %213, align 8, !tbaa !28
  store i64 %214, ptr %22, align 8, !tbaa !28
  %215 = load i64, ptr %16, align 8, !tbaa !28
  %216 = load i64, ptr %24, align 8, !tbaa !28
  %217 = load i64, ptr %19, align 8, !tbaa !28
  %218 = add nsw i64 %216, %217
  %219 = load i64, ptr %17, align 8, !tbaa !28
  %220 = mul nsw i64 %218, %219
  %221 = add nsw i64 %215, %220
  store i64 %221, ptr %13, align 8, !tbaa !28
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %222, i32 0, i32 61
  %224 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %223, i32 0, i32 4
  %225 = load ptr, ptr %224, align 8, !tbaa !30
  %226 = load i64, ptr %22, align 8, !tbaa !28
  %227 = load i64, ptr %12, align 8, !tbaa !28
  %228 = mul nsw i64 %226, %227
  %229 = getelementptr inbounds double, ptr %225, i64 %228
  %230 = load double, ptr %229, align 8, !tbaa !9
  store double %230, ptr %10, align 8, !tbaa !9
  store i64 0, ptr %23, align 8, !tbaa !28
  br label %231

231:                                              ; preds = %260, %205
  %232 = load i64, ptr %23, align 8, !tbaa !28
  %233 = load i64, ptr %19, align 8, !tbaa !28
  %234 = sub nsw i64 %233, 1
  %235 = icmp sle i64 %232, %234
  br i1 %235, label %236, label %263

236:                                              ; preds = %231
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  %238 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %237, i32 0, i32 35
  %239 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %238, i32 0, i32 4
  %240 = load ptr, ptr %239, align 8, !tbaa !30
  %241 = load i64, ptr %13, align 8, !tbaa !28
  %242 = load i64, ptr %23, align 8, !tbaa !28
  %243 = add nsw i64 %241, %242
  %244 = getelementptr inbounds double, ptr %240, i64 %243
  %245 = load double, ptr %244, align 8, !tbaa !9
  store double %245, ptr %11, align 8, !tbaa !9
  %246 = load double, ptr %10, align 8, !tbaa !9
  %247 = load double, ptr %11, align 8, !tbaa !9
  %248 = load double, ptr %11, align 8, !tbaa !9
  %249 = fmul double %247, %248
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %250, i32 0, i32 38
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %251, i32 0, i32 4
  %253 = load ptr, ptr %252, align 8, !tbaa !30
  %254 = load i64, ptr %14, align 8, !tbaa !28
  %255 = load i64, ptr %23, align 8, !tbaa !28
  %256 = add nsw i64 %254, %255
  %257 = getelementptr inbounds double, ptr %253, i64 %256
  %258 = load double, ptr %257, align 8, !tbaa !9
  %259 = call double @llvm.fmuladd.f64(double %249, double %258, double %246)
  store double %259, ptr %10, align 8, !tbaa !9
  br label %260

260:                                              ; preds = %236
  %261 = load i64, ptr %23, align 8, !tbaa !28
  %262 = add nsw i64 %261, 1
  store i64 %262, ptr %23, align 8, !tbaa !28
  br label %231, !llvm.loop !35

263:                                              ; preds = %231
  %264 = load double, ptr %10, align 8, !tbaa !9
  %265 = load ptr, ptr %5, align 8, !tbaa !5
  %266 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %265, i32 0, i32 61
  %267 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %266, i32 0, i32 4
  %268 = load ptr, ptr %267, align 8, !tbaa !30
  %269 = load i64, ptr %22, align 8, !tbaa !28
  %270 = load i64, ptr %12, align 8, !tbaa !28
  %271 = mul nsw i64 %269, %270
  %272 = getelementptr inbounds double, ptr %268, i64 %271
  store double %264, ptr %272, align 8, !tbaa !9
  br label %273

273:                                              ; preds = %263
  %274 = load i64, ptr %24, align 8, !tbaa !28
  %275 = add nsw i64 %274, 1
  store i64 %275, ptr %24, align 8, !tbaa !28
  br label %200, !llvm.loop !36

276:                                              ; preds = %200
  br label %277

277:                                              ; preds = %276
  %278 = load i64, ptr %18, align 8, !tbaa !28
  %279 = add nsw i64 %278, 1
  store i64 %279, ptr %18, align 8, !tbaa !28
  br label %36, !llvm.loop !37

280:                                              ; preds = %36
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

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 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"_ZTSN11alglib_impl14spcholanalysisE", !13, i64 0, !13, i64 8, !13, i64 16, !14, i64 24, !13, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !15, i64 72, !14, i64 136, !14, i64 137, !14, i64 138, !14, i64 139, !14, i64 140, !15, i64 144, !13, i64 208, !15, i64 216, !15, i64 280, !15, i64 344, !15, i64 408, !15, i64 472, !15, i64 536, !14, i64 600, !15, i64 608, !15, i64 672, !15, i64 736, !15, i64 800, !15, i64 864, !15, i64 928, !14, i64 992, !14, i64 993, !17, i64 1000, !15, i64 1512, !15, i64 1576, !15, i64 1640, !15, i64 1704, !15, i64 1768, !15, i64 1832, !18, i64 1896, !18, i64 2040, !18, i64 2184, !18, i64 2328, !18, i64 2472, !18, i64 2616, !15, i64 2760, !15, i64 2824, !15, i64 2888, !15, i64 2952, !15, i64 3016, !20, i64 3080, !26, i64 7464, !15, i64 13816, !15, i64 13880, !15, i64 13944, !15, i64 14008, !15, i64 14072, !15, i64 14136, !27, i64 14200, !27, i64 14568, !15, i64 14936, !15, i64 15000}
!13 = !{!"long", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !13, i64 0, !13, i64 8, !14, i64 16, !16, i64 24, !7, i64 56}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTSN11alglib_impl9spcholadjE", !15, i64 0, !15, i64 64, !15, i64 128, !15, i64 192, !15, i64 256, !15, i64 320, !15, i64 384, !15, i64 448}
!18 = !{!"_ZTSN11alglib_impl9ae_nxpoolE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !16, i64 32, !19, i64 64, !16, i64 112}
!19 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !16, i64 8, !14, i64 40}
!20 = !{!"_ZTSN11alglib_impl9amdbufferE", !13, i64 0, !14, i64 8, !14, i64 9, !15, i64 16, !15, i64 80, !15, i64 144, !21, i64 208, !21, i64 568, !21, i64 928, !22, i64 1288, !23, i64 1496, !24, i64 1968, !15, i64 2120, !15, i64 2184, !15, i64 2248, !24, i64 2312, !24, i64 2464, !24, i64 2616, !24, i64 2768, !24, i64 2920, !24, i64 3072, !15, i64 3224, !13, i64 3288, !24, i64 3296, !24, i64 3448, !21, i64 3600, !24, i64 3960, !15, i64 4112, !15, i64 4176, !15, i64 4240, !25, i64 4304}
!21 = !{!"_ZTSN11alglib_impl8amdknsetE", !13, i64 0, !13, i64 8, !15, i64 16, !15, i64 80, !15, i64 144, !15, i64 208, !15, i64 272, !13, i64 336, !13, i64 344, !13, i64 352}
!22 = !{!"_ZTSN11alglib_impl11amdllmatrixE", !13, i64 0, !15, i64 8, !15, i64 72, !15, i64 136, !13, i64 200}
!23 = !{!"_ZTSN11alglib_impl12amdvertexsetE", !13, i64 0, !14, i64 8, !13, i64 16, !15, i64 24, !15, i64 88, !15, i64 152, !15, i64 216, !15, i64 280, !15, i64 344, !15, i64 408}
!24 = !{!"_ZTSN11alglib_impl5nisetE", !13, i64 0, !13, i64 8, !15, i64 16, !15, i64 80, !13, i64 144}
!25 = !{!"_ZTSN11alglib_impl9ae_matrixE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !14, i64 32, !16, i64 40, !7, i64 72}
!26 = !{!"_ZTSN11alglib_impl18priorityamdbuffersE", !15, i64 0, !15, i64 64, !20, i64 128, !27, i64 4512, !27, i64 4880, !27, i64 5248, !27, i64 5616, !27, i64 5984}
!27 = !{!"_ZTSN11alglib_impl12sparsematrixE", !15, i64 0, !15, i64 64, !15, i64 128, !15, i64 192, !15, i64 256, !13, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !13, i64 352, !13, i64 360}
!28 = !{!13, !13, i64 0}
!29 = !{!12, !13, i64 208}
!30 = !{!7, !7, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = distinct !{!34, !32}
!35 = distinct !{!35, !32}
!36 = distinct !{!36, !32}
!37 = distinct !{!37, !32}


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

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double 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 void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13spsymmdiagerrEPNS_14spcholanalysisEPdS2_PNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef %1, ptr nocapture noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  store double 0.000000e+00, ptr %1, align 8, !tbaa !5
  store double 0.000000e+00, ptr %2, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load i64, ptr %5, align 8, !tbaa !9
  %7 = getelementptr inbounds i8, ptr %0, i64 15000
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %6, double noundef 0.000000e+00, ptr noundef nonnull %7, ptr noundef %3)
  %8 = getelementptr inbounds i8, ptr %0, i64 208
  %9 = load i64, ptr %8, align 8, !tbaa !27
  %.not.not123 = icmp sgt i64 %9, 0
  br i1 %.not.not123, label %.lr.ph126, label %._crit_edge127

.lr.ph126:                                        ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 464
  %11 = getelementptr inbounds i8, ptr %0, i64 1824
  %12 = getelementptr inbounds i8, ptr %0, i64 1760
  %13 = getelementptr inbounds i8, ptr %0, i64 528
  %14 = getelementptr inbounds i8, ptr %0, i64 15056
  %15 = getelementptr inbounds i8, ptr %0, i64 1696
  %16 = getelementptr inbounds i8, ptr %0, i64 1888
  %17 = getelementptr inbounds i8, ptr %0, i64 1632
  %18 = getelementptr inbounds i8, ptr %0, i64 592
  br label %20

.loopexit:                                        ; preds = %._crit_edge118.us, %.preheader104
  %19 = load i64, ptr %8, align 8, !tbaa !27
  %.not.not = icmp slt i64 %24, %19
  br i1 %.not.not, label %20, label %._crit_edge127, !llvm.loop !28

20:                                               ; preds = %.lr.ph126, %.loopexit
  %.0100124 = phi i64 [ 0, %.lr.ph126 ], [ %24, %.loopexit ]
  %21 = load ptr, ptr %10, align 8, !tbaa !30
  %22 = getelementptr inbounds i64, ptr %21, i64 %.0100124
  %23 = load i64, ptr %22, align 8, !tbaa !31
  %24 = add nuw nsw i64 %.0100124, 1
  %25 = getelementptr inbounds i64, ptr %21, i64 %24
  %26 = load i64, ptr %25, align 8, !tbaa !31
  %27 = sub i64 %26, %23
  %28 = load ptr, ptr %11, align 8, !tbaa !30
  %29 = getelementptr inbounds i64, ptr %28, i64 %.0100124
  %30 = load i64, ptr %29, align 8, !tbaa !31
  %31 = load ptr, ptr %12, align 8, !tbaa !30
  %32 = getelementptr inbounds i64, ptr %31, i64 %.0100124
  %33 = load i64, ptr %32, align 8, !tbaa !31
  %34 = load ptr, ptr %13, align 8, !tbaa !30
  %35 = getelementptr inbounds i64, ptr %34, i64 %.0100124
  %36 = load i64, ptr %35, align 8, !tbaa !31
  %37 = getelementptr inbounds i64, ptr %34, i64 %24
  %38 = load i64, ptr %37, align 8, !tbaa !31
  %.not.not101109 = icmp slt i64 %23, %26
  br i1 %.not.not101109, label %.lr.ph112, label %.preheader104

.lr.ph112:                                        ; preds = %20
  %39 = sub i64 %30, %23
  br label %.preheader

.preheader104:                                    ; preds = %._crit_edge, %20
  %40 = sub i64 %36, %38
  %.not120 = icmp slt i64 %40, 0
  %.not102.not113 = icmp sgt i64 %27, 0
  %or.cond = and i1 %.not120, %.not102.not113
  br i1 %or.cond, label %.lr.ph117.us.preheader, label %.loopexit

.lr.ph117.us.preheader:                           ; preds = %.preheader104
  %41 = sub i64 %38, %36
  %xtraiter137 = and i64 %27, 3
  %42 = sub i64 %23, %26
  %43 = icmp ugt i64 %42, -4
  %unroll_iter = and i64 %27, 9223372036854775804
  %lcmp.mod138.not = icmp eq i64 %xtraiter137, 0
  br label %.lr.ph117.us

.lr.ph117.us:                                     ; preds = %.lr.ph117.us.preheader, %._crit_edge118.us
  %.0121.us = phi i64 [ %93, %._crit_edge118.us ], [ 0, %.lr.ph117.us.preheader ]
  %44 = load ptr, ptr %18, align 8, !tbaa !30
  %45 = getelementptr i64, ptr %44, i64 %36
  %46 = getelementptr i64, ptr %45, i64 %.0121.us
  %47 = load i64, ptr %46, align 8, !tbaa !31
  %48 = add nuw nsw i64 %.0121.us, %27
  %49 = mul nsw i64 %48, %33
  %50 = load ptr, ptr %14, align 8, !tbaa !30
  %51 = getelementptr inbounds double, ptr %50, i64 %47
  %52 = load double, ptr %51, align 8, !tbaa !5
  %53 = load ptr, ptr %15, align 8, !tbaa !30
  %54 = getelementptr double, ptr %53, i64 %30
  %55 = getelementptr double, ptr %54, i64 %49
  %56 = load ptr, ptr %16, align 8, !tbaa !30
  %57 = getelementptr double, ptr %56, i64 %23
  br i1 %43, label %._crit_edge118.us.unr-lcssa, label %.lr.ph117.us.new

.lr.ph117.us.new:                                 ; preds = %.lr.ph117.us, %.lr.ph117.us.new
  %.2115.us = phi i64 [ %85, %.lr.ph117.us.new ], [ 0, %.lr.ph117.us ]
  %.299114.us = phi double [ %84, %.lr.ph117.us.new ], [ %52, %.lr.ph117.us ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph117.us.new ], [ 0, %.lr.ph117.us ]
  %58 = getelementptr double, ptr %55, i64 %.2115.us
  %59 = load double, ptr %58, align 8, !tbaa !5
  %60 = fmul double %59, %59
  %61 = getelementptr double, ptr %57, i64 %.2115.us
  %62 = load double, ptr %61, align 8, !tbaa !5
  %63 = tail call double @llvm.fmuladd.f64(double %60, double %62, double %.299114.us)
  %64 = or disjoint i64 %.2115.us, 1
  %65 = getelementptr double, ptr %55, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !5
  %67 = fmul double %66, %66
  %68 = getelementptr double, ptr %57, i64 %64
  %69 = load double, ptr %68, align 8, !tbaa !5
  %70 = tail call double @llvm.fmuladd.f64(double %67, double %69, double %63)
  %71 = or disjoint i64 %.2115.us, 2
  %72 = getelementptr double, ptr %55, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !5
  %74 = fmul double %73, %73
  %75 = getelementptr double, ptr %57, i64 %71
  %76 = load double, ptr %75, align 8, !tbaa !5
  %77 = tail call double @llvm.fmuladd.f64(double %74, double %76, double %70)
  %78 = or disjoint i64 %.2115.us, 3
  %79 = getelementptr double, ptr %55, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !5
  %81 = fmul double %80, %80
  %82 = getelementptr double, ptr %57, i64 %78
  %83 = load double, ptr %82, align 8, !tbaa !5
  %84 = tail call double @llvm.fmuladd.f64(double %81, double %83, double %77)
  %85 = add nuw nsw i64 %.2115.us, 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_edge118.us.unr-lcssa, label %.lr.ph117.us.new, !llvm.loop !32

._crit_edge118.us.unr-lcssa:                      ; preds = %.lr.ph117.us.new, %.lr.ph117.us
  %.lcssa136.ph = phi double [ poison, %.lr.ph117.us ], [ %84, %.lr.ph117.us.new ]
  %.2115.us.unr = phi i64 [ 0, %.lr.ph117.us ], [ %85, %.lr.ph117.us.new ]
  %.299114.us.unr = phi double [ %52, %.lr.ph117.us ], [ %84, %.lr.ph117.us.new ]
  br i1 %lcmp.mod138.not, label %._crit_edge118.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge118.us.unr-lcssa, %.epil.preheader
  %.2115.us.epil = phi i64 [ %92, %.epil.preheader ], [ %.2115.us.unr, %._crit_edge118.us.unr-lcssa ]
  %.299114.us.epil = phi double [ %91, %.epil.preheader ], [ %.299114.us.unr, %._crit_edge118.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge118.us.unr-lcssa ]
  %86 = getelementptr double, ptr %55, i64 %.2115.us.epil
  %87 = load double, ptr %86, align 8, !tbaa !5
  %88 = fmul double %87, %87
  %89 = getelementptr double, ptr %57, i64 %.2115.us.epil
  %90 = load double, ptr %89, align 8, !tbaa !5
  %91 = tail call double @llvm.fmuladd.f64(double %88, double %90, double %.299114.us.epil)
  %92 = add nuw nsw i64 %.2115.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter137
  br i1 %epil.iter.cmp.not, label %._crit_edge118.us, label %.epil.preheader, !llvm.loop !33

._crit_edge118.us:                                ; preds = %.epil.preheader, %._crit_edge118.us.unr-lcssa
  %.lcssa136 = phi double [ %.lcssa136.ph, %._crit_edge118.us.unr-lcssa ], [ %91, %.epil.preheader ]
  store double %.lcssa136, ptr %51, align 8, !tbaa !5
  %93 = add nuw i64 %.0121.us, 1
  %exitcond133.not = icmp eq i64 %93, %41
  br i1 %exitcond133.not, label %.loopexit, label %.lr.ph117.us, !llvm.loop !35

.preheader:                                       ; preds = %.lr.ph112, %._crit_edge
  %indvar = phi i64 [ 0, %.lr.ph112 ], [ %indvar.next, %._crit_edge ]
  %indvars.iv.in = phi i64 [ %23, %.lr.ph112 ], [ %indvars.iv, %._crit_edge ]
  %.096110 = phi i64 [ %23, %.lr.ph112 ], [ %155, %._crit_edge ]
  %indvars.iv = add i64 %indvars.iv.in, 1
  %94 = sub nsw i64 %.096110, %23
  %95 = mul nsw i64 %94, %33
  %96 = add i64 %39, %95
  %97 = load ptr, ptr %14, align 8, !tbaa !30
  %98 = getelementptr inbounds double, ptr %97, i64 %.096110
  %99 = load double, ptr %98, align 8, !tbaa !5
  %100 = fadd double %99, 0.000000e+00
  %.not103106 = icmp sgt i64 %23, %.096110
  br i1 %.not103106, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %101 = add i64 %indvar, 1
  %102 = load ptr, ptr %15, align 8, !tbaa !30
  %103 = getelementptr double, ptr %102, i64 %96
  %104 = load ptr, ptr %16, align 8, !tbaa !30
  %xtraiter = and i64 %101, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph, %.prol.preheader
  %.1108.prol = phi i64 [ %111, %.prol.preheader ], [ %23, %.lr.ph ]
  %.198107.prol = phi double [ %110, %.prol.preheader ], [ %100, %.lr.ph ]
  %prol.iter = phi i64 [ %prol.iter.next, %.prol.preheader ], [ 0, %.lr.ph ]
  %105 = getelementptr double, ptr %103, i64 %.1108.prol
  %106 = load double, ptr %105, align 8, !tbaa !5
  %107 = fmul double %106, %106
  %108 = getelementptr inbounds double, ptr %104, i64 %.1108.prol
  %109 = load double, ptr %108, align 8, !tbaa !5
  %110 = tail call double @llvm.fmuladd.f64(double %107, double %109, double %.198107.prol)
  %111 = add i64 %.1108.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.prol.loopexit, label %.prol.preheader, !llvm.loop !36

.prol.loopexit:                                   ; preds = %.prol.preheader, %.lr.ph
  %.lcssa.unr = phi double [ poison, %.lr.ph ], [ %110, %.prol.preheader ]
  %.1108.unr = phi i64 [ %23, %.lr.ph ], [ %111, %.prol.preheader ]
  %.198107.unr = phi double [ %100, %.lr.ph ], [ %110, %.prol.preheader ]
  %112 = icmp ult i64 %indvar, 3
  br i1 %112, label %._crit_edge, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.prol.loopexit, %.lr.ph.new
  %.1108 = phi i64 [ %140, %.lr.ph.new ], [ %.1108.unr, %.prol.loopexit ]
  %.198107 = phi double [ %139, %.lr.ph.new ], [ %.198107.unr, %.prol.loopexit ]
  %113 = getelementptr double, ptr %103, i64 %.1108
  %114 = load double, ptr %113, align 8, !tbaa !5
  %115 = fmul double %114, %114
  %116 = getelementptr inbounds double, ptr %104, i64 %.1108
  %117 = load double, ptr %116, align 8, !tbaa !5
  %118 = tail call double @llvm.fmuladd.f64(double %115, double %117, double %.198107)
  %119 = add i64 %.1108, 1
  %120 = getelementptr double, ptr %103, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !5
  %122 = fmul double %121, %121
  %123 = getelementptr inbounds double, ptr %104, i64 %119
  %124 = load double, ptr %123, align 8, !tbaa !5
  %125 = tail call double @llvm.fmuladd.f64(double %122, double %124, double %118)
  %126 = add i64 %.1108, 2
  %127 = getelementptr double, ptr %103, i64 %126
  %128 = load double, ptr %127, align 8, !tbaa !5
  %129 = fmul double %128, %128
  %130 = getelementptr inbounds double, ptr %104, i64 %126
  %131 = load double, ptr %130, align 8, !tbaa !5
  %132 = tail call double @llvm.fmuladd.f64(double %129, double %131, double %125)
  %133 = add i64 %.1108, 3
  %134 = getelementptr double, ptr %103, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !5
  %136 = fmul double %135, %135
  %137 = getelementptr inbounds double, ptr %104, i64 %133
  %138 = load double, ptr %137, align 8, !tbaa !5
  %139 = tail call double @llvm.fmuladd.f64(double %136, double %138, double %132)
  %140 = add i64 %.1108, 4
  %exitcond.not.3 = icmp eq i64 %133, %indvars.iv.in
  br i1 %exitcond.not.3, label %._crit_edge, label %.lr.ph.new, !llvm.loop !37

._crit_edge:                                      ; preds = %.prol.loopexit, %.lr.ph.new, %.preheader
  %.198.lcssa = phi double [ %100, %.preheader ], [ %.lcssa.unr, %.prol.loopexit ], [ %139, %.lr.ph.new ]
  %141 = load double, ptr %1, align 8, !tbaa !5
  %142 = load ptr, ptr %17, align 8, !tbaa !30
  %143 = add nsw i64 %96, %.096110
  %144 = getelementptr inbounds double, ptr %142, i64 %143
  %145 = load double, ptr %144, align 8, !tbaa !5
  %146 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %145, ptr noundef %3)
  %147 = fadd double %141, %146
  store double %147, ptr %1, align 8, !tbaa !5
  %148 = load double, ptr %2, align 8, !tbaa !5
  %149 = load ptr, ptr %17, align 8, !tbaa !30
  %150 = getelementptr inbounds double, ptr %149, i64 %143
  %151 = load double, ptr %150, align 8, !tbaa !5
  %152 = fsub double %151, %.198.lcssa
  %153 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %152, ptr noundef %3)
  %154 = fadd double %148, %153
  store double %154, ptr %2, align 8, !tbaa !5
  %155 = add nsw i64 %.096110, 1
  %exitcond131.not = icmp eq i64 %155, %26
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond131.not, label %.preheader104, label %.preheader, !llvm.loop !38

._crit_edge127:                                   ; preds = %.loopexit, %4
  ret void
}

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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTSN11alglib_impl14spcholanalysisE", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !11, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !13, i64 72, !12, i64 136, !12, i64 137, !12, i64 138, !12, i64 139, !12, i64 140, !13, i64 144, !11, i64 208, !13, i64 216, !13, i64 280, !13, i64 344, !13, i64 408, !13, i64 472, !13, i64 536, !12, i64 600, !13, i64 608, !13, i64 672, !13, i64 736, !13, i64 800, !13, i64 864, !13, i64 928, !12, i64 992, !12, i64 993, !16, i64 1000, !13, i64 1512, !13, i64 1576, !13, i64 1640, !13, i64 1704, !13, i64 1768, !13, i64 1832, !17, i64 1896, !17, i64 2040, !17, i64 2184, !17, i64 2328, !17, i64 2472, !17, i64 2616, !13, i64 2760, !13, i64 2824, !13, i64 2888, !13, i64 2952, !13, i64 3016, !19, i64 3080, !25, i64 7464, !13, i64 13816, !13, i64 13880, !13, i64 13944, !13, i64 14008, !13, i64 14072, !13, i64 14136, !26, i64 14200, !26, i64 14568, !13, i64 14936, !13, i64 15000}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !12, i64 16, !14, i64 24, !7, i64 56}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl9spcholadjE", !13, i64 0, !13, i64 64, !13, i64 128, !13, i64 192, !13, i64 256, !13, i64 320, !13, i64 384, !13, i64 448}
!17 = !{!"_ZTSN11alglib_impl9ae_nxpoolE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !14, i64 32, !18, i64 64, !14, i64 112}
!18 = !{!"_ZTSN11alglib_impl7ae_lockE", !15, i64 0, !14, i64 8, !12, i64 40}
!19 = !{!"_ZTSN11alglib_impl9amdbufferE", !11, i64 0, !12, i64 8, !12, i64 9, !13, i64 16, !13, i64 80, !13, i64 144, !20, i64 208, !20, i64 568, !20, i64 928, !21, i64 1288, !22, i64 1496, !23, i64 1968, !13, i64 2120, !13, i64 2184, !13, i64 2248, !23, i64 2312, !23, i64 2464, !23, i64 2616, !23, i64 2768, !23, i64 2920, !23, i64 3072, !13, i64 3224, !11, i64 3288, !23, i64 3296, !23, i64 3448, !20, i64 3600, !23, i64 3960, !13, i64 4112, !13, i64 4176, !13, i64 4240, !24, i64 4304}
!20 = !{!"_ZTSN11alglib_impl8amdknsetE", !11, i64 0, !11, i64 8, !13, i64 16, !13, i64 80, !13, i64 144, !13, i64 208, !13, i64 272, !11, i64 336, !11, i64 344, !11, i64 352}
!21 = !{!"_ZTSN11alglib_impl11amdllmatrixE", !11, i64 0, !13, i64 8, !13, i64 72, !13, i64 136, !11, i64 200}
!22 = !{!"_ZTSN11alglib_impl12amdvertexsetE", !11, i64 0, !12, i64 8, !11, i64 16, !13, i64 24, !13, i64 88, !13, i64 152, !13, i64 216, !13, i64 280, !13, i64 344, !13, i64 408}
!23 = !{!"_ZTSN11alglib_impl5nisetE", !11, i64 0, !11, i64 8, !13, i64 16, !13, i64 80, !11, i64 144}
!24 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !14, i64 40, !7, i64 72}
!25 = !{!"_ZTSN11alglib_impl18priorityamdbuffersE", !13, i64 0, !13, i64 64, !19, i64 128, !26, i64 4512, !26, i64 4880, !26, i64 5248, !26, i64 5616, !26, i64 5984}
!26 = !{!"_ZTSN11alglib_impl12sparsematrixE", !13, i64 0, !13, i64 64, !13, i64 128, !13, i64 192, !13, i64 256, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360}
!27 = !{!10, !11, i64 208}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!7, !7, i64 0}
!31 = !{!11, !11, i64 0}
!32 = distinct !{!32, !29}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.unroll.disable"}
!35 = distinct !{!35, !29}
!36 = distinct !{!36, !34}
!37 = distinct !{!37, !29}
!38 = distinct !{!38, !29}


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