; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (dataanalysis)

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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"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, %"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, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, 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::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", 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, i8, i8, double, double, i8, %"struct.alglib_impl::optguardreport", 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::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 }
%"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 }
%"struct.alglib_impl::matinvreport" = type { double, double }
%"struct.alglib_impl::densesolverreport" = type { 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::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_shared_pool" = type { %"struct.alglib_impl::ae_lock", ptr, ptr, ptr, ptr, i64, ptr, 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_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_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_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl12mlpgradbatchEPNS_20multilayerperceptronEPNS_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_20multilayerperceptronEPNS_9ae_matrixElPdPNS_9ae_vectorES3_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_20multilayerperceptronEPNS_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 i64, align 8
  %51 = alloca %"struct.alglib_impl::matinvreport", align 8
  %52 = alloca i64, align 8
  %53 = alloca %"struct.alglib_impl::densesolverreport", align 8
  %54 = 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 6872, 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 8, ptr %50) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #6
  %55 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %55, 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 6872, 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 %51, i8 0, i64 16, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %53, i8 0, i64 16, i1 false)
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  store i64 0, ptr %56, align 8, !tbaa !9
  %57 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_mlpreport_clearEPv(ptr noundef %57)
  %58 = 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 %58, i1 noundef zeroext true)
  %59 = 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 %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 %31, 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_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %32, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %61, i1 noundef zeroext true)
  %62 = 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 %62, i1 noundef zeroext true)
  %63 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20_minlbfgsreport_initEPvPNS_8ae_stateEb(ptr noundef %39, ptr noundef %63, i1 noundef zeroext true)
  %64 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl19_minlbfgsstate_initEPvPNS_8ae_stateEb(ptr noundef %40, 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 %41, 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 %42, 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 %43, 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 %44, 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 %45, 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_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %46, i64 noundef 0, i64 noundef 3, ptr noundef %70, i1 noundef zeroext true)
  %71 = 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 %71, i1 noundef zeroext true)
  %72 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_matinvreport_initEPvPNS_8ae_stateEb(ptr noundef %51, ptr noundef %72, i1 noundef zeroext true)
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23_densesolverreport_initEPvPNS_8ae_stateEb(ptr noundef %53, ptr noundef %73, i1 noundef zeroext true)
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %74, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %75)
  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
  %76 = load i64, ptr %11, align 8, !tbaa !9
  %77 = icmp sle i64 %76, 0
  br i1 %77, label %81, label %78

78:                                               ; preds = %8
  %79 = load i64, ptr %13, align 8, !tbaa !9
  %80 = icmp slt i64 %79, 1
  br i1 %80, label %81, label %84

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

84:                                               ; preds = %78
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = load ptr, ptr %16, align 8, !tbaa !5
  %87 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %85, ptr noundef %86)
  br i1 %87, label %88, label %129

88:                                               ; preds = %84
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %125, %88
  %90 = load i64, ptr %22, align 8, !tbaa !9
  %91 = load i64, ptr %11, align 8, !tbaa !9
  %92 = sub nsw i64 %91, 1
  %93 = icmp sle i64 %90, %92
  br i1 %93, label %94, label %128

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

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

121:                                              ; preds = %107, %94
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  store i64 -2, ptr %122, align 8, !tbaa !9
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %123)
  store i32 1, ptr %54, align 4
  br label %870

124:                                              ; preds = %107
  br label %125

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

128:                                              ; preds = %89
  br label %129

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

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

187:                                              ; preds = %183
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %188, ptr noundef %189)
  %190 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %191 = load ptr, ptr %190, align 8, !tbaa !13
  %192 = getelementptr inbounds double, ptr %191, i64 0
  %193 = load ptr, ptr %9, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %193, i32 0, i32 6
  %195 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %194, i32 0, i32 4
  %196 = load ptr, ptr %195, align 8, !tbaa !13
  %197 = getelementptr inbounds double, ptr %196, i64 0
  %198 = load i64, ptr %20, align 8, !tbaa !9
  %199 = sub nsw i64 %198, 1
  %200 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %199)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %192, i64 noundef 1, ptr noundef %197, i64 noundef 1, i64 noundef %200)
  %201 = load i64, ptr %20, align 8, !tbaa !9
  %202 = load i64, ptr %20, align 8, !tbaa !9
  %203 = load ptr, ptr %16, align 8, !tbaa !5
  %204 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %202, i64 noundef 5, ptr noundef %203)
  %205 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14minlbfgscreateEllPNS_9ae_vectorEPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef %201, i64 noundef %204, ptr noundef %43, ptr noundef %40, ptr noundef %205)
  %206 = load i64, ptr %20, align 8, !tbaa !9
  %207 = load ptr, ptr %16, align 8, !tbaa !5
  %208 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef 25, i64 noundef %206, ptr noundef %207)
  %209 = 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 %208, ptr noundef %209)
  br label %210

