; LLVM IR from venumb/ZSPACE :: cpp/depends/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.94 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.95 = 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_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #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

; 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_vectorES1_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_tieaddcEPNS_9ae_vectorES1_llS1_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_getcvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15dsoptimalsplitkEPNS_9ae_vectorES1_lllPlS1_S2_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_vectorES1_PNS_8ae_stateEb(ptr noundef %22, ptr noundef %44, ptr noundef %45, i1 noundef zeroext true)
  store ptr %22, ptr %11, align 8, !tbaa !5
  %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_vectorES1_PNS_8ae_stateEb(ptr noundef %23, ptr noundef %46, ptr noundef %47, i1 noundef zeroext true)
  store ptr %23, ptr %12, align 8, !tbaa !5
  %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 %641

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

71:                                               ; preds = %97, %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 %100

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

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

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

96:                                               ; preds = %84
  br label %97

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

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

105:                                              ; preds = %151, %100
  %106 = load i64, ptr %24, align 8, !tbaa !9
  %107 = load i64, ptr %13, align 8, !tbaa !9
  %108 = sub nsw i64 %107, 1
  %109 = icmp sle i64 %106, %108
  br i1 %109, label %110, label %154

110:                                              ; preds = %105
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %112 = load ptr, ptr %111, align 8, !tbaa !13
  %113 = load i64, ptr %24, align 8, !tbaa !9
  %114 = getelementptr inbounds i64, ptr %112, i64 %113
  %115 = load i64, ptr %114, align 8, !tbaa !9
  %116 = load i64, ptr %24, align 8, !tbaa !9
  %117 = icmp ne i64 %115, %116
  br i1 %117, label %118, label %150

118:                                              ; preds = %110
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %119, i32 0, i32 4
  %121 = load ptr, ptr %120, align 8, !tbaa !13
  %122 = load i64, ptr %24, align 8, !tbaa !9
  %123 = getelementptr inbounds i64, ptr %121, i64 %122
  %124 = load i64, ptr %123, align 8, !tbaa !9
  store i64 %124, ptr %39, align 8, !tbaa !9
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %125, i32 0, i32 4
  %127 = load ptr, ptr %126, align 8, !tbaa !13
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %129 = load ptr, ptr %128, align 8, !tbaa !13
  %130 = load i64, ptr %24, align 8, !tbaa !9
  %131 = getelementptr inbounds i64, ptr %129, i64 %130
  %132 = load i64, ptr %131, align 8, !tbaa !9
  %133 = getelementptr inbounds i64, ptr %127, i64 %132
  %134 = load i64, ptr %133, align 8, !tbaa !9
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !13
  %138 = load i64, ptr %24, align 8, !tbaa !9
  %139 = getelementptr inbounds i64, ptr %137, i64 %138
  store i64 %134, ptr %139, align 8, !tbaa !9
  %140 = load i64, ptr %39, align 8, !tbaa !9
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %141, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !13
  %144 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %145 = load ptr, ptr %144, align 8, !tbaa !13
  %146 = load i64, ptr %24, align 8, !tbaa !9
  %147 = getelementptr inbounds i64, ptr %145, i64 %146
  %148 = load i64, ptr %147, align 8, !tbaa !9
  %149 = getelementptr inbounds i64, ptr %143, i64 %148
  store i64 %140, ptr %149, align 8, !tbaa !9
  br label %150

150:                                              ; preds = %118, %110
  br label %151

151:                                              ; preds = %150
  %152 = load i64, ptr %24, align 8, !tbaa !9
  %153 = add nsw i64 %152, 1
  store i64 %153, ptr %24, align 8, !tbaa !9
  br label %105, !llvm.loop !16

154:                                              ; preds = %105
  %155 = load i64, ptr %31, align 8, !tbaa !9
  %156 = icmp eq i64 %155, 1
  br i1 %156, label %157, label %160

157:                                              ; preds = %154
  %158 = load ptr, ptr %16, align 8, !tbaa !5
  store i64 -3, ptr %158, align 8, !tbaa !9
  %159 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %159)
  store i32 1, ptr %42, align 4
  br label %641

160:                                              ; preds = %154
  %161 = load i64, ptr %15, align 8, !tbaa !9
  %162 = load i64, ptr %31, align 8, !tbaa !9
  %163 = load ptr, ptr %20, align 8, !tbaa !5
  %164 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %161, i64 noundef %162, ptr noundef %163)
  store i64 %164, ptr %15, align 8, !tbaa !9
  %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 %37, i64 noundef %167, i64 noundef %170, ptr noundef %171)
  %172 = load i64, ptr %15, align 8, !tbaa !9
  %173 = sub nsw i64 %172, 1
  %174 = add nsw i64 %173, 1
  %175 = load i64, ptr %31, align 8, !tbaa !9
  %176 = sub nsw i64 %175, 1
  %177 = add nsw i64 %176, 1
  %178 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %38, i64 noundef %174, i64 noundef %177, ptr noundef %178)
  %179 = load i64, ptr %14, align 8, !tbaa !9
  %180 = sub nsw i64 %179, 1
  %181 = add nsw i64 %180, 1
  %182 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %35, i64 noundef %181, ptr noundef %182)
  %183 = load i64, ptr %14, align 8, !tbaa !9
  %184 = sub nsw i64 %183, 1
  %185 = add nsw i64 %184, 1
  %186 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %36, i64 noundef %185, ptr noundef %186)
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %187

187:                                              ; preds = %197, %160
  %188 = load i64, ptr %25, align 8, !tbaa !9
  %189 = load i64, ptr %14, align 8, !tbaa !9
  %190 = sub nsw i64 %189, 1
  %191 = icmp sle i64 %188, %190
  br i1 %191, label %192, label %200

192:                                              ; preds = %187
  %193 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %194 = load ptr, ptr %193, align 8, !tbaa !13
  %195 = load i64, ptr %25, align 8, !tbaa !9
  %196 = getelementptr inbounds i64, ptr %194, i64 %195
  store i64 0, ptr %196, align 8, !tbaa !9
  br label %197

197:                                              ; preds = %192
  %198 = load i64, ptr %25, align 8, !tbaa !9
  %199 = add nsw i64 %198, 1
  store i64 %199, ptr %25, align 8, !tbaa !9
  br label %187, !llvm.loop !17

200:                                              ; preds = %187
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %201

201:                                              ; preds = %226, %200
  %202 = load i64, ptr %25, align 8, !tbaa !9
  %203 = load i64, ptr %31, align 8, !tbaa !9
  %204 = sub nsw i64 %203, 1
  %205 = icmp sle i64 %202, %204
  br i1 %205, label %206, label %229

