; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (dataanalysis)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::multilayerperceptron" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::modelerrors", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool" }
%"struct.alglib_impl::modelerrors" = type { double, double, double, double, double }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_shared_pool" = type { %"struct.alglib_impl::ae_lock", ptr, ptr, ptr, ptr, i64, ptr, ptr, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }

@_ZN11alglib_implL19mlpbase_nfieldwidthE = external hidden global i64, align 8
@.str.108 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [72 x i8], align 1

; 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

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, 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) #3

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl25mlpinitpreprocessorsubsetEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.alglib_impl::ae_frame", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca double, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i64 %4, ptr %11, align 8, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %29, ptr noundef %13)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 64, i1 false)
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 3, ptr noundef %30, i1 noundef zeroext true)
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 3, ptr noundef %31, i1 noundef zeroext true)
  %32 = load i64, ptr %9, align 8, !tbaa !9
  %33 = icmp sge i64 %32, 0
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %33, ptr noundef @.str.108, ptr noundef %34)
  %35 = load i64, ptr %11, align 8, !tbaa !9
  %36 = icmp slt i64 %35, 0
  br i1 %36, label %37, label %43

37:                                               ; preds = %6
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = load i64, ptr %9, align 8, !tbaa !9
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl19mlpinitpreprocessorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %38, ptr noundef %39, i64 noundef %40, ptr noundef %41)
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %42)
  store i32 1, ptr %28, align 4
  br label %486

43:                                               ; preds = %6
  %44 = load i64, ptr %11, align 8, !tbaa !9
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 0
  %47 = load i64, ptr %46, align 8, !tbaa !11
  %48 = icmp sle i64 %44, %47
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.109, ptr noundef %49)
  %50 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %50, ptr %25, align 8, !tbaa !9
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %75, %43
  %52 = load i64, ptr %26, align 8, !tbaa !9
  %53 = load i64, ptr %11, align 8, !tbaa !9
  %54 = sub nsw i64 %53, 1
  %55 = icmp sle i64 %52, %54
  br i1 %55, label %56, label %78

56:                                               ; preds = %51
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %57, i32 0, i32 4
  %59 = load ptr, ptr %58, align 8, !tbaa !15
  %60 = load i64, ptr %26, align 8, !tbaa !9
  %61 = getelementptr inbounds i64, ptr %59, i64 %60
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = icmp sge i64 %62, 0
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %63, ptr noundef @.str.110, ptr noundef %64)
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %65, i32 0, i32 4
  %67 = load ptr, ptr %66, align 8, !tbaa !15
  %68 = load i64, ptr %26, align 8, !tbaa !9
  %69 = getelementptr inbounds i64, ptr %67, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !9
  %71 = load i64, ptr %25, align 8, !tbaa !9
  %72 = sub nsw i64 %71, 1
  %73 = icmp sle i64 %70, %72
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %73, ptr noundef @.str.111, ptr noundef %74)
  br label %75

75:                                               ; preds = %56
  %76 = load i64, ptr %26, align 8, !tbaa !9
  %77 = add nsw i64 %76, 1
  store i64 %77, ptr %26, align 8, !tbaa !9
  br label %51, !llvm.loop !16

78:                                               ; preds = %51
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %79, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %80)
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %81, i32 0, i32 5
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  %85 = getelementptr inbounds i64, ptr %84, i64 3
  %86 = load i64, ptr %85, align 8, !tbaa !9
  store i64 %86, ptr %18, align 8, !tbaa !9
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %87, i32 0, i32 5
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !15
  %91 = getelementptr inbounds i64, ptr %90, i64 5
  %92 = load i64, ptr %91, align 8, !tbaa !9
  store i64 %92, ptr %19, align 8, !tbaa !9
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %93, ptr noundef %94)
  br i1 %95, label %96, label %99

96:                                               ; preds = %78
  %97 = load i64, ptr %15, align 8, !tbaa !9
  %98 = sub nsw i64 %97, 1
  store i64 %98, ptr %14, align 8, !tbaa !9
  br label %104

99:                                               ; preds = %78
  %100 = load i64, ptr %15, align 8, !tbaa !9
  %101 = load i64, ptr %16, align 8, !tbaa !9
  %102 = add nsw i64 %100, %101
  %103 = sub nsw i64 %102, 1
  store i64 %103, ptr %14, align 8, !tbaa !9
  br label %104

104:                                              ; preds = %99, %96
  %105 = load i64, ptr %14, align 8, !tbaa !9
  %106 = add nsw i64 %105, 1
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %106, ptr noundef %107)
  %108 = load i64, ptr %14, align 8, !tbaa !9
  %109 = add nsw i64 %108, 1
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %23, i64 noundef %109, ptr noundef %110)
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %111

111:                                              ; preds = %124, %104
  %112 = load i64, ptr %26, align 8, !tbaa !9
  %113 = load i64, ptr %14, align 8, !tbaa !9
  %114 = icmp sle i64 %112, %113
  br i1 %114, label %115, label %127

115:                                              ; preds = %111
  %116 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %117 = load ptr, ptr %116, align 8, !tbaa !15
  %118 = load i64, ptr %26, align 8, !tbaa !9
  %119 = getelementptr inbounds double, ptr %117, i64 %118
  store double 0.000000e+00, ptr %119, align 8, !tbaa !18
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %121 = load ptr, ptr %120, align 8, !tbaa !15
  %122 = load i64, ptr %26, align 8, !tbaa !9
  %123 = getelementptr inbounds double, ptr %121, i64 %122
  store double 0.000000e+00, ptr %123, align 8, !tbaa !18
  br label %124

124:                                              ; preds = %115
  %125 = load i64, ptr %26, align 8, !tbaa !9
  %126 = add nsw i64 %125, 1
  store i64 %126, ptr %26, align 8, !tbaa !9
  br label %111, !llvm.loop !20

127:                                              ; preds = %111
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %128

128:                                              ; preds = %167, %127
  %129 = load i64, ptr %26, align 8, !tbaa !9
  %130 = load i64, ptr %11, align 8, !tbaa !9
  %131 = sub nsw i64 %130, 1
  %132 = icmp sle i64 %129, %131
  br i1 %132, label %133, label %170

133:                                              ; preds = %128
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %134

134:                                              ; preds = %163, %133
  %135 = load i64, ptr %27, align 8, !tbaa !9
  %136 = load i64, ptr %14, align 8, !tbaa !9
  %137 = icmp sle i64 %135, %136
  br i1 %137, label %138, label %166

138:                                              ; preds = %134
  %139 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %140 = load ptr, ptr %139, align 8, !tbaa !15
  %141 = load i64, ptr %27, align 8, !tbaa !9
  %142 = getelementptr inbounds double, ptr %140, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !18
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %144, i32 0, i32 6
  %146 = load ptr, ptr %145, align 8, !tbaa !15
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %147, i32 0, i32 4
  %149 = load ptr, ptr %148, align 8, !tbaa !15
  %150 = load i64, ptr %26, align 8, !tbaa !9
  %151 = getelementptr inbounds i64, ptr %149, i64 %150
  %152 = load i64, ptr %151, align 8, !tbaa !9
  %153 = getelementptr inbounds ptr, ptr %146, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = load i64, ptr %27, align 8, !tbaa !9
  %156 = getelementptr inbounds double, ptr %154, i64 %155
  %157 = load double, ptr %156, align 8, !tbaa !18
  %158 = fadd double %143, %157
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !15
  %161 = load i64, ptr %27, align 8, !tbaa !9
  %162 = getelementptr inbounds double, ptr %160, i64 %161
  store double %158, ptr %162, align 8, !tbaa !18
  br label %163

