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

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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::normestimatorstate" = type { i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::hqrndstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, i8, double, %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"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" }
%"struct.alglib_impl::sparsesolverreport" = type { i64, i64, i64, double }

@.str.451 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.452 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.453 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.454 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.455 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.456 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.457 = external hidden unnamed_addr constant [49 x i8], align 1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11sparsesolveEPKNS_12sparsematrixEPKNS_9ae_vectorElPS3_PNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.alglib_impl::ae_frame", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca double, align 8
  %18 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca double, align 8
  %25 = alloca %"struct.alglib_impl::normestimatorstate", align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 792, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %29, ptr noundef %13)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 792, i1 false)
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %30)
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl25_sparsesolverreport_clearEPv(ptr noundef %31)
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %18, ptr noundef %32, i1 noundef zeroext true)
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 2, ptr noundef %33, i1 noundef zeroext true)
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 2, ptr noundef %34, i1 noundef zeroext true)
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 3, ptr noundef %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 3, ptr noundef %36, i1 noundef zeroext true)
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 3, ptr noundef %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl24_normestimatorstate_initEPvPNS_8ae_stateEb(ptr noundef %25, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %39, ptr noundef %40)
  store i64 %41, ptr %16, align 8, !tbaa !9
  %42 = load i64, ptr %16, align 8, !tbaa !9
  %43 = icmp sgt i64 %42, 0
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef @.str.451, ptr noundef %44)
  %45 = load i64, ptr %9, align 8, !tbaa !9
  %46 = icmp eq i64 %45, 0
  br i1 %46, label %59, label %47

47:                                               ; preds = %6
  %48 = load i64, ptr %9, align 8, !tbaa !9
  %49 = icmp eq i64 %48, -19
  br i1 %49, label %59, label %50

50:                                               ; preds = %47
  %51 = load i64, ptr %9, align 8, !tbaa !9
  %52 = icmp eq i64 %51, 10
  br i1 %52, label %59, label %53

53:                                               ; preds = %50
  %54 = load i64, ptr %9, align 8, !tbaa !9
  %55 = icmp eq i64 %54, 11
  br i1 %55, label %59, label %56

56:                                               ; preds = %53
  %57 = load i64, ptr %9, align 8, !tbaa !9
  %58 = icmp eq i64 %57, 20
  br label %59

59:                                               ; preds = %56, %53, %50, %47, %6
  %60 = phi i1 [ true, %53 ], [ true, %50 ], [ true, %47 ], [ true, %6 ], [ %58, %56 ]
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %60, ptr noundef @.str.452, ptr noundef %61)
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %62, ptr noundef %63)
  %65 = load i64, ptr %16, align 8, !tbaa !9
  %66 = icmp eq i64 %64, %65
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %66, ptr noundef @.str.453, ptr noundef %67)
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %68, ptr noundef %69)
  %71 = load i64, ptr %16, align 8, !tbaa !9
  %72 = icmp eq i64 %70, %71
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %72, ptr noundef @.str.454, ptr noundef %73)
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %74, i32 0, i32 0
  %76 = load i64, ptr %75, align 8, !tbaa !11
  %77 = load i64, ptr %16, align 8, !tbaa !9
  %78 = icmp sge i64 %76, %77
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %78, ptr noundef @.str.455, ptr noundef %79)
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = load i64, ptr %16, align 8, !tbaa !9
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %80, i64 noundef %81, ptr noundef %82)
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %83, ptr noundef @.str.456, ptr noundef %84)
  %85 = load i64, ptr %9, align 8, !tbaa !9
  %86 = icmp eq i64 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %59
  store i64 10, ptr %9, align 8, !tbaa !9
  br label %88

88:                                               ; preds = %87, %59
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl22initsparsesolverreportEPNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef %89, ptr noundef %90)
  %91 = load i64, ptr %16, align 8, !tbaa !9
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %91, double noundef 0.000000e+00, ptr noundef %92, ptr noundef %93)
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytocrsEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %94, ptr noundef %18, ptr noundef %95)
  %96 = load i64, ptr %9, align 8, !tbaa !9
  %97 = icmp eq i64 %96, -19
  br i1 %97, label %104, label %98

98:                                               ; preds = %88
  %99 = load i64, ptr %9, align 8, !tbaa !9
  %100 = icmp eq i64 %99, 10
  br i1 %100, label %104, label %101

101:                                              ; preds = %98
  %102 = load i64, ptr %9, align 8, !tbaa !9
  %103 = icmp eq i64 %102, 11
  br i1 %103, label %104, label %142

104:                                              ; preds = %101, %98, %88
  store i64 200, ptr %26, align 8, !tbaa !9
  store i64 200, ptr %27, align 8, !tbaa !9
  %105 = load i64, ptr %9, align 8, !tbaa !9
  %106 = icmp eq i64 %105, 11
  br i1 %106, label %107, label %108

107:                                              ; preds = %104
  store i64 25, ptr %26, align 8, !tbaa !9
  store i64 200, ptr %27, align 8, !tbaa !9
  br label %108

108:                                              ; preds = %107, %104
  %109 = load i64, ptr %9, align 8, !tbaa !9
  %110 = icmp eq i64 %109, -19
  br i1 %110, label %111, label %112

111:                                              ; preds = %108
  store i64 5, ptr %26, align 8, !tbaa !9
  store i64 200, ptr %27, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %111, %108
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl11sparsescaleEPNS_12sparsematrixElbbbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %18, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext true, i1 noundef zeroext true, ptr noundef %22, ptr noundef %23, ptr noundef %113)
  %114 = load i64, ptr %16, align 8, !tbaa !9
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %114, ptr noundef %115, ptr noundef %21, ptr noundef %116)
  %117 = load i64, ptr %16, align 8, !tbaa !9
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rmergedivvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %117, ptr noundef %22, ptr noundef %21, ptr noundef %118)
  %119 = load i64, ptr %16, align 8, !tbaa !9
  %120 = load i64, ptr %16, align 8, !tbaa !9
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl19normestimatorcreateEllllPNS_18normestimatorstateEPNS_8ae_stateE(i64 noundef %119, i64 noundef %120, i64 noundef 5, i64 noundef 5, ptr noundef %25, ptr noundef %121)
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20normestimatorsetseedEPNS_18normestimatorstateElPNS_8ae_stateE(ptr noundef %25, i64 noundef 117, ptr noundef %122)
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %25, ptr noundef %18, ptr noundef %123)
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20normestimatorresultsEPKNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef %25, ptr noundef %17, ptr noundef %124)
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 5.000000e-16, ptr noundef %125)
  %127 = load double, ptr %17, align 8, !tbaa !15
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %127, double noundef 1.000000e+00, ptr noundef %128)
  %130 = fmul double %126, %129
  store double %130, ptr %24, align 8, !tbaa !15
  %131 = load double, ptr %24, align 8, !tbaa !15
  %132 = load double, ptr %24, align 8, !tbaa !15
  %133 = load i64, ptr %26, align 8, !tbaa !9
  %134 = load i64, ptr %27, align 8, !tbaa !9
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_implL34directsparsesolvers_sparsesolveaugEPKNS_12sparsematrixEPKNS_9ae_vectorEddddllPS3_PNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef %18, ptr noundef %21, double noundef %131, double noundef %132, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef %133, i64 noundef %134, ptr noundef %135, ptr noundef %136, ptr noundef %137)
  %138 = load i64, ptr %16, align 8, !tbaa !9
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rmergedivvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %138, ptr noundef %23, ptr noundef %139, ptr noundef %140)
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %141)
  store i32 1, ptr %28, align 4
  br label %275

142:                                              ; preds = %101
  %143 = load i64, ptr %9, align 8, !tbaa !9
  %144 = icmp eq i64 %143, 20
  br i1 %144, label %145, label %272

145:                                              ; preds = %142
  %146 = load ptr, ptr %12, align 8, !tbaa !5
  %147 = call noundef zeroext i1 @_ZN11alglib_impl8sparseluEPNS_12sparsematrixElPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %18, i64 noundef 0, ptr noundef %19, ptr noundef %20, ptr noundef %146)
  br i1 %147, label %167, label %148

148:                                              ; preds = %145
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.alglib_impl::sparsesolverreport", ptr %149, i32 0, i32 0
  store i64 -3, ptr %150, align 8, !tbaa !17
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %162, %148
  %152 = load i64, ptr %14, align 8, !tbaa !9
  %153 = load i64, ptr %16, align 8, !tbaa !9
  %154 = sub nsw i64 %153, 1
  %155 = icmp sle i64 %152, %154
  br i1 %155, label %156, label %165

156:                                              ; preds = %151
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %157, i32 0, i32 4
  %159 = load ptr, ptr %158, align 8, !tbaa !19
  %160 = load i64, ptr %14, align 8, !tbaa !9
  %161 = getelementptr inbounds double, ptr %159, i64 %160
  store double 0.000000e+00, ptr %161, align 8, !tbaa !15
  br label %162

162:                                              ; preds = %156
  %163 = load i64, ptr %14, align 8, !tbaa !9
  %164 = add nsw i64 %163, 1
  store i64 %164, ptr %14, align 8, !tbaa !9
  br label %151, !llvm.loop !20

165:                                              ; preds = %151
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %166)
  store i32 1, ptr %28, align 4
  br label %275

167:                                              ; preds = %145
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %168

168:                                              ; preds = %185, %167
  %169 = load i64, ptr %14, align 8, !tbaa !9
  %170 = load i64, ptr %16, align 8, !tbaa !9
  %171 = sub nsw i64 %170, 1
  %172 = icmp sle i64 %169, %171
  br i1 %172, label %173, label %188

173:                                              ; preds = %168
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %174, i32 0, i32 4
  %176 = load ptr, ptr %175, align 8, !tbaa !19
  %177 = load i64, ptr %14, align 8, !tbaa !9
  %178 = getelementptr inbounds double, ptr %176, i64 %177
  %179 = load double, ptr %178, align 8, !tbaa !15
  %180 = load ptr, ptr %10, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %180, i32 0, i32 4
  %182 = load ptr, ptr %181, align 8, !tbaa !19
  %183 = load i64, ptr %14, align 8, !tbaa !9
  %184 = getelementptr inbounds double, ptr %182, i64 %183
  store double %179, ptr %184, align 8, !tbaa !15
  br label %185

185:                                              ; preds = %173
  %186 = load i64, ptr %14, align 8, !tbaa !9
  %187 = add nsw i64 %186, 1
  store i64 %187, ptr %14, align 8, !tbaa !9
  br label %168, !llvm.loop !22

188:                                              ; preds = %168
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %189

189:                                              ; preds = %223, %188
  %190 = load i64, ptr %14, align 8, !tbaa !9
  %191 = load i64, ptr %16, align 8, !tbaa !9
  %192 = sub nsw i64 %191, 1
  %193 = icmp sle i64 %190, %192
  br i1 %193, label %194, label %226

194:                                              ; preds = %189
  %195 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %196 = load ptr, ptr %195, align 8, !tbaa !19
  %197 = load i64, ptr %14, align 8, !tbaa !9
  %198 = getelementptr inbounds i64, ptr %196, i64 %197
  %199 = load i64, ptr %198, align 8, !tbaa !9
  store i64 %199, ptr %15, align 8, !tbaa !9
  %200 = load ptr, ptr %10, align 8, !tbaa !5
  %201 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %200, i32 0, i32 4
  %202 = load ptr, ptr %201, align 8, !tbaa !19
  %203 = load i64, ptr %14, align 8, !tbaa !9
  %204 = getelementptr inbounds double, ptr %202, i64 %203
  %205 = load double, ptr %204, align 8, !tbaa !15
  store double %205, ptr %17, align 8, !tbaa !15
  %206 = load ptr, ptr %10, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %206, i32 0, i32 4
  %208 = load ptr, ptr %207, align 8, !tbaa !19
  %209 = load i64, ptr %15, align 8, !tbaa !9
  %210 = getelementptr inbounds double, ptr %208, i64 %209
  %211 = load double, ptr %210, align 8, !tbaa !15
  %212 = load ptr, ptr %10, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %212, i32 0, i32 4
  %214 = load ptr, ptr %213, align 8, !tbaa !19
  %215 = load i64, ptr %14, align 8, !tbaa !9
  %216 = getelementptr inbounds double, ptr %214, i64 %215
  store double %211, ptr %216, align 8, !tbaa !15
  %217 = load double, ptr %17, align 8, !tbaa !15
  %218 = load ptr, ptr %10, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %218, i32 0, i32 4
  %220 = load ptr, ptr %219, align 8, !tbaa !19
  %221 = load i64, ptr %15, align 8, !tbaa !9
  %222 = getelementptr inbounds double, ptr %220, i64 %221
  store double %217, ptr %222, align 8, !tbaa !15
  br label %223

223:                                              ; preds = %194
  %224 = load i64, ptr %14, align 8, !tbaa !9
  %225 = add nsw i64 %224, 1
  store i64 %225, ptr %14, align 8, !tbaa !9
  br label %189, !llvm.loop !23

226:                                              ; preds = %189
  %227 = load ptr, ptr %10, align 8, !tbaa !5
  %228 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %18, i1 noundef zeroext false, i1 noundef zeroext true, i64 noundef 0, ptr noundef %227, ptr noundef %228)
  %229 = load ptr, ptr %10, align 8, !tbaa !5
  %230 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %18, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %229, ptr noundef %230)
  %231 = load i64, ptr %16, align 8, !tbaa !9
  %232 = sub nsw i64 %231, 1
  store i64 %232, ptr %14, align 8, !tbaa !9
  br label %233

233:                                              ; preds = %265, %226
  %234 = load i64, ptr %14, align 8, !tbaa !9
  %235 = icmp sge i64 %234, 0
  br i1 %235, label %236, label %268

