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

; 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: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl10mlpprocessEPNS_20multilayerperceptronEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl7mlpgradEPNS_20multilayerperceptronEPNS_9ae_vectorES3_PdS3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #1 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %16 = load ptr, ptr %10, align 8, !tbaa !5
  store double 0.000000e+00, ptr %16, align 8, !tbaa !9
  %17 = load ptr, ptr %11, align 8, !tbaa !5
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %18, i32 0, i32 5
  %20 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = getelementptr inbounds i64, ptr %21, i64 4
  %23 = load i64, ptr %22, align 8, !tbaa !12
  %24 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %23, ptr noundef %24)
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %27, i32 0, i32 13
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl10mlpprocessEPNS_20multilayerperceptronEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %25, ptr noundef %26, ptr noundef %28, ptr noundef %29)
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %30, i32 0, i32 5
  %32 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = getelementptr inbounds i64, ptr %33, i64 2
  %35 = load i64, ptr %34, align 8, !tbaa !12
  store i64 %35, ptr %14, align 8, !tbaa !12
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %36, i32 0, i32 5
  %38 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = getelementptr inbounds i64, ptr %39, i64 3
  %41 = load i64, ptr %40, align 8, !tbaa !12
  store i64 %41, ptr %15, align 8, !tbaa !12
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  store double 0.000000e+00, ptr %42, align 8, !tbaa !9
  store i64 0, ptr %13, align 8, !tbaa !12
  br label %43

43:                                               ; preds = %55, %6
  %44 = load i64, ptr %13, align 8, !tbaa !12
  %45 = load i64, ptr %15, align 8, !tbaa !12
  %46 = sub nsw i64 %45, 1
  %47 = icmp sle i64 %44, %46
  br i1 %47, label %48, label %58

48:                                               ; preds = %43
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %49, i32 0, i32 11
  %51 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %50, i32 0, i32 4
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = load i64, ptr %13, align 8, !tbaa !12
  %54 = getelementptr inbounds double, ptr %52, i64 %53
  store double 0.000000e+00, ptr %54, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %48
  %56 = load i64, ptr %13, align 8, !tbaa !12
  %57 = add nsw i64 %56, 1
  store i64 %57, ptr %13, align 8, !tbaa !12
  br label %43, !llvm.loop !14

58:                                               ; preds = %43
  store i64 0, ptr %13, align 8, !tbaa !12
  br label %59

59:                                               ; preds = %110, %58
  %60 = load i64, ptr %13, align 8, !tbaa !12
  %61 = load i64, ptr %14, align 8, !tbaa !12
  %62 = sub nsw i64 %61, 1
  %63 = icmp sle i64 %60, %62
  br i1 %63, label %64, label %113

64:                                               ; preds = %59
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %65, i32 0, i32 13
  %67 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %66, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  %69 = load i64, ptr %13, align 8, !tbaa !12
  %70 = getelementptr inbounds double, ptr %68, i64 %69
  %71 = load double, ptr %70, align 8, !tbaa !9
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %72, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !11
  %75 = load i64, ptr %13, align 8, !tbaa !12
  %76 = getelementptr inbounds double, ptr %74, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !9
  %78 = fsub double %71, %77
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %79, i32 0, i32 11
  %81 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %80, i32 0, i32 4
  %82 = load ptr, ptr %81, align 8, !tbaa !11
  %83 = load i64, ptr %15, align 8, !tbaa !12
  %84 = load i64, ptr %14, align 8, !tbaa !12
  %85 = sub nsw i64 %83, %84
  %86 = load i64, ptr %13, align 8, !tbaa !12
  %87 = add nsw i64 %85, %86
  %88 = getelementptr inbounds double, ptr %82, i64 %87
  store double %78, ptr %88, align 8, !tbaa !9
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = load double, ptr %89, align 8, !tbaa !9
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %91, i32 0, i32 13
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %92, i32 0, i32 4
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = load i64, ptr %13, align 8, !tbaa !12
  %96 = getelementptr inbounds double, ptr %94, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !9
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %98, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !11
  %101 = load i64, ptr %13, align 8, !tbaa !12
  %102 = getelementptr inbounds double, ptr %100, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !9
  %104 = fsub double %97, %103
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %104, ptr noundef %105)
  %107 = fdiv double %106, 2.000000e+00
  %108 = fadd double %90, %107
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  store double %108, ptr %109, align 8, !tbaa !9
  br label %110

110:                                              ; preds = %64
  %111 = load i64, ptr %13, align 8, !tbaa !12
  %112 = add nsw i64 %111, 1
  store i64 %112, ptr %13, align 8, !tbaa !12
  br label %59, !llvm.loop !16

113:                                              ; preds = %59
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %115, i32 0, i32 9
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %117, i32 0, i32 6
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %119, i32 0, i32 11
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_implL36mlpbase_mlpinternalcalculategradientEPNS_20multilayerperceptronEPNS_9ae_vectorES3_S3_S3_bPNS_8ae_stateE(ptr noundef %114, ptr noundef %116, ptr noundef %118, ptr noundef %120, ptr noundef %121, i1 noundef zeroext false, ptr noundef %122)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  ret void
}

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL36mlpbase_mlpinternalcalculategradientEPNS_20multilayerperceptronEPNS_9ae_vectorES3_S3_S3_bPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl10mlpprocessEPNS_20multilayerperceptronEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl7mlpgradEPNS_20multilayerperceptronEPNS_9ae_vectorES3_PdS3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
  store double 0.000000e+00, ptr %3, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 264
  %8 = load ptr, ptr %7, align 8, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %8, i64 32
  %10 = load i64, ptr %9, align 8, !tbaa !10
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %4, i64 noundef %10, ptr noundef %5)
  %11 = getelementptr inbounds i8, ptr %0, i64 720
  tail call void @_ZN11alglib_impl10mlpprocessEPNS_20multilayerperceptronEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %11, ptr noundef %5)
  %12 = load ptr, ptr %7, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %14 = load i64, ptr %13, align 8, !tbaa !10
  %15 = getelementptr inbounds i8, ptr %12, i64 24
  %16 = load i64, ptr %15, align 8, !tbaa !10
  store double 0.000000e+00, ptr %3, align 8, !tbaa !5
  %.not.not40 = icmp sgt i64 %16, 0
  br i1 %.not.not40, label %.lr.ph, label %.preheader

.lr.ph:                                           ; preds = %6
  %17 = getelementptr inbounds i8, ptr %0, i64 648
  %xtraiter = and i64 %16, 3
  %18 = icmp ult i64 %16, 4
  br i1 %18, label %.preheader.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %16, 9223372036854775804
  br label %26