163:                                              ; preds = %138
  %164 = load i64, ptr %27, align 8, !tbaa !9
  %165 = add nsw i64 %164, 1
  store i64 %165, ptr %27, align 8, !tbaa !9
  br label %134, !llvm.loop !21

166:                                              ; preds = %134
  br label %167

167:                                              ; preds = %166
  %168 = load i64, ptr %26, align 8, !tbaa !9
  %169 = add nsw i64 %168, 1
  store i64 %169, ptr %26, align 8, !tbaa !9
  br label %128, !llvm.loop !22

170:                                              ; preds = %128
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %171

171:                                              ; preds = %188, %170
  %172 = load i64, ptr %26, align 8, !tbaa !9
  %173 = load i64, ptr %14, align 8, !tbaa !9
  %174 = icmp sle i64 %172, %173
  br i1 %174, label %175, label %191

175:                                              ; preds = %171
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %177 = load ptr, ptr %176, align 8, !tbaa !15
  %178 = load i64, ptr %26, align 8, !tbaa !9
  %179 = getelementptr inbounds double, ptr %177, i64 %178
  %180 = load double, ptr %179, align 8, !tbaa !18
  %181 = load i64, ptr %11, align 8, !tbaa !9
  %182 = sitofp i64 %181 to double
  %183 = fdiv double %180, %182
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %185 = load ptr, ptr %184, align 8, !tbaa !15
  %186 = load i64, ptr %26, align 8, !tbaa !9
  %187 = getelementptr inbounds double, ptr %185, i64 %186
  store double %183, ptr %187, align 8, !tbaa !18
  br label %188

188:                                              ; preds = %175
  %189 = load i64, ptr %26, align 8, !tbaa !9
  %190 = add nsw i64 %189, 1
  store i64 %190, ptr %26, align 8, !tbaa !9
  br label %171, !llvm.loop !23

191:                                              ; preds = %171
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %192

192:                                              ; preds = %239, %191
  %193 = load i64, ptr %26, align 8, !tbaa !9
  %194 = load i64, ptr %11, align 8, !tbaa !9
  %195 = sub nsw i64 %194, 1
  %196 = icmp sle i64 %193, %195
  br i1 %196, label %197, label %242

197:                                              ; preds = %192
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %198

198:                                              ; preds = %235, %197
  %199 = load i64, ptr %27, align 8, !tbaa !9
  %200 = load i64, ptr %14, align 8, !tbaa !9
  %201 = icmp sle i64 %199, %200
  br i1 %201, label %202, label %238

202:                                              ; preds = %198
  %203 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %204 = load ptr, ptr %203, align 8, !tbaa !15
  %205 = load i64, ptr %27, align 8, !tbaa !9
  %206 = getelementptr inbounds double, ptr %204, i64 %205
  %207 = load double, ptr %206, align 8, !tbaa !18
  %208 = load ptr, ptr %8, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %208, i32 0, i32 6
  %210 = load ptr, ptr %209, align 8, !tbaa !15
  %211 = load ptr, ptr %10, align 8, !tbaa !5
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %211, i32 0, i32 4
  %213 = load ptr, ptr %212, align 8, !tbaa !15
  %214 = load i64, ptr %26, align 8, !tbaa !9
  %215 = getelementptr inbounds i64, ptr %213, i64 %214
  %216 = load i64, ptr %215, align 8, !tbaa !9
  %217 = getelementptr inbounds ptr, ptr %210, i64 %216
  %218 = load ptr, ptr %217, align 8, !tbaa !5
  %219 = load i64, ptr %27, align 8, !tbaa !9
  %220 = getelementptr inbounds double, ptr %218, i64 %219
  %221 = load double, ptr %220, align 8, !tbaa !18
  %222 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %223 = load ptr, ptr %222, align 8, !tbaa !15
  %224 = load i64, ptr %27, align 8, !tbaa !9
  %225 = getelementptr inbounds double, ptr %223, i64 %224
  %226 = load double, ptr %225, align 8, !tbaa !18
  %227 = fsub double %221, %226
  %228 = load ptr, ptr %12, align 8, !tbaa !5
  %229 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %227, ptr noundef %228)
  %230 = fadd double %207, %229
  %231 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %232 = load ptr, ptr %231, align 8, !tbaa !15
  %233 = load i64, ptr %27, align 8, !tbaa !9
  %234 = getelementptr inbounds double, ptr %232, i64 %233
  store double %230, ptr %234, align 8, !tbaa !18
  br label %235

235:                                              ; preds = %202
  %236 = load i64, ptr %27, align 8, !tbaa !9
  %237 = add nsw i64 %236, 1
  store i64 %237, ptr %27, align 8, !tbaa !9
  br label %198, !llvm.loop !24

238:                                              ; preds = %198
  br label %239

239:                                              ; preds = %238
  %240 = load i64, ptr %26, align 8, !tbaa !9
  %241 = add nsw i64 %240, 1
  store i64 %241, ptr %26, align 8, !tbaa !9
  br label %192, !llvm.loop !25

242:                                              ; preds = %192
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %243

243:                                              ; preds = %262, %242
  %244 = load i64, ptr %26, align 8, !tbaa !9
  %245 = load i64, ptr %14, align 8, !tbaa !9
  %246 = icmp sle i64 %244, %245
  br i1 %246, label %247, label %265

247:                                              ; preds = %243
  %248 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %249 = load ptr, ptr %248, align 8, !tbaa !15
  %250 = load i64, ptr %26, align 8, !tbaa !9
  %251 = getelementptr inbounds double, ptr %249, i64 %250
  %252 = load double, ptr %251, align 8, !tbaa !18
  %253 = load i64, ptr %11, align 8, !tbaa !9
  %254 = sitofp i64 %253 to double
  %255 = fdiv double %252, %254
  %256 = load ptr, ptr %12, align 8, !tbaa !5
  %257 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %255, ptr noundef %256)
  %258 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %259 = load ptr, ptr %258, align 8, !tbaa !15
  %260 = load i64, ptr %26, align 8, !tbaa !9
  %261 = getelementptr inbounds double, ptr %259, i64 %260
  store double %257, ptr %261, align 8, !tbaa !18
  br label %262

262:                                              ; preds = %247
  %263 = load i64, ptr %26, align 8, !tbaa !9
  %264 = add nsw i64 %263, 1
  store i64 %264, ptr %26, align 8, !tbaa !9
  br label %243, !llvm.loop !26

265:                                              ; preds = %243
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %266

