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

@_ZN11alglib_implL19mlpbase_nfieldwidthE = external hidden global i64, align 8

; 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_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16mlprandomizefullEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, 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 i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %13, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %14)
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %15, i32 0, i32 5
  %17 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds i64, ptr %18, i64 3
  %20 = load i64, ptr %19, align 8, !tbaa !10
  store i64 %20, ptr %9, align 8, !tbaa !10
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %21, i32 0, i32 5
  %23 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = getelementptr inbounds i64, ptr %24, i64 5
  %26 = load i64, ptr %25, align 8, !tbaa !10
  store i64 %26, ptr %10, align 8, !tbaa !10
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %27, ptr noundef %28)
  store i64 0, ptr %5, align 8, !tbaa !10
  br label %29

29:                                               ; preds = %53, %2
  %30 = load i64, ptr %5, align 8, !tbaa !10
  %31 = load i64, ptr %6, align 8, !tbaa !10
  %32 = sub nsw i64 %31, 1
  %33 = icmp sle i64 %30, %32
  br i1 %33, label %34, label %56

34:                                               ; preds = %29
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %35)
  %37 = fsub double %36, 5.000000e-01
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %38, i32 0, i32 7
  %40 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %39, i32 0, i32 4
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = load i64, ptr %5, align 8, !tbaa !10
  %43 = getelementptr inbounds double, ptr %41, i64 %42
  store double %37, ptr %43, align 8, !tbaa !12
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %44)
  %46 = fadd double %45, 5.000000e-01
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %47, i32 0, i32 8
  %49 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = load i64, ptr %5, align 8, !tbaa !10
  %52 = getelementptr inbounds double, ptr %50, i64 %51
  store double %46, ptr %52, align 8, !tbaa !12
  br label %53

53:                                               ; preds = %34
  %54 = load i64, ptr %5, align 8, !tbaa !10
  %55 = add nsw i64 %54, 1
  store i64 %55, ptr %5, align 8, !tbaa !10
  br label %29, !llvm.loop !14

56:                                               ; preds = %29
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %57, ptr noundef %58)
  br i1 %59, label %134, label %60

60:                                               ; preds = %56
  store i64 0, ptr %5, align 8, !tbaa !10
  br label %61

61:                                               ; preds = %130, %60
  %62 = load i64, ptr %5, align 8, !tbaa !10
  %63 = load i64, ptr %7, align 8, !tbaa !10
  %64 = sub nsw i64 %63, 1
  %65 = icmp sle i64 %62, %64
  br i1 %65, label %66, label %133

66:                                               ; preds = %61
  %67 = load i64, ptr %10, align 8, !tbaa !10
  %68 = load i64, ptr %9, align 8, !tbaa !10
  %69 = load i64, ptr %7, align 8, !tbaa !10
  %70 = sub nsw i64 %68, %69
  %71 = load i64, ptr %5, align 8, !tbaa !10
  %72 = add nsw i64 %70, %71
  %73 = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !10
  %74 = mul nsw i64 %72, %73
  %75 = add nsw i64 %67, %74
  store i64 %75, ptr %11, align 8, !tbaa !10
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %76, i32 0, i32 5
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %77, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  %80 = load i64, ptr %11, align 8, !tbaa !10
  %81 = add nsw i64 %80, 0
  %82 = getelementptr inbounds i64, ptr %79, i64 %81
  %83 = load i64, ptr %82, align 8, !tbaa !10
  store i64 %83, ptr %12, align 8, !tbaa !10
  %84 = load i64, ptr %12, align 8, !tbaa !10
  %85 = icmp eq i64 %84, 0
  br i1 %85, label %86, label %98

86:                                               ; preds = %66
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %87)
  %89 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %88, double -1.000000e+00)
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %90, i32 0, i32 7
  %92 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %91, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = load i64, ptr %6, align 8, !tbaa !10
  %95 = load i64, ptr %5, align 8, !tbaa !10
  %96 = add nsw i64 %94, %95
  %97 = getelementptr inbounds double, ptr %93, i64 %96
  store double %89, ptr %97, align 8, !tbaa !12
  br label %98

98:                                               ; preds = %86, %66
  %99 = load i64, ptr %12, align 8, !tbaa !10
  %100 = icmp eq i64 %99, 0
  br i1 %100, label %104, label %101

101:                                              ; preds = %98
  %102 = load i64, ptr %12, align 8, !tbaa !10
  %103 = icmp eq i64 %102, 3
  br i1 %103, label %104, label %129

104:                                              ; preds = %101, %98
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %105, i32 0, i32 8
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %106, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !9
  %109 = load i64, ptr %6, align 8, !tbaa !10
  %110 = load i64, ptr %5, align 8, !tbaa !10
  %111 = add nsw i64 %109, %110
  %112 = getelementptr inbounds double, ptr %108, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !12
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %113, ptr noundef %114)
  %116 = sitofp i64 %115 to double
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %117)
  %119 = call double @llvm.fmuladd.f64(double 1.500000e+00, double %118, double 5.000000e-01)
  %120 = fmul double %116, %119
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %121, i32 0, i32 8
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !9
  %125 = load i64, ptr %6, align 8, !tbaa !10
  %126 = load i64, ptr %5, align 8, !tbaa !10
  %127 = add nsw i64 %125, %126
  %128 = getelementptr inbounds double, ptr %124, i64 %127
  store double %120, ptr %128, align 8, !tbaa !12
  br label %129

129:                                              ; preds = %104, %101
  br label %130

130:                                              ; preds = %129
  %131 = load i64, ptr %5, align 8, !tbaa !10
  %132 = add nsw i64 %131, 1
  store i64 %132, ptr %5, align 8, !tbaa !10
  br label %61, !llvm.loop !16

133:                                              ; preds = %61
  br label %134

134:                                              ; preds = %133, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void
}

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) #4

declare noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef, ptr noundef) #4

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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "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 = !{!"any pointer", !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 = !{!13, !13, i64 0}
!13 = !{!"double", !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"

@_ZN11alglib_implL19mlpbase_nfieldwidthE = external hidden local_unnamed_addr global i64, align 8

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16mlprandomizefullEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %1)
  %6 = getelementptr inbounds i8, ptr %0, i64 264
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 24
  %9 = load i64, ptr %8, align 8, !tbaa !8
  %10 = getelementptr inbounds i8, ptr %7, i64 40
  %11 = load i64, ptr %10, align 8, !tbaa !8
  call void @_ZN11alglib_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1)
  %12 = load i64, ptr %3, align 8, !tbaa !8
  %.not.not36 = icmp sgt i64 %12, 0
  br i1 %.not.not36, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %13 = getelementptr inbounds i8, ptr %0, i64 392
  %14 = getelementptr inbounds i8, ptr %0, i64 456
  br label %15

15:                                               ; preds = %.lr.ph, %15
  %.037 = phi i64 [ 0, %.lr.ph ], [ %24, %15 ]
  %16 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %17 = fadd double %16, -5.000000e-01
  %18 = load ptr, ptr %13, align 8, !tbaa !5
  %19 = getelementptr inbounds double, ptr %18, i64 %.037
  store double %17, ptr %19, align 8, !tbaa !10
  %20 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %21 = fadd double %20, 5.000000e-01
  %22 = load ptr, ptr %14, align 8, !tbaa !5
  %23 = getelementptr inbounds double, ptr %22, i64 %.037
  store double %21, ptr %23, align 8, !tbaa !10
  %24 = add nuw nsw i64 %.037, 1
  %25 = load i64, ptr %3, align 8, !tbaa !8
  %.not.not = icmp slt i64 %24, %25
  br i1 %.not.not, label %15, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %15, %2
  %26 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %1)
  br i1 %26, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %._crit_edge
  %27 = load i64, ptr %4, align 8, !tbaa !8
  %.not.not3538 = icmp sgt i64 %27, 0
  br i1 %.not.not3538, label %.lr.ph40, label %.loopexit

.lr.ph40:                                         ; preds = %.preheader
  %28 = getelementptr inbounds i8, ptr %0, i64 392
  %29 = getelementptr inbounds i8, ptr %0, i64 456
  %.pre41 = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !8
  br label %30

30:                                               ; preds = %.lr.ph40, %62
  %31 = phi i64 [ %27, %.lr.ph40 ], [ %63, %62 ]
  %32 = phi i64 [ %.pre41, %.lr.ph40 ], [ %64, %62 ]
  %.139 = phi i64 [ 0, %.lr.ph40 ], [ %65, %62 ]
  %33 = add i64 %.139, %9
  %34 = sub i64 %33, %31
  %35 = mul nsw i64 %32, %34
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr i64, ptr %36, i64 %11
  %38 = getelementptr i64, ptr %37, i64 %35
  %39 = load i64, ptr %38, align 8, !tbaa !8
  switch i64 %39, label %62 [
    i64 0, label %40
    i64 3, label %._crit_edge42
  ]

._crit_edge42:                                    ; preds = %30
  %.pre43 = load i64, ptr %3, align 8, !tbaa !8
  br label %47

40:                                               ; preds = %30
  %41 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %42 = call double @llvm.fmuladd.f64(double %41, double 2.000000e+00, double -1.000000e+00)
  %43 = load ptr, ptr %28, align 8, !tbaa !5
  %44 = load i64, ptr %3, align 8, !tbaa !8
  %45 = getelementptr double, ptr %43, i64 %44
  %46 = getelementptr double, ptr %45, i64 %.139
  store double %42, ptr %46, align 8, !tbaa !10
  br label %47

47:                                               ; preds = %._crit_edge42, %40
  %48 = phi i64 [ %.pre43, %._crit_edge42 ], [ %44, %40 ]
  %49 = load ptr, ptr %29, align 8, !tbaa !5
  %50 = getelementptr double, ptr %49, i64 %48
  %51 = getelementptr double, ptr %50, i64 %.139
  %52 = load double, ptr %51, align 8, !tbaa !10
  %53 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %52, ptr noundef %1)
  %54 = sitofp i64 %53 to double
  %55 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %56 = call double @llvm.fmuladd.f64(double %55, double 1.500000e+00, double 5.000000e-01)
  %57 = fmul double %56, %54
  %58 = load ptr, ptr %29, align 8, !tbaa !5
  %59 = load i64, ptr %3, align 8, !tbaa !8
  %60 = getelementptr double, ptr %58, i64 %59
  %61 = getelementptr double, ptr %60, i64 %.139
  store double %57, ptr %61, align 8, !tbaa !10
  %.pre = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !8
  %.pre44 = load i64, ptr %4, align 8, !tbaa !8
  br label %62

62:                                               ; preds = %30, %47
  %63 = phi i64 [ %31, %30 ], [ %.pre44, %47 ]
  %64 = phi i64 [ %32, %30 ], [ %.pre, %47 ]
  %65 = add nuw nsw i64 %.139, 1
  %.not.not35 = icmp slt i64 %65, %63
  br i1 %.not.not35, label %30, label %.loopexit, !llvm.loop !14

.loopexit:                                        ; preds = %62, %.preheader, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret void
}

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #4

declare noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress 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 = { 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "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 = !{!"long", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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