236:                                              ; preds = %233
  %237 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %238 = load ptr, ptr %237, align 8, !tbaa !19
  %239 = load i64, ptr %14, align 8, !tbaa !9
  %240 = getelementptr inbounds i64, ptr %238, i64 %239
  %241 = load i64, ptr %240, align 8, !tbaa !9
  store i64 %241, ptr %15, align 8, !tbaa !9
  %242 = load ptr, ptr %10, align 8, !tbaa !5
  %243 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %242, i32 0, i32 4
  %244 = load ptr, ptr %243, align 8, !tbaa !19
  %245 = load i64, ptr %14, align 8, !tbaa !9
  %246 = getelementptr inbounds double, ptr %244, i64 %245
  %247 = load double, ptr %246, align 8, !tbaa !15
  store double %247, ptr %17, align 8, !tbaa !15
  %248 = load ptr, ptr %10, align 8, !tbaa !5
  %249 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %248, i32 0, i32 4
  %250 = load ptr, ptr %249, align 8, !tbaa !19
  %251 = load i64, ptr %15, align 8, !tbaa !9
  %252 = getelementptr inbounds double, ptr %250, i64 %251
  %253 = load double, ptr %252, align 8, !tbaa !15
  %254 = load ptr, ptr %10, align 8, !tbaa !5
  %255 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %254, i32 0, i32 4
  %256 = load ptr, ptr %255, align 8, !tbaa !19
  %257 = load i64, ptr %14, align 8, !tbaa !9
  %258 = getelementptr inbounds double, ptr %256, i64 %257
  store double %253, ptr %258, align 8, !tbaa !15
  %259 = load double, ptr %17, align 8, !tbaa !15
  %260 = load ptr, ptr %10, align 8, !tbaa !5
  %261 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %260, i32 0, i32 4
  %262 = load ptr, ptr %261, align 8, !tbaa !19
  %263 = load i64, ptr %15, align 8, !tbaa !9
  %264 = getelementptr inbounds double, ptr %262, i64 %263
  store double %259, ptr %264, align 8, !tbaa !15
  br label %265

265:                                              ; preds = %236
  %266 = load i64, ptr %14, align 8, !tbaa !9
  %267 = add nsw i64 %266, -1
  store i64 %267, ptr %14, align 8, !tbaa !9
  br label %233, !llvm.loop !24

268:                                              ; preds = %233
  %269 = load ptr, ptr %11, align 8, !tbaa !5
  %270 = getelementptr inbounds %"struct.alglib_impl::sparsesolverreport", ptr %269, i32 0, i32 0
  store i64 1, ptr %270, align 8, !tbaa !17
  %271 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %271)
  store i32 1, ptr %28, align 4
  br label %275

272:                                              ; preds = %142
  %273 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.457, ptr noundef %273)
  %274 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %274)
  store i32 0, ptr %28, align 4
  br label %275

275:                                              ; preds = %272, %268, %165, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 792, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  %276 = load i32, ptr %28, align 4
  switch i32 %276, label %278 [
    i32 0, label %277
    i32 1, label %277
  ]

277:                                              ; preds = %275, %275
  ret void

278:                                              ; preds = %275
  unreachable
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl25_sparsesolverreport_clearEPv(ptr noundef) #3

declare void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl22initsparsesolverreportEPNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef, ptr noundef) #4

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

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

declare void @_ZN11alglib_impl20normestimatorresultsEPKNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl24_normestimatorstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl15sparsecopytocrsEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl11sparsescaleEPNS_12sparsematrixElbbbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) #2

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

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

declare void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL34directsparsesolvers_sparsesolveaugEPKNS_12sparsematrixEPKNS_9ae_vectorEddddllPS3_PNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare noundef zeroext i1 @_ZN11alglib_impl8sparseluEPNS_12sparsematrixElPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTSN11alglib_impl18sparsesolverreportE", !10, i64 0, !10, i64 8, !10, i64 16, !16, i64 24}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::normestimatorstate" = type { i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::hqrndstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, i8, double, %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"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" }

@.str.451 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.452 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.453 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.454 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.455 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.456 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.457 = external hidden unnamed_addr constant [49 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11sparsesolveEPKNS_12sparsematrixEPKNS_9ae_vectorElPS3_PNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #3 {
switch.edge:
  %6 = alloca %"struct.alglib_impl::ae_frame", align 8
  %7 = alloca double, align 8
  %8 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::normestimatorstate", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 792, ptr nonnull %14) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %5, ptr noundef nonnull %6)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %8, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(792) %14, i8 0, i64 792, i1 false)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %3)
  call void @_ZN11alglib_impl25_sparsesolverreport_clearEPv(ptr noundef %4)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %8, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 2, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 2, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl24_normestimatorstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %14, ptr noundef %5, i1 noundef zeroext true)
  %15 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %5)
  %16 = icmp sgt i64 %15, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.451, ptr noundef %5)
  %17 = icmp eq i64 %2, 0
  %switch.tableidx = add i64 %2, 19
  %18 = icmp ult i64 %switch.tableidx, 40
  %switch.cast = trunc i64 %switch.tableidx to i40
  %switch.downshift = lshr i40 -548144676863, %switch.cast
  %switch.masked = trunc i40 %switch.downshift to i1
  %19 = select i1 %18, i1 %switch.masked, i1 false
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.452, ptr noundef %5)
  %20 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %5)
  %21 = icmp eq i64 %20, %15
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.453, ptr noundef %5)
  %22 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %5)
  %23 = icmp eq i64 %22, %15
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef nonnull @.str.454, ptr noundef %5)
  %24 = load i64, ptr %1, align 8, !tbaa !5
  %25 = icmp sge i64 %24, %15
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.455, ptr noundef %5)
  %26 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %15, ptr noundef %5)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef nonnull @.str.456, ptr noundef %5)
  %spec.store.select = select i1 %17, i64 10, i64 %2
  call void @_ZN11alglib_impl22initsparsesolverreportEPNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef %4, ptr noundef %5)
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %15, double noundef 0.000000e+00, ptr noundef %3, ptr noundef %5)
  call void @_ZN11alglib_impl15sparsecopytocrsEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %8, ptr noundef %5)
  %27 = icmp eq i64 %spec.store.select, -19
  switch i64 %spec.store.select, label %157 [
    i64 11, label %28
    i64 10, label %29
    i64 -19, label %29
    i64 20, label %34
  ]