266:                                              ; preds = %310, %265
  %267 = load i64, ptr %26, align 8, !tbaa !9
  %268 = load i64, ptr %15, align 8, !tbaa !9
  %269 = sub nsw i64 %268, 1
  %270 = icmp sle i64 %267, %269
  br i1 %270, label %271, label %313

271:                                              ; preds = %266
  %272 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %273 = load ptr, ptr %272, align 8, !tbaa !15
  %274 = load i64, ptr %26, align 8, !tbaa !9
  %275 = getelementptr inbounds double, ptr %273, i64 %274
  %276 = load double, ptr %275, align 8, !tbaa !18
  %277 = load ptr, ptr %7, align 8, !tbaa !5
  %278 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %277, i32 0, i32 7
  %279 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %278, i32 0, i32 4
  %280 = load ptr, ptr %279, align 8, !tbaa !15
  %281 = load i64, ptr %26, align 8, !tbaa !9
  %282 = getelementptr inbounds double, ptr %280, i64 %281
  store double %276, ptr %282, align 8, !tbaa !18
  %283 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %284 = load ptr, ptr %283, align 8, !tbaa !15
  %285 = load i64, ptr %26, align 8, !tbaa !9
  %286 = getelementptr inbounds double, ptr %284, i64 %285
  %287 = load double, ptr %286, align 8, !tbaa !18
  %288 = load ptr, ptr %7, align 8, !tbaa !5
  %289 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %288, i32 0, i32 8
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %289, i32 0, i32 4
  %291 = load ptr, ptr %290, align 8, !tbaa !15
  %292 = load i64, ptr %26, align 8, !tbaa !9
  %293 = getelementptr inbounds double, ptr %291, i64 %292
  store double %287, ptr %293, align 8, !tbaa !18
  %294 = load ptr, ptr %7, align 8, !tbaa !5
  %295 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %294, i32 0, i32 8
  %296 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %295, i32 0, i32 4
  %297 = load ptr, ptr %296, align 8, !tbaa !15
  %298 = load i64, ptr %26, align 8, !tbaa !9
  %299 = getelementptr inbounds double, ptr %297, i64 %298
  %300 = load double, ptr %299, align 8, !tbaa !18
  %301 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %300, double noundef 0.000000e+00)
  br i1 %301, label %302, label %309

302:                                              ; preds = %271
  %303 = load ptr, ptr %7, align 8, !tbaa !5
  %304 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %303, i32 0, i32 8
  %305 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %304, i32 0, i32 4
  %306 = load ptr, ptr %305, align 8, !tbaa !15
  %307 = load i64, ptr %26, align 8, !tbaa !9
  %308 = getelementptr inbounds double, ptr %306, i64 %307
  store double 1.000000e+00, ptr %308, align 8, !tbaa !18
  br label %309

309:                                              ; preds = %302, %271
  br label %310

310:                                              ; preds = %309
  %311 = load i64, ptr %26, align 8, !tbaa !9
  %312 = add nsw i64 %311, 1
  store i64 %312, ptr %26, align 8, !tbaa !9
  br label %266, !llvm.loop !27

313:                                              ; preds = %266
  %314 = load ptr, ptr %7, align 8, !tbaa !5
  %315 = load ptr, ptr %12, align 8, !tbaa !5
  %316 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %314, ptr noundef %315)
  br i1 %316, label %484, label %317

317:                                              ; preds = %313
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %318

318:                                              ; preds = %480, %317
  %319 = load i64, ptr %26, align 8, !tbaa !9
  %320 = load i64, ptr %16, align 8, !tbaa !9
  %321 = sub nsw i64 %320, 1
  %322 = icmp sle i64 %319, %321
  br i1 %322, label %323, label %483

323:                                              ; preds = %318
  %324 = load i64, ptr %19, align 8, !tbaa !9
  %325 = load i64, ptr %18, align 8, !tbaa !9
  %326 = load i64, ptr %16, align 8, !tbaa !9
  %327 = sub nsw i64 %325, %326
  %328 = load i64, ptr %26, align 8, !tbaa !9
  %329 = add nsw i64 %327, %328
  %330 = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !9
  %331 = mul nsw i64 %329, %330
  %332 = add nsw i64 %324, %331
  store i64 %332, ptr %20, align 8, !tbaa !9
  %333 = load ptr, ptr %7, align 8, !tbaa !5
  %334 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %333, i32 0, i32 5
  %335 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %334, i32 0, i32 4
  %336 = load ptr, ptr %335, align 8, !tbaa !15
  %337 = load i64, ptr %20, align 8, !tbaa !9
  %338 = add nsw i64 %337, 0
  %339 = getelementptr inbounds i64, ptr %336, i64 %338
  %340 = load i64, ptr %339, align 8, !tbaa !9
  store i64 %340, ptr %21, align 8, !tbaa !9
  %341 = load i64, ptr %21, align 8, !tbaa !9
  %342 = icmp eq i64 %341, 0
  br i1 %342, label %343, label %394

343:                                              ; preds = %323
  %344 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %345 = load ptr, ptr %344, align 8, !tbaa !15
  %346 = load i64, ptr %15, align 8, !tbaa !9
  %347 = load i64, ptr %26, align 8, !tbaa !9
  %348 = add nsw i64 %346, %347
  %349 = getelementptr inbounds double, ptr %345, i64 %348
  %350 = load double, ptr %349, align 8, !tbaa !18
  %351 = load ptr, ptr %7, align 8, !tbaa !5
  %352 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %351, i32 0, i32 7
  %353 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %352, i32 0, i32 4
  %354 = load ptr, ptr %353, align 8, !tbaa !15
  %355 = load i64, ptr %15, align 8, !tbaa !9
  %356 = load i64, ptr %26, align 8, !tbaa !9
  %357 = add nsw i64 %355, %356
  %358 = getelementptr inbounds double, ptr %354, i64 %357
  store double %350, ptr %358, align 8, !tbaa !18
  %359 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %360 = load ptr, ptr %359, align 8, !tbaa !15
  %361 = load i64, ptr %15, align 8, !tbaa !9
  %362 = load i64, ptr %26, align 8, !tbaa !9
  %363 = add nsw i64 %361, %362
  %364 = getelementptr inbounds double, ptr %360, i64 %363
  %365 = load double, ptr %364, align 8, !tbaa !18
  %366 = load ptr, ptr %7, align 8, !tbaa !5
  %367 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %366, i32 0, i32 8
  %368 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %367, i32 0, i32 4
  %369 = load ptr, ptr %368, align 8, !tbaa !15
  %370 = load i64, ptr %15, align 8, !tbaa !9
  %371 = load i64, ptr %26, align 8, !tbaa !9
  %372 = add nsw i64 %370, %371
  %373 = getelementptr inbounds double, ptr %369, i64 %372
  store double %365, ptr %373, align 8, !tbaa !18
  %374 = load ptr, ptr %7, align 8, !tbaa !5
  %375 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %374, i32 0, i32 8
  %376 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %375, i32 0, i32 4
  %377 = load ptr, ptr %376, align 8, !tbaa !15
  %378 = load i64, ptr %15, align 8, !tbaa !9
  %379 = load i64, ptr %26, align 8, !tbaa !9
  %380 = add nsw i64 %378, %379
  %381 = getelementptr inbounds double, ptr %377, i64 %380
  %382 = load double, ptr %381, align 8, !tbaa !18
  %383 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %382, double noundef 0.000000e+00)
  br i1 %383, label %384, label %393

