; 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::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 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%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::modelerrors" = type { double, double, double, double, double }
%"struct.alglib_impl::ae_shared_pool" = type { %"struct.alglib_impl::ae_lock", ptr, ptr, ptr, ptr, i64, ptr, ptr, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }
%"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 }

@.str.353 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.354 = external hidden unnamed_addr constant [26 x i8], align 1
@_ZN11alglib_implL27mlptrain_defaultlbfgsfactorE = external hidden global i64, align 8

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16mlpcreatetrainerEllPNS_10mlptrainerEPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #1 {
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  store i64 %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !9
  %9 = load ptr, ptr %7, align 8, !tbaa !9
  call void @_ZN11alglib_impl17_mlptrainer_clearEPv(ptr noundef %9)
  %10 = load i64, ptr %5, align 8, !tbaa !5
  %11 = icmp sge i64 %10, 1
  %12 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef @.str.353, ptr noundef %12)
  %13 = load i64, ptr %6, align 8, !tbaa !5
  %14 = icmp sge i64 %13, 1
  %15 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef @.str.354, ptr noundef %15)
  %16 = load i64, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %7, align 8, !tbaa !9
  %18 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %17, i32 0, i32 0
  store i64 %16, ptr %18, align 8, !tbaa !11
  %19 = load i64, ptr %6, align 8, !tbaa !5
  %20 = load ptr, ptr %7, align 8, !tbaa !9
  %21 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %20, i32 0, i32 1
  store i64 %19, ptr %21, align 8, !tbaa !36
  %22 = load ptr, ptr %7, align 8, !tbaa !9
  %23 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %22, i32 0, i32 2
  store i8 1, ptr %23, align 8, !tbaa !37
  %24 = load i64, ptr @_ZN11alglib_implL27mlptrain_defaultlbfgsfactorE, align 8, !tbaa !5
  %25 = load ptr, ptr %7, align 8, !tbaa !9
  %26 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %25, i32 0, i32 3
  store i64 %24, ptr %26, align 8, !tbaa !38
  %27 = load ptr, ptr %7, align 8, !tbaa !9
  %28 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %27, i32 0, i32 4
  store double 0x3EB0C6F7A0B5ED8D, ptr %28, align 8, !tbaa !39
  %29 = load ptr, ptr %7, align 8, !tbaa !9
  %30 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10mlpsetcondEPNS_10mlptrainerEdlPNS_8ae_stateE(ptr noundef %29, double noundef 0.000000e+00, i64 noundef 0, ptr noundef %30)
  %31 = load ptr, ptr %7, align 8, !tbaa !9
  %32 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %31, i32 0, i32 7
  store i64 0, ptr %32, align 8, !tbaa !40
  %33 = load ptr, ptr %7, align 8, !tbaa !9
  %34 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %33, i32 0, i32 8
  store i64 0, ptr %34, align 8, !tbaa !41
  %35 = load ptr, ptr %7, align 8, !tbaa !9
  %36 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl15mlpsetalgobatchEPNS_10mlptrainerEPNS_8ae_stateE(ptr noundef %35, ptr noundef %36)
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl10mlpsetcondEPNS_10mlptrainerEdlPNS_8ae_stateE(ptr noundef, double noundef, i64 noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl17_mlptrainer_clearEPv(ptr noundef) #1

attributes #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 #1 = { 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 #2 = { 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" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN11alglib_impl10mlptrainerE", !6, i64 0, !6, i64 8, !13, i64 16, !6, i64 24, !14, i64 32, !14, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !15, i64 72, !17, i64 152, !19, i64 520, !6, i64 10160, !18, i64 10168, !6, i64 10232, !18, i64 10240, !6, i64 10304, !6, i64 10312, !6, i64 10320}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !16, i64 40, !7, i64 72}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!17 = !{!"_ZTSN11alglib_impl12sparsematrixE", !18, i64 0, !18, i64 64, !18, i64 128, !18, i64 192, !18, i64 256, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360}
!18 = !{!"_ZTSN11alglib_impl9ae_vectorE", !6, i64 0, !6, 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, !6, i64 9600, !6, i64 9608, !35, i64 9616}
!20 = !{!"_ZTSN11alglib_impl20multilayerperceptronE", !6, i64 0, !6, 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, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !6, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !16, i64 112}
!23 = !{!"_ZTSN11alglib_impl7ae_lockE", !10, i64 0, !16, i64 8, !13, i64 40}
!24 = !{!"_ZTSN11alglib_impl13minlbfgsstateE", !6, i64 0, !6, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !6, i64 40, !13, i64 48, !14, i64 56, !18, i64 64, !14, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, 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, !6, i64 744, !14, i64 752, !15, i64 760, !18, i64 840, !18, i64 904, !18, i64 968, !15, i64 1032, !6, 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, !6, i64 2616, !6, i64 2624, !6, i64 2632, !29, i64 2640, !6, 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", !6, i64 0, !6, 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, !6, 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", !6, i64 0, !6, i64 8, !13, i64 16, !18, i64 24, !6, i64 88, !18, i64 96, !18, i64 160, !18, i64 224, !15, i64 288, !18, i64 368, !18, i64 432, !6, 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, !6, i64 8, !14, i64 16, !13, i64 24, !13, i64 25, !13, i64 26, !6, i64 32, !14, i64 40, !13, i64 48, !6, i64 56, !6, i64 64, !18, i64 72, !15, i64 136, !15, i64 216}
!32 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !13, i64 0, !6, i64 8, !18, i64 16, !18, i64 80, !6, i64 144, !18, i64 152, !18, i64 216, !6, i64 280, !6, i64 288, !6, i64 296}
!33 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !13, i64 0, !6, i64 8, !6, i64 16, !18, i64 24, !18, i64 88, !6, i64 152, !18, i64 160, !18, i64 224, !6, i64 288, !6, i64 296, !6, i64 304}
!34 = !{!"_ZTSN11alglib_impl14minlbfgsreportE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSN11alglib_impl10hqrndstateE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!12, !6, i64 8}
!37 = !{!12, !13, i64 16}
!38 = !{!12, !6, i64 24}
!39 = !{!12, !14, i64 32}
!40 = !{!12, !6, i64 56}
!41 = !{!12, !6, i64 64}


; 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"

@.str.353 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.354 = external hidden unnamed_addr constant [26 x i8], align 1
@_ZN11alglib_implL27mlptrain_defaultlbfgsfactorE = external hidden local_unnamed_addr global i64, align 8

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16mlpcreatetrainerEllPNS_10mlptrainerEPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl17_mlptrainer_clearEPv(ptr noundef %2)
  %5 = icmp sgt i64 %0, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %5, ptr noundef nonnull @.str.353, ptr noundef %3)
  %6 = icmp sgt i64 %1, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %6, ptr noundef nonnull @.str.354, ptr noundef %3)
  store i64 %0, ptr %2, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %2, i64 8
  store i64 %1, ptr %7, align 8, !tbaa !34
  %8 = getelementptr inbounds i8, ptr %2, i64 16
  store i8 1, ptr %8, align 8, !tbaa !35
  %9 = load i64, ptr @_ZN11alglib_implL27mlptrain_defaultlbfgsfactorE, align 8, !tbaa !36
  %10 = getelementptr inbounds i8, ptr %2, i64 24
  store i64 %9, ptr %10, align 8, !tbaa !37
  %11 = getelementptr inbounds i8, ptr %2, i64 32
  store double 0x3EB0C6F7A0B5ED8D, ptr %11, align 8, !tbaa !38
  tail call void @_ZN11alglib_impl10mlpsetcondEPNS_10mlptrainerEdlPNS_8ae_stateE(ptr noundef nonnull %2, double noundef 0.000000e+00, i64 noundef 0, ptr noundef %3)
  %12 = getelementptr inbounds i8, ptr %2, i64 56
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %12, i8 0, i64 16, i1 false)
  tail call void @_ZN11alglib_impl15mlpsetalgobatchEPNS_10mlptrainerEPNS_8ae_stateE(ptr noundef nonnull %2, ptr noundef %3)
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl10mlpsetcondEPNS_10mlptrainerEdlPNS_8ae_stateE(ptr noundef, double noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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

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

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

attributes #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 #1 = { 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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 0}
!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, !7, i64 8}
!35 = !{!6, !10, i64 16}
!36 = !{!7, !7, i64 0}
!37 = !{!6, !7, i64 24}
!38 = !{!6, !11, i64 32}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,MemCpyOptPass,SROAPass,TailCallElimPass