; 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_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 }
%"struct.alglib_impl::mlpparallelizationcv" = type { %"struct.alglib_impl::multilayerperceptron", %"struct.alglib_impl::mlpreport", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_shared_pool" }
%"struct.alglib_impl::multilayerperceptron" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::modelerrors", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool" }
%"struct.alglib_impl::modelerrors" = type { double, double, double, double, double }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::mlpreport" = type { double, double, double, double, double, i64, i64, i64 }
%"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_smart_ptr" = type { ptr, ptr, i8, i8, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::mlptrainer" = type { i64, i64, i8, i64, double, double, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::smlptrnsession", i64, %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::smlptrnsession" = type { %"struct.alglib_impl::ae_vector", double, i8, %"struct.alglib_impl::multilayerperceptron", %"struct.alglib_impl::minlbfgsstate", %"struct.alglib_impl::minlbfgsreport", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rcommstate", i64, i64, %"struct.alglib_impl::hqrndstate" }
%"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::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::minlbfgsreport" = type { i64, i64, i64 }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.347 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.348 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.349 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.350 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.351 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.352 = external hidden unnamed_addr constant [25 x i8], align 1

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl10mlpkfoldcvEPNS_10mlptrainerEPNS_20multilayerperceptronEllPNS_9mlpreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.alglib_impl::ae_frame", align 8
  %14 = alloca %"struct.alglib_impl::ae_shared_pool", align 8
  %15 = alloca %"struct.alglib_impl::mlpparallelizationcv", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.alglib_impl::ae_smart_ptr", align 8
  %18 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %32 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 144, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 2520, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #5
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %33, ptr noundef %13)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 144, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 2520, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 24, i1 false)
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_mlpreport_clearEPv(ptr noundef %34)
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_shared_pool_initEPvPNS_8ae_stateEb(ptr noundef %14, ptr noundef %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl26_mlpparallelizationcv_initEPvPNS_8ae_stateEb(ptr noundef %15, ptr noundef %36, i1 noundef zeroext true)
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl17ae_smart_ptr_initEPNS_12ae_smart_ptrEPPvPNS_8ae_stateEb(ptr noundef %17, ptr noundef %16, ptr noundef %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 2, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 3, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 3, ptr noundef %41, i1 noundef zeroext true)
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %31, ptr noundef %42, i1 noundef zeroext true)
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %43, ptr noundef %44)
  br i1 %45, label %47, label %46

46:                                               ; preds = %6
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %48

47:                                               ; preds = %6
  store i64 1, ptr %26, align 8, !tbaa !9
  br label %48

48:                                               ; preds = %47, %46
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %49, i32 0, i32 2
  %51 = load i8, ptr %50, align 8, !tbaa !11, !range !36, !noundef !37
  %52 = trunc i8 %51 to i1
  br i1 %52, label %53, label %54

53:                                               ; preds = %48
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %55

54:                                               ; preds = %48
  store i64 1, ptr %27, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %54, %53
  %56 = load i64, ptr %26, align 8, !tbaa !9
  %57 = load i64, ptr %27, align 8, !tbaa !9
  %58 = icmp eq i64 %56, %57
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %58, ptr noundef @.str.347, ptr noundef %59)
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %60, i32 0, i32 8
  %62 = load i64, ptr %61, align 8, !tbaa !38
  %63 = icmp sge i64 %62, 0
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %63, ptr noundef @.str.348, ptr noundef %64)
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %65, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %66)
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %67, i32 0, i32 0
  %69 = load i64, ptr %68, align 8, !tbaa !39
  %70 = load i64, ptr %22, align 8, !tbaa !9
  %71 = icmp eq i64 %69, %70
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %71, ptr noundef @.str.349, ptr noundef %72)
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %73, i32 0, i32 1
  %75 = load i64, ptr %74, align 8, !tbaa !40
  %76 = load i64, ptr %23, align 8, !tbaa !9
  %77 = icmp eq i64 %75, %76
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %77, ptr noundef @.str.350, ptr noundef %78)
  %79 = load i64, ptr %9, align 8, !tbaa !9
  %80 = icmp sge i64 %79, 0
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %80, ptr noundef @.str.351, ptr noundef %81)
  %82 = load i64, ptr %10, align 8, !tbaa !9
  %83 = icmp sge i64 %82, 2
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %83, ptr noundef @.str.352, ptr noundef %84)
  %85 = load i64, ptr %10, align 8, !tbaa !9
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %86, i32 0, i32 8
  %88 = load i64, ptr %87, align 8, !tbaa !38
  %89 = icmp sgt i64 %85, %88
  br i1 %89, label %90, label %94

90:                                               ; preds = %55
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %91, i32 0, i32 8
  %93 = load i64, ptr %92, align 8, !tbaa !38
  store i64 %93, ptr %10, align 8, !tbaa !9
  br label %94

94:                                               ; preds = %90, %55
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %95, i32 0, i32 0
  store double 0.000000e+00, ptr %96, align 8, !tbaa !41
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %97, i32 0, i32 1
  store double 0.000000e+00, ptr %98, align 8, !tbaa !43
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %99, i32 0, i32 2
  store double 0.000000e+00, ptr %100, align 8, !tbaa !44
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %101, i32 0, i32 3
  store double 0.000000e+00, ptr %102, align 8, !tbaa !45
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %103, i32 0, i32 4
  store double 0.000000e+00, ptr %104, align 8, !tbaa !46
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %31, ptr noundef %105)
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %106, i32 0, i32 5
  store i64 0, ptr %107, align 8, !tbaa !47
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %108, i32 0, i32 6
  store i64 0, ptr %109, align 8, !tbaa !48
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %110, i32 0, i32 7
  store i64 0, ptr %111, align 8, !tbaa !49
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %112, i32 0, i32 8
  %114 = load i64, ptr %113, align 8, !tbaa !38
  %115 = icmp eq i64 %114, 0
  br i1 %115, label %121, label %116

116:                                              ; preds = %94
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %117, i32 0, i32 8
  %119 = load i64, ptr %118, align 8, !tbaa !38
  %120 = icmp eq i64 %119, 1
  br i1 %120, label %121, label %123

121:                                              ; preds = %116, %94
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %122)
  store i32 1, ptr %32, align 4
  br label %377

123:                                              ; preds = %116
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %124, i32 0, i32 2
  %126 = load i8, ptr %125, align 8, !tbaa !11, !range !36, !noundef !37
  %127 = trunc i8 %126 to i1
  br i1 %127, label %128, label %137

128:                                              ; preds = %123
  %129 = load i64, ptr %22, align 8, !tbaa !9
  %130 = load i64, ptr %23, align 8, !tbaa !9
  %131 = add nsw i64 %129, %130
  store i64 %131, ptr %25, align 8, !tbaa !9
  %132 = load i64, ptr %23, align 8, !tbaa !9
  %133 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %132, ptr noundef %133)
  %134 = load i64, ptr %23, align 8, !tbaa !9
  %135 = sub nsw i64 0, %134
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13dserrallocateElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %135, ptr noundef %20, ptr noundef %136)
  br label %143

