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

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

@.str.127 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [36 x i8], align 1

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

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

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

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

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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL12bdss_tieaddcEPKNS_9ae_vectorES2_llPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare hidden noundef double @_ZN11alglib_implL10bdss_getcvEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15dsoptimalsplitkEPKNS_9ae_vectorES2_lllPlPS0_S3_PdPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #4 {
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"struct.alglib_impl::ae_frame", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca double, align 8
  %30 = alloca %"struct.alglib_impl::ae_vector", align 8
  %31 = alloca i64, align 8
  %32 = alloca %"struct.alglib_impl::ae_vector", align 8
  %33 = alloca %"struct.alglib_impl::ae_vector", align 8
  %34 = alloca double, align 8
  %35 = alloca %"struct.alglib_impl::ae_vector", align 8
  %36 = alloca %"struct.alglib_impl::ae_vector", align 8
  %37 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %38 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %39 = alloca i64, align 8
  %40 = alloca i64, align 8
  %41 = alloca double, align 8
  %42 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store i64 %2, ptr %13, align 8, !tbaa !9
  store i64 %3, ptr %14, align 8, !tbaa !9
  store i64 %4, ptr %15, align 8, !tbaa !9
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  store ptr %9, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  %43 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %43, ptr noundef %21)
  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 %30, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %35, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %36, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %37, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %38, i8 0, i64 80, i1 false)
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %22, ptr noundef %44, ptr noundef %45, i1 noundef zeroext true)
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %23, ptr noundef %46, ptr noundef %47, i1 noundef zeroext true)
  %48 = load ptr, ptr %16, align 8, !tbaa !5
  store i64 0, ptr %48, align 8, !tbaa !9
  %49 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %49)
  %50 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 0, ptr %50, align 8, !tbaa !9
  %51 = load ptr, ptr %19, align 8, !tbaa !5
  store double 0.000000e+00, ptr %51, align 8, !tbaa !11
  %52 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %30, i64 noundef 0, i64 noundef 2, ptr noundef %52, i1 noundef zeroext true)
  %53 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %32, i64 noundef 0, i64 noundef 2, ptr noundef %53, i1 noundef zeroext true)
  %54 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %33, i64 noundef 0, i64 noundef 2, ptr noundef %54, i1 noundef zeroext true)
  %55 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %35, i64 noundef 0, i64 noundef 2, ptr noundef %55, i1 noundef zeroext true)
  %56 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %36, i64 noundef 0, i64 noundef 2, ptr noundef %56, i1 noundef zeroext true)
  %57 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %37, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %57, i1 noundef zeroext true)
  %58 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %38, i64 noundef 0, i64 noundef 0, i64 noundef 2, ptr noundef %58, i1 noundef zeroext true)
  %59 = load i64, ptr %13, align 8, !tbaa !9
  %60 = icmp sle i64 %59, 0
  br i1 %60, label %67, label %61

61:                                               ; preds = %10
  %62 = load i64, ptr %14, align 8, !tbaa !9
  %63 = icmp slt i64 %62, 2
  br i1 %63, label %67, label %64

64:                                               ; preds = %61
  %65 = load i64, ptr %15, align 8, !tbaa !9
  %66 = icmp slt i64 %65, 2
  br i1 %66, label %67, label %70

67:                                               ; preds = %64, %61, %10
  %68 = load ptr, ptr %16, align 8, !tbaa !5
  store i64 -1, ptr %68, align 8, !tbaa !9
  %69 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %69)
  store i32 1, ptr %42, align 4
  br label %625

70:                                               ; preds = %64
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %71

71:                                               ; preds = %95, %70
  %72 = load i64, ptr %24, align 8, !tbaa !9
  %73 = load i64, ptr %13, align 8, !tbaa !9
  %74 = sub nsw i64 %73, 1
  %75 = icmp sle i64 %72, %74
  br i1 %75, label %76, label %98

76:                                               ; preds = %71
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !13
  %79 = load i64, ptr %24, align 8, !tbaa !9
  %80 = getelementptr inbounds i64, ptr %78, i64 %79
  %81 = load i64, ptr %80, align 8, !tbaa !9
  %82 = icmp slt i64 %81, 0
  br i1 %82, label %91, label %83

83:                                               ; preds = %76
  %84 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !13
  %86 = load i64, ptr %24, align 8, !tbaa !9
  %87 = getelementptr inbounds i64, ptr %85, i64 %86
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = load i64, ptr %14, align 8, !tbaa !9
  %90 = icmp sge i64 %88, %89
  br i1 %90, label %91, label %94

91:                                               ; preds = %83, %76
  %92 = load ptr, ptr %16, align 8, !tbaa !5
  store i64 -2, ptr %92, align 8, !tbaa !9
  %93 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %93)
  store i32 1, ptr %42, align 4
  br label %625

94:                                               ; preds = %83
  br label %95

95:                                               ; preds = %94
  %96 = load i64, ptr %24, align 8, !tbaa !9
  %97 = add nsw i64 %96, 1
  store i64 %97, ptr %24, align 8, !tbaa !9
  br label %71, !llvm.loop !14

98:                                               ; preds = %71
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  store i64 1, ptr %99, align 8, !tbaa !9
  %100 = load i64, ptr %13, align 8, !tbaa !9
  %101 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl5dstieEPNS_9ae_vectorElS1_PlS1_S1_PNS_8ae_stateE(ptr noundef %22, i64 noundef %100, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %33, ptr noundef %101)
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %102

102:                                              ; preds = %144, %98
  %103 = load i64, ptr %24, align 8, !tbaa !9
  %104 = load i64, ptr %13, align 8, !tbaa !9
  %105 = sub nsw i64 %104, 1
  %106 = icmp sle i64 %103, %105
  br i1 %106, label %107, label %147

107:                                              ; preds = %102
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !13
  %110 = load i64, ptr %24, align 8, !tbaa !9
  %111 = getelementptr inbounds i64, ptr %109, i64 %110
  %112 = load i64, ptr %111, align 8, !tbaa !9
  %113 = load i64, ptr %24, align 8, !tbaa !9
  %114 = icmp ne i64 %112, %113
  br i1 %114, label %115, label %143

115:                                              ; preds = %107
  %116 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %117 = load ptr, ptr %116, align 8, !tbaa !13
  %118 = load i64, ptr %24, align 8, !tbaa !9
  %119 = getelementptr inbounds i64, ptr %117, i64 %118
  %120 = load i64, ptr %119, align 8, !tbaa !9
  store i64 %120, ptr %39, align 8, !tbaa !9
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %122 = load ptr, ptr %121, align 8, !tbaa !13
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !13
  %125 = load i64, ptr %24, align 8, !tbaa !9
  %126 = getelementptr inbounds i64, ptr %124, i64 %125
  %127 = load i64, ptr %126, align 8, !tbaa !9
  %128 = getelementptr inbounds i64, ptr %122, i64 %127
  %129 = load i64, ptr %128, align 8, !tbaa !9
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !13
  %132 = load i64, ptr %24, align 8, !tbaa !9
  %133 = getelementptr inbounds i64, ptr %131, i64 %132
  store i64 %129, ptr %133, align 8, !tbaa !9
  %134 = load i64, ptr %39, align 8, !tbaa !9
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %136 = load ptr, ptr %135, align 8, !tbaa !13
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !13
  %139 = load i64, ptr %24, align 8, !tbaa !9
  %140 = getelementptr inbounds i64, ptr %138, i64 %139
  %141 = load i64, ptr %140, align 8, !tbaa !9
  %142 = getelementptr inbounds i64, ptr %136, i64 %141
  store i64 %134, ptr %142, align 8, !tbaa !9
  br label %143

143:                                              ; preds = %115, %107
  br label %144

144:                                              ; preds = %143
  %145 = load i64, ptr %24, align 8, !tbaa !9
  %146 = add nsw i64 %145, 1
  store i64 %146, ptr %24, align 8, !tbaa !9
  br label %102, !llvm.loop !16

147:                                              ; preds = %102
  %148 = load i64, ptr %31, align 8, !tbaa !9
  %149 = icmp eq i64 %148, 1
  br i1 %149, label %150, label %153

150:                                              ; preds = %147
  %151 = load ptr, ptr %16, align 8, !tbaa !5
  store i64 -3, ptr %151, align 8, !tbaa !9
  %152 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %152)
  store i32 1, ptr %42, align 4
  br label %625

153:                                              ; preds = %147
  %154 = load i64, ptr %15, align 8, !tbaa !9
  %155 = load i64, ptr %31, align 8, !tbaa !9
  %156 = load ptr, ptr %20, align 8, !tbaa !5
  %157 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %154, i64 noundef %155, ptr noundef %156)
  store i64 %157, ptr %15, align 8, !tbaa !9
  %158 = load i64, ptr %15, align 8, !tbaa !9
  %159 = sub nsw i64 %158, 1
  %160 = add nsw i64 %159, 1
  %161 = load i64, ptr %31, align 8, !tbaa !9
  %162 = sub nsw i64 %161, 1
  %163 = add nsw i64 %162, 1
  %164 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %37, i64 noundef %160, i64 noundef %163, ptr noundef %164)
  %165 = load i64, ptr %15, align 8, !tbaa !9
  %166 = sub nsw i64 %165, 1
  %167 = add nsw i64 %166, 1
  %168 = load i64, ptr %31, align 8, !tbaa !9
  %169 = sub nsw i64 %168, 1
  %170 = add nsw i64 %169, 1
  %171 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %38, i64 noundef %167, i64 noundef %170, ptr noundef %171)
  %172 = load i64, ptr %14, align 8, !tbaa !9
  %173 = sub nsw i64 %172, 1
  %174 = add nsw i64 %173, 1
  %175 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %35, i64 noundef %174, ptr noundef %175)
  %176 = load i64, ptr %14, align 8, !tbaa !9
  %177 = sub nsw i64 %176, 1
  %178 = add nsw i64 %177, 1
  %179 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %36, i64 noundef %178, ptr noundef %179)
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %180

180:                                              ; preds = %190, %153
  %181 = load i64, ptr %25, align 8, !tbaa !9
  %182 = load i64, ptr %14, align 8, !tbaa !9
  %183 = sub nsw i64 %182, 1
  %184 = icmp sle i64 %181, %183
  br i1 %184, label %185, label %193

185:                                              ; preds = %180
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %187 = load ptr, ptr %186, align 8, !tbaa !13
  %188 = load i64, ptr %25, align 8, !tbaa !9
  %189 = getelementptr inbounds i64, ptr %187, i64 %188
  store i64 0, ptr %189, align 8, !tbaa !9
  br label %190

190:                                              ; preds = %185
  %191 = load i64, ptr %25, align 8, !tbaa !9
  %192 = add nsw i64 %191, 1
  store i64 %192, ptr %25, align 8, !tbaa !9
  br label %180, !llvm.loop !17

