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

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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::minlbfgsreport" = type { i64, i64, i64 }
%"struct.alglib_impl::minlbfgsstate" = type { i64, i64, double, double, double, i64, i8, double, %"struct.alglib_impl::ae_vector", double, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::ae_vector", i64, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, %"struct.alglib_impl::precbuflbfgs", %"struct.alglib_impl::precbuflowrank", double, double, double, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i8, %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i64, %"struct.alglib_impl::ae_vector", double, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", double, %"struct.alglib_impl::rcommstate", i64, i64, i64, %"struct.alglib_impl::linminstate", i64, %"struct.alglib_impl::smoothnessmonitor", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::precbuflbfgs" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::precbuflowrank" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::linminstate" = type { i8, i8, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"struct.alglib_impl::smoothnessmonitor" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rcommstate", i8, i8, i64, i64, double, double, i8, %"struct.alglib_impl::optguardreport", double, double, %"struct.alglib_impl::optguardnonc0report", %"struct.alglib_impl::optguardnonc0report", double, double, %"struct.alglib_impl::optguardnonc1test0report", %"struct.alglib_impl::optguardnonc1test0report", double, double, %"struct.alglib_impl::optguardnonc1test1report", %"struct.alglib_impl::optguardnonc1test1report", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardreport" = type { i8, i8, i64, double, i8, i8, i8, i64, double, i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardnonc0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test1report" = type { i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64 }
%"struct.alglib_impl::matinvreport" = type { i64, double, double }
%"struct.alglib_impl::densesolverreport" = type { i64, double, double }
%"struct.alglib_impl::mlpreport" = type { double, double, double, double, double, i64, i64, i64 }
%"struct.alglib_impl::multilayerperceptron" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::modelerrors", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool" }
%"struct.alglib_impl::modelerrors" = type { double, double, double, double, double }
%"struct.alglib_impl::ae_shared_pool" = type { %"struct.alglib_impl::ae_lock", ptr, ptr, ptr, ptr, i64, ptr, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }

@_ZN11alglib_implL17mlptrain_mindecayE = external hidden global double, align 8

; 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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef, ptr noundef) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPKNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl8mlperrorEPNS_20multilayerperceptronEPKNS_9ae_matrixElPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl10mlptrainlmEPNS_20multilayerperceptronEPKNS_9ae_matrixEldlPlPNS_9mlpreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, double noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.alglib_impl::ae_frame", align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca double, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca %"struct.alglib_impl::ae_vector", align 8
  %30 = alloca %"struct.alglib_impl::ae_vector", align 8
  %31 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %32 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %33 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %34 = alloca i8, align 1
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca %"struct.alglib_impl::minlbfgsreport", align 8
  %40 = alloca %"struct.alglib_impl::minlbfgsstate", align 8
  %41 = alloca %"struct.alglib_impl::ae_vector", align 8
  %42 = alloca %"struct.alglib_impl::ae_vector", align 8
  %43 = alloca %"struct.alglib_impl::ae_vector", align 8
  %44 = alloca %"struct.alglib_impl::ae_vector", align 8
  %45 = alloca %"struct.alglib_impl::ae_vector", align 8
  %46 = alloca %"struct.alglib_impl::ae_vector", align 8
  %47 = alloca i64, align 8
  %48 = alloca %"struct.alglib_impl::ae_vector", align 8
  %49 = alloca double, align 8
  %50 = alloca %"struct.alglib_impl::matinvreport", align 8
  %51 = alloca %"struct.alglib_impl::densesolverreport", align 8
  %52 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i64 %2, ptr %11, align 8, !tbaa !9
  store double %3, ptr %12, align 8, !tbaa !11
  store i64 %4, ptr %13, align 8, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, 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 64, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 10024, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %41) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %42) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %43) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %44) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %45) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %46) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %48) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %50) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %51) #6
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %53, ptr noundef %17)
  call void @llvm.memset.p0.i64(ptr align 8 %29, 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 %31, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %39, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %40, i8 0, i64 10024, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %41, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %42, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %43, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %44, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %45, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %46, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %48, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %50, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %51, i8 0, i64 24, i1 false)
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  store i64 0, ptr %54, align 8, !tbaa !9
  %55 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_mlpreport_clearEPv(ptr noundef %55)
  %56 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %29, i64 noundef 0, i64 noundef 3, ptr noundef %56, i1 noundef zeroext true)
  %57 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %30, i64 noundef 0, i64 noundef 3, ptr noundef %57, i1 noundef zeroext true)
  %58 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %31, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %58, i1 noundef zeroext true)
  %59 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %32, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %59, i1 noundef zeroext true)
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %33, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %60, i1 noundef zeroext true)
  %61 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20_minlbfgsreport_initEPvPNS_8ae_stateEb(ptr noundef %39, ptr noundef %61, i1 noundef zeroext true)
  %62 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl19_minlbfgsstate_initEPvPNS_8ae_stateEb(ptr noundef %40, ptr noundef %62, i1 noundef zeroext true)
  %63 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %41, i64 noundef 0, i64 noundef 3, ptr noundef %63, i1 noundef zeroext true)
  %64 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %42, i64 noundef 0, i64 noundef 3, ptr noundef %64, i1 noundef zeroext true)
  %65 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %43, i64 noundef 0, i64 noundef 3, ptr noundef %65, i1 noundef zeroext true)
  %66 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %44, i64 noundef 0, i64 noundef 3, ptr noundef %66, i1 noundef zeroext true)
  %67 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %45, i64 noundef 0, i64 noundef 3, ptr noundef %67, i1 noundef zeroext true)
  %68 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %46, i64 noundef 0, i64 noundef 3, ptr noundef %68, i1 noundef zeroext true)
  %69 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %48, i64 noundef 0, i64 noundef 3, ptr noundef %69, i1 noundef zeroext true)
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_matinvreport_initEPvPNS_8ae_stateEb(ptr noundef %50, ptr noundef %70, i1 noundef zeroext true)
  %71 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23_densesolverreport_initEPvPNS_8ae_stateEb(ptr noundef %51, ptr noundef %71, i1 noundef zeroext true)
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlppropertiesEPKNS_20multilayerperceptronEPlS3_S3_PNS_8ae_stateE(ptr noundef %72, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %73)
  store double 1.000000e+01, ptr %37, align 8, !tbaa !11
  store double 3.000000e-01, ptr %38, align 8, !tbaa !11
  store double 1.000000e-03, ptr %21, align 8, !tbaa !11
  %74 = load i64, ptr %11, align 8, !tbaa !9
  %75 = icmp sle i64 %74, 0
  br i1 %75, label %79, label %76

76:                                               ; preds = %8
  %77 = load i64, ptr %13, align 8, !tbaa !9
  %78 = icmp slt i64 %77, 1
  br i1 %78, label %79, label %82

79:                                               ; preds = %76, %8
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  store i64 -1, ptr %80, align 8, !tbaa !9
  %81 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %81)
  store i32 1, ptr %52, align 4
  br label %870

82:                                               ; preds = %76
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  %85 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPKNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %83, ptr noundef %84)
  br i1 %85, label %86, label %127

86:                                               ; preds = %82
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %87

87:                                               ; preds = %123, %86
  %88 = load i64, ptr %22, align 8, !tbaa !9
  %89 = load i64, ptr %11, align 8, !tbaa !9
  %90 = sub nsw i64 %89, 1
  %91 = icmp sle i64 %88, %90
  br i1 %91, label %92, label %126

92:                                               ; preds = %87
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %93, i32 0, i32 6
  %95 = load ptr, ptr %94, align 8, !tbaa !13
  %96 = load i64, ptr %22, align 8, !tbaa !9
  %97 = getelementptr inbounds ptr, ptr %95, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = load i64, ptr %18, align 8, !tbaa !9
  %100 = getelementptr inbounds double, ptr %98, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !11
  %102 = load ptr, ptr %16, align 8, !tbaa !5
  %103 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %101, ptr noundef %102)
  %104 = icmp slt i64 %103, 0
  br i1 %104, label %119, label %105

105:                                              ; preds = %92
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %106, i32 0, i32 6
  %108 = load ptr, ptr %107, align 8, !tbaa !13
  %109 = load i64, ptr %22, align 8, !tbaa !9
  %110 = getelementptr inbounds ptr, ptr %108, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = load i64, ptr %18, align 8, !tbaa !9
  %113 = getelementptr inbounds double, ptr %111, i64 %112
  %114 = load double, ptr %113, align 8, !tbaa !11
  %115 = load ptr, ptr %16, align 8, !tbaa !5
  %116 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %114, ptr noundef %115)
  %117 = load i64, ptr %19, align 8, !tbaa !9
  %118 = icmp sge i64 %116, %117
  br i1 %118, label %119, label %122

119:                                              ; preds = %105, %92
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  store i64 -2, ptr %120, align 8, !tbaa !9
  %121 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %121)
  store i32 1, ptr %52, align 4
  br label %870

122:                                              ; preds = %105
  br label %123

123:                                              ; preds = %122
  %124 = load i64, ptr %22, align 8, !tbaa !9
  %125 = add nsw i64 %124, 1
  store i64 %125, ptr %22, align 8, !tbaa !9
  br label %87, !llvm.loop !14

126:                                              ; preds = %87
  br label %127

127:                                              ; preds = %126, %82
  %128 = load double, ptr %12, align 8, !tbaa !11
  %129 = load double, ptr @_ZN11alglib_implL17mlptrain_mindecayE, align 8, !tbaa !11
  %130 = load ptr, ptr %16, align 8, !tbaa !5
  %131 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %128, double noundef %129, ptr noundef %130)
  store double %131, ptr %12, align 8, !tbaa !11
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  store i64 2, ptr %132, align 8, !tbaa !9
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %133, i32 0, i32 5
  store i64 0, ptr %134, align 8, !tbaa !16
  %135 = load ptr, ptr %15, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %135, i32 0, i32 6
  store i64 0, ptr %136, align 8, !tbaa !18
  %137 = load ptr, ptr %15, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %137, i32 0, i32 7
  store i64 0, ptr %138, align 8, !tbaa !19
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = load i64, ptr %11, align 8, !tbaa !9
  %142 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl19mlpinitpreprocessorEPNS_20multilayerperceptronEPKNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %139, ptr noundef %140, i64 noundef %141, ptr noundef %142)
  %143 = load i64, ptr %20, align 8, !tbaa !9
  %144 = sub nsw i64 %143, 1
  %145 = add nsw i64 %144, 1
  %146 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %29, i64 noundef %145, ptr noundef %146)
  %147 = load i64, ptr %20, align 8, !tbaa !9
  %148 = sub nsw i64 %147, 1
  %149 = add nsw i64 %148, 1
  %150 = load i64, ptr %20, align 8, !tbaa !9
  %151 = sub nsw i64 %150, 1
  %152 = add nsw i64 %151, 1
  %153 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %31, i64 noundef %149, i64 noundef %152, ptr noundef %153)
  %154 = load i64, ptr %20, align 8, !tbaa !9
  %155 = sub nsw i64 %154, 1
  %156 = add nsw i64 %155, 1
  %157 = load i64, ptr %20, align 8, !tbaa !9
  %158 = sub nsw i64 %157, 1
  %159 = add nsw i64 %158, 1
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %32, i64 noundef %156, i64 noundef %159, ptr noundef %160)
  %161 = load i64, ptr %20, align 8, !tbaa !9
  %162 = sub nsw i64 %161, 1
  %163 = add nsw i64 %162, 1
  %164 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %43, i64 noundef %163, ptr noundef %164)
  %165 = load i64, ptr %20, align 8, !tbaa !9
  %166 = sub nsw i64 %165, 1
  %167 = add nsw i64 %166, 1
  %168 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %44, i64 noundef %167, ptr noundef %168)
  %169 = load i64, ptr %20, align 8, !tbaa !9
  %170 = sub nsw i64 %169, 1
  %171 = add nsw i64 %170, 1
  %172 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %48, i64 noundef %171, ptr noundef %172)
  %173 = load i64, ptr %20, align 8, !tbaa !9
  %174 = sub nsw i64 %173, 1
  %175 = add nsw i64 %174, 1
  %176 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %45, i64 noundef %175, ptr noundef %176)
  %177 = load i64, ptr %20, align 8, !tbaa !9
  %178 = sub nsw i64 %177, 1
  %179 = add nsw i64 %178, 1
  %180 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %46, i64 noundef %179, ptr noundef %180)
  store double 1.000000e+300, ptr %49, align 8, !tbaa !11
  store i64 1, ptr %47, align 8, !tbaa !9
  br label %181

181:                                              ; preds = %854, %127
  %182 = load i64, ptr %47, align 8, !tbaa !9
  %183 = load i64, ptr %13, align 8, !tbaa !9
  %184 = icmp sle i64 %182, %183
  br i1 %184, label %185, label %857

185:                                              ; preds = %181
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %186, ptr noundef %187)
  %188 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %189 = load ptr, ptr %188, align 8, !tbaa !13
  %190 = getelementptr inbounds double, ptr %189, i64 0
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %191, i32 0, i32 6
  %193 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %192, i32 0, i32 4
  %194 = load ptr, ptr %193, align 8, !tbaa !13
  %195 = getelementptr inbounds double, ptr %194, i64 0
  %196 = load i64, ptr %20, align 8, !tbaa !9
  %197 = sub nsw i64 %196, 1
  %198 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %197)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %190, i64 noundef 1, ptr noundef %195, i64 noundef 1, i64 noundef %198)
  %199 = load i64, ptr %20, align 8, !tbaa !9
  %200 = load i64, ptr %20, align 8, !tbaa !9
  %201 = load ptr, ptr %16, align 8, !tbaa !5
  %202 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %200, i64 noundef 5, ptr noundef %201)
  %203 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14minlbfgscreateEllPKNS_9ae_vectorEPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef %199, i64 noundef %202, ptr noundef %43, ptr noundef %40, ptr noundef %203)
  %204 = load i64, ptr %20, align 8, !tbaa !9
  %205 = load ptr, ptr %16, align 8, !tbaa !5
  %206 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef 25, i64 noundef %204, ptr noundef %205)
  %207 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl15minlbfgssetcondEPNS_13minlbfgsstateEdddlPNS_8ae_stateE(ptr noundef %40, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef %206, ptr noundef %207)
  br label %208

208:                                              ; preds = %211, %185
  %209 = load ptr, ptr %16, align 8, !tbaa !5
  %210 = call noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef %40, ptr noundef %209)
  br i1 %210, label %211, label %270

211:                                              ; preds = %208
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %212, i32 0, i32 6
  %214 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %213, i32 0, i32 4
  %215 = load ptr, ptr %214, align 8, !tbaa !13
  %216 = getelementptr inbounds double, ptr %215, i64 0
  %217 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %40, i32 0, i32 47
  %218 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %217, i32 0, i32 4
  %219 = load ptr, ptr %218, align 8, !tbaa !13
  %220 = getelementptr inbounds double, ptr %219, i64 0
  %221 = load i64, ptr %20, align 8, !tbaa !9
  %222 = sub nsw i64 %221, 1
  %223 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %222)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %216, i64 noundef 1, ptr noundef %220, i64 noundef 1, i64 noundef %223)
  %224 = load ptr, ptr %9, align 8, !tbaa !5
  %225 = load ptr, ptr %10, align 8, !tbaa !5
  %226 = load i64, ptr %11, align 8, !tbaa !9
  %227 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %40, i32 0, i32 48
  %228 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %40, i32 0, i32 49
  %229 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl12mlpgradbatchEPNS_20multilayerperceptronEPKNS_9ae_matrixElPdPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %224, ptr noundef %225, i64 noundef %226, ptr noundef %227, ptr noundef %228, ptr noundef %229)
  %230 = load ptr, ptr %9, align 8, !tbaa !5
  %231 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %230, i32 0, i32 6
  %232 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %231, i32 0, i32 4
  %233 = load ptr, ptr %232, align 8, !tbaa !13
  %234 = getelementptr inbounds double, ptr %233, i64 0
  %235 = load ptr, ptr %9, align 8, !tbaa !5
  %236 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %235, i32 0, i32 6
  %237 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %236, i32 0, i32 4
  %238 = load ptr, ptr %237, align 8, !tbaa !13
  %239 = getelementptr inbounds double, ptr %238, i64 0
  %240 = load i64, ptr %20, align 8, !tbaa !9
  %241 = sub nsw i64 %240, 1
  %242 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %241)
  %243 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %234, i64 noundef 1, ptr noundef %239, i64 noundef 1, i64 noundef %242)
  store double %243, ptr %24, align 8, !tbaa !11
  %244 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %40, i32 0, i32 48
  %245 = load double, ptr %244, align 8, !tbaa !20
  %246 = load double, ptr %12, align 8, !tbaa !11
  %247 = fmul double 5.000000e-01, %246
  %248 = load double, ptr %24, align 8, !tbaa !11
  %249 = call double @llvm.fmuladd.f64(double %247, double %248, double %245)
  %250 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %40, i32 0, i32 48
  store double %249, ptr %250, align 8, !tbaa !20
  %251 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %40, i32 0, i32 49
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %251, i32 0, i32 4
  %253 = load ptr, ptr %252, align 8, !tbaa !13
  %254 = getelementptr inbounds double, ptr %253, i64 0
  %255 = load ptr, ptr %9, align 8, !tbaa !5
  %256 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %255, i32 0, i32 6
  %257 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %256, i32 0, i32 4
  %258 = load ptr, ptr %257, align 8, !tbaa !13
  %259 = getelementptr inbounds double, ptr %258, i64 0
  %260 = load i64, ptr %20, align 8, !tbaa !9
  %261 = sub nsw i64 %260, 1
  %262 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %261)
  %263 = load double, ptr %12, align 8, !tbaa !11
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %254, i64 noundef 1, ptr noundef %259, i64 noundef 1, i64 noundef %262, double noundef %263)
  %264 = load ptr, ptr %15, align 8, !tbaa !5
  %265 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %264, i32 0, i32 5
  %266 = load i64, ptr %265, align 8, !tbaa !16
  %267 = add nsw i64 %266, 1
  %268 = load ptr, ptr %15, align 8, !tbaa !5
  %269 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %268, i32 0, i32 5
  store i64 %267, ptr %269, align 8, !tbaa !16
  br label %208, !llvm.loop !37

270:                                              ; preds = %208
  %271 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl15minlbfgsresultsEPKNS_13minlbfgsstateEPNS_9ae_vectorEPNS_14minlbfgsreportEPNS_8ae_stateE(ptr noundef %40, ptr noundef %43, ptr noundef %39, ptr noundef %271)
  %272 = load ptr, ptr %9, align 8, !tbaa !5
  %273 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %272, i32 0, i32 6
  %274 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %273, i32 0, i32 4
  %275 = load ptr, ptr %274, align 8, !tbaa !13
  %276 = getelementptr inbounds double, ptr %275, i64 0
  %277 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %278 = load ptr, ptr %277, align 8, !tbaa !13
  %279 = getelementptr inbounds double, ptr %278, i64 0
  %280 = load i64, ptr %20, align 8, !tbaa !9
  %281 = sub nsw i64 %280, 1
  %282 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %281)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %276, i64 noundef 1, ptr noundef %279, i64 noundef 1, i64 noundef %282)
  %283 = load ptr, ptr %9, align 8, !tbaa !5
  %284 = load ptr, ptr %10, align 8, !tbaa !5
  %285 = load i64, ptr %11, align 8, !tbaa !9
  %286 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl15mlphessianbatchEPNS_20multilayerperceptronEPKNS_9ae_matrixElPdPNS_9ae_vectorEPS2_PNS_8ae_stateE(ptr noundef %283, ptr noundef %284, i64 noundef %285, ptr noundef %25, ptr noundef %29, ptr noundef %31, ptr noundef %286)
  %287 = load ptr, ptr %9, align 8, !tbaa !5
  %288 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %287, i32 0, i32 6
  %289 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %288, i32 0, i32 4
  %290 = load ptr, ptr %289, align 8, !tbaa !13
  %291 = getelementptr inbounds double, ptr %290, i64 0
  %292 = load ptr, ptr %9, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %292, i32 0, i32 6
  %294 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %293, i32 0, i32 4
  %295 = load ptr, ptr %294, align 8, !tbaa !13
  %296 = getelementptr inbounds double, ptr %295, i64 0
  %297 = load i64, ptr %20, align 8, !tbaa !9
  %298 = sub nsw i64 %297, 1
  %299 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %298)
  %300 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %291, i64 noundef 1, ptr noundef %296, i64 noundef 1, i64 noundef %299)
  store double %300, ptr %24, align 8, !tbaa !11
  %301 = load double, ptr %25, align 8, !tbaa !11
  %302 = load double, ptr %12, align 8, !tbaa !11
  %303 = fmul double 5.000000e-01, %302
  %304 = load double, ptr %24, align 8, !tbaa !11
  %305 = call double @llvm.fmuladd.f64(double %303, double %304, double %301)
  store double %305, ptr %25, align 8, !tbaa !11
  %306 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %307 = load ptr, ptr %306, align 8, !tbaa !13
  %308 = getelementptr inbounds double, ptr %307, i64 0
  %309 = load ptr, ptr %9, align 8, !tbaa !5
  %310 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %309, i32 0, i32 6
  %311 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %310, i32 0, i32 4
  %312 = load ptr, ptr %311, align 8, !tbaa !13
  %313 = getelementptr inbounds double, ptr %312, i64 0
  %314 = load i64, ptr %20, align 8, !tbaa !9
  %315 = sub nsw i64 %314, 1
  %316 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %315)
  %317 = load double, ptr %12, align 8, !tbaa !11
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %308, i64 noundef 1, ptr noundef %313, i64 noundef 1, i64 noundef %316, double noundef %317)
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %318

318:                                              ; preds = %341, %270
  %319 = load i64, ptr %23, align 8, !tbaa !9
  %320 = load i64, ptr %20, align 8, !tbaa !9
  %321 = sub nsw i64 %320, 1
  %322 = icmp sle i64 %319, %321
  br i1 %322, label %323, label %344

323:                                              ; preds = %318
  %324 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %31, i32 0, i32 6
  %325 = load ptr, ptr %324, align 8, !tbaa !13
  %326 = load i64, ptr %23, align 8, !tbaa !9
  %327 = getelementptr inbounds ptr, ptr %325, i64 %326
  %328 = load ptr, ptr %327, align 8, !tbaa !5
  %329 = load i64, ptr %23, align 8, !tbaa !9
  %330 = getelementptr inbounds double, ptr %328, i64 %329
  %331 = load double, ptr %330, align 8, !tbaa !11
  %332 = load double, ptr %12, align 8, !tbaa !11
  %333 = fadd double %331, %332
  %334 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %31, i32 0, i32 6
  %335 = load ptr, ptr %334, align 8, !tbaa !13
  %336 = load i64, ptr %23, align 8, !tbaa !9
  %337 = getelementptr inbounds ptr, ptr %335, i64 %336
  %338 = load ptr, ptr %337, align 8, !tbaa !5
  %339 = load i64, ptr %23, align 8, !tbaa !9
  %340 = getelementptr inbounds double, ptr %338, i64 %339
  store double %333, ptr %340, align 8, !tbaa !11
  br label %341

341:                                              ; preds = %323
  %342 = load i64, ptr %23, align 8, !tbaa !9
  %343 = add nsw i64 %342, 1
  store i64 %343, ptr %23, align 8, !tbaa !9
  br label %318, !llvm.loop !38

344:                                              ; preds = %318
  %345 = load ptr, ptr %15, align 8, !tbaa !5
  %346 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %345, i32 0, i32 6
  %347 = load i64, ptr %346, align 8, !tbaa !18
  %348 = add nsw i64 %347, 1
  %349 = load ptr, ptr %15, align 8, !tbaa !5
  %350 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %349, i32 0, i32 6
  store i64 %348, ptr %350, align 8, !tbaa !18
  store double 1.000000e-03, ptr %36, align 8, !tbaa !11
  store double 2.000000e+00, ptr %35, align 8, !tbaa !11
  br label %351

351:                                              ; preds = %803, %495, %420, %406, %344
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %352

352:                                              ; preds = %390, %351
  %353 = load i64, ptr %22, align 8, !tbaa !9
  %354 = load i64, ptr %20, align 8, !tbaa !9
  %355 = sub nsw i64 %354, 1
  %356 = icmp sle i64 %353, %355
  br i1 %356, label %357, label %393

357:                                              ; preds = %352
  %358 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %32, i32 0, i32 6
  %359 = load ptr, ptr %358, align 8, !tbaa !13
  %360 = load i64, ptr %22, align 8, !tbaa !9
  %361 = getelementptr inbounds ptr, ptr %359, i64 %360
  %362 = load ptr, ptr %361, align 8, !tbaa !5
  %363 = getelementptr inbounds double, ptr %362, i64 0
  %364 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %31, i32 0, i32 6
  %365 = load ptr, ptr %364, align 8, !tbaa !13
  %366 = load i64, ptr %22, align 8, !tbaa !9
  %367 = getelementptr inbounds ptr, ptr %365, i64 %366
  %368 = load ptr, ptr %367, align 8, !tbaa !5
  %369 = getelementptr inbounds double, ptr %368, i64 0
  %370 = load i64, ptr %20, align 8, !tbaa !9
  %371 = sub nsw i64 %370, 1
  %372 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %371)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %363, i64 noundef 1, ptr noundef %369, i64 noundef 1, i64 noundef %372)
  %373 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %32, i32 0, i32 6
  %374 = load ptr, ptr %373, align 8, !tbaa !13
  %375 = load i64, ptr %22, align 8, !tbaa !9
  %376 = getelementptr inbounds ptr, ptr %374, i64 %375
  %377 = load ptr, ptr %376, align 8, !tbaa !5
  %378 = load i64, ptr %22, align 8, !tbaa !9
  %379 = getelementptr inbounds double, ptr %377, i64 %378
  %380 = load double, ptr %379, align 8, !tbaa !11
  %381 = load double, ptr %36, align 8, !tbaa !11
  %382 = fadd double %380, %381
  %383 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %32, i32 0, i32 6
  %384 = load ptr, ptr %383, align 8, !tbaa !13
  %385 = load i64, ptr %22, align 8, !tbaa !9
  %386 = getelementptr inbounds ptr, ptr %384, i64 %385
  %387 = load ptr, ptr %386, align 8, !tbaa !5
  %388 = load i64, ptr %22, align 8, !tbaa !9
  %389 = getelementptr inbounds double, ptr %387, i64 %388
  store double %382, ptr %389, align 8, !tbaa !11
  br label %390

390:                                              ; preds = %357
  %391 = load i64, ptr %22, align 8, !tbaa !9
  %392 = add nsw i64 %391, 1
  store i64 %392, ptr %22, align 8, !tbaa !9
  br label %352, !llvm.loop !39

393:                                              ; preds = %352
  %394 = load i64, ptr %20, align 8, !tbaa !9
  %395 = load ptr, ptr %16, align 8, !tbaa !5
  %396 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %32, i64 noundef %394, i1 noundef zeroext true, ptr noundef %395)
  %397 = zext i1 %396 to i8
  store i8 %397, ptr %34, align 1, !tbaa !40
  %398 = load ptr, ptr %15, align 8, !tbaa !5
  %399 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %398, i32 0, i32 7
  %400 = load i64, ptr %399, align 8, !tbaa !19
  %401 = add nsw i64 %400, 1
  %402 = load ptr, ptr %15, align 8, !tbaa !5
  %403 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %402, i32 0, i32 7
  store i64 %401, ptr %403, align 8, !tbaa !19
  %404 = load i8, ptr %34, align 1, !tbaa !40, !range !41, !noundef !42
  %405 = trunc i8 %404 to i1
  br i1 %405, label %414, label %406

406:                                              ; preds = %393
  %407 = load double, ptr %36, align 8, !tbaa !11
  %408 = load double, ptr %37, align 8, !tbaa !11
  %409 = fmul double %407, %408
  %410 = load double, ptr %35, align 8, !tbaa !11
  %411 = fmul double %409, %410
  store double %411, ptr %36, align 8, !tbaa !11
  %412 = load double, ptr %35, align 8, !tbaa !11
  %413 = fmul double %412, 2.000000e+00
  store double %413, ptr %35, align 8, !tbaa !11
  br label %351, !llvm.loop !43

414:                                              ; preds = %393
  %415 = load i64, ptr %20, align 8, !tbaa !9
  %416 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl22spdmatrixcholeskysolveEPKNS_9ae_matrixElbPKNS_9ae_vectorEPS3_PNS_17densesolverreportEPNS_8ae_stateE(ptr noundef %32, i64 noundef %415, i1 noundef zeroext true, ptr noundef %29, ptr noundef %44, ptr noundef %51, ptr noundef %416)
  %417 = getelementptr inbounds %"struct.alglib_impl::densesolverreport", ptr %51, i32 0, i32 0
  %418 = load i64, ptr %417, align 8, !tbaa !44
  %419 = icmp slt i64 %418, 0
  br i1 %419, label %420, label %428

420:                                              ; preds = %414
  %421 = load double, ptr %36, align 8, !tbaa !11
  %422 = load double, ptr %37, align 8, !tbaa !11
  %423 = fmul double %421, %422
  %424 = load double, ptr %35, align 8, !tbaa !11
  %425 = fmul double %423, %424
  store double %425, ptr %36, align 8, !tbaa !11
  %426 = load double, ptr %35, align 8, !tbaa !11
  %427 = fmul double %426, 2.000000e+00
  store double %427, ptr %35, align 8, !tbaa !11
  br label %351, !llvm.loop !43

428:                                              ; preds = %414
  %429 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %430 = load ptr, ptr %429, align 8, !tbaa !13
  %431 = getelementptr inbounds double, ptr %430, i64 0
  %432 = load i64, ptr %20, align 8, !tbaa !9
  %433 = sub nsw i64 %432, 1
  %434 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %433)
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %431, i64 noundef 1, i64 noundef %434, double noundef -1.000000e+00)
  %435 = load ptr, ptr %9, align 8, !tbaa !5
  %436 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %435, i32 0, i32 6
  %437 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %436, i32 0, i32 4
  %438 = load ptr, ptr %437, align 8, !tbaa !13
  %439 = getelementptr inbounds double, ptr %438, i64 0
  %440 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %441 = load ptr, ptr %440, align 8, !tbaa !13
  %442 = getelementptr inbounds double, ptr %441, i64 0
  %443 = load i64, ptr %20, align 8, !tbaa !9
  %444 = sub nsw i64 %443, 1
  %445 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %444)
  call void @_ZN11alglib_impl8ae_v_addEPdlPKdll(ptr noundef %439, i64 noundef 1, ptr noundef %442, i64 noundef 1, i64 noundef %445)
  %446 = load ptr, ptr %9, align 8, !tbaa !5
  %447 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %446, i32 0, i32 6
  %448 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %447, i32 0, i32 4
  %449 = load ptr, ptr %448, align 8, !tbaa !13
  %450 = getelementptr inbounds double, ptr %449, i64 0
  %451 = load ptr, ptr %9, align 8, !tbaa !5
  %452 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %451, i32 0, i32 6
  %453 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %452, i32 0, i32 4
  %454 = load ptr, ptr %453, align 8, !tbaa !13
  %455 = getelementptr inbounds double, ptr %454, i64 0
  %456 = load i64, ptr %20, align 8, !tbaa !9
  %457 = sub nsw i64 %456, 1
  %458 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %457)
  %459 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %450, i64 noundef 1, ptr noundef %455, i64 noundef 1, i64 noundef %458)
  store double %459, ptr %27, align 8, !tbaa !11
  %460 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %461 = load ptr, ptr %460, align 8, !tbaa !13
  %462 = getelementptr inbounds double, ptr %461, i64 0
  %463 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %464 = load ptr, ptr %463, align 8, !tbaa !13
  %465 = getelementptr inbounds double, ptr %464, i64 0
  %466 = load i64, ptr %20, align 8, !tbaa !9
  %467 = sub nsw i64 %466, 1
  %468 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %467)
  %469 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %462, i64 noundef 1, ptr noundef %465, i64 noundef 1, i64 noundef %468)
  store double %469, ptr %28, align 8, !tbaa !11
  %470 = load double, ptr %28, align 8, !tbaa !11
  %471 = load ptr, ptr %16, align 8, !tbaa !5
  %472 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %470, ptr noundef %471)
  store double %472, ptr %28, align 8, !tbaa !11
  %473 = load ptr, ptr %9, align 8, !tbaa !5
  %474 = load ptr, ptr %10, align 8, !tbaa !5
  %475 = load i64, ptr %11, align 8, !tbaa !9
  %476 = load ptr, ptr %16, align 8, !tbaa !5
  %477 = call noundef double @_ZN11alglib_impl8mlperrorEPNS_20multilayerperceptronEPKNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %473, ptr noundef %474, i64 noundef %475, ptr noundef %476)
  %478 = load double, ptr %12, align 8, !tbaa !11
  %479 = fmul double 5.000000e-01, %478
  %480 = load double, ptr %27, align 8, !tbaa !11
  %481 = call double @llvm.fmuladd.f64(double %479, double %480, double %477)
  store double %481, ptr %26, align 8, !tbaa !11
  %482 = load double, ptr %28, align 8, !tbaa !11
  %483 = load double, ptr %21, align 8, !tbaa !11
  %484 = load double, ptr %27, align 8, !tbaa !11
  %485 = load ptr, ptr %16, align 8, !tbaa !5
  %486 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %484, ptr noundef %485)
  %487 = fadd double 1.000000e+00, %486
  %488 = fmul double %483, %487
  %489 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %482, double noundef %488)
  br i1 %489, label %490, label %491

490:                                              ; preds = %428
  br label %813

491:                                              ; preds = %428
  %492 = load double, ptr %26, align 8, !tbaa !11
  %493 = load double, ptr %25, align 8, !tbaa !11
  %494 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %492, double noundef %493)
  br i1 %494, label %495, label %503

495:                                              ; preds = %491
  %496 = load double, ptr %36, align 8, !tbaa !11
  %497 = load double, ptr %37, align 8, !tbaa !11
  %498 = fmul double %496, %497
  %499 = load double, ptr %35, align 8, !tbaa !11
  %500 = fmul double %498, %499
  store double %500, ptr %36, align 8, !tbaa !11
  %501 = load double, ptr %35, align 8, !tbaa !11
  %502 = fmul double %501, 2.000000e+00
  store double %502, ptr %35, align 8, !tbaa !11
  br label %351, !llvm.loop !43

503:                                              ; preds = %491
  %504 = load i64, ptr %20, align 8, !tbaa !9
  %505 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixtrinverseEPNS_9ae_matrixElbbPNS_12matinvreportEPNS_8ae_stateE(ptr noundef %32, i64 noundef %504, i1 noundef zeroext true, i1 noundef zeroext false, ptr noundef %50, ptr noundef %505)
  %506 = getelementptr inbounds %"struct.alglib_impl::matinvreport", ptr %50, i32 0, i32 0
  %507 = load i64, ptr %506, align 8, !tbaa !46
  %508 = icmp sle i64 %507, 0
  br i1 %508, label %509, label %512

509:                                              ; preds = %503
  %510 = load ptr, ptr %14, align 8, !tbaa !5
  store i64 -9, ptr %510, align 8, !tbaa !9
  %511 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %511)
  store i32 1, ptr %52, align 4
  br label %870

512:                                              ; preds = %503
  %513 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %514 = load ptr, ptr %513, align 8, !tbaa !13
  %515 = getelementptr inbounds double, ptr %514, i64 0
  %516 = load ptr, ptr %9, align 8, !tbaa !5
  %517 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %516, i32 0, i32 6
  %518 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %517, i32 0, i32 4
  %519 = load ptr, ptr %518, align 8, !tbaa !13
  %520 = getelementptr inbounds double, ptr %519, i64 0
  %521 = load i64, ptr %20, align 8, !tbaa !9
  %522 = sub nsw i64 %521, 1
  %523 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %522)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %515, i64 noundef 1, ptr noundef %520, i64 noundef 1, i64 noundef %523)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %524

524:                                              ; preds = %534, %512
  %525 = load i64, ptr %22, align 8, !tbaa !9
  %526 = load i64, ptr %20, align 8, !tbaa !9
  %527 = sub nsw i64 %526, 1
  %528 = icmp sle i64 %525, %527
  br i1 %528, label %529, label %537

529:                                              ; preds = %524
  %530 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %531 = load ptr, ptr %530, align 8, !tbaa !13
  %532 = load i64, ptr %22, align 8, !tbaa !9
  %533 = getelementptr inbounds double, ptr %531, i64 %532
  store double 0.000000e+00, ptr %533, align 8, !tbaa !11
  br label %534

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

537:                                              ; preds = %524
  %538 = load i64, ptr %20, align 8, !tbaa !9
  %539 = load i64, ptr %20, align 8, !tbaa !9
  %540 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl15minlbfgscreatexEllPKNS_9ae_vectorEldPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef %538, i64 noundef %539, ptr noundef %45, i64 noundef 1, double noundef 0.000000e+00, ptr noundef %40, ptr noundef %540)
  %541 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl15minlbfgssetcondEPNS_13minlbfgsstateEdddlPNS_8ae_stateE(ptr noundef %40, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 5, ptr noundef %541)
  br label %542

542:                                              ; preds = %694, %537
  %543 = load ptr, ptr %16, align 8, !tbaa !5
  %544 = call noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef %40, ptr noundef %543)
  br i1 %544, label %545, label %701

545:                                              ; preds = %542
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %546

546:                                              ; preds = %582, %545
  %547 = load i64, ptr %22, align 8, !tbaa !9
  %548 = load i64, ptr %20, align 8, !tbaa !9
  %549 = sub nsw i64 %548, 1
  %550 = icmp sle i64 %547, %549
  br i1 %550, label %551, label %585

551:                                              ; preds = %546
  %552 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %40, i32 0, i32 47
  %553 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %552, i32 0, i32 4
  %554 = load ptr, ptr %553, align 8, !tbaa !13
  %555 = load i64, ptr %22, align 8, !tbaa !9
  %556 = getelementptr inbounds double, ptr %554, i64 %555
  %557 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %32, i32 0, i32 6
  %558 = load ptr, ptr %557, align 8, !tbaa !13
  %559 = load i64, ptr %22, align 8, !tbaa !9
  %560 = getelementptr inbounds ptr, ptr %558, i64 %559
  %561 = load ptr, ptr %560, align 8, !tbaa !5
  %562 = load i64, ptr %22, align 8, !tbaa !9
  %563 = getelementptr inbounds double, ptr %561, i64 %562
  %564 = load i64, ptr %22, align 8, !tbaa !9
  %565 = load i64, ptr %20, align 8, !tbaa !9
  %566 = sub nsw i64 %565, 1
  %567 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %564, i64 noundef %566)
  %568 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %556, i64 noundef 1, ptr noundef %563, i64 noundef 1, i64 noundef %567)
  store double %568, ptr %24, align 8, !tbaa !11
  %569 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %570 = load ptr, ptr %569, align 8, !tbaa !13
  %571 = load i64, ptr %22, align 8, !tbaa !9
  %572 = getelementptr inbounds double, ptr %570, i64 %571
  %573 = load double, ptr %572, align 8, !tbaa !11
  %574 = load double, ptr %24, align 8, !tbaa !11
  %575 = fadd double %573, %574
  %576 = load ptr, ptr %9, align 8, !tbaa !5
  %577 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %576, i32 0, i32 6
  %578 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %577, i32 0, i32 4
  %579 = load ptr, ptr %578, align 8, !tbaa !13
  %580 = load i64, ptr %22, align 8, !tbaa !9
  %581 = getelementptr inbounds double, ptr %579, i64 %580
  store double %575, ptr %581, align 8, !tbaa !11
  br label %582

582:                                              ; preds = %551
  %583 = load i64, ptr %22, align 8, !tbaa !9
  %584 = add nsw i64 %583, 1
  store i64 %584, ptr %22, align 8, !tbaa !9
  br label %546, !llvm.loop !49

585:                                              ; preds = %546
  %586 = load ptr, ptr %9, align 8, !tbaa !5
  %587 = load ptr, ptr %10, align 8, !tbaa !5
  %588 = load i64, ptr %11, align 8, !tbaa !9
  %589 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %40, i32 0, i32 48
  %590 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl12mlpgradbatchEPNS_20multilayerperceptronEPKNS_9ae_matrixElPdPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %586, ptr noundef %587, i64 noundef %588, ptr noundef %589, ptr noundef %29, ptr noundef %590)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %591

591:                                              ; preds = %602, %585
  %592 = load i64, ptr %22, align 8, !tbaa !9
  %593 = load i64, ptr %20, align 8, !tbaa !9
  %594 = sub nsw i64 %593, 1
  %595 = icmp sle i64 %592, %594
  br i1 %595, label %596, label %605

596:                                              ; preds = %591
  %597 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %40, i32 0, i32 49
  %598 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %597, i32 0, i32 4
  %599 = load ptr, ptr %598, align 8, !tbaa !13
  %600 = load i64, ptr %22, align 8, !tbaa !9
  %601 = getelementptr inbounds double, ptr %599, i64 %600
  store double 0.000000e+00, ptr %601, align 8, !tbaa !11
  br label %602

602:                                              ; preds = %596
  %603 = load i64, ptr %22, align 8, !tbaa !9
  %604 = add nsw i64 %603, 1
  store i64 %604, ptr %22, align 8, !tbaa !9
  br label %591, !llvm.loop !50

605:                                              ; preds = %591
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %606

606:                                              ; preds = %634, %605
  %607 = load i64, ptr %22, align 8, !tbaa !9
  %608 = load i64, ptr %20, align 8, !tbaa !9
  %609 = sub nsw i64 %608, 1
  %610 = icmp sle i64 %607, %609
  br i1 %610, label %611, label %637

611:                                              ; preds = %606
  %612 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %613 = load ptr, ptr %612, align 8, !tbaa !13
  %614 = load i64, ptr %22, align 8, !tbaa !9
  %615 = getelementptr inbounds double, ptr %613, i64 %614
  %616 = load double, ptr %615, align 8, !tbaa !11
  store double %616, ptr %24, align 8, !tbaa !11
  %617 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %40, i32 0, i32 49
  %618 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %617, i32 0, i32 4
  %619 = load ptr, ptr %618, align 8, !tbaa !13
  %620 = load i64, ptr %22, align 8, !tbaa !9
  %621 = getelementptr inbounds double, ptr %619, i64 %620
  %622 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %32, i32 0, i32 6
  %623 = load ptr, ptr %622, align 8, !tbaa !13
  %624 = load i64, ptr %22, align 8, !tbaa !9
  %625 = getelementptr inbounds ptr, ptr %623, i64 %624
  %626 = load ptr, ptr %625, align 8, !tbaa !5
  %627 = load i64, ptr %22, align 8, !tbaa !9
  %628 = getelementptr inbounds double, ptr %626, i64 %627
  %629 = load i64, ptr %22, align 8, !tbaa !9
  %630 = load i64, ptr %20, align 8, !tbaa !9
  %631 = sub nsw i64 %630, 1
  %632 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %629, i64 noundef %631)
  %633 = load double, ptr %24, align 8, !tbaa !11
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %621, i64 noundef 1, ptr noundef %628, i64 noundef 1, i64 noundef %632, double noundef %633)
  br label %634

634:                                              ; preds = %611
  %635 = load i64, ptr %22, align 8, !tbaa !9
  %636 = add nsw i64 %635, 1
  store i64 %636, ptr %22, align 8, !tbaa !9
  br label %606, !llvm.loop !51

637:                                              ; preds = %606
  %638 = load ptr, ptr %9, align 8, !tbaa !5
  %639 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %638, i32 0, i32 6
  %640 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %639, i32 0, i32 4
  %641 = load ptr, ptr %640, align 8, !tbaa !13
  %642 = getelementptr inbounds double, ptr %641, i64 0
  %643 = load ptr, ptr %9, align 8, !tbaa !5
  %644 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %643, i32 0, i32 6
  %645 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %644, i32 0, i32 4
  %646 = load ptr, ptr %645, align 8, !tbaa !13
  %647 = getelementptr inbounds double, ptr %646, i64 0
  %648 = load i64, ptr %20, align 8, !tbaa !9
  %649 = sub nsw i64 %648, 1
  %650 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %649)
  %651 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %642, i64 noundef 1, ptr noundef %647, i64 noundef 1, i64 noundef %650)
  store double %651, ptr %24, align 8, !tbaa !11
  %652 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %40, i32 0, i32 48
  %653 = load double, ptr %652, align 8, !tbaa !20
  %654 = load double, ptr %12, align 8, !tbaa !11
  %655 = fmul double 5.000000e-01, %654
  %656 = load double, ptr %24, align 8, !tbaa !11
  %657 = call double @llvm.fmuladd.f64(double %655, double %656, double %653)
  %658 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %40, i32 0, i32 48
  store double %657, ptr %658, align 8, !tbaa !20
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %659

659:                                              ; preds = %691, %637
  %660 = load i64, ptr %22, align 8, !tbaa !9
  %661 = load i64, ptr %20, align 8, !tbaa !9
  %662 = sub nsw i64 %661, 1
  %663 = icmp sle i64 %660, %662
  br i1 %663, label %664, label %694