206:                                              ; preds = %201
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  %208 = load i64, ptr %25, align 8, !tbaa !9
  %209 = load i64, ptr %14, align 8, !tbaa !9
  %210 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_implL12bdss_tieaddcEPNS_9ae_vectorES1_llS1_PNS_8ae_stateE(ptr noundef %207, ptr noundef %30, i64 noundef %208, i64 noundef %209, ptr noundef %35, ptr noundef %210)
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %38, i32 0, i32 6
  %212 = load ptr, ptr %211, align 8, !tbaa !13
  %213 = getelementptr inbounds ptr, ptr %212, i64 0
  %214 = load ptr, ptr %213, align 8, !tbaa !5
  %215 = load i64, ptr %25, align 8, !tbaa !9
  %216 = getelementptr inbounds i64, ptr %214, i64 %215
  store i64 0, ptr %216, align 8, !tbaa !9
  %217 = load i64, ptr %14, align 8, !tbaa !9
  %218 = load ptr, ptr %20, align 8, !tbaa !5
  %219 = call noundef double @_ZN11alglib_implL10bdss_getcvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %35, i64 noundef %217, ptr noundef %218)
  %220 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %221 = load ptr, ptr %220, align 8, !tbaa !13
  %222 = getelementptr inbounds ptr, ptr %221, i64 0
  %223 = load ptr, ptr %222, align 8, !tbaa !5
  %224 = load i64, ptr %25, align 8, !tbaa !9
  %225 = getelementptr inbounds double, ptr %223, i64 %224
  store double %219, ptr %225, align 8, !tbaa !11
  br label %226

226:                                              ; preds = %206
  %227 = load i64, ptr %25, align 8, !tbaa !9
  %228 = add nsw i64 %227, 1
  store i64 %228, ptr %25, align 8, !tbaa !9
  br label %201, !llvm.loop !18

229:                                              ; preds = %201
  store i64 1, ptr %39, align 8, !tbaa !9
  br label %230

230:                                              ; preds = %371, %229
  %231 = load i64, ptr %39, align 8, !tbaa !9
  %232 = load i64, ptr %15, align 8, !tbaa !9
  %233 = sub nsw i64 %232, 1
  %234 = icmp sle i64 %231, %233
  br i1 %234, label %235, label %374

235:                                              ; preds = %230
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %236

236:                                              ; preds = %246, %235
  %237 = load i64, ptr %25, align 8, !tbaa !9
  %238 = load i64, ptr %14, align 8, !tbaa !9
  %239 = sub nsw i64 %238, 1
  %240 = icmp sle i64 %237, %239
  br i1 %240, label %241, label %249

241:                                              ; preds = %236
  %242 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %243 = load ptr, ptr %242, align 8, !tbaa !13
  %244 = load i64, ptr %25, align 8, !tbaa !9
  %245 = getelementptr inbounds i64, ptr %243, i64 %244
  store i64 0, ptr %245, align 8, !tbaa !9
  br label %246

246:                                              ; preds = %241
  %247 = load i64, ptr %25, align 8, !tbaa !9
  %248 = add nsw i64 %247, 1
  store i64 %248, ptr %25, align 8, !tbaa !9
  br label %236, !llvm.loop !19

249:                                              ; preds = %236
  %250 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %250, ptr %25, align 8, !tbaa !9
  br label %251

251:                                              ; preds = %367, %249
  %252 = load i64, ptr %25, align 8, !tbaa !9
  %253 = load i64, ptr %31, align 8, !tbaa !9
  %254 = sub nsw i64 %253, 1
  %255 = icmp sle i64 %252, %254
  br i1 %255, label %256, label %370

256:                                              ; preds = %251
  %257 = load ptr, ptr %12, align 8, !tbaa !5
  %258 = load i64, ptr %25, align 8, !tbaa !9
  %259 = load i64, ptr %14, align 8, !tbaa !9
  %260 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_implL12bdss_tieaddcEPNS_9ae_vectorES1_llS1_PNS_8ae_stateE(ptr noundef %257, ptr noundef %30, i64 noundef %258, i64 noundef %259, ptr noundef %35, ptr noundef %260)
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %261

261:                                              ; preds = %276, %256
  %262 = load i64, ptr %24, align 8, !tbaa !9
  %263 = load i64, ptr %14, align 8, !tbaa !9
  %264 = sub nsw i64 %263, 1
  %265 = icmp sle i64 %262, %264
  br i1 %265, label %266, label %279

266:                                              ; preds = %261
  %267 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %268 = load ptr, ptr %267, align 8, !tbaa !13
  %269 = load i64, ptr %24, align 8, !tbaa !9
  %270 = getelementptr inbounds i64, ptr %268, i64 %269
  %271 = load i64, ptr %270, align 8, !tbaa !9
  %272 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 4
  %273 = load ptr, ptr %272, align 8, !tbaa !13
  %274 = load i64, ptr %24, align 8, !tbaa !9
  %275 = getelementptr inbounds i64, ptr %273, i64 %274
  store i64 %271, ptr %275, align 8, !tbaa !9
  br label %276

276:                                              ; preds = %266
  %277 = load i64, ptr %24, align 8, !tbaa !9
  %278 = add nsw i64 %277, 1
  store i64 %278, ptr %24, align 8, !tbaa !9
  br label %261, !llvm.loop !20

279:                                              ; preds = %261
  %280 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %281 = load ptr, ptr %280, align 8, !tbaa !13
  %282 = load i64, ptr %39, align 8, !tbaa !9
  %283 = sub nsw i64 %282, 1
  %284 = getelementptr inbounds ptr, ptr %281, i64 %283
  %285 = load ptr, ptr %284, align 8, !tbaa !5
  %286 = load i64, ptr %25, align 8, !tbaa !9
  %287 = sub nsw i64 %286, 1
  %288 = getelementptr inbounds double, ptr %285, i64 %287
  %289 = load double, ptr %288, align 8, !tbaa !11
  %290 = load i64, ptr %14, align 8, !tbaa !9
  %291 = load ptr, ptr %20, align 8, !tbaa !5
  %292 = call noundef double @_ZN11alglib_implL10bdss_getcvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %36, i64 noundef %290, ptr noundef %291)
  %293 = fadd double %289, %292
  %294 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %295 = load ptr, ptr %294, align 8, !tbaa !13
  %296 = load i64, ptr %39, align 8, !tbaa !9
  %297 = getelementptr inbounds ptr, ptr %295, i64 %296
  %298 = load ptr, ptr %297, align 8, !tbaa !5
  %299 = load i64, ptr %25, align 8, !tbaa !9
  %300 = getelementptr inbounds double, ptr %298, i64 %299
  store double %293, ptr %300, align 8, !tbaa !11
  %301 = load i64, ptr %25, align 8, !tbaa !9
  %302 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %38, i32 0, i32 6
  %303 = load ptr, ptr %302, align 8, !tbaa !13
  %304 = load i64, ptr %39, align 8, !tbaa !9
  %305 = getelementptr inbounds ptr, ptr %303, i64 %304
  %306 = load ptr, ptr %305, align 8, !tbaa !5
  %307 = load i64, ptr %25, align 8, !tbaa !9
  %308 = getelementptr inbounds i64, ptr %306, i64 %307
  store i64 %301, ptr %308, align 8, !tbaa !9
  %309 = load i64, ptr %39, align 8, !tbaa !9
  %310 = add nsw i64 %309, 1
  store i64 %310, ptr %26, align 8, !tbaa !9
  br label %311

311:                                              ; preds = %363, %279
  %312 = load i64, ptr %26, align 8, !tbaa !9
  %313 = load i64, ptr %25, align 8, !tbaa !9
  %314 = icmp sle i64 %312, %313
  br i1 %314, label %315, label %366