193:                                              ; preds = %180
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %194

194:                                              ; preds = %218, %193
  %195 = load i64, ptr %25, align 8, !tbaa !9
  %196 = load i64, ptr %31, align 8, !tbaa !9
  %197 = sub nsw i64 %196, 1
  %198 = icmp sle i64 %195, %197
  br i1 %198, label %199, label %221

199:                                              ; preds = %194
  %200 = load i64, ptr %25, align 8, !tbaa !9
  %201 = load i64, ptr %14, align 8, !tbaa !9
  %202 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_implL12bdss_tieaddcEPKNS_9ae_vectorES2_llPS0_PNS_8ae_stateE(ptr noundef %23, ptr noundef %30, i64 noundef %200, i64 noundef %201, ptr noundef %35, ptr noundef %202)
  %203 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %38, i32 0, i32 6
  %204 = load ptr, ptr %203, align 8, !tbaa !13
  %205 = getelementptr inbounds ptr, ptr %204, i64 0
  %206 = load ptr, ptr %205, align 8, !tbaa !5
  %207 = load i64, ptr %25, align 8, !tbaa !9
  %208 = getelementptr inbounds i64, ptr %206, i64 %207
  store i64 0, ptr %208, align 8, !tbaa !9
  %209 = load i64, ptr %14, align 8, !tbaa !9
  %210 = load ptr, ptr %20, align 8, !tbaa !5
  %211 = call noundef double @_ZN11alglib_implL10bdss_getcvEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %35, i64 noundef %209, ptr noundef %210)
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %213 = load ptr, ptr %212, align 8, !tbaa !13
  %214 = getelementptr inbounds ptr, ptr %213, i64 0
  %215 = load ptr, ptr %214, align 8, !tbaa !5
  %216 = load i64, ptr %25, align 8, !tbaa !9
  %217 = getelementptr inbounds double, ptr %215, i64 %216
  store double %211, ptr %217, align 8, !tbaa !11
  br label %218

218:                                              ; preds = %199
  %219 = load i64, ptr %25, align 8, !tbaa !9
  %220 = add nsw i64 %219, 1
  store i64 %220, ptr %25, align 8, !tbaa !9
  br label %194, !llvm.loop !18

221:                                              ; preds = %194
  store i64 1, ptr %39, align 8, !tbaa !9
  br label %222

222:                                              ; preds = %361, %221
  %223 = load i64, ptr %39, align 8, !tbaa !9
  %224 = load i64, ptr %15, align 8, !tbaa !9
  %225 = sub nsw i64 %224, 1
  %226 = icmp sle i64 %223, %225
  br i1 %226, label %227, label %364

227:                                              ; preds = %222
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %228

228:                                              ; preds = %238, %227
  %229 = load i64, ptr %25, align 8, !tbaa !9
  %230 = load i64, ptr %14, align 8, !tbaa !9
  %231 = sub nsw i64 %230, 1
  %232 = icmp sle i64 %229, %231
  br i1 %232, label %233, label %241

233:                                              ; preds = %228
  %234 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %235 = load ptr, ptr %234, align 8, !tbaa !13
  %236 = load i64, ptr %25, align 8, !tbaa !9
  %237 = getelementptr inbounds i64, ptr %235, i64 %236
  store i64 0, ptr %237, align 8, !tbaa !9
  br label %238

238:                                              ; preds = %233
  %239 = load i64, ptr %25, align 8, !tbaa !9
  %240 = add nsw i64 %239, 1
  store i64 %240, ptr %25, align 8, !tbaa !9
  br label %228, !llvm.loop !19

241:                                              ; preds = %228
  %242 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %242, ptr %25, align 8, !tbaa !9
  br label %243

243:                                              ; preds = %357, %241
  %244 = load i64, ptr %25, align 8, !tbaa !9
  %245 = load i64, ptr %31, align 8, !tbaa !9
  %246 = sub nsw i64 %245, 1
  %247 = icmp sle i64 %244, %246
  br i1 %247, label %248, label %360

248:                                              ; preds = %243
  %249 = load i64, ptr %25, align 8, !tbaa !9
  %250 = load i64, ptr %14, align 8, !tbaa !9
  %251 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_implL12bdss_tieaddcEPKNS_9ae_vectorES2_llPS0_PNS_8ae_stateE(ptr noundef %23, ptr noundef %30, i64 noundef %249, i64 noundef %250, ptr noundef %35, ptr noundef %251)
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %252

252:                                              ; preds = %267, %248
  %253 = load i64, ptr %24, align 8, !tbaa !9
  %254 = load i64, ptr %14, align 8, !tbaa !9
  %255 = sub nsw i64 %254, 1
  %256 = icmp sle i64 %253, %255
  br i1 %256, label %257, label %270

257:                                              ; preds = %252
  %258 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %259 = load ptr, ptr %258, align 8, !tbaa !13
  %260 = load i64, ptr %24, align 8, !tbaa !9
  %261 = getelementptr inbounds i64, ptr %259, i64 %260
  %262 = load i64, ptr %261, align 8, !tbaa !9
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 4
  %264 = load ptr, ptr %263, align 8, !tbaa !13
  %265 = load i64, ptr %24, align 8, !tbaa !9
  %266 = getelementptr inbounds i64, ptr %264, i64 %265
  store i64 %262, ptr %266, align 8, !tbaa !9
  br label %267

267:                                              ; preds = %257
  %268 = load i64, ptr %24, align 8, !tbaa !9
  %269 = add nsw i64 %268, 1
  store i64 %269, ptr %24, align 8, !tbaa !9
  br label %252, !llvm.loop !20

270:                                              ; preds = %252
  %271 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %272 = load ptr, ptr %271, align 8, !tbaa !13
  %273 = load i64, ptr %39, align 8, !tbaa !9
  %274 = sub nsw i64 %273, 1
  %275 = getelementptr inbounds ptr, ptr %272, i64 %274
  %276 = load ptr, ptr %275, align 8, !tbaa !5
  %277 = load i64, ptr %25, align 8, !tbaa !9
  %278 = sub nsw i64 %277, 1
  %279 = getelementptr inbounds double, ptr %276, i64 %278
  %280 = load double, ptr %279, align 8, !tbaa !11
  %281 = load i64, ptr %14, align 8, !tbaa !9
  %282 = load ptr, ptr %20, align 8, !tbaa !5
  %283 = call noundef double @_ZN11alglib_implL10bdss_getcvEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %36, i64 noundef %281, ptr noundef %282)
  %284 = fadd double %280, %283
  %285 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %286 = load ptr, ptr %285, align 8, !tbaa !13
  %287 = load i64, ptr %39, align 8, !tbaa !9
  %288 = getelementptr inbounds ptr, ptr %286, i64 %287
  %289 = load ptr, ptr %288, align 8, !tbaa !5
  %290 = load i64, ptr %25, align 8, !tbaa !9
  %291 = getelementptr inbounds double, ptr %289, i64 %290
  store double %284, ptr %291, align 8, !tbaa !11
  %292 = load i64, ptr %25, align 8, !tbaa !9
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %38, i32 0, i32 6
  %294 = load ptr, ptr %293, align 8, !tbaa !13
  %295 = load i64, ptr %39, align 8, !tbaa !9
  %296 = getelementptr inbounds ptr, ptr %294, i64 %295
  %297 = load ptr, ptr %296, align 8, !tbaa !5
  %298 = load i64, ptr %25, align 8, !tbaa !9
  %299 = getelementptr inbounds i64, ptr %297, i64 %298
  store i64 %292, ptr %299, align 8, !tbaa !9
  %300 = load i64, ptr %39, align 8, !tbaa !9
  %301 = add nsw i64 %300, 1
  store i64 %301, ptr %26, align 8, !tbaa !9
  br label %302

302:                                              ; preds = %353, %270
  %303 = load i64, ptr %26, align 8, !tbaa !9
  %304 = load i64, ptr %25, align 8, !tbaa !9
  %305 = icmp sle i64 %303, %304
  br i1 %305, label %306, label %356

306:                                              ; preds = %302
  %307 = load i64, ptr %26, align 8, !tbaa !9
  %308 = sub nsw i64 %307, 1
  %309 = load i64, ptr %14, align 8, !tbaa !9
  %310 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_implL12bdss_tiesubcEPKNS_9ae_vectorES2_llPS0_PNS_8ae_stateE(ptr noundef %23, ptr noundef %30, i64 noundef %308, i64 noundef %309, ptr noundef %36, ptr noundef %310)
  %311 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %312 = load ptr, ptr %311, align 8, !tbaa !13
  %313 = load i64, ptr %39, align 8, !tbaa !9
  %314 = sub nsw i64 %313, 1
  %315 = getelementptr inbounds ptr, ptr %312, i64 %314
  %316 = load ptr, ptr %315, align 8, !tbaa !5
  %317 = load i64, ptr %26, align 8, !tbaa !9
  %318 = sub nsw i64 %317, 1
  %319 = getelementptr inbounds double, ptr %316, i64 %318
  %320 = load double, ptr %319, align 8, !tbaa !11
  %321 = load i64, ptr %14, align 8, !tbaa !9
  %322 = load ptr, ptr %20, align 8, !tbaa !5
  %323 = call noundef double @_ZN11alglib_implL10bdss_getcvEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %36, i64 noundef %321, ptr noundef %322)
  %324 = fadd double %320, %323
  store double %324, ptr %34, align 8, !tbaa !11
  %325 = load double, ptr %34, align 8, !tbaa !11
  %326 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %327 = load ptr, ptr %326, align 8, !tbaa !13
  %328 = load i64, ptr %39, align 8, !tbaa !9
  %329 = getelementptr inbounds ptr, ptr %327, i64 %328
  %330 = load ptr, ptr %329, align 8, !tbaa !5
  %331 = load i64, ptr %25, align 8, !tbaa !9
  %332 = getelementptr inbounds double, ptr %330, i64 %331
  %333 = load double, ptr %332, align 8, !tbaa !11
  %334 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %325, double noundef %333)
  br i1 %334, label %335, label %352

335:                                              ; preds = %306
  %336 = load double, ptr %34, align 8, !tbaa !11
  %337 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %338 = load ptr, ptr %337, align 8, !tbaa !13
  %339 = load i64, ptr %39, align 8, !tbaa !9
  %340 = getelementptr inbounds ptr, ptr %338, i64 %339
  %341 = load ptr, ptr %340, align 8, !tbaa !5
  %342 = load i64, ptr %25, align 8, !tbaa !9
  %343 = getelementptr inbounds double, ptr %341, i64 %342
  store double %336, ptr %343, align 8, !tbaa !11
  %344 = load i64, ptr %26, align 8, !tbaa !9
  %345 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %38, i32 0, i32 6
  %346 = load ptr, ptr %345, align 8, !tbaa !13
  %347 = load i64, ptr %39, align 8, !tbaa !9
  %348 = getelementptr inbounds ptr, ptr %346, i64 %347
  %349 = load ptr, ptr %348, align 8, !tbaa !5
  %350 = load i64, ptr %25, align 8, !tbaa !9
  %351 = getelementptr inbounds i64, ptr %349, i64 %350
  store i64 %344, ptr %351, align 8, !tbaa !9
  br label %352

352:                                              ; preds = %335, %306
  br label %353

353:                                              ; preds = %352
  %354 = load i64, ptr %26, align 8, !tbaa !9
  %355 = add nsw i64 %354, 1
  store i64 %355, ptr %26, align 8, !tbaa !9
  br label %302, !llvm.loop !21

356:                                              ; preds = %302
  br label %357

357:                                              ; preds = %356
  %358 = load i64, ptr %25, align 8, !tbaa !9
  %359 = add nsw i64 %358, 1
  store i64 %359, ptr %25, align 8, !tbaa !9
  br label %243, !llvm.loop !22

360:                                              ; preds = %243
  br label %361

361:                                              ; preds = %360
  %362 = load i64, ptr %39, align 8, !tbaa !9
  %363 = add nsw i64 %362, 1
  store i64 %363, ptr %39, align 8, !tbaa !9
  br label %222, !llvm.loop !23

364:                                              ; preds = %222
  store i64 -1, ptr %40, align 8, !tbaa !9
  store double 1.000000e+300, ptr %41, align 8, !tbaa !11
  store i64 0, ptr %39, align 8, !tbaa !9
  br label %365

365:                                              ; preds = %394, %364
  %366 = load i64, ptr %39, align 8, !tbaa !9
  %367 = load i64, ptr %15, align 8, !tbaa !9
  %368 = sub nsw i64 %367, 1
  %369 = icmp sle i64 %366, %368
  br i1 %369, label %370, label %397

370:                                              ; preds = %365
  %371 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %372 = load ptr, ptr %371, align 8, !tbaa !13
  %373 = load i64, ptr %39, align 8, !tbaa !9
  %374 = getelementptr inbounds ptr, ptr %372, i64 %373
  %375 = load ptr, ptr %374, align 8, !tbaa !5
  %376 = load i64, ptr %31, align 8, !tbaa !9
  %377 = sub nsw i64 %376, 1
  %378 = getelementptr inbounds double, ptr %375, i64 %377
  %379 = load double, ptr %378, align 8, !tbaa !11
  %380 = load double, ptr %41, align 8, !tbaa !11
  %381 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %379, double noundef %380)
  br i1 %381, label %382, label %393

382:                                              ; preds = %370
  %383 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %384 = load ptr, ptr %383, align 8, !tbaa !13
  %385 = load i64, ptr %39, align 8, !tbaa !9
  %386 = getelementptr inbounds ptr, ptr %384, i64 %385
  %387 = load ptr, ptr %386, align 8, !tbaa !5
  %388 = load i64, ptr %31, align 8, !tbaa !9
  %389 = sub nsw i64 %388, 1
  %390 = getelementptr inbounds double, ptr %387, i64 %389
  %391 = load double, ptr %390, align 8, !tbaa !11
  store double %391, ptr %41, align 8, !tbaa !11
  %392 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %392, ptr %40, align 8, !tbaa !9
  br label %393

393:                                              ; preds = %382, %370
  br label %394

394:                                              ; preds = %393
  %395 = load i64, ptr %39, align 8, !tbaa !9
  %396 = add nsw i64 %395, 1
  store i64 %396, ptr %39, align 8, !tbaa !9
  br label %365, !llvm.loop !24

397:                                              ; preds = %365
  %398 = load i64, ptr %40, align 8, !tbaa !9
  %399 = icmp sge i64 %398, 0
  %400 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %399, ptr noundef @.str.127, ptr noundef %400)
  %401 = load i64, ptr %40, align 8, !tbaa !9
  %402 = icmp eq i64 %401, 0
  br i1 %402, label %403, label %544

403:                                              ; preds = %397
  store double 1.000000e+300, ptr %29, align 8, !tbaa !11
  store i64 -1, ptr %25, align 8, !tbaa !9
  store i64 1, ptr %24, align 8, !tbaa !9
  br label %404

404:                                              ; preds = %439, %403
  %405 = load i64, ptr %24, align 8, !tbaa !9
  %406 = load i64, ptr %31, align 8, !tbaa !9
  %407 = sub nsw i64 %406, 1
  %408 = icmp sle i64 %405, %407
  br i1 %408, label %409, label %442

409:                                              ; preds = %404
  %410 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %411 = load ptr, ptr %410, align 8, !tbaa !13
  %412 = load i64, ptr %24, align 8, !tbaa !9
  %413 = getelementptr inbounds i64, ptr %411, i64 %412
  %414 = load i64, ptr %413, align 8, !tbaa !9
  %415 = sitofp i64 %414 to double
  %416 = load i64, ptr %13, align 8, !tbaa !9
  %417 = sub nsw i64 %416, 1
  %418 = sitofp i64 %417 to double
  %419 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %418, double %415)
  %420 = load ptr, ptr %20, align 8, !tbaa !5
  %421 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %419, ptr noundef %420)
  %422 = load double, ptr %29, align 8, !tbaa !11
  %423 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %421, double noundef %422)
  br i1 %423, label %424, label %438

424:                                              ; preds = %409
  %425 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %426 = load ptr, ptr %425, align 8, !tbaa !13
  %427 = load i64, ptr %24, align 8, !tbaa !9
  %428 = getelementptr inbounds i64, ptr %426, i64 %427
  %429 = load i64, ptr %428, align 8, !tbaa !9
  %430 = sitofp i64 %429 to double
  %431 = load i64, ptr %13, align 8, !tbaa !9
  %432 = sub nsw i64 %431, 1
  %433 = sitofp i64 %432 to double
  %434 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %433, double %430)
  %435 = load ptr, ptr %20, align 8, !tbaa !5
  %436 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %434, ptr noundef %435)
  store double %436, ptr %29, align 8, !tbaa !11
  %437 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %437, ptr %25, align 8, !tbaa !9
  br label %438

438:                                              ; preds = %424, %409
  br label %439

439:                                              ; preds = %438
  %440 = load i64, ptr %24, align 8, !tbaa !9
  %441 = add nsw i64 %440, 1
  store i64 %441, ptr %24, align 8, !tbaa !9
  br label %404, !llvm.loop !25

442:                                              ; preds = %404
  %443 = load i64, ptr %25, align 8, !tbaa !9
  %444 = icmp sgt i64 %443, 0
  %445 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %444, ptr noundef @.str.128, ptr noundef %445)
  %446 = load ptr, ptr %17, align 8, !tbaa !5
  %447 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %446, i64 noundef 1, ptr noundef %447)
  %448 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %449 = load ptr, ptr %448, align 8, !tbaa !13
  %450 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %451 = load ptr, ptr %450, align 8, !tbaa !13
  %452 = load i64, ptr %25, align 8, !tbaa !9
  %453 = sub nsw i64 %452, 1
  %454 = getelementptr inbounds i64, ptr %451, i64 %453
  %455 = load i64, ptr %454, align 8, !tbaa !9
  %456 = getelementptr inbounds double, ptr %449, i64 %455
  %457 = load double, ptr %456, align 8, !tbaa !11
  %458 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %459 = load ptr, ptr %458, align 8, !tbaa !13
  %460 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %461 = load ptr, ptr %460, align 8, !tbaa !13
  %462 = load i64, ptr %25, align 8, !tbaa !9
  %463 = getelementptr inbounds i64, ptr %461, i64 %462
  %464 = load i64, ptr %463, align 8, !tbaa !9
  %465 = getelementptr inbounds double, ptr %459, i64 %464
  %466 = load double, ptr %465, align 8, !tbaa !11
  %467 = fadd double %457, %466
  %468 = fmul double 5.000000e-01, %467
  %469 = load ptr, ptr %17, align 8, !tbaa !5
  %470 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %469, i32 0, i32 4
  %471 = load ptr, ptr %470, align 8, !tbaa !13
  %472 = getelementptr inbounds double, ptr %471, i64 0
  store double %468, ptr %472, align 8, !tbaa !11
  %473 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 2, ptr %473, align 8, !tbaa !9
  %474 = load ptr, ptr %19, align 8, !tbaa !5
  store double 0.000000e+00, ptr %474, align 8, !tbaa !11
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %475

475:                                              ; preds = %485, %442
  %476 = load i64, ptr %24, align 8, !tbaa !9
  %477 = load i64, ptr %14, align 8, !tbaa !9
  %478 = sub nsw i64 %477, 1
  %479 = icmp sle i64 %476, %478
  br i1 %479, label %480, label %488

480:                                              ; preds = %475
  %481 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %482 = load ptr, ptr %481, align 8, !tbaa !13
  %483 = load i64, ptr %24, align 8, !tbaa !9
  %484 = getelementptr inbounds i64, ptr %482, i64 %483
  store i64 0, ptr %484, align 8, !tbaa !9
  br label %485

485:                                              ; preds = %480
  %486 = load i64, ptr %24, align 8, !tbaa !9
  %487 = add nsw i64 %486, 1
  store i64 %487, ptr %24, align 8, !tbaa !9
  br label %475, !llvm.loop !26

488:                                              ; preds = %475
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %489

489:                                              ; preds = %498, %488
  %490 = load i64, ptr %24, align 8, !tbaa !9
  %491 = load i64, ptr %25, align 8, !tbaa !9
  %492 = sub nsw i64 %491, 1
  %493 = icmp sle i64 %490, %492
  br i1 %493, label %494, label %501

494:                                              ; preds = %489
  %495 = load i64, ptr %24, align 8, !tbaa !9
  %496 = load i64, ptr %14, align 8, !tbaa !9
  %497 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_implL12bdss_tieaddcEPKNS_9ae_vectorES2_llPS0_PNS_8ae_stateE(ptr noundef %23, ptr noundef %30, i64 noundef %495, i64 noundef %496, ptr noundef %35, ptr noundef %497)
  br label %498

498:                                              ; preds = %494
  %499 = load i64, ptr %24, align 8, !tbaa !9
  %500 = add nsw i64 %499, 1
  store i64 %500, ptr %24, align 8, !tbaa !9
  br label %489, !llvm.loop !27