137:                                              ; preds = %123
  %138 = load i64, ptr %22, align 8, !tbaa !9
  %139 = add nsw i64 %138, 1
  store i64 %139, ptr %25, align 8, !tbaa !9
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef 1, ptr noundef %140)
  %141 = load i64, ptr %23, align 8, !tbaa !9
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13dserrallocateElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %141, ptr noundef %20, ptr noundef %142)
  br label %143

143:                                              ; preds = %137, %128
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %144, i32 0, i32 8
  %146 = load i64, ptr %145, align 8, !tbaa !38
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %146, ptr noundef %147)
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %148

148:                                              ; preds = %167, %143
  %149 = load i64, ptr %28, align 8, !tbaa !9
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %150, i32 0, i32 8
  %152 = load i64, ptr %151, align 8, !tbaa !38
  %153 = sub nsw i64 %152, 1
  %154 = icmp sle i64 %149, %153
  br i1 %154, label %155, label %170

155:                                              ; preds = %148
  %156 = load i64, ptr %28, align 8, !tbaa !9
  %157 = load i64, ptr %10, align 8, !tbaa !9
  %158 = mul nsw i64 %156, %157
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %159, i32 0, i32 8
  %161 = load i64, ptr %160, align 8, !tbaa !38
  %162 = sdiv i64 %158, %161
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %164 = load ptr, ptr %163, align 8, !tbaa !50
  %165 = load i64, ptr %28, align 8, !tbaa !9
  %166 = getelementptr inbounds i64, ptr %164, i64 %165
  store i64 %162, ptr %166, align 8, !tbaa !9
  br label %167

167:                                              ; preds = %155
  %168 = load i64, ptr %28, align 8, !tbaa !9
  %169 = add nsw i64 %168, 1
  store i64 %169, ptr %28, align 8, !tbaa !9
  br label %148, !llvm.loop !51

170:                                              ; preds = %148
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %171

171:                                              ; preds = %212, %170
  %172 = load i64, ptr %28, align 8, !tbaa !9
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %173, i32 0, i32 8
  %175 = load i64, ptr %174, align 8, !tbaa !38
  %176 = sub nsw i64 %175, 2
  %177 = icmp sle i64 %172, %176
  br i1 %177, label %178, label %215

178:                                              ; preds = %171
  %179 = load i64, ptr %28, align 8, !tbaa !9
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %180, i32 0, i32 8
  %182 = load i64, ptr %181, align 8, !tbaa !38
  %183 = load i64, ptr %28, align 8, !tbaa !9
  %184 = sub nsw i64 %182, %183
  %185 = load ptr, ptr %12, align 8, !tbaa !5
  %186 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %31, i64 noundef %184, ptr noundef %185)
  %187 = add nsw i64 %179, %186
  store i64 %187, ptr %29, align 8, !tbaa !9
  %188 = load i64, ptr %29, align 8, !tbaa !9
  %189 = load i64, ptr %28, align 8, !tbaa !9
  %190 = icmp ne i64 %188, %189
  br i1 %190, label %191, label %211

191:                                              ; preds = %178
  %192 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %193 = load ptr, ptr %192, align 8, !tbaa !50
  %194 = load i64, ptr %28, align 8, !tbaa !9
  %195 = getelementptr inbounds i64, ptr %193, i64 %194
  %196 = load i64, ptr %195, align 8, !tbaa !9
  store i64 %196, ptr %30, align 8, !tbaa !9
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %198 = load ptr, ptr %197, align 8, !tbaa !50
  %199 = load i64, ptr %29, align 8, !tbaa !9
  %200 = getelementptr inbounds i64, ptr %198, i64 %199
  %201 = load i64, ptr %200, align 8, !tbaa !9
  %202 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %203 = load ptr, ptr %202, align 8, !tbaa !50
  %204 = load i64, ptr %28, align 8, !tbaa !9
  %205 = getelementptr inbounds i64, ptr %203, i64 %204
  store i64 %201, ptr %205, align 8, !tbaa !9
  %206 = load i64, ptr %30, align 8, !tbaa !9
  %207 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %208 = load ptr, ptr %207, align 8, !tbaa !50
  %209 = load i64, ptr %29, align 8, !tbaa !9
  %210 = getelementptr inbounds i64, ptr %208, i64 %209
  store i64 %206, ptr %210, align 8, !tbaa !9
  br label %211

211:                                              ; preds = %191, %178
  br label %212

212:                                              ; preds = %211
  %213 = load i64, ptr %28, align 8, !tbaa !9
  %214 = add nsw i64 %213, 1
  store i64 %214, ptr %28, align 8, !tbaa !9
  br label %171, !llvm.loop !53

215:                                              ; preds = %171
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %216, i32 0, i32 8
  %218 = load i64, ptr %217, align 8, !tbaa !38
  %219 = load i64, ptr %23, align 8, !tbaa !9
  %220 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %18, i64 noundef %218, i64 noundef %219, ptr noundef %220)
  %221 = getelementptr inbounds %"struct.alglib_impl::mlpparallelizationcv", ptr %15, i32 0, i32 6
  store i64 0, ptr %221, align 8, !tbaa !54
  %222 = load ptr, ptr %8, align 8, !tbaa !5
  %223 = getelementptr inbounds %"struct.alglib_impl::mlpparallelizationcv", ptr %15, i32 0, i32 0
  %224 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl7mlpcopyEPNS_20multilayerperceptronES1_PNS_8ae_stateE(ptr noundef %222, ptr noundef %223, ptr noundef %224)
  %225 = getelementptr inbounds %"struct.alglib_impl::mlpparallelizationcv", ptr %15, i32 0, i32 2
  %226 = load ptr, ptr %7, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %226, i32 0, i32 8
  %228 = load i64, ptr %227, align 8, !tbaa !38
  %229 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %225, i64 noundef %228, ptr noundef %229)
  %230 = getelementptr inbounds %"struct.alglib_impl::mlpparallelizationcv", ptr %15, i32 0, i32 4
  %231 = load i64, ptr %25, align 8, !tbaa !9
  %232 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %230, i64 noundef %231, ptr noundef %232)
  %233 = getelementptr inbounds %"struct.alglib_impl::mlpparallelizationcv", ptr %15, i32 0, i32 5
  %234 = load i64, ptr %23, align 8, !tbaa !9
  %235 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %233, i64 noundef %234, ptr noundef %235)
  %236 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef %14, ptr noundef %15, i64 noundef 2520, ptr noundef @_ZN11alglib_impl26_mlpparallelizationcv_initEPvPNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl31_mlpparallelizationcv_init_copyEPvS0_PNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl29_mlpparallelizationcv_destroyEPv, ptr noundef %236)
  %237 = load ptr, ptr %7, align 8, !tbaa !5
  %238 = load i64, ptr %25, align 8, !tbaa !9
  %239 = load i64, ptr %9, align 8, !tbaa !9
  %240 = load i64, ptr %10, align 8, !tbaa !9
  %241 = load i64, ptr %24, align 8, !tbaa !9
  %242 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_implL18mlptrain_mthreadcvEPNS_10mlptrainerEllPNS_9ae_vectorEllPNS_9ae_matrixEPNS_14ae_shared_poolElPNS_8ae_stateE(ptr noundef %237, i64 noundef %238, i64 noundef %239, ptr noundef %19, i64 noundef 0, i64 noundef %240, ptr noundef %18, ptr noundef %14, i64 noundef %241, ptr noundef %242)
  %243 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl29ae_shared_pool_first_recycledEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef %14, ptr noundef %17, ptr noundef %243)
  br label %244

