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

; 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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11rmatrixgemvElldPKNS_9ae_matrixElllPKNS_9ae_vectorEldPS3_lPNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl9rmatrixmvEllPKNS_9ae_matrixElllPKNS_9ae_vectorElPS3_lPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11rmatrixtrsvElPKNS_9ae_matrixEllbblPNS_9ae_vectorElPNS_8ae_stateE(i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, i64 noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) #2

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

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

declare void @_ZN11alglib_impl6rcopyvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18rowwisegramschmidtEPKNS_9ae_matrixEllPNS_9ae_vectorES4_bPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef) #1

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) #2

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

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

declare noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

declare void @_ZN11alglib_impl7rcopyrvElPKNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl5rmulvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

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

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

29:                                               ; preds = %2
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %30, i32 0, i32 22
  %32 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %31, i32 0, i32 1
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %34 = load ptr, ptr %33, align 8, !tbaa !19
  %35 = getelementptr inbounds i64, ptr %34, i64 0
  %36 = load i64, ptr %35, align 8, !tbaa !20
  store i64 %36, ptr %6, align 8, !tbaa !20
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %37, i32 0, i32 22
  %39 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %38, i32 0, i32 1
  %40 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %39, i32 0, i32 4
  %41 = load ptr, ptr %40, align 8, !tbaa !19
  %42 = getelementptr inbounds i64, ptr %41, i64 1
  %43 = load i64, ptr %42, align 8, !tbaa !20
  store i64 %43, ptr %7, align 8, !tbaa !20
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %44, i32 0, i32 22
  %46 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %45, i32 0, i32 1
  %47 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %48 = load ptr, ptr %47, align 8, !tbaa !19
  %49 = getelementptr inbounds i64, ptr %48, i64 2
  %50 = load i64, ptr %49, align 8, !tbaa !20
  store i64 %50, ptr %8, align 8, !tbaa !20
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %51, i32 0, i32 22
  %53 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %52, i32 0, i32 1
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %53, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !19
  %56 = getelementptr inbounds i64, ptr %55, i64 3
  %57 = load i64, ptr %56, align 8, !tbaa !20
  store i64 %57, ptr %20, align 8, !tbaa !20
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %58, i32 0, i32 22
  %60 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %59, i32 0, i32 1
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %60, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !19
  %63 = getelementptr inbounds i64, ptr %62, i64 4
  %64 = load i64, ptr %63, align 8, !tbaa !20
  store i64 %64, ptr %21, align 8, !tbaa !20
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %65, i32 0, i32 22
  %67 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %66, i32 0, i32 3
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !19
  %70 = getelementptr inbounds double, ptr %69, i64 0
  %71 = load double, ptr %70, align 8, !tbaa !21
  store double %71, ptr %9, align 8, !tbaa !21
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %72, i32 0, i32 22
  %74 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %73, i32 0, i32 3
  %75 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %74, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !19
  %77 = getelementptr inbounds double, ptr %76, i64 1
  %78 = load double, ptr %77, align 8, !tbaa !21
  store double %78, ptr %10, align 8, !tbaa !21
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %79, i32 0, i32 22
  %81 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %80, i32 0, i32 3
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %81, i32 0, i32 4
  %83 = load ptr, ptr %82, align 8, !tbaa !19
  %84 = getelementptr inbounds double, ptr %83, i64 2
  %85 = load double, ptr %84, align 8, !tbaa !21
  store double %85, ptr %11, align 8, !tbaa !21
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %86, i32 0, i32 22
  %88 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %87, i32 0, i32 3
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !19
  %91 = getelementptr inbounds double, ptr %90, i64 3
  %92 = load double, ptr %91, align 8, !tbaa !21
  store double %92, ptr %12, align 8, !tbaa !21
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %93, i32 0, i32 22
  %95 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %94, i32 0, i32 3
  %96 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %95, i32 0, i32 4
  %97 = load ptr, ptr %96, align 8, !tbaa !19
  %98 = getelementptr inbounds double, ptr %97, i64 4
  %99 = load double, ptr %98, align 8, !tbaa !21
  store double %99, ptr %13, align 8, !tbaa !21
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %100, i32 0, i32 22
  %102 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %101, i32 0, i32 3
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !19
  %105 = getelementptr inbounds double, ptr %104, i64 5
  %106 = load double, ptr %105, align 8, !tbaa !21
  store double %106, ptr %14, align 8, !tbaa !21
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %107, i32 0, i32 22
  %109 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %108, i32 0, i32 3
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %109, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !19
  %112 = getelementptr inbounds double, ptr %111, i64 6
  %113 = load double, ptr %112, align 8, !tbaa !21
  store double %113, ptr %15, align 8, !tbaa !21
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %114, i32 0, i32 22
  %116 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %115, i32 0, i32 3
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !19
  %119 = getelementptr inbounds double, ptr %118, i64 7
  %120 = load double, ptr %119, align 8, !tbaa !21
  store double %120, ptr %16, align 8, !tbaa !21
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %121, i32 0, i32 22
  %123 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %122, i32 0, i32 3
  %124 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %123, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !19
  %126 = getelementptr inbounds double, ptr %125, i64 8
  %127 = load double, ptr %126, align 8, !tbaa !21
  store double %127, ptr %17, align 8, !tbaa !21
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %128, i32 0, i32 22
  %130 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %129, i32 0, i32 3
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %130, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !19
  %133 = getelementptr inbounds double, ptr %132, i64 9
  %134 = load double, ptr %133, align 8, !tbaa !21
  store double %134, ptr %18, align 8, !tbaa !21
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %135, i32 0, i32 22
  %137 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %136, i32 0, i32 3
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %137, i32 0, i32 4
  %139 = load ptr, ptr %138, align 8, !tbaa !19
  %140 = getelementptr inbounds double, ptr %139, i64 10
  %141 = load double, ptr %140, align 8, !tbaa !21
  store double %141, ptr %19, align 8, !tbaa !21
  br label %143

142:                                              ; preds = %2
  store i64 205, ptr %6, align 8, !tbaa !20
  store i64 -838, ptr %7, align 8, !tbaa !20
  store i64 939, ptr %8, align 8, !tbaa !20
  store i64 -526, ptr %20, align 8, !tbaa !20
  store i64 763, ptr %21, align 8, !tbaa !20
  store double -5.410000e+02, ptr %9, align 8, !tbaa !21
  store double -6.980000e+02, ptr %10, align 8, !tbaa !21
  store double -9.000000e+02, ptr %11, align 8, !tbaa !21
  store double -3.180000e+02, ptr %12, align 8, !tbaa !21
  store double -9.400000e+02, ptr %13, align 8, !tbaa !21
  store double 1.016000e+03, ptr %14, align 8, !tbaa !21
  store double -2.290000e+02, ptr %15, align 8, !tbaa !21
  store double -5.360000e+02, ptr %16, align 8, !tbaa !21
  store double 4.870000e+02, ptr %17, align 8, !tbaa !21
  store double -1.150000e+02, ptr %18, align 8, !tbaa !21
  store double 8.860000e+02, ptr %19, align 8, !tbaa !21
  br label %143

143:                                              ; preds = %142, %29
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %144, i32 0, i32 22
  %146 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 8, !tbaa !9
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %150

149:                                              ; preds = %143
  br label %314

150:                                              ; preds = %143
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %151, i32 0, i32 13
  %153 = load i64, ptr %152, align 8, !tbaa !22
  store i64 %153, ptr %6, align 8, !tbaa !20
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %154, i32 0, i32 20
  store i64 1, ptr %155, align 8, !tbaa !23
  %156 = load i64, ptr %6, align 8, !tbaa !20
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %157, i32 0, i32 3
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %156, double noundef 0.000000e+00, ptr noundef %158, ptr noundef %159)
  %160 = load i64, ptr %6, align 8, !tbaa !20
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %161, i32 0, i32 0
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %160, ptr noundef %162, ptr noundef %163)
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %164, ptr noundef %165)
  store double %166, ptr %17, align 8, !tbaa !21
  %167 = load double, ptr %17, align 8, !tbaa !21
  %168 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %167, double noundef 0.000000e+00)
  br i1 %168, label %169, label %174

169:                                              ; preds = %150
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %170, i32 0, i32 21
  store double 0.000000e+00, ptr %171, align 8, !tbaa !24
  store i8 0, ptr %22, align 1, !tbaa !25
  %172 = load i8, ptr %22, align 1, !tbaa !25, !range !26, !noundef !27
  %173 = trunc i8 %172 to i1
  store i1 %173, ptr %3, align 1
  store i32 1, ptr %23, align 4
  br label %795

174:                                              ; preds = %150
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %175, i32 0, i32 14
  %177 = load i64, ptr %176, align 8, !tbaa !28
  %178 = add nsw i64 %177, 1
  %179 = load i64, ptr %6, align 8, !tbaa !20
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %180, i32 0, i32 4
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %178, i64 noundef %179, ptr noundef %181, ptr noundef %182)
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %183, i32 0, i32 14
  %185 = load i64, ptr %184, align 8, !tbaa !28
  %186 = load i64, ptr %6, align 8, !tbaa !20
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %187, i32 0, i32 5
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %185, i64 noundef %186, ptr noundef %188, ptr noundef %189)
  %190 = load i64, ptr %6, align 8, !tbaa !20
  %191 = load double, ptr %17, align 8, !tbaa !21
  %192 = fdiv double 1.000000e+00, %191
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %193, i32 0, i32 0
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %195, i32 0, i32 4
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rcopymulvrEldPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %190, double noundef %192, ptr noundef %194, ptr noundef %196, i64 noundef 0, ptr noundef %197)
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %198, i32 0, i32 14
  %200 = load i64, ptr %199, align 8, !tbaa !28
  %201 = add nsw i64 %200, 1
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %202, i32 0, i32 14
  %204 = load i64, ptr %203, align 8, !tbaa !28
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %205, i32 0, i32 6
  %207 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %201, i64 noundef %204, double noundef 0.000000e+00, ptr noundef %206, ptr noundef %207)
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %208, i32 0, i32 14
  %210 = load i64, ptr %209, align 8, !tbaa !28
  %211 = add nsw i64 %210, 1
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %212, i32 0, i32 14
  %214 = load i64, ptr %213, align 8, !tbaa !28
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %215, i32 0, i32 8
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %211, i64 noundef %214, double noundef 0.000000e+00, ptr noundef %216, ptr noundef %217)
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %218, i32 0, i32 14
  %220 = load i64, ptr %219, align 8, !tbaa !28
  %221 = add nsw i64 %220, 1
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %222, i32 0, i32 14
  %224 = load i64, ptr %223, align 8, !tbaa !28
  %225 = add nsw i64 %224, 1
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %226, i32 0, i32 7
  %228 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %221, i64 noundef %225, double noundef 0.000000e+00, ptr noundef %227, ptr noundef %228)
  store i64 0, ptr %20, align 8, !tbaa !20
  br label %229

229:                                              ; preds = %245, %174
  %230 = load i64, ptr %20, align 8, !tbaa !20
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %231, i32 0, i32 14
  %233 = load i64, ptr %232, align 8, !tbaa !28
  %234 = icmp sle i64 %230, %233
  br i1 %234, label %235, label %248

235:                                              ; preds = %229
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %236, i32 0, i32 7
  %238 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %237, i32 0, i32 6
  %239 = load ptr, ptr %238, align 8, !tbaa !19
  %240 = load i64, ptr %20, align 8, !tbaa !20
  %241 = getelementptr inbounds ptr, ptr %239, i64 %240
  %242 = load ptr, ptr %241, align 8, !tbaa !5
  %243 = load i64, ptr %20, align 8, !tbaa !20
  %244 = getelementptr inbounds double, ptr %242, i64 %243
  store double 1.000000e+00, ptr %244, align 8, !tbaa !21
  br label %245

245:                                              ; preds = %235
  %246 = load i64, ptr %20, align 8, !tbaa !20
  %247 = add nsw i64 %246, 1
  store i64 %247, ptr %20, align 8, !tbaa !20
  br label %229, !llvm.loop !29

248:                                              ; preds = %229
  %249 = load ptr, ptr %4, align 8, !tbaa !5
  %250 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %249, i32 0, i32 14
  %251 = load i64, ptr %250, align 8, !tbaa !28
  %252 = add nsw i64 %251, 1
  %253 = load ptr, ptr %4, align 8, !tbaa !5
  %254 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %253, i32 0, i32 9
  %255 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %252, double noundef 0.000000e+00, ptr noundef %254, ptr noundef %255)
  %256 = load double, ptr %17, align 8, !tbaa !21
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %257, i32 0, i32 9
  %259 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %258, i32 0, i32 4
  %260 = load ptr, ptr %259, align 8, !tbaa !19
  %261 = getelementptr inbounds double, ptr %260, i64 0
  store double %256, ptr %261, align 8, !tbaa !21
  %262 = load double, ptr %17, align 8, !tbaa !21
  store double %262, ptr %18, align 8, !tbaa !21
  store i64 0, ptr %8, align 8, !tbaa !20
  store double 0.000000e+00, ptr %9, align 8, !tbaa !21
  store double 0x547D42AEA2879F2E, ptr %10, align 8, !tbaa !21
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %263, i32 0, i32 14
  %265 = load i64, ptr %264, align 8, !tbaa !28
  %266 = load ptr, ptr %4, align 8, !tbaa !5
  %267 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %266, i32 0, i32 10
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %265, double noundef 0.000000e+00, ptr noundef %267, ptr noundef %268)
  %269 = load i64, ptr %6, align 8, !tbaa !20
  %270 = load ptr, ptr %4, align 8, !tbaa !5
  %271 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %270, i32 0, i32 14
  %272 = load i64, ptr %271, align 8, !tbaa !28
  %273 = add nsw i64 %272, 2
  %274 = load ptr, ptr %5, align 8, !tbaa !5
  %275 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %269, i64 noundef %273, ptr noundef %274)
  %276 = load ptr, ptr %4, align 8, !tbaa !5
  %277 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %276, i32 0, i32 11
  %278 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %275, ptr noundef %277, ptr noundef %278)
  %279 = load i64, ptr %6, align 8, !tbaa !20
  %280 = load ptr, ptr %4, align 8, !tbaa !5
  %281 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %280, i32 0, i32 14
  %282 = load i64, ptr %281, align 8, !tbaa !28
  %283 = add nsw i64 %282, 2
  %284 = load ptr, ptr %5, align 8, !tbaa !5
  %285 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %279, i64 noundef %283, ptr noundef %284)
  %286 = load ptr, ptr %4, align 8, !tbaa !5
  %287 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %286, i32 0, i32 12
  %288 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %285, ptr noundef %287, ptr noundef %288)
  store i64 0, ptr %7, align 8, !tbaa !20
  br label %289

289:                                              ; preds = %649, %248
  %290 = load i64, ptr %7, align 8, !tbaa !20
  %291 = load ptr, ptr %4, align 8, !tbaa !5
  %292 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %291, i32 0, i32 14
  %293 = load i64, ptr %292, align 8, !tbaa !28
  %294 = sub nsw i64 %293, 1
  %295 = icmp sgt i64 %290, %294
  br i1 %295, label %296, label %297

296:                                              ; preds = %289
  br label %652

297:                                              ; preds = %289
  %298 = load double, ptr %18, align 8, !tbaa !21
  store double %298, ptr %19, align 8, !tbaa !21
  %299 = load double, ptr %18, align 8, !tbaa !21
  %300 = load double, ptr %17, align 8, !tbaa !21
  %301 = fdiv double %299, %300
  %302 = load ptr, ptr %4, align 8, !tbaa !5
  %303 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %302, i32 0, i32 21
  store double %301, ptr %303, align 8, !tbaa !24
  %304 = load i64, ptr %6, align 8, !tbaa !20
  %305 = load ptr, ptr %4, align 8, !tbaa !5
  %306 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %305, i32 0, i32 4
  %307 = load i64, ptr %7, align 8, !tbaa !20
  %308 = load ptr, ptr %4, align 8, !tbaa !5
  %309 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %308, i32 0, i32 1
  %310 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopyrvElPKNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %304, ptr noundef %306, i64 noundef %307, ptr noundef %309, ptr noundef %310)
  %311 = load ptr, ptr %4, align 8, !tbaa !5
  %312 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %311, i32 0, i32 22
  %313 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %312, i32 0, i32 0
  store i32 0, ptr %313, align 8, !tbaa !9
  br label %680

314:                                              ; preds = %149
  %315 = load i64, ptr %6, align 8, !tbaa !20
  %316 = load ptr, ptr %4, align 8, !tbaa !5
  %317 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %316, i32 0, i32 2
  %318 = load ptr, ptr %4, align 8, !tbaa !5
  %319 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %318, i32 0, i32 5
  %320 = load i64, ptr %7, align 8, !tbaa !20
  %321 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %315, ptr noundef %317, ptr noundef %319, i64 noundef %320, ptr noundef %321)
  %322 = load i64, ptr %6, align 8, !tbaa !20
  %323 = load ptr, ptr %4, align 8, !tbaa !5
  %324 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %323, i32 0, i32 2
  %325 = load ptr, ptr %5, align 8, !tbaa !5
  %326 = call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %322, ptr noundef %324, ptr noundef %325)
  %327 = load ptr, ptr %5, align 8, !tbaa !5
  %328 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %326, ptr noundef %327)
  store double %328, ptr %15, align 8, !tbaa !21
  %329 = load double, ptr %15, align 8, !tbaa !21
  %330 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %329, double noundef 0.000000e+00)
  br i1 %330, label %331, label %334

331:                                              ; preds = %314
  %332 = load ptr, ptr %4, align 8, !tbaa !5
  %333 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %332, i32 0, i32 20
  store i64 2, ptr %333, align 8, !tbaa !23
  br label %652

334:                                              ; preds = %314
  %335 = load ptr, ptr %4, align 8, !tbaa !5
  %336 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %335, i32 0, i32 4
  %337 = load i64, ptr %7, align 8, !tbaa !20
  %338 = add nsw i64 %337, 1
  %339 = load i64, ptr %6, align 8, !tbaa !20
  %340 = load ptr, ptr %4, align 8, !tbaa !5
  %341 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %340, i32 0, i32 2
  %342 = load ptr, ptr %4, align 8, !tbaa !5
  %343 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %342, i32 0, i32 11
  %344 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl18rowwisegramschmidtEPKNS_9ae_matrixEllPNS_9ae_vectorES4_bPNS_8ae_stateE(ptr noundef %336, i64 noundef %338, i64 noundef %339, ptr noundef %341, ptr noundef %343, i1 noundef zeroext true, ptr noundef %344)
  %345 = load ptr, ptr %4, align 8, !tbaa !5
  %346 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %345, i32 0, i32 4
  %347 = load i64, ptr %7, align 8, !tbaa !20
  %348 = add nsw i64 %347, 1
  %349 = load i64, ptr %6, align 8, !tbaa !20
  %350 = load ptr, ptr %4, align 8, !tbaa !5
  %351 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %350, i32 0, i32 2
  %352 = load ptr, ptr %4, align 8, !tbaa !5
  %353 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %352, i32 0, i32 12
  %354 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl18rowwisegramschmidtEPKNS_9ae_matrixEllPNS_9ae_vectorES4_bPNS_8ae_stateE(ptr noundef %346, i64 noundef %348, i64 noundef %349, ptr noundef %351, ptr noundef %353, i1 noundef zeroext true, ptr noundef %354)
  %355 = load i64, ptr %7, align 8, !tbaa !20
  %356 = add nsw i64 %355, 1
  %357 = load ptr, ptr %4, align 8, !tbaa !5
  %358 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %357, i32 0, i32 11
  %359 = load ptr, ptr %4, align 8, !tbaa !5
  %360 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %359, i32 0, i32 6
  %361 = load i64, ptr %7, align 8, !tbaa !20
  %362 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl6raddvcEldPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %356, double noundef 1.000000e+00, ptr noundef %358, ptr noundef %360, i64 noundef %361, ptr noundef %362)
  %363 = load i64, ptr %7, align 8, !tbaa !20
  %364 = add nsw i64 %363, 1
  %365 = load ptr, ptr %4, align 8, !tbaa !5
  %366 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %365, i32 0, i32 12
  %367 = load ptr, ptr %4, align 8, !tbaa !5
  %368 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %367, i32 0, i32 6
  %369 = load i64, ptr %7, align 8, !tbaa !20
  %370 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl6raddvcEldPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %364, double noundef 1.000000e+00, ptr noundef %366, ptr noundef %368, i64 noundef %369, ptr noundef %370)
  %371 = load i64, ptr %6, align 8, !tbaa !20
  %372 = load ptr, ptr %4, align 8, !tbaa !5
  %373 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %372, i32 0, i32 2
  %374 = load ptr, ptr %5, align 8, !tbaa !5
  %375 = call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %371, ptr noundef %373, ptr noundef %374)
  %376 = load ptr, ptr %5, align 8, !tbaa !5
  %377 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %375, ptr noundef %376)
  store double %377, ptr %16, align 8, !tbaa !21
  %378 = load double, ptr %16, align 8, !tbaa !21
  %379 = load ptr, ptr %4, align 8, !tbaa !5
  %380 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %379, i32 0, i32 6
  %381 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %380, i32 0, i32 6
  %382 = load ptr, ptr %381, align 8, !tbaa !19
  %383 = load i64, ptr %7, align 8, !tbaa !20
  %384 = add nsw i64 %383, 1
  %385 = getelementptr inbounds ptr, ptr %382, i64 %384
  %386 = load ptr, ptr %385, align 8, !tbaa !5
  %387 = load i64, ptr %7, align 8, !tbaa !20
  %388 = getelementptr inbounds double, ptr %386, i64 %387
  store double %378, ptr %388, align 8, !tbaa !21
  %389 = load i64, ptr %6, align 8, !tbaa !20
  %390 = load double, ptr %16, align 8, !tbaa !21
  %391 = load ptr, ptr %5, align 8, !tbaa !5
  %392 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %390, double noundef 1.000000e+00, ptr noundef %391)
  %393 = fdiv double 1.000000e+00, %392
  %394 = load ptr, ptr %4, align 8, !tbaa !5
  %395 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %394, i32 0, i32 2
  %396 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rmulvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %389, double noundef %393, ptr noundef %395, ptr noundef %396)
  %397 = load i64, ptr %6, align 8, !tbaa !20
  %398 = load ptr, ptr %4, align 8, !tbaa !5
  %399 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %398, i32 0, i32 2
  %400 = load ptr, ptr %4, align 8, !tbaa !5
  %401 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %400, i32 0, i32 4
  %402 = load i64, ptr %7, align 8, !tbaa !20
  %403 = add nsw i64 %402, 1
  %404 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %397, ptr noundef %399, ptr noundef %401, i64 noundef %403, ptr noundef %404)
  %405 = load i64, ptr %7, align 8, !tbaa !20
  %406 = add nsw i64 %405, 2
  %407 = load ptr, ptr %4, align 8, !tbaa !5
  %408 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %407, i32 0, i32 6
  %409 = load i64, ptr %7, align 8, !tbaa !20
  %410 = load ptr, ptr %4, align 8, !tbaa !5
  %411 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %410, i32 0, i32 11
  %412 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopycvElPKNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %406, ptr noundef %408, i64 noundef %409, ptr noundef %411, ptr noundef %412)
  %413 = load i64, ptr %7, align 8, !tbaa !20
  %414 = add nsw i64 %413, 2
  %415 = load i64, ptr %7, align 8, !tbaa !20
  %416 = add nsw i64 %415, 2
  %417 = load ptr, ptr %4, align 8, !tbaa !5
  %418 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %417, i32 0, i32 7
  %419 = load ptr, ptr %4, align 8, !tbaa !5
  %420 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %419, i32 0, i32 11
  %421 = load ptr, ptr %4, align 8, !tbaa !5
  %422 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %421, i32 0, i32 12
  %423 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemvElldPKNS_9ae_matrixElllPKNS_9ae_vectorEldPS3_lPNS_8ae_stateE(i64 noundef %414, i64 noundef %416, double noundef 1.000000e+00, ptr noundef %418, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %420, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %422, i64 noundef 0, ptr noundef %423)
  %424 = load ptr, ptr %4, align 8, !tbaa !5
  %425 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %424, i32 0, i32 12
  %426 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %425, i32 0, i32 4
  %427 = load ptr, ptr %426, align 8, !tbaa !19
  %428 = load i64, ptr %7, align 8, !tbaa !20
  %429 = getelementptr inbounds double, ptr %427, i64 %428
  %430 = load double, ptr %429, align 8, !tbaa !21
  %431 = load ptr, ptr %4, align 8, !tbaa !5
  %432 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %431, i32 0, i32 12
  %433 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %432, i32 0, i32 4
  %434 = load ptr, ptr %433, align 8, !tbaa !19
  %435 = load i64, ptr %7, align 8, !tbaa !20
  %436 = add nsw i64 %435, 1
  %437 = getelementptr inbounds double, ptr %434, i64 %436
  %438 = load double, ptr %437, align 8, !tbaa !21
  %439 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl16generaterotationEddPdS0_S0_PNS_8ae_stateE(double noundef %430, double noundef %438, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %439)
  %440 = load double, ptr %13, align 8, !tbaa !21
  %441 = load ptr, ptr %4, align 8, !tbaa !5
  %442 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %441, i32 0, i32 12
  %443 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %442, i32 0, i32 4
  %444 = load ptr, ptr %443, align 8, !tbaa !19
  %445 = load i64, ptr %7, align 8, !tbaa !20
  %446 = getelementptr inbounds double, ptr %444, i64 %445
  store double %440, ptr %446, align 8, !tbaa !21
  %447 = load ptr, ptr %4, align 8, !tbaa !5
  %448 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %447, i32 0, i32 12
  %449 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %448, i32 0, i32 4
  %450 = load ptr, ptr %449, align 8, !tbaa !19
  %451 = load i64, ptr %7, align 8, !tbaa !20
  %452 = add nsw i64 %451, 1
  %453 = getelementptr inbounds double, ptr %450, i64 %452
  store double 0.000000e+00, ptr %453, align 8, !tbaa !21
  %454 = load double, ptr %9, align 8, !tbaa !21
  %455 = load i64, ptr %7, align 8, !tbaa !20
  %456 = add nsw i64 %455, 2
  %457 = load ptr, ptr %4, align 8, !tbaa !5
  %458 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %457, i32 0, i32 12
  %459 = load ptr, ptr %5, align 8, !tbaa !5
  %460 = call noundef double @_ZN11alglib_impl8rmaxabsvElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %456, ptr noundef %458, ptr noundef %459)
  %461 = load ptr, ptr %5, align 8, !tbaa !5
  %462 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %454, double noundef %460, ptr noundef %461)
  store double %462, ptr %9, align 8, !tbaa !21
  %463 = load double, ptr %10, align 8, !tbaa !21
  %464 = load double, ptr %13, align 8, !tbaa !21
  %465 = load ptr, ptr %5, align 8, !tbaa !5
  %466 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %464, ptr noundef %465)
  %467 = load ptr, ptr %5, align 8, !tbaa !5
  %468 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %463, double noundef %466, ptr noundef %467)
  store double %468, ptr %10, align 8, !tbaa !21
  %469 = load double, ptr %10, align 8, !tbaa !21
  %470 = load double, ptr %9, align 8, !tbaa !21
  %471 = load ptr, ptr %4, align 8, !tbaa !5
  %472 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %471, i32 0, i32 18
  %473 = load double, ptr %472, align 8, !tbaa !31
  %474 = fmul double %470, %473
  %475 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %469, double noundef %474)
  br i1 %475, label %476, label %479

476:                                              ; preds = %334
  %477 = load ptr, ptr %4, align 8, !tbaa !5
  %478 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %477, i32 0, i32 20
  store i64 3, ptr %478, align 8, !tbaa !23
  br label %652

479:                                              ; preds = %334
  %480 = load i64, ptr %7, align 8, !tbaa !20
  %481 = add nsw i64 %480, 2
  %482 = load ptr, ptr %4, align 8, !tbaa !5
  %483 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %482, i32 0, i32 12
  %484 = load ptr, ptr %4, align 8, !tbaa !5
  %485 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %484, i32 0, i32 8
  %486 = load i64, ptr %7, align 8, !tbaa !20
  %487 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopyvcElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %481, ptr noundef %483, ptr noundef %485, i64 noundef %486, ptr noundef %487)
  store i64 0, ptr %21, align 8, !tbaa !20
  br label %488

488:                                              ; preds = %549, %479
  %489 = load i64, ptr %21, align 8, !tbaa !20
  %490 = load i64, ptr %7, align 8, !tbaa !20
  %491 = add nsw i64 %490, 1
  %492 = icmp sle i64 %489, %491
  br i1 %492, label %493, label %552

493:                                              ; preds = %488
  %494 = load ptr, ptr %4, align 8, !tbaa !5
  %495 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %494, i32 0, i32 7
  %496 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %495, i32 0, i32 6
  %497 = load ptr, ptr %496, align 8, !tbaa !19
  %498 = load i64, ptr %7, align 8, !tbaa !20
  %499 = add nsw i64 %498, 0
  %500 = getelementptr inbounds ptr, ptr %497, i64 %499
  %501 = load ptr, ptr %500, align 8, !tbaa !5
  %502 = load i64, ptr %21, align 8, !tbaa !20
  %503 = getelementptr inbounds double, ptr %501, i64 %502
  %504 = load double, ptr %503, align 8, !tbaa !21
  store double %504, ptr %13, align 8, !tbaa !21
  %505 = load ptr, ptr %4, align 8, !tbaa !5
  %506 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %505, i32 0, i32 7
  %507 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %506, i32 0, i32 6
  %508 = load ptr, ptr %507, align 8, !tbaa !19
  %509 = load i64, ptr %7, align 8, !tbaa !20
  %510 = add nsw i64 %509, 1
  %511 = getelementptr inbounds ptr, ptr %508, i64 %510
  %512 = load ptr, ptr %511, align 8, !tbaa !5
  %513 = load i64, ptr %21, align 8, !tbaa !20
  %514 = getelementptr inbounds double, ptr %512, i64 %513
  %515 = load double, ptr %514, align 8, !tbaa !21
  store double %515, ptr %14, align 8, !tbaa !21
  %516 = load double, ptr %11, align 8, !tbaa !21
  %517 = load double, ptr %13, align 8, !tbaa !21
  %518 = load double, ptr %12, align 8, !tbaa !21
  %519 = load double, ptr %14, align 8, !tbaa !21
  %520 = fmul double %518, %519
  %521 = call double @llvm.fmuladd.f64(double %516, double %517, double %520)
  %522 = load ptr, ptr %4, align 8, !tbaa !5
  %523 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %522, i32 0, i32 7
  %524 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %523, i32 0, i32 6
  %525 = load ptr, ptr %524, align 8, !tbaa !19
  %526 = load i64, ptr %7, align 8, !tbaa !20
  %527 = add nsw i64 %526, 0
  %528 = getelementptr inbounds ptr, ptr %525, i64 %527
  %529 = load ptr, ptr %528, align 8, !tbaa !5
  %530 = load i64, ptr %21, align 8, !tbaa !20
  %531 = getelementptr inbounds double, ptr %529, i64 %530
  store double %521, ptr %531, align 8, !tbaa !21
  %532 = load double, ptr %12, align 8, !tbaa !21
  %533 = fneg double %532
  %534 = load double, ptr %13, align 8, !tbaa !21
  %535 = load double, ptr %11, align 8, !tbaa !21
  %536 = load double, ptr %14, align 8, !tbaa !21
  %537 = fmul double %535, %536
  %538 = call double @llvm.fmuladd.f64(double %533, double %534, double %537)
  %539 = load ptr, ptr %4, align 8, !tbaa !5
  %540 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %539, i32 0, i32 7
  %541 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %540, i32 0, i32 6
  %542 = load ptr, ptr %541, align 8, !tbaa !19
  %543 = load i64, ptr %7, align 8, !tbaa !20
  %544 = add nsw i64 %543, 1
  %545 = getelementptr inbounds ptr, ptr %542, i64 %544
  %546 = load ptr, ptr %545, align 8, !tbaa !5
  %547 = load i64, ptr %21, align 8, !tbaa !20
  %548 = getelementptr inbounds double, ptr %546, i64 %547
  store double %538, ptr %548, align 8, !tbaa !21
  br label %549

549:                                              ; preds = %493
  %550 = load i64, ptr %21, align 8, !tbaa !20
  %551 = add nsw i64 %550, 1
  store i64 %551, ptr %21, align 8, !tbaa !20
  br label %488, !llvm.loop !32

552:                                              ; preds = %488
  %553 = load ptr, ptr %4, align 8, !tbaa !5
  %554 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %553, i32 0, i32 9
  %555 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %554, i32 0, i32 4
  %556 = load ptr, ptr %555, align 8, !tbaa !19
  %557 = load i64, ptr %7, align 8, !tbaa !20
  %558 = add nsw i64 %557, 0
  %559 = getelementptr inbounds double, ptr %556, i64 %558
  %560 = load double, ptr %559, align 8, !tbaa !21
  store double %560, ptr %13, align 8, !tbaa !21
  %561 = load ptr, ptr %4, align 8, !tbaa !5
  %562 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %561, i32 0, i32 9
  %563 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %562, i32 0, i32 4
  %564 = load ptr, ptr %563, align 8, !tbaa !19
  %565 = load i64, ptr %7, align 8, !tbaa !20
  %566 = add nsw i64 %565, 1
  %567 = getelementptr inbounds double, ptr %564, i64 %566
  %568 = load double, ptr %567, align 8, !tbaa !21
  store double %568, ptr %14, align 8, !tbaa !21
  %569 = load double, ptr %11, align 8, !tbaa !21
  %570 = load double, ptr %13, align 8, !tbaa !21
  %571 = load double, ptr %12, align 8, !tbaa !21
  %572 = load double, ptr %14, align 8, !tbaa !21
  %573 = fmul double %571, %572
  %574 = call double @llvm.fmuladd.f64(double %569, double %570, double %573)
  %575 = load ptr, ptr %4, align 8, !tbaa !5
  %576 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %575, i32 0, i32 9
  %577 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %576, i32 0, i32 4
  %578 = load ptr, ptr %577, align 8, !tbaa !19
  %579 = load i64, ptr %7, align 8, !tbaa !20
  %580 = add nsw i64 %579, 0
  %581 = getelementptr inbounds double, ptr %578, i64 %580
  store double %574, ptr %581, align 8, !tbaa !21
  %582 = load double, ptr %12, align 8, !tbaa !21
  %583 = fneg double %582
  %584 = load double, ptr %13, align 8, !tbaa !21
  %585 = load double, ptr %11, align 8, !tbaa !21
  %586 = load double, ptr %14, align 8, !tbaa !21
  %587 = fmul double %585, %586
  %588 = call double @llvm.fmuladd.f64(double %583, double %584, double %587)
  %589 = load ptr, ptr %4, align 8, !tbaa !5
  %590 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %589, i32 0, i32 9
  %591 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %590, i32 0, i32 4
  %592 = load ptr, ptr %591, align 8, !tbaa !19
  %593 = load i64, ptr %7, align 8, !tbaa !20
  %594 = add nsw i64 %593, 1
  %595 = getelementptr inbounds double, ptr %592, i64 %594
  store double %588, ptr %595, align 8, !tbaa !21
  %596 = load ptr, ptr %4, align 8, !tbaa !5
  %597 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %596, i32 0, i32 9
  %598 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %597, i32 0, i32 4
  %599 = load ptr, ptr %598, align 8, !tbaa !19
  %600 = load i64, ptr %7, align 8, !tbaa !20
  %601 = add nsw i64 %600, 1
  %602 = getelementptr inbounds double, ptr %599, i64 %601
  %603 = load double, ptr %602, align 8, !tbaa !21
  %604 = load ptr, ptr %5, align 8, !tbaa !5
  %605 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %603, ptr noundef %604)
  store double %605, ptr %18, align 8, !tbaa !21
  %606 = load i64, ptr %8, align 8, !tbaa !20
  %607 = add nsw i64 %606, 1
  store i64 %607, ptr %8, align 8, !tbaa !20
  %608 = load ptr, ptr %4, align 8, !tbaa !5
  %609 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %608, i32 0, i32 19
  %610 = load i64, ptr %609, align 8, !tbaa !33
  %611 = add nsw i64 %610, 1
  %612 = load ptr, ptr %4, align 8, !tbaa !5
  %613 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %612, i32 0, i32 19
  store i64 %611, ptr %613, align 8, !tbaa !33
  %614 = load double, ptr %16, align 8, !tbaa !21
  %615 = load ptr, ptr %4, align 8, !tbaa !5
  %616 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %615, i32 0, i32 15
  %617 = load double, ptr %616, align 8, !tbaa !34
  %618 = load double, ptr %15, align 8, !tbaa !21
  %619 = fmul double %617, %618
  %620 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %614, double noundef %619)
  br i1 %620, label %624, label %621

621:                                              ; preds = %552
  %622 = load double, ptr %16, align 8, !tbaa !21
  %623 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %622, double noundef 0.000000e+00)
  br i1 %623, label %624, label %627

624:                                              ; preds = %621, %552
  %625 = load ptr, ptr %4, align 8, !tbaa !5
  %626 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %625, i32 0, i32 20
  store i64 4, ptr %626, align 8, !tbaa !23
  br label %652

627:                                              ; preds = %621
  %628 = load double, ptr %18, align 8, !tbaa !21
  %629 = load ptr, ptr %4, align 8, !tbaa !5
  %630 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %629, i32 0, i32 16
  %631 = load double, ptr %630, align 8, !tbaa !35
  %632 = load double, ptr %17, align 8, !tbaa !21
  %633 = fmul double %631, %632
  %634 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %628, double noundef %633)
  br i1 %634, label %635, label %638

635:                                              ; preds = %627
  %636 = load ptr, ptr %4, align 8, !tbaa !5
  %637 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %636, i32 0, i32 20
  store i64 5, ptr %637, align 8, !tbaa !23
  br label %652

638:                                              ; preds = %627
  %639 = load double, ptr %18, align 8, !tbaa !21
  %640 = load double, ptr %19, align 8, !tbaa !21
  %641 = fdiv double %639, %640
  %642 = load ptr, ptr %4, align 8, !tbaa !5
  %643 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %642, i32 0, i32 17
  %644 = load double, ptr %643, align 8, !tbaa !36
  %645 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %641, double noundef %644)
  br i1 %645, label %646, label %649

646:                                              ; preds = %638
  %647 = load ptr, ptr %4, align 8, !tbaa !5
  %648 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %647, i32 0, i32 20
  store i64 6, ptr %648, align 8, !tbaa !23
  br label %652

649:                                              ; preds = %638
  %650 = load i64, ptr %7, align 8, !tbaa !20
  %651 = add nsw i64 %650, 1
  store i64 %651, ptr %7, align 8, !tbaa !20
  br label %289

652:                                              ; preds = %646, %635, %624, %476, %331, %296
  %653 = load i64, ptr %8, align 8, !tbaa !20
  %654 = icmp sgt i64 %653, 0
  br i1 %654, label %655, label %677

655:                                              ; preds = %652
  %656 = load i64, ptr %8, align 8, !tbaa !20
  %657 = load ptr, ptr %4, align 8, !tbaa !5
  %658 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %657, i32 0, i32 9
  %659 = load ptr, ptr %4, align 8, !tbaa !5
  %660 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %659, i32 0, i32 10
  %661 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl6rcopyvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %656, ptr noundef %658, ptr noundef %660, ptr noundef %661)
  %662 = load i64, ptr %8, align 8, !tbaa !20
  %663 = load ptr, ptr %4, align 8, !tbaa !5
  %664 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %663, i32 0, i32 8
  %665 = load ptr, ptr %4, align 8, !tbaa !5
  %666 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %665, i32 0, i32 10
  %667 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixtrsvElPKNS_9ae_matrixEllbblPNS_9ae_vectorElPNS_8ae_stateE(i64 noundef %662, ptr noundef %664, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %666, i64 noundef 0, ptr noundef %667)
  %668 = load i64, ptr %6, align 8, !tbaa !20
  %669 = load i64, ptr %8, align 8, !tbaa !20
  %670 = load ptr, ptr %4, align 8, !tbaa !5
  %671 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %670, i32 0, i32 4
  %672 = load ptr, ptr %4, align 8, !tbaa !5
  %673 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %672, i32 0, i32 10
  %674 = load ptr, ptr %4, align 8, !tbaa !5
  %675 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %674, i32 0, i32 3
  %676 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl9rmatrixmvEllPKNS_9ae_matrixElllPKNS_9ae_vectorElPS3_lPNS_8ae_stateE(i64 noundef %668, i64 noundef %669, ptr noundef %671, i64 noundef 0, i64 noundef 0, i64 noundef 1, ptr noundef %673, i64 noundef 0, ptr noundef %675, i64 noundef 0, ptr noundef %676)
  br label %677

677:                                              ; preds = %655, %652
  store i8 0, ptr %22, align 1, !tbaa !25
  %678 = load i8, ptr %22, align 1, !tbaa !25, !range !26, !noundef !27
  %679 = trunc i8 %678 to i1
  store i1 %679, ptr %3, align 1
  store i32 1, ptr %23, align 4
  br label %795

