; 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

; 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
define dso_local void @_ZN11alglib_impl19mlpinitpreprocessorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.alglib_impl::ae_frame", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, 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 %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, 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 64, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %23, ptr noundef %9)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 3, ptr noundef %24, i1 noundef zeroext true)
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 3, ptr noundef %25, i1 noundef zeroext true)
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %26, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %27)
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %28, i32 0, i32 5
  %30 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = getelementptr inbounds i64, ptr %31, i64 3
  %33 = load i64, ptr %32, align 8, !tbaa !9
  store i64 %33, ptr %16, align 8, !tbaa !9
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %34, i32 0, i32 5
  %36 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = getelementptr inbounds i64, ptr %37, i64 5
  %39 = load i64, ptr %38, align 8, !tbaa !9
  store i64 %39, ptr %17, align 8, !tbaa !9
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %40, ptr noundef %41)
  br i1 %42, label %43, label %46

43:                                               ; preds = %4
  %44 = load i64, ptr %13, align 8, !tbaa !9
  %45 = sub nsw i64 %44, 1
  store i64 %45, ptr %12, align 8, !tbaa !9
  br label %51

46:                                               ; preds = %4
  %47 = load i64, ptr %13, align 8, !tbaa !9
  %48 = load i64, ptr %14, align 8, !tbaa !9
  %49 = add nsw i64 %47, %48
  %50 = sub nsw i64 %49, 1
  store i64 %50, ptr %12, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %46, %43
  %52 = load i64, ptr %12, align 8, !tbaa !9
  %53 = add nsw i64 %52, 1
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %53, ptr noundef %54)
  %55 = load i64, ptr %12, align 8, !tbaa !9
  %56 = add nsw i64 %55, 1
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %56, ptr noundef %57)
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %71, %51
  %59 = load i64, ptr %10, align 8, !tbaa !9
  %60 = load i64, ptr %12, align 8, !tbaa !9
  %61 = icmp sle i64 %59, %60
  br i1 %61, label %62, label %74

62:                                               ; preds = %58
  %63 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %64 = load ptr, ptr %63, align 8, !tbaa !11
  %65 = load i64, ptr %10, align 8, !tbaa !9
  %66 = getelementptr inbounds double, ptr %64, i64 %65
  store double 0.000000e+00, ptr %66, align 8, !tbaa !12
  %67 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  %69 = load i64, ptr %10, align 8, !tbaa !9
  %70 = getelementptr inbounds double, ptr %68, i64 %69
  store double 0.000000e+00, ptr %70, align 8, !tbaa !12
  br label %71

71:                                               ; preds = %62
  %72 = load i64, ptr %10, align 8, !tbaa !9
  %73 = add nsw i64 %72, 1
  store i64 %73, ptr %10, align 8, !tbaa !9
  br label %58, !llvm.loop !14

74:                                               ; preds = %58
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %109, %74
  %76 = load i64, ptr %10, align 8, !tbaa !9
  %77 = load i64, ptr %7, align 8, !tbaa !9
  %78 = sub nsw i64 %77, 1
  %79 = icmp sle i64 %76, %78
  br i1 %79, label %80, label %112

80:                                               ; preds = %75
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %81

81:                                               ; preds = %105, %80
  %82 = load i64, ptr %11, align 8, !tbaa !9
  %83 = load i64, ptr %12, align 8, !tbaa !9
  %84 = icmp sle i64 %82, %83
  br i1 %84, label %85, label %108

85:                                               ; preds = %81
  %86 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %87 = load ptr, ptr %86, align 8, !tbaa !11
  %88 = load i64, ptr %11, align 8, !tbaa !9
  %89 = getelementptr inbounds double, ptr %87, i64 %88
  %90 = load double, ptr %89, align 8, !tbaa !12
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %91, i32 0, i32 6
  %93 = load ptr, ptr %92, align 8, !tbaa !11
  %94 = load i64, ptr %10, align 8, !tbaa !9
  %95 = getelementptr inbounds ptr, ptr %93, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = load i64, ptr %11, align 8, !tbaa !9
  %98 = getelementptr inbounds double, ptr %96, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !12
  %100 = fadd double %90, %99
  %101 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %102 = load ptr, ptr %101, align 8, !tbaa !11
  %103 = load i64, ptr %11, align 8, !tbaa !9
  %104 = getelementptr inbounds double, ptr %102, i64 %103
  store double %100, ptr %104, align 8, !tbaa !12
  br label %105

105:                                              ; preds = %85
  %106 = load i64, ptr %11, align 8, !tbaa !9
  %107 = add nsw i64 %106, 1
  store i64 %107, ptr %11, align 8, !tbaa !9
  br label %81, !llvm.loop !16

108:                                              ; preds = %81
  br label %109

109:                                              ; preds = %108
  %110 = load i64, ptr %10, align 8, !tbaa !9
  %111 = add nsw i64 %110, 1
  store i64 %111, ptr %10, align 8, !tbaa !9
  br label %75, !llvm.loop !17

112:                                              ; preds = %75
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %113

113:                                              ; preds = %130, %112
  %114 = load i64, ptr %10, align 8, !tbaa !9
  %115 = load i64, ptr %12, align 8, !tbaa !9
  %116 = icmp sle i64 %114, %115
  br i1 %116, label %117, label %133

117:                                              ; preds = %113
  %118 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %119 = load ptr, ptr %118, align 8, !tbaa !11
  %120 = load i64, ptr %10, align 8, !tbaa !9
  %121 = getelementptr inbounds double, ptr %119, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !12
  %123 = load i64, ptr %7, align 8, !tbaa !9
  %124 = sitofp i64 %123 to double
  %125 = fdiv double %122, %124
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %127 = load ptr, ptr %126, align 8, !tbaa !11
  %128 = load i64, ptr %10, align 8, !tbaa !9
  %129 = getelementptr inbounds double, ptr %127, i64 %128
  store double %125, ptr %129, align 8, !tbaa !12
  br label %130