315:                                              ; preds = %311
  %316 = load ptr, ptr %12, align 8, !tbaa !5
  %317 = load i64, ptr %26, align 8, !tbaa !9
  %318 = sub nsw i64 %317, 1
  %319 = load i64, ptr %14, align 8, !tbaa !9
  %320 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_implL12bdss_tiesubcEPNS_9ae_vectorES1_llS1_PNS_8ae_stateE(ptr noundef %316, ptr noundef %30, i64 noundef %318, i64 noundef %319, ptr noundef %36, ptr noundef %320)
  %321 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %322 = load ptr, ptr %321, align 8, !tbaa !13
  %323 = load i64, ptr %39, align 8, !tbaa !9
  %324 = sub nsw i64 %323, 1
  %325 = getelementptr inbounds ptr, ptr %322, i64 %324
  %326 = load ptr, ptr %325, align 8, !tbaa !5
  %327 = load i64, ptr %26, align 8, !tbaa !9
  %328 = sub nsw i64 %327, 1
  %329 = getelementptr inbounds double, ptr %326, i64 %328
  %330 = load double, ptr %329, align 8, !tbaa !11
  %331 = load i64, ptr %14, align 8, !tbaa !9
  %332 = load ptr, ptr %20, align 8, !tbaa !5
  %333 = call noundef double @_ZN11alglib_implL10bdss_getcvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %36, i64 noundef %331, ptr noundef %332)
  %334 = fadd double %330, %333
  store double %334, ptr %34, align 8, !tbaa !11
  %335 = load double, ptr %34, align 8, !tbaa !11
  %336 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %337 = load ptr, ptr %336, align 8, !tbaa !13
  %338 = load i64, ptr %39, align 8, !tbaa !9
  %339 = getelementptr inbounds ptr, ptr %337, i64 %338
  %340 = load ptr, ptr %339, align 8, !tbaa !5
  %341 = load i64, ptr %25, align 8, !tbaa !9
  %342 = getelementptr inbounds double, ptr %340, i64 %341
  %343 = load double, ptr %342, align 8, !tbaa !11
  %344 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %335, double noundef %343)
  br i1 %344, label %345, label %362

345:                                              ; preds = %315
  %346 = load double, ptr %34, align 8, !tbaa !11
  %347 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %348 = load ptr, ptr %347, align 8, !tbaa !13
  %349 = load i64, ptr %39, align 8, !tbaa !9
  %350 = getelementptr inbounds ptr, ptr %348, i64 %349
  %351 = load ptr, ptr %350, align 8, !tbaa !5
  %352 = load i64, ptr %25, align 8, !tbaa !9
  %353 = getelementptr inbounds double, ptr %351, i64 %352
  store double %346, ptr %353, align 8, !tbaa !11
  %354 = load i64, ptr %26, align 8, !tbaa !9
  %355 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %38, i32 0, i32 6
  %356 = load ptr, ptr %355, align 8, !tbaa !13
  %357 = load i64, ptr %39, align 8, !tbaa !9
  %358 = getelementptr inbounds ptr, ptr %356, i64 %357
  %359 = load ptr, ptr %358, align 8, !tbaa !5
  %360 = load i64, ptr %25, align 8, !tbaa !9
  %361 = getelementptr inbounds i64, ptr %359, i64 %360
  store i64 %354, ptr %361, align 8, !tbaa !9
  br label %362

362:                                              ; preds = %345, %315
  br label %363

363:                                              ; preds = %362
  %364 = load i64, ptr %26, align 8, !tbaa !9
  %365 = add nsw i64 %364, 1
  store i64 %365, ptr %26, align 8, !tbaa !9
  br label %311, !llvm.loop !21

366:                                              ; preds = %311
  br label %367

367:                                              ; preds = %366
  %368 = load i64, ptr %25, align 8, !tbaa !9
  %369 = add nsw i64 %368, 1
  store i64 %369, ptr %25, align 8, !tbaa !9
  br label %251, !llvm.loop !22

370:                                              ; preds = %251
  br label %371

371:                                              ; preds = %370
  %372 = load i64, ptr %39, align 8, !tbaa !9
  %373 = add nsw i64 %372, 1
  store i64 %373, ptr %39, align 8, !tbaa !9
  br label %230, !llvm.loop !23

374:                                              ; preds = %230
  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 %375

375:                                              ; preds = %404, %374
  %376 = load i64, ptr %39, align 8, !tbaa !9
  %377 = load i64, ptr %15, align 8, !tbaa !9
  %378 = sub nsw i64 %377, 1
  %379 = icmp sle i64 %376, %378
  br i1 %379, label %380, label %407

380:                                              ; preds = %375
  %381 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %382 = load ptr, ptr %381, align 8, !tbaa !13
  %383 = load i64, ptr %39, align 8, !tbaa !9
  %384 = getelementptr inbounds ptr, ptr %382, i64 %383
  %385 = load ptr, ptr %384, align 8, !tbaa !5
  %386 = load i64, ptr %31, align 8, !tbaa !9
  %387 = sub nsw i64 %386, 1
  %388 = getelementptr inbounds double, ptr %385, i64 %387
  %389 = load double, ptr %388, align 8, !tbaa !11
  %390 = load double, ptr %41, align 8, !tbaa !11
  %391 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %389, double noundef %390)
  br i1 %391, label %392, label %403

392:                                              ; preds = %380
  %393 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %394 = load ptr, ptr %393, align 8, !tbaa !13
  %395 = load i64, ptr %39, align 8, !tbaa !9
  %396 = getelementptr inbounds ptr, ptr %394, i64 %395
  %397 = load ptr, ptr %396, align 8, !tbaa !5
  %398 = load i64, ptr %31, align 8, !tbaa !9
  %399 = sub nsw i64 %398, 1
  %400 = getelementptr inbounds double, ptr %397, i64 %399
  %401 = load double, ptr %400, align 8, !tbaa !11
  store double %401, ptr %41, align 8, !tbaa !11
  %402 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %402, ptr %40, align 8, !tbaa !9
  br label %403

403:                                              ; preds = %392, %380
  br label %404

404:                                              ; preds = %403
  %405 = load i64, ptr %39, align 8, !tbaa !9
  %406 = add nsw i64 %405, 1
  store i64 %406, ptr %39, align 8, !tbaa !9
  br label %375, !llvm.loop !24

407:                                              ; preds = %375
  %408 = load i64, ptr %40, align 8, !tbaa !9
  %409 = icmp sge i64 %408, 0
  %410 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %409, ptr noundef @.str.94, ptr noundef %410)
  %411 = load i64, ptr %40, align 8, !tbaa !9
  %412 = icmp eq i64 %411, 0
  br i1 %412, label %413, label %558

413:                                              ; preds = %407
  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 %414

414:                                              ; preds = %449, %413
  %415 = load i64, ptr %24, align 8, !tbaa !9
  %416 = load i64, ptr %31, align 8, !tbaa !9
  %417 = sub nsw i64 %416, 1
  %418 = icmp sle i64 %415, %417
  br i1 %418, label %419, label %452