28:                                               ; preds = %switch.edge
  br label %29

29:                                               ; preds = %switch.edge, %switch.edge, %28
  %.0129 = phi i64 [ 25, %28 ], [ 200, %switch.edge ], [ 200, %switch.edge ]
  %spec.select = select i1 %27, i64 5, i64 %.0129
  call void @_ZN11alglib_impl11sparsescaleEPNS_12sparsematrixElbbbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext true, i1 noundef zeroext true, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef %5)
  call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %15, ptr noundef nonnull %1, ptr noundef nonnull %11, ptr noundef %5)
  call void @_ZN11alglib_impl10rmergedivvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %15, ptr noundef nonnull %12, ptr noundef nonnull %11, ptr noundef %5)
  call void @_ZN11alglib_impl19normestimatorcreateEllllPNS_18normestimatorstateEPNS_8ae_stateE(i64 noundef %15, i64 noundef %15, i64 noundef 5, i64 noundef 5, ptr noundef nonnull %14, ptr noundef %5)
  call void @_ZN11alglib_impl20normestimatorsetseedEPNS_18normestimatorstateElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef 117, ptr noundef %5)
  call void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %8, ptr noundef %5)
  call void @_ZN11alglib_impl20normestimatorresultsEPKNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %7, ptr noundef %5)
  %30 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 5.000000e-16, ptr noundef %5)
  %31 = load double, ptr %7, align 8, !tbaa !13
  %32 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %31, double noundef 1.000000e+00, ptr noundef %5)
  %33 = fmul double %30, %32
  call void @_ZN11alglib_implL34directsparsesolvers_sparsesolveaugEPKNS_12sparsematrixEPKNS_9ae_vectorEddddllPS3_PNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %11, double noundef %33, double noundef %33, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef %spec.select, i64 noundef 200, ptr noundef %3, ptr noundef %4, ptr noundef %5)
  call void @_ZN11alglib_impl10rmergedivvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %15, ptr noundef nonnull %13, ptr noundef %3, ptr noundef %5)
  br label %._crit_edge

34:                                               ; preds = %switch.edge
  %35 = call noundef zeroext i1 @_ZN11alglib_impl8sparseluEPNS_12sparsematrixElPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef 0, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %5)
  br i1 %35, label %.preheader136, label %40

.preheader136:                                    ; preds = %34
  br i1 %16, label %.lr.ph141, label %._crit_edge149.critedge

.lr.ph141:                                        ; preds = %.preheader136
  %36 = getelementptr inbounds i8, ptr %1, i64 56
  %37 = getelementptr inbounds i8, ptr %3, i64 56
  %38 = add nsw i64 %15, -1
  %xtraiter153 = and i64 %15, 3
  %39 = icmp ult i64 %15, 4
  br i1 %39, label %.preheader.unr-lcssa, label %.lr.ph141.new

.lr.ph141.new:                                    ; preds = %.lr.ph141
  %unroll_iter156 = and i64 %15, 9223372036854775804
  br label %65

40:                                               ; preds = %34
  store i64 -3, ptr %4, align 8, !tbaa !15
  br i1 %16, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %40
  %41 = getelementptr inbounds i8, ptr %3, i64 56
  %xtraiter = and i64 %15, 3
  %42 = icmp ult i64 %15, 4
  br i1 %42, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %15, 9223372036854775804
  br label %43

43:                                               ; preds = %43, %.lr.ph.new
  %.0131138 = phi i64 [ 0, %.lr.ph.new ], [ %55, %43 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %43 ]
  %44 = load ptr, ptr %41, align 8, !tbaa !17
  %45 = getelementptr inbounds double, ptr %44, i64 %.0131138
  store double 0.000000e+00, ptr %45, align 8, !tbaa !13
  %46 = or disjoint i64 %.0131138, 1
  %47 = load ptr, ptr %41, align 8, !tbaa !17
  %48 = getelementptr inbounds double, ptr %47, i64 %46
  store double 0.000000e+00, ptr %48, align 8, !tbaa !13
  %49 = or disjoint i64 %.0131138, 2
  %50 = load ptr, ptr %41, align 8, !tbaa !17
  %51 = getelementptr inbounds double, ptr %50, i64 %49
  store double 0.000000e+00, ptr %51, align 8, !tbaa !13
  %52 = or disjoint i64 %.0131138, 3
  %53 = load ptr, ptr %41, align 8, !tbaa !17
  %54 = getelementptr inbounds double, ptr %53, i64 %52
  store double 0.000000e+00, ptr %54, align 8, !tbaa !13
  %55 = add nuw nsw i64 %.0131138, 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 %43, !llvm.loop !18