384:                                              ; preds = %343
  %385 = load ptr, ptr %7, align 8, !tbaa !5
  %386 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %385, i32 0, i32 8
  %387 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %386, i32 0, i32 4
  %388 = load ptr, ptr %387, align 8, !tbaa !15
  %389 = load i64, ptr %15, align 8, !tbaa !9
  %390 = load i64, ptr %26, align 8, !tbaa !9
  %391 = add nsw i64 %389, %390
  %392 = getelementptr inbounds double, ptr %388, i64 %391
  store double 1.000000e+00, ptr %392, align 8, !tbaa !18
  br label %393

393:                                              ; preds = %384, %343
  br label %394

394:                                              ; preds = %393, %323
  %395 = load i64, ptr %21, align 8, !tbaa !9
  %396 = icmp eq i64 %395, 3
  br i1 %396, label %397, label %479

397:                                              ; preds = %394
  %398 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %399 = load ptr, ptr %398, align 8, !tbaa !15
  %400 = load i64, ptr %15, align 8, !tbaa !9
  %401 = load i64, ptr %26, align 8, !tbaa !9
  %402 = add nsw i64 %400, %401
  %403 = getelementptr inbounds double, ptr %399, i64 %402
  %404 = load double, ptr %403, align 8, !tbaa !18
  %405 = load ptr, ptr %7, align 8, !tbaa !5
  %406 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %405, i32 0, i32 7
  %407 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %406, i32 0, i32 4
  %408 = load ptr, ptr %407, align 8, !tbaa !15
  %409 = load i64, ptr %15, align 8, !tbaa !9
  %410 = load i64, ptr %26, align 8, !tbaa !9
  %411 = add nsw i64 %409, %410
  %412 = getelementptr inbounds double, ptr %408, i64 %411
  %413 = load double, ptr %412, align 8, !tbaa !18
  %414 = fsub double %404, %413
  store double %414, ptr %24, align 8, !tbaa !18
  %415 = load double, ptr %24, align 8, !tbaa !18
  %416 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %415, double noundef 0.000000e+00)
  br i1 %416, label %417, label %430

417:                                              ; preds = %397
  %418 = load ptr, ptr %7, align 8, !tbaa !5
  %419 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %418, i32 0, i32 8
  %420 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %419, i32 0, i32 4
  %421 = load ptr, ptr %420, align 8, !tbaa !15
  %422 = load i64, ptr %15, align 8, !tbaa !9
  %423 = load i64, ptr %26, align 8, !tbaa !9
  %424 = add nsw i64 %422, %423
  %425 = getelementptr inbounds double, ptr %421, i64 %424
  %426 = load double, ptr %425, align 8, !tbaa !18
  %427 = load ptr, ptr %12, align 8, !tbaa !5
  %428 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %426, ptr noundef %427)
  %429 = sitofp i64 %428 to double
  store double %429, ptr %24, align 8, !tbaa !18
  br label %430

430:                                              ; preds = %417, %397
  %431 = load double, ptr %24, align 8, !tbaa !18
  %432 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %431, double noundef 0.000000e+00)
  br i1 %432, label %433, label %434

433:                                              ; preds = %430
  store double 1.000000e+00, ptr %24, align 8, !tbaa !18
  br label %434

434:                                              ; preds = %433, %430
  %435 = load ptr, ptr %7, align 8, !tbaa !5
  %436 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %435, i32 0, i32 8
  %437 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %436, i32 0, i32 4
  %438 = load ptr, ptr %437, align 8, !tbaa !15
  %439 = load i64, ptr %15, align 8, !tbaa !9
  %440 = load i64, ptr %26, align 8, !tbaa !9
  %441 = add nsw i64 %439, %440
  %442 = getelementptr inbounds double, ptr %438, i64 %441
  %443 = load double, ptr %442, align 8, !tbaa !18
  %444 = load ptr, ptr %12, align 8, !tbaa !5
  %445 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %443, ptr noundef %444)
  %446 = sitofp i64 %445 to double
  %447 = load double, ptr %24, align 8, !tbaa !18
  %448 = load ptr, ptr %12, align 8, !tbaa !5
  %449 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %447, ptr noundef %448)
  %450 = fmul double %446, %449
  %451 = load ptr, ptr %7, align 8, !tbaa !5
  %452 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %451, i32 0, i32 8
  %453 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %452, i32 0, i32 4
  %454 = load ptr, ptr %453, align 8, !tbaa !15
  %455 = load i64, ptr %15, align 8, !tbaa !9
  %456 = load i64, ptr %26, align 8, !tbaa !9
  %457 = add nsw i64 %455, %456
  %458 = getelementptr inbounds double, ptr %454, i64 %457
  store double %450, ptr %458, align 8, !tbaa !18
  %459 = load ptr, ptr %7, align 8, !tbaa !5
  %460 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %459, i32 0, i32 8
  %461 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %460, i32 0, i32 4
  %462 = load ptr, ptr %461, align 8, !tbaa !15
  %463 = load i64, ptr %15, align 8, !tbaa !9
  %464 = load i64, ptr %26, align 8, !tbaa !9
  %465 = add nsw i64 %463, %464
  %466 = getelementptr inbounds double, ptr %462, i64 %465
  %467 = load double, ptr %466, align 8, !tbaa !18
  %468 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %467, double noundef 0.000000e+00)
  br i1 %468, label %469, label %478

469:                                              ; preds = %434
  %470 = load ptr, ptr %7, align 8, !tbaa !5
  %471 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %470, i32 0, i32 8
  %472 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %471, i32 0, i32 4
  %473 = load ptr, ptr %472, align 8, !tbaa !15
  %474 = load i64, ptr %15, align 8, !tbaa !9
  %475 = load i64, ptr %26, align 8, !tbaa !9
  %476 = add nsw i64 %474, %475
  %477 = getelementptr inbounds double, ptr %473, i64 %476
  store double 1.000000e+00, ptr %477, align 8, !tbaa !18
  br label %478

478:                                              ; preds = %469, %434
  br label %479

479:                                              ; preds = %478, %394
  br label %480

480:                                              ; preds = %479
  %481 = load i64, ptr %26, align 8, !tbaa !9
  %482 = add nsw i64 %481, 1
  store i64 %482, ptr %26, align 8, !tbaa !9
  br label %318, !llvm.loop !28

483:                                              ; preds = %318
  br label %484

484:                                              ; preds = %483, %313
  %485 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %485)
  store i32 0, ptr %28, align 4
  br label %486

486:                                              ; preds = %484, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  %487 = load i32, ptr %28, align 4
  switch i32 %487, label %489 [
    i32 0, label %488
    i32 1, label %488
  ]

488:                                              ; preds = %486, %486
  ret void

489:                                              ; preds = %486
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !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 }

@_ZN11alglib_implL19mlpbase_nfieldwidthE = external hidden local_unnamed_addr global i64, align 8
@.str.108 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [72 x i8], align 1

