; 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::minlbfgsreport" = type { i64, i64, i64 }
%"struct.alglib_impl::minlbfgsstate" = type { i64, i64, double, double, double, i64, i8, double, %"struct.alglib_impl::ae_vector", double, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::ae_vector", i64, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, %"struct.alglib_impl::precbuflbfgs", %"struct.alglib_impl::precbuflowrank", double, double, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, double, %"struct.alglib_impl::rcommstate", i64, i64, i64, %"struct.alglib_impl::linminstate", i64, %"struct.alglib_impl::smoothnessmonitor", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::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::precbuflbfgs" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::precbuflowrank" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::linminstate" = type { i8, i8, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"struct.alglib_impl::smoothnessmonitor" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i8, i8, double, double, i8, %"struct.alglib_impl::optguardreport", double, double, %"struct.alglib_impl::optguardnonc1test0report", %"struct.alglib_impl::optguardnonc1test0report", double, double, %"struct.alglib_impl::optguardnonc1test1report", %"struct.alglib_impl::optguardnonc1test1report", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardreport" = type { i8, i8, i64, double, i8, i8, i8, i64, double, i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardnonc1test0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test1report" = type { i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::mlpreport" = type { double, double, double, double, double, i64, i64, i64 }
%"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::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 }

@_ZN11alglib_implL17mlptrain_mindecayE = external hidden global double, 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: 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
declare dso_local void @_ZN11alglib_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef, ptr noundef) #2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl9mlperrornEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13mlptrainlbfgsEPNS_20multilayerperceptronEPNS_9ae_matrixEldldlPlPNS_9mlpreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, double noundef %3, i64 noundef %4, double noundef %5, i64 noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #2 {
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"struct.alglib_impl::ae_frame", align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca %"struct.alglib_impl::ae_vector", align 8
  %28 = alloca %"struct.alglib_impl::ae_vector", align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca %"struct.alglib_impl::minlbfgsreport", align 8
  %33 = alloca %"struct.alglib_impl::minlbfgsstate", align 8
  %34 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store i64 %2, ptr %13, align 8, !tbaa !9
  store double %3, ptr %14, align 8, !tbaa !11
  store i64 %4, ptr %15, align 8, !tbaa !9
  store double %5, ptr %16, align 8, !tbaa !11
  store i64 %6, ptr %17, align 8, !tbaa !9
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  store ptr %9, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 6872, ptr %33) #6
  %35 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %35, ptr noundef %21)
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 6872, i1 false)
  %36 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 0, ptr %36, align 8, !tbaa !9
  %37 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_mlpreport_clearEPv(ptr noundef %37)
  %38 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %27, i64 noundef 0, i64 noundef 3, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %28, i64 noundef 0, i64 noundef 3, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20_minlbfgsreport_initEPvPNS_8ae_stateEb(ptr noundef %32, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl19_minlbfgsstate_initEPvPNS_8ae_stateEb(ptr noundef %33, ptr noundef %41, i1 noundef zeroext true)
  %42 = load double, ptr %16, align 8, !tbaa !11
  %43 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %42, double noundef 0.000000e+00)
  br i1 %43, label %44, label %50

44:                                               ; preds = %10
  %45 = load i64, ptr %17, align 8, !tbaa !9
  %46 = icmp eq i64 %45, 0
  br i1 %46, label %47, label %50

47:                                               ; preds = %44
  %48 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 -8, ptr %48, align 8, !tbaa !9
  %49 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %49)
  store i32 1, ptr %34, align 4
  br label %293

50:                                               ; preds = %44, %10
  %51 = load i64, ptr %13, align 8, !tbaa !9
  %52 = icmp sle i64 %51, 0
  br i1 %52, label %62, label %53

53:                                               ; preds = %50
  %54 = load i64, ptr %15, align 8, !tbaa !9
  %55 = icmp slt i64 %54, 1
  br i1 %55, label %62, label %56

56:                                               ; preds = %53
  %57 = load double, ptr %16, align 8, !tbaa !11
  %58 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %57, double noundef 0.000000e+00)
  br i1 %58, label %62, label %59

59:                                               ; preds = %56
  %60 = load i64, ptr %17, align 8, !tbaa !9
  %61 = icmp slt i64 %60, 0
  br i1 %61, label %62, label %65

62:                                               ; preds = %59, %56, %53, %50
  %63 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 -1, ptr %63, align 8, !tbaa !9
  %64 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %64)
  store i32 1, ptr %34, align 4
  br label %293

65:                                               ; preds = %59
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %66, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %67)
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = load ptr, ptr %20, align 8, !tbaa !5
  %70 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %68, ptr noundef %69)
  br i1 %70, label %71, label %112

71:                                               ; preds = %65
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %72

72:                                               ; preds = %108, %71
  %73 = load i64, ptr %22, align 8, !tbaa !9
  %74 = load i64, ptr %13, align 8, !tbaa !9
  %75 = sub nsw i64 %74, 1
  %76 = icmp sle i64 %73, %75
  br i1 %76, label %77, label %111

77:                                               ; preds = %72
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %78, i32 0, i32 6
  %80 = load ptr, ptr %79, align 8, !tbaa !13
  %81 = load i64, ptr %22, align 8, !tbaa !9
  %82 = getelementptr inbounds ptr, ptr %80, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = load i64, ptr %24, align 8, !tbaa !9
  %85 = getelementptr inbounds double, ptr %83, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !11
  %87 = load ptr, ptr %20, align 8, !tbaa !5
  %88 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %86, ptr noundef %87)
  %89 = icmp slt i64 %88, 0
  br i1 %89, label %104, label %90

90:                                               ; preds = %77
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %91, i32 0, i32 6
  %93 = load ptr, ptr %92, align 8, !tbaa !13
  %94 = load i64, ptr %22, align 8, !tbaa !9
  %95 = getelementptr inbounds ptr, ptr %93, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = load i64, ptr %24, align 8, !tbaa !9
  %98 = getelementptr inbounds double, ptr %96, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !11
  %100 = load ptr, ptr %20, align 8, !tbaa !5
  %101 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %99, ptr noundef %100)
  %102 = load i64, ptr %25, align 8, !tbaa !9
  %103 = icmp sge i64 %101, %102
  br i1 %103, label %104, label %107

104:                                              ; preds = %90, %77
  %105 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 -2, ptr %105, align 8, !tbaa !9
  %106 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %106)
  store i32 1, ptr %34, align 4
  br label %293

107:                                              ; preds = %90
  br label %108

108:                                              ; preds = %107
  %109 = load i64, ptr %22, align 8, !tbaa !9
  %110 = add nsw i64 %109, 1
  store i64 %110, ptr %22, align 8, !tbaa !9
  br label %72, !llvm.loop !14

111:                                              ; preds = %72
  br label %112

112:                                              ; preds = %111, %65
  %113 = load double, ptr %14, align 8, !tbaa !11
  %114 = load double, ptr @_ZN11alglib_implL17mlptrain_mindecayE, align 8, !tbaa !11
  %115 = load ptr, ptr %20, align 8, !tbaa !5
  %116 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %113, double noundef %114, ptr noundef %115)
  store double %116, ptr %14, align 8, !tbaa !11
  %117 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 2, ptr %117, align 8, !tbaa !9
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = load i64, ptr %13, align 8, !tbaa !9
  %121 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl19mlpinitpreprocessorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %118, ptr noundef %119, i64 noundef %120, ptr noundef %121)
  %122 = load i64, ptr %26, align 8, !tbaa !9
  %123 = sub nsw i64 %122, 1
  %124 = add nsw i64 %123, 1
  %125 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %27, i64 noundef %124, ptr noundef %125)
  %126 = load i64, ptr %26, align 8, !tbaa !9
  %127 = sub nsw i64 %126, 1
  %128 = add nsw i64 %127, 1
  %129 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %28, i64 noundef %128, ptr noundef %129)
  store double 1.000000e+300, ptr %31, align 8, !tbaa !11
  %130 = load ptr, ptr %19, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %130, i32 0, i32 7
  store i64 0, ptr %131, align 8, !tbaa !16
  %132 = load ptr, ptr %19, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %132, i32 0, i32 6
  store i64 0, ptr %133, align 8, !tbaa !18
  %134 = load ptr, ptr %19, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %134, i32 0, i32 5
  store i64 0, ptr %135, align 8, !tbaa !19
  store i64 1, ptr %23, align 8, !tbaa !9
  br label %136

136:                                              ; preds = %277, %112
  %137 = load i64, ptr %23, align 8, !tbaa !9
  %138 = load i64, ptr %15, align 8, !tbaa !9
  %139 = icmp sle i64 %137, %138
  br i1 %139, label %140, label %280

140:                                              ; preds = %136
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %141, ptr noundef %142)
  %143 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %144 = load ptr, ptr %143, align 8, !tbaa !13
  %145 = getelementptr inbounds double, ptr %144, i64 0
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %146, i32 0, i32 6
  %148 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %147, i32 0, i32 4
  %149 = load ptr, ptr %148, align 8, !tbaa !13
  %150 = getelementptr inbounds double, ptr %149, i64 0
  %151 = load i64, ptr %26, align 8, !tbaa !9
  %152 = sub nsw i64 %151, 1
  %153 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %152)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %145, i64 noundef 1, ptr noundef %150, i64 noundef 1, i64 noundef %153)
  %154 = load i64, ptr %26, align 8, !tbaa !9
  %155 = load i64, ptr %26, align 8, !tbaa !9
  %156 = load ptr, ptr %20, align 8, !tbaa !5
  %157 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %155, i64 noundef 10, ptr noundef %156)
  %158 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14minlbfgscreateEllPNS_9ae_vectorEPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef %154, i64 noundef %157, ptr noundef %27, ptr noundef %33, ptr noundef %158)
  %159 = load double, ptr %16, align 8, !tbaa !11
  %160 = load i64, ptr %17, align 8, !tbaa !9
  %161 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl15minlbfgssetcondEPNS_13minlbfgsstateEdddlPNS_8ae_stateE(ptr noundef %33, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %159, i64 noundef %160, ptr noundef %161)
  br label %162

162:                                              ; preds = %165, %140
  %163 = load ptr, ptr %20, align 8, !tbaa !5
  %164 = call noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef %33, ptr noundef %163)
  br i1 %164, label %165, label %224

165:                                              ; preds = %162
  %166 = load ptr, ptr %11, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %166, i32 0, i32 6
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %167, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !13
  %170 = getelementptr inbounds double, ptr %169, i64 0
  %171 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %33, i32 0, i32 43
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %171, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !13
  %174 = getelementptr inbounds double, ptr %173, i64 0
  %175 = load i64, ptr %26, align 8, !tbaa !9
  %176 = sub nsw i64 %175, 1
  %177 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %176)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %170, i64 noundef 1, ptr noundef %174, i64 noundef 1, i64 noundef %177)
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = load ptr, ptr %12, align 8, !tbaa !5
  %180 = load i64, ptr %13, align 8, !tbaa !9
  %181 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %33, i32 0, i32 44
  %182 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %33, i32 0, i32 45
  %183 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlpgradnbatchEPNS_20multilayerperceptronEPNS_9ae_matrixElPdPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %178, ptr noundef %179, i64 noundef %180, ptr noundef %181, ptr noundef %182, ptr noundef %183)
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %184, i32 0, i32 6
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %185, i32 0, i32 4
  %187 = load ptr, ptr %186, align 8, !tbaa !13
  %188 = getelementptr inbounds double, ptr %187, i64 0
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %189, i32 0, i32 6
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %190, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !13
  %193 = getelementptr inbounds double, ptr %192, i64 0
  %194 = load i64, ptr %26, align 8, !tbaa !9
  %195 = sub nsw i64 %194, 1
  %196 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %195)
  %197 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %188, i64 noundef 1, ptr noundef %193, i64 noundef 1, i64 noundef %196)
  store double %197, ptr %30, align 8, !tbaa !11
  %198 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %33, i32 0, i32 44
  %199 = load double, ptr %198, align 8, !tbaa !20
  %200 = load double, ptr %14, align 8, !tbaa !11
  %201 = fmul double 5.000000e-01, %200
  %202 = load double, ptr %30, align 8, !tbaa !11
  %203 = call double @llvm.fmuladd.f64(double %201, double %202, double %199)
  %204 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %33, i32 0, i32 44
  store double %203, ptr %204, align 8, !tbaa !20
  %205 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %33, i32 0, i32 45
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %205, i32 0, i32 4
  %207 = load ptr, ptr %206, align 8, !tbaa !13
  %208 = getelementptr inbounds double, ptr %207, i64 0
  %209 = load ptr, ptr %11, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %209, i32 0, i32 6
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %210, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !13
  %213 = getelementptr inbounds double, ptr %212, i64 0
  %214 = load i64, ptr %26, align 8, !tbaa !9
  %215 = sub nsw i64 %214, 1
  %216 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %215)
  %217 = load double, ptr %14, align 8, !tbaa !11
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %208, i64 noundef 1, ptr noundef %213, i64 noundef 1, i64 noundef %216, double noundef %217)
  %218 = load ptr, ptr %19, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %218, i32 0, i32 5
  %220 = load i64, ptr %219, align 8, !tbaa !19
  %221 = add nsw i64 %220, 1
  %222 = load ptr, ptr %19, align 8, !tbaa !5
  %223 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %222, i32 0, i32 5
  store i64 %221, ptr %223, align 8, !tbaa !19
  br label %162, !llvm.loop !35

224:                                              ; preds = %162
  %225 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl15minlbfgsresultsEPNS_13minlbfgsstateEPNS_9ae_vectorEPNS_14minlbfgsreportEPNS_8ae_stateE(ptr noundef %33, ptr noundef %27, ptr noundef %32, ptr noundef %225)
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %226, i32 0, i32 6
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %227, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !13
  %230 = getelementptr inbounds double, ptr %229, i64 0
  %231 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %232 = load ptr, ptr %231, align 8, !tbaa !13
  %233 = getelementptr inbounds double, ptr %232, i64 0
  %234 = load i64, ptr %26, align 8, !tbaa !9
  %235 = sub nsw i64 %234, 1
  %236 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %235)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %230, i64 noundef 1, ptr noundef %233, i64 noundef 1, i64 noundef %236)
  %237 = load ptr, ptr %11, align 8, !tbaa !5
  %238 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %237, i32 0, i32 6
  %239 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %238, i32 0, i32 4
  %240 = load ptr, ptr %239, align 8, !tbaa !13
  %241 = getelementptr inbounds double, ptr %240, i64 0
  %242 = load ptr, ptr %11, align 8, !tbaa !5
  %243 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %242, i32 0, i32 6
  %244 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %243, i32 0, i32 4
  %245 = load ptr, ptr %244, align 8, !tbaa !13
  %246 = getelementptr inbounds double, ptr %245, i64 0
  %247 = load i64, ptr %26, align 8, !tbaa !9
  %248 = sub nsw i64 %247, 1
  %249 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %248)
  %250 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %241, i64 noundef 1, ptr noundef %246, i64 noundef 1, i64 noundef %249)
  store double %250, ptr %30, align 8, !tbaa !11
  %251 = load ptr, ptr %11, align 8, !tbaa !5
  %252 = load ptr, ptr %12, align 8, !tbaa !5
  %253 = load i64, ptr %13, align 8, !tbaa !9
  %254 = load ptr, ptr %20, align 8, !tbaa !5
  %255 = call noundef double @_ZN11alglib_impl9mlperrornEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %251, ptr noundef %252, i64 noundef %253, ptr noundef %254)
  %256 = load double, ptr %14, align 8, !tbaa !11
  %257 = fmul double 5.000000e-01, %256
  %258 = load double, ptr %30, align 8, !tbaa !11
  %259 = call double @llvm.fmuladd.f64(double %257, double %258, double %255)
  store double %259, ptr %29, align 8, !tbaa !11
  %260 = load double, ptr %29, align 8, !tbaa !11
  %261 = load double, ptr %31, align 8, !tbaa !11
  %262 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %260, double noundef %261)
  br i1 %262, label %263, label %276

263:                                              ; preds = %224
  %264 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %265 = load ptr, ptr %264, align 8, !tbaa !13
  %266 = getelementptr inbounds double, ptr %265, i64 0
  %267 = load ptr, ptr %11, align 8, !tbaa !5
  %268 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %267, i32 0, i32 6
  %269 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %268, i32 0, i32 4
  %270 = load ptr, ptr %269, align 8, !tbaa !13
  %271 = getelementptr inbounds double, ptr %270, i64 0
  %272 = load i64, ptr %26, align 8, !tbaa !9
  %273 = sub nsw i64 %272, 1
  %274 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %273)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %266, i64 noundef 1, ptr noundef %271, i64 noundef 1, i64 noundef %274)
  %275 = load double, ptr %29, align 8, !tbaa !11
  store double %275, ptr %31, align 8, !tbaa !11
  br label %276

276:                                              ; preds = %263, %224
  br label %277

277:                                              ; preds = %276
  %278 = load i64, ptr %23, align 8, !tbaa !9
  %279 = add nsw i64 %278, 1
  store i64 %279, ptr %23, align 8, !tbaa !9
  br label %136, !llvm.loop !36

280:                                              ; preds = %136
  %281 = load ptr, ptr %11, align 8, !tbaa !5
  %282 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %281, i32 0, i32 6
  %283 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %282, i32 0, i32 4
  %284 = load ptr, ptr %283, align 8, !tbaa !13
  %285 = getelementptr inbounds double, ptr %284, i64 0
  %286 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %287 = load ptr, ptr %286, align 8, !tbaa !13
  %288 = getelementptr inbounds double, ptr %287, i64 0
  %289 = load i64, ptr %26, align 8, !tbaa !9
  %290 = sub nsw i64 %289, 1
  %291 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %290)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %285, i64 noundef 1, ptr noundef %288, i64 noundef 1, i64 noundef %291)
  %292 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %292)
  store i32 0, ptr %34, align 4
  br label %293

293:                                              ; preds = %280, %104, %62, %47
  call void @llvm.lifetime.end.p0(i64 6872, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #6
  %294 = load i32, ptr %34, align 4
  switch i32 %294, label %296 [
    i32 0, label %295
    i32 1, label %295
  ]

295:                                              ; preds = %293, %293
  ret void

296:                                              ; preds = %293
  unreachable
}

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #4

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

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

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

declare void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, double noundef) #4

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

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

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) #4

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #4

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #4

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

declare void @_ZN11alglib_impl20_minlbfgsreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #4

declare void @_ZN11alglib_impl19_minlbfgsstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #4

declare void @_ZN11alglib_impl14minlbfgscreateEllPNS_9ae_vectorEPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #4

declare void @_ZN11alglib_impl15minlbfgssetcondEPNS_13minlbfgsstateEdddlPNS_8ae_stateE(ptr noundef, double noundef, double noundef, double noundef, i64 noundef, ptr noundef) #4

declare noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #4

declare void @_ZN11alglib_impl15minlbfgsresultsEPNS_13minlbfgsstateEPNS_9ae_vectorEPNS_14minlbfgsreportEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

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 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !10, i64 56}
!17 = !{!"_ZTSN11alglib_impl9mlpreportE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !10, i64 40, !10, i64 48, !10, i64 56}
!18 = !{!17, !10, i64 48}
!19 = !{!17, !10, i64 40}
!20 = !{!21, !12, i64 2264}
!21 = !{!"_ZTSN11alglib_impl13minlbfgsstateE", !10, i64 0, !10, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !10, i64 40, !22, i64 48, !12, i64 56, !23, i64 64, !12, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !23, i64 176, !25, i64 240, !25, i64 320, !23, i64 400, !23, i64 464, !23, i64 528, !12, i64 592, !23, i64 600, !12, i64 664, !12, i64 672, !23, i64 680, !10, i64 744, !12, i64 752, !25, i64 760, !23, i64 840, !23, i64 904, !23, i64 968, !25, i64 1032, !10, i64 1112, !26, i64 1120, !27, i64 1584, !12, i64 2032, !12, i64 2040, !12, i64 2048, !12, i64 2056, !12, i64 2064, !23, i64 2072, !23, i64 2136, !23, i64 2200, !12, i64 2264, !23, i64 2272, !22, i64 2336, !22, i64 2337, !22, i64 2338, !22, i64 2339, !12, i64 2344, !28, i64 2352, !10, i64 2616, !10, i64 2624, !10, i64 2632, !30, i64 2640, !10, i64 2832, !31, i64 2840, !23, i64 6808}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !22, i64 16, !24, i64 24, !7, i64 56}
!24 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!25 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !22, i64 32, !24, i64 40, !7, i64 72}
!26 = !{!"_ZTSN11alglib_impl12precbuflbfgsE", !23, i64 0, !23, i64 64, !23, i64 128, !25, i64 192, !23, i64 272, !23, i64 336, !23, i64 400}
!27 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !10, i64 0, !10, i64 8, !23, i64 16, !25, i64 80, !23, i64 160, !25, i64 224, !25, i64 304, !23, i64 384}
!28 = !{!"_ZTSN11alglib_impl10rcommstateE", !29, i64 0, !23, i64 8, !23, i64 72, !23, i64 136, !23, i64 200}
!29 = !{!"int", !7, i64 0}
!30 = !{!"_ZTSN11alglib_impl11linminstateE", !22, i64 0, !22, i64 1, !10, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184}
!31 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !10, i64 0, !10, i64 8, !22, i64 16, !23, i64 24, !10, i64 88, !23, i64 96, !23, i64 160, !23, i64 224, !25, i64 288, !23, i64 368, !23, i64 432, !10, i64 496, !22, i64 504, !22, i64 505, !12, i64 512, !12, i64 520, !22, i64 528, !32, i64 536, !12, i64 832, !12, i64 840, !33, i64 848, !33, i64 1152, !12, i64 1456, !12, i64 1464, !34, i64 1472, !34, i64 1784, !22, i64 2096, !23, i64 2104, !23, i64 2168, !25, i64 2232, !28, i64 2312, !23, i64 2576, !23, i64 2640, !23, i64 2704, !23, i64 2768, !23, i64 2832, !23, i64 2896, !23, i64 2960, !23, i64 3024, !25, i64 3088, !25, i64 3168, !23, i64 3248, !23, i64 3312, !23, i64 3376, !23, i64 3440, !23, i64 3504, !23, i64 3568, !23, i64 3632, !23, i64 3696, !23, i64 3760, !23, i64 3824, !25, i64 3888}
!32 = !{!"_ZTSN11alglib_impl14optguardreportE", !22, i64 0, !22, i64 1, !10, i64 8, !12, i64 16, !22, i64 24, !22, i64 25, !22, i64 26, !10, i64 32, !12, i64 40, !22, i64 48, !10, i64 56, !10, i64 64, !23, i64 72, !25, i64 136, !25, i64 216}
!33 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !22, i64 0, !10, i64 8, !23, i64 16, !23, i64 80, !10, i64 144, !23, i64 152, !23, i64 216, !10, i64 280, !10, i64 288, !10, i64 296}
!34 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !22, i64 0, !10, i64 8, !10, i64 16, !23, i64 24, !23, i64 88, !10, i64 152, !23, i64 160, !23, i64 224, !10, i64 288, !10, i64 296, !10, i64 304}
!35 = distinct !{!35, !15}
!36 = distinct !{!36, !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"

%"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::minlbfgsreport" = type { i64, i64, i64 }
%"struct.alglib_impl::minlbfgsstate" = type { i64, i64, double, double, double, i64, i8, double, %"struct.alglib_impl::ae_vector", double, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::ae_vector", i64, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, %"struct.alglib_impl::precbuflbfgs", %"struct.alglib_impl::precbuflowrank", double, double, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, double, %"struct.alglib_impl::rcommstate", i64, i64, i64, %"struct.alglib_impl::linminstate", i64, %"struct.alglib_impl::smoothnessmonitor", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::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::precbuflbfgs" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::precbuflowrank" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::linminstate" = type { i8, i8, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"struct.alglib_impl::smoothnessmonitor" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i8, i8, double, double, i8, %"struct.alglib_impl::optguardreport", double, double, %"struct.alglib_impl::optguardnonc1test0report", %"struct.alglib_impl::optguardnonc1test0report", double, double, %"struct.alglib_impl::optguardnonc1test1report", %"struct.alglib_impl::optguardnonc1test1report", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardreport" = type { i8, i8, i64, double, i8, i8, i8, i64, double, i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardnonc1test0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test1report" = type { i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }

@_ZN11alglib_implL17mlptrain_mindecayE = external hidden local_unnamed_addr global double, 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 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
declare dso_local void @_ZN11alglib_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl9mlperrornEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13mlptrainlbfgsEPNS_20multilayerperceptronEPNS_9ae_matrixEldldlPlPNS_9mlpreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, double noundef %3, i64 noundef %4, double noundef %5, i64 noundef %6, ptr nocapture noundef writeonly %7, ptr noundef %8, ptr noundef %9) local_unnamed_addr #2 {
  %11 = alloca %"struct.alglib_impl::ae_frame", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::minlbfgsreport", align 8
  %18 = alloca %"struct.alglib_impl::minlbfgsstate", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 6872, ptr nonnull %18) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %9, ptr noundef nonnull %11)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %17, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(6872) %18, i8 0, i64 6872, i1 false)
  store i64 0, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_mlpreport_clearEPv(ptr noundef %8)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 3, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl20_minlbfgsreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %17, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19_minlbfgsstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %18, ptr noundef %9, i1 noundef zeroext true)
  %19 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %5, double noundef 0.000000e+00)
  %20 = icmp eq i64 %6, 0
  %or.cond = and i1 %20, %19
  br i1 %or.cond, label %21, label %22

21:                                               ; preds = %10
  store i64 -8, ptr %7, align 8, !tbaa !5
  br label %123

22:                                               ; preds = %10
  %23 = icmp slt i64 %2, 1
  %24 = icmp slt i64 %4, 1
  %or.cond3 = or i1 %23, %24
  br i1 %or.cond3, label %28, label %25

25:                                               ; preds = %22
  %26 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %5, double noundef 0.000000e+00)
  %27 = icmp slt i64 %6, 0
  %or.cond5 = or i1 %27, %26
  br i1 %or.cond5, label %28, label %29

28:                                               ; preds = %25, %22
  store i64 -1, ptr %7, align 8, !tbaa !5
  br label %123

29:                                               ; preds = %25
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef %9)
  %30 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %9)
  br i1 %30, label %.lr.ph, label %.lr.ph102

.lr.ph:                                           ; preds = %29
  %31 = getelementptr inbounds i8, ptr %1, i64 72
  br label %34

32:                                               ; preds = %43
  %33 = add nuw nsw i64 %.09096, 1
  %exitcond.not = icmp eq i64 %33, %2
  br i1 %exitcond.not, label %.lr.ph102, label %34, !llvm.loop !9

34:                                               ; preds = %.lr.ph, %32
  %.09096 = phi i64 [ 0, %.lr.ph ], [ %33, %32 ]
  %35 = load ptr, ptr %31, align 8, !tbaa !11
  %36 = getelementptr inbounds ptr, ptr %35, i64 %.09096
  %37 = load ptr, ptr %36, align 8, !tbaa !12
  %38 = load i64, ptr %12, align 8, !tbaa !5
  %39 = getelementptr inbounds double, ptr %37, i64 %38
  %40 = load double, ptr %39, align 8, !tbaa !14
  %41 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %40, ptr noundef %9)
  %42 = icmp slt i64 %41, 0
  br i1 %42, label %52, label %43

43:                                               ; preds = %34
  %44 = load ptr, ptr %31, align 8, !tbaa !11
  %45 = getelementptr inbounds ptr, ptr %44, i64 %.09096
  %46 = load ptr, ptr %45, align 8, !tbaa !12
  %47 = load i64, ptr %12, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %46, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !14
  %50 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %49, ptr noundef %9)
  %51 = load i64, ptr %13, align 8, !tbaa !5
  %.not94 = icmp slt i64 %50, %51
  br i1 %.not94, label %32, label %52

52:                                               ; preds = %43, %34
  store i64 -2, ptr %7, align 8, !tbaa !5
  br label %123

.lr.ph102:                                        ; preds = %32, %29
  %53 = load double, ptr @_ZN11alglib_implL17mlptrain_mindecayE, align 8, !tbaa !14
  %54 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %3, double noundef %53, ptr noundef %9)
  store i64 2, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl19mlpinitpreprocessorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %9)
  %55 = load i64, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %55, ptr noundef %9)
  %56 = load i64, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %56, ptr noundef %9)
  %57 = getelementptr inbounds i8, ptr %8, i64 40
  %58 = getelementptr inbounds i8, ptr %15, i64 56
  %59 = getelementptr inbounds i8, ptr %0, i64 328
  %60 = getelementptr inbounds i8, ptr %18, i64 2256
  %61 = getelementptr inbounds i8, ptr %18, i64 2264
  %62 = getelementptr inbounds i8, ptr %18, i64 2272
  %63 = fmul double %54, 5.000000e-01
  %64 = getelementptr inbounds i8, ptr %18, i64 2328
  %65 = getelementptr inbounds i8, ptr %16, i64 56
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %57, i8 0, i64 24, i1 false)
  br label %66

66:                                               ; preds = %.lr.ph102, %114
  %.0100 = phi double [ 1.000000e+300, %.lr.ph102 ], [ %.1, %114 ]
  %.08999 = phi i64 [ 1, %.lr.ph102 ], [ %115, %114 ]
  call void @_ZN11alglib_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %9)
  %67 = load ptr, ptr %58, align 8, !tbaa !11
  %68 = load ptr, ptr %59, align 8, !tbaa !11
  %69 = load i64, ptr %14, align 8, !tbaa !5
  %70 = add nsw i64 %69, -1
  %71 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %70)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %67, i64 noundef 1, ptr noundef %68, i64 noundef 1, i64 noundef %71)
  %72 = load i64, ptr %14, align 8, !tbaa !5
  %73 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %72, i64 noundef 10, ptr noundef %9)
  call void @_ZN11alglib_impl14minlbfgscreateEllPNS_9ae_vectorEPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef %72, i64 noundef %73, ptr noundef nonnull %15, ptr noundef nonnull %18, ptr noundef %9)
  call void @_ZN11alglib_impl15minlbfgssetcondEPNS_13minlbfgsstateEdddlPNS_8ae_stateE(ptr noundef nonnull %18, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %5, i64 noundef %6, ptr noundef %9)
  %74 = call noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef %9)
  br i1 %74, label %.lr.ph97, label %._crit_edge

.lr.ph97:                                         ; preds = %66, %.lr.ph97
  %75 = load ptr, ptr %59, align 8, !tbaa !11
  %76 = load ptr, ptr %60, align 8, !tbaa !11
  %77 = load i64, ptr %14, align 8, !tbaa !5
  %78 = add nsw i64 %77, -1
  %79 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %78)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %75, i64 noundef 1, ptr noundef %76, i64 noundef 1, i64 noundef %79)
  call void @_ZN11alglib_impl13mlpgradnbatchEPNS_20multilayerperceptronEPNS_9ae_matrixElPdPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %2, ptr noundef nonnull %61, ptr noundef nonnull %62, ptr noundef %9)
  %80 = load ptr, ptr %59, align 8, !tbaa !11
  %81 = load i64, ptr %14, align 8, !tbaa !5
  %82 = add nsw i64 %81, -1
  %83 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %82)
  %84 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %80, i64 noundef 1, ptr noundef %80, i64 noundef 1, i64 noundef %83)
  %85 = load double, ptr %61, align 8, !tbaa !16
  %86 = call double @llvm.fmuladd.f64(double %63, double %84, double %85)
  store double %86, ptr %61, align 8, !tbaa !16
  %87 = load ptr, ptr %64, align 8, !tbaa !11
  %88 = load ptr, ptr %59, align 8, !tbaa !11
  %89 = load i64, ptr %14, align 8, !tbaa !5
  %90 = add nsw i64 %89, -1
  %91 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %90)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %87, i64 noundef 1, ptr noundef %88, i64 noundef 1, i64 noundef %91, double noundef %54)
  %92 = load i64, ptr %57, align 8, !tbaa !31
  %93 = add nsw i64 %92, 1
  store i64 %93, ptr %57, align 8, !tbaa !31
  %94 = call noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef %9)
  br i1 %94, label %.lr.ph97, label %._crit_edge, !llvm.loop !33

._crit_edge:                                      ; preds = %.lr.ph97, %66
  call void @_ZN11alglib_impl15minlbfgsresultsEPNS_13minlbfgsstateEPNS_9ae_vectorEPNS_14minlbfgsreportEPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %15, ptr noundef nonnull %17, ptr noundef %9)
  %95 = load ptr, ptr %59, align 8, !tbaa !11
  %96 = load ptr, ptr %58, align 8, !tbaa !11
  %97 = load i64, ptr %14, align 8, !tbaa !5
  %98 = add nsw i64 %97, -1
  %99 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %98)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %95, i64 noundef 1, ptr noundef %96, i64 noundef 1, i64 noundef %99)
  %100 = load ptr, ptr %59, align 8, !tbaa !11
  %101 = load i64, ptr %14, align 8, !tbaa !5
  %102 = add nsw i64 %101, -1
  %103 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %102)
  %104 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %100, i64 noundef 1, ptr noundef %100, i64 noundef 1, i64 noundef %103)
  %105 = call noundef double @_ZN11alglib_impl9mlperrornEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %2, ptr noundef %9)
  %106 = call double @llvm.fmuladd.f64(double %63, double %104, double %105)
  %107 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %106, double noundef %.0100)
  br i1 %107, label %108, label %114

108:                                              ; preds = %._crit_edge
  %109 = load ptr, ptr %65, align 8, !tbaa !11
  %110 = load ptr, ptr %59, align 8, !tbaa !11
  %111 = load i64, ptr %14, align 8, !tbaa !5
  %112 = add nsw i64 %111, -1
  %113 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %112)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %109, i64 noundef 1, ptr noundef %110, i64 noundef 1, i64 noundef %113)
  br label %114

114:                                              ; preds = %._crit_edge, %108
  %.1 = phi double [ %106, %108 ], [ %.0100, %._crit_edge ]
  %115 = add nuw i64 %.08999, 1
  %exitcond106.not = icmp eq i64 %.08999, %4
  br i1 %exitcond106.not, label %._crit_edge103, label %66, !llvm.loop !34

._crit_edge103:                                   ; preds = %114
  %116 = getelementptr inbounds i8, ptr %0, i64 328
  %117 = load ptr, ptr %116, align 8, !tbaa !11
  %118 = getelementptr inbounds i8, ptr %16, i64 56
  %119 = load ptr, ptr %118, align 8, !tbaa !11
  %120 = load i64, ptr %14, align 8, !tbaa !5
  %121 = add nsw i64 %120, -1
  %122 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %121)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %117, i64 noundef 1, ptr noundef %119, i64 noundef 1, i64 noundef %122)
  br label %123

123:                                              ; preds = %._crit_edge103, %52, %28, %21
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %9)
  call void @llvm.lifetime.end.p0(i64 6872, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  ret void
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #4

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #4

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

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

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) local_unnamed_addr #4

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #4

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

declare void @_ZN11alglib_impl20_minlbfgsreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #4

declare void @_ZN11alglib_impl19_minlbfgsstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #4

declare void @_ZN11alglib_impl14minlbfgscreateEllPNS_9ae_vectorEPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

declare noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN11alglib_impl15minlbfgsresultsEPNS_13minlbfgsstateEPNS_9ae_vectorEPNS_14minlbfgsreportEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!17, !15, i64 2264}
!17 = !{!"_ZTSN11alglib_impl13minlbfgsstateE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !6, i64 40, !18, i64 48, !15, i64 56, !19, i64 64, !15, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !19, i64 176, !21, i64 240, !21, i64 320, !19, i64 400, !19, i64 464, !19, i64 528, !15, i64 592, !19, i64 600, !15, i64 664, !15, i64 672, !19, i64 680, !6, i64 744, !15, i64 752, !21, i64 760, !19, i64 840, !19, i64 904, !19, i64 968, !21, i64 1032, !6, i64 1112, !22, i64 1120, !23, i64 1584, !15, i64 2032, !15, i64 2040, !15, i64 2048, !15, i64 2056, !15, i64 2064, !19, i64 2072, !19, i64 2136, !19, i64 2200, !15, i64 2264, !19, i64 2272, !18, i64 2336, !18, i64 2337, !18, i64 2338, !18, i64 2339, !15, i64 2344, !24, i64 2352, !6, i64 2616, !6, i64 2624, !6, i64 2632, !26, i64 2640, !6, i64 2832, !27, i64 2840, !19, i64 6808}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN11alglib_impl9ae_vectorE", !6, i64 0, !6, i64 8, !18, i64 16, !20, i64 24, !7, i64 56}
!20 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!21 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !18, i64 32, !20, i64 40, !7, i64 72}
!22 = !{!"_ZTSN11alglib_impl12precbuflbfgsE", !19, i64 0, !19, i64 64, !19, i64 128, !21, i64 192, !19, i64 272, !19, i64 336, !19, i64 400}
!23 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !6, i64 0, !6, i64 8, !19, i64 16, !21, i64 80, !19, i64 160, !21, i64 224, !21, i64 304, !19, i64 384}
!24 = !{!"_ZTSN11alglib_impl10rcommstateE", !25, i64 0, !19, i64 8, !19, i64 72, !19, i64 136, !19, i64 200}
!25 = !{!"int", !7, i64 0}
!26 = !{!"_ZTSN11alglib_impl11linminstateE", !18, i64 0, !18, i64 1, !6, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184}
!27 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !6, i64 0, !6, i64 8, !18, i64 16, !19, i64 24, !6, i64 88, !19, i64 96, !19, i64 160, !19, i64 224, !21, i64 288, !19, i64 368, !19, i64 432, !6, i64 496, !18, i64 504, !18, i64 505, !15, i64 512, !15, i64 520, !18, i64 528, !28, i64 536, !15, i64 832, !15, i64 840, !29, i64 848, !29, i64 1152, !15, i64 1456, !15, i64 1464, !30, i64 1472, !30, i64 1784, !18, i64 2096, !19, i64 2104, !19, i64 2168, !21, i64 2232, !24, i64 2312, !19, i64 2576, !19, i64 2640, !19, i64 2704, !19, i64 2768, !19, i64 2832, !19, i64 2896, !19, i64 2960, !19, i64 3024, !21, i64 3088, !21, i64 3168, !19, i64 3248, !19, i64 3312, !19, i64 3376, !19, i64 3440, !19, i64 3504, !19, i64 3568, !19, i64 3632, !19, i64 3696, !19, i64 3760, !19, i64 3824, !21, i64 3888}
!28 = !{!"_ZTSN11alglib_impl14optguardreportE", !18, i64 0, !18, i64 1, !6, i64 8, !15, i64 16, !18, i64 24, !18, i64 25, !18, i64 26, !6, i64 32, !15, i64 40, !18, i64 48, !6, i64 56, !6, i64 64, !19, i64 72, !21, i64 136, !21, i64 216}
!29 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !18, i64 0, !6, i64 8, !19, i64 16, !19, i64 80, !6, i64 144, !19, i64 152, !19, i64 216, !6, i64 280, !6, i64 288, !6, i64 296}
!30 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !18, i64 0, !6, i64 8, !6, i64 16, !19, i64 24, !19, i64 88, !6, i64 152, !19, i64 160, !19, i64 224, !6, i64 288, !6, i64 296, !6, i64 304}
!31 = !{!32, !6, i64 40}
!32 = !{!"_ZTSN11alglib_impl9mlpreportE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!33 = distinct !{!33, !10}
!34 = distinct !{!34, !10}


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