419:                                              ; preds = %414
  %420 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %421 = load ptr, ptr %420, align 8, !tbaa !13
  %422 = load i64, ptr %24, align 8, !tbaa !9
  %423 = getelementptr inbounds i64, ptr %421, i64 %422
  %424 = load i64, ptr %423, align 8, !tbaa !9
  %425 = sitofp i64 %424 to double
  %426 = load i64, ptr %13, align 8, !tbaa !9
  %427 = sub nsw i64 %426, 1
  %428 = sitofp i64 %427 to double
  %429 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %428, double %425)
  %430 = load ptr, ptr %20, align 8, !tbaa !5
  %431 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %429, ptr noundef %430)
  %432 = load double, ptr %29, align 8, !tbaa !11
  %433 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %431, double noundef %432)
  br i1 %433, label %434, label %448

434:                                              ; preds = %419
  %435 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %436 = load ptr, ptr %435, align 8, !tbaa !13
  %437 = load i64, ptr %24, align 8, !tbaa !9
  %438 = getelementptr inbounds i64, ptr %436, i64 %437
  %439 = load i64, ptr %438, align 8, !tbaa !9
  %440 = sitofp i64 %439 to double
  %441 = load i64, ptr %13, align 8, !tbaa !9
  %442 = sub nsw i64 %441, 1
  %443 = sitofp i64 %442 to double
  %444 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %443, double %440)
  %445 = load ptr, ptr %20, align 8, !tbaa !5
  %446 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %444, ptr noundef %445)
  store double %446, ptr %29, align 8, !tbaa !11
  %447 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %447, ptr %25, align 8, !tbaa !9
  br label %448

448:                                              ; preds = %434, %419
  br label %449

449:                                              ; preds = %448
  %450 = load i64, ptr %24, align 8, !tbaa !9
  %451 = add nsw i64 %450, 1
  store i64 %451, ptr %24, align 8, !tbaa !9
  br label %414, !llvm.loop !25

452:                                              ; preds = %414
  %453 = load i64, ptr %25, align 8, !tbaa !9
  %454 = icmp sgt i64 %453, 0
  %455 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %454, ptr noundef @.str.95, ptr noundef %455)
  %456 = load ptr, ptr %17, align 8, !tbaa !5
  %457 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %456, i64 noundef 1, ptr noundef %457)
  %458 = load ptr, ptr %11, align 8, !tbaa !5
  %459 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %458, i32 0, i32 4
  %460 = load ptr, ptr %459, align 8, !tbaa !13
  %461 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %462 = load ptr, ptr %461, align 8, !tbaa !13
  %463 = load i64, ptr %25, align 8, !tbaa !9
  %464 = sub nsw i64 %463, 1
  %465 = getelementptr inbounds i64, ptr %462, i64 %464
  %466 = load i64, ptr %465, align 8, !tbaa !9
  %467 = getelementptr inbounds double, ptr %460, i64 %466
  %468 = load double, ptr %467, align 8, !tbaa !11
  %469 = load ptr, ptr %11, 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 %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %473 = load ptr, ptr %472, align 8, !tbaa !13
  %474 = load i64, ptr %25, align 8, !tbaa !9
  %475 = getelementptr inbounds i64, ptr %473, i64 %474
  %476 = load i64, ptr %475, align 8, !tbaa !9
  %477 = getelementptr inbounds double, ptr %471, i64 %476
  %478 = load double, ptr %477, align 8, !tbaa !11
  %479 = fadd double %468, %478
  %480 = fmul double 5.000000e-01, %479
  %481 = load ptr, ptr %17, align 8, !tbaa !5
  %482 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %481, i32 0, i32 4
  %483 = load ptr, ptr %482, align 8, !tbaa !13
  %484 = getelementptr inbounds double, ptr %483, i64 0
  store double %480, ptr %484, align 8, !tbaa !11
  %485 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 2, ptr %485, align 8, !tbaa !9
  %486 = load ptr, ptr %19, align 8, !tbaa !5
  store double 0.000000e+00, ptr %486, align 8, !tbaa !11
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %487

487:                                              ; preds = %497, %452
  %488 = load i64, ptr %24, align 8, !tbaa !9
  %489 = load i64, ptr %14, align 8, !tbaa !9
  %490 = sub nsw i64 %489, 1
  %491 = icmp sle i64 %488, %490
  br i1 %491, label %492, label %500

492:                                              ; preds = %487
  %493 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %494 = load ptr, ptr %493, align 8, !tbaa !13
  %495 = load i64, ptr %24, align 8, !tbaa !9
  %496 = getelementptr inbounds i64, ptr %494, i64 %495
  store i64 0, ptr %496, align 8, !tbaa !9
  br label %497

497:                                              ; preds = %492
  %498 = load i64, ptr %24, align 8, !tbaa !9
  %499 = add nsw i64 %498, 1
  store i64 %499, ptr %24, align 8, !tbaa !9
  br label %487, !llvm.loop !26

500:                                              ; preds = %487
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %501

501:                                              ; preds = %511, %500
  %502 = load i64, ptr %24, align 8, !tbaa !9
  %503 = load i64, ptr %25, align 8, !tbaa !9
  %504 = sub nsw i64 %503, 1
  %505 = icmp sle i64 %502, %504
  br i1 %505, label %506, label %514

506:                                              ; preds = %501
  %507 = load ptr, ptr %12, align 8, !tbaa !5
  %508 = load i64, ptr %24, align 8, !tbaa !9
  %509 = load i64, ptr %14, align 8, !tbaa !9
  %510 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_implL12bdss_tieaddcEPNS_9ae_vectorES1_llS1_PNS_8ae_stateE(ptr noundef %507, ptr noundef %30, i64 noundef %508, i64 noundef %509, ptr noundef %35, ptr noundef %510)
  br label %511

511:                                              ; preds = %506
  %512 = load i64, ptr %24, align 8, !tbaa !9
  %513 = add nsw i64 %512, 1
  store i64 %513, ptr %24, align 8, !tbaa !9
  br label %501, !llvm.loop !27

514:                                              ; preds = %501
  %515 = load ptr, ptr %19, align 8, !tbaa !5
  %516 = load double, ptr %515, align 8, !tbaa !11
  %517 = load i64, ptr %14, align 8, !tbaa !9
  %518 = load ptr, ptr %20, align 8, !tbaa !5
  %519 = call noundef double @_ZN11alglib_implL10bdss_getcvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %35, i64 noundef %517, ptr noundef %518)
  %520 = fadd double %516, %519
  %521 = load ptr, ptr %19, align 8, !tbaa !5
  store double %520, ptr %521, align 8, !tbaa !11
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %522

522:                                              ; preds = %532, %514
  %523 = load i64, ptr %24, align 8, !tbaa !9
  %524 = load i64, ptr %14, align 8, !tbaa !9
  %525 = sub nsw i64 %524, 1
  %526 = icmp sle i64 %523, %525
  br i1 %526, label %527, label %535

527:                                              ; preds = %522
  %528 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %529 = load ptr, ptr %528, align 8, !tbaa !13
  %530 = load i64, ptr %24, align 8, !tbaa !9
  %531 = getelementptr inbounds i64, ptr %529, i64 %530
  store i64 0, ptr %531, align 8, !tbaa !9
  br label %532

532:                                              ; preds = %527
  %533 = load i64, ptr %24, align 8, !tbaa !9
  %534 = add nsw i64 %533, 1
  store i64 %534, ptr %24, align 8, !tbaa !9
  br label %522, !llvm.loop !28

535:                                              ; preds = %522
  %536 = load i64, ptr %25, align 8, !tbaa !9
  store i64 %536, ptr %24, align 8, !tbaa !9
  br label %537

537:                                              ; preds = %547, %535
  %538 = load i64, ptr %24, align 8, !tbaa !9
  %539 = load i64, ptr %31, align 8, !tbaa !9
  %540 = sub nsw i64 %539, 1
  %541 = icmp sle i64 %538, %540
  br i1 %541, label %542, label %550

542:                                              ; preds = %537
  %543 = load ptr, ptr %12, align 8, !tbaa !5
  %544 = load i64, ptr %24, align 8, !tbaa !9
  %545 = load i64, ptr %14, align 8, !tbaa !9
  %546 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_implL12bdss_tieaddcEPNS_9ae_vectorES1_llS1_PNS_8ae_stateE(ptr noundef %543, ptr noundef %30, i64 noundef %544, i64 noundef %545, ptr noundef %35, ptr noundef %546)
  br label %547

547:                                              ; preds = %542
  %548 = load i64, ptr %24, align 8, !tbaa !9
  %549 = add nsw i64 %548, 1
  store i64 %549, ptr %24, align 8, !tbaa !9
  br label %537, !llvm.loop !29

550:                                              ; preds = %537
  %551 = load ptr, ptr %19, align 8, !tbaa !5
  %552 = load double, ptr %551, align 8, !tbaa !11
  %553 = load i64, ptr %14, align 8, !tbaa !9
  %554 = load ptr, ptr %20, align 8, !tbaa !5
  %555 = call noundef double @_ZN11alglib_implL10bdss_getcvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %35, i64 noundef %553, ptr noundef %554)
  %556 = fadd double %552, %555
  %557 = load ptr, ptr %19, align 8, !tbaa !5
  store double %556, ptr %557, align 8, !tbaa !11
  br label %639

558:                                              ; preds = %407
  %559 = load ptr, ptr %17, align 8, !tbaa !5
  %560 = load i64, ptr %40, align 8, !tbaa !9
  %561 = sub nsw i64 %560, 1
  %562 = add nsw i64 %561, 1
  %563 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %559, i64 noundef %562, ptr noundef %563)
  %564 = load i64, ptr %40, align 8, !tbaa !9
  %565 = add nsw i64 %564, 1
  %566 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 %565, ptr %566, align 8, !tbaa !9
  %567 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %568 = load ptr, ptr %567, align 8, !tbaa !13
  %569 = load i64, ptr %40, align 8, !tbaa !9
  %570 = getelementptr inbounds ptr, ptr %568, i64 %569
  %571 = load ptr, ptr %570, align 8, !tbaa !5
  %572 = load i64, ptr %31, align 8, !tbaa !9
  %573 = sub nsw i64 %572, 1
  %574 = getelementptr inbounds double, ptr %571, i64 %573
  %575 = load double, ptr %574, align 8, !tbaa !11
  %576 = load ptr, ptr %19, align 8, !tbaa !5
  store double %575, ptr %576, align 8, !tbaa !11
  %577 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %38, i32 0, i32 6
  %578 = load ptr, ptr %577, align 8, !tbaa !13
  %579 = load i64, ptr %40, align 8, !tbaa !9
  %580 = getelementptr inbounds ptr, ptr %578, i64 %579
  %581 = load ptr, ptr %580, align 8, !tbaa !5
  %582 = load i64, ptr %31, align 8, !tbaa !9
  %583 = sub nsw i64 %582, 1
  %584 = getelementptr inbounds i64, ptr %581, i64 %583
  %585 = load i64, ptr %584, align 8, !tbaa !9
  store i64 %585, ptr %27, align 8, !tbaa !9
  %586 = load i64, ptr %31, align 8, !tbaa !9
  %587 = sub nsw i64 %586, 1
  store i64 %587, ptr %28, align 8, !tbaa !9
  %588 = load i64, ptr %40, align 8, !tbaa !9
  store i64 %588, ptr %39, align 8, !tbaa !9
  br label %589

589:                                              ; preds = %634, %558
  %590 = load i64, ptr %39, align 8, !tbaa !9
  %591 = icmp sge i64 %590, 1
  br i1 %591, label %592, label %637

592:                                              ; preds = %589
  %593 = load ptr, ptr %11, align 8, !tbaa !5
  %594 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %593, i32 0, i32 4
  %595 = load ptr, ptr %594, align 8, !tbaa !13
  %596 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %597 = load ptr, ptr %596, align 8, !tbaa !13
  %598 = load i64, ptr %27, align 8, !tbaa !9
  %599 = sub nsw i64 %598, 1
  %600 = getelementptr inbounds i64, ptr %597, i64 %599
  %601 = load i64, ptr %600, align 8, !tbaa !9
  %602 = getelementptr inbounds double, ptr %595, i64 %601
  %603 = load double, ptr %602, align 8, !tbaa !11
  %604 = load ptr, ptr %11, align 8, !tbaa !5
  %605 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %604, i32 0, i32 4
  %606 = load ptr, ptr %605, align 8, !tbaa !13
  %607 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %608 = load ptr, ptr %607, align 8, !tbaa !13
  %609 = load i64, ptr %27, align 8, !tbaa !9
  %610 = getelementptr inbounds i64, ptr %608, i64 %609
  %611 = load i64, ptr %610, align 8, !tbaa !9
  %612 = getelementptr inbounds double, ptr %606, i64 %611
  %613 = load double, ptr %612, align 8, !tbaa !11
  %614 = fadd double %603, %613
  %615 = fmul double 5.000000e-01, %614
  %616 = load ptr, ptr %17, align 8, !tbaa !5
  %617 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %616, i32 0, i32 4
  %618 = load ptr, ptr %617, align 8, !tbaa !13
  %619 = load i64, ptr %39, align 8, !tbaa !9
  %620 = sub nsw i64 %619, 1
  %621 = getelementptr inbounds double, ptr %618, i64 %620
  store double %615, ptr %621, align 8, !tbaa !11
  %622 = load i64, ptr %27, align 8, !tbaa !9
  %623 = sub nsw i64 %622, 1
  store i64 %623, ptr %28, align 8, !tbaa !9
  %624 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %38, i32 0, i32 6
  %625 = load ptr, ptr %624, align 8, !tbaa !13
  %626 = load i64, ptr %39, align 8, !tbaa !9
  %627 = sub nsw i64 %626, 1
  %628 = getelementptr inbounds ptr, ptr %625, i64 %627
  %629 = load ptr, ptr %628, align 8, !tbaa !5
  %630 = load i64, ptr %27, align 8, !tbaa !9
  %631 = sub nsw i64 %630, 1
  %632 = getelementptr inbounds i64, ptr %629, i64 %631
  %633 = load i64, ptr %632, align 8, !tbaa !9
  store i64 %633, ptr %27, align 8, !tbaa !9
  br label %634

634:                                              ; preds = %592
  %635 = load i64, ptr %39, align 8, !tbaa !9
  %636 = add nsw i64 %635, -1
  store i64 %636, ptr %39, align 8, !tbaa !9
  br label %589, !llvm.loop !30

637:                                              ; preds = %589
  %638 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl8touchintEPlPNS_8ae_stateE(ptr noundef %28, ptr noundef %638)
  br label %639

639:                                              ; preds = %637, %550
  %640 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %640)
  store i32 0, ptr %42, align 4
  br label %641