664:                                              ; preds = %659
  %665 = load double, ptr %12, align 8, !tbaa !11
  %666 = load ptr, ptr %9, align 8, !tbaa !5
  %667 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %666, i32 0, i32 6
  %668 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %667, i32 0, i32 4
  %669 = load ptr, ptr %668, align 8, !tbaa !13
  %670 = load i64, ptr %22, align 8, !tbaa !9
  %671 = getelementptr inbounds double, ptr %669, i64 %670
  %672 = load double, ptr %671, align 8, !tbaa !11
  %673 = fmul double %665, %672
  store double %673, ptr %24, align 8, !tbaa !11
  %674 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %40, i32 0, i32 49
  %675 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %674, i32 0, i32 4
  %676 = load ptr, ptr %675, align 8, !tbaa !13
  %677 = load i64, ptr %22, align 8, !tbaa !9
  %678 = getelementptr inbounds double, ptr %676, i64 %677
  %679 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %32, i32 0, i32 6
  %680 = load ptr, ptr %679, align 8, !tbaa !13
  %681 = load i64, ptr %22, align 8, !tbaa !9
  %682 = getelementptr inbounds ptr, ptr %680, i64 %681
  %683 = load ptr, ptr %682, align 8, !tbaa !5
  %684 = load i64, ptr %22, align 8, !tbaa !9
  %685 = getelementptr inbounds double, ptr %683, i64 %684
  %686 = load i64, ptr %22, align 8, !tbaa !9
  %687 = load i64, ptr %20, align 8, !tbaa !9
  %688 = sub nsw i64 %687, 1
  %689 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %686, i64 noundef %688)
  %690 = load double, ptr %24, align 8, !tbaa !11
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %678, i64 noundef 1, ptr noundef %685, i64 noundef 1, i64 noundef %689, double noundef %690)
  br label %691

691:                                              ; preds = %664
  %692 = load i64, ptr %22, align 8, !tbaa !9
  %693 = add nsw i64 %692, 1
  store i64 %693, ptr %22, align 8, !tbaa !9
  br label %659, !llvm.loop !52

694:                                              ; preds = %659
  %695 = load ptr, ptr %15, align 8, !tbaa !5
  %696 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %695, i32 0, i32 5
  %697 = load i64, ptr %696, align 8, !tbaa !16
  %698 = add nsw i64 %697, 1
  %699 = load ptr, ptr %15, align 8, !tbaa !5
  %700 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %699, i32 0, i32 5
  store i64 %698, ptr %700, align 8, !tbaa !16
  br label %542, !llvm.loop !53

701:                                              ; preds = %542
  %702 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl15minlbfgsresultsEPKNS_13minlbfgsstateEPNS_9ae_vectorEPNS_14minlbfgsreportEPNS_8ae_stateE(ptr noundef %40, ptr noundef %45, ptr noundef %39, ptr noundef %702)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %703

703:                                              ; preds = %738, %701
  %704 = load i64, ptr %22, align 8, !tbaa !9
  %705 = load i64, ptr %20, align 8, !tbaa !9
  %706 = sub nsw i64 %705, 1
  %707 = icmp sle i64 %704, %706
  br i1 %707, label %708, label %741

708:                                              ; preds = %703
  %709 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %710 = load ptr, ptr %709, align 8, !tbaa !13
  %711 = load i64, ptr %22, align 8, !tbaa !9
  %712 = getelementptr inbounds double, ptr %710, i64 %711
  %713 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %32, i32 0, i32 6
  %714 = load ptr, ptr %713, align 8, !tbaa !13
  %715 = load i64, ptr %22, align 8, !tbaa !9
  %716 = getelementptr inbounds ptr, ptr %714, i64 %715
  %717 = load ptr, ptr %716, align 8, !tbaa !5
  %718 = load i64, ptr %22, align 8, !tbaa !9
  %719 = getelementptr inbounds double, ptr %717, i64 %718
  %720 = load i64, ptr %22, align 8, !tbaa !9
  %721 = load i64, ptr %20, align 8, !tbaa !9
  %722 = sub nsw i64 %721, 1
  %723 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %720, i64 noundef %722)
  %724 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %712, i64 noundef 1, ptr noundef %719, i64 noundef 1, i64 noundef %723)
  store double %724, ptr %24, align 8, !tbaa !11
  %725 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %726 = load ptr, ptr %725, align 8, !tbaa !13
  %727 = load i64, ptr %22, align 8, !tbaa !9
  %728 = getelementptr inbounds double, ptr %726, i64 %727
  %729 = load double, ptr %728, align 8, !tbaa !11
  %730 = load double, ptr %24, align 8, !tbaa !11
  %731 = fadd double %729, %730
  %732 = load ptr, ptr %9, align 8, !tbaa !5
  %733 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %732, i32 0, i32 6
  %734 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %733, i32 0, i32 4
  %735 = load ptr, ptr %734, align 8, !tbaa !13
  %736 = load i64, ptr %22, align 8, !tbaa !9
  %737 = getelementptr inbounds double, ptr %735, i64 %736
  store double %731, ptr %737, align 8, !tbaa !11
  br label %738

738:                                              ; preds = %708
  %739 = load i64, ptr %22, align 8, !tbaa !9
  %740 = add nsw i64 %739, 1
  store i64 %740, ptr %22, align 8, !tbaa !9
  br label %703, !llvm.loop !54

741:                                              ; preds = %703
  %742 = load ptr, ptr %9, align 8, !tbaa !5
  %743 = load ptr, ptr %10, align 8, !tbaa !5
  %744 = load i64, ptr %11, align 8, !tbaa !9
  %745 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl15mlphessianbatchEPNS_20multilayerperceptronEPKNS_9ae_matrixElPdPNS_9ae_vectorEPS2_PNS_8ae_stateE(ptr noundef %742, ptr noundef %743, i64 noundef %744, ptr noundef %25, ptr noundef %29, ptr noundef %31, ptr noundef %745)
  %746 = load ptr, ptr %9, align 8, !tbaa !5
  %747 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %746, i32 0, i32 6
  %748 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %747, i32 0, i32 4
  %749 = load ptr, ptr %748, align 8, !tbaa !13
  %750 = getelementptr inbounds double, ptr %749, i64 0
  %751 = load ptr, ptr %9, align 8, !tbaa !5
  %752 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %751, i32 0, i32 6
  %753 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %752, i32 0, i32 4
  %754 = load ptr, ptr %753, align 8, !tbaa !13
  %755 = getelementptr inbounds double, ptr %754, i64 0
  %756 = load i64, ptr %20, align 8, !tbaa !9
  %757 = sub nsw i64 %756, 1
  %758 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %757)
  %759 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %750, i64 noundef 1, ptr noundef %755, i64 noundef 1, i64 noundef %758)
  store double %759, ptr %24, align 8, !tbaa !11
  %760 = load double, ptr %25, align 8, !tbaa !11
  %761 = load double, ptr %12, align 8, !tbaa !11
  %762 = fmul double 5.000000e-01, %761
  %763 = load double, ptr %24, align 8, !tbaa !11
  %764 = call double @llvm.fmuladd.f64(double %762, double %763, double %760)
  store double %764, ptr %25, align 8, !tbaa !11
  %765 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %766 = load ptr, ptr %765, align 8, !tbaa !13
  %767 = getelementptr inbounds double, ptr %766, i64 0
  %768 = load ptr, ptr %9, align 8, !tbaa !5
  %769 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %768, i32 0, i32 6
  %770 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %769, i32 0, i32 4
  %771 = load ptr, ptr %770, align 8, !tbaa !13
  %772 = getelementptr inbounds double, ptr %771, i64 0
  %773 = load i64, ptr %20, align 8, !tbaa !9
  %774 = sub nsw i64 %773, 1
  %775 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %774)
  %776 = load double, ptr %12, align 8, !tbaa !11
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %767, i64 noundef 1, ptr noundef %772, i64 noundef 1, i64 noundef %775, double noundef %776)
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %777

777:                                              ; preds = %800, %741
  %778 = load i64, ptr %23, align 8, !tbaa !9
  %779 = load i64, ptr %20, align 8, !tbaa !9
  %780 = sub nsw i64 %779, 1
  %781 = icmp sle i64 %778, %780
  br i1 %781, label %782, label %803

782:                                              ; preds = %777
  %783 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %31, i32 0, i32 6
  %784 = load ptr, ptr %783, align 8, !tbaa !13
  %785 = load i64, ptr %23, align 8, !tbaa !9
  %786 = getelementptr inbounds ptr, ptr %784, i64 %785
  %787 = load ptr, ptr %786, align 8, !tbaa !5
  %788 = load i64, ptr %23, align 8, !tbaa !9
  %789 = getelementptr inbounds double, ptr %787, i64 %788
  %790 = load double, ptr %789, align 8, !tbaa !11
  %791 = load double, ptr %12, align 8, !tbaa !11
  %792 = fadd double %790, %791
  %793 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %31, i32 0, i32 6
  %794 = load ptr, ptr %793, align 8, !tbaa !13
  %795 = load i64, ptr %23, align 8, !tbaa !9
  %796 = getelementptr inbounds ptr, ptr %794, i64 %795
  %797 = load ptr, ptr %796, align 8, !tbaa !5
  %798 = load i64, ptr %23, align 8, !tbaa !9
  %799 = getelementptr inbounds double, ptr %797, i64 %798
  store double %792, ptr %799, align 8, !tbaa !11
  br label %800

800:                                              ; preds = %782
  %801 = load i64, ptr %23, align 8, !tbaa !9
  %802 = add nsw i64 %801, 1
  store i64 %802, ptr %23, align 8, !tbaa !9
  br label %777, !llvm.loop !55

803:                                              ; preds = %777
  %804 = load ptr, ptr %15, align 8, !tbaa !5
  %805 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %804, i32 0, i32 6
  %806 = load i64, ptr %805, align 8, !tbaa !18
  %807 = add nsw i64 %806, 1
  %808 = load ptr, ptr %15, align 8, !tbaa !5
  %809 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %808, i32 0, i32 6
  store i64 %807, ptr %809, align 8, !tbaa !18
  %810 = load double, ptr %36, align 8, !tbaa !11
  %811 = load double, ptr %38, align 8, !tbaa !11
  %812 = fmul double %810, %811
  store double %812, ptr %36, align 8, !tbaa !11
  store double 2.000000e+00, ptr %35, align 8, !tbaa !11
  br label %351, !llvm.loop !43

813:                                              ; preds = %490
  %814 = load ptr, ptr %9, align 8, !tbaa !5
  %815 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %814, i32 0, i32 6
  %816 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %815, i32 0, i32 4
  %817 = load ptr, ptr %816, align 8, !tbaa !13
  %818 = getelementptr inbounds double, ptr %817, i64 0
  %819 = load ptr, ptr %9, align 8, !tbaa !5
  %820 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %819, i32 0, i32 6
  %821 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %820, i32 0, i32 4
  %822 = load ptr, ptr %821, align 8, !tbaa !13
  %823 = getelementptr inbounds double, ptr %822, i64 0
  %824 = load i64, ptr %20, align 8, !tbaa !9
  %825 = sub nsw i64 %824, 1
  %826 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %825)
  %827 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %818, i64 noundef 1, ptr noundef %823, i64 noundef 1, i64 noundef %826)
  store double %827, ptr %24, align 8, !tbaa !11
  %828 = load double, ptr %12, align 8, !tbaa !11
  %829 = fmul double 5.000000e-01, %828
  %830 = load double, ptr %24, align 8, !tbaa !11
  %831 = load ptr, ptr %9, align 8, !tbaa !5
  %832 = load ptr, ptr %10, align 8, !tbaa !5
  %833 = load i64, ptr %11, align 8, !tbaa !9
  %834 = load ptr, ptr %16, align 8, !tbaa !5
  %835 = call noundef double @_ZN11alglib_impl8mlperrorEPNS_20multilayerperceptronEPKNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %831, ptr noundef %832, i64 noundef %833, ptr noundef %834)
  %836 = call double @llvm.fmuladd.f64(double %829, double %830, double %835)
  store double %836, ptr %25, align 8, !tbaa !11
  %837 = load double, ptr %25, align 8, !tbaa !11
  %838 = load double, ptr %49, align 8, !tbaa !11
  %839 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %837, double noundef %838)
  br i1 %839, label %840, label %853

840:                                              ; preds = %813
  %841 = load double, ptr %25, align 8, !tbaa !11
  store double %841, ptr %49, align 8, !tbaa !11
  %842 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %843 = load ptr, ptr %842, align 8, !tbaa !13
  %844 = getelementptr inbounds double, ptr %843, i64 0
  %845 = load ptr, ptr %9, align 8, !tbaa !5
  %846 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %845, i32 0, i32 6
  %847 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %846, i32 0, i32 4
  %848 = load ptr, ptr %847, align 8, !tbaa !13
  %849 = getelementptr inbounds double, ptr %848, i64 0
  %850 = load i64, ptr %20, align 8, !tbaa !9
  %851 = sub nsw i64 %850, 1
  %852 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %851)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %844, i64 noundef 1, ptr noundef %849, i64 noundef 1, i64 noundef %852)
  br label %853

853:                                              ; preds = %840, %813
  br label %854

854:                                              ; preds = %853
  %855 = load i64, ptr %47, align 8, !tbaa !9
  %856 = add nsw i64 %855, 1
  store i64 %856, ptr %47, align 8, !tbaa !9
  br label %181, !llvm.loop !56

857:                                              ; preds = %181
  %858 = load ptr, ptr %9, align 8, !tbaa !5
  %859 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %858, i32 0, i32 6
  %860 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %859, i32 0, i32 4
  %861 = load ptr, ptr %860, align 8, !tbaa !13
  %862 = getelementptr inbounds double, ptr %861, i64 0
  %863 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %864 = load ptr, ptr %863, align 8, !tbaa !13
  %865 = getelementptr inbounds double, ptr %864, i64 0
  %866 = load i64, ptr %20, align 8, !tbaa !9
  %867 = sub nsw i64 %866, 1
  %868 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %867)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %862, i64 noundef 1, ptr noundef %865, i64 noundef 1, i64 noundef %868)
  %869 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %869)
  store i32 0, ptr %52, align 4
  br label %870

870:                                              ; preds = %857, %509, %119, %79
  call void @llvm.lifetime.end.p0(i64 24, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 10024, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 64, 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 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  %871 = load i32, ptr %52, align 4
  switch i32 %871, label %873 [
    i32 0, label %872
    i32 1, label %872
  ]

872:                                              ; preds = %870, %870
  ret void

873:                                              ; preds = %870
  unreachable
}

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

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #4

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #4

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #4

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #4

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

declare void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, double noundef) #4

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #4

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

declare noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef, ptr noundef) #4

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

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

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

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

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

declare void @_ZN11alglib_impl8ae_v_addEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #4

declare void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef, i64 noundef, i64 noundef, double noundef) #4

declare void @_ZN11alglib_impl23_densesolverreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #4

declare noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) #4

declare void @_ZN11alglib_impl22spdmatrixcholeskysolveEPKNS_9ae_matrixElbPKNS_9ae_vectorEPS3_PNS_17densesolverreportEPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl16_mlpreport_clearEPv(ptr noundef) #2

declare void @_ZN11alglib_impl20_minlbfgsreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #4

declare void @_ZN11alglib_impl19_minlbfgsstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #4

declare void @_ZN11alglib_impl18_matinvreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #4

declare void @_ZN11alglib_impl14minlbfgscreateEllPKNS_9ae_vectorEPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #4

declare void @_ZN11alglib_impl15minlbfgssetcondEPNS_13minlbfgsstateEdddlPNS_8ae_stateE(ptr noundef, double noundef, double noundef, double noundef, i64 noundef, ptr noundef) #4

declare noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #4

declare void @_ZN11alglib_impl15minlbfgsresultsEPKNS_13minlbfgsstateEPNS_9ae_vectorEPNS_14minlbfgsreportEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