; 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

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, 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 #3

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

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

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl25mlpinitpreprocessorsubsetEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr nocapture noundef readonly %3, i64 noundef %4, ptr noundef %5) local_unnamed_addr #3 {
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %5, ptr noundef nonnull %7)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  %13 = icmp sgt i64 %2, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.108, ptr noundef %5)
  %14 = icmp slt i64 %4, 0
  br i1 %14, label %15, label %16

15:                                               ; preds = %6
  call void @_ZN11alglib_impl19mlpinitpreprocessorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %5)
  br label %.loopexit

16:                                               ; preds = %6
  %17 = load i64, ptr %3, align 8, !tbaa !5
  %18 = icmp sge i64 %17, %4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.109, ptr noundef %5)
  %.not.not154.not = icmp eq i64 %4, 0
  br i1 %.not.not154.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %16
  %19 = getelementptr inbounds i8, ptr %3, i64 56
  br label %20

20:                                               ; preds = %.lr.ph, %20
  %.0131155 = phi i64 [ 0, %.lr.ph ], [ %29, %20 ]
  %21 = load ptr, ptr %19, align 8, !tbaa !13
  %22 = getelementptr inbounds i64, ptr %21, i64 %.0131155
  %23 = load i64, ptr %22, align 8, !tbaa !14
  %24 = icmp sgt i64 %23, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.110, ptr noundef %5)
  %25 = load ptr, ptr %19, align 8, !tbaa !13
  %26 = getelementptr inbounds i64, ptr %25, i64 %.0131155
  %27 = load i64, ptr %26, align 8, !tbaa !14
  %28 = icmp slt i64 %27, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %28, ptr noundef nonnull @.str.111, ptr noundef %5)
  %29 = add nuw nsw i64 %.0131155, 1
  %exitcond.not = icmp eq i64 %29, %4
  br i1 %exitcond.not, label %._crit_edge, label %20, !llvm.loop !15

._crit_edge:                                      ; preds = %20, %16
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %5)
  %30 = getelementptr inbounds i8, ptr %0, i64 264
  %31 = load ptr, ptr %30, align 8, !tbaa !13
  %32 = getelementptr inbounds i8, ptr %31, i64 24
  %33 = load i64, ptr %32, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %31, i64 40
  %35 = load i64, ptr %34, align 8, !tbaa !14
  %36 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %5)
  %37 = load i64, ptr %8, align 8
  %38 = load i64, ptr %9, align 8
  %39 = select i1 %36, i64 0, i64 %38
  %.0133.in = add nsw i64 %39, %37
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %.0133.in, ptr noundef %5)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.0133.in, ptr noundef %5)
  %.not.not138156 = icmp sgt i64 %.0133.in, 0
  br i1 %.not.not138156, label %.lr.ph159, label %.preheader150

.lr.ph159:                                        ; preds = %._crit_edge
  %40 = getelementptr inbounds i8, ptr %11, i64 56
  %41 = getelementptr inbounds i8, ptr %12, i64 56
  %42 = add i64 %39, %37
  %43 = add i64 %42, -1
  %xtraiter = and i64 %.0133.in, 1
  %44 = icmp eq i64 %43, 0
  br i1 %44, label %.preheader153.unr-lcssa, label %.lr.ph159.new

.lr.ph159.new:                                    ; preds = %.lr.ph159
  %unroll_iter = and i64 %.0133.in, 9223372036854775806
  br label %92

.preheader153.unr-lcssa:                          ; preds = %92, %.lr.ph159
  %.1132157.unr = phi i64 [ 0, %.lr.ph159 ], [ %102, %92 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader153, label %.preheader153.epilog-lcssa

.preheader153.epilog-lcssa:                       ; preds = %.preheader153.unr-lcssa
  %45 = load ptr, ptr %40, align 8, !tbaa !13
  %46 = getelementptr inbounds double, ptr %45, i64 %.1132157.unr
  store double 0.000000e+00, ptr %46, align 8, !tbaa !17
  %47 = load ptr, ptr %41, align 8, !tbaa !13
  %48 = getelementptr inbounds double, ptr %47, i64 %.1132157.unr
  store double 0.000000e+00, ptr %48, align 8, !tbaa !17
  br label %.preheader153

.preheader153:                                    ; preds = %.preheader153.unr-lcssa, %.preheader153.epilog-lcssa
  br i1 %.not.not154.not, label %.preheader151, label %.preheader152.lr.ph

.preheader152.lr.ph:                              ; preds = %.preheader153
  %49 = getelementptr inbounds i8, ptr %11, i64 56
  %50 = getelementptr inbounds i8, ptr %1, i64 72
  %51 = getelementptr inbounds i8, ptr %3, i64 56
  br i1 %.not.not138156, label %.preheader152.us.preheader, label %.preheader147

.preheader152.us.preheader:                       ; preds = %.preheader152.lr.ph
  %smax = call i64 @llvm.smax.i64(i64 %4, i64 1)
  %xtraiter197 = and i64 %.0133.in, 1
  %52 = icmp eq i64 %43, 0
  %unroll_iter199 = and i64 %.0133.in, 9223372036854775806
  %lcmp.mod198.not = icmp eq i64 %xtraiter197, 0
  br label %.preheader152.us

.preheader152.us:                                 ; preds = %.preheader152.us.preheader, %._crit_edge163.us
  %.2165.us = phi i64 [ %91, %._crit_edge163.us ], [ 0, %.preheader152.us.preheader ]
  br i1 %52, label %._crit_edge163.us.unr-lcssa, label %.preheader152.us.new

.preheader152.us.new:                             ; preds = %.preheader152.us, %.preheader152.us.new
  %.0161.us = phi i64 [ %78, %.preheader152.us.new ], [ 0, %.preheader152.us ]
  %niter200 = phi i64 [ %niter200.next.1, %.preheader152.us.new ], [ 0, %.preheader152.us ]
  %53 = load ptr, ptr %49, align 8, !tbaa !13
  %54 = getelementptr inbounds double, ptr %53, i64 %.0161.us
  %55 = load double, ptr %54, align 8, !tbaa !17
  %56 = load ptr, ptr %50, align 8, !tbaa !13
  %57 = load ptr, ptr %51, align 8, !tbaa !13
  %58 = getelementptr inbounds i64, ptr %57, i64 %.2165.us
  %59 = load i64, ptr %58, align 8, !tbaa !14
  %60 = getelementptr inbounds ptr, ptr %56, i64 %59
  %61 = load ptr, ptr %60, align 8, !tbaa !19
  %62 = getelementptr inbounds double, ptr %61, i64 %.0161.us
  %63 = load double, ptr %62, align 8, !tbaa !17
  %64 = fadd double %55, %63
  store double %64, ptr %54, align 8, !tbaa !17
  %65 = or disjoint i64 %.0161.us, 1
  %66 = load ptr, ptr %49, align 8, !tbaa !13
  %67 = getelementptr inbounds double, ptr %66, i64 %65
  %68 = load double, ptr %67, align 8, !tbaa !17
  %69 = load ptr, ptr %50, align 8, !tbaa !13
  %70 = load ptr, ptr %51, align 8, !tbaa !13
  %71 = getelementptr inbounds i64, ptr %70, i64 %.2165.us
  %72 = load i64, ptr %71, align 8, !tbaa !14
  %73 = getelementptr inbounds ptr, ptr %69, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !19
  %75 = getelementptr inbounds double, ptr %74, i64 %65
  %76 = load double, ptr %75, align 8, !tbaa !17
  %77 = fadd double %68, %76
  store double %77, ptr %67, align 8, !tbaa !17
  %78 = add nuw nsw i64 %.0161.us, 2
  %niter200.next.1 = add i64 %niter200, 2
  %niter200.ncmp.1 = icmp eq i64 %niter200.next.1, %unroll_iter199
  br i1 %niter200.ncmp.1, label %._crit_edge163.us.unr-lcssa, label %.preheader152.us.new, !llvm.loop !20

._crit_edge163.us.unr-lcssa:                      ; preds = %.preheader152.us.new, %.preheader152.us
  %.0161.us.unr = phi i64 [ 0, %.preheader152.us ], [ %78, %.preheader152.us.new ]
  br i1 %lcmp.mod198.not, label %._crit_edge163.us, label %._crit_edge163.us.epilog-lcssa

._crit_edge163.us.epilog-lcssa:                   ; preds = %._crit_edge163.us.unr-lcssa
  %79 = load ptr, ptr %49, align 8, !tbaa !13
  %80 = getelementptr inbounds double, ptr %79, i64 %.0161.us.unr
  %81 = load double, ptr %80, align 8, !tbaa !17
  %82 = load ptr, ptr %50, align 8, !tbaa !13
  %83 = load ptr, ptr %51, align 8, !tbaa !13
  %84 = getelementptr inbounds i64, ptr %83, i64 %.2165.us
  %85 = load i64, ptr %84, align 8, !tbaa !14
  %86 = getelementptr inbounds ptr, ptr %82, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !19
  %88 = getelementptr inbounds double, ptr %87, i64 %.0161.us.unr
  %89 = load double, ptr %88, align 8, !tbaa !17
  %90 = fadd double %81, %89
  store double %90, ptr %80, align 8, !tbaa !17
  br label %._crit_edge163.us

._crit_edge163.us:                                ; preds = %._crit_edge163.us.unr-lcssa, %._crit_edge163.us.epilog-lcssa
  %91 = add nuw nsw i64 %.2165.us, 1
  %exitcond189.not = icmp eq i64 %91, %smax
  br i1 %exitcond189.not, label %.preheader151, label %.preheader152.us, !llvm.loop !21

92:                                               ; preds = %92, %.lr.ph159.new
  %.1132157 = phi i64 [ 0, %.lr.ph159.new ], [ %102, %92 ]
  %niter = phi i64 [ 0, %.lr.ph159.new ], [ %niter.next.1, %92 ]
  %93 = load ptr, ptr %40, align 8, !tbaa !13
  %94 = getelementptr inbounds double, ptr %93, i64 %.1132157
  store double 0.000000e+00, ptr %94, align 8, !tbaa !17
  %95 = load ptr, ptr %41, align 8, !tbaa !13
  %96 = getelementptr inbounds double, ptr %95, i64 %.1132157
  store double 0.000000e+00, ptr %96, align 8, !tbaa !17
  %97 = or disjoint i64 %.1132157, 1
  %98 = load ptr, ptr %40, align 8, !tbaa !13
  %99 = getelementptr inbounds double, ptr %98, i64 %97
  store double 0.000000e+00, ptr %99, align 8, !tbaa !17
  %100 = load ptr, ptr %41, align 8, !tbaa !13
  %101 = getelementptr inbounds double, ptr %100, i64 %97
  store double 0.000000e+00, ptr %101, align 8, !tbaa !17
  %102 = add nuw nsw i64 %.1132157, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader153.unr-lcssa, label %92, !llvm.loop !22

.preheader151:                                    ; preds = %._crit_edge163.us, %.preheader153
  br i1 %.not.not138156, label %.lr.ph168, label %.preheader150

.lr.ph168:                                        ; preds = %.preheader151
  %103 = getelementptr inbounds i8, ptr %11, i64 56
  %104 = uitofp nneg i64 %4 to double
  %xtraiter202 = and i64 %.0133.in, 3
  %105 = icmp ult i64 %43, 3
  br i1 %105, label %.preheader150.loopexit.unr-lcssa, label %.lr.ph168.new

.lr.ph168.new:                                    ; preds = %.lr.ph168
  %unroll_iter204 = and i64 %.0133.in, 9223372036854775804
  br label %137

.preheader150.loopexit.unr-lcssa:                 ; preds = %137, %.lr.ph168
  %.3167.unr = phi i64 [ 0, %.lr.ph168 ], [ %157, %137 ]
  %lcmp.mod203.not = icmp eq i64 %xtraiter202, 0
  br i1 %lcmp.mod203.not, label %.preheader150, label %.epil.preheader201

.epil.preheader201:                               ; preds = %.preheader150.loopexit.unr-lcssa, %.epil.preheader201
  %.3167.epil = phi i64 [ %110, %.epil.preheader201 ], [ %.3167.unr, %.preheader150.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader201 ], [ 0, %.preheader150.loopexit.unr-lcssa ]
  %106 = load ptr, ptr %103, align 8, !tbaa !13
  %107 = getelementptr inbounds double, ptr %106, i64 %.3167.epil
  %108 = load double, ptr %107, align 8, !tbaa !17
  %109 = fdiv double %108, %104
  store double %109, ptr %107, align 8, !tbaa !17
  %110 = add nuw nsw i64 %.3167.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter202
  br i1 %epil.iter.cmp.not, label %.preheader150, label %.epil.preheader201, !llvm.loop !23

.preheader150:                                    ; preds = %.preheader150.loopexit.unr-lcssa, %.epil.preheader201, %._crit_edge, %.preheader151
  br i1 %.not.not154.not, label %.preheader148, label %.preheader149.lr.ph

.preheader149.lr.ph:                              ; preds = %.preheader150
  %111 = getelementptr inbounds i8, ptr %12, i64 56
  %112 = getelementptr inbounds i8, ptr %1, i64 72
  %113 = getelementptr inbounds i8, ptr %3, i64 56
  %114 = getelementptr inbounds i8, ptr %11, i64 56
  br i1 %.not.not138156, label %.preheader149.us.preheader, label %.preheader147

.preheader149.us.preheader:                       ; preds = %.preheader149.lr.ph
  %smax192 = call i64 @llvm.smax.i64(i64 %4, i64 1)
  br label %.preheader149.us

.preheader149.us:                                 ; preds = %.preheader149.us.preheader, %._crit_edge172.us
  %.4174.us = phi i64 [ %136, %._crit_edge172.us ], [ 0, %.preheader149.us.preheader ]
  br label %115

115:                                              ; preds = %.preheader149.us, %115
  %.1170.us = phi i64 [ 0, %.preheader149.us ], [ %135, %115 ]
  %116 = load ptr, ptr %111, align 8, !tbaa !13
  %117 = getelementptr inbounds double, ptr %116, i64 %.1170.us
  %118 = load double, ptr %117, align 8, !tbaa !17
  %119 = load ptr, ptr %112, align 8, !tbaa !13
  %120 = load ptr, ptr %113, align 8, !tbaa !13
  %121 = getelementptr inbounds i64, ptr %120, i64 %.4174.us
  %122 = load i64, ptr %121, align 8, !tbaa !14
  %123 = getelementptr inbounds ptr, ptr %119, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !19
  %125 = getelementptr inbounds double, ptr %124, i64 %.1170.us
  %126 = load double, ptr %125, align 8, !tbaa !17
  %127 = load ptr, ptr %114, align 8, !tbaa !13
  %128 = getelementptr inbounds double, ptr %127, i64 %.1170.us
  %129 = load double, ptr %128, align 8, !tbaa !17
  %130 = fsub double %126, %129
  %131 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %130, ptr noundef %5)
  %132 = fadd double %118, %131
  %133 = load ptr, ptr %111, align 8, !tbaa !13
  %134 = getelementptr inbounds double, ptr %133, i64 %.1170.us
  store double %132, ptr %134, align 8, !tbaa !17
  %135 = add nuw nsw i64 %.1170.us, 1
  %exitcond191.not = icmp eq i64 %135, %.0133.in
  br i1 %exitcond191.not, label %._crit_edge172.us, label %115, !llvm.loop !25

._crit_edge172.us:                                ; preds = %115
  %136 = add nuw nsw i64 %.4174.us, 1
  %exitcond193.not = icmp eq i64 %136, %smax192
  br i1 %exitcond193.not, label %.preheader148, label %.preheader149.us, !llvm.loop !26

137:                                              ; preds = %137, %.lr.ph168.new
  %.3167 = phi i64 [ 0, %.lr.ph168.new ], [ %157, %137 ]
  %niter205 = phi i64 [ 0, %.lr.ph168.new ], [ %niter205.next.3, %137 ]
  %138 = load ptr, ptr %103, align 8, !tbaa !13
  %139 = getelementptr inbounds double, ptr %138, i64 %.3167
  %140 = load double, ptr %139, align 8, !tbaa !17
  %141 = fdiv double %140, %104
  store double %141, ptr %139, align 8, !tbaa !17
  %142 = or disjoint i64 %.3167, 1
  %143 = load ptr, ptr %103, align 8, !tbaa !13
  %144 = getelementptr inbounds double, ptr %143, i64 %142
  %145 = load double, ptr %144, align 8, !tbaa !17
  %146 = fdiv double %145, %104
  store double %146, ptr %144, align 8, !tbaa !17
  %147 = or disjoint i64 %.3167, 2
  %148 = load ptr, ptr %103, align 8, !tbaa !13
  %149 = getelementptr inbounds double, ptr %148, i64 %147
  %150 = load double, ptr %149, align 8, !tbaa !17
  %151 = fdiv double %150, %104
  store double %151, ptr %149, align 8, !tbaa !17
  %152 = or disjoint i64 %.3167, 3
  %153 = load ptr, ptr %103, align 8, !tbaa !13
  %154 = getelementptr inbounds double, ptr %153, i64 %152
  %155 = load double, ptr %154, align 8, !tbaa !17
  %156 = fdiv double %155, %104
  store double %156, ptr %154, align 8, !tbaa !17
  %157 = add nuw nsw i64 %.3167, 4
  %niter205.next.3 = add i64 %niter205, 4
  %niter205.ncmp.3 = icmp eq i64 %niter205.next.3, %unroll_iter204
  br i1 %niter205.ncmp.3, label %.preheader150.loopexit.unr-lcssa, label %137, !llvm.loop !27

.preheader148:                                    ; preds = %._crit_edge172.us, %.preheader150
  br i1 %.not.not138156, label %.lr.ph177, label %.preheader147

.lr.ph177:                                        ; preds = %.preheader148
  %158 = getelementptr inbounds i8, ptr %12, i64 56
  %159 = uitofp nneg i64 %4 to double
  br label %165

.preheader147:                                    ; preds = %165, %.preheader152.lr.ph, %.preheader149.lr.ph, %.preheader148
  %160 = load i64, ptr %8, align 8, !tbaa !14
  %.not.not143178 = icmp sgt i64 %160, 0
  br i1 %.not.not143178, label %.lr.ph180, label %._crit_edge181

.lr.ph180:                                        ; preds = %.preheader147
  %161 = getelementptr inbounds i8, ptr %11, i64 56
  %162 = getelementptr inbounds i8, ptr %0, i64 392
  %163 = getelementptr inbounds i8, ptr %12, i64 56
  %164 = getelementptr inbounds i8, ptr %0, i64 456
  br label %174

165:                                              ; preds = %.lr.ph177, %165
  %.5176 = phi i64 [ 0, %.lr.ph177 ], [ %173, %165 ]
  %166 = load ptr, ptr %158, align 8, !tbaa !13
  %167 = getelementptr inbounds double, ptr %166, i64 %.5176
  %168 = load double, ptr %167, align 8, !tbaa !17
  %169 = fdiv double %168, %159
  %170 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %169, ptr noundef %5)
  %171 = load ptr, ptr %158, align 8, !tbaa !13
  %172 = getelementptr inbounds double, ptr %171, i64 %.5176
  store double %170, ptr %172, align 8, !tbaa !17
  %173 = add nuw nsw i64 %.5176, 1
  %exitcond194.not = icmp eq i64 %173, %.0133.in
  br i1 %exitcond194.not, label %.preheader147, label %165, !llvm.loop !28

174:                                              ; preds = %.lr.ph180, %192
  %.6179 = phi i64 [ 0, %.lr.ph180 ], [ %193, %192 ]
  %175 = load ptr, ptr %161, align 8, !tbaa !13
  %176 = getelementptr inbounds double, ptr %175, i64 %.6179
  %177 = load double, ptr %176, align 8, !tbaa !17
  %178 = load ptr, ptr %162, align 8, !tbaa !13
  %179 = getelementptr inbounds double, ptr %178, i64 %.6179
  store double %177, ptr %179, align 8, !tbaa !17
  %180 = load ptr, ptr %163, align 8, !tbaa !13
  %181 = getelementptr inbounds double, ptr %180, i64 %.6179
  %182 = load double, ptr %181, align 8, !tbaa !17
  %183 = load ptr, ptr %164, align 8, !tbaa !13
  %184 = getelementptr inbounds double, ptr %183, i64 %.6179
  store double %182, ptr %184, align 8, !tbaa !17
  %185 = load ptr, ptr %164, align 8, !tbaa !13
  %186 = getelementptr inbounds double, ptr %185, i64 %.6179
  %187 = load double, ptr %186, align 8, !tbaa !17
  %188 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %187, double noundef 0.000000e+00)
  br i1 %188, label %189, label %192

189:                                              ; preds = %174
  %190 = load ptr, ptr %164, align 8, !tbaa !13
  %191 = getelementptr inbounds double, ptr %190, i64 %.6179
  store double 1.000000e+00, ptr %191, align 8, !tbaa !17
  br label %192

192:                                              ; preds = %174, %189
  %193 = add nuw nsw i64 %.6179, 1
  %194 = load i64, ptr %8, align 8, !tbaa !14
  %.not.not143 = icmp slt i64 %193, %194
  br i1 %.not.not143, label %174, label %._crit_edge181, !llvm.loop !29

._crit_edge181:                                   ; preds = %192, %.preheader147
  %195 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %5)
  br i1 %195, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %._crit_edge181
  %196 = load i64, ptr %9, align 8, !tbaa !14
  %.not.not144182 = icmp sgt i64 %196, 0
  br i1 %.not.not144182, label %.lr.ph184, label %.loopexit

.lr.ph184:                                        ; preds = %.preheader
  %197 = getelementptr inbounds i8, ptr %11, i64 56
  %198 = getelementptr inbounds i8, ptr %0, i64 392
  %199 = getelementptr inbounds i8, ptr %0, i64 456
  %200 = getelementptr inbounds i8, ptr %12, i64 56
  br label %201

201:                                              ; preds = %.lr.ph184, %277
  %202 = phi i64 [ %196, %.lr.ph184 ], [ %279, %277 ]
  %.7183 = phi i64 [ 0, %.lr.ph184 ], [ %278, %277 ]
  %203 = add i64 %.7183, %33
  %204 = sub i64 %203, %202
  %205 = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !14
  %206 = mul nsw i64 %205, %204
  %207 = load ptr, ptr %30, align 8, !tbaa !13
  %208 = getelementptr i64, ptr %207, i64 %35
  %209 = getelementptr i64, ptr %208, i64 %206
  %210 = load i64, ptr %209, align 8, !tbaa !14
  switch i64 %210, label %277 [
    i64 0, label %211
    i64 3, label %233
  ]

211:                                              ; preds = %201
  %212 = load ptr, ptr %197, align 8, !tbaa !13
  %213 = load i64, ptr %8, align 8, !tbaa !14
  %214 = add nsw i64 %213, %.7183
  %215 = getelementptr inbounds double, ptr %212, i64 %214
  %216 = load double, ptr %215, align 8, !tbaa !17
  %217 = load ptr, ptr %198, align 8, !tbaa !13
  %218 = getelementptr inbounds double, ptr %217, i64 %214
  store double %216, ptr %218, align 8, !tbaa !17
  %219 = load ptr, ptr %200, align 8, !tbaa !13
  %220 = getelementptr inbounds double, ptr %219, i64 %214
  %221 = load double, ptr %220, align 8, !tbaa !17
  %222 = load ptr, ptr %199, align 8, !tbaa !13
  %223 = getelementptr inbounds double, ptr %222, i64 %214
  store double %221, ptr %223, align 8, !tbaa !17
  %224 = load ptr, ptr %199, align 8, !tbaa !13
  %225 = getelementptr double, ptr %224, i64 %213
  %226 = getelementptr double, ptr %225, i64 %.7183
  %227 = load double, ptr %226, align 8, !tbaa !17
  %228 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %227, double noundef 0.000000e+00)
  br i1 %228, label %229, label %277

229:                                              ; preds = %211
  %230 = load ptr, ptr %199, align 8, !tbaa !13
  %231 = load i64, ptr %8, align 8, !tbaa !14
  %232 = getelementptr double, ptr %230, i64 %231
  br label %.sink.split

233:                                              ; preds = %201
  %234 = load ptr, ptr %197, align 8, !tbaa !13
  %235 = load i64, ptr %8, align 8, !tbaa !14
  %236 = add nsw i64 %235, %.7183
  %237 = getelementptr inbounds double, ptr %234, i64 %236
  %238 = load double, ptr %237, align 8, !tbaa !17
  %239 = load ptr, ptr %198, align 8, !tbaa !13
  %240 = getelementptr inbounds double, ptr %239, i64 %236
  %241 = load double, ptr %240, align 8, !tbaa !17
  %242 = fsub double %238, %241
  %243 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %242, double noundef 0.000000e+00)
  br i1 %243, label %244, label %252

244:                                              ; preds = %233
  %245 = load ptr, ptr %199, align 8, !tbaa !13
  %246 = load i64, ptr %8, align 8, !tbaa !14
  %247 = getelementptr double, ptr %245, i64 %246
  %248 = getelementptr double, ptr %247, i64 %.7183
  %249 = load double, ptr %248, align 8, !tbaa !17
  %250 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %249, ptr noundef %5)
  %251 = sitofp i64 %250 to double
  br label %252

252:                                              ; preds = %244, %233
  %.0134 = phi double [ %251, %244 ], [ %242, %233 ]
  %253 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %.0134, double noundef 0.000000e+00)
  %.1135 = select i1 %253, double 1.000000e+00, double %.0134
  %254 = load ptr, ptr %199, align 8, !tbaa !13
  %255 = load i64, ptr %8, align 8, !tbaa !14
  %256 = getelementptr double, ptr %254, i64 %255
  %257 = getelementptr double, ptr %256, i64 %.7183
  %258 = load double, ptr %257, align 8, !tbaa !17
  %259 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %258, ptr noundef %5)
  %260 = sitofp i64 %259 to double
  %261 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.1135, ptr noundef %5)
  %262 = fmul double %261, %260
  %263 = load ptr, ptr %199, align 8, !tbaa !13
  %264 = load i64, ptr %8, align 8, !tbaa !14
  %265 = getelementptr double, ptr %263, i64 %264
  %266 = getelementptr double, ptr %265, i64 %.7183
  store double %262, ptr %266, align 8, !tbaa !17
  %267 = load ptr, ptr %199, align 8, !tbaa !13
  %268 = getelementptr double, ptr %267, i64 %264
  %269 = getelementptr double, ptr %268, i64 %.7183
  %270 = load double, ptr %269, align 8, !tbaa !17
  %271 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %270, double noundef 0.000000e+00)
  br i1 %271, label %272, label %277

272:                                              ; preds = %252
  %273 = load ptr, ptr %199, align 8, !tbaa !13
  %274 = load i64, ptr %8, align 8, !tbaa !14
  %275 = getelementptr double, ptr %273, i64 %274
  br label %.sink.split

.sink.split:                                      ; preds = %272, %229
  %.sink195 = phi ptr [ %232, %229 ], [ %275, %272 ]
  %276 = getelementptr double, ptr %.sink195, i64 %.7183
  store double 1.000000e+00, ptr %276, align 8, !tbaa !17
  br label %277

277:                                              ; preds = %.sink.split, %211, %201, %252
  %278 = add nuw nsw i64 %.7183, 1
  %279 = load i64, ptr %9, align 8, !tbaa !14
  %.not.not144 = icmp slt i64 %278, %279
  br i1 %.not.not144, label %201, label %.loopexit, !llvm.loop !30

.loopexit:                                        ; preds = %277, %._crit_edge181, %.preheader, %15
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !8, i64 0}
!19 = !{!12, !12, i64 0}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}
!28 = distinct !{!28, !16}
!29 = distinct !{!29, !16}
!30 = distinct !{!30, !16}


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