244:                                              ; preds = %247, %215
  %245 = load ptr, ptr %16, align 8, !tbaa !5
  %246 = icmp ne ptr %245, null
  br i1 %246, label %247, label %258

247:                                              ; preds = %244
  %248 = load ptr, ptr %11, align 8, !tbaa !5
  %249 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %248, i32 0, i32 5
  %250 = load i64, ptr %249, align 8, !tbaa !47
  %251 = load ptr, ptr %16, align 8, !tbaa !5
  %252 = getelementptr inbounds %"struct.alglib_impl::mlpparallelizationcv", ptr %251, i32 0, i32 6
  %253 = load i64, ptr %252, align 8, !tbaa !54
  %254 = add nsw i64 %250, %253
  %255 = load ptr, ptr %11, align 8, !tbaa !5
  %256 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %255, i32 0, i32 5
  store i64 %254, ptr %256, align 8, !tbaa !47
  %257 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl28ae_shared_pool_next_recycledEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef %14, ptr noundef %17, ptr noundef %257)
  br label %244, !llvm.loop !56

258:                                              ; preds = %244
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %259

259:                                              ; preds = %341, %258
  %260 = load i64, ptr %28, align 8, !tbaa !9
  %261 = load ptr, ptr %7, align 8, !tbaa !5
  %262 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %261, i32 0, i32 8
  %263 = load i64, ptr %262, align 8, !tbaa !38
  %264 = sub nsw i64 %263, 1
  %265 = icmp sle i64 %260, %264
  br i1 %265, label %266, label %344

266:                                              ; preds = %259
  %267 = load ptr, ptr %7, align 8, !tbaa !5
  %268 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %267, i32 0, i32 7
  %269 = load i64, ptr %268, align 8, !tbaa !57
  %270 = icmp eq i64 %269, 0
  br i1 %270, label %271, label %287

271:                                              ; preds = %266
  %272 = getelementptr inbounds %"struct.alglib_impl::mlpparallelizationcv", ptr %15, i32 0, i32 4
  %273 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %272, i32 0, i32 4
  %274 = load ptr, ptr %273, align 8, !tbaa !50
  %275 = getelementptr inbounds double, ptr %274, i64 0
  %276 = load ptr, ptr %7, align 8, !tbaa !5
  %277 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %276, i32 0, i32 9
  %278 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %277, i32 0, i32 6
  %279 = load ptr, ptr %278, align 8, !tbaa !50
  %280 = load i64, ptr %28, align 8, !tbaa !9
  %281 = getelementptr inbounds ptr, ptr %279, i64 %280
  %282 = load ptr, ptr %281, align 8, !tbaa !5
  %283 = getelementptr inbounds double, ptr %282, i64 0
  %284 = load i64, ptr %25, align 8, !tbaa !9
  %285 = sub nsw i64 %284, 1
  %286 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %285)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %275, i64 noundef 1, ptr noundef %283, i64 noundef 1, i64 noundef %286)
  br label %287

287:                                              ; preds = %271, %266
  %288 = load ptr, ptr %7, align 8, !tbaa !5
  %289 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %288, i32 0, i32 7
  %290 = load i64, ptr %289, align 8, !tbaa !57
  %291 = icmp eq i64 %290, 1
  br i1 %291, label %292, label %298

292:                                              ; preds = %287
  %293 = load ptr, ptr %7, align 8, !tbaa !5
  %294 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %293, i32 0, i32 10
  %295 = load i64, ptr %28, align 8, !tbaa !9
  %296 = getelementptr inbounds %"struct.alglib_impl::mlpparallelizationcv", ptr %15, i32 0, i32 4
  %297 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %294, i64 noundef %295, ptr noundef %296, ptr noundef %297)
  br label %298

298:                                              ; preds = %292, %287
  %299 = getelementptr inbounds %"struct.alglib_impl::mlpparallelizationcv", ptr %15, i32 0, i32 5
  %300 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %299, i32 0, i32 4
  %301 = load ptr, ptr %300, align 8, !tbaa !50
  %302 = getelementptr inbounds double, ptr %301, i64 0
  %303 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %304 = load ptr, ptr %303, align 8, !tbaa !50
  %305 = load i64, ptr %28, align 8, !tbaa !9
  %306 = getelementptr inbounds ptr, ptr %304, i64 %305
  %307 = load ptr, ptr %306, align 8, !tbaa !5
  %308 = getelementptr inbounds double, ptr %307, i64 0
  %309 = load i64, ptr %23, align 8, !tbaa !9
  %310 = sub nsw i64 %309, 1
  %311 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %310)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %302, i64 noundef 1, ptr noundef %308, i64 noundef 1, i64 noundef %311)
  %312 = load ptr, ptr %7, align 8, !tbaa !5
  %313 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %312, i32 0, i32 2
  %314 = load i8, ptr %313, align 8, !tbaa !11, !range !36, !noundef !37
  %315 = trunc i8 %314 to i1
  br i1 %315, label %316, label %328

316:                                              ; preds = %298
  %317 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %318 = load ptr, ptr %317, align 8, !tbaa !50
  %319 = getelementptr inbounds double, ptr %318, i64 0
  %320 = getelementptr inbounds %"struct.alglib_impl::mlpparallelizationcv", ptr %15, i32 0, i32 4
  %321 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %320, i32 0, i32 4
  %322 = load ptr, ptr %321, align 8, !tbaa !50
  %323 = load i64, ptr %22, align 8, !tbaa !9
  %324 = getelementptr inbounds double, ptr %322, i64 %323
  %325 = load i64, ptr %23, align 8, !tbaa !9
  %326 = sub nsw i64 %325, 1
  %327 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %326)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %319, i64 noundef 1, ptr noundef %324, i64 noundef 1, i64 noundef %327)
  br label %338