declare void @_ZN11alglib_impl16rmatrixtrinverseEPNS_9ae_matrixElbbPNS_12matinvreportEPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, ptr noundef, ptr noundef) #4

declare void @_ZN11alglib_impl15minlbfgscreatexEllPKNS_9ae_vectorEldPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!17, !10, i64 40}
!17 = !{!"_ZTSN11alglib_impl9mlpreportE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !10, i64 40, !10, i64 48, !10, i64 56}
!18 = !{!17, !10, i64 48}
!19 = !{!17, !10, i64 56}
!20 = !{!21, !12, i64 2296}
!21 = !{!"_ZTSN11alglib_impl13minlbfgsstateE", !10, i64 0, !10, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !10, i64 40, !22, i64 48, !12, i64 56, !23, i64 64, !12, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !23, i64 176, !25, i64 240, !25, i64 320, !23, i64 400, !23, i64 464, !23, i64 528, !12, i64 592, !12, i64 600, !23, i64 608, !12, i64 672, !12, i64 680, !23, i64 688, !10, i64 752, !12, i64 760, !25, i64 768, !23, i64 848, !23, i64 912, !23, i64 976, !25, i64 1040, !10, i64 1120, !26, i64 1128, !27, i64 1592, !12, i64 2040, !12, i64 2048, !12, i64 2056, !12, i64 2064, !12, i64 2072, !12, i64 2080, !23, i64 2088, !23, i64 2152, !10, i64 2216, !22, i64 2224, !23, i64 2232, !12, i64 2296, !23, i64 2304, !22, i64 2368, !22, i64 2369, !22, i64 2370, !10, i64 2376, !23, i64 2384, !12, i64 2448, !10, i64 2456, !10, i64 2464, !10, i64 2472, !10, i64 2480, !10, i64 2488, !23, i64 2496, !23, i64 2560, !23, i64 2624, !28, i64 2688, !23, i64 3056, !23, i64 3120, !23, i64 3184, !23, i64 3248, !25, i64 3312, !28, i64 3392, !12, i64 3760, !29, i64 3768, !10, i64 4032, !10, i64 4040, !10, i64 4048, !31, i64 4056, !10, i64 4248, !32, i64 4256, !23, i64 9960}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !22, i64 16, !24, i64 24, !7, i64 56}
!24 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!25 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !22, i64 32, !24, i64 40, !7, i64 72}
!26 = !{!"_ZTSN11alglib_impl12precbuflbfgsE", !23, i64 0, !23, i64 64, !23, i64 128, !25, i64 192, !23, i64 272, !23, i64 336, !23, i64 400}
!27 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !10, i64 0, !10, i64 8, !23, i64 16, !25, i64 80, !23, i64 160, !25, i64 224, !25, i64 304, !23, i64 384}
!28 = !{!"_ZTSN11alglib_impl12sparsematrixE", !23, i64 0, !23, i64 64, !23, i64 128, !23, i64 192, !23, i64 256, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360}
!29 = !{!"_ZTSN11alglib_impl10rcommstateE", !30, i64 0, !23, i64 8, !23, i64 72, !23, i64 136, !23, i64 200}
!30 = !{!"int", !7, i64 0}
!31 = !{!"_ZTSN11alglib_impl11linminstateE", !22, i64 0, !22, i64 1, !10, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184}
!32 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !10, i64 0, !10, i64 8, !22, i64 16, !23, i64 24, !23, i64 88, !10, i64 152, !23, i64 160, !23, i64 224, !23, i64 288, !25, i64 352, !23, i64 432, !23, i64 496, !10, i64 560, !10, i64 568, !10, i64 576, !12, i64 584, !10, i64 592, !23, i64 600, !23, i64 664, !12, i64 728, !23, i64 736, !23, i64 800, !12, i64 864, !25, i64 872, !25, i64 952, !25, i64 1032, !23, i64 1112, !23, i64 1176, !29, i64 1240, !22, i64 1504, !22, i64 1505, !10, i64 1512, !10, i64 1520, !12, i64 1528, !12, i64 1536, !22, i64 1544, !33, i64 1552, !12, i64 1848, !12, i64 1856, !34, i64 1864, !34, i64 2184, !12, i64 2504, !12, i64 2512, !35, i64 2520, !35, i64 2840, !12, i64 3160, !12, i64 3168, !36, i64 3176, !36, i64 3504, !22, i64 3832, !23, i64 3840, !23, i64 3904, !25, i64 3968, !29, i64 4048, !23, i64 4312, !23, i64 4376, !23, i64 4440, !23, i64 4504, !23, i64 4568, !23, i64 4632, !23, i64 4696, !23, i64 4760, !25, i64 4824, !25, i64 4904, !23, i64 4984, !23, i64 5048, !23, i64 5112, !23, i64 5176, !23, i64 5240, !23, i64 5304, !23, i64 5368, !23, i64 5432, !23, i64 5496, !23, i64 5560, !25, i64 5624}
!33 = !{!"_ZTSN11alglib_impl14optguardreportE", !22, i64 0, !22, i64 1, !10, i64 8, !12, i64 16, !22, i64 24, !22, i64 25, !22, i64 26, !10, i64 32, !12, i64 40, !22, i64 48, !10, i64 56, !10, i64 64, !23, i64 72, !25, i64 136, !25, i64 216}
!34 = !{!"_ZTSN11alglib_impl19optguardnonc0reportE", !22, i64 0, !10, i64 8, !23, i64 16, !23, i64 80, !10, i64 144, !23, i64 152, !23, i64 216, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312}
!35 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !22, i64 0, !10, i64 8, !23, i64 16, !23, i64 80, !10, i64 144, !23, i64 152, !23, i64 216, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312}
!36 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !22, i64 0, !10, i64 8, !10, i64 16, !23, i64 24, !23, i64 88, !10, i64 152, !23, i64 160, !23, i64 224, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320}
!37 = distinct !{!37, !15}
!38 = distinct !{!38, !15}
!39 = distinct !{!39, !15}
!40 = !{!22, !22, i64 0}
!41 = !{i8 0, i8 2}
!42 = !{}
!43 = distinct !{!43, !15}
!44 = !{!45, !10, i64 0}
!45 = !{!"_ZTSN11alglib_impl17densesolverreportE", !10, i64 0, !12, i64 8, !12, i64 16}
!46 = !{!47, !10, i64 0}
!47 = !{!"_ZTSN11alglib_impl12matinvreportE", !10, i64 0, !12, i64 8, !12, i64 16}
!48 = distinct !{!48, !15}
!49 = distinct !{!49, !15}
!50 = distinct !{!50, !15}
!51 = distinct !{!51, !15}
!52 = distinct !{!52, !15}
!53 = distinct !{!53, !15}
!54 = distinct !{!54, !15}
!55 = distinct !{!55, !15}
!56 = distinct !{!56, !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 }
%"struct.alglib_impl::minlbfgsreport" = type { i64, i64, i64 }
%"struct.alglib_impl::minlbfgsstate" = type { i64, i64, double, double, double, i64, i8, double, %"struct.alglib_impl::ae_vector", double, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::ae_vector", i64, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, %"struct.alglib_impl::precbuflbfgs", %"struct.alglib_impl::precbuflowrank", double, double, double, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i8, %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i64, %"struct.alglib_impl::ae_vector", double, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", double, %"struct.alglib_impl::rcommstate", i64, i64, i64, %"struct.alglib_impl::linminstate", i64, %"struct.alglib_impl::smoothnessmonitor", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::precbuflbfgs" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::precbuflowrank" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::linminstate" = type { i8, i8, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"struct.alglib_impl::smoothnessmonitor" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rcommstate", i8, i8, i64, i64, double, double, i8, %"struct.alglib_impl::optguardreport", double, double, %"struct.alglib_impl::optguardnonc0report", %"struct.alglib_impl::optguardnonc0report", double, double, %"struct.alglib_impl::optguardnonc1test0report", %"struct.alglib_impl::optguardnonc1test0report", double, double, %"struct.alglib_impl::optguardnonc1test1report", %"struct.alglib_impl::optguardnonc1test1report", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardreport" = type { i8, i8, i64, double, i8, i8, i8, i64, double, i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardnonc0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test1report" = type { i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64 }
%"struct.alglib_impl::matinvreport" = type { i64, double, double }
%"struct.alglib_impl::densesolverreport" = type { i64, double, double }

@_ZN11alglib_implL17mlptrain_mindecayE = external hidden local_unnamed_addr global double, align 8

; 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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPKNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl8mlperrorEPNS_20multilayerperceptronEPKNS_9ae_matrixElPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl10mlptrainlmEPNS_20multilayerperceptronEPKNS_9ae_matrixEldlPlPNS_9mlpreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, double noundef %3, i64 noundef %4, ptr nocapture noundef writeonly %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #2 {
  %9 = alloca %"struct.alglib_impl::ae_frame", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %17 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %18 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %19 = alloca %"struct.alglib_impl::minlbfgsreport", align 8
  %20 = alloca %"struct.alglib_impl::minlbfgsstate", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca %"struct.alglib_impl::ae_vector", align 8
  %25 = alloca %"struct.alglib_impl::ae_vector", align 8
  %26 = alloca %"struct.alglib_impl::ae_vector", align 8
  %27 = alloca %"struct.alglib_impl::ae_vector", align 8
  %28 = alloca %"struct.alglib_impl::matinvreport", align 8
  %29 = alloca %"struct.alglib_impl::densesolverreport", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 10024, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %27) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %29) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %7, ptr noundef nonnull %9)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %14, 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(80) %16, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %17, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %18, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %19, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(10024) %20, i8 0, i64 10024, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %23, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %24, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %25, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %26, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %27, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %28, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %29, i8 0, i64 24, i1 false)
  store i64 0, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_mlpreport_clearEPv(ptr noundef %6)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %18, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl20_minlbfgsreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %19, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19_minlbfgsstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %20, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %21, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %22, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %23, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %24, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %25, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %26, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %27, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_matinvreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %28, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl23_densesolverreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %29, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl13mlppropertiesEPKNS_20multilayerperceptronEPlS3_S3_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %7)
  %30 = icmp slt i64 %2, 1
  %31 = icmp slt i64 %4, 1
  %or.cond = or i1 %30, %31
  br i1 %or.cond, label %32, label %33

32:                                               ; preds = %8
  store i64 -1, ptr %5, align 8, !tbaa !5
  br label %409

33:                                               ; preds = %8
  %34 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPKNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %7)
  br i1 %34, label %.lr.ph, label %.lr.ph319

.lr.ph:                                           ; preds = %33
  %35 = getelementptr inbounds i8, ptr %1, i64 72
  br label %38

36:                                               ; preds = %47
  %37 = add nuw nsw i64 %.0239268, 1
  %exitcond.not = icmp eq i64 %37, %2
  br i1 %exitcond.not, label %.lr.ph319, label %38, !llvm.loop !9

38:                                               ; preds = %.lr.ph, %36
  %.0239268 = phi i64 [ 0, %.lr.ph ], [ %37, %36 ]
  %39 = load ptr, ptr %35, align 8, !tbaa !11
  %40 = getelementptr inbounds ptr, ptr %39, i64 %.0239268
  %41 = load ptr, ptr %40, align 8, !tbaa !12
  %42 = load i64, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds double, ptr %41, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !14
  %45 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %44, ptr noundef %7)
  %46 = icmp slt i64 %45, 0
  br i1 %46, label %56, label %47

47:                                               ; preds = %38
  %48 = load ptr, ptr %35, align 8, !tbaa !11
  %49 = getelementptr inbounds ptr, ptr %48, i64 %.0239268
  %50 = load ptr, ptr %49, align 8, !tbaa !12
  %51 = load i64, ptr %10, align 8, !tbaa !5
  %52 = getelementptr inbounds double, ptr %50, i64 %51
  %53 = load double, ptr %52, align 8, !tbaa !14
  %54 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %53, ptr noundef %7)
  %55 = load i64, ptr %11, align 8, !tbaa !5
  %.not262 = icmp slt i64 %54, %55
  br i1 %.not262, label %36, label %56

56:                                               ; preds = %47, %38
  store i64 -2, ptr %5, align 8, !tbaa !5
  br label %409

.lr.ph319:                                        ; preds = %36, %33
  %57 = load double, ptr @_ZN11alglib_implL17mlptrain_mindecayE, align 8, !tbaa !14
  %58 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %3, double noundef %57, ptr noundef %7)
  store i64 2, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %6, i64 40
  %60 = getelementptr inbounds i8, ptr %6, i64 48
  %61 = getelementptr inbounds i8, ptr %6, i64 56
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %59, i8 0, i64 24, i1 false)
  call void @_ZN11alglib_impl19mlpinitpreprocessorEPNS_20multilayerperceptronEPKNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %7)
  %62 = load i64, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %62, ptr noundef %7)
  %63 = load i64, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %63, i64 noundef %63, ptr noundef %7)
  %64 = load i64, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %64, i64 noundef %64, ptr noundef %7)
  %65 = load i64, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %23, i64 noundef %65, ptr noundef %7)
  %66 = load i64, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %24, i64 noundef %66, ptr noundef %7)
  %67 = load i64, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %27, i64 noundef %67, ptr noundef %7)
  %68 = load i64, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef %68, ptr noundef %7)
  %69 = load i64, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %26, i64 noundef %69, ptr noundef %7)
  %70 = getelementptr inbounds i8, ptr %23, i64 56
  %71 = getelementptr inbounds i8, ptr %0, i64 328
  %72 = getelementptr inbounds i8, ptr %20, i64 2288
  %73 = getelementptr inbounds i8, ptr %20, i64 2296
  %74 = getelementptr inbounds i8, ptr %20, i64 2304
  %75 = fmul double %58, 5.000000e-01
  %76 = getelementptr inbounds i8, ptr %20, i64 2360
  %77 = getelementptr inbounds i8, ptr %14, i64 56
  %78 = getelementptr inbounds i8, ptr %16, i64 72
  %79 = getelementptr inbounds i8, ptr %17, i64 72
  %80 = getelementptr inbounds i8, ptr %24, i64 56
  %81 = getelementptr inbounds i8, ptr %25, i64 56
  %82 = getelementptr inbounds i8, ptr %27, i64 56
  br label %83

83:                                               ; preds = %.lr.ph319, %400
  %.0317 = phi double [ 1.000000e+300, %.lr.ph319 ], [ %.1, %400 ]
  %.0238316 = phi i64 [ 1, %.lr.ph319 ], [ %401, %400 ]
  call void @_ZN11alglib_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %7)
  %84 = load ptr, ptr %70, align 8, !tbaa !11
  %85 = load ptr, ptr %71, align 8, !tbaa !11
  %86 = load i64, ptr %12, align 8, !tbaa !5
  %87 = add nsw i64 %86, -1
  %88 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %87)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %84, i64 noundef 1, ptr noundef %85, i64 noundef 1, i64 noundef %88)
  %89 = load i64, ptr %12, align 8, !tbaa !5
  %90 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %89, i64 noundef 5, ptr noundef %7)
  call void @_ZN11alglib_impl14minlbfgscreateEllPKNS_9ae_vectorEPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef %89, i64 noundef %90, ptr noundef nonnull %23, ptr noundef nonnull %20, ptr noundef %7)
  %91 = load i64, ptr %12, align 8, !tbaa !5
  %92 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef 25, i64 noundef %91, ptr noundef %7)
  call void @_ZN11alglib_impl15minlbfgssetcondEPNS_13minlbfgsstateEdddlPNS_8ae_stateE(ptr noundef nonnull %20, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef %92, ptr noundef %7)
  %93 = call noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef %7)
  br i1 %93, label %.lr.ph269, label %._crit_edge