501:                                              ; preds = %489
  %502 = load ptr, ptr %19, align 8, !tbaa !5
  %503 = load double, ptr %502, align 8, !tbaa !11
  %504 = load i64, ptr %14, align 8, !tbaa !9
  %505 = load ptr, ptr %20, align 8, !tbaa !5
  %506 = call noundef double @_ZN11alglib_implL10bdss_getcvEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %35, i64 noundef %504, ptr noundef %505)
  %507 = fadd double %503, %506
  %508 = load ptr, ptr %19, align 8, !tbaa !5
  store double %507, ptr %508, align 8, !tbaa !11
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %509

509:                                              ; preds = %519, %501
  %510 = load i64, ptr %24, align 8, !tbaa !9
  %511 = load i64, ptr %14, align 8, !tbaa !9
  %512 = sub nsw i64 %511, 1
  %513 = icmp sle i64 %510, %512
  br i1 %513, label %514, label %522

514:                                              ; preds = %509
  %515 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %516 = load ptr, ptr %515, align 8, !tbaa !13
  %517 = load i64, ptr %24, align 8, !tbaa !9
  %518 = getelementptr inbounds i64, ptr %516, i64 %517
  store i64 0, ptr %518, align 8, !tbaa !9
  br label %519

519:                                              ; preds = %514
  %520 = load i64, ptr %24, align 8, !tbaa !9
  %521 = add nsw i64 %520, 1
  store i64 %521, ptr %24, align 8, !tbaa !9
  br label %509, !llvm.loop !28

522:                                              ; preds = %509
  %523 = load i64, ptr %25, align 8, !tbaa !9
  store i64 %523, ptr %24, align 8, !tbaa !9
  br label %524

524:                                              ; preds = %533, %522
  %525 = load i64, ptr %24, align 8, !tbaa !9
  %526 = load i64, ptr %31, align 8, !tbaa !9
  %527 = sub nsw i64 %526, 1
  %528 = icmp sle i64 %525, %527
  br i1 %528, label %529, label %536

529:                                              ; preds = %524
  %530 = load i64, ptr %24, align 8, !tbaa !9
  %531 = load i64, ptr %14, align 8, !tbaa !9
  %532 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_implL12bdss_tieaddcEPKNS_9ae_vectorES2_llPS0_PNS_8ae_stateE(ptr noundef %23, ptr noundef %30, i64 noundef %530, i64 noundef %531, ptr noundef %35, ptr noundef %532)
  br label %533

533:                                              ; preds = %529
  %534 = load i64, ptr %24, align 8, !tbaa !9
  %535 = add nsw i64 %534, 1
  store i64 %535, ptr %24, align 8, !tbaa !9
  br label %524, !llvm.loop !29

536:                                              ; preds = %524
  %537 = load ptr, ptr %19, align 8, !tbaa !5
  %538 = load double, ptr %537, align 8, !tbaa !11
  %539 = load i64, ptr %14, align 8, !tbaa !9
  %540 = load ptr, ptr %20, align 8, !tbaa !5
  %541 = call noundef double @_ZN11alglib_implL10bdss_getcvEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %35, i64 noundef %539, ptr noundef %540)
  %542 = fadd double %538, %541
  %543 = load ptr, ptr %19, align 8, !tbaa !5
  store double %542, ptr %543, align 8, !tbaa !11
  br label %623

544:                                              ; preds = %397
  %545 = load ptr, ptr %17, align 8, !tbaa !5
  %546 = load i64, ptr %40, align 8, !tbaa !9
  %547 = sub nsw i64 %546, 1
  %548 = add nsw i64 %547, 1
  %549 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %545, i64 noundef %548, ptr noundef %549)
  %550 = load i64, ptr %40, align 8, !tbaa !9
  %551 = add nsw i64 %550, 1
  %552 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 %551, ptr %552, align 8, !tbaa !9
  %553 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %554 = load ptr, ptr %553, align 8, !tbaa !13
  %555 = load i64, ptr %40, align 8, !tbaa !9
  %556 = getelementptr inbounds ptr, ptr %554, i64 %555
  %557 = load ptr, ptr %556, align 8, !tbaa !5
  %558 = load i64, ptr %31, align 8, !tbaa !9
  %559 = sub nsw i64 %558, 1
  %560 = getelementptr inbounds double, ptr %557, i64 %559
  %561 = load double, ptr %560, align 8, !tbaa !11
  %562 = load ptr, ptr %19, align 8, !tbaa !5
  store double %561, ptr %562, align 8, !tbaa !11
  %563 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %38, i32 0, i32 6
  %564 = load ptr, ptr %563, align 8, !tbaa !13
  %565 = load i64, ptr %40, align 8, !tbaa !9
  %566 = getelementptr inbounds ptr, ptr %564, i64 %565
  %567 = load ptr, ptr %566, align 8, !tbaa !5
  %568 = load i64, ptr %31, align 8, !tbaa !9
  %569 = sub nsw i64 %568, 1
  %570 = getelementptr inbounds i64, ptr %567, i64 %569
  %571 = load i64, ptr %570, align 8, !tbaa !9
  store i64 %571, ptr %27, align 8, !tbaa !9
  %572 = load i64, ptr %31, align 8, !tbaa !9
  %573 = sub nsw i64 %572, 1
  store i64 %573, ptr %28, align 8, !tbaa !9
  %574 = load i64, ptr %40, align 8, !tbaa !9
  store i64 %574, ptr %39, align 8, !tbaa !9
  br label %575

575:                                              ; preds = %618, %544
  %576 = load i64, ptr %39, align 8, !tbaa !9
  %577 = icmp sge i64 %576, 1
  br i1 %577, label %578, label %621

578:                                              ; preds = %575
  %579 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %580 = load ptr, ptr %579, align 8, !tbaa !13
  %581 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %582 = load ptr, ptr %581, align 8, !tbaa !13
  %583 = load i64, ptr %27, align 8, !tbaa !9
  %584 = sub nsw i64 %583, 1
  %585 = getelementptr inbounds i64, ptr %582, i64 %584
  %586 = load i64, ptr %585, align 8, !tbaa !9
  %587 = getelementptr inbounds double, ptr %580, i64 %586
  %588 = load double, ptr %587, align 8, !tbaa !11
  %589 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %590 = load ptr, ptr %589, align 8, !tbaa !13
  %591 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %592 = load ptr, ptr %591, align 8, !tbaa !13
  %593 = load i64, ptr %27, align 8, !tbaa !9
  %594 = getelementptr inbounds i64, ptr %592, i64 %593
  %595 = load i64, ptr %594, align 8, !tbaa !9
  %596 = getelementptr inbounds double, ptr %590, i64 %595
  %597 = load double, ptr %596, align 8, !tbaa !11
  %598 = fadd double %588, %597
  %599 = fmul double 5.000000e-01, %598
  %600 = load ptr, ptr %17, align 8, !tbaa !5
  %601 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %600, i32 0, i32 4
  %602 = load ptr, ptr %601, align 8, !tbaa !13
  %603 = load i64, ptr %39, align 8, !tbaa !9
  %604 = sub nsw i64 %603, 1
  %605 = getelementptr inbounds double, ptr %602, i64 %604
  store double %599, ptr %605, align 8, !tbaa !11
  %606 = load i64, ptr %27, align 8, !tbaa !9
  %607 = sub nsw i64 %606, 1
  store i64 %607, ptr %28, align 8, !tbaa !9
  %608 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %38, i32 0, i32 6
  %609 = load ptr, ptr %608, align 8, !tbaa !13
  %610 = load i64, ptr %39, align 8, !tbaa !9
  %611 = sub nsw i64 %610, 1
  %612 = getelementptr inbounds ptr, ptr %609, i64 %611
  %613 = load ptr, ptr %612, align 8, !tbaa !5
  %614 = load i64, ptr %27, align 8, !tbaa !9
  %615 = sub nsw i64 %614, 1
  %616 = getelementptr inbounds i64, ptr %613, i64 %615
  %617 = load i64, ptr %616, align 8, !tbaa !9
  store i64 %617, ptr %27, align 8, !tbaa !9
  br label %618

618:                                              ; preds = %578
  %619 = load i64, ptr %39, align 8, !tbaa !9
  %620 = add nsw i64 %619, -1
  store i64 %620, ptr %39, align 8, !tbaa !9
  br label %575, !llvm.loop !30

621:                                              ; preds = %575
  %622 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl8touchintEPlPNS_8ae_stateE(ptr noundef %28, ptr noundef %622)
  br label %623

623:                                              ; preds = %621, %536
  %624 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %624)
  store i32 0, ptr %42, align 4
  br label %625

625:                                              ; preds = %623, %150, %91, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #6
  %626 = load i32, ptr %42, align 4
  switch i32 %626, label %628 [
    i32 0, label %627
    i32 1, label %627
  ]

627:                                              ; preds = %625, %625
  ret void

628:                                              ; preds = %625
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL12bdss_tiesubcEPKNS_9ae_vectorES2_llPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #5

declare void @_ZN11alglib_impl8touchintEPlPNS_8ae_stateE(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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #6 = { 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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}
!30 = distinct !{!30, !15}


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

@.str.127 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [36 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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

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

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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) 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 void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL12bdss_tieaddcEPKNS_9ae_vectorES2_llPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden noundef double @_ZN11alglib_implL10bdss_getcvEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15dsoptimalsplitkEPKNS_9ae_vectorES2_lllPlPS0_S3_PdPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, ptr nocapture noundef writeonly %5, ptr noundef %6, ptr nocapture noundef writeonly %7, ptr nocapture noundef %8, ptr noundef %9) local_unnamed_addr #4 {
  %11 = alloca %"struct.alglib_impl::ae_frame", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca i64, align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", 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_matrix", align 8
  %22 = alloca %"struct.alglib_impl::ae_matrix", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %22) #7
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %9, ptr noundef nonnull %11)
  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(64) %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %21, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %22, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %12, ptr noundef %0, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %13, ptr noundef %1, ptr noundef %9, i1 noundef zeroext true)
  store i64 0, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %6)
  store i64 0, ptr %7, align 8, !tbaa !5
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 2, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 2, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %18, i64 noundef 0, i64 noundef 2, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %19, i64 noundef 0, i64 noundef 2, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %20, i64 noundef 0, i64 noundef 2, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %21, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %22, i64 noundef 0, i64 noundef 0, i64 noundef 2, ptr noundef %9, i1 noundef zeroext true)
  %23 = icmp slt i64 %2, 1
  %24 = icmp slt i64 %3, 2
  %or.cond = or i1 %23, %24
  %25 = icmp slt i64 %4, 2
  %or.cond3 = or i1 %or.cond, %25
  br i1 %or.cond3, label %28, label %.preheader242

.preheader242:                                    ; preds = %10
  %26 = getelementptr inbounds i8, ptr %13, i64 56
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  br label %31

28:                                               ; preds = %10
  store i64 -1, ptr %5, align 8, !tbaa !5
  br label %336

29:                                               ; preds = %31
  %30 = add nuw nsw i64 %.0204244, 1
  %exitcond.not = icmp eq i64 %30, %2
  br i1 %exitcond.not, label %35, label %31, !llvm.loop !12

31:                                               ; preds = %.preheader242, %29
  %.0204244 = phi i64 [ 0, %.preheader242 ], [ %30, %29 ]
  %32 = getelementptr inbounds i64, ptr %27, i64 %.0204244
  %33 = load i64, ptr %32, align 8, !tbaa !5
  %or.cond234 = icmp ult i64 %33, %3
  br i1 %or.cond234, label %29, label %34

34:                                               ; preds = %31
  store i64 -2, ptr %5, align 8, !tbaa !5
  br label %336

35:                                               ; preds = %29
  %36 = add nsw i64 %2, -1
  store i64 1, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl5dstieEPNS_9ae_vectorElS1_PlS1_S1_PNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %2, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef %9)
  %.not.not219245 = icmp sgt i64 %2, 0
  br i1 %.not.not219245, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %35
  %37 = getelementptr inbounds i8, ptr %18, i64 56
  br label %38

38:                                               ; preds = %.lr.ph, %53
  %.1205246 = phi i64 [ 0, %.lr.ph ], [ %54, %53 ]
  %39 = load ptr, ptr %37, align 8, !tbaa !11
  %40 = getelementptr inbounds i64, ptr %39, i64 %.1205246
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %.not = icmp eq i64 %41, %.1205246
  br i1 %.not, label %53, label %42

42:                                               ; preds = %38
  %43 = load ptr, ptr %26, align 8, !tbaa !11
  %44 = getelementptr inbounds i64, ptr %43, i64 %.1205246
  %45 = load i64, ptr %44, align 8, !tbaa !5
  %46 = getelementptr inbounds i64, ptr %43, i64 %41
  %47 = load i64, ptr %46, align 8, !tbaa !5
  store i64 %47, ptr %44, align 8, !tbaa !5
  %48 = load ptr, ptr %26, align 8, !tbaa !11
  %49 = load ptr, ptr %37, align 8, !tbaa !11
  %50 = getelementptr inbounds i64, ptr %49, i64 %.1205246
  %51 = load i64, ptr %50, align 8, !tbaa !5
  %52 = getelementptr inbounds i64, ptr %48, i64 %51
  store i64 %45, ptr %52, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %38, %42
  %54 = add nuw nsw i64 %.1205246, 1
  %exitcond309.not = icmp eq i64 %54, %2
  br i1 %exitcond309.not, label %._crit_edge, label %38, !llvm.loop !14

._crit_edge:                                      ; preds = %53, %35
  %55 = load i64, ptr %16, align 8, !tbaa !5
  %56 = icmp eq i64 %55, 1
  br i1 %56, label %57, label %.lr.ph250

57:                                               ; preds = %._crit_edge
  store i64 -3, ptr %5, align 8, !tbaa !5
  br label %336

.lr.ph250:                                        ; preds = %._crit_edge
  %58 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %4, i64 noundef %55, ptr noundef %9)
  %59 = load i64, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %21, i64 noundef %58, i64 noundef %59, ptr noundef %9)
  %60 = load i64, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %22, i64 noundef %58, i64 noundef %60, ptr noundef %9)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %3, ptr noundef %9)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %20, i64 noundef %3, ptr noundef %9)
  %61 = getelementptr inbounds i8, ptr %19, i64 56
  %smax = call i64 @llvm.smax.i64(i64 %3, i64 1)
  %xtraiter = and i64 %smax, 3
  %62 = icmp slt i64 %3, 4
  br i1 %62, label %.preheader241.unr-lcssa, label %.lr.ph250.new

.lr.ph250.new:                                    ; preds = %.lr.ph250
  %unroll_iter = and i64 %smax, 9223372036854775804
  br label %69

.preheader241.unr-lcssa:                          ; preds = %69, %.lr.ph250
  %.0201248.unr = phi i64 [ 0, %.lr.ph250 ], [ %81, %69 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader241, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader241.unr-lcssa, %.epil.preheader
  %.0201248.epil = phi i64 [ %65, %.epil.preheader ], [ %.0201248.unr, %.preheader241.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader241.unr-lcssa ]
  %63 = load ptr, ptr %61, align 8, !tbaa !11
  %64 = getelementptr inbounds i64, ptr %63, i64 %.0201248.epil
  store i64 0, ptr %64, align 8, !tbaa !5
  %65 = add nuw nsw i64 %.0201248.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 %.preheader241, label %.epil.preheader, !llvm.loop !15

.preheader241:                                    ; preds = %.epil.preheader, %.preheader241.unr-lcssa
  %66 = load i64, ptr %16, align 8, !tbaa !5
  %.not.not221251 = icmp sgt i64 %66, 0
  br i1 %.not.not221251, label %.lr.ph253, label %.preheader240

.lr.ph253:                                        ; preds = %.preheader241
  %67 = getelementptr inbounds i8, ptr %22, i64 72
  %68 = getelementptr inbounds i8, ptr %21, i64 72
  br label %88

69:                                               ; preds = %69, %.lr.ph250.new
  %.0201248 = phi i64 [ 0, %.lr.ph250.new ], [ %81, %69 ]
  %niter = phi i64 [ 0, %.lr.ph250.new ], [ %niter.next.3, %69 ]
  %70 = load ptr, ptr %61, align 8, !tbaa !11
  %71 = getelementptr inbounds i64, ptr %70, i64 %.0201248
  store i64 0, ptr %71, align 8, !tbaa !5
  %72 = or disjoint i64 %.0201248, 1
  %73 = load ptr, ptr %61, align 8, !tbaa !11
  %74 = getelementptr inbounds i64, ptr %73, i64 %72
  store i64 0, ptr %74, align 8, !tbaa !5
  %75 = or disjoint i64 %.0201248, 2
  %76 = load ptr, ptr %61, align 8, !tbaa !11
  %77 = getelementptr inbounds i64, ptr %76, i64 %75
  store i64 0, ptr %77, align 8, !tbaa !5
  %78 = or disjoint i64 %.0201248, 3
  %79 = load ptr, ptr %61, align 8, !tbaa !11
  %80 = getelementptr inbounds i64, ptr %79, i64 %78
  store i64 0, ptr %80, align 8, !tbaa !5
  %81 = add nuw nsw i64 %.0201248, 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 %.preheader241.unr-lcssa, label %69, !llvm.loop !17

.preheader240:                                    ; preds = %88, %.preheader241
  %.not.not222273 = icmp sgt i64 %58, 1
  br i1 %.not.not222273, label %.preheader239.lr.ph, label %.preheader237

.preheader239.lr.ph:                              ; preds = %.preheader240
  %82 = getelementptr inbounds i8, ptr %19, i64 56
  %83 = getelementptr inbounds i8, ptr %20, i64 56
  %84 = getelementptr inbounds i8, ptr %21, i64 72
  %85 = getelementptr inbounds i8, ptr %22, i64 72
  %xtraiter327 = and i64 %smax, 3
  %86 = icmp slt i64 %3, 4
  %unroll_iter330 = and i64 %smax, 9223372036854775804
  %lcmp.mod329.not = icmp eq i64 %xtraiter327, 0
  %xtraiter332 = and i64 %smax, 3
  %87 = icmp slt i64 %3, 4
  %unroll_iter335 = and i64 %smax, 9223372036854775804
  %lcmp.mod334.not = icmp eq i64 %xtraiter332, 0
  br label %.lr.ph256.preheader

88:                                               ; preds = %.lr.ph253, %88
  %.1202252 = phi i64 [ 0, %.lr.ph253 ], [ %96, %88 ]
  call void @_ZN11alglib_implL12bdss_tieaddcEPKNS_9ae_vectorES2_llPS0_PNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef nonnull %15, i64 noundef %.1202252, i64 noundef %3, ptr noundef nonnull %19, ptr noundef %9)
  %89 = load ptr, ptr %67, align 8, !tbaa !11
  %90 = load ptr, ptr %89, align 8, !tbaa !18
  %91 = getelementptr inbounds i64, ptr %90, i64 %.1202252
  store i64 0, ptr %91, align 8, !tbaa !5
  %92 = call noundef double @_ZN11alglib_implL10bdss_getcvEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %3, ptr noundef %9)
  %93 = load ptr, ptr %68, align 8, !tbaa !11
  %94 = load ptr, ptr %93, align 8, !tbaa !18
  %95 = getelementptr inbounds double, ptr %94, i64 %.1202252
  store double %92, ptr %95, align 8, !tbaa !9
  %96 = add nuw nsw i64 %.1202252, 1
  %97 = load i64, ptr %16, align 8, !tbaa !5
  %.not.not221 = icmp slt i64 %96, %97
  br i1 %.not.not221, label %88, label %.preheader240, !llvm.loop !20

.lr.ph256.preheader:                              ; preds = %._crit_edge272, %.preheader239.lr.ph
  %.0195274 = phi i64 [ 1, %.preheader239.lr.ph ], [ %186, %._crit_edge272 ]
  br i1 %86, label %.preheader238.unr-lcssa, label %.lr.ph256

.preheader237:                                    ; preds = %._crit_edge272, %.preheader240
  %.not.not223275 = icmp sgt i64 %58, 0
  br i1 %.not.not223275, label %.lr.ph279, label %._crit_edge280.thread

._crit_edge280.thread:                            ; preds = %.preheader237
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.127, ptr noundef %9)
  br label %292

.lr.ph279:                                        ; preds = %.preheader237
  %98 = getelementptr inbounds i8, ptr %21, i64 72
  br label %187

.preheader238.unr-lcssa:                          ; preds = %.lr.ph256, %.lr.ph256.preheader
  %.2203255.unr = phi i64 [ 0, %.lr.ph256.preheader ], [ %114, %.lr.ph256 ]
  br i1 %lcmp.mod329.not, label %.preheader238, label %.lr.ph256.epil

.lr.ph256.epil:                                   ; preds = %.preheader238.unr-lcssa, %.lr.ph256.epil
  %.2203255.epil = phi i64 [ %101, %.lr.ph256.epil ], [ %.2203255.unr, %.preheader238.unr-lcssa ]
  %epil.iter328 = phi i64 [ %epil.iter328.next, %.lr.ph256.epil ], [ 0, %.preheader238.unr-lcssa ]
  %99 = load ptr, ptr %82, align 8, !tbaa !11
  %100 = getelementptr inbounds i64, ptr %99, i64 %.2203255.epil
  store i64 0, ptr %100, align 8, !tbaa !5
  %101 = add nuw nsw i64 %.2203255.epil, 1
  %epil.iter328.next = add i64 %epil.iter328, 1
  %epil.iter328.cmp.not = icmp eq i64 %epil.iter328.next, %xtraiter327
  br i1 %epil.iter328.cmp.not, label %.preheader238, label %.lr.ph256.epil, !llvm.loop !21

.preheader238:                                    ; preds = %.lr.ph256.epil, %.preheader238.unr-lcssa
  %.pre = load i64, ptr %16, align 8, !tbaa !5
  %.not.not230269 = icmp slt i64 %.0195274, %.pre
  br i1 %.not.not230269, label %.lr.ph271, label %._crit_edge272

.lr.ph271:                                        ; preds = %.preheader238
  %102 = add nsw i64 %.0195274, -1
  br label %.lr.ph260.preheader

.lr.ph256:                                        ; preds = %.lr.ph256.preheader, %.lr.ph256
  %.2203255 = phi i64 [ %114, %.lr.ph256 ], [ 0, %.lr.ph256.preheader ]
  %niter331 = phi i64 [ %niter331.next.3, %.lr.ph256 ], [ 0, %.lr.ph256.preheader ]
  %103 = load ptr, ptr %82, align 8, !tbaa !11
  %104 = getelementptr inbounds i64, ptr %103, i64 %.2203255
  store i64 0, ptr %104, align 8, !tbaa !5
  %105 = or disjoint i64 %.2203255, 1
  %106 = load ptr, ptr %82, align 8, !tbaa !11
  %107 = getelementptr inbounds i64, ptr %106, i64 %105
  store i64 0, ptr %107, align 8, !tbaa !5
  %108 = or disjoint i64 %.2203255, 2
  %109 = load ptr, ptr %82, align 8, !tbaa !11
  %110 = getelementptr inbounds i64, ptr %109, i64 %108
  store i64 0, ptr %110, align 8, !tbaa !5
  %111 = or disjoint i64 %.2203255, 3
  %112 = load ptr, ptr %82, align 8, !tbaa !11
  %113 = getelementptr inbounds i64, ptr %112, i64 %111
  store i64 0, ptr %113, align 8, !tbaa !5
  %114 = add nuw nsw i64 %.2203255, 4
  %niter331.next.3 = add i64 %niter331, 4
  %niter331.ncmp.3 = icmp eq i64 %niter331.next.3, %unroll_iter330
  br i1 %niter331.ncmp.3, label %.preheader238.unr-lcssa, label %.lr.ph256, !llvm.loop !22

.lr.ph260.preheader:                              ; preds = %._crit_edge268, %.lr.ph271
  %.3270 = phi i64 [ %.0195274, %.lr.ph271 ], [ %184, %._crit_edge268 ]
  call void @_ZN11alglib_implL12bdss_tieaddcEPKNS_9ae_vectorES2_llPS0_PNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef nonnull %15, i64 noundef %.3270, i64 noundef %3, ptr noundef nonnull %19, ptr noundef %9)
  br i1 %87, label %._crit_edge261.unr-lcssa, label %.lr.ph260

.lr.ph260:                                        ; preds = %.lr.ph260.preheader, %.lr.ph260
  %.2206258 = phi i64 [ %138, %.lr.ph260 ], [ 0, %.lr.ph260.preheader ]
  %niter336 = phi i64 [ %niter336.next.3, %.lr.ph260 ], [ 0, %.lr.ph260.preheader ]
  %115 = load ptr, ptr %82, align 8, !tbaa !11
  %116 = getelementptr inbounds i64, ptr %115, i64 %.2206258
  %117 = load i64, ptr %116, align 8, !tbaa !5
  %118 = load ptr, ptr %83, align 8, !tbaa !11
  %119 = getelementptr inbounds i64, ptr %118, i64 %.2206258
  store i64 %117, ptr %119, align 8, !tbaa !5
  %120 = or disjoint i64 %.2206258, 1
  %121 = load ptr, ptr %82, align 8, !tbaa !11
  %122 = getelementptr inbounds i64, ptr %121, i64 %120
  %123 = load i64, ptr %122, align 8, !tbaa !5
  %124 = load ptr, ptr %83, align 8, !tbaa !11
  %125 = getelementptr inbounds i64, ptr %124, i64 %120
  store i64 %123, ptr %125, align 8, !tbaa !5
  %126 = or disjoint i64 %.2206258, 2
  %127 = load ptr, ptr %82, align 8, !tbaa !11
  %128 = getelementptr inbounds i64, ptr %127, i64 %126
  %129 = load i64, ptr %128, align 8, !tbaa !5
  %130 = load ptr, ptr %83, align 8, !tbaa !11
  %131 = getelementptr inbounds i64, ptr %130, i64 %126
  store i64 %129, ptr %131, align 8, !tbaa !5
  %132 = or disjoint i64 %.2206258, 3
  %133 = load ptr, ptr %82, align 8, !tbaa !11
  %134 = getelementptr inbounds i64, ptr %133, i64 %132
  %135 = load i64, ptr %134, align 8, !tbaa !5
  %136 = load ptr, ptr %83, align 8, !tbaa !11
  %137 = getelementptr inbounds i64, ptr %136, i64 %132
  store i64 %135, ptr %137, align 8, !tbaa !5
  %138 = add nuw nsw i64 %.2206258, 4
  %niter336.next.3 = add i64 %niter336, 4
  %niter336.ncmp.3 = icmp eq i64 %niter336.next.3, %unroll_iter335
  br i1 %niter336.ncmp.3, label %._crit_edge261.unr-lcssa, label %.lr.ph260, !llvm.loop !23

._crit_edge261.unr-lcssa:                         ; preds = %.lr.ph260, %.lr.ph260.preheader
  %.2206258.unr = phi i64 [ 0, %.lr.ph260.preheader ], [ %138, %.lr.ph260 ]
  br i1 %lcmp.mod334.not, label %._crit_edge261, label %.lr.ph260.epil

.lr.ph260.epil:                                   ; preds = %._crit_edge261.unr-lcssa, %.lr.ph260.epil
  %.2206258.epil = phi i64 [ %144, %.lr.ph260.epil ], [ %.2206258.unr, %._crit_edge261.unr-lcssa ]
  %epil.iter333 = phi i64 [ %epil.iter333.next, %.lr.ph260.epil ], [ 0, %._crit_edge261.unr-lcssa ]
  %139 = load ptr, ptr %82, align 8, !tbaa !11
  %140 = getelementptr inbounds i64, ptr %139, i64 %.2206258.epil
  %141 = load i64, ptr %140, align 8, !tbaa !5
  %142 = load ptr, ptr %83, align 8, !tbaa !11
  %143 = getelementptr inbounds i64, ptr %142, i64 %.2206258.epil
  store i64 %141, ptr %143, align 8, !tbaa !5
  %144 = add nuw nsw i64 %.2206258.epil, 1
  %epil.iter333.next = add i64 %epil.iter333, 1
  %epil.iter333.cmp.not = icmp eq i64 %epil.iter333.next, %xtraiter332
  br i1 %epil.iter333.cmp.not, label %._crit_edge261, label %.lr.ph260.epil, !llvm.loop !24

._crit_edge261:                                   ; preds = %.lr.ph260.epil, %._crit_edge261.unr-lcssa
  %145 = load ptr, ptr %84, align 8, !tbaa !11
  %146 = getelementptr inbounds ptr, ptr %145, i64 %102
  %147 = load ptr, ptr %146, align 8, !tbaa !18
  %148 = getelementptr double, ptr %147, i64 %.3270
  %149 = getelementptr i8, ptr %148, i64 -8
  %150 = load double, ptr %149, align 8, !tbaa !9
  %151 = call noundef double @_ZN11alglib_implL10bdss_getcvEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %20, i64 noundef %3, ptr noundef %9)
  %152 = fadd double %150, %151
  %153 = load ptr, ptr %84, align 8, !tbaa !11
  %154 = getelementptr inbounds ptr, ptr %153, i64 %.0195274
  %155 = load ptr, ptr %154, align 8, !tbaa !18
  %156 = getelementptr inbounds double, ptr %155, i64 %.3270
  store double %152, ptr %156, align 8, !tbaa !9
  %157 = load ptr, ptr %85, align 8, !tbaa !11
  %158 = getelementptr inbounds ptr, ptr %157, i64 %.0195274
  %159 = load ptr, ptr %158, align 8, !tbaa !18
  %160 = getelementptr inbounds i64, ptr %159, i64 %.3270
  store i64 %.3270, ptr %160, align 8, !tbaa !5
  %.not.not232263 = icmp ult i64 %.0195274, %.3270
  br i1 %.not.not232263, label %.lr.ph267, label %._crit_edge268

.lr.ph267:                                        ; preds = %._crit_edge261, %183
  %.0200.in264 = phi i64 [ %.0200265, %183 ], [ %.0195274, %._crit_edge261 ]
  %.0200265 = add nuw i64 %.0200.in264, 1
  call void @_ZN11alglib_implL12bdss_tiesubcEPKNS_9ae_vectorES2_llPS0_PNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef nonnull %15, i64 noundef %.0200.in264, i64 noundef %3, ptr noundef nonnull %20, ptr noundef %9)
  %161 = load ptr, ptr %84, align 8, !tbaa !11
  %162 = getelementptr inbounds ptr, ptr %161, i64 %102
  %163 = load ptr, ptr %162, align 8, !tbaa !18
  %164 = getelementptr inbounds double, ptr %163, i64 %.0200.in264
  %165 = load double, ptr %164, align 8, !tbaa !9
  %166 = call noundef double @_ZN11alglib_implL10bdss_getcvEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %20, i64 noundef %3, ptr noundef %9)
  %167 = fadd double %165, %166
  %168 = load ptr, ptr %84, align 8, !tbaa !11
  %169 = getelementptr inbounds ptr, ptr %168, i64 %.0195274
  %170 = load ptr, ptr %169, align 8, !tbaa !18
  %171 = getelementptr inbounds double, ptr %170, i64 %.3270
  %172 = load double, ptr %171, align 8, !tbaa !9
  %173 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %167, double noundef %172)
  br i1 %173, label %174, label %183

174:                                              ; preds = %.lr.ph267
  %175 = load ptr, ptr %84, align 8, !tbaa !11
  %176 = getelementptr inbounds ptr, ptr %175, i64 %.0195274
  %177 = load ptr, ptr %176, align 8, !tbaa !18
  %178 = getelementptr inbounds double, ptr %177, i64 %.3270
  store double %167, ptr %178, align 8, !tbaa !9
  %179 = load ptr, ptr %85, align 8, !tbaa !11
  %180 = getelementptr inbounds ptr, ptr %179, i64 %.0195274
  %181 = load ptr, ptr %180, align 8, !tbaa !18
  %182 = getelementptr inbounds i64, ptr %181, i64 %.3270
  store i64 %.0200265, ptr %182, align 8, !tbaa !5
  br label %183