210:                                              ; preds = %213, %187
  %211 = load ptr, ptr %16, align 8, !tbaa !5
  %212 = call noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef %40, ptr noundef %211)
  br i1 %212, label %213, label %272

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

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

320:                                              ; preds = %343, %272
  %321 = load i64, ptr %23, align 8, !tbaa !9
  %322 = load i64, ptr %20, align 8, !tbaa !9
  %323 = sub nsw i64 %322, 1
  %324 = icmp sle i64 %321, %323
  br i1 %324, label %325, label %346

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

343:                                              ; preds = %325
  %344 = load i64, ptr %23, align 8, !tbaa !9
  %345 = add nsw i64 %344, 1
  store i64 %345, ptr %23, align 8, !tbaa !9
  br label %320, !llvm.loop !36

346:                                              ; preds = %320
  %347 = load ptr, ptr %15, align 8, !tbaa !5
  %348 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %347, i32 0, i32 6
  %349 = load i64, ptr %348, align 8, !tbaa !18
  %350 = add nsw i64 %349, 1
  %351 = load ptr, ptr %15, align 8, !tbaa !5
  %352 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %351, i32 0, i32 6
  store i64 %350, ptr %352, 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 %353

353:                                              ; preds = %803, %496, %421, %408, %346
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %354

354:                                              ; preds = %392, %353
  %355 = load i64, ptr %22, align 8, !tbaa !9
  %356 = load i64, ptr %20, align 8, !tbaa !9
  %357 = sub nsw i64 %356, 1
  %358 = icmp sle i64 %355, %357
  br i1 %358, label %359, label %395

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

392:                                              ; preds = %359
  %393 = load i64, ptr %22, align 8, !tbaa !9
  %394 = add nsw i64 %393, 1
  store i64 %394, ptr %22, align 8, !tbaa !9
  br label %354, !llvm.loop !37

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

408:                                              ; preds = %395
  %409 = load double, ptr %36, align 8, !tbaa !11
  %410 = load double, ptr %37, align 8, !tbaa !11
  %411 = fmul double %409, %410
  %412 = load double, ptr %35, align 8, !tbaa !11
  %413 = fmul double %411, %412
  store double %413, ptr %36, align 8, !tbaa !11
  %414 = load double, ptr %35, align 8, !tbaa !11
  %415 = fmul double %414, 2.000000e+00
  store double %415, ptr %35, align 8, !tbaa !11
  br label %353, !llvm.loop !41

416:                                              ; preds = %395
  %417 = load i64, ptr %20, align 8, !tbaa !9
  %418 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl22spdmatrixcholeskysolveEPNS_9ae_matrixElbPNS_9ae_vectorEPlPNS_17densesolverreportES3_PNS_8ae_stateE(ptr noundef %32, i64 noundef %417, i1 noundef zeroext true, ptr noundef %29, ptr noundef %52, ptr noundef %53, ptr noundef %44, ptr noundef %418)
  %419 = load i64, ptr %52, align 8, !tbaa !9
  %420 = icmp slt i64 %419, 0
  br i1 %420, label %421, label %429

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

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

491:                                              ; preds = %429
  br label %813

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

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

504:                                              ; preds = %492
  %505 = load i64, ptr %20, align 8, !tbaa !9
  %506 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixtrinverseEPNS_9ae_matrixElbbPlPNS_12matinvreportEPNS_8ae_stateE(ptr noundef %32, i64 noundef %505, i1 noundef zeroext true, i1 noundef zeroext false, ptr noundef %50, ptr noundef %51, ptr noundef %506)
  %507 = load i64, ptr %50, align 8, !tbaa !9
  %508 = icmp sle i64 %507, 0
  br i1 %508, label %509, label %512

509:                                              ; preds = %504
  %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 %54, align 4
  br label %870

512:                                              ; preds = %504
  %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 !42

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_impl15minlbfgscreatexEllPNS_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 43
  %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 !43

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 44
  %590 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl12mlpgradbatchEPNS_20multilayerperceptronEPNS_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 45
  %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 !44

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 45
  %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 !45

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 44
  %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 44
  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 45
  %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 !46

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 !47

701:                                              ; preds = %542
  %702 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl15minlbfgsresultsEPNS_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 !48

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_20multilayerperceptronEPNS_9ae_matrixElPdPNS_9ae_vectorES3_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 !49

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 %353, !llvm.loop !41

813:                                              ; preds = %491
  %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_20multilayerperceptronEPNS_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 %183, !llvm.loop !50

857:                                              ; preds = %183
  %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 %54, align 4
  br label %870

870:                                              ; preds = %857, %509, %121, %81
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 8, 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 6872, 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 %54, 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_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #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_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_impl22spdmatrixcholeskysolveEPNS_9ae_matrixElbPNS_9ae_vectorEPlPNS_17densesolverreportES3_PNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, 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_impl14minlbfgscreateEllPNS_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_impl15minlbfgsresultsEPNS_13minlbfgsstateEPNS_9ae_vectorEPNS_14minlbfgsreportEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

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

declare void @_ZN11alglib_impl15minlbfgscreatexEllPNS_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 2264}
!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, !23, i64 600, !12, i64 664, !12, i64 672, !23, i64 680, !10, i64 744, !12, i64 752, !25, i64 760, !23, i64 840, !23, i64 904, !23, i64 968, !25, i64 1032, !10, i64 1112, !26, i64 1120, !27, i64 1584, !12, i64 2032, !12, i64 2040, !12, i64 2048, !12, i64 2056, !12, i64 2064, !23, i64 2072, !23, i64 2136, !23, i64 2200, !12, i64 2264, !23, i64 2272, !22, i64 2336, !22, i64 2337, !22, i64 2338, !22, i64 2339, !12, i64 2344, !28, i64 2352, !10, i64 2616, !10, i64 2624, !10, i64 2632, !30, i64 2640, !10, i64 2832, !31, i64 2840, !23, i64 6808}
!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_impl10rcommstateE", !29, i64 0, !23, i64 8, !23, i64 72, !23, i64 136, !23, i64 200}
!29 = !{!"int", !7, i64 0}
!30 = !{!"_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}
!31 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !10, i64 0, !10, i64 8, !22, i64 16, !23, i64 24, !10, i64 88, !23, i64 96, !23, i64 160, !23, i64 224, !25, i64 288, !23, i64 368, !23, i64 432, !10, i64 496, !22, i64 504, !22, i64 505, !12, i64 512, !12, i64 520, !22, i64 528, !32, i64 536, !12, i64 832, !12, i64 840, !33, i64 848, !33, i64 1152, !12, i64 1456, !12, i64 1464, !34, i64 1472, !34, i64 1784, !22, i64 2096, !23, i64 2104, !23, i64 2168, !25, i64 2232, !28, i64 2312, !23, i64 2576, !23, i64 2640, !23, i64 2704, !23, i64 2768, !23, i64 2832, !23, i64 2896, !23, i64 2960, !23, i64 3024, !25, i64 3088, !25, i64 3168, !23, i64 3248, !23, i64 3312, !23, i64 3376, !23, i64 3440, !23, i64 3504, !23, i64 3568, !23, i64 3632, !23, i64 3696, !23, i64 3760, !23, i64 3824, !25, i64 3888}
!32 = !{!"_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}
!33 = !{!"_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}
!34 = !{!"_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}
!35 = distinct !{!35, !15}
!36 = distinct !{!36, !15}
!37 = distinct !{!37, !15}
!38 = !{!22, !22, i64 0}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = distinct !{!41, !15}
!42 = distinct !{!42, !15}
!43 = distinct !{!43, !15}
!44 = distinct !{!44, !15}
!45 = distinct !{!45, !15}
!46 = distinct !{!46, !15}
!47 = distinct !{!47, !15}
!48 = distinct !{!48, !15}
!49 = distinct !{!49, !15}
!50 = distinct !{!50, !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, %"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, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, 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::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", 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, i8, i8, double, double, i8, %"struct.alglib_impl::optguardreport", 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::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 }
%"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 }
%"struct.alglib_impl::matinvreport" = type { double, double }
%"struct.alglib_impl::densesolverreport" = type { 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_20multilayerperceptronEPNS_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_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_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_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl8mlperrorEPNS_20multilayerperceptronEPNS_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_20multilayerperceptronEPNS_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_20multilayerperceptronEPNS_9ae_matrixElPdPNS_9ae_vectorES3_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_20multilayerperceptronEPNS_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 i64, align 8
  %29 = alloca %"struct.alglib_impl::matinvreport", align 8
  %30 = alloca i64, align 8
  %31 = 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 6872, 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 8, ptr nonnull %28) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #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(6872) %20, i8 0, i64 6872, 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(16) %29, i8 0, i64 16, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %31, i8 0, i64 16, 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 %29, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl23_densesolverreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %31, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %7)
  %32 = icmp slt i64 %2, 1
  %33 = icmp slt i64 %4, 1
  %or.cond = or i1 %32, %33
  br i1 %or.cond, label %34, label %35

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

35:                                               ; preds = %8
  %36 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %7)
  br i1 %36, label %.lr.ph, label %.lr.ph319

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

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

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

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

58:                                               ; preds = %49, %40
  store i64 -2, ptr %5, align 8, !tbaa !5
  br label %411

.lr.ph319:                                        ; preds = %38, %35
  %59 = load double, ptr @_ZN11alglib_implL17mlptrain_mindecayE, align 8, !tbaa !14
  %60 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %3, double noundef %59, ptr noundef %7)
  store i64 2, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %6, i64 40
  %62 = getelementptr inbounds i8, ptr %6, i64 48
  %63 = getelementptr inbounds i8, ptr %6, i64 56
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %61, i8 0, i64 24, i1 false)
  call void @_ZN11alglib_impl19mlpinitpreprocessorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %7)
  %64 = 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 %64, ptr noundef %7)
  %65 = 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 %65, i64 noundef %65, ptr noundef %7)
  %66 = 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 %66, 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 %23, 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 %24, 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 %27, i64 noundef %69, ptr noundef %7)
  %70 = 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 %70, ptr noundef %7)
  %71 = 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 %71, ptr noundef %7)
  %72 = getelementptr inbounds i8, ptr %23, i64 56
  %73 = getelementptr inbounds i8, ptr %0, i64 328
  %74 = getelementptr inbounds i8, ptr %20, i64 2256
  %75 = getelementptr inbounds i8, ptr %20, i64 2264
  %76 = getelementptr inbounds i8, ptr %20, i64 2272
  %77 = fmul double %60, 5.000000e-01
  %78 = getelementptr inbounds i8, ptr %20, i64 2328
  %79 = getelementptr inbounds i8, ptr %14, i64 56
  %80 = getelementptr inbounds i8, ptr %16, i64 72
  %81 = getelementptr inbounds i8, ptr %17, i64 72
  %82 = getelementptr inbounds i8, ptr %24, i64 56
  %83 = getelementptr inbounds i8, ptr %25, i64 56
  %84 = getelementptr inbounds i8, ptr %27, i64 56
  br label %85

85:                                               ; preds = %.lr.ph319, %402
  %.0317 = phi double [ 1.000000e+300, %.lr.ph319 ], [ %.1, %402 ]
  %.0238316 = phi i64 [ 1, %.lr.ph319 ], [ %403, %402 ]
  call void @_ZN11alglib_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %7)
  %86 = load ptr, ptr %72, align 8, !tbaa !11
  %87 = load ptr, ptr %73, align 8, !tbaa !11
  %88 = load i64, ptr %12, align 8, !tbaa !5
  %89 = add nsw i64 %88, -1
  %90 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %89)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %86, i64 noundef 1, ptr noundef %87, i64 noundef 1, i64 noundef %90)
  %91 = load i64, ptr %12, align 8, !tbaa !5
  %92 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %91, i64 noundef 5, ptr noundef %7)
  call void @_ZN11alglib_impl14minlbfgscreateEllPNS_9ae_vectorEPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef %91, i64 noundef %92, ptr noundef nonnull %23, ptr noundef nonnull %20, ptr noundef %7)
  %93 = load i64, ptr %12, align 8, !tbaa !5
  %94 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef 25, i64 noundef %93, 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 %94, ptr noundef %7)
  %95 = call noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef %7)
  br i1 %95, label %.lr.ph269, label %._crit_edge

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

._crit_edge:                                      ; preds = %.lr.ph269, %85
  call void @_ZN11alglib_impl15minlbfgsresultsEPNS_13minlbfgsstateEPNS_9ae_vectorEPNS_14minlbfgsreportEPNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef nonnull %23, ptr noundef nonnull %19, ptr noundef %7)
  %116 = load ptr, ptr %73, align 8, !tbaa !11
  %117 = load ptr, ptr %72, align 8, !tbaa !11
  %118 = load i64, ptr %12, align 8, !tbaa !5
  %119 = add nsw i64 %118, -1
  %120 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %119)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %116, i64 noundef 1, ptr noundef %117, i64 noundef 1, i64 noundef %120)
  call void @_ZN11alglib_impl15mlphessianbatchEPNS_20multilayerperceptronEPNS_9ae_matrixElPdPNS_9ae_vectorES3_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)
  %121 = load ptr, ptr %73, align 8, !tbaa !11
  %122 = load i64, ptr %12, align 8, !tbaa !5
  %123 = add nsw i64 %122, -1
  %124 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %123)
  %125 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %121, i64 noundef 1, ptr noundef %121, i64 noundef 1, i64 noundef %124)
  %126 = load double, ptr %13, align 8, !tbaa !14
  %127 = call double @llvm.fmuladd.f64(double %77, double %125, double %126)
  store double %127, ptr %13, align 8, !tbaa !14
  %128 = load ptr, ptr %79, align 8, !tbaa !11
  %129 = load ptr, ptr %73, align 8, !tbaa !11
  %130 = load i64, ptr %12, align 8, !tbaa !5
  %131 = add nsw i64 %130, -1
  %132 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %131)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %128, i64 noundef 1, ptr noundef %129, i64 noundef 1, i64 noundef %132, double noundef %60)
  %133 = load i64, ptr %12, align 8, !tbaa !5
  %.not253.not270 = icmp sgt i64 %133, 0
  br i1 %.not253.not270, label %.lr.ph273.preheader, label %._crit_edge274

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

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

.lr.ph273:                                        ; preds = %.lr.ph273, %.lr.ph273.preheader.new
  %.0243271 = phi i64 [ 0, %.lr.ph273.preheader.new ], [ %148, %.lr.ph273 ]
  %niter = phi i64 [ 0, %.lr.ph273.preheader.new ], [ %niter.next.1, %.lr.ph273 ]
  %135 = load ptr, ptr %80, align 8, !tbaa !11
  %136 = getelementptr inbounds ptr, ptr %135, i64 %.0243271
  %137 = load ptr, ptr %136, align 8, !tbaa !12
  %138 = getelementptr inbounds double, ptr %137, i64 %.0243271
  %139 = load double, ptr %138, align 8, !tbaa !14
  %140 = fadd double %60, %139
  store double %140, ptr %138, align 8, !tbaa !14
  %141 = or disjoint i64 %.0243271, 1
  %142 = load ptr, ptr %80, align 8, !tbaa !11
  %143 = getelementptr inbounds ptr, ptr %142, i64 %141
  %144 = load ptr, ptr %143, align 8, !tbaa !12
  %145 = getelementptr inbounds double, ptr %144, i64 %141
  %146 = load double, ptr %145, align 8, !tbaa !14
  %147 = fadd double %60, %146
  store double %147, ptr %145, align 8, !tbaa !14
  %148 = 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 !34

._crit_edge274.loopexit.unr-lcssa:                ; preds = %.lr.ph273, %.lr.ph273.preheader
  %.0243271.unr = phi i64 [ 0, %.lr.ph273.preheader ], [ %148, %.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
  %149 = load ptr, ptr %80, align 8, !tbaa !11
  %150 = getelementptr inbounds ptr, ptr %149, i64 %.0243271.unr
  %151 = load ptr, ptr %150, align 8, !tbaa !12
  %152 = getelementptr inbounds double, ptr %151, i64 %.0243271.unr
  %153 = load double, ptr %152, align 8, !tbaa !14
  %154 = fadd double %60, %153
  store double %154, ptr %152, align 8, !tbaa !14
  br label %._crit_edge274

._crit_edge274:                                   ; preds = %.lr.ph273.epil, %._crit_edge274.loopexit.unr-lcssa, %._crit_edge
  %155 = load i64, ptr %62, align 8, !tbaa !35
  %156 = add nsw i64 %155, 1
  store i64 %156, ptr %62, align 8, !tbaa !35
  br label %157

157:                                              ; preds = %.backedge, %._crit_edge274
  %158 = phi i64 [ %133, %._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 %158, 0
  br i1 %.not254.not275, label %.lr.ph278, label %._crit_edge279

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

._crit_edge279:                                   ; preds = %.lr.ph278, %157
  %.lcssa = phi i64 [ %158, %157 ], [ %175, %.lr.ph278 ]
  %176 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %.lcssa, i1 noundef zeroext true, ptr noundef %7)
  %177 = load i64, ptr %63, align 8, !tbaa !37
  %178 = add nsw i64 %177, 1
  store i64 %178, ptr %63, align 8, !tbaa !37
  br i1 %176, label %183, label %179

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

.backedge:                                        ; preds = %179, %187, %221, %._crit_edge314
  %.0242.be = phi double [ %190, %187 ], [ %224, %221 ], [ 2.000000e+00, %._crit_edge314 ], [ %182, %179 ]
  %.0241.be = phi double [ %189, %187 ], [ %223, %221 ], [ %385, %._crit_edge314 ], [ %181, %179 ]
  %.pre = load i64, ptr %12, align 8, !tbaa !5
  br label %157, !llvm.loop !38

183:                                              ; preds = %._crit_edge279
  %184 = load i64, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl22spdmatrixcholeskysolveEPNS_9ae_matrixElbPNS_9ae_vectorEPlPNS_17densesolverreportES3_PNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %184, i1 noundef zeroext true, ptr noundef nonnull %14, ptr noundef nonnull %30, ptr noundef nonnull %31, ptr noundef nonnull %24, ptr noundef %7)
  %185 = load i64, ptr %30, align 8, !tbaa !5
  %186 = icmp slt i64 %185, 0
  br i1 %186, label %187, label %191

187:                                              ; preds = %183
  %188 = fmul double %.0241, 1.000000e+01
  %189 = fmul double %.0242, %188
  %190 = fmul double %.0242, 2.000000e+00
  br label %.backedge

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

217:                                              ; preds = %191
  %218 = call double @llvm.fmuladd.f64(double %77, double %205, double %212)
  %219 = load double, ptr %13, align 8, !tbaa !14
  %220 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %218, double noundef %219)
  br i1 %220, label %221, label %225

221:                                              ; preds = %217
  %222 = fmul double %.0241, 1.000000e+01
  %223 = fmul double %.0242, %222
  %224 = fmul double %.0242, 2.000000e+00
  br label %.backedge

225:                                              ; preds = %217
  %226 = load i64, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixtrinverseEPNS_9ae_matrixElbbPlPNS_12matinvreportEPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %226, i1 noundef zeroext true, i1 noundef zeroext false, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef %7)
  %227 = load i64, ptr %28, align 8, !tbaa !5
  %228 = icmp slt i64 %227, 1
  br i1 %228, label %229, label %230

229:                                              ; preds = %225
  store i64 -9, ptr %5, align 8, !tbaa !5
  br label %411

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

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

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

.lr.ph283:                                        ; preds = %.lr.ph283, %.lr.ph283.preheader.new
  %.2281 = phi i64 [ 0, %.lr.ph283.preheader.new ], [ %249, %.lr.ph283 ]
  %niter339 = phi i64 [ 0, %.lr.ph283.preheader.new ], [ %niter339.next.3, %.lr.ph283 ]
  %238 = load ptr, ptr %83, align 8, !tbaa !11
  %239 = getelementptr inbounds double, ptr %238, i64 %.2281
  store double 0.000000e+00, ptr %239, align 8, !tbaa !14
  %240 = or disjoint i64 %.2281, 1
  %241 = load ptr, ptr %83, align 8, !tbaa !11
  %242 = getelementptr inbounds double, ptr %241, i64 %240
  store double 0.000000e+00, ptr %242, align 8, !tbaa !14
  %243 = or disjoint i64 %.2281, 2
  %244 = load ptr, ptr %83, align 8, !tbaa !11
  %245 = getelementptr inbounds double, ptr %244, i64 %243
  store double 0.000000e+00, ptr %245, align 8, !tbaa !14
  %246 = or disjoint i64 %.2281, 3
  %247 = load ptr, ptr %83, align 8, !tbaa !11
  %248 = getelementptr inbounds double, ptr %247, i64 %246
  store double 0.000000e+00, ptr %248, align 8, !tbaa !14
  %249 = 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 !39

._crit_edge284.loopexit.unr-lcssa:                ; preds = %.lr.ph283, %.lr.ph283.preheader
  %.2281.unr = phi i64 [ 0, %.lr.ph283.preheader ], [ %249, %.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 [ %252, %.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 ]
  %250 = load ptr, ptr %83, align 8, !tbaa !11
  %251 = getelementptr inbounds double, ptr %250, i64 %.2281.epil
  store double 0.000000e+00, ptr %251, align 8, !tbaa !14
  %252 = 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 !40

._crit_edge284:                                   ; preds = %._crit_edge284.loopexit.unr-lcssa, %.lr.ph283.epil, %230
  call void @_ZN11alglib_impl15minlbfgscreatexEllPNS_9ae_vectorEldPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef %236, i64 noundef %236, 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)
  %253 = call noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef %7)
  br i1 %253, label %.preheader263, label %._crit_edge304

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

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

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

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

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

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

.preheader.unr-lcssa:                             ; preds = %.lr.ph293, %.lr.ph293.preheader
  %.4291.unr = phi i64 [ 0, %.lr.ph293.preheader ], [ %291, %.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 [ %278, %.lr.ph293.epil ], [ %.4291.unr, %.preheader.unr-lcssa ]
  %epil.iter341 = phi i64 [ %epil.iter341.next, %.lr.ph293.epil ], [ 0, %.preheader.unr-lcssa ]
  %276 = load ptr, ptr %78, align 8, !tbaa !11
  %277 = getelementptr inbounds double, ptr %276, i64 %.4291.epil
  store double 0.000000e+00, ptr %277, align 8, !tbaa !14
  %278 = 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 !43

.preheader:                                       ; preds = %.lr.ph293.epil, %.preheader.unr-lcssa
  %279 = add nsw i64 %273, -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 ], [ %291, %.lr.ph293 ]
  %niter344 = phi i64 [ 0, %.lr.ph293.preheader.new ], [ %niter344.next.3, %.lr.ph293 ]
  %280 = load ptr, ptr %78, align 8, !tbaa !11
  %281 = getelementptr inbounds double, ptr %280, i64 %.4291
  store double 0.000000e+00, ptr %281, align 8, !tbaa !14
  %282 = or disjoint i64 %.4291, 1
  %283 = load ptr, ptr %78, align 8, !tbaa !11
  %284 = getelementptr inbounds double, ptr %283, i64 %282
  store double 0.000000e+00, ptr %284, align 8, !tbaa !14
  %285 = or disjoint i64 %.4291, 2
  %286 = load ptr, ptr %78, align 8, !tbaa !11
  %287 = getelementptr inbounds double, ptr %286, i64 %285
  store double 0.000000e+00, ptr %287, align 8, !tbaa !14
  %288 = or disjoint i64 %.4291, 3
  %289 = load ptr, ptr %78, align 8, !tbaa !11
  %290 = getelementptr inbounds double, ptr %289, i64 %288
  store double 0.000000e+00, ptr %290, align 8, !tbaa !14
  %291 = 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 !44

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

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

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

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

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

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

._crit_edge309:                                   ; preds = %.lr.ph308, %._crit_edge304
  call void @_ZN11alglib_impl15mlphessianbatchEPNS_20multilayerperceptronEPNS_9ae_matrixElPdPNS_9ae_vectorES3_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)
  %349 = load ptr, ptr %73, align 8, !tbaa !11
  %350 = load i64, ptr %12, align 8, !tbaa !5
  %351 = add nsw i64 %350, -1
  %352 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %351)
  %353 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %349, i64 noundef 1, ptr noundef %349, i64 noundef 1, i64 noundef %352)
  %354 = load double, ptr %13, align 8, !tbaa !14
  %355 = call double @llvm.fmuladd.f64(double %77, double %353, double %354)
  store double %355, ptr %13, align 8, !tbaa !14
  %356 = load ptr, ptr %79, align 8, !tbaa !11
  %357 = load ptr, ptr %73, align 8, !tbaa !11
  %358 = load i64, ptr %12, align 8, !tbaa !5
  %359 = add nsw i64 %358, -1
  %360 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %359)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %356, i64 noundef 1, ptr noundef %357, i64 noundef 1, i64 noundef %360, double noundef %60)
  %361 = load i64, ptr %12, align 8, !tbaa !5
  %.not257.not310 = icmp sgt i64 %361, 0
  br i1 %.not257.not310, label %.lr.ph313.preheader, label %._crit_edge314

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

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

.lr.ph313:                                        ; preds = %.lr.ph313, %.lr.ph313.preheader.new
  %.1244311 = phi i64 [ 0, %.lr.ph313.preheader.new ], [ %376, %.lr.ph313 ]
  %niter349 = phi i64 [ 0, %.lr.ph313.preheader.new ], [ %niter349.next.1, %.lr.ph313 ]
  %363 = load ptr, ptr %80, align 8, !tbaa !11
  %364 = getelementptr inbounds ptr, ptr %363, i64 %.1244311
  %365 = load ptr, ptr %364, align 8, !tbaa !12
  %366 = getelementptr inbounds double, ptr %365, i64 %.1244311
  %367 = load double, ptr %366, align 8, !tbaa !14
  %368 = fadd double %60, %367
  store double %368, ptr %366, align 8, !tbaa !14
  %369 = or disjoint i64 %.1244311, 1
  %370 = load ptr, ptr %80, align 8, !tbaa !11
  %371 = getelementptr inbounds ptr, ptr %370, i64 %369
  %372 = load ptr, ptr %371, align 8, !tbaa !12
  %373 = getelementptr inbounds double, ptr %372, i64 %369
  %374 = load double, ptr %373, align 8, !tbaa !14
  %375 = fadd double %60, %374
  store double %375, ptr %373, align 8, !tbaa !14
  %376 = 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 !49

._crit_edge314.loopexit.unr-lcssa:                ; preds = %.lr.ph313, %.lr.ph313.preheader
  %.1244311.unr = phi i64 [ 0, %.lr.ph313.preheader ], [ %376, %.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
  %377 = load ptr, ptr %80, align 8, !tbaa !11
  %378 = getelementptr inbounds ptr, ptr %377, i64 %.1244311.unr
  %379 = load ptr, ptr %378, align 8, !tbaa !12
  %380 = getelementptr inbounds double, ptr %379, i64 %.1244311.unr
  %381 = load double, ptr %380, align 8, !tbaa !14
  %382 = fadd double %60, %381
  store double %382, ptr %380, align 8, !tbaa !14
  br label %._crit_edge314

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

386:                                              ; preds = %191
  %387 = load ptr, ptr %73, align 8, !tbaa !11
  %388 = load i64, ptr %12, align 8, !tbaa !5
  %389 = add nsw i64 %388, -1
  %390 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %389)
  %391 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %387, i64 noundef 1, ptr noundef %387, i64 noundef 1, i64 noundef %390)
  %392 = call noundef double @_ZN11alglib_impl8mlperrorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %2, ptr noundef %7)
  %393 = call double @llvm.fmuladd.f64(double %77, double %391, double %392)
  store double %393, ptr %13, align 8, !tbaa !14
  %394 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %393, double noundef %.0317)
  br i1 %394, label %395, label %402

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

402:                                              ; preds = %386, %395
  %.1 = phi double [ %396, %395 ], [ %.0317, %386 ]
  %403 = add nuw i64 %.0238316, 1
  %exitcond329.not = icmp eq i64 %.0238316, %4
  br i1 %exitcond329.not, label %._crit_edge320, label %85, !llvm.loop !50

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

411:                                              ; preds = %._crit_edge320, %229, %58, %34
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 8, 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 6872, 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_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) 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_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_impl22spdmatrixcholeskysolveEPNS_9ae_matrixElbPNS_9ae_vectorEPlPNS_17densesolverreportES3_PNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, 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_impl14minlbfgscreateEllPNS_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_impl15minlbfgsresultsEPNS_13minlbfgsstateEPNS_9ae_vectorEPNS_14minlbfgsreportEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

declare void @_ZN11alglib_impl15minlbfgscreatexEllPNS_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 2264}
!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, !19, i64 600, !15, i64 664, !15, i64 672, !19, i64 680, !6, i64 744, !15, i64 752, !21, i64 760, !19, i64 840, !19, i64 904, !19, i64 968, !21, i64 1032, !6, i64 1112, !22, i64 1120, !23, i64 1584, !15, i64 2032, !15, i64 2040, !15, i64 2048, !15, i64 2056, !15, i64 2064, !19, i64 2072, !19, i64 2136, !19, i64 2200, !15, i64 2264, !19, i64 2272, !18, i64 2336, !18, i64 2337, !18, i64 2338, !18, i64 2339, !15, i64 2344, !24, i64 2352, !6, i64 2616, !6, i64 2624, !6, i64 2632, !26, i64 2640, !6, i64 2832, !27, i64 2840, !19, i64 6808}
!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_impl10rcommstateE", !25, i64 0, !19, i64 8, !19, i64 72, !19, i64 136, !19, i64 200}
!25 = !{!"int", !7, i64 0}
!26 = !{!"_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}
!27 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !6, i64 0, !6, i64 8, !18, i64 16, !19, i64 24, !6, i64 88, !19, i64 96, !19, i64 160, !19, i64 224, !21, i64 288, !19, i64 368, !19, i64 432, !6, i64 496, !18, i64 504, !18, i64 505, !15, i64 512, !15, i64 520, !18, i64 528, !28, i64 536, !15, i64 832, !15, i64 840, !29, i64 848, !29, i64 1152, !15, i64 1456, !15, i64 1464, !30, i64 1472, !30, i64 1784, !18, i64 2096, !19, i64 2104, !19, i64 2168, !21, i64 2232, !24, i64 2312, !19, i64 2576, !19, i64 2640, !19, i64 2704, !19, i64 2768, !19, i64 2832, !19, i64 2896, !19, i64 2960, !19, i64 3024, !21, i64 3088, !21, i64 3168, !19, i64 3248, !19, i64 3312, !19, i64 3376, !19, i64 3440, !19, i64 3504, !19, i64 3568, !19, i64 3632, !19, i64 3696, !19, i64 3760, !19, i64 3824, !21, i64 3888}
!28 = !{!"_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}
!29 = !{!"_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}
!30 = !{!"_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}
!31 = !{!32, !6, i64 40}
!32 = !{!"_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}
!33 = distinct !{!33, !10}
!34 = distinct !{!34, !10}
!35 = !{!32, !6, i64 48}
!36 = distinct !{!36, !10}
!37 = !{!32, !6, i64 56}
!38 = distinct !{!38, !10}
!39 = distinct !{!39, !10}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.unroll.disable"}
!42 = distinct !{!42, !10}
!43 = distinct !{!43, !41}
!44 = distinct !{!44, !10}
!45 = distinct !{!45, !10}
!46 = distinct !{!46, !10}
!47 = distinct !{!47, !10}
!48 = distinct !{!48, !10}
!49 = distinct !{!49, !10}
!50 = distinct !{!50, !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