641:                                              ; preds = %639, %157, %93, %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
  %642 = load i32, ptr %42, align 4
  switch i32 %642, label %644 [
    i32 0, label %643
    i32 1, label %643
  ]

643:                                              ; preds = %641, %641
  ret void

644:                                              ; preds = %641
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL12bdss_tiesubcEPNS_9ae_vectorES1_llS1_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.94 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.95 = 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_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) 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

; 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_vectorES1_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_tieaddcEPNS_9ae_vectorES1_llS1_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_getcvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15dsoptimalsplitkEPNS_9ae_vectorES1_lllPlS1_S2_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_vectorES1_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_vectorES1_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 %.preheader258

.preheader258:                                    ; 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 %.0220260, 1
  %exitcond.not = icmp eq i64 %30, %2
  br i1 %exitcond.not, label %35, label %31, !llvm.loop !12

31:                                               ; preds = %.preheader258, %29
  %.0220260 = phi i64 [ 0, %.preheader258 ], [ %30, %29 ]
  %32 = getelementptr inbounds i64, ptr %27, i64 %.0220260
  %33 = load i64, ptr %32, align 8, !tbaa !5
  %or.cond250 = icmp ult i64 %33, %3
  br i1 %or.cond250, 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.not235261 = icmp sgt i64 %2, 0
  br i1 %.not.not235261, 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
  %.1221262 = phi i64 [ 0, %.lr.ph ], [ %54, %53 ]
  %39 = load ptr, ptr %37, align 8, !tbaa !11
  %40 = getelementptr inbounds i64, ptr %39, i64 %.1221262
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %.not = icmp eq i64 %41, %.1221262
  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 %.1221262
  %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 %.1221262
  %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 %.1221262, 1
  %exitcond325.not = icmp eq i64 %54, %2
  br i1 %exitcond325.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.ph266

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

.lr.ph266:                                        ; 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 %.preheader257.unr-lcssa, label %.lr.ph266.new

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

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

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

.preheader257:                                    ; preds = %.epil.preheader, %.preheader257.unr-lcssa
  %66 = load i64, ptr %16, align 8, !tbaa !5
  %.not.not237267 = icmp sgt i64 %66, 0
  br i1 %.not.not237267, label %.lr.ph269, label %.preheader256

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

69:                                               ; preds = %69, %.lr.ph266.new
  %.0217264 = phi i64 [ 0, %.lr.ph266.new ], [ %81, %69 ]
  %niter = phi i64 [ 0, %.lr.ph266.new ], [ %niter.next.3, %69 ]
  %70 = load ptr, ptr %61, align 8, !tbaa !11
  %71 = getelementptr inbounds i64, ptr %70, i64 %.0217264
  store i64 0, ptr %71, align 8, !tbaa !5
  %72 = or disjoint i64 %.0217264, 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 %.0217264, 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 %.0217264, 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 %.0217264, 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 %.preheader257.unr-lcssa, label %69, !llvm.loop !17

.preheader256:                                    ; preds = %88, %.preheader257
  %.not.not238289 = icmp sgt i64 %58, 1
  br i1 %.not.not238289, label %.preheader255.lr.ph, label %.preheader253

.preheader255.lr.ph:                              ; preds = %.preheader256
  %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
  %xtraiter343 = and i64 %smax, 3
  %86 = icmp slt i64 %3, 4
  %unroll_iter346 = and i64 %smax, 9223372036854775804
  %lcmp.mod345.not = icmp eq i64 %xtraiter343, 0
  %xtraiter348 = and i64 %smax, 3
  %87 = icmp slt i64 %3, 4
  %unroll_iter351 = and i64 %smax, 9223372036854775804
  %lcmp.mod350.not = icmp eq i64 %xtraiter348, 0
  br label %.lr.ph272.preheader

88:                                               ; preds = %.lr.ph269, %88
  %.1218268 = phi i64 [ 0, %.lr.ph269 ], [ %96, %88 ]
  call void @_ZN11alglib_implL12bdss_tieaddcEPNS_9ae_vectorES1_llS1_PNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef nonnull %15, i64 noundef %.1218268, 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 %.1218268
  store i64 0, ptr %91, align 8, !tbaa !5
  %92 = call noundef double @_ZN11alglib_implL10bdss_getcvEPNS_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 %.1218268
  store double %92, ptr %95, align 8, !tbaa !9
  %96 = add nuw nsw i64 %.1218268, 1
  %97 = load i64, ptr %16, align 8, !tbaa !5
  %.not.not237 = icmp slt i64 %96, %97
  br i1 %.not.not237, label %88, label %.preheader256, !llvm.loop !20

.lr.ph272.preheader:                              ; preds = %._crit_edge288, %.preheader255.lr.ph
  %.0211290 = phi i64 [ 1, %.preheader255.lr.ph ], [ %186, %._crit_edge288 ]
  br i1 %86, label %.preheader254.unr-lcssa, label %.lr.ph272

.preheader253:                                    ; preds = %._crit_edge288, %.preheader256
  %.not.not239291 = icmp sgt i64 %58, 0
  br i1 %.not.not239291, label %.lr.ph295, label %._crit_edge296.thread

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

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

.preheader254.unr-lcssa:                          ; preds = %.lr.ph272, %.lr.ph272.preheader
  %.2219271.unr = phi i64 [ 0, %.lr.ph272.preheader ], [ %114, %.lr.ph272 ]
  br i1 %lcmp.mod345.not, label %.preheader254, label %.lr.ph272.epil

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

.preheader254:                                    ; preds = %.lr.ph272.epil, %.preheader254.unr-lcssa
  %.pre = load i64, ptr %16, align 8, !tbaa !5
  %.not.not246285 = icmp slt i64 %.0211290, %.pre
  br i1 %.not.not246285, label %.lr.ph287, label %._crit_edge288

.lr.ph287:                                        ; preds = %.preheader254
  %102 = add nsw i64 %.0211290, -1
  br label %.lr.ph276.preheader

.lr.ph272:                                        ; preds = %.lr.ph272.preheader, %.lr.ph272
  %.2219271 = phi i64 [ %114, %.lr.ph272 ], [ 0, %.lr.ph272.preheader ]
  %niter347 = phi i64 [ %niter347.next.3, %.lr.ph272 ], [ 0, %.lr.ph272.preheader ]
  %103 = load ptr, ptr %82, align 8, !tbaa !11
  %104 = getelementptr inbounds i64, ptr %103, i64 %.2219271
  store i64 0, ptr %104, align 8, !tbaa !5
  %105 = or disjoint i64 %.2219271, 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 %.2219271, 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 %.2219271, 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 %.2219271, 4
  %niter347.next.3 = add i64 %niter347, 4
  %niter347.ncmp.3 = icmp eq i64 %niter347.next.3, %unroll_iter346
  br i1 %niter347.ncmp.3, label %.preheader254.unr-lcssa, label %.lr.ph272, !llvm.loop !22

.lr.ph276.preheader:                              ; preds = %._crit_edge284, %.lr.ph287
  %.3286 = phi i64 [ %.0211290, %.lr.ph287 ], [ %184, %._crit_edge284 ]
  call void @_ZN11alglib_implL12bdss_tieaddcEPNS_9ae_vectorES1_llS1_PNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef nonnull %15, i64 noundef %.3286, i64 noundef %3, ptr noundef nonnull %19, ptr noundef %9)
  br i1 %87, label %._crit_edge277.unr-lcssa, label %.lr.ph276

.lr.ph276:                                        ; preds = %.lr.ph276.preheader, %.lr.ph276
  %.2222274 = phi i64 [ %138, %.lr.ph276 ], [ 0, %.lr.ph276.preheader ]
  %niter352 = phi i64 [ %niter352.next.3, %.lr.ph276 ], [ 0, %.lr.ph276.preheader ]
  %115 = load ptr, ptr %82, align 8, !tbaa !11
  %116 = getelementptr inbounds i64, ptr %115, i64 %.2222274
  %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 %.2222274
  store i64 %117, ptr %119, align 8, !tbaa !5
  %120 = or disjoint i64 %.2222274, 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 %.2222274, 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 %.2222274, 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 %.2222274, 4
  %niter352.next.3 = add i64 %niter352, 4
  %niter352.ncmp.3 = icmp eq i64 %niter352.next.3, %unroll_iter351
  br i1 %niter352.ncmp.3, label %._crit_edge277.unr-lcssa, label %.lr.ph276, !llvm.loop !23

._crit_edge277.unr-lcssa:                         ; preds = %.lr.ph276, %.lr.ph276.preheader
  %.2222274.unr = phi i64 [ 0, %.lr.ph276.preheader ], [ %138, %.lr.ph276 ]
  br i1 %lcmp.mod350.not, label %._crit_edge277, label %.lr.ph276.epil

.lr.ph276.epil:                                   ; preds = %._crit_edge277.unr-lcssa, %.lr.ph276.epil
  %.2222274.epil = phi i64 [ %144, %.lr.ph276.epil ], [ %.2222274.unr, %._crit_edge277.unr-lcssa ]
  %epil.iter349 = phi i64 [ %epil.iter349.next, %.lr.ph276.epil ], [ 0, %._crit_edge277.unr-lcssa ]
  %139 = load ptr, ptr %82, align 8, !tbaa !11
  %140 = getelementptr inbounds i64, ptr %139, i64 %.2222274.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 %.2222274.epil
  store i64 %141, ptr %143, align 8, !tbaa !5
  %144 = add nuw nsw i64 %.2222274.epil, 1
  %epil.iter349.next = add i64 %epil.iter349, 1
  %epil.iter349.cmp.not = icmp eq i64 %epil.iter349.next, %xtraiter348
  br i1 %epil.iter349.cmp.not, label %._crit_edge277, label %.lr.ph276.epil, !llvm.loop !24

._crit_edge277:                                   ; preds = %.lr.ph276.epil, %._crit_edge277.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 %.3286
  %149 = getelementptr i8, ptr %148, i64 -8
  %150 = load double, ptr %149, align 8, !tbaa !9
  %151 = call noundef double @_ZN11alglib_implL10bdss_getcvEPNS_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 %.0211290
  %155 = load ptr, ptr %154, align 8, !tbaa !18
  %156 = getelementptr inbounds double, ptr %155, i64 %.3286
  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 %.0211290
  %159 = load ptr, ptr %158, align 8, !tbaa !18
  %160 = getelementptr inbounds i64, ptr %159, i64 %.3286
  store i64 %.3286, ptr %160, align 8, !tbaa !5
  %.not.not248279 = icmp ult i64 %.0211290, %.3286
  br i1 %.not.not248279, label %.lr.ph283, label %._crit_edge284

.lr.ph283:                                        ; preds = %._crit_edge277, %183
  %.0216.in280 = phi i64 [ %.0216281, %183 ], [ %.0211290, %._crit_edge277 ]
  %.0216281 = add nuw i64 %.0216.in280, 1
  call void @_ZN11alglib_implL12bdss_tiesubcEPNS_9ae_vectorES1_llS1_PNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef nonnull %15, i64 noundef %.0216.in280, 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 %.0216.in280
  %165 = load double, ptr %164, align 8, !tbaa !9
  %166 = call noundef double @_ZN11alglib_implL10bdss_getcvEPNS_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 %.0211290
  %170 = load ptr, ptr %169, align 8, !tbaa !18
  %171 = getelementptr inbounds double, ptr %170, i64 %.3286
  %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.ph283
  %175 = load ptr, ptr %84, align 8, !tbaa !11
  %176 = getelementptr inbounds ptr, ptr %175, i64 %.0211290
  %177 = load ptr, ptr %176, align 8, !tbaa !18
  %178 = getelementptr inbounds double, ptr %177, i64 %.3286
  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 %.0211290
  %181 = load ptr, ptr %180, align 8, !tbaa !18
  %182 = getelementptr inbounds i64, ptr %181, i64 %.3286
  store i64 %.0216281, ptr %182, align 8, !tbaa !5
  br label %183

183:                                              ; preds = %.lr.ph283, %174
  %exitcond331.not = icmp eq i64 %.0216281, %.3286
  br i1 %exitcond331.not, label %._crit_edge284, label %.lr.ph283, !llvm.loop !25

._crit_edge284:                                   ; preds = %183, %._crit_edge277
  %184 = add nuw nsw i64 %.3286, 1
  %185 = load i64, ptr %16, align 8, !tbaa !5
  %.not.not246 = icmp slt i64 %184, %185
  br i1 %.not.not246, label %.lr.ph276.preheader, label %._crit_edge288, !llvm.loop !26

._crit_edge288:                                   ; preds = %._crit_edge284, %.preheader254
  %186 = add nuw nsw i64 %.0211290, 1
  %exitcond332.not = icmp eq i64 %186, %58
  br i1 %exitcond332.not, label %.preheader253, label %.lr.ph272.preheader, !llvm.loop !27

187:                                              ; preds = %.lr.ph295, %204
  %.0294 = phi double [ 1.000000e+300, %.lr.ph295 ], [ %.1, %204 ]
  %.0209293 = phi i64 [ -1, %.lr.ph295 ], [ %.1210, %204 ]
  %.1212292 = phi i64 [ 0, %.lr.ph295 ], [ %205, %204 ]
  %188 = load ptr, ptr %98, align 8, !tbaa !11
  %189 = getelementptr inbounds ptr, ptr %188, i64 %.1212292
  %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 %.0294)
  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 %.1212292
  %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
  %.1210 = phi i64 [ %.1212292, %196 ], [ %.0209293, %187 ]
  %.1 = phi double [ %203, %196 ], [ %.0294, %187 ]
  %205 = add nuw nsw i64 %.1212292, 1
  %exitcond333.not = icmp eq i64 %205, %58
  br i1 %exitcond333.not, label %._crit_edge296, label %187, !llvm.loop !28

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

.preheader252:                                    ; preds = %._crit_edge296
  %208 = load i64, ptr %16, align 8, !tbaa !5
  %.not.not240302 = icmp sgt i64 %208, 1
  br i1 %.not.not240302, label %.lr.ph306, label %.lr.ph312

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

211:                                              ; preds = %.lr.ph306, %226
  %.0213305 = phi double [ 1.000000e+300, %.lr.ph306 ], [ %.1214, %226 ]
  %.4304 = phi i64 [ -1, %.lr.ph306 ], [ %.5, %226 ]
  %.3223303 = phi i64 [ 1, %.lr.ph306 ], [ %227, %226 ]
  %212 = load ptr, ptr %209, align 8, !tbaa !11
  %213 = getelementptr inbounds i64, ptr %212, i64 %.3223303
  %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 %.0213305)
  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 %.3223303
  %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 [ %.3223303, %219 ], [ %.4304, %211 ]
  %.1214 = phi double [ %225, %219 ], [ %.0213305, %211 ]
  %227 = add nuw nsw i64 %.3223303, 1
  %228 = load i64, ptr %16, align 8, !tbaa !5
  %.not.not240 = icmp slt i64 %227, %228
  br i1 %.not.not240, label %211, label %.lr.ph312, !llvm.loop !29

.lr.ph312:                                        ; preds = %226, %.preheader252
  %.4.lcssa = phi i64 [ -1, %.preheader252 ], [ %.5, %226 ]
  %229 = icmp sgt i64 %.4.lcssa, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %229, ptr noundef nonnull @.str.95, 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
  %xtraiter354 = and i64 %smax, 3
  %247 = icmp slt i64 %3, 4
  br i1 %247, label %.preheader251.unr-lcssa, label %.lr.ph312.new

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

.preheader251.unr-lcssa:                          ; preds = %251, %.lr.ph312
  %.4224310.unr = phi i64 [ 0, %.lr.ph312 ], [ %263, %251 ]
  %lcmp.mod356.not = icmp eq i64 %xtraiter354, 0
  br i1 %lcmp.mod356.not, label %.preheader251, label %.epil.preheader353

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

.preheader251:                                    ; preds = %.epil.preheader353, %.preheader251.unr-lcssa
  br i1 %229, label %.lr.ph315, label %.lr.ph320

251:                                              ; preds = %251, %.lr.ph312.new
  %.4224310 = phi i64 [ 0, %.lr.ph312.new ], [ %263, %251 ]
  %niter358 = phi i64 [ 0, %.lr.ph312.new ], [ %niter358.next.3, %251 ]
  %252 = load ptr, ptr %246, align 8, !tbaa !11
  %253 = getelementptr inbounds i64, ptr %252, i64 %.4224310
  store i64 0, ptr %253, align 8, !tbaa !5
  %254 = or disjoint i64 %.4224310, 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 %.4224310, 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 %.4224310, 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 %.4224310, 4
  %niter358.next.3 = add i64 %niter358, 4
  %niter358.ncmp.3 = icmp eq i64 %niter358.next.3, %unroll_iter357
  br i1 %niter358.ncmp.3, label %.preheader251.unr-lcssa, label %251, !llvm.loop !31

.lr.ph315:                                        ; preds = %.preheader251, %.lr.ph315
  %.5225314 = phi i64 [ %264, %.lr.ph315 ], [ 0, %.preheader251 ]
  call void @_ZN11alglib_implL12bdss_tieaddcEPNS_9ae_vectorES1_llS1_PNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef nonnull %15, i64 noundef %.5225314, i64 noundef %3, ptr noundef nonnull %19, ptr noundef %9)
  %264 = add nuw nsw i64 %.5225314, 1
  %exitcond336.not = icmp eq i64 %264, %.4.lcssa
  br i1 %exitcond336.not, label %._crit_edge316.loopexit, label %.lr.ph315, !llvm.loop !32

._crit_edge316.loopexit:                          ; preds = %.lr.ph315
  %.pre339 = load double, ptr %8, align 8, !tbaa !9
  br label %.lr.ph320

.lr.ph320:                                        ; preds = %.preheader251, %._crit_edge316.loopexit
  %265 = phi double [ %.pre339, %._crit_edge316.loopexit ], [ 0.000000e+00, %.preheader251 ]
  %266 = call noundef double @_ZN11alglib_implL10bdss_getcvEPNS_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
  %xtraiter360 = and i64 %smax, 3
  %269 = icmp slt i64 %3, 4
  br i1 %269, label %.preheader.unr-lcssa, label %.lr.ph320.new

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

.preheader.unr-lcssa:                             ; preds = %274, %.lr.ph320
  %.6318.unr = phi i64 [ 0, %.lr.ph320 ], [ %286, %274 ]
  %lcmp.mod362.not = icmp eq i64 %xtraiter360, 0
  br i1 %lcmp.mod362.not, label %.preheader, label %.epil.preheader359

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

.preheader:                                       ; preds = %.epil.preheader359, %.preheader.unr-lcssa
  %273 = load i64, ptr %16, align 8, !tbaa !5
  %.not.not244321 = icmp slt i64 %.4.lcssa, %273
  br i1 %.not.not244321, label %.lr.ph323, label %._crit_edge324

274:                                              ; preds = %274, %.lr.ph320.new
  %.6318 = phi i64 [ 0, %.lr.ph320.new ], [ %286, %274 ]
  %niter364 = phi i64 [ 0, %.lr.ph320.new ], [ %niter364.next.3, %274 ]
  %275 = load ptr, ptr %268, align 8, !tbaa !11
  %276 = getelementptr inbounds i64, ptr %275, i64 %.6318
  store i64 0, ptr %276, align 8, !tbaa !5
  %277 = or disjoint i64 %.6318, 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 %.6318, 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 %.6318, 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 %.6318, 4
  %niter364.next.3 = add i64 %niter364, 4
  %niter364.ncmp.3 = icmp eq i64 %niter364.next.3, %unroll_iter363
  br i1 %niter364.ncmp.3, label %.preheader.unr-lcssa, label %274, !llvm.loop !34

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

._crit_edge324.loopexit:                          ; preds = %.lr.ph323
  %.pre340 = load double, ptr %8, align 8, !tbaa !9
  br label %._crit_edge324

._crit_edge324:                                   ; preds = %._crit_edge324.loopexit, %.preheader
  %289 = phi double [ %.pre340, %._crit_edge324.loopexit ], [ %267, %.preheader ]
  %290 = call noundef double @_ZN11alglib_implL10bdss_getcvEPNS_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_edge296.thread, %._crit_edge296
  %.0209.lcssa342 = phi i64 [ -1, %._crit_edge296.thread ], [ %.1210, %._crit_edge296 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %6, i64 noundef %.0209.lcssa342, ptr noundef %9)
  %293 = add nsw i64 %.0209.lcssa342, 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 %.0209.lcssa342
  %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 %.0209.lcssa342
  %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 %.0209.lcssa342, 0
  br i1 %309, label %.lr.ph300, label %._crit_edge301

.lr.ph300:                                        ; 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.ph300, %313
  %.2298 = phi i64 [ %.0209.lcssa342, %.lr.ph300 ], [ %328, %313 ]
  %.0215297 = phi i64 [ %308, %.lr.ph300 ], [ %334, %313 ]
  %314 = load ptr, ptr %310, align 8, !tbaa !11
  %315 = load ptr, ptr %311, align 8, !tbaa !11
  %316 = add nsw i64 %.0215297, -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 %.0215297
  %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 %.2298, -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 %.2298, 1
  br i1 %335, label %313, label %._crit_edge301, !llvm.loop !36

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

336:                                              ; preds = %._crit_edge324, %._crit_edge301, %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_tiesubcEPNS_9ae_vectorES1_llS1_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