183:                                              ; preds = %.lr.ph267, %174
  %exitcond315.not = icmp eq i64 %.0200265, %.3270
  br i1 %exitcond315.not, label %._crit_edge268, label %.lr.ph267, !llvm.loop !25

._crit_edge268:                                   ; preds = %183, %._crit_edge261
  %184 = add nuw nsw i64 %.3270, 1
  %185 = load i64, ptr %16, align 8, !tbaa !5
  %.not.not230 = icmp slt i64 %184, %185
  br i1 %.not.not230, label %.lr.ph260.preheader, label %._crit_edge272, !llvm.loop !26

._crit_edge272:                                   ; preds = %._crit_edge268, %.preheader238
  %186 = add nuw nsw i64 %.0195274, 1
  %exitcond316.not = icmp eq i64 %186, %58
  br i1 %exitcond316.not, label %.preheader237, label %.lr.ph256.preheader, !llvm.loop !27

187:                                              ; preds = %.lr.ph279, %204
  %.0278 = phi double [ 1.000000e+300, %.lr.ph279 ], [ %.1, %204 ]
  %.0193277 = phi i64 [ -1, %.lr.ph279 ], [ %.1194, %204 ]
  %.1196276 = phi i64 [ 0, %.lr.ph279 ], [ %205, %204 ]
  %188 = load ptr, ptr %98, align 8, !tbaa !11
  %189 = getelementptr inbounds ptr, ptr %188, i64 %.1196276
  %190 = load ptr, ptr %189, align 8, !tbaa !18
  %191 = load i64, ptr %16, align 8, !tbaa !5
  %192 = getelementptr double, ptr %190, i64 %191
  %193 = getelementptr i8, ptr %192, i64 -8
  %194 = load double, ptr %193, align 8, !tbaa !9
  %195 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %194, double noundef %.0278)
  br i1 %195, label %196, label %204

196:                                              ; preds = %187
  %197 = load ptr, ptr %98, align 8, !tbaa !11
  %198 = getelementptr inbounds ptr, ptr %197, i64 %.1196276
  %199 = load ptr, ptr %198, align 8, !tbaa !18
  %200 = load i64, ptr %16, align 8, !tbaa !5
  %201 = getelementptr double, ptr %199, i64 %200
  %202 = getelementptr i8, ptr %201, i64 -8
  %203 = load double, ptr %202, align 8, !tbaa !9
  br label %204

204:                                              ; preds = %187, %196
  %.1194 = phi i64 [ %.1196276, %196 ], [ %.0193277, %187 ]
  %.1 = phi double [ %203, %196 ], [ %.0278, %187 ]
  %205 = add nuw nsw i64 %.1196276, 1
  %exitcond317.not = icmp eq i64 %205, %58
  br i1 %exitcond317.not, label %._crit_edge280, label %187, !llvm.loop !28

._crit_edge280:                                   ; preds = %204
  %206 = icmp sgt i64 %.1194, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %206, ptr noundef nonnull @.str.127, ptr noundef %9)
  %207 = icmp eq i64 %.1194, 0
  br i1 %207, label %.preheader236, label %292

.preheader236:                                    ; preds = %._crit_edge280
  %208 = load i64, ptr %16, align 8, !tbaa !5
  %.not.not224286 = icmp sgt i64 %208, 1
  br i1 %.not.not224286, label %.lr.ph290, label %.lr.ph296

.lr.ph290:                                        ; preds = %.preheader236
  %209 = getelementptr inbounds i8, ptr %15, i64 56
  %210 = uitofp nneg i64 %36 to double
  br label %211

211:                                              ; preds = %.lr.ph290, %226
  %.0197289 = phi double [ 1.000000e+300, %.lr.ph290 ], [ %.1198, %226 ]
  %.4288 = phi i64 [ -1, %.lr.ph290 ], [ %.5, %226 ]
  %.3207287 = phi i64 [ 1, %.lr.ph290 ], [ %227, %226 ]
  %212 = load ptr, ptr %209, align 8, !tbaa !11
  %213 = getelementptr inbounds i64, ptr %212, i64 %.3207287
  %214 = load i64, ptr %213, align 8, !tbaa !5
  %215 = sitofp i64 %214 to double
  %216 = call double @llvm.fmuladd.f64(double %210, double -5.000000e-01, double %215)
  %217 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %216, ptr noundef %9)
  %218 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %217, double noundef %.0197289)
  br i1 %218, label %219, label %226

219:                                              ; preds = %211
  %220 = load ptr, ptr %209, align 8, !tbaa !11
  %221 = getelementptr inbounds i64, ptr %220, i64 %.3207287
  %222 = load i64, ptr %221, align 8, !tbaa !5
  %223 = sitofp i64 %222 to double
  %224 = call double @llvm.fmuladd.f64(double %210, double -5.000000e-01, double %223)
  %225 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %224, ptr noundef %9)
  br label %226

226:                                              ; preds = %211, %219
  %.5 = phi i64 [ %.3207287, %219 ], [ %.4288, %211 ]
  %.1198 = phi double [ %225, %219 ], [ %.0197289, %211 ]
  %227 = add nuw nsw i64 %.3207287, 1
  %228 = load i64, ptr %16, align 8, !tbaa !5
  %.not.not224 = icmp slt i64 %227, %228
  br i1 %.not.not224, label %211, label %.lr.ph296, !llvm.loop !29

.lr.ph296:                                        ; preds = %226, %.preheader236
  %.4.lcssa = phi i64 [ -1, %.preheader236 ], [ %.5, %226 ]
  %229 = icmp sgt i64 %.4.lcssa, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %229, ptr noundef nonnull @.str.128, ptr noundef %9)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %6, i64 noundef 1, ptr noundef %9)
  %230 = getelementptr inbounds i8, ptr %12, i64 56
  %231 = load ptr, ptr %230, align 8, !tbaa !11
  %232 = getelementptr inbounds i8, ptr %15, i64 56
  %233 = load ptr, ptr %232, align 8, !tbaa !11
  %234 = getelementptr i64, ptr %233, i64 %.4.lcssa
  %235 = getelementptr i8, ptr %234, i64 -8
  %236 = load i64, ptr %235, align 8, !tbaa !5
  %237 = getelementptr inbounds double, ptr %231, i64 %236
  %238 = load double, ptr %237, align 8, !tbaa !9
  %239 = load i64, ptr %234, align 8, !tbaa !5
  %240 = getelementptr inbounds double, ptr %231, i64 %239
  %241 = load double, ptr %240, align 8, !tbaa !9
  %242 = fadd double %238, %241
  %243 = fmul double %242, 5.000000e-01
  %244 = getelementptr inbounds i8, ptr %6, i64 56
  %245 = load ptr, ptr %244, align 8, !tbaa !11
  store double %243, ptr %245, align 8, !tbaa !9
  store i64 2, ptr %7, align 8, !tbaa !5
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  %246 = getelementptr inbounds i8, ptr %19, i64 56
  %xtraiter338 = and i64 %smax, 3
  %247 = icmp slt i64 %3, 4
  br i1 %247, label %.preheader235.unr-lcssa, label %.lr.ph296.new

.lr.ph296.new:                                    ; preds = %.lr.ph296
  %unroll_iter341 = and i64 %smax, 9223372036854775804
  br label %251

.preheader235.unr-lcssa:                          ; preds = %251, %.lr.ph296
  %.4208294.unr = phi i64 [ 0, %.lr.ph296 ], [ %263, %251 ]
  %lcmp.mod340.not = icmp eq i64 %xtraiter338, 0
  br i1 %lcmp.mod340.not, label %.preheader235, label %.epil.preheader337

.epil.preheader337:                               ; preds = %.preheader235.unr-lcssa, %.epil.preheader337
  %.4208294.epil = phi i64 [ %250, %.epil.preheader337 ], [ %.4208294.unr, %.preheader235.unr-lcssa ]
  %epil.iter339 = phi i64 [ %epil.iter339.next, %.epil.preheader337 ], [ 0, %.preheader235.unr-lcssa ]
  %248 = load ptr, ptr %246, align 8, !tbaa !11
  %249 = getelementptr inbounds i64, ptr %248, i64 %.4208294.epil
  store i64 0, ptr %249, align 8, !tbaa !5
  %250 = add nuw nsw i64 %.4208294.epil, 1
  %epil.iter339.next = add i64 %epil.iter339, 1
  %epil.iter339.cmp.not = icmp eq i64 %epil.iter339.next, %xtraiter338
  br i1 %epil.iter339.cmp.not, label %.preheader235, label %.epil.preheader337, !llvm.loop !30

.preheader235:                                    ; preds = %.epil.preheader337, %.preheader235.unr-lcssa
  br i1 %229, label %.lr.ph299, label %.lr.ph304

251:                                              ; preds = %251, %.lr.ph296.new
  %.4208294 = phi i64 [ 0, %.lr.ph296.new ], [ %263, %251 ]
  %niter342 = phi i64 [ 0, %.lr.ph296.new ], [ %niter342.next.3, %251 ]
  %252 = load ptr, ptr %246, align 8, !tbaa !11
  %253 = getelementptr inbounds i64, ptr %252, i64 %.4208294
  store i64 0, ptr %253, align 8, !tbaa !5
  %254 = or disjoint i64 %.4208294, 1
  %255 = load ptr, ptr %246, align 8, !tbaa !11
  %256 = getelementptr inbounds i64, ptr %255, i64 %254
  store i64 0, ptr %256, align 8, !tbaa !5
  %257 = or disjoint i64 %.4208294, 2
  %258 = load ptr, ptr %246, align 8, !tbaa !11
  %259 = getelementptr inbounds i64, ptr %258, i64 %257
  store i64 0, ptr %259, align 8, !tbaa !5
  %260 = or disjoint i64 %.4208294, 3
  %261 = load ptr, ptr %246, align 8, !tbaa !11
  %262 = getelementptr inbounds i64, ptr %261, i64 %260
  store i64 0, ptr %262, align 8, !tbaa !5
  %263 = add nuw nsw i64 %.4208294, 4
  %niter342.next.3 = add i64 %niter342, 4
  %niter342.ncmp.3 = icmp eq i64 %niter342.next.3, %unroll_iter341
  br i1 %niter342.ncmp.3, label %.preheader235.unr-lcssa, label %251, !llvm.loop !31