.lr.ph269:                                        ; preds = %83, %.lr.ph269
  %94 = load ptr, ptr %71, align 8, !tbaa !11
  %95 = load ptr, ptr %72, align 8, !tbaa !11
  %96 = load i64, ptr %12, align 8, !tbaa !5
  %97 = add nsw i64 %96, -1
  %98 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %97)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %94, i64 noundef 1, ptr noundef %95, i64 noundef 1, i64 noundef %98)
  call void @_ZN11alglib_impl12mlpgradbatchEPNS_20multilayerperceptronEPKNS_9ae_matrixElPdPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %2, ptr noundef nonnull %73, ptr noundef nonnull %74, ptr noundef %7)
  %99 = load ptr, ptr %71, align 8, !tbaa !11
  %100 = load i64, ptr %12, align 8, !tbaa !5
  %101 = add nsw i64 %100, -1
  %102 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %101)
  %103 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %99, i64 noundef 1, ptr noundef %99, i64 noundef 1, i64 noundef %102)
  %104 = load double, ptr %73, align 8, !tbaa !16
  %105 = call double @llvm.fmuladd.f64(double %75, double %103, double %104)
  store double %105, ptr %73, align 8, !tbaa !16
  %106 = load ptr, ptr %76, align 8, !tbaa !11
  %107 = load ptr, ptr %71, align 8, !tbaa !11
  %108 = load i64, ptr %12, align 8, !tbaa !5
  %109 = add nsw i64 %108, -1
  %110 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %109)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %106, i64 noundef 1, ptr noundef %107, i64 noundef 1, i64 noundef %110, double noundef %58)
  %111 = load i64, ptr %59, align 8, !tbaa !33
  %112 = add nsw i64 %111, 1
  store i64 %112, ptr %59, align 8, !tbaa !33
  %113 = call noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef %7)
  br i1 %113, label %.lr.ph269, label %._crit_edge, !llvm.loop !35

._crit_edge:                                      ; preds = %.lr.ph269, %83
  call void @_ZN11alglib_impl15minlbfgsresultsEPKNS_13minlbfgsstateEPNS_9ae_vectorEPNS_14minlbfgsreportEPNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef nonnull %23, ptr noundef nonnull %19, ptr noundef %7)
  %114 = load ptr, ptr %71, align 8, !tbaa !11
  %115 = load ptr, ptr %70, align 8, !tbaa !11
  %116 = load i64, ptr %12, align 8, !tbaa !5
  %117 = add nsw i64 %116, -1
  %118 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %117)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %114, i64 noundef 1, ptr noundef %115, i64 noundef 1, i64 noundef %118)
  call void @_ZN11alglib_impl15mlphessianbatchEPNS_20multilayerperceptronEPKNS_9ae_matrixElPdPNS_9ae_vectorEPS2_PNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %2, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %16, ptr noundef %7)
  %119 = load ptr, ptr %71, align 8, !tbaa !11
  %120 = load i64, ptr %12, align 8, !tbaa !5
  %121 = add nsw i64 %120, -1
  %122 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %121)
  %123 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %119, i64 noundef 1, ptr noundef %119, i64 noundef 1, i64 noundef %122)
  %124 = load double, ptr %13, align 8, !tbaa !14
  %125 = call double @llvm.fmuladd.f64(double %75, double %123, double %124)
  store double %125, ptr %13, align 8, !tbaa !14
  %126 = load ptr, ptr %77, align 8, !tbaa !11
  %127 = load ptr, ptr %71, align 8, !tbaa !11
  %128 = load i64, ptr %12, align 8, !tbaa !5
  %129 = add nsw i64 %128, -1
  %130 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %129)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %126, i64 noundef 1, ptr noundef %127, i64 noundef 1, i64 noundef %130, double noundef %58)
  %131 = load i64, ptr %12, align 8, !tbaa !5
  %.not253.not270 = icmp sgt i64 %131, 0
  br i1 %.not253.not270, label %.lr.ph273.preheader, label %._crit_edge274

.lr.ph273.preheader:                              ; preds = %._crit_edge
  %xtraiter = and i64 %131, 1
  %132 = icmp eq i64 %131, 1
  br i1 %132, label %._crit_edge274.loopexit.unr-lcssa, label %.lr.ph273.preheader.new

.lr.ph273.preheader.new:                          ; preds = %.lr.ph273.preheader
  %unroll_iter = and i64 %131, 9223372036854775806
  br label %.lr.ph273

.lr.ph273:                                        ; preds = %.lr.ph273, %.lr.ph273.preheader.new
  %.0243271 = phi i64 [ 0, %.lr.ph273.preheader.new ], [ %146, %.lr.ph273 ]
  %niter = phi i64 [ 0, %.lr.ph273.preheader.new ], [ %niter.next.1, %.lr.ph273 ]
  %133 = load ptr, ptr %78, align 8, !tbaa !11
  %134 = getelementptr inbounds ptr, ptr %133, i64 %.0243271
  %135 = load ptr, ptr %134, align 8, !tbaa !12
  %136 = getelementptr inbounds double, ptr %135, i64 %.0243271
  %137 = load double, ptr %136, align 8, !tbaa !14
  %138 = fadd double %58, %137
  store double %138, ptr %136, align 8, !tbaa !14
  %139 = or disjoint i64 %.0243271, 1
  %140 = load ptr, ptr %78, align 8, !tbaa !11
  %141 = getelementptr inbounds ptr, ptr %140, i64 %139
  %142 = load ptr, ptr %141, align 8, !tbaa !12
  %143 = getelementptr inbounds double, ptr %142, i64 %139
  %144 = load double, ptr %143, align 8, !tbaa !14
  %145 = fadd double %58, %144
  store double %145, ptr %143, align 8, !tbaa !14
  %146 = add nuw nsw i64 %.0243271, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge274.loopexit.unr-lcssa, label %.lr.ph273, !llvm.loop !36

._crit_edge274.loopexit.unr-lcssa:                ; preds = %.lr.ph273, %.lr.ph273.preheader
  %.0243271.unr = phi i64 [ 0, %.lr.ph273.preheader ], [ %146, %.lr.ph273 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge274, label %.lr.ph273.epil

.lr.ph273.epil:                                   ; preds = %._crit_edge274.loopexit.unr-lcssa
  %147 = load ptr, ptr %78, align 8, !tbaa !11
  %148 = getelementptr inbounds ptr, ptr %147, i64 %.0243271.unr
  %149 = load ptr, ptr %148, align 8, !tbaa !12
  %150 = getelementptr inbounds double, ptr %149, i64 %.0243271.unr
  %151 = load double, ptr %150, align 8, !tbaa !14
  %152 = fadd double %58, %151
  store double %152, ptr %150, align 8, !tbaa !14
  br label %._crit_edge274

._crit_edge274:                                   ; preds = %.lr.ph273.epil, %._crit_edge274.loopexit.unr-lcssa, %._crit_edge
  %153 = load i64, ptr %60, align 8, !tbaa !37
  %154 = add nsw i64 %153, 1
  store i64 %154, ptr %60, align 8, !tbaa !37
  br label %155

155:                                              ; preds = %.backedge, %._crit_edge274
  %156 = phi i64 [ %131, %._crit_edge274 ], [ %.pre, %.backedge ]
  %.0242 = phi double [ 2.000000e+00, %._crit_edge274 ], [ %.0242.be, %.backedge ]
  %.0241 = phi double [ 1.000000e-03, %._crit_edge274 ], [ %.0241.be, %.backedge ]
  %.not254.not275 = icmp sgt i64 %156, 0
  br i1 %.not254.not275, label %.lr.ph278, label %._crit_edge279

.lr.ph278:                                        ; preds = %155, %.lr.ph278
  %157 = phi i64 [ %173, %.lr.ph278 ], [ %156, %155 ]
  %.1240276 = phi i64 [ %172, %.lr.ph278 ], [ 0, %155 ]
  %158 = add nsw i64 %157, -1
  %159 = load ptr, ptr %79, align 8, !tbaa !11
  %160 = getelementptr inbounds ptr, ptr %159, i64 %.1240276
  %161 = load ptr, ptr %160, align 8, !tbaa !12
  %162 = load ptr, ptr %78, align 8, !tbaa !11
  %163 = getelementptr inbounds ptr, ptr %162, i64 %.1240276
  %164 = load ptr, ptr %163, align 8, !tbaa !12
  %165 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %158)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %161, i64 noundef 1, ptr noundef %164, i64 noundef 1, i64 noundef %165)
  %166 = load ptr, ptr %79, align 8, !tbaa !11
  %167 = getelementptr inbounds ptr, ptr %166, i64 %.1240276
  %168 = load ptr, ptr %167, align 8, !tbaa !12
  %169 = getelementptr inbounds double, ptr %168, i64 %.1240276
  %170 = load double, ptr %169, align 8, !tbaa !14
  %171 = fadd double %.0241, %170
  store double %171, ptr %169, align 8, !tbaa !14
  %172 = add nuw nsw i64 %.1240276, 1
  %173 = load i64, ptr %12, align 8, !tbaa !5
  %.not254.not = icmp slt i64 %172, %173
  br i1 %.not254.not, label %.lr.ph278, label %._crit_edge279, !llvm.loop !38

._crit_edge279:                                   ; preds = %.lr.ph278, %155
  %.lcssa = phi i64 [ %156, %155 ], [ %173, %.lr.ph278 ]
  %174 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %.lcssa, i1 noundef zeroext true, ptr noundef %7)
  %175 = load i64, ptr %61, align 8, !tbaa !39
  %176 = add nsw i64 %175, 1
  store i64 %176, ptr %61, align 8, !tbaa !39
  br i1 %174, label %181, label %177

177:                                              ; preds = %._crit_edge279
  %178 = fmul double %.0241, 1.000000e+01
  %179 = fmul double %.0242, %178
  %180 = fmul double %.0242, 2.000000e+00
  br label %.backedge

.backedge:                                        ; preds = %177, %185, %219, %._crit_edge314
  %.0242.be = phi double [ %188, %185 ], [ %222, %219 ], [ 2.000000e+00, %._crit_edge314 ], [ %180, %177 ]
  %.0241.be = phi double [ %187, %185 ], [ %221, %219 ], [ %383, %._crit_edge314 ], [ %179, %177 ]
  %.pre = load i64, ptr %12, align 8, !tbaa !5
  br label %155, !llvm.loop !40

181:                                              ; preds = %._crit_edge279
  %182 = load i64, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl22spdmatrixcholeskysolveEPKNS_9ae_matrixElbPKNS_9ae_vectorEPS3_PNS_17densesolverreportEPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %182, i1 noundef zeroext true, ptr noundef nonnull %14, ptr noundef nonnull %24, ptr noundef nonnull %29, ptr noundef %7)
  %183 = load i64, ptr %29, align 8, !tbaa !41
  %184 = icmp slt i64 %183, 0
  br i1 %184, label %185, label %189

185:                                              ; preds = %181
  %186 = fmul double %.0241, 1.000000e+01
  %187 = fmul double %.0242, %186
  %188 = fmul double %.0242, 2.000000e+00
  br label %.backedge

189:                                              ; preds = %181
  %190 = load ptr, ptr %80, align 8, !tbaa !11
  %191 = load i64, ptr %12, align 8, !tbaa !5
  %192 = add nsw i64 %191, -1
  %193 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %192)
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %190, i64 noundef 1, i64 noundef %193, double noundef -1.000000e+00)
  %194 = load ptr, ptr %71, align 8, !tbaa !11
  %195 = load ptr, ptr %80, align 8, !tbaa !11
  %196 = load i64, ptr %12, align 8, !tbaa !5
  %197 = add nsw i64 %196, -1
  %198 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %197)
  call void @_ZN11alglib_impl8ae_v_addEPdlPKdll(ptr noundef %194, i64 noundef 1, ptr noundef %195, i64 noundef 1, i64 noundef %198)
  %199 = load ptr, ptr %71, align 8, !tbaa !11
  %200 = load i64, ptr %12, align 8, !tbaa !5
  %201 = add nsw i64 %200, -1
  %202 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %201)
  %203 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %199, i64 noundef 1, ptr noundef %199, i64 noundef 1, i64 noundef %202)
  %204 = load ptr, ptr %80, align 8, !tbaa !11
  %205 = load i64, ptr %12, align 8, !tbaa !5
  %206 = add nsw i64 %205, -1
  %207 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %206)
  %208 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %204, i64 noundef 1, ptr noundef %204, i64 noundef 1, i64 noundef %207)
  %209 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %208, ptr noundef %7)
  %210 = call noundef double @_ZN11alglib_impl8mlperrorEPNS_20multilayerperceptronEPKNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %7)
  %211 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %203, ptr noundef %7)
  %212 = fadd double %211, 1.000000e+00
  %213 = fmul double %212, 1.000000e-03
  %214 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %209, double noundef %213)
  br i1 %214, label %384, label %215

215:                                              ; preds = %189
  %216 = call double @llvm.fmuladd.f64(double %75, double %203, double %210)
  %217 = load double, ptr %13, align 8, !tbaa !14
  %218 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %216, double noundef %217)
  br i1 %218, label %219, label %223

219:                                              ; preds = %215
  %220 = fmul double %.0241, 1.000000e+01
  %221 = fmul double %.0242, %220
  %222 = fmul double %.0242, 2.000000e+00
  br label %.backedge

223:                                              ; preds = %215
  %224 = load i64, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixtrinverseEPNS_9ae_matrixElbbPNS_12matinvreportEPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %224, i1 noundef zeroext true, i1 noundef zeroext false, ptr noundef nonnull %28, ptr noundef %7)
  %225 = load i64, ptr %28, align 8, !tbaa !43
  %226 = icmp slt i64 %225, 1
  br i1 %226, label %227, label %228

227:                                              ; preds = %223
  store i64 -9, ptr %5, align 8, !tbaa !5
  br label %409

228:                                              ; preds = %223
  %229 = load ptr, ptr %70, align 8, !tbaa !11
  %230 = load ptr, ptr %71, align 8, !tbaa !11
  %231 = load i64, ptr %12, align 8, !tbaa !5
  %232 = add nsw i64 %231, -1
  %233 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %232)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %229, i64 noundef 1, ptr noundef %230, i64 noundef 1, i64 noundef %233)
  %234 = load i64, ptr %12, align 8, !tbaa !5
  %.not255.not280 = icmp sgt i64 %234, 0
  br i1 %.not255.not280, label %.lr.ph283.preheader, label %._crit_edge284

.lr.ph283.preheader:                              ; preds = %228
  %xtraiter336 = and i64 %234, 3
  %235 = icmp ult i64 %234, 4
  br i1 %235, label %._crit_edge284.loopexit.unr-lcssa, label %.lr.ph283.preheader.new

.lr.ph283.preheader.new:                          ; preds = %.lr.ph283.preheader
  %unroll_iter338 = and i64 %234, 9223372036854775804
  br label %.lr.ph283

.lr.ph283:                                        ; preds = %.lr.ph283, %.lr.ph283.preheader.new
  %.2281 = phi i64 [ 0, %.lr.ph283.preheader.new ], [ %247, %.lr.ph283 ]
  %niter339 = phi i64 [ 0, %.lr.ph283.preheader.new ], [ %niter339.next.3, %.lr.ph283 ]
  %236 = load ptr, ptr %81, align 8, !tbaa !11
  %237 = getelementptr inbounds double, ptr %236, i64 %.2281
  store double 0.000000e+00, ptr %237, align 8, !tbaa !14
  %238 = or disjoint i64 %.2281, 1
  %239 = load ptr, ptr %81, align 8, !tbaa !11
  %240 = getelementptr inbounds double, ptr %239, i64 %238
  store double 0.000000e+00, ptr %240, align 8, !tbaa !14
  %241 = or disjoint i64 %.2281, 2
  %242 = load ptr, ptr %81, align 8, !tbaa !11
  %243 = getelementptr inbounds double, ptr %242, i64 %241
  store double 0.000000e+00, ptr %243, align 8, !tbaa !14
  %244 = or disjoint i64 %.2281, 3
  %245 = load ptr, ptr %81, align 8, !tbaa !11
  %246 = getelementptr inbounds double, ptr %245, i64 %244
  store double 0.000000e+00, ptr %246, align 8, !tbaa !14
  %247 = add nuw nsw i64 %.2281, 4
  %niter339.next.3 = add i64 %niter339, 4
  %niter339.ncmp.3 = icmp eq i64 %niter339.next.3, %unroll_iter338
  br i1 %niter339.ncmp.3, label %._crit_edge284.loopexit.unr-lcssa, label %.lr.ph283, !llvm.loop !45

._crit_edge284.loopexit.unr-lcssa:                ; preds = %.lr.ph283, %.lr.ph283.preheader
  %.2281.unr = phi i64 [ 0, %.lr.ph283.preheader ], [ %247, %.lr.ph283 ]
  %lcmp.mod337.not = icmp eq i64 %xtraiter336, 0
  br i1 %lcmp.mod337.not, label %._crit_edge284, label %.lr.ph283.epil

.lr.ph283.epil:                                   ; preds = %._crit_edge284.loopexit.unr-lcssa, %.lr.ph283.epil
  %.2281.epil = phi i64 [ %250, %.lr.ph283.epil ], [ %.2281.unr, %._crit_edge284.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph283.epil ], [ 0, %._crit_edge284.loopexit.unr-lcssa ]
  %248 = load ptr, ptr %81, align 8, !tbaa !11
  %249 = getelementptr inbounds double, ptr %248, i64 %.2281.epil
  store double 0.000000e+00, ptr %249, align 8, !tbaa !14
  %250 = add nuw nsw i64 %.2281.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter336
  br i1 %epil.iter.cmp.not, label %._crit_edge284, label %.lr.ph283.epil, !llvm.loop !46

._crit_edge284:                                   ; preds = %._crit_edge284.loopexit.unr-lcssa, %.lr.ph283.epil, %228
  call void @_ZN11alglib_impl15minlbfgscreatexEllPKNS_9ae_vectorEldPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef %234, i64 noundef %234, ptr noundef nonnull %25, i64 noundef 1, double noundef 0.000000e+00, ptr noundef nonnull %20, ptr noundef %7)
  call void @_ZN11alglib_impl15minlbfgssetcondEPNS_13minlbfgsstateEdddlPNS_8ae_stateE(ptr noundef nonnull %20, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 5, ptr noundef %7)
  %251 = call noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef %7)
  br i1 %251, label %.preheader263, label %._crit_edge304

.preheader263:                                    ; preds = %._crit_edge284, %._crit_edge303
  %252 = load i64, ptr %12, align 8, !tbaa !5
  %.not258.not286 = icmp sgt i64 %252, 0
  br i1 %.not258.not286, label %.lr.ph288, label %._crit_edge289

.lr.ph288:                                        ; preds = %.preheader263, %.lr.ph288
  %253 = phi i64 [ %270, %.lr.ph288 ], [ %252, %.preheader263 ]
  %.3287 = phi i64 [ %269, %.lr.ph288 ], [ 0, %.preheader263 ]
  %254 = add nsw i64 %253, -1
  %255 = load ptr, ptr %72, align 8, !tbaa !11
  %256 = getelementptr inbounds double, ptr %255, i64 %.3287
  %257 = load ptr, ptr %79, align 8, !tbaa !11
  %258 = getelementptr inbounds ptr, ptr %257, i64 %.3287
  %259 = load ptr, ptr %258, align 8, !tbaa !12
  %260 = getelementptr inbounds double, ptr %259, i64 %.3287
  %261 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.3287, i64 noundef %254)
  %262 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %256, i64 noundef 1, ptr noundef %260, i64 noundef 1, i64 noundef %261)
  %263 = load ptr, ptr %70, align 8, !tbaa !11
  %264 = getelementptr inbounds double, ptr %263, i64 %.3287
  %265 = load double, ptr %264, align 8, !tbaa !14
  %266 = fadd double %262, %265
  %267 = load ptr, ptr %71, align 8, !tbaa !11
  %268 = getelementptr inbounds double, ptr %267, i64 %.3287
  store double %266, ptr %268, align 8, !tbaa !14
  %269 = add nuw nsw i64 %.3287, 1
  %270 = load i64, ptr %12, align 8, !tbaa !5
  %.not258.not = icmp slt i64 %269, %270
  br i1 %.not258.not, label %.lr.ph288, label %._crit_edge289, !llvm.loop !48

._crit_edge289:                                   ; preds = %.lr.ph288, %.preheader263
  call void @_ZN11alglib_impl12mlpgradbatchEPNS_20multilayerperceptronEPKNS_9ae_matrixElPdPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef nonnull %73, ptr noundef nonnull %14, ptr noundef %7)
  %271 = load i64, ptr %12, align 8, !tbaa !5
  %.not259.not290 = icmp sgt i64 %271, 0
  br i1 %.not259.not290, label %.lr.ph293.preheader, label %.preheader.thread

.lr.ph293.preheader:                              ; preds = %._crit_edge289
  %xtraiter340 = and i64 %271, 3
  %272 = icmp ult i64 %271, 4
  br i1 %272, label %.preheader.unr-lcssa, label %.lr.ph293.preheader.new

.lr.ph293.preheader.new:                          ; preds = %.lr.ph293.preheader
  %unroll_iter343 = and i64 %271, 9223372036854775804
  br label %.lr.ph293

.preheader.thread:                                ; preds = %._crit_edge289
  %273 = add nsw i64 %271, -1
  br label %._crit_edge297

.preheader.unr-lcssa:                             ; preds = %.lr.ph293, %.lr.ph293.preheader
  %.4291.unr = phi i64 [ 0, %.lr.ph293.preheader ], [ %289, %.lr.ph293 ]
  %lcmp.mod342.not = icmp eq i64 %xtraiter340, 0
  br i1 %lcmp.mod342.not, label %.preheader, label %.lr.ph293.epil

.lr.ph293.epil:                                   ; preds = %.preheader.unr-lcssa, %.lr.ph293.epil
  %.4291.epil = phi i64 [ %276, %.lr.ph293.epil ], [ %.4291.unr, %.preheader.unr-lcssa ]
  %epil.iter341 = phi i64 [ %epil.iter341.next, %.lr.ph293.epil ], [ 0, %.preheader.unr-lcssa ]
  %274 = load ptr, ptr %76, align 8, !tbaa !11
  %275 = getelementptr inbounds double, ptr %274, i64 %.4291.epil
  store double 0.000000e+00, ptr %275, align 8, !tbaa !14
  %276 = add nuw nsw i64 %.4291.epil, 1
  %epil.iter341.next = add i64 %epil.iter341, 1
  %epil.iter341.cmp.not = icmp eq i64 %epil.iter341.next, %xtraiter340
  br i1 %epil.iter341.cmp.not, label %.preheader, label %.lr.ph293.epil, !llvm.loop !49

.preheader:                                       ; preds = %.lr.ph293.epil, %.preheader.unr-lcssa
  %277 = add nsw i64 %271, -1
  br i1 %.not259.not290, label %.lr.ph296, label %._crit_edge297

.lr.ph293:                                        ; preds = %.lr.ph293, %.lr.ph293.preheader.new
  %.4291 = phi i64 [ 0, %.lr.ph293.preheader.new ], [ %289, %.lr.ph293 ]
  %niter344 = phi i64 [ 0, %.lr.ph293.preheader.new ], [ %niter344.next.3, %.lr.ph293 ]
  %278 = load ptr, ptr %76, align 8, !tbaa !11
  %279 = getelementptr inbounds double, ptr %278, i64 %.4291
  store double 0.000000e+00, ptr %279, align 8, !tbaa !14
  %280 = or disjoint i64 %.4291, 1
  %281 = load ptr, ptr %76, align 8, !tbaa !11
  %282 = getelementptr inbounds double, ptr %281, i64 %280
  store double 0.000000e+00, ptr %282, align 8, !tbaa !14
  %283 = or disjoint i64 %.4291, 2
  %284 = load ptr, ptr %76, align 8, !tbaa !11
  %285 = getelementptr inbounds double, ptr %284, i64 %283
  store double 0.000000e+00, ptr %285, align 8, !tbaa !14
  %286 = or disjoint i64 %.4291, 3
  %287 = load ptr, ptr %76, align 8, !tbaa !11
  %288 = getelementptr inbounds double, ptr %287, i64 %286
  store double 0.000000e+00, ptr %288, align 8, !tbaa !14
  %289 = add nuw nsw i64 %.4291, 4
  %niter344.next.3 = add i64 %niter344, 4
  %niter344.ncmp.3 = icmp eq i64 %niter344.next.3, %unroll_iter343
  br i1 %niter344.ncmp.3, label %.preheader.unr-lcssa, label %.lr.ph293, !llvm.loop !50

.lr.ph296:                                        ; preds = %.preheader, %.lr.ph296
  %290 = phi i64 [ %303, %.lr.ph296 ], [ %277, %.preheader ]
  %.5295 = phi i64 [ %301, %.lr.ph296 ], [ 0, %.preheader ]
  %291 = load ptr, ptr %77, align 8, !tbaa !11
  %292 = getelementptr inbounds double, ptr %291, i64 %.5295
  %293 = load double, ptr %292, align 8, !tbaa !14
  %294 = load ptr, ptr %76, align 8, !tbaa !11
  %295 = getelementptr inbounds double, ptr %294, i64 %.5295
  %296 = load ptr, ptr %79, align 8, !tbaa !11
  %297 = getelementptr inbounds ptr, ptr %296, i64 %.5295
  %298 = load ptr, ptr %297, align 8, !tbaa !12
  %299 = getelementptr inbounds double, ptr %298, i64 %.5295
  %300 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.5295, i64 noundef %290)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %295, i64 noundef 1, ptr noundef %299, i64 noundef 1, i64 noundef %300, double noundef %293)
  %301 = add nuw nsw i64 %.5295, 1
  %302 = load i64, ptr %12, align 8, !tbaa !5
  %303 = add nsw i64 %302, -1
  %.not260.not = icmp slt i64 %301, %302
  br i1 %.not260.not, label %.lr.ph296, label %._crit_edge297, !llvm.loop !51

._crit_edge297:                                   ; preds = %.lr.ph296, %.preheader.thread, %.preheader
  %.lcssa266 = phi i64 [ %277, %.preheader ], [ %273, %.preheader.thread ], [ %303, %.lr.ph296 ]
  %304 = load ptr, ptr %71, align 8, !tbaa !11
  %305 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.lcssa266)
  %306 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %304, i64 noundef 1, ptr noundef %304, i64 noundef 1, i64 noundef %305)
  %307 = load double, ptr %73, align 8, !tbaa !16
  %308 = call double @llvm.fmuladd.f64(double %75, double %306, double %307)
  store double %308, ptr %73, align 8, !tbaa !16
  %309 = load i64, ptr %12, align 8, !tbaa !5
  %.not261.not299 = icmp sgt i64 %309, 0
  br i1 %.not261.not299, label %.lr.ph302, label %._crit_edge303

.lr.ph302:                                        ; preds = %._crit_edge297, %.lr.ph302
  %310 = phi i64 [ %324, %.lr.ph302 ], [ %309, %._crit_edge297 ]
  %.6300 = phi i64 [ %323, %.lr.ph302 ], [ 0, %._crit_edge297 ]
  %311 = add nsw i64 %310, -1
  %312 = load ptr, ptr %71, align 8, !tbaa !11
  %313 = getelementptr inbounds double, ptr %312, i64 %.6300
  %314 = load double, ptr %313, align 8, !tbaa !14
  %315 = fmul double %58, %314
  %316 = load ptr, ptr %76, align 8, !tbaa !11
  %317 = getelementptr inbounds double, ptr %316, i64 %.6300
  %318 = load ptr, ptr %79, align 8, !tbaa !11
  %319 = getelementptr inbounds ptr, ptr %318, i64 %.6300
  %320 = load ptr, ptr %319, align 8, !tbaa !12
  %321 = getelementptr inbounds double, ptr %320, i64 %.6300
  %322 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.6300, i64 noundef %311)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %317, i64 noundef 1, ptr noundef %321, i64 noundef 1, i64 noundef %322, double noundef %315)
  %323 = add nuw nsw i64 %.6300, 1
  %324 = load i64, ptr %12, align 8, !tbaa !5
  %.not261.not = icmp slt i64 %323, %324
  br i1 %.not261.not, label %.lr.ph302, label %._crit_edge303, !llvm.loop !52

._crit_edge303:                                   ; preds = %.lr.ph302, %._crit_edge297
  %325 = load i64, ptr %59, align 8, !tbaa !33
  %326 = add nsw i64 %325, 1
  store i64 %326, ptr %59, align 8, !tbaa !33
  %327 = call noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef %7)
  br i1 %327, label %.preheader263, label %._crit_edge304, !llvm.loop !53

._crit_edge304:                                   ; preds = %._crit_edge303, %._crit_edge284
  call void @_ZN11alglib_impl15minlbfgsresultsEPKNS_13minlbfgsstateEPNS_9ae_vectorEPNS_14minlbfgsreportEPNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef nonnull %25, ptr noundef nonnull %19, ptr noundef %7)
  %328 = load i64, ptr %12, align 8, !tbaa !5
  %.not256.not305 = icmp sgt i64 %328, 0
  br i1 %.not256.not305, label %.lr.ph308, label %._crit_edge309

.lr.ph308:                                        ; preds = %._crit_edge304, %.lr.ph308
  %329 = phi i64 [ %346, %.lr.ph308 ], [ %328, %._crit_edge304 ]
  %.7306 = phi i64 [ %345, %.lr.ph308 ], [ 0, %._crit_edge304 ]
  %330 = add nsw i64 %329, -1
  %331 = load ptr, ptr %81, align 8, !tbaa !11
  %332 = getelementptr inbounds double, ptr %331, i64 %.7306
  %333 = load ptr, ptr %79, align 8, !tbaa !11
  %334 = getelementptr inbounds ptr, ptr %333, i64 %.7306
  %335 = load ptr, ptr %334, align 8, !tbaa !12
  %336 = getelementptr inbounds double, ptr %335, i64 %.7306
  %337 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.7306, i64 noundef %330)
  %338 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %332, i64 noundef 1, ptr noundef %336, i64 noundef 1, i64 noundef %337)
  %339 = load ptr, ptr %70, align 8, !tbaa !11
  %340 = getelementptr inbounds double, ptr %339, i64 %.7306
  %341 = load double, ptr %340, align 8, !tbaa !14
  %342 = fadd double %338, %341
  %343 = load ptr, ptr %71, align 8, !tbaa !11
  %344 = getelementptr inbounds double, ptr %343, i64 %.7306
  store double %342, ptr %344, align 8, !tbaa !14
  %345 = add nuw nsw i64 %.7306, 1
  %346 = load i64, ptr %12, align 8, !tbaa !5
  %.not256.not = icmp slt i64 %345, %346
  br i1 %.not256.not, label %.lr.ph308, label %._crit_edge309, !llvm.loop !54

