; 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.387 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.388 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.389 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.390 = external hidden unnamed_addr constant [100 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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl19mlpcontinuetrainingEPNS_10mlptrainerEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %13, i32 0, i32 8
  %15 = load i64, ptr %14, align 8, !tbaa !9
  %16 = icmp sge i64 %15, 0
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef @.str.387, ptr noundef %17)
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %18, i32 0, i32 2
  %20 = load i8, ptr %19, align 8, !tbaa !35, !range !36, !noundef !37
  %21 = trunc i8 %20 to i1
  br i1 %21, label %22, label %23

22:                                               ; preds = %3
  store i64 0, ptr %11, align 8, !tbaa !38
  br label %24

23:                                               ; preds = %3
  store i64 1, ptr %11, align 8, !tbaa !38
  br label %24

24:                                               ; preds = %23, %22
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %25, ptr noundef %26)
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  store i64 0, ptr %10, align 8, !tbaa !38
  br label %30

29:                                               ; preds = %24
  store i64 1, ptr %10, align 8, !tbaa !38
  br label %30

30:                                               ; preds = %29, %28
  %31 = load i64, ptr %10, align 8, !tbaa !38
  %32 = load i64, ptr %11, align 8, !tbaa !38
  %33 = icmp eq i64 %31, %32
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %33, ptr noundef @.str.388, ptr noundef %34)
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %35, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %36)
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %37, i32 0, i32 0
  %39 = load i64, ptr %38, align 8, !tbaa !39
  %40 = load i64, ptr %7, align 8, !tbaa !38
  %41 = icmp eq i64 %39, %40
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef @.str.389, ptr noundef %42)
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %43, i32 0, i32 1
  %45 = load i64, ptr %44, align 8, !tbaa !40
  %46 = load i64, ptr %8, align 8, !tbaa !38
  %47 = icmp eq i64 %45, %46
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %47, ptr noundef @.str.390, ptr noundef %48)
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %50, i32 0, i32 13
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %52, i32 0, i32 12
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %54, i32 0, i32 11
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = call noundef zeroext i1 @_ZN11alglib_implL29mlptrain_mlpcontinuetrainingxEPNS_10mlptrainerEPNS_9ae_vectorElPlPNS_14smlptrnsessionEPNS_8ae_stateE(ptr noundef %49, ptr noundef %51, i64 noundef -1, ptr noundef %53, ptr noundef %55, ptr noundef %56)
  %58 = zext i1 %57 to i8
  store i8 %58, ptr %12, align 1, !tbaa !41
  %59 = load i8, ptr %12, align 1, !tbaa !41, !range !36, !noundef !37
  %60 = trunc i8 %59 to i1
  br i1 %60, label %61, label %77

61:                                               ; preds = %30
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %62, i32 0, i32 6
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %63, i32 0, i32 4
  %65 = load ptr, ptr %64, align 8, !tbaa !42
  %66 = getelementptr inbounds double, ptr %65, i64 0
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %67, i32 0, i32 11
  %69 = getelementptr inbounds %"struct.alglib_impl::smlptrnsession", ptr %68, i32 0, i32 3
  %70 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %69, i32 0, i32 6
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %70, i32 0, i32 4
  %72 = load ptr, ptr %71, align 8, !tbaa !42
  %73 = getelementptr inbounds double, ptr %72, i64 0
  %74 = load i64, ptr %9, align 8, !tbaa !38
  %75 = sub nsw i64 %74, 1
  %76 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %75)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %66, i64 noundef 1, ptr noundef %73, i64 noundef 1, i64 noundef %76)
  br label %77

77:                                               ; preds = %61, %30
  %78 = load i8, ptr %12, align 1, !tbaa !41, !range !36, !noundef !37
  %79 = trunc i8 %78 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret i1 %79
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL29mlptrain_mlpcontinuetrainingxEPNS_10mlptrainerEPNS_9ae_vectorElPlPNS_14smlptrnsessionEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { 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, !11, i64 64}
!10 = !{!"_ZTSN11alglib_impl10mlptrainerE", !11, i64 0, !11, i64 8, !12, i64 16, !11, i64 24, !13, i64 32, !13, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !14, i64 72, !16, i64 152, !18, i64 520, !11, i64 10160, !17, i64 10168, !11, i64 10232, !17, i64 10240, !11, i64 10304, !11, i64 10312, !11, i64 10320}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !15, i64 40, !7, i64 72}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!"_ZTSN11alglib_impl12sparsematrixE", !17, i64 0, !17, i64 64, !17, i64 128, !17, i64 192, !17, i64 256, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360}
!17 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !12, i64 16, !15, i64 24, !7, i64 56}
!18 = !{!"_ZTSN11alglib_impl14smlptrnsessionE", !17, i64 0, !13, i64 64, !12, i64 72, !19, i64 80, !23, i64 2184, !33, i64 9056, !17, i64 9080, !17, i64 9144, !17, i64 9208, !17, i64 9272, !26, i64 9336, !11, i64 9600, !11, i64 9608, !34, i64 9616}
!19 = !{!"_ZTSN11alglib_impl20multilayerperceptronE", !11, i64 0, !11, i64 8, !17, i64 16, !17, i64 80, !17, i64 144, !17, i64 208, !17, i64 272, !17, i64 336, !17, i64 400, !17, i64 464, !17, i64 528, !17, i64 592, !17, i64 656, !17, i64 720, !14, i64 784, !17, i64 864, !17, i64 928, !17, i64 992, !20, i64 1056, !17, i64 1096, !21, i64 1160, !21, i64 1304, !14, i64 1448, !16, i64 1528, !17, i64 1896, !21, i64 1960}
!20 = !{!"_ZTSN11alglib_impl11modelerrorsE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!21 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !22, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !11, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !15, i64 112}
!22 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !15, i64 8, !12, i64 40}
!23 = !{!"_ZTSN11alglib_impl13minlbfgsstateE", !11, i64 0, !11, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !11, i64 40, !12, i64 48, !13, i64 56, !17, i64 64, !13, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !17, i64 176, !14, i64 240, !14, i64 320, !17, i64 400, !17, i64 464, !17, i64 528, !13, i64 592, !17, i64 600, !13, i64 664, !13, i64 672, !17, i64 680, !11, i64 744, !13, i64 752, !14, i64 760, !17, i64 840, !17, i64 904, !17, i64 968, !14, i64 1032, !11, i64 1112, !24, i64 1120, !25, i64 1584, !13, i64 2032, !13, i64 2040, !13, i64 2048, !13, i64 2056, !13, i64 2064, !17, i64 2072, !17, i64 2136, !17, i64 2200, !13, i64 2264, !17, i64 2272, !12, i64 2336, !12, i64 2337, !12, i64 2338, !12, i64 2339, !13, i64 2344, !26, i64 2352, !11, i64 2616, !11, i64 2624, !11, i64 2632, !28, i64 2640, !11, i64 2832, !29, i64 2840, !17, i64 6808}
!24 = !{!"_ZTSN11alglib_impl12precbuflbfgsE", !17, i64 0, !17, i64 64, !17, i64 128, !14, i64 192, !17, i64 272, !17, i64 336, !17, i64 400}
!25 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !11, i64 0, !11, i64 8, !17, i64 16, !14, i64 80, !17, i64 160, !14, i64 224, !14, i64 304, !17, i64 384}
!26 = !{!"_ZTSN11alglib_impl10rcommstateE", !27, i64 0, !17, i64 8, !17, i64 72, !17, i64 136, !17, i64 200}
!27 = !{!"int", !7, i64 0}
!28 = !{!"_ZTSN11alglib_impl11linminstateE", !12, i64 0, !12, i64 1, !11, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184}
!29 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !11, i64 0, !11, i64 8, !12, i64 16, !17, i64 24, !11, i64 88, !17, i64 96, !17, i64 160, !17, i64 224, !14, i64 288, !17, i64 368, !17, i64 432, !11, i64 496, !12, i64 504, !12, i64 505, !13, i64 512, !13, i64 520, !12, i64 528, !30, i64 536, !13, i64 832, !13, i64 840, !31, i64 848, !31, i64 1152, !13, i64 1456, !13, i64 1464, !32, i64 1472, !32, i64 1784, !12, i64 2096, !17, i64 2104, !17, i64 2168, !14, i64 2232, !26, i64 2312, !17, i64 2576, !17, i64 2640, !17, i64 2704, !17, i64 2768, !17, i64 2832, !17, i64 2896, !17, i64 2960, !17, i64 3024, !14, i64 3088, !14, i64 3168, !17, i64 3248, !17, i64 3312, !17, i64 3376, !17, i64 3440, !17, i64 3504, !17, i64 3568, !17, i64 3632, !17, i64 3696, !17, i64 3760, !17, i64 3824, !14, i64 3888}
!30 = !{!"_ZTSN11alglib_impl14optguardreportE", !12, i64 0, !12, i64 1, !11, i64 8, !13, i64 16, !12, i64 24, !12, i64 25, !12, i64 26, !11, i64 32, !13, i64 40, !12, i64 48, !11, i64 56, !11, i64 64, !17, i64 72, !14, i64 136, !14, i64 216}
!31 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !12, i64 0, !11, i64 8, !17, i64 16, !17, i64 80, !11, i64 144, !17, i64 152, !17, i64 216, !11, i64 280, !11, i64 288, !11, i64 296}
!32 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !12, i64 0, !11, i64 8, !11, i64 16, !17, i64 24, !17, i64 88, !11, i64 152, !17, i64 160, !17, i64 224, !11, i64 288, !11, i64 296, !11, i64 304}
!33 = !{!"_ZTSN11alglib_impl14minlbfgsreportE", !11, i64 0, !11, i64 8, !11, i64 16}
!34 = !{!"_ZTSN11alglib_impl10hqrndstateE", !11, i64 0, !11, i64 8, !11, i64 16}
!35 = !{!10, !12, i64 16}
!36 = !{i8 0, i8 2}
!37 = !{}
!38 = !{!11, !11, i64 0}
!39 = !{!10, !11, i64 0}
!40 = !{!10, !11, i64 8}
!41 = !{!12, !12, i64 0}
!42 = !{!7, !7, i64 0}


; 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.387 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.388 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.389 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.390 = external hidden unnamed_addr constant [100 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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl19mlpcontinuetrainingEPNS_10mlptrainerEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #3 {
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %7 = getelementptr inbounds i8, ptr %0, i64 64
  %8 = load i64, ptr %7, align 8, !tbaa !5
  %9 = icmp sgt i64 %8, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.387, ptr noundef %2)
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load i8, ptr %10, align 8, !tbaa !34, !range !35, !noundef !36
  %12 = tail call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %1, ptr noundef %2)
  %13 = zext i1 %12 to i8
  %14 = icmp ne i8 %11, %13
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.388, ptr noundef %2)
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef %2)
  %15 = load i64, ptr %0, align 8, !tbaa !37
  %16 = load i64, ptr %4, align 8, !tbaa !38
  %17 = icmp eq i64 %15, %16
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.389, ptr noundef %2)
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = load i64, ptr %18, align 8, !tbaa !39
  %20 = load i64, ptr %5, align 8, !tbaa !38
  %21 = icmp eq i64 %19, %20
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.390, ptr noundef %2)
  %22 = getelementptr inbounds i8, ptr %0, i64 10168
  %23 = getelementptr inbounds i8, ptr %0, i64 10160
  %24 = getelementptr inbounds i8, ptr %0, i64 520
  %25 = call noundef zeroext i1 @_ZN11alglib_implL29mlptrain_mlpcontinuetrainingxEPNS_10mlptrainerEPNS_9ae_vectorElPlPNS_14smlptrnsessionEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %22, i64 noundef -1, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %2)
  br i1 %25, label %26, label %34

26:                                               ; preds = %3
  %27 = getelementptr inbounds i8, ptr %1, i64 328
  %28 = load ptr, ptr %27, align 8, !tbaa !40
  %29 = getelementptr inbounds i8, ptr %0, i64 928
  %30 = load ptr, ptr %29, align 8, !tbaa !40
  %31 = load i64, ptr %6, align 8, !tbaa !38
  %32 = add nsw i64 %31, -1
  %33 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %32)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %28, i64 noundef 1, ptr noundef %30, i64 noundef 1, i64 noundef %33)
  br label %34

34:                                               ; preds = %26, %3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  ret i1 %25
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL29mlptrain_mlpcontinuetrainingxEPNS_10mlptrainerEPNS_9ae_vectorElPlPNS_14smlptrnsessionEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { 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 = !{!7, !7, i64 0}
!39 = !{!6, !7, i64 8}
!40 = !{!8, !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass