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

70:                                               ; preds = %98, %8
  %71 = load i64, ptr %24, align 8, !tbaa !5
  %72 = load i64, ptr %9, align 8, !tbaa !5
  %73 = load i64, ptr %12, align 8, !tbaa !5
  %74 = add nsw i64 %72, %73
  %75 = sub nsw i64 %74, 1
  %76 = icmp sle i64 %71, %75
  br i1 %76, label %77, label %101

77:                                               ; preds = %70
  %78 = load double, ptr %13, align 8, !tbaa !9
  %79 = load double, ptr %14, align 8, !tbaa !9
  %80 = fadd double %78, %79
  %81 = fmul double 5.000000e-01, %80
  %82 = load ptr, ptr %15, align 8, !tbaa !11
  %83 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %82, i32 0, i32 7
  %84 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %83, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !13
  %86 = load i64, ptr %24, align 8, !tbaa !5
  %87 = getelementptr inbounds double, ptr %85, i64 %86
  store double %81, ptr %87, align 8, !tbaa !9
  %88 = load double, ptr %13, align 8, !tbaa !9
  %89 = load double, ptr %14, align 8, !tbaa !9
  %90 = fsub double %88, %89
  %91 = fmul double 5.000000e-01, %90
  %92 = load ptr, ptr %15, align 8, !tbaa !11
  %93 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %92, i32 0, i32 8
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !13
  %96 = load i64, ptr %24, align 8, !tbaa !5
  %97 = getelementptr inbounds double, ptr %95, i64 %96
  store double %91, ptr %97, align 8, !tbaa !9
  br label %98

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

101:                                              ; preds = %70
  %102 = load ptr, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %102)
  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

; 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_impl11mlpcreater2EllllddPNS_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)
  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 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_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)
  %15 = 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
  %16 = fadd double %4, %5
  %17 = fmul double %16, 5.000000e-01
  %18 = getelementptr inbounds i8, ptr %6, i64 392
  %19 = fsub double %4, %5
  %20 = fmul double %19, 5.000000e-01
  %21 = getelementptr inbounds i8, ptr %6, i64 456
  br label %22

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

._crit_edge:                                      ; preds = %22, %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

; 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