328:                                              ; preds = %298
  %329 = getelementptr inbounds %"struct.alglib_impl::mlpparallelizationcv", ptr %15, i32 0, i32 4
  %330 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %329, i32 0, i32 4
  %331 = load ptr, ptr %330, align 8, !tbaa !50
  %332 = load i64, ptr %22, align 8, !tbaa !9
  %333 = getelementptr inbounds double, ptr %331, i64 %332
  %334 = load double, ptr %333, align 8, !tbaa !58
  %335 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %336 = load ptr, ptr %335, align 8, !tbaa !50
  %337 = getelementptr inbounds double, ptr %336, i64 0
  store double %334, ptr %337, align 8, !tbaa !58
  br label %338

338:                                              ; preds = %328, %316
  %339 = getelementptr inbounds %"struct.alglib_impl::mlpparallelizationcv", ptr %15, i32 0, i32 5
  %340 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl15dserraccumulateEPNS_9ae_vectorES1_S1_PNS_8ae_stateE(ptr noundef %20, ptr noundef %339, ptr noundef %21, ptr noundef %340)
  br label %341

341:                                              ; preds = %338
  %342 = load i64, ptr %28, align 8, !tbaa !9
  %343 = add nsw i64 %342, 1
  store i64 %343, ptr %28, align 8, !tbaa !9
  br label %259, !llvm.loop !59

344:                                              ; preds = %259
  %345 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl11dserrfinishEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %20, ptr noundef %345)
  %346 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %347 = load ptr, ptr %346, align 8, !tbaa !50
  %348 = getelementptr inbounds double, ptr %347, i64 0
  %349 = load double, ptr %348, align 8, !tbaa !58
  %350 = load ptr, ptr %11, align 8, !tbaa !5
  %351 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %350, i32 0, i32 0
  store double %349, ptr %351, align 8, !tbaa !41
  %352 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %353 = load ptr, ptr %352, align 8, !tbaa !50
  %354 = getelementptr inbounds double, ptr %353, i64 1
  %355 = load double, ptr %354, align 8, !tbaa !58
  %356 = load ptr, ptr %11, align 8, !tbaa !5
  %357 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %356, i32 0, i32 1
  store double %355, ptr %357, align 8, !tbaa !43
  %358 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %359 = load ptr, ptr %358, align 8, !tbaa !50
  %360 = getelementptr inbounds double, ptr %359, i64 2
  %361 = load double, ptr %360, align 8, !tbaa !58
  %362 = load ptr, ptr %11, align 8, !tbaa !5
  %363 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %362, i32 0, i32 2
  store double %361, ptr %363, align 8, !tbaa !44
  %364 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %365 = load ptr, ptr %364, align 8, !tbaa !50
  %366 = getelementptr inbounds double, ptr %365, i64 3
  %367 = load double, ptr %366, align 8, !tbaa !58
  %368 = load ptr, ptr %11, align 8, !tbaa !5
  %369 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %368, i32 0, i32 3
  store double %367, ptr %369, align 8, !tbaa !45
  %370 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %371 = load ptr, ptr %370, align 8, !tbaa !50
  %372 = getelementptr inbounds double, ptr %371, i64 4
  %373 = load double, ptr %372, align 8, !tbaa !58
  %374 = load ptr, ptr %11, align 8, !tbaa !5
  %375 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %374, i32 0, i32 4
  store double %373, ptr %375, align 8, !tbaa !46
  %376 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %376)
  store i32 0, ptr %32, align 4
  br label %377

377:                                              ; preds = %344, %121
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 2520, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  %378 = load i32, ptr %32, align 4
  switch i32 %378, label %380 [
    i32 0, label %379
    i32 1, label %379
  ]

379:                                              ; preds = %377, %377
  ret void