130:                                              ; preds = %117
  %131 = load i64, ptr %10, align 8, !tbaa !9
  %132 = add nsw i64 %131, 1
  store i64 %132, ptr %10, align 8, !tbaa !9
  br label %113, !llvm.loop !18

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

134:                                              ; preds = %176, %133
  %135 = load i64, ptr %10, align 8, !tbaa !9
  %136 = load i64, ptr %7, align 8, !tbaa !9
  %137 = sub nsw i64 %136, 1
  %138 = icmp sle i64 %135, %137
  br i1 %138, label %139, label %179

139:                                              ; preds = %134
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %140

140:                                              ; preds = %172, %139
  %141 = load i64, ptr %11, align 8, !tbaa !9
  %142 = load i64, ptr %12, align 8, !tbaa !9
  %143 = icmp sle i64 %141, %142
  br i1 %143, label %144, label %175

144:                                              ; preds = %140
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !11
  %147 = load i64, ptr %11, align 8, !tbaa !9
  %148 = getelementptr inbounds double, ptr %146, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !12
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %150, i32 0, i32 6
  %152 = load ptr, ptr %151, align 8, !tbaa !11
  %153 = load i64, ptr %10, align 8, !tbaa !9
  %154 = getelementptr inbounds ptr, ptr %152, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = load i64, ptr %11, align 8, !tbaa !9
  %157 = getelementptr inbounds double, ptr %155, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !12
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !11
  %161 = load i64, ptr %11, align 8, !tbaa !9
  %162 = getelementptr inbounds double, ptr %160, i64 %161
  %163 = load double, ptr %162, align 8, !tbaa !12
  %164 = fsub double %158, %163
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %164, ptr noundef %165)
  %167 = fadd double %149, %166
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !11
  %170 = load i64, ptr %11, align 8, !tbaa !9
  %171 = getelementptr inbounds double, ptr %169, i64 %170
  store double %167, ptr %171, align 8, !tbaa !12
  br label %172

172:                                              ; preds = %144
  %173 = load i64, ptr %11, align 8, !tbaa !9
  %174 = add nsw i64 %173, 1
  store i64 %174, ptr %11, align 8, !tbaa !9
  br label %140, !llvm.loop !19

175:                                              ; preds = %140
  br label %176

176:                                              ; preds = %175
  %177 = load i64, ptr %10, align 8, !tbaa !9
  %178 = add nsw i64 %177, 1
  store i64 %178, ptr %10, align 8, !tbaa !9
  br label %134, !llvm.loop !20

179:                                              ; preds = %134
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %180

180:                                              ; preds = %199, %179
  %181 = load i64, ptr %10, align 8, !tbaa !9
  %182 = load i64, ptr %12, align 8, !tbaa !9
  %183 = icmp sle i64 %181, %182
  br i1 %183, label %184, label %202

184:                                              ; preds = %180
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %186 = load ptr, ptr %185, align 8, !tbaa !11
  %187 = load i64, ptr %10, align 8, !tbaa !9
  %188 = getelementptr inbounds double, ptr %186, i64 %187
  %189 = load double, ptr %188, align 8, !tbaa !12
  %190 = load i64, ptr %7, align 8, !tbaa !9
  %191 = sitofp i64 %190 to double
  %192 = fdiv double %189, %191
  %193 = load ptr, ptr %8, align 8, !tbaa !5
  %194 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %192, ptr noundef %193)
  %195 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %196 = load ptr, ptr %195, align 8, !tbaa !11
  %197 = load i64, ptr %10, align 8, !tbaa !9
  %198 = getelementptr inbounds double, ptr %196, i64 %197
  store double %194, ptr %198, align 8, !tbaa !12
  br label %199

199:                                              ; preds = %184
  %200 = load i64, ptr %10, align 8, !tbaa !9
  %201 = add nsw i64 %200, 1
  store i64 %201, ptr %10, align 8, !tbaa !9
  br label %180, !llvm.loop !21

202:                                              ; preds = %180
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %203

203:                                              ; preds = %247, %202
  %204 = load i64, ptr %10, align 8, !tbaa !9
  %205 = load i64, ptr %13, align 8, !tbaa !9
  %206 = sub nsw i64 %205, 1
  %207 = icmp sle i64 %204, %206
  br i1 %207, label %208, label %250

208:                                              ; preds = %203
  %209 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %210 = load ptr, ptr %209, align 8, !tbaa !11
  %211 = load i64, ptr %10, align 8, !tbaa !9
  %212 = getelementptr inbounds double, ptr %210, i64 %211
  %213 = load double, ptr %212, align 8, !tbaa !12
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %214, i32 0, i32 7
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %215, i32 0, i32 4
  %217 = load ptr, ptr %216, align 8, !tbaa !11
  %218 = load i64, ptr %10, align 8, !tbaa !9
  %219 = getelementptr inbounds double, ptr %217, i64 %218
  store double %213, ptr %219, align 8, !tbaa !12
  %220 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %221 = load ptr, ptr %220, align 8, !tbaa !11
  %222 = load i64, ptr %10, align 8, !tbaa !9
  %223 = getelementptr inbounds double, ptr %221, i64 %222
  %224 = load double, ptr %223, align 8, !tbaa !12
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  %226 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %225, i32 0, i32 8
  %227 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %226, i32 0, i32 4
  %228 = load ptr, ptr %227, align 8, !tbaa !11
  %229 = load i64, ptr %10, align 8, !tbaa !9
  %230 = getelementptr inbounds double, ptr %228, i64 %229
  store double %224, ptr %230, align 8, !tbaa !12
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  %232 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %231, i32 0, i32 8
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %232, i32 0, i32 4
  %234 = load ptr, ptr %233, align 8, !tbaa !11
  %235 = load i64, ptr %10, align 8, !tbaa !9
  %236 = getelementptr inbounds double, ptr %234, i64 %235
  %237 = load double, ptr %236, align 8, !tbaa !12
  %238 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %237, double noundef 0.000000e+00)
  br i1 %238, label %239, label %246

239:                                              ; preds = %208
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %240, i32 0, i32 8
  %242 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %241, i32 0, i32 4
  %243 = load ptr, ptr %242, align 8, !tbaa !11
  %244 = load i64, ptr %10, align 8, !tbaa !9
  %245 = getelementptr inbounds double, ptr %243, i64 %244
  store double 1.000000e+00, ptr %245, align 8, !tbaa !12
  br label %246

246:                                              ; preds = %239, %208
  br label %247

247:                                              ; preds = %246
  %248 = load i64, ptr %10, align 8, !tbaa !9
  %249 = add nsw i64 %248, 1
  store i64 %249, ptr %10, align 8, !tbaa !9
  br label %203, !llvm.loop !22

250:                                              ; preds = %203
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  %253 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %251, ptr noundef %252)
  br i1 %253, label %421, label %254

254:                                              ; preds = %250
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %255

255:                                              ; preds = %417, %254
  %256 = load i64, ptr %10, align 8, !tbaa !9
  %257 = load i64, ptr %14, align 8, !tbaa !9
  %258 = sub nsw i64 %257, 1
  %259 = icmp sle i64 %256, %258
  br i1 %259, label %260, label %420

260:                                              ; preds = %255
  %261 = load i64, ptr %17, align 8, !tbaa !9
  %262 = load i64, ptr %16, align 8, !tbaa !9
  %263 = load i64, ptr %14, align 8, !tbaa !9
  %264 = sub nsw i64 %262, %263
  %265 = load i64, ptr %10, align 8, !tbaa !9
  %266 = add nsw i64 %264, %265
  %267 = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !9
  %268 = mul nsw i64 %266, %267
  %269 = add nsw i64 %261, %268
  store i64 %269, ptr %18, align 8, !tbaa !9
  %270 = load ptr, ptr %5, align 8, !tbaa !5
  %271 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %270, i32 0, i32 5
  %272 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %271, i32 0, i32 4
  %273 = load ptr, ptr %272, align 8, !tbaa !11
  %274 = load i64, ptr %18, align 8, !tbaa !9
  %275 = add nsw i64 %274, 0
  %276 = getelementptr inbounds i64, ptr %273, i64 %275
  %277 = load i64, ptr %276, align 8, !tbaa !9
  store i64 %277, ptr %19, align 8, !tbaa !9
  %278 = load i64, ptr %19, align 8, !tbaa !9
  %279 = icmp eq i64 %278, 0
  br i1 %279, label %280, label %331

280:                                              ; preds = %260
  %281 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %282 = load ptr, ptr %281, align 8, !tbaa !11
  %283 = load i64, ptr %13, align 8, !tbaa !9
  %284 = load i64, ptr %10, align 8, !tbaa !9
  %285 = add nsw i64 %283, %284
  %286 = getelementptr inbounds double, ptr %282, i64 %285
  %287 = load double, ptr %286, align 8, !tbaa !12
  %288 = load ptr, ptr %5, align 8, !tbaa !5
  %289 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %288, i32 0, i32 7
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %289, i32 0, i32 4
  %291 = load ptr, ptr %290, align 8, !tbaa !11
  %292 = load i64, ptr %13, align 8, !tbaa !9
  %293 = load i64, ptr %10, align 8, !tbaa !9
  %294 = add nsw i64 %292, %293
  %295 = getelementptr inbounds double, ptr %291, i64 %294
  store double %287, ptr %295, align 8, !tbaa !12
  %296 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %297 = load ptr, ptr %296, align 8, !tbaa !11
  %298 = load i64, ptr %13, align 8, !tbaa !9
  %299 = load i64, ptr %10, align 8, !tbaa !9
  %300 = add nsw i64 %298, %299
  %301 = getelementptr inbounds double, ptr %297, i64 %300
  %302 = load double, ptr %301, align 8, !tbaa !12
  %303 = load ptr, ptr %5, 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 !11
  %307 = load i64, ptr %13, align 8, !tbaa !9
  %308 = load i64, ptr %10, align 8, !tbaa !9
  %309 = add nsw i64 %307, %308
  %310 = getelementptr inbounds double, ptr %306, i64 %309
  store double %302, ptr %310, align 8, !tbaa !12
  %311 = load ptr, ptr %5, align 8, !tbaa !5
  %312 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %311, i32 0, i32 8
  %313 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %312, i32 0, i32 4
  %314 = load ptr, ptr %313, align 8, !tbaa !11
  %315 = load i64, ptr %13, align 8, !tbaa !9
  %316 = load i64, ptr %10, align 8, !tbaa !9
  %317 = add nsw i64 %315, %316
  %318 = getelementptr inbounds double, ptr %314, i64 %317
  %319 = load double, ptr %318, align 8, !tbaa !12
  %320 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %319, double noundef 0.000000e+00)
  br i1 %320, label %321, label %330

321:                                              ; preds = %280
  %322 = load ptr, ptr %5, align 8, !tbaa !5
  %323 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %322, i32 0, i32 8
  %324 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %323, i32 0, i32 4
  %325 = load ptr, ptr %324, align 8, !tbaa !11
  %326 = load i64, ptr %13, align 8, !tbaa !9
  %327 = load i64, ptr %10, align 8, !tbaa !9
  %328 = add nsw i64 %326, %327
  %329 = getelementptr inbounds double, ptr %325, i64 %328
  store double 1.000000e+00, ptr %329, align 8, !tbaa !12
  br label %330

330:                                              ; preds = %321, %280
  br label %331

331:                                              ; preds = %330, %260
  %332 = load i64, ptr %19, align 8, !tbaa !9
  %333 = icmp eq i64 %332, 3
  br i1 %333, label %334, label %416

334:                                              ; preds = %331
  %335 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %336 = load ptr, ptr %335, align 8, !tbaa !11
  %337 = load i64, ptr %13, align 8, !tbaa !9
  %338 = load i64, ptr %10, align 8, !tbaa !9
  %339 = add nsw i64 %337, %338
  %340 = getelementptr inbounds double, ptr %336, i64 %339
  %341 = load double, ptr %340, align 8, !tbaa !12
  %342 = load ptr, ptr %5, align 8, !tbaa !5
  %343 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %342, i32 0, i32 7
  %344 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %343, i32 0, i32 4
  %345 = load ptr, ptr %344, align 8, !tbaa !11
  %346 = load i64, ptr %13, align 8, !tbaa !9
  %347 = load i64, ptr %10, 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 !12
  %351 = fsub double %341, %350
  store double %351, ptr %22, align 8, !tbaa !12
  %352 = load double, ptr %22, align 8, !tbaa !12
  %353 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %352, double noundef 0.000000e+00)
  br i1 %353, label %354, label %367

354:                                              ; preds = %334
  %355 = load ptr, ptr %5, align 8, !tbaa !5
  %356 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %355, i32 0, i32 8
  %357 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %356, i32 0, i32 4
  %358 = load ptr, ptr %357, align 8, !tbaa !11
  %359 = load i64, ptr %13, align 8, !tbaa !9
  %360 = load i64, ptr %10, align 8, !tbaa !9
  %361 = add nsw i64 %359, %360
  %362 = getelementptr inbounds double, ptr %358, i64 %361
  %363 = load double, ptr %362, align 8, !tbaa !12
  %364 = load ptr, ptr %8, align 8, !tbaa !5
  %365 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %363, ptr noundef %364)
  %366 = sitofp i64 %365 to double
  store double %366, ptr %22, align 8, !tbaa !12
  br label %367

367:                                              ; preds = %354, %334
  %368 = load double, ptr %22, align 8, !tbaa !12
  %369 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %368, double noundef 0.000000e+00)
  br i1 %369, label %370, label %371

370:                                              ; preds = %367
  store double 1.000000e+00, ptr %22, align 8, !tbaa !12
  br label %371

371:                                              ; preds = %370, %367
  %372 = load ptr, ptr %5, align 8, !tbaa !5
  %373 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %372, i32 0, i32 8
  %374 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %373, i32 0, i32 4
  %375 = load ptr, ptr %374, align 8, !tbaa !11
  %376 = load i64, ptr %13, align 8, !tbaa !9
  %377 = load i64, ptr %10, align 8, !tbaa !9
  %378 = add nsw i64 %376, %377
  %379 = getelementptr inbounds double, ptr %375, i64 %378
  %380 = load double, ptr %379, align 8, !tbaa !12
  %381 = load ptr, ptr %8, align 8, !tbaa !5
  %382 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %380, ptr noundef %381)
  %383 = sitofp i64 %382 to double
  %384 = load double, ptr %22, align 8, !tbaa !12
  %385 = load ptr, ptr %8, align 8, !tbaa !5
  %386 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %384, ptr noundef %385)
  %387 = fmul double %383, %386
  %388 = load ptr, ptr %5, align 8, !tbaa !5
  %389 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %388, i32 0, i32 8
  %390 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %389, i32 0, i32 4
  %391 = load ptr, ptr %390, align 8, !tbaa !11
  %392 = load i64, ptr %13, align 8, !tbaa !9
  %393 = load i64, ptr %10, align 8, !tbaa !9
  %394 = add nsw i64 %392, %393
  %395 = getelementptr inbounds double, ptr %391, i64 %394
  store double %387, ptr %395, align 8, !tbaa !12
  %396 = load ptr, ptr %5, align 8, !tbaa !5
  %397 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %396, i32 0, i32 8
  %398 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %397, i32 0, i32 4
  %399 = load ptr, ptr %398, align 8, !tbaa !11
  %400 = load i64, ptr %13, align 8, !tbaa !9
  %401 = load i64, ptr %10, 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 !12
  %405 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %404, double noundef 0.000000e+00)
  br i1 %405, label %406, label %415

406:                                              ; preds = %371
  %407 = load ptr, ptr %5, align 8, !tbaa !5
  %408 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %407, i32 0, i32 8
  %409 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %408, i32 0, i32 4
  %410 = load ptr, ptr %409, align 8, !tbaa !11
  %411 = load i64, ptr %13, align 8, !tbaa !9
  %412 = load i64, ptr %10, align 8, !tbaa !9
  %413 = add nsw i64 %411, %412
  %414 = getelementptr inbounds double, ptr %410, i64 %413
  store double 1.000000e+00, ptr %414, align 8, !tbaa !12
  br label %415

415:                                              ; preds = %406, %371
  br label %416

416:                                              ; preds = %415, %331
  br label %417

417:                                              ; preds = %416
  %418 = load i64, ptr %10, align 8, !tbaa !9
  %419 = add nsw i64 %418, 1
  store i64 %419, ptr %10, align 8, !tbaa !9
  br label %255, !llvm.loop !23

420:                                              ; preds = %255
  br label %421

421:                                              ; preds = %420, %250
  %422 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %422)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 64, 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 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

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 noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) #4

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

@_ZN11alglib_implL19mlpbase_nfieldwidthE = external hidden local_unnamed_addr global i64, align 8

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress 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
define dso_local void @_ZN11alglib_impl19mlpinitpreprocessorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %3, ptr noundef nonnull %5)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef %3)
  %11 = getelementptr inbounds i8, ptr %0, i64 264
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 24
  %14 = load i64, ptr %13, align 8, !tbaa !8
  %15 = getelementptr inbounds i8, ptr %12, i64 40
  %16 = load i64, ptr %15, align 8, !tbaa !8
  %17 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %3)
  %18 = load i64, ptr %6, align 8
  %19 = load i64, ptr %7, align 8
  %20 = select i1 %17, i64 0, i64 %19
  %.0111.in = add nsw i64 %20, %18
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0111.in, ptr noundef %3)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.0111.in, ptr noundef %3)
  %.not.not128 = icmp sgt i64 %.0111.in, 0
  br i1 %.not.not128, label %.lr.ph, label %.preheader121

.lr.ph:                                           ; preds = %4
  %21 = getelementptr inbounds i8, ptr %9, i64 56
  %22 = getelementptr inbounds i8, ptr %10, i64 56
  %23 = add i64 %20, %18
  %24 = add i64 %23, -1
  %xtraiter = and i64 %.0111.in, 1
  %25 = icmp eq i64 %24, 0
  br i1 %25, label %.preheader127.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %.0111.in, 9223372036854775806
  br label %63

.preheader127.unr-lcssa:                          ; preds = %63, %.lr.ph
  %.0107129.unr = phi i64 [ 0, %.lr.ph ], [ %73, %63 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader127, label %.preheader127.epilog-lcssa

.preheader127.epilog-lcssa:                       ; preds = %.preheader127.unr-lcssa
  %26 = load ptr, ptr %21, align 8, !tbaa !5
  %27 = getelementptr inbounds double, ptr %26, i64 %.0107129.unr
  store double 0.000000e+00, ptr %27, align 8, !tbaa !10
  %28 = load ptr, ptr %22, align 8, !tbaa !5
  %29 = getelementptr inbounds double, ptr %28, i64 %.0107129.unr
  store double 0.000000e+00, ptr %29, align 8, !tbaa !10
  br label %.preheader127

.preheader127:                                    ; preds = %.preheader127.unr-lcssa, %.preheader127.epilog-lcssa
  %.not.not113133 = icmp sgt i64 %2, 0
  br i1 %.not.not113133, label %.preheader126.lr.ph, label %.preheader125

.preheader126.lr.ph:                              ; preds = %.preheader127
  %30 = getelementptr inbounds i8, ptr %9, i64 56
  %31 = getelementptr inbounds i8, ptr %1, i64 72
  br i1 %.not.not128, label %.preheader126.us.preheader, label %.preheader121

.preheader126.us.preheader:                       ; preds = %.preheader126.lr.ph
  %xtraiter173 = and i64 %.0111.in, 1
  %32 = icmp eq i64 %24, 0
  %unroll_iter175 = and i64 %.0111.in, 9223372036854775806
  %lcmp.mod174.not = icmp eq i64 %xtraiter173, 0
  br label %.preheader126.us

.preheader126.us:                                 ; preds = %.preheader126.us.preheader, %._crit_edge.us
  %.1108134.us = phi i64 [ %62, %._crit_edge.us ], [ 0, %.preheader126.us.preheader ]
  br i1 %32, label %._crit_edge.us.unr-lcssa, label %.preheader126.us.new

.preheader126.us.new:                             ; preds = %.preheader126.us, %.preheader126.us.new
  %.0109131.us = phi i64 [ %52, %.preheader126.us.new ], [ 0, %.preheader126.us ]
  %niter176 = phi i64 [ %niter176.next.1, %.preheader126.us.new ], [ 0, %.preheader126.us ]
  %33 = load ptr, ptr %30, align 8, !tbaa !5
  %34 = getelementptr inbounds double, ptr %33, i64 %.0109131.us
  %35 = load double, ptr %34, align 8, !tbaa !10
  %36 = load ptr, ptr %31, align 8, !tbaa !5
  %37 = getelementptr inbounds ptr, ptr %36, i64 %.1108134.us
  %38 = load ptr, ptr %37, align 8, !tbaa !12
  %39 = getelementptr inbounds double, ptr %38, i64 %.0109131.us
  %40 = load double, ptr %39, align 8, !tbaa !10
  %41 = fadd double %35, %40
  store double %41, ptr %34, align 8, !tbaa !10
  %42 = or disjoint i64 %.0109131.us, 1
  %43 = load ptr, ptr %30, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %43, i64 %42
  %45 = load double, ptr %44, align 8, !tbaa !10
  %46 = load ptr, ptr %31, align 8, !tbaa !5
  %47 = getelementptr inbounds ptr, ptr %46, i64 %.1108134.us
  %48 = load ptr, ptr %47, align 8, !tbaa !12
  %49 = getelementptr inbounds double, ptr %48, i64 %42
  %50 = load double, ptr %49, align 8, !tbaa !10
  %51 = fadd double %45, %50
  store double %51, ptr %44, align 8, !tbaa !10
  %52 = add nuw nsw i64 %.0109131.us, 2
  %niter176.next.1 = add i64 %niter176, 2
  %niter176.ncmp.1 = icmp eq i64 %niter176.next.1, %unroll_iter175
  br i1 %niter176.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.preheader126.us.new, !llvm.loop !14

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader126.us.new, %.preheader126.us
  %.0109131.us.unr = phi i64 [ 0, %.preheader126.us ], [ %52, %.preheader126.us.new ]
  br i1 %lcmp.mod174.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %53 = load ptr, ptr %30, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %53, i64 %.0109131.us.unr
  %55 = load double, ptr %54, align 8, !tbaa !10
  %56 = load ptr, ptr %31, align 8, !tbaa !5
  %57 = getelementptr inbounds ptr, ptr %56, i64 %.1108134.us
  %58 = load ptr, ptr %57, align 8, !tbaa !12
  %59 = getelementptr inbounds double, ptr %58, i64 %.0109131.us.unr
  %60 = load double, ptr %59, align 8, !tbaa !10
  %61 = fadd double %55, %60
  store double %61, ptr %54, align 8, !tbaa !10
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %62 = add nuw nsw i64 %.1108134.us, 1
  %exitcond156.not = icmp eq i64 %62, %2
  br i1 %exitcond156.not, label %.preheader125, label %.preheader126.us, !llvm.loop !16

63:                                               ; preds = %63, %.lr.ph.new
  %.0107129 = phi i64 [ 0, %.lr.ph.new ], [ %73, %63 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %63 ]
  %64 = load ptr, ptr %21, align 8, !tbaa !5
  %65 = getelementptr inbounds double, ptr %64, i64 %.0107129
  store double 0.000000e+00, ptr %65, align 8, !tbaa !10
  %66 = load ptr, ptr %22, align 8, !tbaa !5
  %67 = getelementptr inbounds double, ptr %66, i64 %.0107129
  store double 0.000000e+00, ptr %67, align 8, !tbaa !10
  %68 = or disjoint i64 %.0107129, 1
  %69 = load ptr, ptr %21, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i64 %68
  store double 0.000000e+00, ptr %70, align 8, !tbaa !10
  %71 = load ptr, ptr %22, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %71, i64 %68
  store double 0.000000e+00, ptr %72, align 8, !tbaa !10
  %73 = add nuw nsw i64 %.0107129, 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 %.preheader127.unr-lcssa, label %63, !llvm.loop !17

.preheader125:                                    ; preds = %._crit_edge.us, %.preheader127
  br i1 %.not.not128, label %.lr.ph137, label %.preheader121

.lr.ph137:                                        ; preds = %.preheader125
  %74 = getelementptr inbounds i8, ptr %9, i64 56
  %75 = sitofp i64 %2 to double
  %xtraiter178 = and i64 %.0111.in, 3
  %76 = icmp ult i64 %24, 3
  br i1 %76, label %.preheader124.unr-lcssa, label %.lr.ph137.new

.lr.ph137.new:                                    ; preds = %.lr.ph137
  %unroll_iter180 = and i64 %.0111.in, 9223372036854775804
  br label %104

.preheader124.unr-lcssa:                          ; preds = %104, %.lr.ph137
  %.2136.unr = phi i64 [ 0, %.lr.ph137 ], [ %124, %104 ]
  %lcmp.mod179.not = icmp eq i64 %xtraiter178, 0
  br i1 %lcmp.mod179.not, label %.preheader124, label %.epil.preheader177

.epil.preheader177:                               ; preds = %.preheader124.unr-lcssa, %.epil.preheader177
  %.2136.epil = phi i64 [ %81, %.epil.preheader177 ], [ %.2136.unr, %.preheader124.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader177 ], [ 0, %.preheader124.unr-lcssa ]
  %77 = load ptr, ptr %74, align 8, !tbaa !5
  %78 = getelementptr inbounds double, ptr %77, i64 %.2136.epil
  %79 = load double, ptr %78, align 8, !tbaa !10
  %80 = fdiv double %79, %75
  store double %80, ptr %78, align 8, !tbaa !10
  %81 = add nuw nsw i64 %.2136.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter178
  br i1 %epil.iter.cmp.not, label %.preheader124, label %.epil.preheader177, !llvm.loop !18

.preheader124:                                    ; preds = %.epil.preheader177, %.preheader124.unr-lcssa
  br i1 %.not.not113133, label %.preheader123.lr.ph, label %.preheader122

.preheader123.lr.ph:                              ; preds = %.preheader124
  %82 = getelementptr inbounds i8, ptr %10, i64 56
  %83 = getelementptr inbounds i8, ptr %1, i64 72
  %84 = getelementptr inbounds i8, ptr %9, i64 56
  br i1 %.not.not128, label %.preheader123.us, label %.preheader121

.preheader123.us:                                 ; preds = %.preheader123.lr.ph, %._crit_edge.us143
  %.3142.us = phi i64 [ %103, %._crit_edge.us143 ], [ 0, %.preheader123.lr.ph ]
  br label %85

85:                                               ; preds = %.preheader123.us, %85
  %.1110139.us = phi i64 [ 0, %.preheader123.us ], [ %102, %85 ]
  %86 = load ptr, ptr %82, align 8, !tbaa !5
  %87 = getelementptr inbounds double, ptr %86, i64 %.1110139.us
  %88 = load double, ptr %87, align 8, !tbaa !10
  %89 = load ptr, ptr %83, align 8, !tbaa !5
  %90 = getelementptr inbounds ptr, ptr %89, i64 %.3142.us
  %91 = load ptr, ptr %90, align 8, !tbaa !12
  %92 = getelementptr inbounds double, ptr %91, i64 %.1110139.us
  %93 = load double, ptr %92, align 8, !tbaa !10
  %94 = load ptr, ptr %84, align 8, !tbaa !5
  %95 = getelementptr inbounds double, ptr %94, i64 %.1110139.us
  %96 = load double, ptr %95, align 8, !tbaa !10
  %97 = fsub double %93, %96
  %98 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %97, ptr noundef %3)
  %99 = fadd double %88, %98
  %100 = load ptr, ptr %82, align 8, !tbaa !5
  %101 = getelementptr inbounds double, ptr %100, i64 %.1110139.us
  store double %99, ptr %101, align 8, !tbaa !10
  %102 = add nuw nsw i64 %.1110139.us, 1
  %exitcond158.not = icmp eq i64 %102, %.0111.in
  br i1 %exitcond158.not, label %._crit_edge.us143, label %85, !llvm.loop !20

._crit_edge.us143:                                ; preds = %85
  %103 = add nuw nsw i64 %.3142.us, 1
  %exitcond159.not = icmp eq i64 %103, %2
  br i1 %exitcond159.not, label %.preheader122, label %.preheader123.us, !llvm.loop !21

104:                                              ; preds = %104, %.lr.ph137.new
  %.2136 = phi i64 [ 0, %.lr.ph137.new ], [ %124, %104 ]
  %niter181 = phi i64 [ 0, %.lr.ph137.new ], [ %niter181.next.3, %104 ]
  %105 = load ptr, ptr %74, align 8, !tbaa !5
  %106 = getelementptr inbounds double, ptr %105, i64 %.2136
  %107 = load double, ptr %106, align 8, !tbaa !10
  %108 = fdiv double %107, %75
  store double %108, ptr %106, align 8, !tbaa !10
  %109 = or disjoint i64 %.2136, 1
  %110 = load ptr, ptr %74, align 8, !tbaa !5
  %111 = getelementptr inbounds double, ptr %110, i64 %109
  %112 = load double, ptr %111, align 8, !tbaa !10
  %113 = fdiv double %112, %75
  store double %113, ptr %111, align 8, !tbaa !10
  %114 = or disjoint i64 %.2136, 2
  %115 = load ptr, ptr %74, align 8, !tbaa !5
  %116 = getelementptr inbounds double, ptr %115, i64 %114
  %117 = load double, ptr %116, align 8, !tbaa !10
  %118 = fdiv double %117, %75
  store double %118, ptr %116, align 8, !tbaa !10
  %119 = or disjoint i64 %.2136, 3
  %120 = load ptr, ptr %74, align 8, !tbaa !5
  %121 = getelementptr inbounds double, ptr %120, i64 %119
  %122 = load double, ptr %121, align 8, !tbaa !10
  %123 = fdiv double %122, %75
  store double %123, ptr %121, align 8, !tbaa !10
  %124 = add nuw nsw i64 %.2136, 4
  %niter181.next.3 = add i64 %niter181, 4
  %niter181.ncmp.3 = icmp eq i64 %niter181.next.3, %unroll_iter180
  br i1 %niter181.ncmp.3, label %.preheader124.unr-lcssa, label %104, !llvm.loop !22

.preheader122:                                    ; preds = %._crit_edge.us143, %.preheader124
  br i1 %.not.not128, label %.lr.ph146, label %.preheader121

.lr.ph146:                                        ; preds = %.preheader122
  %125 = getelementptr inbounds i8, ptr %10, i64 56
  %126 = sitofp i64 %2 to double
  br label %132

.preheader121:                                    ; preds = %132, %.preheader125, %4, %.preheader126.lr.ph, %.preheader123.lr.ph, %.preheader122
  %127 = load i64, ptr %6, align 8, !tbaa !8
  %.not.not117147 = icmp sgt i64 %127, 0
  br i1 %.not.not117147, label %.lr.ph149, label %._crit_edge

.lr.ph149:                                        ; preds = %.preheader121
  %128 = getelementptr inbounds i8, ptr %9, i64 56
  %129 = getelementptr inbounds i8, ptr %0, i64 392
  %130 = getelementptr inbounds i8, ptr %10, i64 56
  %131 = getelementptr inbounds i8, ptr %0, i64 456
  br label %141

132:                                              ; preds = %.lr.ph146, %132
  %.4145 = phi i64 [ 0, %.lr.ph146 ], [ %140, %132 ]
  %133 = load ptr, ptr %125, align 8, !tbaa !5
  %134 = getelementptr inbounds double, ptr %133, i64 %.4145
  %135 = load double, ptr %134, align 8, !tbaa !10
  %136 = fdiv double %135, %126
  %137 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %136, ptr noundef %3)
  %138 = load ptr, ptr %125, align 8, !tbaa !5
  %139 = getelementptr inbounds double, ptr %138, i64 %.4145
  store double %137, ptr %139, align 8, !tbaa !10
  %140 = add nuw nsw i64 %.4145, 1
  %exitcond160.not = icmp eq i64 %140, %.0111.in
  br i1 %exitcond160.not, label %.preheader121, label %132, !llvm.loop !23

141:                                              ; preds = %.lr.ph149, %159
  %.5148 = phi i64 [ 0, %.lr.ph149 ], [ %160, %159 ]
  %142 = load ptr, ptr %128, align 8, !tbaa !5
  %143 = getelementptr inbounds double, ptr %142, i64 %.5148
  %144 = load double, ptr %143, align 8, !tbaa !10
  %145 = load ptr, ptr %129, align 8, !tbaa !5
  %146 = getelementptr inbounds double, ptr %145, i64 %.5148
  store double %144, ptr %146, align 8, !tbaa !10
  %147 = load ptr, ptr %130, align 8, !tbaa !5
  %148 = getelementptr inbounds double, ptr %147, i64 %.5148
  %149 = load double, ptr %148, align 8, !tbaa !10
  %150 = load ptr, ptr %131, align 8, !tbaa !5
  %151 = getelementptr inbounds double, ptr %150, i64 %.5148
  store double %149, ptr %151, align 8, !tbaa !10
  %152 = load ptr, ptr %131, align 8, !tbaa !5
  %153 = getelementptr inbounds double, ptr %152, i64 %.5148
  %154 = load double, ptr %153, align 8, !tbaa !10
  %155 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %154, double noundef 0.000000e+00)
  br i1 %155, label %156, label %159

156:                                              ; preds = %141
  %157 = load ptr, ptr %131, align 8, !tbaa !5
  %158 = getelementptr inbounds double, ptr %157, i64 %.5148
  store double 1.000000e+00, ptr %158, align 8, !tbaa !10
  br label %159

159:                                              ; preds = %141, %156
  %160 = add nuw nsw i64 %.5148, 1
  %161 = load i64, ptr %6, align 8, !tbaa !8
  %.not.not117 = icmp slt i64 %160, %161
  br i1 %.not.not117, label %141, label %._crit_edge, !llvm.loop !24

._crit_edge:                                      ; preds = %159, %.preheader121
  %162 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %3)
  br i1 %162, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %._crit_edge
  %163 = load i64, ptr %7, align 8, !tbaa !8
  %.not.not118150 = icmp sgt i64 %163, 0
  br i1 %.not.not118150, label %.lr.ph152, label %.loopexit

.lr.ph152:                                        ; preds = %.preheader
  %164 = getelementptr inbounds i8, ptr %9, i64 56
  %165 = getelementptr inbounds i8, ptr %0, i64 392
  %166 = getelementptr inbounds i8, ptr %0, i64 456
  %167 = getelementptr inbounds i8, ptr %10, i64 56
  br label %168

168:                                              ; preds = %.lr.ph152, %244
  %169 = phi i64 [ %163, %.lr.ph152 ], [ %246, %244 ]
  %.6151 = phi i64 [ 0, %.lr.ph152 ], [ %245, %244 ]
  %170 = add i64 %.6151, %14
  %171 = sub i64 %170, %169
  %172 = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !8
  %173 = mul nsw i64 %172, %171
  %174 = load ptr, ptr %11, align 8, !tbaa !5
  %175 = getelementptr i64, ptr %174, i64 %16
  %176 = getelementptr i64, ptr %175, i64 %173
  %177 = load i64, ptr %176, align 8, !tbaa !8
  switch i64 %177, label %244 [
    i64 0, label %178
    i64 3, label %200
  ]

178:                                              ; preds = %168
  %179 = load ptr, ptr %164, align 8, !tbaa !5
  %180 = load i64, ptr %6, align 8, !tbaa !8
  %181 = add nsw i64 %180, %.6151
  %182 = getelementptr inbounds double, ptr %179, i64 %181
  %183 = load double, ptr %182, align 8, !tbaa !10
  %184 = load ptr, ptr %165, align 8, !tbaa !5
  %185 = getelementptr inbounds double, ptr %184, i64 %181
  store double %183, ptr %185, align 8, !tbaa !10
  %186 = load ptr, ptr %167, align 8, !tbaa !5
  %187 = getelementptr inbounds double, ptr %186, i64 %181
  %188 = load double, ptr %187, align 8, !tbaa !10
  %189 = load ptr, ptr %166, align 8, !tbaa !5
  %190 = getelementptr inbounds double, ptr %189, i64 %181
  store double %188, ptr %190, align 8, !tbaa !10
  %191 = load ptr, ptr %166, align 8, !tbaa !5
  %192 = getelementptr double, ptr %191, i64 %180
  %193 = getelementptr double, ptr %192, i64 %.6151
  %194 = load double, ptr %193, align 8, !tbaa !10
  %195 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %194, double noundef 0.000000e+00)
  br i1 %195, label %196, label %244

196:                                              ; preds = %178
  %197 = load ptr, ptr %166, align 8, !tbaa !5
  %198 = load i64, ptr %6, align 8, !tbaa !8
  %199 = getelementptr double, ptr %197, i64 %198
  br label %.sink.split

200:                                              ; preds = %168
  %201 = load ptr, ptr %164, align 8, !tbaa !5
  %202 = load i64, ptr %6, align 8, !tbaa !8
  %203 = add nsw i64 %202, %.6151
  %204 = getelementptr inbounds double, ptr %201, i64 %203
  %205 = load double, ptr %204, align 8, !tbaa !10
  %206 = load ptr, ptr %165, align 8, !tbaa !5
  %207 = getelementptr inbounds double, ptr %206, i64 %203
  %208 = load double, ptr %207, align 8, !tbaa !10
  %209 = fsub double %205, %208
  %210 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %209, double noundef 0.000000e+00)
  br i1 %210, label %211, label %219

211:                                              ; preds = %200
  %212 = load ptr, ptr %166, align 8, !tbaa !5
  %213 = load i64, ptr %6, align 8, !tbaa !8
  %214 = getelementptr double, ptr %212, i64 %213
  %215 = getelementptr double, ptr %214, i64 %.6151
  %216 = load double, ptr %215, align 8, !tbaa !10
  %217 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %216, ptr noundef %3)
  %218 = sitofp i64 %217 to double
  br label %219

219:                                              ; preds = %211, %200
  %.0 = phi double [ %218, %211 ], [ %209, %200 ]
  %220 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %.0, double noundef 0.000000e+00)
  %.1 = select i1 %220, double 1.000000e+00, double %.0
  %221 = load ptr, ptr %166, align 8, !tbaa !5
  %222 = load i64, ptr %6, align 8, !tbaa !8
  %223 = getelementptr double, ptr %221, i64 %222
  %224 = getelementptr double, ptr %223, i64 %.6151
  %225 = load double, ptr %224, align 8, !tbaa !10
  %226 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %225, ptr noundef %3)
  %227 = sitofp i64 %226 to double
  %228 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.1, ptr noundef %3)
  %229 = fmul double %228, %227
  %230 = load ptr, ptr %166, align 8, !tbaa !5
  %231 = load i64, ptr %6, align 8, !tbaa !8
  %232 = getelementptr double, ptr %230, i64 %231
  %233 = getelementptr double, ptr %232, i64 %.6151
  store double %229, ptr %233, align 8, !tbaa !10
  %234 = load ptr, ptr %166, align 8, !tbaa !5
  %235 = getelementptr double, ptr %234, i64 %231
  %236 = getelementptr double, ptr %235, i64 %.6151
  %237 = load double, ptr %236, align 8, !tbaa !10
  %238 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %237, double noundef 0.000000e+00)
  br i1 %238, label %239, label %244

239:                                              ; preds = %219
  %240 = load ptr, ptr %166, align 8, !tbaa !5
  %241 = load i64, ptr %6, align 8, !tbaa !8
  %242 = getelementptr double, ptr %240, i64 %241
  br label %.sink.split

.sink.split:                                      ; preds = %239, %196
  %.sink171 = phi ptr [ %199, %196 ], [ %242, %239 ]
  %243 = getelementptr double, ptr %.sink171, i64 %.6151
  store double 1.000000e+00, ptr %243, align 8, !tbaa !10
  br label %244

244:                                              ; preds = %.sink.split, %178, %168, %219
  %245 = add nuw nsw i64 %.6151, 1
  %246 = load i64, ptr %7, align 8, !tbaa !8
  %.not.not118 = icmp slt i64 %245, %246
  br i1 %.not.not118, label %168, label %.loopexit, !llvm.loop !25

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) 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

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 noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #4

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

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

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

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

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

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

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


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