.preheader.unr-lcssa:                             ; preds = %65, %.lr.ph141
  %.1132140.unr = phi i64 [ 0, %.lr.ph141 ], [ %89, %65 ]
  %lcmp.mod155.not = icmp eq i64 %xtraiter153, 0
  br i1 %lcmp.mod155.not, label %.preheader, label %.epil.preheader152

.epil.preheader152:                               ; preds = %.preheader.unr-lcssa, %.epil.preheader152
  %.1132140.epil = phi i64 [ %61, %.epil.preheader152 ], [ %.1132140.unr, %.preheader.unr-lcssa ]
  %epil.iter154 = phi i64 [ %epil.iter154.next, %.epil.preheader152 ], [ 0, %.preheader.unr-lcssa ]
  %56 = load ptr, ptr %36, align 8, !tbaa !17
  %57 = getelementptr inbounds double, ptr %56, i64 %.1132140.epil
  %58 = load double, ptr %57, align 8, !tbaa !13
  %59 = load ptr, ptr %37, align 8, !tbaa !17
  %60 = getelementptr inbounds double, ptr %59, i64 %.1132140.epil
  store double %58, ptr %60, align 8, !tbaa !13
  %61 = add nuw nsw i64 %.1132140.epil, 1
  %epil.iter154.next = add i64 %epil.iter154, 1
  %epil.iter154.cmp.not = icmp eq i64 %epil.iter154.next, %xtraiter153
  br i1 %epil.iter154.cmp.not, label %.preheader, label %.epil.preheader152, !llvm.loop !20

.preheader:                                       ; preds = %.epil.preheader152, %.preheader.unr-lcssa
  br i1 %16, label %.lr.ph144, label %._crit_edge149.critedge

.lr.ph144:                                        ; preds = %.preheader
  %62 = getelementptr inbounds i8, ptr %9, i64 56
  %63 = getelementptr inbounds i8, ptr %3, i64 56
  %xtraiter159 = and i64 %15, 1
  %64 = icmp eq i64 %38, 0
  br i1 %64, label %._crit_edge145.unr-lcssa, label %.lr.ph144.new

.lr.ph144.new:                                    ; preds = %.lr.ph144
  %unroll_iter162 = and i64 %15, 9223372036854775806
  br label %90

65:                                               ; preds = %65, %.lr.ph141.new
  %.1132140 = phi i64 [ 0, %.lr.ph141.new ], [ %89, %65 ]
  %niter157 = phi i64 [ 0, %.lr.ph141.new ], [ %niter157.next.3, %65 ]
  %66 = load ptr, ptr %36, align 8, !tbaa !17
  %67 = getelementptr inbounds double, ptr %66, i64 %.1132140
  %68 = load double, ptr %67, align 8, !tbaa !13
  %69 = load ptr, ptr %37, align 8, !tbaa !17
  %70 = getelementptr inbounds double, ptr %69, i64 %.1132140
  store double %68, ptr %70, align 8, !tbaa !13
  %71 = or disjoint i64 %.1132140, 1
  %72 = load ptr, ptr %36, align 8, !tbaa !17
  %73 = getelementptr inbounds double, ptr %72, i64 %71
  %74 = load double, ptr %73, align 8, !tbaa !13
  %75 = load ptr, ptr %37, align 8, !tbaa !17
  %76 = getelementptr inbounds double, ptr %75, i64 %71
  store double %74, ptr %76, align 8, !tbaa !13
  %77 = or disjoint i64 %.1132140, 2
  %78 = load ptr, ptr %36, align 8, !tbaa !17
  %79 = getelementptr inbounds double, ptr %78, i64 %77
  %80 = load double, ptr %79, align 8, !tbaa !13
  %81 = load ptr, ptr %37, align 8, !tbaa !17
  %82 = getelementptr inbounds double, ptr %81, i64 %77
  store double %80, ptr %82, align 8, !tbaa !13
  %83 = or disjoint i64 %.1132140, 3
  %84 = load ptr, ptr %36, align 8, !tbaa !17
  %85 = getelementptr inbounds double, ptr %84, i64 %83
  %86 = load double, ptr %85, align 8, !tbaa !13
  %87 = load ptr, ptr %37, align 8, !tbaa !17
  %88 = getelementptr inbounds double, ptr %87, i64 %83
  store double %86, ptr %88, align 8, !tbaa !13
  %89 = add nuw nsw i64 %.1132140, 4
  %niter157.next.3 = add i64 %niter157, 4
  %niter157.ncmp.3 = icmp eq i64 %niter157.next.3, %unroll_iter156
  br i1 %niter157.ncmp.3, label %.preheader.unr-lcssa, label %65, !llvm.loop !22