680:                                              ; preds = %297
  store i8 1, ptr %22, align 1, !tbaa !25
  %681 = load i64, ptr %6, align 8, !tbaa !20
  %682 = load ptr, ptr %4, align 8, !tbaa !5
  %683 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %682, i32 0, i32 22
  %684 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %683, i32 0, i32 1
  %685 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %684, i32 0, i32 4
  %686 = load ptr, ptr %685, align 8, !tbaa !19
  %687 = getelementptr inbounds i64, ptr %686, i64 0
  store i64 %681, ptr %687, align 8, !tbaa !20
  %688 = load i64, ptr %7, align 8, !tbaa !20
  %689 = load ptr, ptr %4, align 8, !tbaa !5
  %690 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %689, i32 0, i32 22
  %691 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %690, i32 0, i32 1
  %692 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %691, i32 0, i32 4
  %693 = load ptr, ptr %692, align 8, !tbaa !19
  %694 = getelementptr inbounds i64, ptr %693, i64 1
  store i64 %688, ptr %694, align 8, !tbaa !20
  %695 = load i64, ptr %8, align 8, !tbaa !20
  %696 = load ptr, ptr %4, align 8, !tbaa !5
  %697 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %696, i32 0, i32 22
  %698 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %697, i32 0, i32 1
  %699 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %698, i32 0, i32 4
  %700 = load ptr, ptr %699, align 8, !tbaa !19
  %701 = getelementptr inbounds i64, ptr %700, i64 2
  store i64 %695, ptr %701, align 8, !tbaa !20
  %702 = load i64, ptr %20, align 8, !tbaa !20
  %703 = load ptr, ptr %4, align 8, !tbaa !5
  %704 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %703, i32 0, i32 22
  %705 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %704, i32 0, i32 1
  %706 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %705, i32 0, i32 4
  %707 = load ptr, ptr %706, align 8, !tbaa !19
  %708 = getelementptr inbounds i64, ptr %707, i64 3
  store i64 %702, ptr %708, align 8, !tbaa !20
  %709 = load i64, ptr %21, align 8, !tbaa !20
  %710 = load ptr, ptr %4, align 8, !tbaa !5
  %711 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %710, i32 0, i32 22
  %712 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %711, i32 0, i32 1
  %713 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %712, i32 0, i32 4
  %714 = load ptr, ptr %713, align 8, !tbaa !19
  %715 = getelementptr inbounds i64, ptr %714, i64 4
  store i64 %709, ptr %715, align 8, !tbaa !20
  %716 = load double, ptr %9, align 8, !tbaa !21
  %717 = load ptr, ptr %4, align 8, !tbaa !5
  %718 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %717, i32 0, i32 22
  %719 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %718, i32 0, i32 3
  %720 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %719, i32 0, i32 4
  %721 = load ptr, ptr %720, align 8, !tbaa !19
  %722 = getelementptr inbounds double, ptr %721, i64 0
  store double %716, ptr %722, align 8, !tbaa !21
  %723 = load double, ptr %10, align 8, !tbaa !21
  %724 = load ptr, ptr %4, align 8, !tbaa !5
  %725 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %724, i32 0, i32 22
  %726 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %725, i32 0, i32 3
  %727 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %726, i32 0, i32 4
  %728 = load ptr, ptr %727, align 8, !tbaa !19
  %729 = getelementptr inbounds double, ptr %728, i64 1
  store double %723, ptr %729, align 8, !tbaa !21
  %730 = load double, ptr %11, align 8, !tbaa !21
  %731 = load ptr, ptr %4, align 8, !tbaa !5
  %732 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %731, i32 0, i32 22
  %733 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %732, i32 0, i32 3
  %734 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %733, i32 0, i32 4
  %735 = load ptr, ptr %734, align 8, !tbaa !19
  %736 = getelementptr inbounds double, ptr %735, i64 2
  store double %730, ptr %736, align 8, !tbaa !21
  %737 = load double, ptr %12, align 8, !tbaa !21
  %738 = load ptr, ptr %4, align 8, !tbaa !5
  %739 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %738, i32 0, i32 22
  %740 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %739, i32 0, i32 3
  %741 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %740, i32 0, i32 4
  %742 = load ptr, ptr %741, align 8, !tbaa !19
  %743 = getelementptr inbounds double, ptr %742, i64 3
  store double %737, ptr %743, align 8, !tbaa !21
  %744 = load double, ptr %13, align 8, !tbaa !21
  %745 = load ptr, ptr %4, align 8, !tbaa !5
  %746 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %745, i32 0, i32 22
  %747 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %746, i32 0, i32 3
  %748 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %747, i32 0, i32 4
  %749 = load ptr, ptr %748, align 8, !tbaa !19
  %750 = getelementptr inbounds double, ptr %749, i64 4
  store double %744, ptr %750, align 8, !tbaa !21
  %751 = load double, ptr %14, align 8, !tbaa !21
  %752 = load ptr, ptr %4, align 8, !tbaa !5
  %753 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %752, i32 0, i32 22
  %754 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %753, i32 0, i32 3
  %755 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %754, i32 0, i32 4
  %756 = load ptr, ptr %755, align 8, !tbaa !19
  %757 = getelementptr inbounds double, ptr %756, i64 5
  store double %751, ptr %757, align 8, !tbaa !21
  %758 = load double, ptr %15, align 8, !tbaa !21
  %759 = load ptr, ptr %4, align 8, !tbaa !5
  %760 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %759, i32 0, i32 22
  %761 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %760, i32 0, i32 3
  %762 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %761, i32 0, i32 4
  %763 = load ptr, ptr %762, align 8, !tbaa !19
  %764 = getelementptr inbounds double, ptr %763, i64 6
  store double %758, ptr %764, align 8, !tbaa !21
  %765 = load double, ptr %16, align 8, !tbaa !21
  %766 = load ptr, ptr %4, align 8, !tbaa !5
  %767 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %766, i32 0, i32 22
  %768 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %767, i32 0, i32 3
  %769 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %768, i32 0, i32 4
  %770 = load ptr, ptr %769, align 8, !tbaa !19
  %771 = getelementptr inbounds double, ptr %770, i64 7
  store double %765, ptr %771, align 8, !tbaa !21
  %772 = load double, ptr %17, align 8, !tbaa !21
  %773 = load ptr, ptr %4, align 8, !tbaa !5
  %774 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %773, i32 0, i32 22
  %775 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %774, i32 0, i32 3
  %776 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %775, i32 0, i32 4
  %777 = load ptr, ptr %776, align 8, !tbaa !19
  %778 = getelementptr inbounds double, ptr %777, i64 8
  store double %772, ptr %778, align 8, !tbaa !21
  %779 = load double, ptr %18, align 8, !tbaa !21
  %780 = load ptr, ptr %4, align 8, !tbaa !5
  %781 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %780, i32 0, i32 22
  %782 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %781, i32 0, i32 3
  %783 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %782, i32 0, i32 4
  %784 = load ptr, ptr %783, align 8, !tbaa !19
  %785 = getelementptr inbounds double, ptr %784, i64 9
  store double %779, ptr %785, align 8, !tbaa !21
  %786 = load double, ptr %19, align 8, !tbaa !21
  %787 = load ptr, ptr %4, align 8, !tbaa !5
  %788 = getelementptr inbounds %"struct.alglib_impl::fblsgmresstate", ptr %787, i32 0, i32 22
  %789 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %788, i32 0, i32 3
  %790 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %789, i32 0, i32 4
  %791 = load ptr, ptr %790, align 8, !tbaa !19
  %792 = getelementptr inbounds double, ptr %791, i64 10
  store double %786, ptr %792, align 8, !tbaa !21
  %793 = load i8, ptr %22, align 1, !tbaa !25, !range !26, !noundef !27
  %794 = trunc i8 %793 to i1
  store i1 %794, ptr %3, align 1
  store i32 1, ptr %23, align 4
  br label %795

795:                                              ; preds = %680, %677, %169
  call void @llvm.lifetime.end.p0(i64 1, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %796 = load i1, ptr %3, align 1
  ret i1 %796
}

declare void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl10rcopymulvrEldPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl6raddvcEldPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl7rcopycvElPKNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl8rmaxabsvElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