.preheader.loopexit.unr-lcssa:                    ; preds = %26, %.lr.ph
  %.041.unr = phi i64 [ 0, %.lr.ph ], [ %38, %26 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader
  %.041.epil = phi i64 [ %21, %.epil.preheader ], [ %.041.unr, %.preheader.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader.loopexit.unr-lcssa ]
  %19 = load ptr, ptr %17, align 8, !tbaa !9
  %20 = getelementptr inbounds double, ptr %19, i64 %.041.epil
  store double 0.000000e+00, ptr %20, align 8, !tbaa !5
  %21 = add nuw nsw i64 %.041.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader, label %.epil.preheader, !llvm.loop !12

.preheader:                                       ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader, %6
  %.not.not3942 = icmp sgt i64 %14, 0
  br i1 %.not.not3942, label %.lr.ph44, label %._crit_edge

.lr.ph44:                                         ; preds = %.preheader
  %22 = getelementptr inbounds i8, ptr %0, i64 776
  %23 = getelementptr inbounds i8, ptr %2, i64 56
  %24 = getelementptr inbounds i8, ptr %0, i64 648
  %25 = sub nsw i64 %16, %14
  br label %39

26:                                               ; preds = %26, %.lr.ph.new
  %.041 = phi i64 [ 0, %.lr.ph.new ], [ %38, %26 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %26 ]
  %27 = load ptr, ptr %17, align 8, !tbaa !9
  %28 = getelementptr inbounds double, ptr %27, i64 %.041
  store double 0.000000e+00, ptr %28, align 8, !tbaa !5
  %29 = or disjoint i64 %.041, 1
  %30 = load ptr, ptr %17, align 8, !tbaa !9
  %31 = getelementptr inbounds double, ptr %30, i64 %29
  store double 0.000000e+00, ptr %31, align 8, !tbaa !5
  %32 = or disjoint i64 %.041, 2
  %33 = load ptr, ptr %17, align 8, !tbaa !9
  %34 = getelementptr inbounds double, ptr %33, i64 %32
  store double 0.000000e+00, ptr %34, align 8, !tbaa !5
  %35 = or disjoint i64 %.041, 3
  %36 = load ptr, ptr %17, align 8, !tbaa !9
  %37 = getelementptr inbounds double, ptr %36, i64 %35
  store double 0.000000e+00, ptr %37, align 8, !tbaa !5
  %38 = add nuw nsw i64 %.041, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader.loopexit.unr-lcssa, label %26, !llvm.loop !14

39:                                               ; preds = %.lr.ph44, %39
  %.143 = phi i64 [ 0, %.lr.ph44 ], [ %61, %39 ]
  %40 = load ptr, ptr %22, align 8, !tbaa !9
  %41 = getelementptr inbounds double, ptr %40, i64 %.143
  %42 = load double, ptr %41, align 8, !tbaa !5
  %43 = load ptr, ptr %23, align 8, !tbaa !9
  %44 = getelementptr inbounds double, ptr %43, i64 %.143
  %45 = load double, ptr %44, align 8, !tbaa !5
  %46 = fsub double %42, %45
  %47 = load ptr, ptr %24, align 8, !tbaa !9
  %48 = getelementptr double, ptr %47, i64 %25
  %49 = getelementptr double, ptr %48, i64 %.143
  store double %46, ptr %49, align 8, !tbaa !5
  %50 = load double, ptr %3, align 8, !tbaa !5
  %51 = load ptr, ptr %22, align 8, !tbaa !9
  %52 = getelementptr inbounds double, ptr %51, i64 %.143
  %53 = load double, ptr %52, align 8, !tbaa !5
  %54 = load ptr, ptr %23, align 8, !tbaa !9
  %55 = getelementptr inbounds double, ptr %54, i64 %.143
  %56 = load double, ptr %55, align 8, !tbaa !5
  %57 = fsub double %53, %56
  %58 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %57, ptr noundef %5)
  %59 = fmul double %58, 5.000000e-01
  %60 = fadd double %50, %59
  store double %60, ptr %3, align 8, !tbaa !5
  %61 = add nuw nsw i64 %.143, 1
  %exitcond45.not = icmp eq i64 %61, %14
  br i1 %exitcond45.not, label %._crit_edge, label %39, !llvm.loop !16

._crit_edge:                                      ; preds = %39, %.preheader
  %62 = getelementptr inbounds i8, ptr %0, i64 464
  %63 = getelementptr inbounds i8, ptr %0, i64 272
  %64 = getelementptr inbounds i8, ptr %0, i64 592
  tail call void @_ZN11alglib_implL36mlpbase_mlpinternalcalculategradientEPNS_20multilayerperceptronEPNS_9ae_vectorES3_S3_S3_bPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %62, ptr noundef nonnull %63, ptr noundef nonnull %64, ptr noundef %4, i1 noundef zeroext false, ptr noundef %5)
  ret void
}

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL36mlpbase_mlpinternalcalculategradientEPNS_20multilayerperceptronEPNS_9ae_vectorES3_S3_S3_bPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #0

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

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass