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

; 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_impl8mlperrorEPNS_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_impl10mlptrainesEPNS_20multilayerperceptronEPNS_9ae_matrixElS3_ldlPlPNS_9mlpreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr 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 ptr, 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::ae_vector", align 8
  %33 = alloca double, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca %"struct.alglib_impl::minlbfgsreport", align 8
  %37 = alloca %"struct.alglib_impl::minlbfgsstate", align 8
  %38 = alloca double, align 8
  %39 = alloca i8, align 1
  %40 = 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 ptr %3, ptr %14, align 8, !tbaa !5
  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 64, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 6872, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #6
  %41 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %41, 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 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %36, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %37, i8 0, i64 6872, i1 false)
  %42 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 0, ptr %42, align 8, !tbaa !9
  %43 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_mlpreport_clearEPv(ptr noundef %43)
  %44 = 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 %44, i1 noundef zeroext true)
  %45 = 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 %45, i1 noundef zeroext true)
  %46 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %32, i64 noundef 0, i64 noundef 3, ptr noundef %46, i1 noundef zeroext true)
  %47 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20_minlbfgsreport_initEPvPNS_8ae_stateEb(ptr noundef %36, ptr noundef %47, i1 noundef zeroext true)
  %48 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl19_minlbfgsstate_initEPvPNS_8ae_stateEb(ptr noundef %37, ptr noundef %48, i1 noundef zeroext true)
  store double 1.000000e-03, ptr %38, align 8, !tbaa !11
  %49 = load i64, ptr %13, align 8, !tbaa !9
  %50 = icmp sle i64 %49, 0
  br i1 %50, label %63, label %51

51:                                               ; preds = %10
  %52 = load i64, ptr %15, align 8, !tbaa !9
  %53 = icmp sle i64 %52, 0
  br i1 %53, label %63, label %54

54:                                               ; preds = %51
  %55 = load i64, ptr %17, align 8, !tbaa !9
  %56 = icmp slt i64 %55, 1
  br i1 %56, label %57, label %60

57:                                               ; preds = %54
  %58 = load i64, ptr %17, align 8, !tbaa !9
  %59 = icmp ne i64 %58, -1
  br i1 %59, label %63, label %60

60:                                               ; preds = %57, %54
  %61 = load double, ptr %16, align 8, !tbaa !11
  %62 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %61, double noundef 0.000000e+00)
  br i1 %62, label %63, label %66

63:                                               ; preds = %60, %57, %51, %10
  %64 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 -1, ptr %64, align 8, !tbaa !9
  %65 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %65)
  store i32 1, ptr %40, align 4
  br label %396

66:                                               ; preds = %60
  %67 = load i64, ptr %17, align 8, !tbaa !9
  %68 = icmp eq i64 %67, -1
  br i1 %68, label %69, label %70

69:                                               ; preds = %66
  store i8 0, ptr %39, align 1, !tbaa !13
  store i64 1, ptr %17, align 8, !tbaa !9
  br label %71

70:                                               ; preds = %66
  store i8 1, ptr %39, align 1, !tbaa !13
  br label %71

71:                                               ; preds = %70, %69
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %72, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %73)
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = load ptr, ptr %20, align 8, !tbaa !5
  %76 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %74, ptr noundef %75)
  br i1 %76, label %77, label %158

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

78:                                               ; preds = %114, %77
  %79 = load i64, ptr %22, align 8, !tbaa !9
  %80 = load i64, ptr %13, align 8, !tbaa !9
  %81 = sub nsw i64 %80, 1
  %82 = icmp sle i64 %79, %81
  br i1 %82, label %83, label %117

83:                                               ; preds = %78
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %84, i32 0, i32 6
  %86 = load ptr, ptr %85, align 8, !tbaa !15
  %87 = load i64, ptr %22, align 8, !tbaa !9
  %88 = getelementptr inbounds ptr, ptr %86, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = load i64, ptr %24, align 8, !tbaa !9
  %91 = getelementptr inbounds double, ptr %89, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !11
  %93 = load ptr, ptr %20, align 8, !tbaa !5
  %94 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %92, ptr noundef %93)
  %95 = icmp slt i64 %94, 0
  br i1 %95, label %110, label %96

96:                                               ; preds = %83
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %97, i32 0, i32 6
  %99 = load ptr, ptr %98, align 8, !tbaa !15
  %100 = load i64, ptr %22, align 8, !tbaa !9
  %101 = getelementptr inbounds ptr, ptr %99, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = load i64, ptr %24, align 8, !tbaa !9
  %104 = getelementptr inbounds double, ptr %102, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !11
  %106 = load ptr, ptr %20, align 8, !tbaa !5
  %107 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %105, ptr noundef %106)
  %108 = load i64, ptr %25, align 8, !tbaa !9
  %109 = icmp sge i64 %107, %108
  br i1 %109, label %110, label %113

110:                                              ; preds = %96, %83
  %111 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 -2, ptr %111, align 8, !tbaa !9
  %112 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %112)
  store i32 1, ptr %40, align 4
  br label %396

113:                                              ; preds = %96
  br label %114

114:                                              ; preds = %113
  %115 = load i64, ptr %22, align 8, !tbaa !9
  %116 = add nsw i64 %115, 1
  store i64 %116, ptr %22, align 8, !tbaa !9
  br label %78, !llvm.loop !16

117:                                              ; preds = %78
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %118

118:                                              ; preds = %154, %117
  %119 = load i64, ptr %22, align 8, !tbaa !9
  %120 = load i64, ptr %15, align 8, !tbaa !9
  %121 = sub nsw i64 %120, 1
  %122 = icmp sle i64 %119, %121
  br i1 %122, label %123, label %157

123:                                              ; preds = %118
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %124, i32 0, i32 6
  %126 = load ptr, ptr %125, align 8, !tbaa !15
  %127 = load i64, ptr %22, align 8, !tbaa !9
  %128 = getelementptr inbounds ptr, ptr %126, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %130 = load i64, ptr %24, align 8, !tbaa !9
  %131 = getelementptr inbounds double, ptr %129, i64 %130
  %132 = load double, ptr %131, align 8, !tbaa !11
  %133 = load ptr, ptr %20, align 8, !tbaa !5
  %134 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %132, ptr noundef %133)
  %135 = icmp slt i64 %134, 0
  br i1 %135, label %150, label %136

136:                                              ; preds = %123
  %137 = load ptr, ptr %14, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %137, i32 0, i32 6
  %139 = load ptr, ptr %138, align 8, !tbaa !15
  %140 = load i64, ptr %22, align 8, !tbaa !9
  %141 = getelementptr inbounds ptr, ptr %139, i64 %140
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  %143 = load i64, ptr %24, align 8, !tbaa !9
  %144 = getelementptr inbounds double, ptr %142, i64 %143
  %145 = load double, ptr %144, align 8, !tbaa !11
  %146 = load ptr, ptr %20, align 8, !tbaa !5
  %147 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %145, ptr noundef %146)
  %148 = load i64, ptr %25, align 8, !tbaa !9
  %149 = icmp sge i64 %147, %148
  br i1 %149, label %150, label %153

150:                                              ; preds = %136, %123
  %151 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 -2, ptr %151, align 8, !tbaa !9
  %152 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %152)
  store i32 1, ptr %40, align 4
  br label %396

153:                                              ; preds = %136
  br label %154

154:                                              ; preds = %153
  %155 = load i64, ptr %22, align 8, !tbaa !9
  %156 = add nsw i64 %155, 1
  store i64 %156, ptr %22, align 8, !tbaa !9
  br label %118, !llvm.loop !18

157:                                              ; preds = %118
  br label %158

158:                                              ; preds = %157, %71
  %159 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 2, ptr %159, align 8, !tbaa !9
  %160 = load ptr, ptr %11, align 8, !tbaa !5
  %161 = load ptr, ptr %12, align 8, !tbaa !5
  %162 = load i64, ptr %13, align 8, !tbaa !9
  %163 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl19mlpinitpreprocessorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %160, ptr noundef %161, i64 noundef %162, ptr noundef %163)
  %164 = load i64, ptr %26, align 8, !tbaa !9
  %165 = sub nsw i64 %164, 1
  %166 = add nsw i64 %165, 1
  %167 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %27, i64 noundef %166, ptr noundef %167)
  %168 = load i64, ptr %26, align 8, !tbaa !9
  %169 = sub nsw i64 %168, 1
  %170 = add nsw i64 %169, 1
  %171 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %28, i64 noundef %170, ptr noundef %171)
  %172 = load i64, ptr %26, align 8, !tbaa !9
  %173 = sub nsw i64 %172, 1
  %174 = add nsw i64 %173, 1
  %175 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %174, ptr noundef %175)
  store double 1.000000e+300, ptr %33, align 8, !tbaa !11
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %176

176:                                              ; preds = %186, %158
  %177 = load i64, ptr %22, align 8, !tbaa !9
  %178 = load i64, ptr %26, align 8, !tbaa !9
  %179 = sub nsw i64 %178, 1
  %180 = icmp sle i64 %177, %179
  br i1 %180, label %181, label %189

181:                                              ; preds = %176
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !15
  %184 = load i64, ptr %22, align 8, !tbaa !9
  %185 = getelementptr inbounds double, ptr %183, i64 %184
  store double 0.000000e+00, ptr %185, align 8, !tbaa !11
  br label %186

186:                                              ; preds = %181
  %187 = load i64, ptr %22, align 8, !tbaa !9
  %188 = add nsw i64 %187, 1
  store i64 %188, ptr %22, align 8, !tbaa !9
  br label %176, !llvm.loop !19

189:                                              ; preds = %176
  %190 = load ptr, ptr %19, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %190, i32 0, i32 7
  store i64 0, ptr %191, align 8, !tbaa !20
  %192 = load ptr, ptr %19, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %192, i32 0, i32 6
  store i64 0, ptr %193, align 8, !tbaa !22
  %194 = load ptr, ptr %19, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %194, i32 0, i32 5
  store i64 0, ptr %195, align 8, !tbaa !23
  store i64 1, ptr %23, align 8, !tbaa !9
  br label %196

196:                                              ; preds = %380, %189
  %197 = load i64, ptr %23, align 8, !tbaa !9
  %198 = load i64, ptr %17, align 8, !tbaa !9
  %199 = icmp sle i64 %197, %198
  br i1 %199, label %200, label %383

200:                                              ; preds = %196
  %201 = load i8, ptr %39, align 1, !tbaa !13, !range !24, !noundef !25
  %202 = trunc i8 %201 to i1
  br i1 %202, label %203, label %206

203:                                              ; preds = %200
  %204 = load ptr, ptr %11, align 8, !tbaa !5
  %205 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %204, ptr noundef %205)
  br label %206

206:                                              ; preds = %203, %200
  %207 = load ptr, ptr %11, align 8, !tbaa !5
  %208 = load ptr, ptr %14, align 8, !tbaa !5
  %209 = load i64, ptr %15, align 8, !tbaa !9
  %210 = load ptr, ptr %20, align 8, !tbaa !5
  %211 = call noundef double @_ZN11alglib_impl8mlperrorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %207, ptr noundef %208, i64 noundef %209, ptr noundef %210)
  store double %211, ptr %31, align 8, !tbaa !11
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %213 = load ptr, ptr %212, align 8, !tbaa !15
  %214 = getelementptr inbounds double, ptr %213, i64 0
  %215 = load ptr, ptr %11, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %215, i32 0, i32 6
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %216, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !15
  %219 = getelementptr inbounds double, ptr %218, i64 0
  %220 = load i64, ptr %26, align 8, !tbaa !9
  %221 = sub nsw i64 %220, 1
  %222 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %221)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %214, i64 noundef 1, ptr noundef %219, i64 noundef 1, i64 noundef %222)
  store i64 0, ptr %35, align 8, !tbaa !9
  store i64 0, ptr %34, align 8, !tbaa !9
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !15
  %225 = getelementptr inbounds double, ptr %224, i64 0
  %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 !15
  %230 = getelementptr inbounds double, ptr %229, i64 0
  %231 = load i64, ptr %26, align 8, !tbaa !9
  %232 = sub nsw i64 %231, 1
  %233 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %232)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %225, i64 noundef 1, ptr noundef %230, i64 noundef 1, i64 noundef %233)
  %234 = load i64, ptr %26, align 8, !tbaa !9
  %235 = load i64, ptr %26, align 8, !tbaa !9
  %236 = load ptr, ptr %20, align 8, !tbaa !5
  %237 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %235, i64 noundef 10, ptr noundef %236)
  %238 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14minlbfgscreateEllPNS_9ae_vectorEPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef %234, i64 noundef %237, ptr noundef %27, ptr noundef %37, ptr noundef %238)
  %239 = load double, ptr %38, align 8, !tbaa !11
  %240 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl15minlbfgssetcondEPNS_13minlbfgsstateEdddlPNS_8ae_stateE(ptr noundef %37, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %239, i64 noundef 0, ptr noundef %240)
  %241 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl15minlbfgssetxrepEPNS_13minlbfgsstateEbPNS_8ae_stateE(ptr noundef %37, i1 noundef zeroext true, ptr noundef %241)
  br label %242

242:                                              ; preds = %362, %206
  %243 = load ptr, ptr %20, align 8, !tbaa !5
  %244 = call noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef %37, ptr noundef %243)
  br i1 %244, label %245, label %363

245:                                              ; preds = %242
  %246 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %37, i32 0, i32 47
  %247 = load i8, ptr %246, align 1, !tbaa !26, !range !24, !noundef !25
  %248 = trunc i8 %247 to i1
  br i1 %248, label %249, label %308

249:                                              ; preds = %245
  %250 = load ptr, ptr %11, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %250, i32 0, i32 6
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %251, i32 0, i32 4
  %253 = load ptr, ptr %252, align 8, !tbaa !15
  %254 = getelementptr inbounds double, ptr %253, i64 0
  %255 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %37, i32 0, i32 43
  %256 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %255, i32 0, i32 4
  %257 = load ptr, ptr %256, align 8, !tbaa !15
  %258 = getelementptr inbounds double, ptr %257, i64 0
  %259 = load i64, ptr %26, align 8, !tbaa !9
  %260 = sub nsw i64 %259, 1
  %261 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %260)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %254, i64 noundef 1, ptr noundef %258, i64 noundef 1, i64 noundef %261)
  %262 = load ptr, ptr %11, align 8, !tbaa !5
  %263 = load ptr, ptr %12, align 8, !tbaa !5
  %264 = load i64, ptr %13, align 8, !tbaa !9
  %265 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %37, i32 0, i32 44
  %266 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %37, i32 0, i32 45
  %267 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlpgradnbatchEPNS_20multilayerperceptronEPNS_9ae_matrixElPdPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %262, ptr noundef %263, i64 noundef %264, ptr noundef %265, ptr noundef %266, ptr noundef %267)
  %268 = load ptr, ptr %11, align 8, !tbaa !5
  %269 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %268, i32 0, i32 6
  %270 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %269, i32 0, i32 4
  %271 = load ptr, ptr %270, align 8, !tbaa !15
  %272 = getelementptr inbounds double, ptr %271, i64 0
  %273 = load ptr, ptr %11, align 8, !tbaa !5
  %274 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %273, i32 0, i32 6
  %275 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %274, i32 0, i32 4
  %276 = load ptr, ptr %275, align 8, !tbaa !15
  %277 = getelementptr inbounds double, ptr %276, i64 0
  %278 = load i64, ptr %26, align 8, !tbaa !9
  %279 = sub nsw i64 %278, 1
  %280 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %279)
  %281 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %272, i64 noundef 1, ptr noundef %277, i64 noundef 1, i64 noundef %280)
  store double %281, ptr %30, align 8, !tbaa !11
  %282 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %37, i32 0, i32 44
  %283 = load double, ptr %282, align 8, !tbaa !40
  %284 = load double, ptr %16, align 8, !tbaa !11
  %285 = fmul double 5.000000e-01, %284
  %286 = load double, ptr %30, align 8, !tbaa !11
  %287 = call double @llvm.fmuladd.f64(double %285, double %286, double %283)
  %288 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %37, i32 0, i32 44
  store double %287, ptr %288, align 8, !tbaa !40
  %289 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %37, i32 0, i32 45
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %289, i32 0, i32 4
  %291 = load ptr, ptr %290, align 8, !tbaa !15
  %292 = getelementptr inbounds double, ptr %291, i64 0
  %293 = load ptr, ptr %11, align 8, !tbaa !5
  %294 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %293, i32 0, i32 6
  %295 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %294, i32 0, i32 4
  %296 = load ptr, ptr %295, align 8, !tbaa !15
  %297 = getelementptr inbounds double, ptr %296, i64 0
  %298 = load i64, ptr %26, align 8, !tbaa !9
  %299 = sub nsw i64 %298, 1
  %300 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %299)
  %301 = load double, ptr %16, align 8, !tbaa !11
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %292, i64 noundef 1, ptr noundef %297, i64 noundef 1, i64 noundef %300, double noundef %301)
  %302 = load ptr, ptr %19, align 8, !tbaa !5
  %303 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %302, i32 0, i32 5
  %304 = load i64, ptr %303, align 8, !tbaa !23
  %305 = add nsw i64 %304, 1
  %306 = load ptr, ptr %19, align 8, !tbaa !5
  %307 = getelementptr inbounds %"struct.alglib_impl::mlpreport", ptr %306, i32 0, i32 5
  store i64 %305, ptr %307, align 8, !tbaa !23
  br label %308

308:                                              ; preds = %249, %245
  %309 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %37, i32 0, i32 48
  %310 = load i8, ptr %309, align 2, !tbaa !41, !range !24, !noundef !25
  %311 = trunc i8 %310 to i1
  br i1 %311, label %312, label %362

312:                                              ; preds = %308
  %313 = load ptr, ptr %11, align 8, !tbaa !5
  %314 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %313, i32 0, i32 6
  %315 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %314, i32 0, i32 4
  %316 = load ptr, ptr %315, align 8, !tbaa !15
  %317 = getelementptr inbounds double, ptr %316, i64 0
  %318 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %37, i32 0, i32 43
  %319 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %318, i32 0, i32 4
  %320 = load ptr, ptr %319, align 8, !tbaa !15
  %321 = getelementptr inbounds double, ptr %320, i64 0
  %322 = load i64, ptr %26, align 8, !tbaa !9
  %323 = sub nsw i64 %322, 1
  %324 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %323)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %317, i64 noundef 1, ptr noundef %321, i64 noundef 1, i64 noundef %324)
  %325 = load ptr, ptr %11, align 8, !tbaa !5
  %326 = load ptr, ptr %14, align 8, !tbaa !5
  %327 = load i64, ptr %15, align 8, !tbaa !9
  %328 = load ptr, ptr %20, align 8, !tbaa !5
  %329 = call noundef double @_ZN11alglib_impl8mlperrorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %325, ptr noundef %326, i64 noundef %327, ptr noundef %328)
  store double %329, ptr %29, align 8, !tbaa !11
  %330 = load double, ptr %29, align 8, !tbaa !11
  %331 = load double, ptr %31, align 8, !tbaa !11
  %332 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %330, double noundef %331)
  br i1 %332, label %333, label %347

333:                                              ; preds = %312
  %334 = load double, ptr %29, align 8, !tbaa !11
  store double %334, ptr %31, align 8, !tbaa !11
  %335 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %336 = load ptr, ptr %335, align 8, !tbaa !15
  %337 = getelementptr inbounds double, ptr %336, i64 0
  %338 = load ptr, ptr %11, align 8, !tbaa !5
  %339 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %338, i32 0, i32 6
  %340 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %339, i32 0, i32 4
  %341 = load ptr, ptr %340, align 8, !tbaa !15
  %342 = getelementptr inbounds double, ptr %341, i64 0
  %343 = load i64, ptr %26, align 8, !tbaa !9
  %344 = sub nsw i64 %343, 1
  %345 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %344)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %337, i64 noundef 1, ptr noundef %342, i64 noundef 1, i64 noundef %345)
  %346 = load i64, ptr %34, align 8, !tbaa !9
  store i64 %346, ptr %35, align 8, !tbaa !9
  br label %347

347:                                              ; preds = %333, %312
  %348 = load i64, ptr %34, align 8, !tbaa !9
  %349 = icmp sgt i64 %348, 30
  br i1 %349, label %350, label %359

350:                                              ; preds = %347
  %351 = load i64, ptr %34, align 8, !tbaa !9
  %352 = sitofp i64 %351 to double
  %353 = load i64, ptr %35, align 8, !tbaa !9
  %354 = sitofp i64 %353 to double
  %355 = fmul double 1.500000e+00, %354
  %356 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %352, double noundef %355)
  br i1 %356, label %357, label %359

357:                                              ; preds = %350
  %358 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 6, ptr %358, align 8, !tbaa !9
  br label %363

359:                                              ; preds = %350, %347
  %360 = load i64, ptr %34, align 8, !tbaa !9
  %361 = add nsw i64 %360, 1
  store i64 %361, ptr %34, align 8, !tbaa !9
  br label %362

362:                                              ; preds = %359, %308
  br label %242, !llvm.loop !42

363:                                              ; preds = %357, %242
  %364 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl15minlbfgsresultsEPNS_13minlbfgsstateEPNS_9ae_vectorEPNS_14minlbfgsreportEPNS_8ae_stateE(ptr noundef %37, ptr noundef %27, ptr noundef %36, ptr noundef %364)
  %365 = load double, ptr %31, align 8, !tbaa !11
  %366 = load double, ptr %33, align 8, !tbaa !11
  %367 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %365, double noundef %366)
  br i1 %367, label %368, label %379

368:                                              ; preds = %363
  %369 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %370 = load ptr, ptr %369, align 8, !tbaa !15
  %371 = getelementptr inbounds double, ptr %370, i64 0
  %372 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %373 = load ptr, ptr %372, align 8, !tbaa !15
  %374 = getelementptr inbounds double, ptr %373, i64 0
  %375 = load i64, ptr %26, align 8, !tbaa !9
  %376 = sub nsw i64 %375, 1
  %377 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %376)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %371, i64 noundef 1, ptr noundef %374, i64 noundef 1, i64 noundef %377)
  %378 = load double, ptr %31, align 8, !tbaa !11
  store double %378, ptr %33, align 8, !tbaa !11
  br label %379

379:                                              ; preds = %368, %363
  br label %380

380:                                              ; preds = %379
  %381 = load i64, ptr %23, align 8, !tbaa !9
  %382 = add nsw i64 %381, 1
  store i64 %382, ptr %23, align 8, !tbaa !9
  br label %196, !llvm.loop !43

383:                                              ; preds = %196
  %384 = load ptr, ptr %11, align 8, !tbaa !5
  %385 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %384, i32 0, i32 6
  %386 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %385, i32 0, i32 4
  %387 = load ptr, ptr %386, align 8, !tbaa !15
  %388 = getelementptr inbounds double, ptr %387, i64 0
  %389 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %390 = load ptr, ptr %389, align 8, !tbaa !15
  %391 = getelementptr inbounds double, ptr %390, i64 0
  %392 = load i64, ptr %26, align 8, !tbaa !9
  %393 = sub nsw i64 %392, 1
  %394 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %393)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %388, i64 noundef 1, ptr noundef %391, i64 noundef 1, i64 noundef %394)
  %395 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %395)
  store i32 0, ptr %40, align 4
  br label %396

396:                                              ; preds = %383, %150, %110, %63
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 6872, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 64, 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
  %397 = load i32, ptr %40, align 4
  switch i32 %397, label %399 [
    i32 0, label %398
    i32 1, label %398
  ]

398:                                              ; preds = %396, %396
  ret void

399:                                              ; preds = %396
  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 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_impl13ae_fp_greaterEdd(double noundef, double 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

; 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

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


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

; 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_impl8mlperrorEPNS_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_impl10mlptrainesEPNS_20multilayerperceptronEPNS_9ae_matrixElS3_ldlPlPNS_9mlpreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr 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::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::minlbfgsreport", align 8
  %19 = 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 64, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 6872, ptr nonnull %19) #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(64) %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %18, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(6872) %19, 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_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 3, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl20_minlbfgsreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %18, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19_minlbfgsstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %19, ptr noundef %9, i1 noundef zeroext true)
  %20 = icmp slt i64 %2, 1
  %21 = icmp slt i64 %4, 1
  %or.cond = or i1 %20, %21
  br i1 %or.cond, label %27, label %22

22:                                               ; preds = %10
  %23 = icmp slt i64 %6, 1
  %24 = icmp ne i64 %6, -1
  %or.cond3 = and i1 %23, %24
  br i1 %or.cond3, label %27, label %25

25:                                               ; preds = %22
  %26 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %5, double noundef 0.000000e+00)
  br i1 %26, label %27, label %28

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

28:                                               ; preds = %25
  %.not128 = icmp eq i64 %6, -1
  %. = select i1 %.not128, i64 1, i64 %6
  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)
  %29 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %9)
  br i1 %29, label %.lr.ph, label %.loopexit131

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

31:                                               ; preds = %43
  %32 = add nuw nsw i64 %.0119135, 1
  %exitcond.not = icmp eq i64 %32, %2
  br i1 %exitcond.not, label %.preheader, label %34, !llvm.loop !9

.preheader:                                       ; preds = %31
  %.not.not126136 = icmp sgt i64 %4, 0
  br i1 %.not.not126136, label %.lr.ph138, label %.loopexit131

.lr.ph138:                                        ; preds = %.preheader
  %33 = getelementptr inbounds i8, ptr %3, i64 72
  br label %55

34:                                               ; preds = %.lr.ph, %31
  %.0119135 = phi i64 [ 0, %.lr.ph ], [ %32, %31 ]
  %35 = load ptr, ptr %30, align 8, !tbaa !11
  %36 = getelementptr inbounds ptr, ptr %35, i64 %.0119135
  %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 %30, align 8, !tbaa !11
  %45 = getelementptr inbounds ptr, ptr %44, i64 %.0119135
  %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
  %.not130 = icmp slt i64 %50, %51
  br i1 %.not130, label %31, label %52

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

53:                                               ; preds = %64
  %54 = add nuw nsw i64 %.1120137, 1
  %exitcond154.not = icmp eq i64 %54, %4
  br i1 %exitcond154.not, label %.loopexit131, label %55, !llvm.loop !16

55:                                               ; preds = %.lr.ph138, %53
  %.1120137 = phi i64 [ 0, %.lr.ph138 ], [ %54, %53 ]
  %56 = load ptr, ptr %33, align 8, !tbaa !11
  %57 = getelementptr inbounds ptr, ptr %56, i64 %.1120137
  %58 = load ptr, ptr %57, align 8, !tbaa !12
  %59 = load i64, ptr %12, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %58, i64 %59
  %61 = load double, ptr %60, align 8, !tbaa !14
  %62 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %61, ptr noundef %9)
  %63 = icmp slt i64 %62, 0
  br i1 %63, label %73, label %64

64:                                               ; preds = %55
  %65 = load ptr, ptr %33, align 8, !tbaa !11
  %66 = getelementptr inbounds ptr, ptr %65, i64 %.1120137
  %67 = load ptr, ptr %66, align 8, !tbaa !12
  %68 = load i64, ptr %12, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %67, i64 %68
  %70 = load double, ptr %69, align 8, !tbaa !14
  %71 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %70, ptr noundef %9)
  %72 = load i64, ptr %13, align 8, !tbaa !5
  %.not129 = icmp slt i64 %71, %72
  br i1 %.not129, label %53, label %73

73:                                               ; preds = %64, %55
  store i64 -2, ptr %7, align 8, !tbaa !5
  br label %192

.loopexit131:                                     ; preds = %53, %.preheader, %28
  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)
  %74 = 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 %74, ptr noundef %9)
  %75 = 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 %75, ptr noundef %9)
  %76 = load i64, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %76, ptr noundef %9)
  %77 = load i64, ptr %14, align 8, !tbaa !5
  %.not.not127139 = icmp sgt i64 %77, 0
  br i1 %.not.not127139, label %.lr.ph141, label %._crit_edge

.lr.ph141:                                        ; preds = %.loopexit131
  %78 = getelementptr inbounds i8, ptr %17, i64 56
  %xtraiter = and i64 %77, 3
  %79 = icmp ult i64 %77, 4
  br i1 %79, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph141.new

.lr.ph141.new:                                    ; preds = %.lr.ph141
  %unroll_iter = and i64 %77, 9223372036854775804
  br label %80

80:                                               ; preds = %80, %.lr.ph141.new
  %.2121140 = phi i64 [ 0, %.lr.ph141.new ], [ %92, %80 ]
  %niter = phi i64 [ 0, %.lr.ph141.new ], [ %niter.next.3, %80 ]
  %81 = load ptr, ptr %78, align 8, !tbaa !11
  %82 = getelementptr inbounds double, ptr %81, i64 %.2121140
  store double 0.000000e+00, ptr %82, align 8, !tbaa !14
  %83 = or disjoint i64 %.2121140, 1
  %84 = load ptr, ptr %78, align 8, !tbaa !11
  %85 = getelementptr inbounds double, ptr %84, i64 %83
  store double 0.000000e+00, ptr %85, align 8, !tbaa !14
  %86 = or disjoint i64 %.2121140, 2
  %87 = load ptr, ptr %78, align 8, !tbaa !11
  %88 = getelementptr inbounds double, ptr %87, i64 %86
  store double 0.000000e+00, ptr %88, align 8, !tbaa !14
  %89 = or disjoint i64 %.2121140, 3
  %90 = load ptr, ptr %78, align 8, !tbaa !11
  %91 = getelementptr inbounds double, ptr %90, i64 %89
  store double 0.000000e+00, ptr %91, align 8, !tbaa !14
  %92 = add nuw nsw i64 %.2121140, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %80, !llvm.loop !17

._crit_edge.loopexit.unr-lcssa:                   ; preds = %80, %.lr.ph141
  %.2121140.unr = phi i64 [ 0, %.lr.ph141 ], [ %92, %80 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.2121140.epil = phi i64 [ %95, %.epil.preheader ], [ %.2121140.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %93 = load ptr, ptr %78, align 8, !tbaa !11
  %94 = getelementptr inbounds double, ptr %93, i64 %.2121140.epil
  store double 0.000000e+00, ptr %94, align 8, !tbaa !14
  %95 = add nuw nsw i64 %.2121140.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !18

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %.loopexit131
  %96 = getelementptr inbounds i8, ptr %8, i64 40
  %.not147 = icmp slt i64 %., 1
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %96, i8 0, i64 24, i1 false)
  br i1 %.not147, label %._crit_edge152, label %.lr.ph151

.lr.ph151:                                        ; preds = %._crit_edge
  %97 = getelementptr inbounds i8, ptr %16, i64 56
  %98 = getelementptr inbounds i8, ptr %0, i64 328
  %99 = getelementptr inbounds i8, ptr %15, i64 56
  %100 = getelementptr inbounds i8, ptr %19, i64 2337
  %101 = getelementptr inbounds i8, ptr %19, i64 2256
  %102 = getelementptr inbounds i8, ptr %19, i64 2264
  %103 = getelementptr inbounds i8, ptr %19, i64 2272
  %104 = fmul double %5, 5.000000e-01
  %105 = getelementptr inbounds i8, ptr %19, i64 2328
  %106 = getelementptr inbounds i8, ptr %19, i64 2338
  %107 = getelementptr inbounds i8, ptr %17, i64 56
  br label %108

108:                                              ; preds = %.lr.ph151, %183
  %.0114149 = phi double [ 1.000000e+300, %.lr.ph151 ], [ %.1115, %183 ]
  %.0122148 = phi i64 [ 1, %.lr.ph151 ], [ %184, %183 ]
  br i1 %.not128, label %110, label %109

109:                                              ; preds = %108
  call void @_ZN11alglib_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %9)
  br label %110

110:                                              ; preds = %109, %108
  %111 = call noundef double @_ZN11alglib_impl8mlperrorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %3, i64 noundef %4, ptr noundef %9)
  %112 = load ptr, ptr %97, align 8, !tbaa !11
  %113 = load ptr, ptr %98, align 8, !tbaa !11
  %114 = load i64, ptr %14, align 8, !tbaa !5
  %115 = add nsw i64 %114, -1
  %116 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %115)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %112, i64 noundef 1, ptr noundef %113, i64 noundef 1, i64 noundef %116)
  %117 = load ptr, ptr %99, align 8, !tbaa !11
  %118 = load ptr, ptr %98, align 8, !tbaa !11
  %119 = load i64, ptr %14, align 8, !tbaa !5
  %120 = add nsw i64 %119, -1
  %121 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %120)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %117, i64 noundef 1, ptr noundef %118, i64 noundef 1, i64 noundef %121)
  %122 = load i64, ptr %14, align 8, !tbaa !5
  %123 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %122, i64 noundef 10, ptr noundef %9)
  call void @_ZN11alglib_impl14minlbfgscreateEllPNS_9ae_vectorEPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef %122, i64 noundef %123, ptr noundef nonnull %15, ptr noundef nonnull %19, ptr noundef %9)
  call void @_ZN11alglib_impl15minlbfgssetcondEPNS_13minlbfgsstateEdddlPNS_8ae_stateE(ptr noundef nonnull %19, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e-03, i64 noundef 0, ptr noundef %9)
  call void @_ZN11alglib_impl15minlbfgssetxrepEPNS_13minlbfgsstateEbPNS_8ae_stateE(ptr noundef nonnull %19, i1 noundef zeroext true, ptr noundef %9)
  %124 = call noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef nonnull %19, ptr noundef %9)
  br i1 %124, label %.lr.ph146, label %.loopexit

.lr.ph146:                                        ; preds = %110, %174
  %.0111144 = phi i64 [ %.2, %174 ], [ 0, %110 ]
  %.0112143 = phi i64 [ %.1113, %174 ], [ 0, %110 ]
  %.0116142 = phi double [ %.2118, %174 ], [ %111, %110 ]
  %125 = load i8, ptr %100, align 1, !tbaa !20, !range !35, !noundef !36
  %126 = trunc nuw i8 %125 to i1
  br i1 %126, label %127, label %147

127:                                              ; preds = %.lr.ph146
  %128 = load ptr, ptr %98, align 8, !tbaa !11
  %129 = load ptr, ptr %101, align 8, !tbaa !11
  %130 = load i64, ptr %14, align 8, !tbaa !5
  %131 = add nsw i64 %130, -1
  %132 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %131)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %128, i64 noundef 1, ptr noundef %129, i64 noundef 1, i64 noundef %132)
  call void @_ZN11alglib_impl13mlpgradnbatchEPNS_20multilayerperceptronEPNS_9ae_matrixElPdPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef nonnull %102, ptr noundef nonnull %103, ptr noundef %9)
  %133 = load ptr, ptr %98, align 8, !tbaa !11
  %134 = load i64, ptr %14, align 8, !tbaa !5
  %135 = add nsw i64 %134, -1
  %136 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %135)
  %137 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %133, i64 noundef 1, ptr noundef %133, i64 noundef 1, i64 noundef %136)
  %138 = load double, ptr %102, align 8, !tbaa !37
  %139 = call double @llvm.fmuladd.f64(double %104, double %137, double %138)
  store double %139, ptr %102, align 8, !tbaa !37
  %140 = load ptr, ptr %105, align 8, !tbaa !11
  %141 = load ptr, ptr %98, align 8, !tbaa !11
  %142 = load i64, ptr %14, align 8, !tbaa !5
  %143 = add nsw i64 %142, -1
  %144 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %143)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %140, i64 noundef 1, ptr noundef %141, i64 noundef 1, i64 noundef %144, double noundef %5)
  %145 = load i64, ptr %96, align 8, !tbaa !38
  %146 = add nsw i64 %145, 1
  store i64 %146, ptr %96, align 8, !tbaa !38
  br label %147

147:                                              ; preds = %127, %.lr.ph146
  %148 = load i8, ptr %106, align 2, !tbaa !40, !range !35, !noundef !36
  %149 = trunc nuw i8 %148 to i1
  br i1 %149, label %150, label %174

150:                                              ; preds = %147
  %151 = load ptr, ptr %98, align 8, !tbaa !11
  %152 = load ptr, ptr %101, align 8, !tbaa !11
  %153 = load i64, ptr %14, align 8, !tbaa !5
  %154 = add nsw i64 %153, -1
  %155 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %154)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %151, i64 noundef 1, ptr noundef %152, i64 noundef 1, i64 noundef %155)
  %156 = call noundef double @_ZN11alglib_impl8mlperrorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %3, i64 noundef %4, ptr noundef %9)
  %157 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %156, double noundef %.0116142)
  br i1 %157, label %158, label %164

158:                                              ; preds = %150
  %159 = load ptr, ptr %97, align 8, !tbaa !11
  %160 = load ptr, ptr %98, align 8, !tbaa !11
  %161 = load i64, ptr %14, align 8, !tbaa !5
  %162 = add nsw i64 %161, -1
  %163 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %162)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %159, i64 noundef 1, ptr noundef %160, i64 noundef 1, i64 noundef %163)
  br label %164

164:                                              ; preds = %158, %150
  %.1117 = phi double [ %156, %158 ], [ %.0116142, %150 ]
  %.1 = phi i64 [ %.0112143, %158 ], [ %.0111144, %150 ]
  %165 = icmp sgt i64 %.0112143, 30
  br i1 %165, label %166, label %172

166:                                              ; preds = %164
  %167 = uitofp nneg i64 %.0112143 to double
  %168 = sitofp i64 %.1 to double
  %169 = fmul double %168, 1.500000e+00
  %170 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %167, double noundef %169)
  br i1 %170, label %171, label %172

171:                                              ; preds = %166
  store i64 6, ptr %7, align 8, !tbaa !5
  br label %.loopexit

172:                                              ; preds = %166, %164
  %173 = add nsw i64 %.0112143, 1
  br label %174

174:                                              ; preds = %172, %147
  %.2118 = phi double [ %.1117, %172 ], [ %.0116142, %147 ]
  %.1113 = phi i64 [ %173, %172 ], [ %.0112143, %147 ]
  %.2 = phi i64 [ %.1, %172 ], [ %.0111144, %147 ]
  %175 = call noundef zeroext i1 @_ZN11alglib_impl17minlbfgsiterationEPNS_13minlbfgsstateEPNS_8ae_stateE(ptr noundef nonnull %19, ptr noundef %9)
  br i1 %175, label %.lr.ph146, label %.loopexit, !llvm.loop !41