380:                                              ; preds = %377
  unreachable
}

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 16}
!12 = !{!"_ZTSN11alglib_impl10mlptrainerE", !10, i64 0, !10, i64 8, !13, i64 16, !10, i64 24, !14, i64 32, !14, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !15, i64 72, !17, i64 152, !19, i64 520, !10, i64 10160, !18, i64 10168, !10, i64 10232, !18, i64 10240, !10, i64 10304, !10, i64 10312, !10, i64 10320}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !16, i64 40, !7, i64 72}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTSN11alglib_impl12sparsematrixE", !18, i64 0, !18, i64 64, !18, i64 128, !18, i64 192, !18, i64 256, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360}
!18 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !16, i64 24, !7, i64 56}
!19 = !{!"_ZTSN11alglib_impl14smlptrnsessionE", !18, i64 0, !14, i64 64, !13, i64 72, !20, i64 80, !24, i64 2184, !34, i64 9056, !18, i64 9080, !18, i64 9144, !18, i64 9208, !18, i64 9272, !27, i64 9336, !10, i64 9600, !10, i64 9608, !35, i64 9616}
!20 = !{!"_ZTSN11alglib_impl20multilayerperceptronE", !10, i64 0, !10, i64 8, !18, i64 16, !18, i64 80, !18, i64 144, !18, i64 208, !18, i64 272, !18, i64 336, !18, i64 400, !18, i64 464, !18, i64 528, !18, i64 592, !18, i64 656, !18, i64 720, !15, i64 784, !18, i64 864, !18, i64 928, !18, i64 992, !21, i64 1056, !18, i64 1096, !22, i64 1160, !22, i64 1304, !15, i64 1448, !17, i64 1528, !18, i64 1896, !22, i64 1960}
!21 = !{!"_ZTSN11alglib_impl11modelerrorsE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32}
!22 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !23, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !10, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !16, i64 112}
!23 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !16, i64 8, !13, i64 40}
!24 = !{!"_ZTSN11alglib_impl13minlbfgsstateE", !10, i64 0, !10, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !10, i64 40, !13, i64 48, !14, i64 56, !18, i64 64, !14, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !18, i64 176, !15, i64 240, !15, i64 320, !18, i64 400, !18, i64 464, !18, i64 528, !14, i64 592, !18, i64 600, !14, i64 664, !14, i64 672, !18, i64 680, !10, i64 744, !14, i64 752, !15, i64 760, !18, i64 840, !18, i64 904, !18, i64 968, !15, i64 1032, !10, i64 1112, !25, i64 1120, !26, i64 1584, !14, i64 2032, !14, i64 2040, !14, i64 2048, !14, i64 2056, !14, i64 2064, !18, i64 2072, !18, i64 2136, !18, i64 2200, !14, i64 2264, !18, i64 2272, !13, i64 2336, !13, i64 2337, !13, i64 2338, !13, i64 2339, !14, i64 2344, !27, i64 2352, !10, i64 2616, !10, i64 2624, !10, i64 2632, !29, i64 2640, !10, i64 2832, !30, i64 2840, !18, i64 6808}
!25 = !{!"_ZTSN11alglib_impl12precbuflbfgsE", !18, i64 0, !18, i64 64, !18, i64 128, !15, i64 192, !18, i64 272, !18, i64 336, !18, i64 400}
!26 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !10, i64 0, !10, i64 8, !18, i64 16, !15, i64 80, !18, i64 160, !15, i64 224, !15, i64 304, !18, i64 384}
!27 = !{!"_ZTSN11alglib_impl10rcommstateE", !28, i64 0, !18, i64 8, !18, i64 72, !18, i64 136, !18, i64 200}
!28 = !{!"int", !7, i64 0}
!29 = !{!"_ZTSN11alglib_impl11linminstateE", !13, i64 0, !13, i64 1, !10, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184}
!30 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !10, i64 0, !10, i64 8, !13, i64 16, !18, i64 24, !10, i64 88, !18, i64 96, !18, i64 160, !18, i64 224, !15, i64 288, !18, i64 368, !18, i64 432, !10, i64 496, !13, i64 504, !13, i64 505, !14, i64 512, !14, i64 520, !13, i64 528, !31, i64 536, !14, i64 832, !14, i64 840, !32, i64 848, !32, i64 1152, !14, i64 1456, !14, i64 1464, !33, i64 1472, !33, i64 1784, !13, i64 2096, !18, i64 2104, !18, i64 2168, !15, i64 2232, !27, i64 2312, !18, i64 2576, !18, i64 2640, !18, i64 2704, !18, i64 2768, !18, i64 2832, !18, i64 2896, !18, i64 2960, !18, i64 3024, !15, i64 3088, !15, i64 3168, !18, i64 3248, !18, i64 3312, !18, i64 3376, !18, i64 3440, !18, i64 3504, !18, i64 3568, !18, i64 3632, !18, i64 3696, !18, i64 3760, !18, i64 3824, !15, i64 3888}
!31 = !{!"_ZTSN11alglib_impl14optguardreportE", !13, i64 0, !13, i64 1, !10, i64 8, !14, i64 16, !13, i64 24, !13, i64 25, !13, i64 26, !10, i64 32, !14, i64 40, !13, i64 48, !10, i64 56, !10, i64 64, !18, i64 72, !15, i64 136, !15, i64 216}
!32 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !13, i64 0, !10, i64 8, !18, i64 16, !18, i64 80, !10, i64 144, !18, i64 152, !18, i64 216, !10, i64 280, !10, i64 288, !10, i64 296}
!33 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !13, i64 0, !10, i64 8, !10, i64 16, !18, i64 24, !18, i64 88, !10, i64 152, !18, i64 160, !18, i64 224, !10, i64 288, !10, i64 296, !10, i64 304}
!34 = !{!"_ZTSN11alglib_impl14minlbfgsreportE", !10, i64 0, !10, i64 8, !10, i64 16}
!35 = !{!"_ZTSN11alglib_impl10hqrndstateE", !10, i64 0, !10, i64 8, !10, i64 16}
!36 = !{i8 0, i8 2}
!37 = !{}
!38 = !{!12, !10, i64 64}
!39 = !{!12, !10, i64 0}
!40 = !{!12, !10, i64 8}
!41 = !{!42, !14, i64 0}
!42 = !{!"_ZTSN11alglib_impl9mlpreportE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !10, i64 40, !10, i64 48, !10, i64 56}
!43 = !{!42, !14, i64 8}
!44 = !{!42, !14, i64 16}
!45 = !{!42, !14, i64 24}
!46 = !{!42, !14, i64 32}
!47 = !{!42, !10, i64 40}
!48 = !{!42, !10, i64 48}
!49 = !{!42, !10, i64 56}
!50 = !{!7, !7, i64 0}
!51 = distinct !{!51, !52}
!52 = !{!"llvm.loop.mustprogress"}
!53 = distinct !{!53, !52}
!54 = !{!55, !10, i64 2368}
!55 = !{!"_ZTSN11alglib_impl20mlpparallelizationcvE", !20, i64 0, !42, i64 2104, !18, i64 2168, !10, i64 2232, !18, i64 2240, !18, i64 2304, !10, i64 2368, !22, i64 2376}
!56 = distinct !{!56, !52}
!57 = !{!12, !10, i64 56}
!58 = !{!14, !14, i64 0}
!59 = distinct !{!59, !52}


; 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_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 }
%"struct.alglib_impl::mlpparallelizationcv" = type { %"struct.alglib_impl::multilayerperceptron", %"struct.alglib_impl::mlpreport", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_shared_pool" }
%"struct.alglib_impl::multilayerperceptron" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::modelerrors", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool" }
%"struct.alglib_impl::modelerrors" = type { double, double, double, double, double }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::mlpreport" = type { double, double, double, double, double, i64, i64, i64 }
%"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_smart_ptr" = type { ptr, ptr, i8, i8, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }

@.str.347 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.348 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.349 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.350 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.351 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.352 = external hidden unnamed_addr constant [25 x i8], align 1

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl10mlpkfoldcvEPNS_10mlptrainerEPNS_20multilayerperceptronEllPNS_9mlpreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #3 {
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca %"struct.alglib_impl::ae_shared_pool", align 8
  %9 = alloca %"struct.alglib_impl::mlpparallelizationcv", align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.alglib_impl::ae_smart_ptr", align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca %"struct.alglib_impl::hqrndstate", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 2520, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 64, 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 8, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %5, ptr noundef nonnull %7)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(144) %8, i8 0, i64 144, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(2520) %9, i8 0, i64 2520, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %12, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %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(24) %19, i8 0, i64 24, i1 false)
  call void @_ZN11alglib_impl16_mlpreport_clearEPv(ptr noundef %4)
  call void @_ZN11alglib_impl19ae_shared_pool_initEPvPNS_8ae_stateEb(ptr noundef nonnull %8, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl26_mlpparallelizationcv_initEPvPNS_8ae_stateEb(ptr noundef nonnull %9, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl17ae_smart_ptr_initEPNS_12ae_smart_ptrEPPvPNS_8ae_stateEb(ptr noundef nonnull %11, ptr noundef nonnull %10, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 2, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %19, ptr noundef %5, i1 noundef zeroext true)
  %20 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %1, ptr noundef %5)
  %21 = getelementptr inbounds i8, ptr %0, i64 16
  %22 = load i8, ptr %21, align 8, !tbaa !5, !range !34, !noundef !35
  %23 = zext i1 %20 to i8
  %24 = icmp ne i8 %22, %23
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.347, ptr noundef %5)
  %25 = getelementptr inbounds i8, ptr %0, i64 64
  %26 = load i64, ptr %25, align 8, !tbaa !36
  %27 = icmp sgt i64 %26, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef nonnull @.str.348, ptr noundef %5)
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef %5)
  %28 = load i64, ptr %0, align 8, !tbaa !37
  %29 = load i64, ptr %16, align 8, !tbaa !38
  %30 = icmp eq i64 %28, %29
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef nonnull @.str.349, ptr noundef %5)
  %31 = getelementptr inbounds i8, ptr %0, i64 8
  %32 = load i64, ptr %31, align 8, !tbaa !39
  %33 = load i64, ptr %17, align 8, !tbaa !38
  %34 = icmp eq i64 %32, %33
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef nonnull @.str.350, ptr noundef %5)
  %35 = icmp sgt i64 %2, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef nonnull @.str.351, ptr noundef %5)
  %36 = icmp sgt i64 %3, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef nonnull @.str.352, ptr noundef %5)
  %37 = load i64, ptr %25, align 8, !tbaa !36
  %.0 = call i64 @llvm.smin.i64(i64 %37, i64 %3)
  %38 = getelementptr inbounds i8, ptr %4, i64 8
  %39 = getelementptr inbounds i8, ptr %4, i64 16
  %40 = getelementptr inbounds i8, ptr %4, i64 24
  %41 = getelementptr inbounds i8, ptr %4, i64 32
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %4, i8 0, i64 40, i1 false)
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %19, ptr noundef %5)
  %42 = getelementptr inbounds i8, ptr %4, i64 40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %42, i8 0, i64 24, i1 false)
  %43 = load i64, ptr %25, align 8, !tbaa !36
  %switch = icmp ult i64 %43, 2
  br i1 %switch, label %161, label %44

44:                                               ; preds = %6
  %45 = load i8, ptr %21, align 8, !tbaa !5, !range !34, !noundef !35
  %46 = trunc nuw i8 %45 to i1
  %47 = load i64, ptr %16, align 8, !tbaa !38
  br i1 %46, label %48, label %53

48:                                               ; preds = %44
  %49 = load i64, ptr %17, align 8, !tbaa !38
  %50 = add nsw i64 %49, %47
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %49, ptr noundef %5)
  %51 = load i64, ptr %17, align 8, !tbaa !38
  %52 = sub nsw i64 0, %51
  br label %56

53:                                               ; preds = %44
  %54 = add nsw i64 %47, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef 1, ptr noundef %5)
  %55 = load i64, ptr %17, align 8, !tbaa !38
  br label %56

56:                                               ; preds = %53, %48
  %.sink = phi i64 [ %55, %53 ], [ %52, %48 ]
  %.0110 = phi i64 [ %54, %53 ], [ %50, %48 ]
  call void @_ZN11alglib_impl13dserrallocateElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %.sink, ptr noundef nonnull %14, ptr noundef %5)
  %57 = load i64, ptr %25, align 8, !tbaa !36
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %57, ptr noundef %5)
  %58 = load i64, ptr %25, align 8, !tbaa !36
  %.not.not123 = icmp sgt i64 %58, 0
  br i1 %.not.not123, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %56
  %59 = getelementptr inbounds i8, ptr %13, i64 56
  br label %61

.preheader122:                                    ; preds = %61
  %.not125 = icmp slt i64 %68, 2
  br i1 %.not125, label %._crit_edge, label %.lr.ph127

.lr.ph127:                                        ; preds = %.preheader122
  %60 = getelementptr inbounds i8, ptr %13, i64 56
  br label %69

61:                                               ; preds = %.lr.ph, %61
  %62 = phi i64 [ %58, %.lr.ph ], [ %68, %61 ]
  %.0111124 = phi i64 [ 0, %.lr.ph ], [ %67, %61 ]
  %63 = mul nsw i64 %.0111124, %.0
  %64 = sdiv i64 %63, %62
  %65 = load ptr, ptr %59, align 8, !tbaa !40
  %66 = getelementptr inbounds i64, ptr %65, i64 %.0111124
  store i64 %64, ptr %66, align 8, !tbaa !38
  %67 = add nuw nsw i64 %.0111124, 1
  %68 = load i64, ptr %25, align 8, !tbaa !36
  %.not.not = icmp slt i64 %67, %68
  br i1 %.not.not, label %61, label %.preheader122, !llvm.loop !41

69:                                               ; preds = %.lr.ph127, %82
  %70 = phi i64 [ %68, %.lr.ph127 ], [ %84, %82 ]
  %.1126 = phi i64 [ 0, %.lr.ph127 ], [ %83, %82 ]
  %71 = sub nsw i64 %70, %.1126
  %72 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %71, ptr noundef %5)
  %.not121 = icmp eq i64 %72, 0
  br i1 %.not121, label %82, label %73

73:                                               ; preds = %69
  %74 = add nsw i64 %72, %.1126
  %75 = load ptr, ptr %60, align 8, !tbaa !40
  %76 = getelementptr inbounds i64, ptr %75, i64 %.1126
  %77 = load i64, ptr %76, align 8, !tbaa !38
  %78 = getelementptr inbounds i64, ptr %75, i64 %74
  %79 = load i64, ptr %78, align 8, !tbaa !38
  store i64 %79, ptr %76, align 8, !tbaa !38
  %80 = load ptr, ptr %60, align 8, !tbaa !40
  %81 = getelementptr inbounds i64, ptr %80, i64 %74
  store i64 %77, ptr %81, align 8, !tbaa !38
  br label %82

82:                                               ; preds = %69, %73
  %83 = add nuw nsw i64 %.1126, 1
  %84 = load i64, ptr %25, align 8, !tbaa !36
  %85 = add nsw i64 %84, -2
  %.not.not135 = icmp slt i64 %.1126, %85
  br i1 %.not.not135, label %69, label %._crit_edge, !llvm.loop !43

._crit_edge:                                      ; preds = %82, %56, %.preheader122
  %.lcssa = phi i64 [ %68, %.preheader122 ], [ %58, %56 ], [ %84, %82 ]
  %86 = load i64, ptr %17, align 8, !tbaa !38
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.lcssa, i64 noundef %86, ptr noundef %5)
  %87 = getelementptr inbounds i8, ptr %9, i64 2368
  store i64 0, ptr %87, align 8, !tbaa !44
  call void @_ZN11alglib_impl7mlpcopyEPNS_20multilayerperceptronES1_PNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %9, ptr noundef %5)
  %88 = getelementptr inbounds i8, ptr %9, i64 2168
  %89 = load i64, ptr %25, align 8, !tbaa !36
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %88, i64 noundef %89, ptr noundef %5)
  %90 = getelementptr inbounds i8, ptr %9, i64 2240
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %90, i64 noundef %.0110, ptr noundef %5)
  %91 = getelementptr inbounds i8, ptr %9, i64 2304
  %92 = load i64, ptr %17, align 8, !tbaa !38
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %91, i64 noundef %92, ptr noundef %5)
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef 2520, ptr noundef nonnull @_ZN11alglib_impl26_mlpparallelizationcv_initEPvPNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl31_mlpparallelizationcv_init_copyEPvS0_PNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl29_mlpparallelizationcv_destroyEPv, ptr noundef %5)
  %93 = load i64, ptr %18, align 8, !tbaa !38
  call void @_ZN11alglib_implL18mlptrain_mthreadcvEPNS_10mlptrainerEllPNS_9ae_vectorEllPNS_9ae_matrixEPNS_14ae_shared_poolElPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %.0110, i64 noundef %2, ptr noundef nonnull %13, i64 noundef 0, i64 noundef %.0, ptr noundef nonnull %12, ptr noundef nonnull %8, i64 noundef %93, ptr noundef %5)
  call void @_ZN11alglib_impl29ae_shared_pool_first_recycledEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %11, ptr noundef %5)
  %94 = load ptr, ptr %10, align 8, !tbaa !47
  %.not119128 = icmp eq ptr %94, null
  br i1 %.not119128, label %.preheader, label %.lr.ph130

.preheader:                                       ; preds = %.lr.ph130, %._crit_edge
  %95 = load i64, ptr %25, align 8, !tbaa !36
  %.not120.not131 = icmp sgt i64 %95, 0
  br i1 %.not120.not131, label %.lr.ph133, label %._crit_edge134

.lr.ph133:                                        ; preds = %.preheader
  %96 = getelementptr inbounds i8, ptr %0, i64 56
  %97 = getelementptr inbounds i8, ptr %9, i64 2296
  %98 = getelementptr inbounds i8, ptr %0, i64 144
  %99 = add nsw i64 %.0110, -1
  %100 = getelementptr inbounds i8, ptr %0, i64 152
  %101 = getelementptr inbounds i8, ptr %9, i64 2360
  %102 = getelementptr inbounds i8, ptr %12, i64 72
  %103 = getelementptr inbounds i8, ptr %15, i64 56
  br label %110

.lr.ph130:                                        ; preds = %._crit_edge, %.lr.ph130
  %104 = phi ptr [ %109, %.lr.ph130 ], [ %94, %._crit_edge ]
  %105 = load i64, ptr %42, align 8, !tbaa !48
  %106 = getelementptr inbounds i8, ptr %104, i64 2368
  %107 = load i64, ptr %106, align 8, !tbaa !44
  %108 = add nsw i64 %107, %105
  store i64 %108, ptr %42, align 8, !tbaa !48
  call void @_ZN11alglib_impl28ae_shared_pool_next_recycledEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %11, ptr noundef %5)
  %109 = load ptr, ptr %10, align 8, !tbaa !47
  %.not119 = icmp eq ptr %109, null
  br i1 %.not119, label %.preheader, label %.lr.ph130, !llvm.loop !49

110:                                              ; preds = %.lr.ph133, %147
  %.2132 = phi i64 [ 0, %.lr.ph133 ], [ %148, %147 ]
  %111 = load i64, ptr %96, align 8, !tbaa !50
  %112 = icmp eq i64 %111, 0
  br i1 %112, label %113, label %119

113:                                              ; preds = %110
  %114 = load ptr, ptr %97, align 8, !tbaa !40
  %115 = load ptr, ptr %98, align 8, !tbaa !40
  %116 = getelementptr inbounds ptr, ptr %115, i64 %.2132
  %117 = load ptr, ptr %116, align 8, !tbaa !47
  %118 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %99)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %114, i64 noundef 1, ptr noundef %117, i64 noundef 1, i64 noundef %118)
  %.pr = load i64, ptr %96, align 8, !tbaa !50
  br label %119

119:                                              ; preds = %113, %110
  %120 = phi i64 [ %.pr, %113 ], [ %111, %110 ]
  %121 = icmp eq i64 %120, 1
  br i1 %121, label %122, label %123

122:                                              ; preds = %119
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %100, i64 noundef %.2132, ptr noundef nonnull %90, ptr noundef %5)
  br label %123

123:                                              ; preds = %122, %119
  %124 = load ptr, ptr %101, align 8, !tbaa !40
  %125 = load ptr, ptr %102, align 8, !tbaa !40
  %126 = getelementptr inbounds ptr, ptr %125, i64 %.2132
  %127 = load ptr, ptr %126, align 8, !tbaa !47
  %128 = load i64, ptr %17, align 8, !tbaa !38
  %129 = add nsw i64 %128, -1
  %130 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %129)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %124, i64 noundef 1, ptr noundef %127, i64 noundef 1, i64 noundef %130)
  %131 = load i8, ptr %21, align 8, !tbaa !5, !range !34, !noundef !35
  %132 = trunc nuw i8 %131 to i1
  br i1 %132, label %133, label %141

133:                                              ; preds = %123
  %134 = load ptr, ptr %103, align 8, !tbaa !40
  %135 = load ptr, ptr %97, align 8, !tbaa !40
  %136 = load i64, ptr %16, align 8, !tbaa !38
  %137 = getelementptr inbounds double, ptr %135, i64 %136
  %138 = load i64, ptr %17, align 8, !tbaa !38
  %139 = add nsw i64 %138, -1
  %140 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %139)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %134, i64 noundef 1, ptr noundef %137, i64 noundef 1, i64 noundef %140)
  br label %147

141:                                              ; preds = %123
  %142 = load ptr, ptr %97, align 8, !tbaa !40
  %143 = load i64, ptr %16, align 8, !tbaa !38
  %144 = getelementptr inbounds double, ptr %142, i64 %143
  %145 = load double, ptr %144, align 8, !tbaa !51
  %146 = load ptr, ptr %103, align 8, !tbaa !40
  store double %145, ptr %146, align 8, !tbaa !51
  br label %147

147:                                              ; preds = %141, %133
  call void @_ZN11alglib_impl15dserraccumulateEPNS_9ae_vectorES1_S1_PNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %91, ptr noundef nonnull %15, ptr noundef %5)
  %148 = add nuw nsw i64 %.2132, 1
  %149 = load i64, ptr %25, align 8, !tbaa !36
  %.not120.not = icmp slt i64 %148, %149
  br i1 %.not120.not, label %110, label %._crit_edge134, !llvm.loop !52

._crit_edge134:                                   ; preds = %147, %.preheader
  call void @_ZN11alglib_impl11dserrfinishEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef %5)
  %150 = getelementptr inbounds i8, ptr %14, i64 56
  %151 = load ptr, ptr %150, align 8, !tbaa !40
  %152 = load double, ptr %151, align 8, !tbaa !51
  store double %152, ptr %4, align 8, !tbaa !53
  %153 = getelementptr inbounds i8, ptr %151, i64 8
  %154 = load double, ptr %153, align 8, !tbaa !51
  store double %154, ptr %38, align 8, !tbaa !54
  %155 = getelementptr inbounds i8, ptr %151, i64 16
  %156 = load double, ptr %155, align 8, !tbaa !51
  store double %156, ptr %39, align 8, !tbaa !55
  %157 = getelementptr inbounds i8, ptr %151, i64 24
  %158 = load double, ptr %157, align 8, !tbaa !51
  store double %158, ptr %40, align 8, !tbaa !56
  %159 = getelementptr inbounds i8, ptr %151, i64 32
  %160 = load double, ptr %159, align 8, !tbaa !51
  store double %160, ptr %41, align 8, !tbaa !57
  br label %161

161:                                              ; preds = %6, %._crit_edge134
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, 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 64, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 2520, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  ret void
}

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !10, i64 16}
!6 = !{!"_ZTSN11alglib_impl10mlptrainerE", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !11, i64 32, !11, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !12, i64 72, !15, i64 152, !17, i64 520, !7, i64 10160, !16, i64 10168, !7, i64 10232, !16, i64 10240, !7, i64 10304, !7, i64 10312, !7, i64 10320}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !13, i64 40, !8, i64 72}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSN11alglib_impl12sparsematrixE", !16, i64 0, !16, i64 64, !16, i64 128, !16, i64 192, !16, i64 256, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !13, i64 24, !8, i64 56}
!17 = !{!"_ZTSN11alglib_impl14smlptrnsessionE", !16, i64 0, !11, i64 64, !10, i64 72, !18, i64 80, !22, i64 2184, !32, i64 9056, !16, i64 9080, !16, i64 9144, !16, i64 9208, !16, i64 9272, !25, i64 9336, !7, i64 9600, !7, i64 9608, !33, i64 9616}
!18 = !{!"_ZTSN11alglib_impl20multilayerperceptronE", !7, i64 0, !7, i64 8, !16, i64 16, !16, i64 80, !16, i64 144, !16, i64 208, !16, i64 272, !16, i64 336, !16, i64 400, !16, i64 464, !16, i64 528, !16, i64 592, !16, i64 656, !16, i64 720, !12, i64 784, !16, i64 864, !16, i64 928, !16, i64 992, !19, i64 1056, !16, i64 1096, !20, i64 1160, !20, i64 1304, !12, i64 1448, !15, i64 1528, !16, i64 1896, !20, i64 1960}
!19 = !{!"_ZTSN11alglib_impl11modelerrorsE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!20 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !21, i64 0, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !7, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !13, i64 112}
!21 = !{!"_ZTSN11alglib_impl7ae_lockE", !14, i64 0, !13, i64 8, !10, i64 40}
!22 = !{!"_ZTSN11alglib_impl13minlbfgsstateE", !7, i64 0, !7, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !7, i64 40, !10, i64 48, !11, i64 56, !16, i64 64, !11, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !16, i64 176, !12, i64 240, !12, i64 320, !16, i64 400, !16, i64 464, !16, i64 528, !11, i64 592, !16, i64 600, !11, i64 664, !11, i64 672, !16, i64 680, !7, i64 744, !11, i64 752, !12, i64 760, !16, i64 840, !16, i64 904, !16, i64 968, !12, i64 1032, !7, i64 1112, !23, i64 1120, !24, i64 1584, !11, i64 2032, !11, i64 2040, !11, i64 2048, !11, i64 2056, !11, i64 2064, !16, i64 2072, !16, i64 2136, !16, i64 2200, !11, i64 2264, !16, i64 2272, !10, i64 2336, !10, i64 2337, !10, i64 2338, !10, i64 2339, !11, i64 2344, !25, i64 2352, !7, i64 2616, !7, i64 2624, !7, i64 2632, !27, i64 2640, !7, i64 2832, !28, i64 2840, !16, i64 6808}
!23 = !{!"_ZTSN11alglib_impl12precbuflbfgsE", !16, i64 0, !16, i64 64, !16, i64 128, !12, i64 192, !16, i64 272, !16, i64 336, !16, i64 400}
!24 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !7, i64 0, !7, i64 8, !16, i64 16, !12, i64 80, !16, i64 160, !12, i64 224, !12, i64 304, !16, i64 384}
!25 = !{!"_ZTSN11alglib_impl10rcommstateE", !26, i64 0, !16, i64 8, !16, i64 72, !16, i64 136, !16, i64 200}
!26 = !{!"int", !8, i64 0}
!27 = !{!"_ZTSN11alglib_impl11linminstateE", !10, i64 0, !10, i64 1, !7, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184}
!28 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !7, i64 0, !7, i64 8, !10, i64 16, !16, i64 24, !7, i64 88, !16, i64 96, !16, i64 160, !16, i64 224, !12, i64 288, !16, i64 368, !16, i64 432, !7, i64 496, !10, i64 504, !10, i64 505, !11, i64 512, !11, i64 520, !10, i64 528, !29, i64 536, !11, i64 832, !11, i64 840, !30, i64 848, !30, i64 1152, !11, i64 1456, !11, i64 1464, !31, i64 1472, !31, i64 1784, !10, i64 2096, !16, i64 2104, !16, i64 2168, !12, i64 2232, !25, i64 2312, !16, i64 2576, !16, i64 2640, !16, i64 2704, !16, i64 2768, !16, i64 2832, !16, i64 2896, !16, i64 2960, !16, i64 3024, !12, i64 3088, !12, i64 3168, !16, i64 3248, !16, i64 3312, !16, i64 3376, !16, i64 3440, !16, i64 3504, !16, i64 3568, !16, i64 3632, !16, i64 3696, !16, i64 3760, !16, i64 3824, !12, i64 3888}
!29 = !{!"_ZTSN11alglib_impl14optguardreportE", !10, i64 0, !10, i64 1, !7, i64 8, !11, i64 16, !10, i64 24, !10, i64 25, !10, i64 26, !7, i64 32, !11, i64 40, !10, i64 48, !7, i64 56, !7, i64 64, !16, i64 72, !12, i64 136, !12, i64 216}
!30 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !10, i64 0, !7, i64 8, !16, i64 16, !16, i64 80, !7, i64 144, !16, i64 152, !16, i64 216, !7, i64 280, !7, i64 288, !7, i64 296}
!31 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !10, i64 0, !7, i64 8, !7, i64 16, !16, i64 24, !16, i64 88, !7, i64 152, !16, i64 160, !16, i64 224, !7, i64 288, !7, i64 296, !7, i64 304}
!32 = !{!"_ZTSN11alglib_impl14minlbfgsreportE", !7, i64 0, !7, i64 8, !7, i64 16}
!33 = !{!"_ZTSN11alglib_impl10hqrndstateE", !7, i64 0, !7, i64 8, !7, i64 16}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = !{!6, !7, i64 64}
!37 = !{!6, !7, i64 0}
!38 = !{!7, !7, i64 0}
!39 = !{!6, !7, i64 8}
!40 = !{!8, !8, i64 0}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = distinct !{!43, !42}
!44 = !{!45, !7, i64 2368}
!45 = !{!"_ZTSN11alglib_impl20mlpparallelizationcvE", !18, i64 0, !46, i64 2104, !16, i64 2168, !7, i64 2232, !16, i64 2240, !16, i64 2304, !7, i64 2368, !20, i64 2376}
!46 = !{!"_ZTSN11alglib_impl9mlpreportE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!47 = !{!14, !14, i64 0}
!48 = !{!46, !7, i64 40}
!49 = distinct !{!49, !42}
!50 = !{!6, !7, i64 56}
!51 = !{!11, !11, i64 0}
!52 = distinct !{!52, !42}
!53 = !{!46, !11, i64 0}
!54 = !{!46, !11, i64 8}
!55 = !{!46, !11, i64 16}
!56 = !{!46, !11, i64 24}
!57 = !{!46, !11, i64 32}


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