._crit_edge309:                                   ; preds = %.lr.ph308, %._crit_edge304
  call void @_ZN11alglib_impl15mlphessianbatchEPNS_20multilayerperceptronEPKNS_9ae_matrixElPdPNS_9ae_vectorEPS2_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %16, ptr noundef %7)
  %347 = load ptr, ptr %71, align 8, !tbaa !11
  %348 = load i64, ptr %12, align 8, !tbaa !5
  %349 = add nsw i64 %348, -1
  %350 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %349)
  %351 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %347, i64 noundef 1, ptr noundef %347, i64 noundef 1, i64 noundef %350)
  %352 = load double, ptr %13, align 8, !tbaa !14
  %353 = call double @llvm.fmuladd.f64(double %75, double %351, double %352)
  store double %353, ptr %13, align 8, !tbaa !14
  %354 = load ptr, ptr %77, align 8, !tbaa !11
  %355 = load ptr, ptr %71, align 8, !tbaa !11
  %356 = load i64, ptr %12, align 8, !tbaa !5
  %357 = add nsw i64 %356, -1
  %358 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %357)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %354, i64 noundef 1, ptr noundef %355, i64 noundef 1, i64 noundef %358, double noundef %58)
  %359 = load i64, ptr %12, align 8, !tbaa !5
  %.not257.not310 = icmp sgt i64 %359, 0
  br i1 %.not257.not310, label %.lr.ph313.preheader, label %._crit_edge314

.lr.ph313.preheader:                              ; preds = %._crit_edge309
  %xtraiter345 = and i64 %359, 1
  %360 = icmp eq i64 %359, 1
  br i1 %360, label %._crit_edge314.loopexit.unr-lcssa, label %.lr.ph313.preheader.new

.lr.ph313.preheader.new:                          ; preds = %.lr.ph313.preheader
  %unroll_iter348 = and i64 %359, 9223372036854775806
  br label %.lr.ph313

.lr.ph313:                                        ; preds = %.lr.ph313, %.lr.ph313.preheader.new
  %.1244311 = phi i64 [ 0, %.lr.ph313.preheader.new ], [ %374, %.lr.ph313 ]
  %niter349 = phi i64 [ 0, %.lr.ph313.preheader.new ], [ %niter349.next.1, %.lr.ph313 ]
  %361 = load ptr, ptr %78, align 8, !tbaa !11
  %362 = getelementptr inbounds ptr, ptr %361, i64 %.1244311
  %363 = load ptr, ptr %362, align 8, !tbaa !12
  %364 = getelementptr inbounds double, ptr %363, i64 %.1244311
  %365 = load double, ptr %364, align 8, !tbaa !14
  %366 = fadd double %58, %365
  store double %366, ptr %364, align 8, !tbaa !14
  %367 = or disjoint i64 %.1244311, 1
  %368 = load ptr, ptr %78, align 8, !tbaa !11
  %369 = getelementptr inbounds ptr, ptr %368, i64 %367
  %370 = load ptr, ptr %369, align 8, !tbaa !12
  %371 = getelementptr inbounds double, ptr %370, i64 %367
  %372 = load double, ptr %371, align 8, !tbaa !14
  %373 = fadd double %58, %372
  store double %373, ptr %371, align 8, !tbaa !14
  %374 = add nuw nsw i64 %.1244311, 2
  %niter349.next.1 = add i64 %niter349, 2
  %niter349.ncmp.1 = icmp eq i64 %niter349.next.1, %unroll_iter348
  br i1 %niter349.ncmp.1, label %._crit_edge314.loopexit.unr-lcssa, label %.lr.ph313, !llvm.loop !55

._crit_edge314.loopexit.unr-lcssa:                ; preds = %.lr.ph313, %.lr.ph313.preheader
  %.1244311.unr = phi i64 [ 0, %.lr.ph313.preheader ], [ %374, %.lr.ph313 ]
  %lcmp.mod347.not = icmp eq i64 %xtraiter345, 0
  br i1 %lcmp.mod347.not, label %._crit_edge314, label %.lr.ph313.epil

.lr.ph313.epil:                                   ; preds = %._crit_edge314.loopexit.unr-lcssa
  %375 = load ptr, ptr %78, align 8, !tbaa !11
  %376 = getelementptr inbounds ptr, ptr %375, i64 %.1244311.unr
  %377 = load ptr, ptr %376, align 8, !tbaa !12
  %378 = getelementptr inbounds double, ptr %377, i64 %.1244311.unr
  %379 = load double, ptr %378, align 8, !tbaa !14
  %380 = fadd double %58, %379
  store double %380, ptr %378, align 8, !tbaa !14
  br label %._crit_edge314

._crit_edge314:                                   ; preds = %.lr.ph313.epil, %._crit_edge314.loopexit.unr-lcssa, %._crit_edge309
  %381 = load i64, ptr %60, align 8, !tbaa !37
  %382 = add nsw i64 %381, 1
  store i64 %382, ptr %60, align 8, !tbaa !37
  %383 = fmul double %.0241, 3.000000e-01
  br label %.backedge

384:                                              ; preds = %189
  %385 = load ptr, ptr %71, align 8, !tbaa !11
  %386 = load i64, ptr %12, align 8, !tbaa !5
  %387 = add nsw i64 %386, -1
  %388 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %387)
  %389 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %385, i64 noundef 1, ptr noundef %385, i64 noundef 1, i64 noundef %388)
  %390 = call noundef double @_ZN11alglib_impl8mlperrorEPNS_20multilayerperceptronEPKNS_9ae_matrixElPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %2, ptr noundef %7)
  %391 = call double @llvm.fmuladd.f64(double %75, double %389, double %390)
  store double %391, ptr %13, align 8, !tbaa !14
  %392 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %391, double noundef %.0317)
  br i1 %392, label %393, label %400

393:                                              ; preds = %384
  %394 = load double, ptr %13, align 8, !tbaa !14
  %395 = load ptr, ptr %82, align 8, !tbaa !11
  %396 = load ptr, ptr %71, align 8, !tbaa !11
  %397 = load i64, ptr %12, align 8, !tbaa !5
  %398 = add nsw i64 %397, -1
  %399 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %398)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %395, i64 noundef 1, ptr noundef %396, i64 noundef 1, i64 noundef %399)
  br label %400

400:                                              ; preds = %384, %393
  %.1 = phi double [ %394, %393 ], [ %.0317, %384 ]
  %401 = add nuw i64 %.0238316, 1
  %exitcond329.not = icmp eq i64 %.0238316, %4
  br i1 %exitcond329.not, label %._crit_edge320, label %83, !llvm.loop !56

._crit_edge320:                                   ; preds = %400
  %402 = getelementptr inbounds i8, ptr %0, i64 328
  %403 = load ptr, ptr %402, align 8, !tbaa !11
  %404 = getelementptr inbounds i8, ptr %27, i64 56
  %405 = load ptr, ptr %404, align 8, !tbaa !11
  %406 = load i64, ptr %12, align 8, !tbaa !5
  %407 = add nsw i64 %406, -1
  %408 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %407)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %403, i64 noundef 1, ptr noundef %405, i64 noundef 1, i64 noundef %408)
  br label %409

409:                                              ; preds = %._crit_edge320, %227, %56, %32
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %7)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 10024, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  ret void
}

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

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 #4

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

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #4

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #4

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #4

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

declare void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, double noundef) local_unnamed_addr #4

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #4

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

declare noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #4

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

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

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

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

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

declare void @_ZN11alglib_impl8ae_v_addEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #4

declare void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef, i64 noundef, i64 noundef, double noundef) local_unnamed_addr #4

declare void @_ZN11alglib_impl23_densesolverreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #4

declare void @_ZN11alglib_impl22spdmatrixcholeskysolveEPKNS_9ae_matrixElbPKNS_9ae_vectorEPS3_PNS_17densesolverreportEPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

declare void @_ZN11alglib_impl20_minlbfgsreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #4

declare void @_ZN11alglib_impl19_minlbfgsstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #4

declare void @_ZN11alglib_impl18_matinvreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #4

declare void @_ZN11alglib_impl14minlbfgscreateEllPKNS_9ae_vectorEPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN11alglib_impl15minlbfgssetcondEPNS_13minlbfgsstateEdddlPNS_8ae_stateE(ptr noundef, double noundef, double noundef, double noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN11alglib_impl15minlbfgsresultsEPKNS_13minlbfgsstateEPNS_9ae_vectorEPNS_14minlbfgsreportEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN11alglib_impl16rmatrixtrinverseEPNS_9ae_matrixElbbPNS_12matinvreportEPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN11alglib_impl15minlbfgscreatexEllPKNS_9ae_vectorEldPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!17, !15, i64 2296}
!17 = !{!"_ZTSN11alglib_impl13minlbfgsstateE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !6, i64 40, !18, i64 48, !15, i64 56, !19, i64 64, !15, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !19, i64 176, !21, i64 240, !21, i64 320, !19, i64 400, !19, i64 464, !19, i64 528, !15, i64 592, !15, i64 600, !19, i64 608, !15, i64 672, !15, i64 680, !19, i64 688, !6, i64 752, !15, i64 760, !21, i64 768, !19, i64 848, !19, i64 912, !19, i64 976, !21, i64 1040, !6, i64 1120, !22, i64 1128, !23, i64 1592, !15, i64 2040, !15, i64 2048, !15, i64 2056, !15, i64 2064, !15, i64 2072, !15, i64 2080, !19, i64 2088, !19, i64 2152, !6, i64 2216, !18, i64 2224, !19, i64 2232, !15, i64 2296, !19, i64 2304, !18, i64 2368, !18, i64 2369, !18, i64 2370, !6, i64 2376, !19, i64 2384, !15, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !19, i64 2496, !19, i64 2560, !19, i64 2624, !24, i64 2688, !19, i64 3056, !19, i64 3120, !19, i64 3184, !19, i64 3248, !21, i64 3312, !24, i64 3392, !15, i64 3760, !25, i64 3768, !6, i64 4032, !6, i64 4040, !6, i64 4048, !27, i64 4056, !6, i64 4248, !28, i64 4256, !19, i64 9960}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN11alglib_impl9ae_vectorE", !6, i64 0, !6, i64 8, !18, i64 16, !20, i64 24, !7, i64 56}
!20 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!21 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !18, i64 32, !20, i64 40, !7, i64 72}
!22 = !{!"_ZTSN11alglib_impl12precbuflbfgsE", !19, i64 0, !19, i64 64, !19, i64 128, !21, i64 192, !19, i64 272, !19, i64 336, !19, i64 400}
!23 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !6, i64 0, !6, i64 8, !19, i64 16, !21, i64 80, !19, i64 160, !21, i64 224, !21, i64 304, !19, i64 384}
!24 = !{!"_ZTSN11alglib_impl12sparsematrixE", !19, i64 0, !19, i64 64, !19, i64 128, !19, i64 192, !19, i64 256, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360}
!25 = !{!"_ZTSN11alglib_impl10rcommstateE", !26, i64 0, !19, i64 8, !19, i64 72, !19, i64 136, !19, i64 200}
!26 = !{!"int", !7, i64 0}
!27 = !{!"_ZTSN11alglib_impl11linminstateE", !18, i64 0, !18, i64 1, !6, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184}
!28 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !6, i64 0, !6, i64 8, !18, i64 16, !19, i64 24, !19, i64 88, !6, i64 152, !19, i64 160, !19, i64 224, !19, i64 288, !21, i64 352, !19, i64 432, !19, i64 496, !6, i64 560, !6, i64 568, !6, i64 576, !15, i64 584, !6, i64 592, !19, i64 600, !19, i64 664, !15, i64 728, !19, i64 736, !19, i64 800, !15, i64 864, !21, i64 872, !21, i64 952, !21, i64 1032, !19, i64 1112, !19, i64 1176, !25, i64 1240, !18, i64 1504, !18, i64 1505, !6, i64 1512, !6, i64 1520, !15, i64 1528, !15, i64 1536, !18, i64 1544, !29, i64 1552, !15, i64 1848, !15, i64 1856, !30, i64 1864, !30, i64 2184, !15, i64 2504, !15, i64 2512, !31, i64 2520, !31, i64 2840, !15, i64 3160, !15, i64 3168, !32, i64 3176, !32, i64 3504, !18, i64 3832, !19, i64 3840, !19, i64 3904, !21, i64 3968, !25, i64 4048, !19, i64 4312, !19, i64 4376, !19, i64 4440, !19, i64 4504, !19, i64 4568, !19, i64 4632, !19, i64 4696, !19, i64 4760, !21, i64 4824, !21, i64 4904, !19, i64 4984, !19, i64 5048, !19, i64 5112, !19, i64 5176, !19, i64 5240, !19, i64 5304, !19, i64 5368, !19, i64 5432, !19, i64 5496, !19, i64 5560, !21, i64 5624}
!29 = !{!"_ZTSN11alglib_impl14optguardreportE", !18, i64 0, !18, i64 1, !6, i64 8, !15, i64 16, !18, i64 24, !18, i64 25, !18, i64 26, !6, i64 32, !15, i64 40, !18, i64 48, !6, i64 56, !6, i64 64, !19, i64 72, !21, i64 136, !21, i64 216}
!30 = !{!"_ZTSN11alglib_impl19optguardnonc0reportE", !18, i64 0, !6, i64 8, !19, i64 16, !19, i64 80, !6, i64 144, !19, i64 152, !19, i64 216, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312}
!31 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !18, i64 0, !6, i64 8, !19, i64 16, !19, i64 80, !6, i64 144, !19, i64 152, !19, i64 216, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312}
!32 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !18, i64 0, !6, i64 8, !6, i64 16, !19, i64 24, !19, i64 88, !6, i64 152, !19, i64 160, !19, i64 224, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320}
!33 = !{!34, !6, i64 40}
!34 = !{!"_ZTSN11alglib_impl9mlpreportE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!35 = distinct !{!35, !10}
!36 = distinct !{!36, !10}
!37 = !{!34, !6, i64 48}
!38 = distinct !{!38, !10}
!39 = !{!34, !6, i64 56}
!40 = distinct !{!40, !10}
!41 = !{!42, !6, i64 0}
!42 = !{!"_ZTSN11alglib_impl17densesolverreportE", !6, i64 0, !15, i64 8, !15, i64 16}
!43 = !{!44, !6, i64 0}
!44 = !{!"_ZTSN11alglib_impl12matinvreportE", !6, i64 0, !15, i64 8, !15, i64 16}
!45 = distinct !{!45, !10}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.unroll.disable"}
!48 = distinct !{!48, !10}
!49 = distinct !{!49, !47}
!50 = distinct !{!50, !10}
!51 = distinct !{!51, !10}
!52 = distinct !{!52, !10}
!53 = distinct !{!53, !10}
!54 = distinct !{!54, !10}
!55 = distinct !{!55, !10}
!56 = distinct !{!56, !10}


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