.lr.ph299:                                        ; preds = %.preheader235, %.lr.ph299
  %.5209298 = phi i64 [ %264, %.lr.ph299 ], [ 0, %.preheader235 ]
  call void @_ZN11alglib_implL12bdss_tieaddcEPKNS_9ae_vectorES2_llPS0_PNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef nonnull %15, i64 noundef %.5209298, i64 noundef %3, ptr noundef nonnull %19, ptr noundef %9)
  %264 = add nuw nsw i64 %.5209298, 1
  %exitcond320.not = icmp eq i64 %264, %.4.lcssa
  br i1 %exitcond320.not, label %._crit_edge300.loopexit, label %.lr.ph299, !llvm.loop !32

._crit_edge300.loopexit:                          ; preds = %.lr.ph299
  %.pre323 = load double, ptr %8, align 8, !tbaa !9
  br label %.lr.ph304

.lr.ph304:                                        ; preds = %.preheader235, %._crit_edge300.loopexit
  %265 = phi double [ %.pre323, %._crit_edge300.loopexit ], [ 0.000000e+00, %.preheader235 ]
  %266 = call noundef double @_ZN11alglib_implL10bdss_getcvEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %3, ptr noundef %9)
  %267 = fadd double %265, %266
  store double %267, ptr %8, align 8, !tbaa !9
  %268 = getelementptr inbounds i8, ptr %19, i64 56
  %xtraiter344 = and i64 %smax, 3
  %269 = icmp slt i64 %3, 4
  br i1 %269, label %.preheader.unr-lcssa, label %.lr.ph304.new

.lr.ph304.new:                                    ; preds = %.lr.ph304
  %unroll_iter347 = and i64 %smax, 9223372036854775804
  br label %274

.preheader.unr-lcssa:                             ; preds = %274, %.lr.ph304
  %.6302.unr = phi i64 [ 0, %.lr.ph304 ], [ %286, %274 ]
  %lcmp.mod346.not = icmp eq i64 %xtraiter344, 0
  br i1 %lcmp.mod346.not, label %.preheader, label %.epil.preheader343

.epil.preheader343:                               ; preds = %.preheader.unr-lcssa, %.epil.preheader343
  %.6302.epil = phi i64 [ %272, %.epil.preheader343 ], [ %.6302.unr, %.preheader.unr-lcssa ]
  %epil.iter345 = phi i64 [ %epil.iter345.next, %.epil.preheader343 ], [ 0, %.preheader.unr-lcssa ]
  %270 = load ptr, ptr %268, align 8, !tbaa !11
  %271 = getelementptr inbounds i64, ptr %270, i64 %.6302.epil
  store i64 0, ptr %271, align 8, !tbaa !5
  %272 = add nuw nsw i64 %.6302.epil, 1
  %epil.iter345.next = add i64 %epil.iter345, 1
  %epil.iter345.cmp.not = icmp eq i64 %epil.iter345.next, %xtraiter344
  br i1 %epil.iter345.cmp.not, label %.preheader, label %.epil.preheader343, !llvm.loop !33

.preheader:                                       ; preds = %.epil.preheader343, %.preheader.unr-lcssa
  %273 = load i64, ptr %16, align 8, !tbaa !5
  %.not.not228305 = icmp slt i64 %.4.lcssa, %273
  br i1 %.not.not228305, label %.lr.ph307, label %._crit_edge308

274:                                              ; preds = %274, %.lr.ph304.new
  %.6302 = phi i64 [ 0, %.lr.ph304.new ], [ %286, %274 ]
  %niter348 = phi i64 [ 0, %.lr.ph304.new ], [ %niter348.next.3, %274 ]
  %275 = load ptr, ptr %268, align 8, !tbaa !11
  %276 = getelementptr inbounds i64, ptr %275, i64 %.6302
  store i64 0, ptr %276, align 8, !tbaa !5
  %277 = or disjoint i64 %.6302, 1
  %278 = load ptr, ptr %268, align 8, !tbaa !11
  %279 = getelementptr inbounds i64, ptr %278, i64 %277
  store i64 0, ptr %279, align 8, !tbaa !5
  %280 = or disjoint i64 %.6302, 2
  %281 = load ptr, ptr %268, align 8, !tbaa !11
  %282 = getelementptr inbounds i64, ptr %281, i64 %280
  store i64 0, ptr %282, align 8, !tbaa !5
  %283 = or disjoint i64 %.6302, 3
  %284 = load ptr, ptr %268, align 8, !tbaa !11
  %285 = getelementptr inbounds i64, ptr %284, i64 %283
  store i64 0, ptr %285, align 8, !tbaa !5
  %286 = add nuw nsw i64 %.6302, 4
  %niter348.next.3 = add i64 %niter348, 4
  %niter348.ncmp.3 = icmp eq i64 %niter348.next.3, %unroll_iter347
  br i1 %niter348.ncmp.3, label %.preheader.unr-lcssa, label %274, !llvm.loop !34

.lr.ph307:                                        ; preds = %.preheader, %.lr.ph307
  %.7306 = phi i64 [ %287, %.lr.ph307 ], [ %.4.lcssa, %.preheader ]
  call void @_ZN11alglib_implL12bdss_tieaddcEPKNS_9ae_vectorES2_llPS0_PNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef nonnull %15, i64 noundef %.7306, i64 noundef %3, ptr noundef nonnull %19, ptr noundef %9)
  %287 = add nsw i64 %.7306, 1
  %288 = load i64, ptr %16, align 8, !tbaa !5
  %.not.not228 = icmp slt i64 %287, %288
  br i1 %.not.not228, label %.lr.ph307, label %._crit_edge308.loopexit, !llvm.loop !35

._crit_edge308.loopexit:                          ; preds = %.lr.ph307
  %.pre324 = load double, ptr %8, align 8, !tbaa !9
  br label %._crit_edge308

._crit_edge308:                                   ; preds = %._crit_edge308.loopexit, %.preheader
  %289 = phi double [ %.pre324, %._crit_edge308.loopexit ], [ %267, %.preheader ]
  %290 = call noundef double @_ZN11alglib_implL10bdss_getcvEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %3, ptr noundef %9)
  %291 = fadd double %289, %290
  store double %291, ptr %8, align 8, !tbaa !9
  br label %336

292:                                              ; preds = %._crit_edge280.thread, %._crit_edge280
  %.0193.lcssa326 = phi i64 [ -1, %._crit_edge280.thread ], [ %.1194, %._crit_edge280 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %6, i64 noundef %.0193.lcssa326, ptr noundef %9)
  %293 = add nsw i64 %.0193.lcssa326, 1
  store i64 %293, ptr %7, align 8, !tbaa !5
  %294 = getelementptr inbounds i8, ptr %21, i64 72
  %295 = load ptr, ptr %294, align 8, !tbaa !11
  %296 = getelementptr inbounds ptr, ptr %295, i64 %.0193.lcssa326
  %297 = load ptr, ptr %296, align 8, !tbaa !18
  %298 = load i64, ptr %16, align 8, !tbaa !5
  %299 = getelementptr double, ptr %297, i64 %298
  %300 = getelementptr i8, ptr %299, i64 -8
  %301 = load double, ptr %300, align 8, !tbaa !9
  store double %301, ptr %8, align 8, !tbaa !9
  %302 = getelementptr inbounds i8, ptr %22, i64 72
  %303 = load ptr, ptr %302, align 8, !tbaa !11
  %304 = getelementptr inbounds ptr, ptr %303, i64 %.0193.lcssa326
  %305 = load ptr, ptr %304, align 8, !tbaa !18
  %306 = add nsw i64 %298, -1
  %307 = getelementptr inbounds i64, ptr %305, i64 %306
  %308 = load i64, ptr %307, align 8, !tbaa !5
  store i64 %306, ptr %14, align 8, !tbaa !5
  %309 = icmp sgt i64 %.0193.lcssa326, 0
  br i1 %309, label %.lr.ph284, label %._crit_edge285

.lr.ph284:                                        ; preds = %292
  %310 = getelementptr inbounds i8, ptr %12, i64 56
  %311 = getelementptr inbounds i8, ptr %15, i64 56
  %312 = getelementptr inbounds i8, ptr %6, i64 56
  br label %313

313:                                              ; preds = %.lr.ph284, %313
  %.2282 = phi i64 [ %.0193.lcssa326, %.lr.ph284 ], [ %328, %313 ]
  %.0199281 = phi i64 [ %308, %.lr.ph284 ], [ %334, %313 ]
  %314 = load ptr, ptr %310, align 8, !tbaa !11
  %315 = load ptr, ptr %311, align 8, !tbaa !11
  %316 = add nsw i64 %.0199281, -1
  %317 = getelementptr inbounds i64, ptr %315, i64 %316
  %318 = load i64, ptr %317, align 8, !tbaa !5
  %319 = getelementptr inbounds double, ptr %314, i64 %318
  %320 = load double, ptr %319, align 8, !tbaa !9
  %321 = getelementptr inbounds i64, ptr %315, i64 %.0199281
  %322 = load i64, ptr %321, align 8, !tbaa !5
  %323 = getelementptr inbounds double, ptr %314, i64 %322
  %324 = load double, ptr %323, align 8, !tbaa !9
  %325 = fadd double %320, %324
  %326 = fmul double %325, 5.000000e-01
  %327 = load ptr, ptr %312, align 8, !tbaa !11
  %328 = add nsw i64 %.2282, -1
  %329 = getelementptr inbounds double, ptr %327, i64 %328
  store double %326, ptr %329, align 8, !tbaa !9
  store i64 %316, ptr %14, align 8, !tbaa !5
  %330 = load ptr, ptr %302, align 8, !tbaa !11
  %331 = getelementptr inbounds ptr, ptr %330, i64 %328
  %332 = load ptr, ptr %331, align 8, !tbaa !18
  %333 = getelementptr inbounds i64, ptr %332, i64 %316
  %334 = load i64, ptr %333, align 8, !tbaa !5
  %335 = icmp ugt i64 %.2282, 1
  br i1 %335, label %313, label %._crit_edge285, !llvm.loop !36

._crit_edge285:                                   ; preds = %313, %292
  call void @_ZN11alglib_impl8touchintEPlPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef %9)
  br label %336

336:                                              ; preds = %._crit_edge308, %._crit_edge285, %57, %34, %28
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %9)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL12bdss_tiesubcEPKNS_9ae_vectorES2_llPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #6

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !13}
!18 = !{!19, !19, i64 0}
!19 = !{!"any pointer", !7, i64 0}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !13}
!23 = distinct !{!23, !13}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !13}
!26 = distinct !{!26, !13}
!27 = distinct !{!27, !13}
!28 = distinct !{!28, !13}
!29 = distinct !{!29, !13}
!30 = distinct !{!30, !16}
!31 = distinct !{!31, !13}
!32 = distinct !{!32, !13}
!33 = distinct !{!33, !16}
!34 = distinct !{!34, !13}
!35 = distinct !{!35, !13}
!36 = distinct !{!36, !13}


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