declare void @_ZN11alglib_impl7rcopyvcElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !18, i64 984}
!10 = !{!"_ZTSN11alglib_impl14fblsgmresstateE", !11, i64 0, !11, i64 64, !11, i64 128, !11, i64 192, !15, i64 256, !15, i64 336, !15, i64 416, !15, i64 496, !15, i64 576, !11, i64 656, !11, i64 720, !11, i64 784, !11, i64 848, !12, i64 912, !12, i64 920, !16, i64 928, !16, i64 936, !16, i64 944, !16, i64 952, !12, i64 960, !12, i64 968, !16, i64 976, !17, i64 984}
!11 = !{!"_ZTSN11alglib_impl9ae_vectorE", !12, i64 0, !12, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!12 = !{!"long", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl10rcommstateE", !18, i64 0, !11, i64 8, !11, i64 72, !11, i64 136, !11, i64 200}
!18 = !{!"int", !7, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{!12, !12, i64 0}
!21 = !{!16, !16, i64 0}
!22 = !{!10, !12, i64 912}
!23 = !{!10, !12, i64 968}
!24 = !{!10, !16, i64 976}
!25 = !{!13, !13, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!10, !12, i64 920}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!10, !16, i64 952}
!32 = distinct !{!32, !30}
!33 = !{!10, !12, i64 960}
!34 = !{!10, !16, i64 928}
!35 = !{!10, !16, i64 936}
!36 = !{!10, !16, i64 944}


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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11rmatrixgemvElldPKNS_9ae_matrixElllPKNS_9ae_vectorEldPS3_lPNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl9rmatrixmvEllPKNS_9ae_matrixElllPKNS_9ae_vectorElPS3_lPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11rmatrixtrsvElPKNS_9ae_matrixEllbblPNS_9ae_vectorElPNS_8ae_stateE(i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) local_unnamed_addr #2

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

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

declare void @_ZN11alglib_impl6rcopyvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18rowwisegramschmidtEPKNS_9ae_matrixEllPNS_9ae_vectorES4_bPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #1

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl7rcopyrvElPKNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl5rmulvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl18fblsgmresiterationEPNS_14fblsgmresstateEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %6 = getelementptr inbounds i8, ptr %0, i64 984
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = icmp sgt i32 %7, -1
  br i1 %8, label %9, label %.thread

.thread:                                          ; preds = %2
  store double -9.000000e+02, ptr %3, align 8, !tbaa !18
  store double -3.180000e+02, ptr %4, align 8, !tbaa !18
  store double -9.400000e+02, ptr %5, align 8, !tbaa !18
  br label %43

9:                                                ; preds = %2
  %10 = getelementptr inbounds i8, ptr %0, i64 1048
  %11 = load ptr, ptr %10, align 8, !tbaa !19
  %12 = load i64, ptr %11, align 8, !tbaa !20
  %13 = getelementptr inbounds i8, ptr %11, i64 8
  %14 = load i64, ptr %13, align 8, !tbaa !20
  %15 = getelementptr inbounds i8, ptr %11, i64 16
  %16 = load i64, ptr %15, align 8, !tbaa !20
  %17 = getelementptr inbounds i8, ptr %11, i64 24
  %18 = load i64, ptr %17, align 8, !tbaa !20
  %19 = getelementptr inbounds i8, ptr %11, i64 32
  %20 = load i64, ptr %19, align 8, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %0, i64 1176
  %22 = load ptr, ptr %21, align 8, !tbaa !19
  %23 = load double, ptr %22, align 8, !tbaa !18
  %24 = getelementptr inbounds i8, ptr %22, i64 8
  %25 = load double, ptr %24, align 8, !tbaa !18
  %26 = getelementptr inbounds i8, ptr %22, i64 16
  %27 = load double, ptr %26, align 8, !tbaa !18
  store double %27, ptr %3, align 8, !tbaa !18
  %28 = getelementptr inbounds i8, ptr %22, i64 24
  %29 = load double, ptr %28, align 8, !tbaa !18
  store double %29, ptr %4, align 8, !tbaa !18
  %30 = getelementptr inbounds i8, ptr %22, i64 32
  %31 = load double, ptr %30, align 8, !tbaa !18
  store double %31, ptr %5, align 8, !tbaa !18
  %32 = getelementptr inbounds i8, ptr %22, i64 40
  %33 = load double, ptr %32, align 8, !tbaa !18
  %34 = getelementptr inbounds i8, ptr %22, i64 48
  %35 = load double, ptr %34, align 8, !tbaa !18
  %36 = getelementptr inbounds i8, ptr %22, i64 56
  %37 = load double, ptr %36, align 8, !tbaa !18
  %38 = getelementptr inbounds i8, ptr %22, i64 64
  %39 = load double, ptr %38, align 8, !tbaa !18
  %40 = getelementptr inbounds i8, ptr %22, i64 80
  %41 = load double, ptr %40, align 8, !tbaa !18
  %42 = icmp eq i32 %7, 0
  br i1 %42, label %157, label %43

43:                                               ; preds = %.thread, %9
  %.0319 = phi i64 [ 763, %.thread ], [ %20, %9 ]
  %.0280318 = phi double [ -5.360000e+02, %.thread ], [ %37, %9 ]
  %.0282317 = phi double [ -2.290000e+02, %.thread ], [ %35, %9 ]
  %.0284316 = phi double [ 1.016000e+03, %.thread ], [ %33, %9 ]
  %44 = getelementptr inbounds i8, ptr %0, i64 912
  %45 = load i64, ptr %44, align 8, !tbaa !21
  %46 = getelementptr inbounds i8, ptr %0, i64 968
  store i64 1, ptr %46, align 8, !tbaa !22
  %47 = getelementptr inbounds i8, ptr %0, i64 192
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %45, double noundef 0.000000e+00, ptr noundef nonnull %47, ptr noundef %1)
  %48 = tail call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %45, ptr noundef nonnull %0, ptr noundef %1)
  %49 = tail call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %48, ptr noundef %1)
  %50 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %49, double noundef 0.000000e+00)
  br i1 %50, label %51, label %53

51:                                               ; preds = %43
  %52 = getelementptr inbounds i8, ptr %0, i64 976
  store double 0.000000e+00, ptr %52, align 8, !tbaa !23
  br label %279

53:                                               ; preds = %43
  %54 = getelementptr inbounds i8, ptr %0, i64 920
  %55 = load i64, ptr %54, align 8, !tbaa !24
  %56 = add nsw i64 %55, 1
  %57 = getelementptr inbounds i8, ptr %0, i64 256
  tail call void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %56, i64 noundef %45, ptr noundef nonnull %57, ptr noundef %1)
  %58 = load i64, ptr %54, align 8, !tbaa !24
  %59 = getelementptr inbounds i8, ptr %0, i64 336
  tail call void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %58, i64 noundef %45, ptr noundef nonnull %59, ptr noundef %1)
  %60 = fdiv double 1.000000e+00, %49
  tail call void @_ZN11alglib_impl10rcopymulvrEldPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %45, double noundef %60, ptr noundef nonnull %0, ptr noundef nonnull %57, i64 noundef 0, ptr noundef %1)
  %61 = load i64, ptr %54, align 8, !tbaa !24
  %62 = add nsw i64 %61, 1
  %63 = getelementptr inbounds i8, ptr %0, i64 416
  tail call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %62, i64 noundef %61, double noundef 0.000000e+00, ptr noundef nonnull %63, ptr noundef %1)
  %64 = load i64, ptr %54, align 8, !tbaa !24
  %65 = add nsw i64 %64, 1
  %66 = getelementptr inbounds i8, ptr %0, i64 576
  tail call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %65, i64 noundef %64, double noundef 0.000000e+00, ptr noundef nonnull %66, ptr noundef %1)
  %67 = load i64, ptr %54, align 8, !tbaa !24
  %68 = add nsw i64 %67, 1
  %69 = getelementptr inbounds i8, ptr %0, i64 496
  tail call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %68, i64 noundef %68, double noundef 0.000000e+00, ptr noundef nonnull %69, ptr noundef %1)
  %70 = load i64, ptr %54, align 8, !tbaa !24
  %.not320 = icmp slt i64 %70, 0
  br i1 %.not320, label %.._crit_edge_crit_edge, label %.lr.ph

.._crit_edge_crit_edge:                           ; preds = %53
  %.pre = add nsw i64 %70, 1
  br label %._crit_edge

.lr.ph:                                           ; preds = %53
  %71 = getelementptr inbounds i8, ptr %0, i64 568
  %72 = add nuw i64 %70, 1
  %73 = add nuw i64 %70, 1
  %xtraiter = and i64 %73, 3
  %74 = icmp ult i64 %70, 3
  br i1 %74, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %73, -4
  br label %75

75:                                               ; preds = %75, %.lr.ph.new
  %.1274321 = phi i64 [ 0, %.lr.ph.new ], [ %95, %75 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %75 ]
  %76 = load ptr, ptr %71, align 8, !tbaa !19
  %77 = getelementptr inbounds ptr, ptr %76, i64 %.1274321
  %78 = load ptr, ptr %77, align 8, !tbaa !25
  %79 = getelementptr inbounds double, ptr %78, i64 %.1274321
  store double 1.000000e+00, ptr %79, align 8, !tbaa !18
  %80 = or disjoint i64 %.1274321, 1
  %81 = load ptr, ptr %71, align 8, !tbaa !19
  %82 = getelementptr inbounds ptr, ptr %81, i64 %80
  %83 = load ptr, ptr %82, align 8, !tbaa !25
  %84 = getelementptr inbounds double, ptr %83, i64 %80
  store double 1.000000e+00, ptr %84, align 8, !tbaa !18
  %85 = or disjoint i64 %.1274321, 2
  %86 = load ptr, ptr %71, align 8, !tbaa !19
  %87 = getelementptr inbounds ptr, ptr %86, i64 %85
  %88 = load ptr, ptr %87, align 8, !tbaa !25
  %89 = getelementptr inbounds double, ptr %88, i64 %85
  store double 1.000000e+00, ptr %89, align 8, !tbaa !18
  %90 = or disjoint i64 %.1274321, 3
  %91 = load ptr, ptr %71, align 8, !tbaa !19
  %92 = getelementptr inbounds ptr, ptr %91, i64 %90
  %93 = load ptr, ptr %92, align 8, !tbaa !25
  %94 = getelementptr inbounds double, ptr %93, i64 %90
  store double 1.000000e+00, ptr %94, align 8, !tbaa !18
  %95 = add nuw i64 %.1274321, 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_edge.loopexit.unr-lcssa, label %75, !llvm.loop !26

._crit_edge.loopexit.unr-lcssa:                   ; preds = %75, %.lr.ph
  %.1274321.unr = phi i64 [ 0, %.lr.ph ], [ %95, %75 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.1274321.epil = phi i64 [ %100, %.epil.preheader ], [ %.1274321.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %96 = load ptr, ptr %71, align 8, !tbaa !19
  %97 = getelementptr inbounds ptr, ptr %96, i64 %.1274321.epil
  %98 = load ptr, ptr %97, align 8, !tbaa !25
  %99 = getelementptr inbounds double, ptr %98, i64 %.1274321.epil
  store double 1.000000e+00, ptr %99, align 8, !tbaa !18
  %100 = add nuw i64 %.1274321.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !28

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.._crit_edge_crit_edge ], [ %72, %.epil.preheader ], [ %72, %._crit_edge.loopexit.unr-lcssa ]
  %.1274.lcssa = phi i64 [ 0, %.._crit_edge_crit_edge ], [ %72, %.epil.preheader ], [ %72, %._crit_edge.loopexit.unr-lcssa ]
  %101 = getelementptr inbounds i8, ptr %0, i64 656
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %.pre-phi, double noundef 0.000000e+00, ptr noundef nonnull %101, ptr noundef %1)
  %102 = getelementptr inbounds i8, ptr %0, i64 712
  %103 = load ptr, ptr %102, align 8, !tbaa !19
  store double %49, ptr %103, align 8, !tbaa !18
  %104 = load i64, ptr %54, align 8, !tbaa !24
  %105 = getelementptr inbounds i8, ptr %0, i64 720
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %104, double noundef 0.000000e+00, ptr noundef nonnull %105, ptr noundef %1)
  %106 = load i64, ptr %54, align 8, !tbaa !24
  %107 = add nsw i64 %106, 2
  %108 = tail call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %45, i64 noundef %107, ptr noundef %1)
  %109 = getelementptr inbounds i8, ptr %0, i64 784
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %108, ptr noundef nonnull %109, ptr noundef %1)
  %110 = load i64, ptr %54, align 8, !tbaa !24
  %111 = add nsw i64 %110, 2
  %112 = tail call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %45, i64 noundef %111, ptr noundef %1)
  %113 = getelementptr inbounds i8, ptr %0, i64 848
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %112, ptr noundef nonnull %113, ptr noundef %1)
  br label %114

114:                                              ; preds = %265, %._crit_edge
  %.1296 = phi i64 [ %45, %._crit_edge ], [ %12, %265 ]
  %.1294 = phi i64 [ 0, %._crit_edge ], [ %165, %265 ]
  %.1291 = phi i64 [ 0, %._crit_edge ], [ %250, %265 ]
  %.1289 = phi double [ 0.000000e+00, %._crit_edge ], [ %192, %265 ]
  %.1287 = phi double [ 0x547D42AEA2879F2E, %._crit_edge ], [ %195, %265 ]
  %.1285 = phi double [ %.0284316, %._crit_edge ], [ %233, %265 ]
  %.1283 = phi double [ %.0282317, %._crit_edge ], [ %161, %265 ]
  %.1281 = phi double [ %.0280318, %._crit_edge ], [ %170, %265 ]
  %.1279 = phi double [ %49, %._crit_edge ], [ %39, %265 ]
  %.0277 = phi double [ %49, %._crit_edge ], [ %249, %265 ]
  %.2275 = phi i64 [ %.1274.lcssa, %._crit_edge ], [ %18, %265 ]
  %.1 = phi i64 [ %.0319, %._crit_edge ], [ %.2.lcssa, %265 ]
  %115 = getelementptr inbounds i8, ptr %0, i64 920
  %116 = load i64, ptr %115, align 8, !tbaa !24
  %.not303 = icmp slt i64 %.1294, %116
  br i1 %.not303, label %117, label %271

117:                                              ; preds = %114
  %118 = fdiv double %.0277, %.1279
  %119 = getelementptr inbounds i8, ptr %0, i64 976
  store double %118, ptr %119, align 8, !tbaa !23
  %120 = getelementptr inbounds i8, ptr %0, i64 256
  %121 = getelementptr inbounds i8, ptr %0, i64 64
  call void @_ZN11alglib_impl7rcopyrvElPKNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %.1296, ptr noundef nonnull %120, i64 noundef %.1294, ptr noundef nonnull %121, ptr noundef %1)
  store i32 0, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %0, i64 1048
  %123 = load ptr, ptr %122, align 8, !tbaa !19
  store i64 %.1296, ptr %123, align 8, !tbaa !20
  %124 = load ptr, ptr %122, align 8, !tbaa !19
  %125 = getelementptr inbounds i8, ptr %124, i64 8
  store i64 %.1294, ptr %125, align 8, !tbaa !20
  %126 = load ptr, ptr %122, align 8, !tbaa !19
  %127 = getelementptr inbounds i8, ptr %126, i64 16
  store i64 %.1291, ptr %127, align 8, !tbaa !20
  %128 = load ptr, ptr %122, align 8, !tbaa !19
  %129 = getelementptr inbounds i8, ptr %128, i64 24
  store i64 %.2275, ptr %129, align 8, !tbaa !20
  %130 = load ptr, ptr %122, align 8, !tbaa !19
  %131 = getelementptr inbounds i8, ptr %130, i64 32
  store i64 %.1, ptr %131, align 8, !tbaa !20
  %132 = getelementptr inbounds i8, ptr %0, i64 1176
  %133 = load ptr, ptr %132, align 8, !tbaa !19
  store double %.1289, ptr %133, align 8, !tbaa !18
  %134 = load ptr, ptr %132, align 8, !tbaa !19
  %135 = getelementptr inbounds i8, ptr %134, i64 8
  store double %.1287, ptr %135, align 8, !tbaa !18
  %136 = load double, ptr %3, align 8, !tbaa !18
  %137 = load ptr, ptr %132, align 8, !tbaa !19
  %138 = getelementptr inbounds i8, ptr %137, i64 16
  store double %136, ptr %138, align 8, !tbaa !18
  %139 = load double, ptr %4, align 8, !tbaa !18
  %140 = load ptr, ptr %132, align 8, !tbaa !19
  %141 = getelementptr inbounds i8, ptr %140, i64 24
  store double %139, ptr %141, align 8, !tbaa !18
  %142 = load double, ptr %5, align 8, !tbaa !18
  %143 = load ptr, ptr %132, align 8, !tbaa !19
  %144 = getelementptr inbounds i8, ptr %143, i64 32
  store double %142, ptr %144, align 8, !tbaa !18
  %145 = load ptr, ptr %132, align 8, !tbaa !19
  %146 = getelementptr inbounds i8, ptr %145, i64 40
  store double %.1285, ptr %146, align 8, !tbaa !18
  %147 = load ptr, ptr %132, align 8, !tbaa !19
  %148 = getelementptr inbounds i8, ptr %147, i64 48
  store double %.1283, ptr %148, align 8, !tbaa !18
  %149 = load ptr, ptr %132, align 8, !tbaa !19
  %150 = getelementptr inbounds i8, ptr %149, i64 56
  store double %.1281, ptr %150, align 8, !tbaa !18
  %151 = load ptr, ptr %132, align 8, !tbaa !19
  %152 = getelementptr inbounds i8, ptr %151, i64 64
  store double %.1279, ptr %152, align 8, !tbaa !18
  %153 = load ptr, ptr %132, align 8, !tbaa !19
  %154 = getelementptr inbounds i8, ptr %153, i64 72
  store double %.0277, ptr %154, align 8, !tbaa !18
  %155 = load ptr, ptr %132, align 8, !tbaa !19
  %156 = getelementptr inbounds i8, ptr %155, i64 80
  store double %.0277, ptr %156, align 8, !tbaa !18
  br label %279

157:                                              ; preds = %9
  %158 = getelementptr inbounds i8, ptr %0, i64 128
  %159 = getelementptr inbounds i8, ptr %0, i64 336
  tail call void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %12, ptr noundef nonnull %158, ptr noundef nonnull %159, i64 noundef %14, ptr noundef %1)
  %160 = tail call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %12, ptr noundef nonnull %158, ptr noundef %1)
  %161 = tail call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %160, ptr noundef %1)
  %162 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %161, double noundef 0.000000e+00)
  br i1 %162, label %.sink.split, label %163

163:                                              ; preds = %157
  %164 = getelementptr inbounds i8, ptr %0, i64 256
  %165 = add nsw i64 %14, 1
  %166 = getelementptr inbounds i8, ptr %0, i64 784
  tail call void @_ZN11alglib_impl18rowwisegramschmidtEPKNS_9ae_matrixEllPNS_9ae_vectorES4_bPNS_8ae_stateE(ptr noundef nonnull %164, i64 noundef %165, i64 noundef %12, ptr noundef nonnull %158, ptr noundef nonnull %166, i1 noundef zeroext true, ptr noundef %1)
  %167 = getelementptr inbounds i8, ptr %0, i64 848
  tail call void @_ZN11alglib_impl18rowwisegramschmidtEPKNS_9ae_matrixEllPNS_9ae_vectorES4_bPNS_8ae_stateE(ptr noundef nonnull %164, i64 noundef %165, i64 noundef %12, ptr noundef nonnull %158, ptr noundef nonnull %167, i1 noundef zeroext true, ptr noundef %1)
  %168 = getelementptr inbounds i8, ptr %0, i64 416
  tail call void @_ZN11alglib_impl6raddvcEldPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %165, double noundef 1.000000e+00, ptr noundef nonnull %166, ptr noundef nonnull %168, i64 noundef %14, ptr noundef %1)
  tail call void @_ZN11alglib_impl6raddvcEldPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %165, double noundef 1.000000e+00, ptr noundef nonnull %167, ptr noundef nonnull %168, i64 noundef %14, ptr noundef %1)
  %169 = tail call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %12, ptr noundef nonnull %158, ptr noundef %1)
  %170 = tail call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %169, ptr noundef %1)
  %171 = getelementptr inbounds i8, ptr %0, i64 488
  %172 = load ptr, ptr %171, align 8, !tbaa !19
  %173 = getelementptr inbounds ptr, ptr %172, i64 %165
  %174 = load ptr, ptr %173, align 8, !tbaa !25
  %175 = getelementptr inbounds double, ptr %174, i64 %14
  store double %170, ptr %175, align 8, !tbaa !18
  %176 = tail call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %170, double noundef 1.000000e+00, ptr noundef %1)
  %177 = fdiv double 1.000000e+00, %176
  tail call void @_ZN11alglib_impl5rmulvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %12, double noundef %177, ptr noundef nonnull %158, ptr noundef %1)
  tail call void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %12, ptr noundef nonnull %158, ptr noundef nonnull %164, i64 noundef %165, ptr noundef %1)
  %178 = add i64 %14, 2
  tail call void @_ZN11alglib_impl7rcopycvElPKNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %178, ptr noundef nonnull %168, i64 noundef %14, ptr noundef nonnull %166, ptr noundef %1)
  %179 = getelementptr inbounds i8, ptr %0, i64 496
  tail call void @_ZN11alglib_impl11rmatrixgemvElldPKNS_9ae_matrixElllPKNS_9ae_vectorEldPS3_lPNS_8ae_stateE(i64 noundef %178, i64 noundef %178, double noundef 1.000000e+00, ptr noundef nonnull %179, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %166, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %167, i64 noundef 0, ptr noundef %1)
  %180 = getelementptr inbounds i8, ptr %0, i64 904
  %181 = load ptr, ptr %180, align 8, !tbaa !19
  %182 = getelementptr inbounds double, ptr %181, i64 %14
  %183 = load double, ptr %182, align 8, !tbaa !18
  %184 = getelementptr inbounds double, ptr %181, i64 %165
  %185 = load double, ptr %184, align 8, !tbaa !18
  call void @_ZN11alglib_impl16generaterotationEddPdS0_S0_PNS_8ae_stateE(double noundef %183, double noundef %185, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %1)
  %186 = load double, ptr %5, align 8, !tbaa !18
  %187 = load ptr, ptr %180, align 8, !tbaa !19
  %188 = getelementptr inbounds double, ptr %187, i64 %14
  store double %186, ptr %188, align 8, !tbaa !18
  %189 = load ptr, ptr %180, align 8, !tbaa !19
  %190 = getelementptr inbounds double, ptr %189, i64 %165
  store double 0.000000e+00, ptr %190, align 8, !tbaa !18
  %191 = call noundef double @_ZN11alglib_impl8rmaxabsvElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %178, ptr noundef nonnull %167, ptr noundef %1)
  %192 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %23, double noundef %191, ptr noundef %1)
  %193 = load double, ptr %5, align 8, !tbaa !18
  %194 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %193, ptr noundef %1)
  %195 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %25, double noundef %194, ptr noundef %1)
  %196 = getelementptr inbounds i8, ptr %0, i64 952
  %197 = load double, ptr %196, align 8, !tbaa !30
  %198 = fmul double %192, %197
  %199 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %195, double noundef %198)
  br i1 %199, label %.sink.split, label %200

200:                                              ; preds = %163
  %201 = getelementptr inbounds i8, ptr %0, i64 576
  call void @_ZN11alglib_impl7rcopyvcElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %178, ptr noundef nonnull %167, ptr noundef nonnull %201, i64 noundef %14, ptr noundef %1)
  %.not302323 = icmp slt i64 %14, -1
  br i1 %.not302323, label %._crit_edge327, label %.lr.ph326

.lr.ph326:                                        ; preds = %200
  %202 = getelementptr inbounds i8, ptr %0, i64 568
  br label %203

203:                                              ; preds = %.lr.ph326, %203
  %.2324 = phi i64 [ 0, %.lr.ph326 ], [ %227, %203 ]
  %204 = load ptr, ptr %202, align 8, !tbaa !19
  %205 = getelementptr inbounds ptr, ptr %204, i64 %14
  %206 = load ptr, ptr %205, align 8, !tbaa !25
  %207 = getelementptr inbounds double, ptr %206, i64 %.2324
  %208 = load double, ptr %207, align 8, !tbaa !18
  store double %208, ptr %5, align 8, !tbaa !18
  %209 = getelementptr inbounds ptr, ptr %204, i64 %165
  %210 = load ptr, ptr %209, align 8, !tbaa !25
  %211 = getelementptr inbounds double, ptr %210, i64 %.2324
  %212 = load double, ptr %211, align 8, !tbaa !18
  %213 = load double, ptr %3, align 8, !tbaa !18
  %214 = load double, ptr %4, align 8, !tbaa !18
  %215 = fmul double %212, %214
  %216 = call double @llvm.fmuladd.f64(double %213, double %208, double %215)
  store double %216, ptr %207, align 8, !tbaa !18
  %217 = load double, ptr %4, align 8, !tbaa !18
  %218 = fneg double %217
  %219 = load double, ptr %5, align 8, !tbaa !18
  %220 = load double, ptr %3, align 8, !tbaa !18
  %221 = fmul double %212, %220
  %222 = call double @llvm.fmuladd.f64(double %218, double %219, double %221)
  %223 = load ptr, ptr %202, align 8, !tbaa !19
  %224 = getelementptr inbounds ptr, ptr %223, i64 %165
  %225 = load ptr, ptr %224, align 8, !tbaa !25
  %226 = getelementptr inbounds double, ptr %225, i64 %.2324
  store double %222, ptr %226, align 8, !tbaa !18
  %227 = add nuw i64 %.2324, 1
  %exitcond330 = icmp eq i64 %227, %178
  br i1 %exitcond330, label %._crit_edge327, label %203, !llvm.loop !31

._crit_edge327:                                   ; preds = %203, %200
  %.2.lcssa = phi i64 [ 0, %200 ], [ %178, %203 ]
  %228 = getelementptr inbounds i8, ptr %0, i64 712
  %229 = load ptr, ptr %228, align 8, !tbaa !19
  %230 = getelementptr inbounds double, ptr %229, i64 %14
  %231 = load double, ptr %230, align 8, !tbaa !18
  store double %231, ptr %5, align 8, !tbaa !18
  %232 = getelementptr inbounds double, ptr %229, i64 %165
  %233 = load double, ptr %232, align 8, !tbaa !18
  %234 = load double, ptr %3, align 8, !tbaa !18
  %235 = load double, ptr %4, align 8, !tbaa !18
  %236 = fmul double %233, %235
  %237 = call double @llvm.fmuladd.f64(double %234, double %231, double %236)
  store double %237, ptr %230, align 8, !tbaa !18
  %238 = load double, ptr %4, align 8, !tbaa !18
  %239 = fneg double %238
  %240 = load double, ptr %5, align 8, !tbaa !18
  %241 = load double, ptr %3, align 8, !tbaa !18
  %242 = fmul double %233, %241
  %243 = call double @llvm.fmuladd.f64(double %239, double %240, double %242)
  %244 = load ptr, ptr %228, align 8, !tbaa !19
  %245 = getelementptr inbounds double, ptr %244, i64 %165
  store double %243, ptr %245, align 8, !tbaa !18
  %246 = load ptr, ptr %228, align 8, !tbaa !19
  %247 = getelementptr inbounds double, ptr %246, i64 %165
  %248 = load double, ptr %247, align 8, !tbaa !18
  %249 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %248, ptr noundef %1)
  %250 = add nsw i64 %16, 1
  %251 = getelementptr inbounds i8, ptr %0, i64 960
  %252 = load i64, ptr %251, align 8, !tbaa !32
  %253 = add nsw i64 %252, 1
  store i64 %253, ptr %251, align 8, !tbaa !32
  %254 = getelementptr inbounds i8, ptr %0, i64 928
  %255 = load double, ptr %254, align 8, !tbaa !33
  %256 = fmul double %161, %255
  %257 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %170, double noundef %256)
  br i1 %257, label %.sink.split, label %258

258:                                              ; preds = %._crit_edge327
  %259 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %170, double noundef 0.000000e+00)
  br i1 %259, label %.sink.split, label %260

260:                                              ; preds = %258
  %261 = getelementptr inbounds i8, ptr %0, i64 936
  %262 = load double, ptr %261, align 8, !tbaa !34
  %263 = fmul double %39, %262
  %264 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %249, double noundef %263)
  br i1 %264, label %.sink.split, label %265

265:                                              ; preds = %260
  %266 = fdiv double %249, %41
  %267 = getelementptr inbounds i8, ptr %0, i64 944
  %268 = load double, ptr %267, align 8, !tbaa !35
  %269 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %266, double noundef %268)
  br i1 %269, label %.sink.split, label %114

.sink.split:                                      ; preds = %265, %260, %._crit_edge327, %258, %163, %157
  %.sink = phi i64 [ 2, %157 ], [ 3, %163 ], [ 4, %258 ], [ 4, %._crit_edge327 ], [ 5, %260 ], [ 6, %265 ]
  %.2292.ph = phi i64 [ %16, %157 ], [ %16, %163 ], [ %250, %258 ], [ %250, %._crit_edge327 ], [ %250, %260 ], [ %250, %265 ]
  %270 = getelementptr inbounds i8, ptr %0, i64 968
  store i64 %.sink, ptr %270, align 8, !tbaa !22
  br label %271

271:                                              ; preds = %.sink.split, %114
  %.2297 = phi i64 [ %.1296, %114 ], [ %12, %.sink.split ]
  %.2292 = phi i64 [ %.1291, %114 ], [ %.2292.ph, %.sink.split ]
  %272 = icmp sgt i64 %.2292, 0
  br i1 %272, label %273, label %279

273:                                              ; preds = %271
  %274 = getelementptr inbounds i8, ptr %0, i64 656
  %275 = getelementptr inbounds i8, ptr %0, i64 720
  call void @_ZN11alglib_impl6rcopyvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %.2292, ptr noundef nonnull %274, ptr noundef nonnull %275, ptr noundef %1)
  %276 = getelementptr inbounds i8, ptr %0, i64 576
  call void @_ZN11alglib_impl11rmatrixtrsvElPKNS_9ae_matrixEllbblPNS_9ae_vectorElPNS_8ae_stateE(i64 noundef %.2292, ptr noundef nonnull %276, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef nonnull %275, i64 noundef 0, ptr noundef %1)
  %277 = getelementptr inbounds i8, ptr %0, i64 256
  %278 = getelementptr inbounds i8, ptr %0, i64 192
  call void @_ZN11alglib_impl9rmatrixmvEllPKNS_9ae_matrixElllPKNS_9ae_vectorElPS3_lPNS_8ae_stateE(i64 noundef %.2297, i64 noundef %.2292, ptr noundef nonnull %277, i64 noundef 0, i64 noundef 0, i64 noundef 1, ptr noundef nonnull %275, i64 noundef 0, ptr noundef nonnull %278, i64 noundef 0, ptr noundef %1)
  br label %279

279:                                              ; preds = %271, %273, %117, %51
  %.0298 = phi i1 [ true, %117 ], [ false, %51 ], [ false, %273 ], [ false, %271 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret i1 %.0298
}

declare void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl10rcopymulvrEldPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl6raddvcEldPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl7rcopycvElPKNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl8rmaxabsvElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl7rcopyvcElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !17, i64 984}
!6 = !{!"_ZTSN11alglib_impl14fblsgmresstateE", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 192, !14, i64 256, !14, i64 336, !14, i64 416, !14, i64 496, !14, i64 576, !7, i64 656, !7, i64 720, !7, i64 784, !7, i64 848, !8, i64 912, !8, i64 920, !15, i64 928, !15, i64 936, !15, i64 944, !15, i64 952, !8, i64 960, !8, i64 968, !15, i64 976, !16, i64 984}
!7 = !{!"_ZTSN11alglib_impl9ae_vectorE", !8, i64 0, !8, i64 8, !11, i64 16, !12, i64 24, !9, i64 56}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_matrixE", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !11, i64 32, !12, i64 40, !9, i64 72}
!15 = !{!"double", !9, i64 0}
!16 = !{!"_ZTSN11alglib_impl10rcommstateE", !17, i64 0, !7, i64 8, !7, i64 72, !7, i64 136, !7, i64 200}
!17 = !{!"int", !9, i64 0}
!18 = !{!15, !15, i64 0}
!19 = !{!9, !9, i64 0}
!20 = !{!8, !8, i64 0}
!21 = !{!6, !8, i64 912}
!22 = !{!6, !8, i64 968}
!23 = !{!6, !15, i64 976}
!24 = !{!6, !8, i64 920}
!25 = !{!13, !13, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.unroll.disable"}
!30 = !{!6, !15, i64 952}
!31 = distinct !{!31, !27}
!32 = !{!6, !8, i64 960}
!33 = !{!6, !15, i64 928}
!34 = !{!6, !15, i64 936}
!35 = !{!6, !15, i64 944}


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