.loopexit:                                        ; preds = %174, %110, %171
  %.3 = phi double [ %.1117, %171 ], [ %111, %110 ], [ %.2118, %174 ]
  call void @_ZN11alglib_impl15minlbfgsresultsEPNS_13minlbfgsstateEPNS_9ae_vectorEPNS_14minlbfgsreportEPNS_8ae_stateE(ptr noundef nonnull %19, ptr noundef nonnull %15, ptr noundef nonnull %18, ptr noundef %9)
  %176 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %.3, double noundef %.0114149)
  br i1 %176, label %177, label %183

177:                                              ; preds = %.loopexit
  %178 = load ptr, ptr %107, align 8, !tbaa !11
  %179 = load ptr, ptr %97, align 8, !tbaa !11
  %180 = load i64, ptr %14, align 8, !tbaa !5
  %181 = add nsw i64 %180, -1
  %182 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %181)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %178, i64 noundef 1, ptr noundef %179, i64 noundef 1, i64 noundef %182)
  br label %183

183:                                              ; preds = %.loopexit, %177
  %.1115 = phi double [ %.3, %177 ], [ %.0114149, %.loopexit ]
  %184 = add nuw i64 %.0122148, 1
  %exitcond156.not = icmp eq i64 %.0122148, %.
  br i1 %exitcond156.not, label %._crit_edge152.loopexit, label %108, !llvm.loop !42

._crit_edge152.loopexit:                          ; preds = %183
  %.pre = load i64, ptr %14, align 8, !tbaa !5
  br label %._crit_edge152

._crit_edge152:                                   ; preds = %._crit_edge152.loopexit, %._crit_edge
  %185 = phi i64 [ %.pre, %._crit_edge152.loopexit ], [ %77, %._crit_edge ]
  %186 = getelementptr inbounds i8, ptr %0, i64 328
  %187 = load ptr, ptr %186, align 8, !tbaa !11
  %188 = getelementptr inbounds i8, ptr %17, i64 56
  %189 = load ptr, ptr %188, align 8, !tbaa !11
  %190 = add nsw i64 %185, -1
  %191 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %190)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %187, i64 noundef 1, ptr noundef %189, i64 noundef 1, i64 noundef %191)
  br label %192

192:                                              ; preds = %._crit_edge152, %73, %52, %27
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %9)
  call void @llvm.lifetime.end.p0(i64 6872, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 64, 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 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_impl13ae_fp_greaterEdd(double noundef, double 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

; 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

declare void @_ZN11alglib_impl15minlbfgssetxrepEPNS_13minlbfgsstateEbPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, 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 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = !{!21, !22, i64 2337}
!21 = !{!"_ZTSN11alglib_impl13minlbfgsstateE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !6, i64 40, !22, i64 48, !15, i64 56, !23, i64 64, !15, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !23, i64 176, !25, i64 240, !25, i64 320, !23, i64 400, !23, i64 464, !23, i64 528, !15, i64 592, !23, i64 600, !15, i64 664, !15, i64 672, !23, i64 680, !6, i64 744, !15, i64 752, !25, i64 760, !23, i64 840, !23, i64 904, !23, i64 968, !25, i64 1032, !6, i64 1112, !26, i64 1120, !27, i64 1584, !15, i64 2032, !15, i64 2040, !15, i64 2048, !15, i64 2056, !15, i64 2064, !23, i64 2072, !23, i64 2136, !23, i64 2200, !15, i64 2264, !23, i64 2272, !22, i64 2336, !22, i64 2337, !22, i64 2338, !22, i64 2339, !15, i64 2344, !28, i64 2352, !6, i64 2616, !6, i64 2624, !6, i64 2632, !30, i64 2640, !6, i64 2832, !31, i64 2840, !23, i64 6808}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTSN11alglib_impl9ae_vectorE", !6, i64 0, !6, i64 8, !22, i64 16, !24, i64 24, !7, i64 56}
!24 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!25 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, 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", !6, i64 0, !6, 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, !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}
!31 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !6, i64 0, !6, i64 8, !22, i64 16, !23, i64 24, !6, i64 88, !23, i64 96, !23, i64 160, !23, i64 224, !25, i64 288, !23, i64 368, !23, i64 432, !6, i64 496, !22, i64 504, !22, i64 505, !15, i64 512, !15, i64 520, !22, i64 528, !32, i64 536, !15, i64 832, !15, i64 840, !33, i64 848, !33, i64 1152, !15, i64 1456, !15, 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, !6, i64 8, !15, i64 16, !22, i64 24, !22, i64 25, !22, i64 26, !6, i64 32, !15, i64 40, !22, i64 48, !6, i64 56, !6, i64 64, !23, i64 72, !25, i64 136, !25, i64 216}
!33 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !22, i64 0, !6, i64 8, !23, i64 16, !23, i64 80, !6, i64 144, !23, i64 152, !23, i64 216, !6, i64 280, !6, i64 288, !6, i64 296}
!34 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !22, i64 0, !6, i64 8, !6, i64 16, !23, i64 24, !23, i64 88, !6, i64 152, !23, i64 160, !23, i64 224, !6, i64 288, !6, i64 296, !6, i64 304}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!21, !15, i64 2264}
!38 = !{!39, !6, i64 40}
!39 = !{!"_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}
!40 = !{!21, !22, i64 2338}
!41 = distinct !{!41, !10}
!42 = distinct !{!42, !10}


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