90:                                               ; preds = %90, %.lr.ph144.new
  %.2143 = phi i64 [ 0, %.lr.ph144.new ], [ %112, %90 ]
  %niter163 = phi i64 [ 0, %.lr.ph144.new ], [ %niter163.next.1, %90 ]
  %91 = load ptr, ptr %62, align 8, !tbaa !17
  %92 = getelementptr inbounds i64, ptr %91, i64 %.2143
  %93 = load i64, ptr %92, align 8, !tbaa !23
  %94 = load ptr, ptr %63, align 8, !tbaa !17
  %95 = getelementptr inbounds double, ptr %94, i64 %.2143
  %96 = load double, ptr %95, align 8, !tbaa !13
  %97 = getelementptr inbounds double, ptr %94, i64 %93
  %98 = load double, ptr %97, align 8, !tbaa !13
  store double %98, ptr %95, align 8, !tbaa !13
  %99 = load ptr, ptr %63, align 8, !tbaa !17
  %100 = getelementptr inbounds double, ptr %99, i64 %93
  store double %96, ptr %100, align 8, !tbaa !13
  %101 = or disjoint i64 %.2143, 1
  %102 = load ptr, ptr %62, align 8, !tbaa !17
  %103 = getelementptr inbounds i64, ptr %102, i64 %101
  %104 = load i64, ptr %103, align 8, !tbaa !23
  %105 = load ptr, ptr %63, align 8, !tbaa !17
  %106 = getelementptr inbounds double, ptr %105, i64 %101
  %107 = load double, ptr %106, align 8, !tbaa !13
  %108 = getelementptr inbounds double, ptr %105, i64 %104
  %109 = load double, ptr %108, align 8, !tbaa !13
  store double %109, ptr %106, align 8, !tbaa !13
  %110 = load ptr, ptr %63, align 8, !tbaa !17
  %111 = getelementptr inbounds double, ptr %110, i64 %104
  store double %107, ptr %111, align 8, !tbaa !13
  %112 = add nuw nsw i64 %.2143, 2
  %niter163.next.1 = add i64 %niter163, 2
  %niter163.ncmp.1 = icmp eq i64 %niter163.next.1, %unroll_iter162
  br i1 %niter163.ncmp.1, label %._crit_edge145.unr-lcssa, label %90, !llvm.loop !24

._crit_edge145.unr-lcssa:                         ; preds = %90, %.lr.ph144
  %.2143.unr = phi i64 [ 0, %.lr.ph144 ], [ %112, %90 ]
  %lcmp.mod161.not = icmp eq i64 %xtraiter159, 0
  br i1 %lcmp.mod161.not, label %._crit_edge145, label %._crit_edge145.epilog-lcssa

._crit_edge145.epilog-lcssa:                      ; preds = %._crit_edge145.unr-lcssa
  %113 = load ptr, ptr %62, align 8, !tbaa !17
  %114 = getelementptr inbounds i64, ptr %113, i64 %.2143.unr
  %115 = load i64, ptr %114, align 8, !tbaa !23
  %116 = load ptr, ptr %63, align 8, !tbaa !17
  %117 = getelementptr inbounds double, ptr %116, i64 %.2143.unr
  %118 = load double, ptr %117, align 8, !tbaa !13
  %119 = getelementptr inbounds double, ptr %116, i64 %115
  %120 = load double, ptr %119, align 8, !tbaa !13
  store double %120, ptr %117, align 8, !tbaa !13
  %121 = load ptr, ptr %63, align 8, !tbaa !17
  %122 = getelementptr inbounds double, ptr %121, i64 %115
  store double %118, ptr %122, align 8, !tbaa !13
  br label %._crit_edge145

._crit_edge145:                                   ; preds = %._crit_edge145.unr-lcssa, %._crit_edge145.epilog-lcssa
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %8, i1 noundef zeroext false, i1 noundef zeroext true, i64 noundef 0, ptr noundef %3, ptr noundef %5)
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %8, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %3, ptr noundef %5)
  br i1 %16, label %.lr.ph148, label %._crit_edge149

.lr.ph148:                                        ; preds = %._crit_edge145
  %123 = getelementptr inbounds i8, ptr %10, i64 56
  %124 = getelementptr inbounds i8, ptr %3, i64 56
  %xtraiter164 = and i64 %15, 1
  %lcmp.mod165.not = icmp eq i64 %xtraiter164, 0
  br i1 %lcmp.mod165.not, label %.prol.loopexit, label %.prol.loopexit.unr-lcssa

.prol.loopexit.unr-lcssa:                         ; preds = %.lr.ph148
  %.3.prol = add nsw i64 %15, -1
  %125 = load ptr, ptr %123, align 8, !tbaa !17
  %126 = getelementptr inbounds i64, ptr %125, i64 %.3.prol
  %127 = load i64, ptr %126, align 8, !tbaa !23
  %128 = load ptr, ptr %124, align 8, !tbaa !17
  %129 = getelementptr inbounds double, ptr %128, i64 %.3.prol
  %130 = load double, ptr %129, align 8, !tbaa !13
  %131 = getelementptr inbounds double, ptr %128, i64 %127
  %132 = load double, ptr %131, align 8, !tbaa !13
  store double %132, ptr %129, align 8, !tbaa !13
  %133 = load ptr, ptr %124, align 8, !tbaa !17
  %134 = getelementptr inbounds double, ptr %133, i64 %127
  store double %130, ptr %134, align 8, !tbaa !13
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.lr.ph148
  %.3.in146.unr = phi i64 [ %15, %.lr.ph148 ], [ %.3.prol, %.prol.loopexit.unr-lcssa ]
  %135 = icmp eq i64 %38, 0
  br i1 %135, label %._crit_edge149, label %.lr.ph148.new

.lr.ph148.new:                                    ; preds = %.prol.loopexit, %.lr.ph148.new
  %.3.in146 = phi i64 [ %.3.1, %.lr.ph148.new ], [ %.3.in146.unr, %.prol.loopexit ]
  %.3 = add nsw i64 %.3.in146, -1
  %136 = load ptr, ptr %123, align 8, !tbaa !17
  %137 = getelementptr inbounds i64, ptr %136, i64 %.3
  %138 = load i64, ptr %137, align 8, !tbaa !23
  %139 = load ptr, ptr %124, align 8, !tbaa !17
  %140 = getelementptr inbounds double, ptr %139, i64 %.3
  %141 = load double, ptr %140, align 8, !tbaa !13
  %142 = getelementptr inbounds double, ptr %139, i64 %138
  %143 = load double, ptr %142, align 8, !tbaa !13
  store double %143, ptr %140, align 8, !tbaa !13
  %144 = load ptr, ptr %124, align 8, !tbaa !17
  %145 = getelementptr inbounds double, ptr %144, i64 %138
  store double %141, ptr %145, align 8, !tbaa !13
  %.3.1 = add nsw i64 %.3.in146, -2
  %146 = load ptr, ptr %123, align 8, !tbaa !17
  %147 = getelementptr inbounds i64, ptr %146, i64 %.3.1
  %148 = load i64, ptr %147, align 8, !tbaa !23
  %149 = load ptr, ptr %124, align 8, !tbaa !17
  %150 = getelementptr inbounds double, ptr %149, i64 %.3.1
  %151 = load double, ptr %150, align 8, !tbaa !13
  %152 = getelementptr inbounds double, ptr %149, i64 %148
  %153 = load double, ptr %152, align 8, !tbaa !13
  store double %153, ptr %150, align 8, !tbaa !13
  %154 = load ptr, ptr %124, align 8, !tbaa !17
  %155 = getelementptr inbounds double, ptr %154, i64 %148
  store double %151, ptr %155, align 8, !tbaa !13
  %156 = icmp ugt i64 %.3, 1
  br i1 %156, label %.lr.ph148.new, label %._crit_edge149, !llvm.loop !25

._crit_edge149.critedge:                          ; preds = %.preheader, %.preheader136
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %8, i1 noundef zeroext false, i1 noundef zeroext true, i64 noundef 0, ptr noundef %3, ptr noundef %5)
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %8, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %3, ptr noundef %5)
  br label %._crit_edge149

._crit_edge149:                                   ; preds = %.prol.loopexit, %.lr.ph148.new, %._crit_edge149.critedge, %._crit_edge145
  store i64 1, ptr %4, align 8, !tbaa !15
  br label %._crit_edge

157:                                              ; preds = %switch.edge
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.457, ptr noundef %5)
  br label %._crit_edge

._crit_edge.loopexit.unr-lcssa:                   ; preds = %43, %.lr.ph
  %.0131138.unr = phi i64 [ 0, %.lr.ph ], [ %55, %43 ]
  %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
  %.0131138.epil = phi i64 [ %160, %.epil.preheader ], [ %.0131138.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %158 = load ptr, ptr %41, align 8, !tbaa !17
  %159 = getelementptr inbounds double, ptr %158, i64 %.0131138.epil
  store double 0.000000e+00, ptr %159, align 8, !tbaa !13
  %160 = add nuw nsw i64 %.0131138.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 !26

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %40, %157, %._crit_edge149, %29
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 792, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  ret void
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl25_sparsesolverreport_clearEPv(ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

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

declare noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(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 void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl22initsparsesolverreportEPNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

declare void @_ZN11alglib_impl20normestimatorresultsEPKNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl24_normestimatorstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15sparsecopytocrsEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl11sparsescaleEPNS_12sparsematrixElbbbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL34directsparsesolvers_sparsesolveaugEPKNS_12sparsematrixEPKNS_9ae_vectorEddddllPS3_PNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN11alglib_impl8sparseluEPNS_12sparsematrixElPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !8, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl18sparsesolverreportE", !7, i64 0, !7, i64 8, !7, i64 16, !14, i64 24}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !19}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !19}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !21}


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