; 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::sinteger" = type { i64 }
%"struct.alglib_impl::modelerrors" = type { double, double, double, double, double }
%"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::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::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::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::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" }
%"struct.alglib_impl::hqrndstate" = type { 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::mlpensemble" = type { i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::multilayerperceptron", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::mlpreport" = type { double, double, double, double, double, i64, i64, i64 }

@.str.391 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.392 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.393 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.394 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.395 = external hidden unnamed_addr constant [33 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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl18mlptrainensembleesEPNS_10mlptrainerEPNS_11mlpensembleElPNS_9mlpreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.alglib_impl::ae_frame", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"struct.alglib_impl::ae_shared_pool", align 8
  %17 = alloca %"struct.alglib_impl::sinteger", align 8
  %18 = alloca %"struct.alglib_impl::modelerrors", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 144, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #5
  %19 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %19, ptr noundef %11)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 144, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 8, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 40, i1 false)
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_mlpreport_clearEPv(ptr noundef %20)
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_shared_pool_initEPvPNS_8ae_stateEb(ptr noundef %16, ptr noundef %21, i1 noundef zeroext true)
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14_sinteger_initEPvPNS_8ae_stateEb(ptr noundef %17, ptr noundef %22, i1 noundef zeroext true)
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl17_modelerrors_initEPvPNS_8ae_stateEb(ptr noundef %18, ptr noundef %23, i1 noundef zeroext true)
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %24, i32 0, i32 8
  %26 = load i64, ptr %25, align 8, !tbaa !11
  %27 = icmp sge i64 %26, 0
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef @.str.391, ptr noundef %28)
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = call noundef zeroext i1 @_ZN11alglib_impl13mlpeissoftmaxEPNS_11mlpensembleEPNS_8ae_stateE(ptr noundef %29, ptr noundef %30)
  br i1 %31, label %33, label %32

32:                                               ; preds = %5
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %34

33:                                               ; preds = %5
  store i64 1, ptr %14, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %33, %32
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %35, i32 0, i32 2
  %37 = load i8, ptr %36, align 8, !tbaa !36, !range !37, !noundef !38
  %38 = trunc i8 %37 to i1
  br i1 %38, label %39, label %40

39:                                               ; preds = %34
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %41

40:                                               ; preds = %34
  store i64 1, ptr %15, align 8, !tbaa !9
  br label %41

41:                                               ; preds = %40, %39
  %42 = load i64, ptr %14, align 8, !tbaa !9
  %43 = load i64, ptr %15, align 8, !tbaa !9
  %44 = icmp eq i64 %42, %43
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef @.str.392, ptr noundef %45)
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::mlpensemble", ptr %46, i32 0, i32 4
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = call noundef i64 @_ZN11alglib_impl17mlpgetinputscountEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %47, ptr noundef %48)
  store i64 %49, ptr %12, align 8, !tbaa !9
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %50, i32 0, i32 0
  %52 = load i64, ptr %51, align 8, !tbaa !39
  %53 = load i64, ptr %12, align 8, !tbaa !9
  %54 = icmp eq i64 %52, %53
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %54, ptr noundef @.str.393, ptr noundef %55)
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::mlpensemble", ptr %56, i32 0, i32 4
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = call noundef i64 @_ZN11alglib_impl18mlpgetoutputscountEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %57, ptr noundef %58)
  store i64 %59, ptr %13, align 8, !tbaa !9
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %60, i32 0, i32 1
  %62 = load i64, ptr %61, align 8, !tbaa !40
  %63 = load i64, ptr %13, align 8, !tbaa !9
  %64 = icmp eq i64 %62, %63
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %64, ptr noundef @.str.394, ptr noundef %65)
  %66 = load i64, ptr %8, align 8, !tbaa !9
  %67 = icmp sge i64 %66, 0
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %67, ptr noundef @.str.395, ptr noundef %68)
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %69, i32 0, i32 0
  store double 0.000000e+00, ptr %70, align 8, !tbaa !41
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %71, i32 0, i32 1
  store double 0.000000e+00, ptr %72, align 8, !tbaa !43
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %73, i32 0, i32 2
  store double 0.000000e+00, ptr %74, align 8, !tbaa !44
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %75, i32 0, i32 3
  store double 0.000000e+00, ptr %76, align 8, !tbaa !45
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %77, i32 0, i32 4
  store double 0.000000e+00, ptr %78, align 8, !tbaa !46
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %79, i32 0, i32 5
  store i64 0, ptr %80, align 8, !tbaa !47
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %81, i32 0, i32 6
  store i64 0, ptr %82, align 8, !tbaa !48
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %83, i32 0, i32 7
  store i64 0, ptr %84, align 8, !tbaa !49
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %85, i32 0, i32 13
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %87, i32 0, i32 8
  %89 = load i64, ptr %88, align 8, !tbaa !11
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %86, i64 noundef %89, ptr noundef %90)
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %91, i32 0, i32 15
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %93, i32 0, i32 8
  %95 = load i64, ptr %94, align 8, !tbaa !11
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %92, i64 noundef %95, ptr noundef %96)
  %97 = getelementptr inbounds %"struct.alglib_impl::sinteger", ptr %17, i32 0, i32 0
  store i64 0, ptr %97, align 8, !tbaa !50
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::mlpensemble", ptr %100, i32 0, i32 0
  %102 = load i64, ptr %101, align 8, !tbaa !52
  %103 = load i64, ptr %8, align 8, !tbaa !9
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL26mlptrain_mlptrainensemblexEPNS_10mlptrainerEPNS_11mlpensembleEllllPNS_8sintegerEbPNS_14ae_shared_poolEPNS_8ae_stateE(ptr noundef %98, ptr noundef %99, i64 noundef 0, i64 noundef %102, i64 noundef %103, i64 noundef 0, ptr noundef %17, i1 noundef zeroext true, ptr noundef %16, ptr noundef %104)
  %105 = getelementptr inbounds %"struct.alglib_impl::sinteger", ptr %17, i32 0, i32 0
  %106 = load i64, ptr %105, align 8, !tbaa !50
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %107, i32 0, i32 5
  store i64 %106, ptr %108, align 8, !tbaa !47
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %109, i32 0, i32 7
  %111 = load i64, ptr %110, align 8, !tbaa !54
  %112 = icmp eq i64 %111, 0
  br i1 %112, label %113, label %132

113:                                              ; preds = %41
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %115, i32 0, i32 9
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %117, i32 0, i32 10
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %119, i32 0, i32 8
  %121 = load i64, ptr %120, align 8, !tbaa !11
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.alglib_impl::mlpensemble", ptr %122, i32 0, i32 4
  %124 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %123, i32 0, i32 24
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %125, i32 0, i32 8
  %127 = load i64, ptr %126, align 8, !tbaa !11
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.alglib_impl::mlpensemble", ptr %128, i32 0, i32 4
  %130 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %129, i32 0, i32 20
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14mlpeallerrorsxEPNS_11mlpensembleEPNS_9ae_matrixEPNS_12sparsematrixEllPNS_9ae_vectorElllPNS_14ae_shared_poolEPNS_11modelerrorsEPNS_8ae_stateE(ptr noundef %114, ptr noundef %116, ptr noundef %118, i64 noundef %121, i64 noundef 0, ptr noundef %124, i64 noundef 0, i64 noundef %127, i64 noundef 0, ptr noundef %130, ptr noundef %18, ptr noundef %131)
  br label %132

132:                                              ; preds = %113, %41
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %133, i32 0, i32 7
  %135 = load i64, ptr %134, align 8, !tbaa !54
  %136 = icmp eq i64 %135, 1
  br i1 %136, label %137, label %156

137:                                              ; preds = %132
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %139, i32 0, i32 9
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %141, i32 0, i32 10
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %143, i32 0, i32 8
  %145 = load i64, ptr %144, align 8, !tbaa !11
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.alglib_impl::mlpensemble", ptr %146, i32 0, i32 4
  %148 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %147, i32 0, i32 24
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %149, i32 0, i32 8
  %151 = load i64, ptr %150, align 8, !tbaa !11
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.alglib_impl::mlpensemble", ptr %152, i32 0, i32 4
  %154 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %153, i32 0, i32 20
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14mlpeallerrorsxEPNS_11mlpensembleEPNS_9ae_matrixEPNS_12sparsematrixEllPNS_9ae_vectorElllPNS_14ae_shared_poolEPNS_11modelerrorsEPNS_8ae_stateE(ptr noundef %138, ptr noundef %140, ptr noundef %142, i64 noundef %145, i64 noundef 1, ptr noundef %148, i64 noundef 0, i64 noundef %151, i64 noundef 0, ptr noundef %154, ptr noundef %18, ptr noundef %155)
  br label %156

156:                                              ; preds = %137, %132
  %157 = getelementptr inbounds %"struct.alglib_impl::modelerrors", ptr %18, i32 0, i32 0
  %158 = load double, ptr %157, align 8, !tbaa !55
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %159, i32 0, i32 0
  store double %158, ptr %160, align 8, !tbaa !41
  %161 = getelementptr inbounds %"struct.alglib_impl::modelerrors", ptr %18, i32 0, i32 1
  %162 = load double, ptr %161, align 8, !tbaa !56
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %163, i32 0, i32 1
  store double %162, ptr %164, align 8, !tbaa !43
  %165 = getelementptr inbounds %"struct.alglib_impl::modelerrors", ptr %18, i32 0, i32 2
  %166 = load double, ptr %165, align 8, !tbaa !57
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %167, i32 0, i32 2
  store double %166, ptr %168, align 8, !tbaa !44
  %169 = getelementptr inbounds %"struct.alglib_impl::modelerrors", ptr %18, i32 0, i32 3
  %170 = load double, ptr %169, align 8, !tbaa !58
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %171, i32 0, i32 3
  store double %170, ptr %172, align 8, !tbaa !45
  %173 = getelementptr inbounds %"struct.alglib_impl::modelerrors", ptr %18, i32 0, i32 4
  %174 = load double, ptr %173, align 8, !tbaa !59
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %175, i32 0, i32 4
  store double %174, ptr %176, align 8, !tbaa !46
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %177)
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  ret void
}

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

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

declare void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #3

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

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

declare void @_ZN11alglib_impl14_sinteger_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL26mlptrain_mlptrainensemblexEPNS_10mlptrainerEPNS_11mlpensembleEllllPNS_8sintegerEbPNS_14ae_shared_poolEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext, ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 = { "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, !10, i64 64}
!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 = !{!12, !13, i64 16}
!37 = !{i8 0, i8 2}
!38 = !{}
!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 = !{!51, !10, i64 0}
!51 = !{!"_ZTSN11alglib_impl8sintegerE", !10, i64 0}
!52 = !{!53, !10, i64 0}
!53 = !{!"_ZTSN11alglib_impl11mlpensembleE", !10, i64 0, !18, i64 8, !18, i64 72, !18, i64 136, !20, i64 200, !18, i64 2304}
!54 = !{!12, !10, i64 56}
!55 = !{!21, !14, i64 0}
!56 = !{!21, !14, i64 8}
!57 = !{!21, !14, i64 16}
!58 = !{!21, !14, i64 24}
!59 = !{!21, !14, i64 32}


; 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::sinteger" = type { i64 }
%"struct.alglib_impl::modelerrors" = type { double, double, double, double, double }

@.str.391 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.392 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.393 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.394 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.395 = external hidden unnamed_addr constant [33 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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl18mlptrainensembleesEPNS_10mlptrainerEPNS_11mlpensembleElPNS_9mlpreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #2 {
  %6 = alloca %"struct.alglib_impl::ae_frame", align 8
  %7 = alloca %"struct.alglib_impl::ae_shared_pool", align 8
  %8 = alloca %"struct.alglib_impl::sinteger", align 8
  %9 = alloca %"struct.alglib_impl::modelerrors", align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %4, ptr noundef nonnull %6)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(144) %7, i8 0, i64 144, i1 false)
  store i64 0, ptr %8, align 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %9, i8 0, i64 40, i1 false)
  call void @_ZN11alglib_impl16_mlpreport_clearEPv(ptr noundef %3)
  call void @_ZN11alglib_impl19ae_shared_pool_initEPvPNS_8ae_stateEb(ptr noundef nonnull %7, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14_sinteger_initEPvPNS_8ae_stateEb(ptr noundef nonnull %8, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl17_modelerrors_initEPvPNS_8ae_stateEb(ptr noundef nonnull %9, ptr noundef %4, i1 noundef zeroext true)
  %10 = getelementptr inbounds i8, ptr %0, i64 64
  %11 = load i64, ptr %10, align 8, !tbaa !5
  %12 = icmp sgt i64 %11, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %12, ptr noundef nonnull @.str.391, ptr noundef %4)
  %13 = call noundef zeroext i1 @_ZN11alglib_impl13mlpeissoftmaxEPNS_11mlpensembleEPNS_8ae_stateE(ptr noundef %1, ptr noundef %4)
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load i8, ptr %14, align 8, !tbaa !34, !range !35, !noundef !36
  %16 = zext i1 %13 to i8
  %17 = icmp ne i8 %15, %16
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.392, ptr noundef %4)
  %18 = getelementptr inbounds i8, ptr %1, i64 200
  %19 = call noundef i64 @_ZN11alglib_impl17mlpgetinputscountEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef %4)
  %20 = load i64, ptr %0, align 8, !tbaa !37
  %21 = icmp eq i64 %20, %19
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.393, ptr noundef %4)
  %22 = call noundef i64 @_ZN11alglib_impl18mlpgetoutputscountEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef %4)
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = load i64, ptr %23, align 8, !tbaa !38
  %25 = icmp eq i64 %24, %22
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.394, ptr noundef %4)
  %26 = icmp sgt i64 %2, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef nonnull @.str.395, ptr noundef %4)
  %27 = getelementptr inbounds i8, ptr %3, i64 40
  %28 = getelementptr inbounds i8, ptr %0, i64 10168
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %3, i8 0, i64 64, i1 false)
  %29 = load i64, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %28, i64 noundef %29, ptr noundef %4)
  %30 = getelementptr inbounds i8, ptr %0, i64 10240
  %31 = load i64, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %30, i64 noundef %31, ptr noundef %4)
  store i64 0, ptr %8, align 8, !tbaa !39
  %32 = load i64, ptr %1, align 8, !tbaa !41
  call void @_ZN11alglib_implL26mlptrain_mlptrainensemblexEPNS_10mlptrainerEPNS_11mlpensembleEllllPNS_8sintegerEbPNS_14ae_shared_poolEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %1, i64 noundef 0, i64 noundef %32, i64 noundef %2, i64 noundef 0, ptr noundef nonnull %8, i1 noundef zeroext true, ptr noundef nonnull %7, ptr noundef %4)
  %33 = load i64, ptr %8, align 8, !tbaa !39
  store i64 %33, ptr %27, align 8, !tbaa !43
  %34 = getelementptr inbounds i8, ptr %0, i64 56
  %35 = load i64, ptr %34, align 8, !tbaa !45
  %36 = icmp eq i64 %35, 0
  br i1 %36, label %37, label %43

37:                                               ; preds = %5
  %38 = getelementptr inbounds i8, ptr %0, i64 72
  %39 = getelementptr inbounds i8, ptr %0, i64 152
  %40 = load i64, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %1, i64 2096
  %42 = getelementptr inbounds i8, ptr %1, i64 1360
  call void @_ZN11alglib_impl14mlpeallerrorsxEPNS_11mlpensembleEPNS_9ae_matrixEPNS_12sparsematrixEllPNS_9ae_vectorElllPNS_14ae_shared_poolEPNS_11modelerrorsEPNS_8ae_stateE(ptr noundef nonnull %1, ptr noundef nonnull %38, ptr noundef nonnull %39, i64 noundef %40, i64 noundef 0, ptr noundef nonnull %41, i64 noundef 0, i64 noundef %40, i64 noundef 0, ptr noundef nonnull %42, ptr noundef nonnull %9, ptr noundef %4)
  %.pr = load i64, ptr %34, align 8, !tbaa !45
  br label %43

43:                                               ; preds = %37, %5
  %44 = phi i64 [ %.pr, %37 ], [ %35, %5 ]
  %45 = icmp eq i64 %44, 1
  br i1 %45, label %46, label %52

46:                                               ; preds = %43
  %47 = getelementptr inbounds i8, ptr %0, i64 72
  %48 = getelementptr inbounds i8, ptr %0, i64 152
  %49 = load i64, ptr %10, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %1, i64 2096
  %51 = getelementptr inbounds i8, ptr %1, i64 1360
  call void @_ZN11alglib_impl14mlpeallerrorsxEPNS_11mlpensembleEPNS_9ae_matrixEPNS_12sparsematrixEllPNS_9ae_vectorElllPNS_14ae_shared_poolEPNS_11modelerrorsEPNS_8ae_stateE(ptr noundef nonnull %1, ptr noundef nonnull %47, ptr noundef nonnull %48, i64 noundef %49, i64 noundef 1, ptr noundef nonnull %50, i64 noundef 0, i64 noundef %49, i64 noundef 0, ptr noundef nonnull %51, ptr noundef nonnull %9, ptr noundef %4)
  br label %52

52:                                               ; preds = %46, %43
  %53 = getelementptr inbounds i8, ptr %3, i64 32
  %54 = getelementptr inbounds i8, ptr %3, i64 16
  %55 = load <2 x double>, ptr %9, align 16, !tbaa !46
  store <2 x double> %55, ptr %3, align 8, !tbaa !46
  %56 = getelementptr inbounds i8, ptr %9, i64 16
  %57 = load <2 x double>, ptr %56, align 16, !tbaa !46
  store <2 x double> %57, ptr %54, align 8, !tbaa !46
  %58 = getelementptr inbounds i8, ptr %9, i64 32
  %59 = load double, ptr %58, align 16, !tbaa !47
  store double %59, ptr %53, align 8, !tbaa !48
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  ret void
}

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

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

declare void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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

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

declare void @_ZN11alglib_impl14_sinteger_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL26mlptrain_mlptrainensemblexEPNS_10mlptrainerEPNS_11mlpensembleEllllPNS_8sintegerEbPNS_14ae_shared_poolEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #2

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 = { "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, !7, i64 64}
!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 = !{!6, !10, i64 16}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!6, !7, i64 0}
!38 = !{!6, !7, i64 8}
!39 = !{!40, !7, i64 0}
!40 = !{!"_ZTSN11alglib_impl8sintegerE", !7, i64 0}
!41 = !{!42, !7, i64 0}
!42 = !{!"_ZTSN11alglib_impl11mlpensembleE", !7, i64 0, !16, i64 8, !16, i64 72, !16, i64 136, !18, i64 200, !16, i64 2304}
!43 = !{!44, !7, i64 40}
!44 = !{!"_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}
!45 = !{!6, !7, i64 56}
!46 = !{!11, !11, i64 0}
!47 = !{!19, !11, i64 32}
!48 = !{!44, !11, i64 32}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass