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

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

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

; 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
define dso_local void @_ZN11alglib_impl11mlpcreateb2EllllddPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, double noundef %4, double noundef %5, ptr noundef %6, ptr noundef %7) #2 {
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.alglib_impl::ae_frame", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  store i64 %0, ptr %9, align 8, !tbaa !5
  store i64 %1, ptr %10, align 8, !tbaa !5
  store i64 %2, ptr %11, align 8, !tbaa !5
  store i64 %3, ptr %12, align 8, !tbaa !5
  store double %4, ptr %13, align 8, !tbaa !9
  store double %5, ptr %14, align 8, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !11
  store ptr %7, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %25 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %25, ptr noundef %17)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  %26 = load ptr, ptr %15, align 8, !tbaa !11
  call void @_ZN11alglib_impl27_multilayerperceptron_clearEPv(ptr noundef %26)
  %27 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 2, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 2, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 2, ptr noundef %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 2, ptr noundef %30, i1 noundef zeroext true)
  store i64 10, ptr %22, align 8, !tbaa !5
  %31 = load double, ptr %14, align 8, !tbaa !9
  %32 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %31, double noundef 0.000000e+00)
  br i1 %32, label %33, label %34

33:                                               ; preds = %8
  store double 1.000000e+00, ptr %14, align 8, !tbaa !9
  br label %35

34:                                               ; preds = %8
  store double -1.000000e+00, ptr %14, align 8, !tbaa !9
  br label %35

35:                                               ; preds = %34, %33
  %36 = load i64, ptr %22, align 8, !tbaa !5
  %37 = sub nsw i64 %36, 1
  %38 = add nsw i64 %37, 1
  %39 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %38, ptr noundef %39)
  %40 = load i64, ptr %22, align 8, !tbaa !5
  %41 = sub nsw i64 %40, 1
  %42 = add nsw i64 %41, 1
  %43 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %42, ptr noundef %43)
  %44 = load i64, ptr %22, align 8, !tbaa !5
  %45 = sub nsw i64 %44, 1
  %46 = add nsw i64 %45, 1
  %47 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %46, ptr noundef %47)
  %48 = load i64, ptr %22, align 8, !tbaa !5
  %49 = sub nsw i64 %48, 1
  %50 = add nsw i64 %49, 1
  %51 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %50, ptr noundef %51)
  %52 = load i64, ptr %9, align 8, !tbaa !5
  %53 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_implL21mlpbase_addinputlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef %52, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %23, ptr noundef %53)
  %54 = load i64, ptr %10, align 8, !tbaa !5
  %55 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_implL30mlpbase_addbiasedsummatorlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef %54, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %23, ptr noundef %55)
  %56 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_implL26mlpbase_addactivationlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef 1, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %23, ptr noundef %56)
  %57 = load i64, ptr %11, align 8, !tbaa !5
  %58 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_implL30mlpbase_addbiasedsummatorlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef %57, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %23, ptr noundef %58)
  %59 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_implL26mlpbase_addactivationlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef 1, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %23, ptr noundef %59)
  %60 = load i64, ptr %12, align 8, !tbaa !5
  %61 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_implL30mlpbase_addbiasedsummatorlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef %60, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %23, ptr noundef %61)
  %62 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_implL26mlpbase_addactivationlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef 3, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %23, ptr noundef %62)
  %63 = load i64, ptr %9, align 8, !tbaa !5
  %64 = load i64, ptr %12, align 8, !tbaa !5
  %65 = load i64, ptr %22, align 8, !tbaa !5
  %66 = load ptr, ptr %15, align 8, !tbaa !11
  %67 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_implL17mlpbase_mlpcreateEllPNS_9ae_vectorES1_S1_S1_lbPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %63, i64 noundef %64, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, i64 noundef %65, i1 noundef zeroext false, ptr noundef %66, ptr noundef %67)
  %68 = load ptr, ptr %15, align 8, !tbaa !11
  %69 = load i64, ptr %9, align 8, !tbaa !5
  %70 = load i64, ptr %10, align 8, !tbaa !5
  %71 = load i64, ptr %11, align 8, !tbaa !5
  %72 = load i64, ptr %12, align 8, !tbaa !5
  %73 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_implL32mlpbase_fillhighlevelinformationEPNS_20multilayerperceptronEllllbbPNS_8ae_stateE(ptr noundef %68, i64 noundef %69, i64 noundef %70, i64 noundef %71, i64 noundef %72, i1 noundef zeroext false, i1 noundef zeroext false, ptr noundef %73)
  %74 = load i64, ptr %9, align 8, !tbaa !5
  store i64 %74, ptr %24, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %97, %35
  %76 = load i64, ptr %24, align 8, !tbaa !5
  %77 = load i64, ptr %9, align 8, !tbaa !5
  %78 = load i64, ptr %12, align 8, !tbaa !5
  %79 = add nsw i64 %77, %78
  %80 = sub nsw i64 %79, 1
  %81 = icmp sle i64 %76, %80
  br i1 %81, label %82, label %100

82:                                               ; preds = %75
  %83 = load double, ptr %13, align 8, !tbaa !9
  %84 = load ptr, ptr %15, align 8, !tbaa !11
  %85 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %84, i32 0, i32 7
  %86 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %85, i32 0, i32 4
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  %88 = load i64, ptr %24, align 8, !tbaa !5
  %89 = getelementptr inbounds double, ptr %87, i64 %88
  store double %83, ptr %89, align 8, !tbaa !9
  %90 = load double, ptr %14, align 8, !tbaa !9
  %91 = load ptr, ptr %15, align 8, !tbaa !11
  %92 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %91, i32 0, i32 8
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %92, i32 0, i32 4
  %94 = load ptr, ptr %93, align 8, !tbaa !13
  %95 = load i64, ptr %24, align 8, !tbaa !5
  %96 = getelementptr inbounds double, ptr %94, i64 %95
  store double %90, ptr %96, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %82
  %98 = load i64, ptr %24, align 8, !tbaa !5
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %24, align 8, !tbaa !5
  br label %75, !llvm.loop !14

100:                                              ; preds = %75
  %101 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %101)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  ret void
}

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

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

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL21mlpbase_addinputlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL30mlpbase_addbiasedsummatorlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL32mlpbase_fillhighlevelinformationEPNS_20multilayerperceptronEllllbbPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

; 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
define dso_local void @_ZN11alglib_impl11mlpcreateb2EllllddPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, double noundef %4, double noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #2 {
  %9 = alloca %"struct.alglib_impl::ae_frame", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %7, ptr noundef nonnull %9)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl27_multilayerperceptron_clearEPv(ptr noundef %6)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  %15 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %5, double noundef 0.000000e+00)
  %. = select i1 %15, double 1.000000e+00, double -1.000000e+00
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef 10, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef 10, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef 10, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef 10, ptr noundef %7)
  call void @_ZN11alglib_implL21mlpbase_addinputlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef %0, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef %7)
  call void @_ZN11alglib_implL30mlpbase_addbiasedsummatorlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef %1, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef %7)
  call void @_ZN11alglib_implL26mlpbase_addactivationlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef 1, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef %7)
  call void @_ZN11alglib_implL30mlpbase_addbiasedsummatorlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef %2, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef %7)
  call void @_ZN11alglib_implL26mlpbase_addactivationlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef 1, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef %7)
  call void @_ZN11alglib_implL30mlpbase_addbiasedsummatorlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef %3, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef %7)
  call void @_ZN11alglib_implL26mlpbase_addactivationlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef 3, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef %7)
  call void @_ZN11alglib_implL17mlpbase_mlpcreateEllPNS_9ae_vectorES1_S1_S1_lbPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %0, i64 noundef %3, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, i64 noundef 10, i1 noundef zeroext false, ptr noundef %6, ptr noundef %7)
  call void @_ZN11alglib_implL32mlpbase_fillhighlevelinformationEPNS_20multilayerperceptronEllllbbPNS_8ae_stateE(ptr noundef %6, i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i1 noundef zeroext false, i1 noundef zeroext false, ptr noundef %7)
  %16 = add nsw i64 %3, %0
  %.not.not49 = icmp sgt i64 %3, 0
  br i1 %.not.not49, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %8
  %17 = getelementptr inbounds i8, ptr %6, i64 392
  %18 = getelementptr inbounds i8, ptr %6, i64 456
  br label %19

19:                                               ; preds = %.lr.ph, %19
  %.050 = phi i64 [ %0, %.lr.ph ], [ %24, %19 ]
  %20 = load ptr, ptr %17, align 8, !tbaa !5
  %21 = getelementptr inbounds double, ptr %20, i64 %.050
  store double %4, ptr %21, align 8, !tbaa !8
  %22 = load ptr, ptr %18, align 8, !tbaa !5
  %23 = getelementptr inbounds double, ptr %22, i64 %.050
  store double %., ptr %23, align 8, !tbaa !8
  %24 = add nsw i64 %.050, 1
  %.not.not = icmp slt i64 %24, %16
  br i1 %.not.not, label %19, label %._crit_edge, !llvm.loop !10

._crit_edge:                                      ; preds = %19, %8
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #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_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

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

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL21mlpbase_addinputlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL30mlpbase_addbiasedsummatorlayerElPNS_9ae_vectorES1_S1_S1_PlPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL32mlpbase_fillhighlevelinformationEPNS_20multilayerperceptronEllllbbPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, 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, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass