; 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.112 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [78 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 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) #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
declare dso_local void @_ZN11alglib_impl25mlpinitpreprocessorsparseEPNS_20multilayerperceptronEPNS_12sparsematrixElPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl31mlpinitpreprocessorsparsesubsetEPNS_20multilayerperceptronEPNS_12sparsematrixElPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) #4 {
  %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.112, 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_impl25mlpinitpreprocessorsparseEPNS_20multilayerperceptronEPNS_12sparsematrixElPNS_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 %492

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.113, 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.114, 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.115, 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 = %170, %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 %173

133:                                              ; preds = %128
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !15
  %138 = load i64, ptr %26, align 8, !tbaa !9
  %139 = getelementptr inbounds i64, ptr %137, i64 %138
  %140 = load i64, ptr %139, align 8, !tbaa !9
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %141, i32 0, i32 15
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %134, i64 noundef %140, ptr noundef %142, ptr noundef %143)
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %144

144:                                              ; preds = %166, %133
  %145 = load i64, ptr %27, align 8, !tbaa !9
  %146 = load i64, ptr %14, align 8, !tbaa !9
  %147 = icmp sle i64 %145, %146
  br i1 %147, label %148, label %169

148:                                              ; preds = %144
  %149 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !15
  %151 = load i64, ptr %27, align 8, !tbaa !9
  %152 = getelementptr inbounds double, ptr %150, i64 %151
  %153 = load double, ptr %152, align 8, !tbaa !18
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %154, i32 0, i32 15
  %156 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %155, i32 0, i32 4
  %157 = load ptr, ptr %156, align 8, !tbaa !15
  %158 = load i64, ptr %27, align 8, !tbaa !9
  %159 = getelementptr inbounds double, ptr %157, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !18
  %161 = fadd double %153, %160
  %162 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %163 = load ptr, ptr %162, align 8, !tbaa !15
  %164 = load i64, ptr %27, align 8, !tbaa !9
  %165 = getelementptr inbounds double, ptr %163, i64 %164
  store double %161, ptr %165, align 8, !tbaa !18
  br label %166

166:                                              ; preds = %148
  %167 = load i64, ptr %27, align 8, !tbaa !9
  %168 = add nsw i64 %167, 1
  store i64 %168, ptr %27, align 8, !tbaa !9
  br label %144, !llvm.loop !21

169:                                              ; preds = %144
  br label %170

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

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

174:                                              ; preds = %191, %173
  %175 = load i64, ptr %26, align 8, !tbaa !9
  %176 = load i64, ptr %14, align 8, !tbaa !9
  %177 = icmp sle i64 %175, %176
  br i1 %177, label %178, label %194

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

191:                                              ; preds = %178
  %192 = load i64, ptr %26, align 8, !tbaa !9
  %193 = add nsw i64 %192, 1
  store i64 %193, ptr %26, align 8, !tbaa !9
  br label %174, !llvm.loop !23

194:                                              ; preds = %174
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %195

195:                                              ; preds = %245, %194
  %196 = load i64, ptr %26, align 8, !tbaa !9
  %197 = load i64, ptr %11, align 8, !tbaa !9
  %198 = sub nsw i64 %197, 1
  %199 = icmp sle i64 %196, %198
  br i1 %199, label %200, label %248

200:                                              ; preds = %195
  %201 = load ptr, ptr %8, align 8, !tbaa !5
  %202 = load ptr, ptr %10, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %202, i32 0, i32 4
  %204 = load ptr, ptr %203, align 8, !tbaa !15
  %205 = load i64, ptr %26, align 8, !tbaa !9
  %206 = getelementptr inbounds i64, ptr %204, i64 %205
  %207 = load i64, ptr %206, align 8, !tbaa !9
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %208, i32 0, i32 15
  %210 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %201, i64 noundef %207, ptr noundef %209, ptr noundef %210)
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %211

211:                                              ; preds = %241, %200
  %212 = load i64, ptr %27, align 8, !tbaa !9
  %213 = load i64, ptr %14, align 8, !tbaa !9
  %214 = icmp sle i64 %212, %213
  br i1 %214, label %215, label %244

215:                                              ; preds = %211
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %217 = load ptr, ptr %216, align 8, !tbaa !15
  %218 = load i64, ptr %27, align 8, !tbaa !9
  %219 = getelementptr inbounds double, ptr %217, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !18
  %221 = load ptr, ptr %7, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %221, i32 0, i32 15
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %222, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !15
  %225 = load i64, ptr %27, align 8, !tbaa !9
  %226 = getelementptr inbounds double, ptr %224, i64 %225
  %227 = load double, ptr %226, align 8, !tbaa !18
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !15
  %230 = load i64, ptr %27, align 8, !tbaa !9
  %231 = getelementptr inbounds double, ptr %229, i64 %230
  %232 = load double, ptr %231, align 8, !tbaa !18
  %233 = fsub double %227, %232
  %234 = load ptr, ptr %12, align 8, !tbaa !5
  %235 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %233, ptr noundef %234)
  %236 = fadd double %220, %235
  %237 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %238 = load ptr, ptr %237, align 8, !tbaa !15
  %239 = load i64, ptr %27, align 8, !tbaa !9
  %240 = getelementptr inbounds double, ptr %238, i64 %239
  store double %236, ptr %240, align 8, !tbaa !18
  br label %241

241:                                              ; preds = %215
  %242 = load i64, ptr %27, align 8, !tbaa !9
  %243 = add nsw i64 %242, 1
  store i64 %243, ptr %27, align 8, !tbaa !9
  br label %211, !llvm.loop !24

244:                                              ; preds = %211
  br label %245

245:                                              ; preds = %244
  %246 = load i64, ptr %26, align 8, !tbaa !9
  %247 = add nsw i64 %246, 1
  store i64 %247, ptr %26, align 8, !tbaa !9
  br label %195, !llvm.loop !25

248:                                              ; preds = %195
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %249

249:                                              ; preds = %268, %248
  %250 = load i64, ptr %26, align 8, !tbaa !9
  %251 = load i64, ptr %14, align 8, !tbaa !9
  %252 = icmp sle i64 %250, %251
  br i1 %252, label %253, label %271

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

268:                                              ; preds = %253
  %269 = load i64, ptr %26, align 8, !tbaa !9
  %270 = add nsw i64 %269, 1
  store i64 %270, ptr %26, align 8, !tbaa !9
  br label %249, !llvm.loop !26

271:                                              ; preds = %249
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %272

272:                                              ; preds = %316, %271
  %273 = load i64, ptr %26, align 8, !tbaa !9
  %274 = load i64, ptr %15, align 8, !tbaa !9
  %275 = sub nsw i64 %274, 1
  %276 = icmp sle i64 %273, %275
  br i1 %276, label %277, label %319

277:                                              ; preds = %272
  %278 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %279 = load ptr, ptr %278, align 8, !tbaa !15
  %280 = load i64, ptr %26, align 8, !tbaa !9
  %281 = getelementptr inbounds double, ptr %279, i64 %280
  %282 = load double, ptr %281, align 8, !tbaa !18
  %283 = load ptr, ptr %7, align 8, !tbaa !5
  %284 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %283, i32 0, i32 7
  %285 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %284, i32 0, i32 4
  %286 = load ptr, ptr %285, align 8, !tbaa !15
  %287 = load i64, ptr %26, align 8, !tbaa !9
  %288 = getelementptr inbounds double, ptr %286, i64 %287
  store double %282, ptr %288, align 8, !tbaa !18
  %289 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %290 = load ptr, ptr %289, align 8, !tbaa !15
  %291 = load i64, ptr %26, align 8, !tbaa !9
  %292 = getelementptr inbounds double, ptr %290, i64 %291
  %293 = load double, ptr %292, 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
  store double %293, ptr %299, align 8, !tbaa !18
  %300 = load ptr, ptr %7, align 8, !tbaa !5
  %301 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %300, i32 0, i32 8
  %302 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %301, i32 0, i32 4
  %303 = load ptr, ptr %302, align 8, !tbaa !15
  %304 = load i64, ptr %26, align 8, !tbaa !9
  %305 = getelementptr inbounds double, ptr %303, i64 %304
  %306 = load double, ptr %305, align 8, !tbaa !18
  %307 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %306, double noundef 0.000000e+00)
  br i1 %307, label %308, label %315

308:                                              ; preds = %277
  %309 = load ptr, ptr %7, align 8, !tbaa !5
  %310 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %309, i32 0, i32 8
  %311 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %310, i32 0, i32 4
  %312 = load ptr, ptr %311, align 8, !tbaa !15
  %313 = load i64, ptr %26, align 8, !tbaa !9
  %314 = getelementptr inbounds double, ptr %312, i64 %313
  store double 1.000000e+00, ptr %314, align 8, !tbaa !18
  br label %315

315:                                              ; preds = %308, %277
  br label %316

316:                                              ; preds = %315
  %317 = load i64, ptr %26, align 8, !tbaa !9
  %318 = add nsw i64 %317, 1
  store i64 %318, ptr %26, align 8, !tbaa !9
  br label %272, !llvm.loop !27

319:                                              ; preds = %272
  %320 = load ptr, ptr %7, align 8, !tbaa !5
  %321 = load ptr, ptr %12, align 8, !tbaa !5
  %322 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %320, ptr noundef %321)
  br i1 %322, label %490, label %323

323:                                              ; preds = %319
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %324

324:                                              ; preds = %486, %323
  %325 = load i64, ptr %26, align 8, !tbaa !9
  %326 = load i64, ptr %16, align 8, !tbaa !9
  %327 = sub nsw i64 %326, 1
  %328 = icmp sle i64 %325, %327
  br i1 %328, label %329, label %489

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

349:                                              ; preds = %329
  %350 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %351 = load ptr, ptr %350, align 8, !tbaa !15
  %352 = load i64, ptr %15, align 8, !tbaa !9
  %353 = load i64, ptr %26, align 8, !tbaa !9
  %354 = add nsw i64 %352, %353
  %355 = getelementptr inbounds double, ptr %351, i64 %354
  %356 = load double, ptr %355, align 8, !tbaa !18
  %357 = load ptr, ptr %7, align 8, !tbaa !5
  %358 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %357, i32 0, i32 7
  %359 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %358, 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
  store double %356, ptr %364, align 8, !tbaa !18
  %365 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %366 = load ptr, ptr %365, align 8, !tbaa !15
  %367 = load i64, ptr %15, align 8, !tbaa !9
  %368 = load i64, ptr %26, align 8, !tbaa !9
  %369 = add nsw i64 %367, %368
  %370 = getelementptr inbounds double, ptr %366, i64 %369
  %371 = load double, ptr %370, align 8, !tbaa !18
  %372 = load ptr, ptr %7, 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 !15
  %376 = load i64, ptr %15, align 8, !tbaa !9
  %377 = load i64, ptr %26, align 8, !tbaa !9
  %378 = add nsw i64 %376, %377
  %379 = getelementptr inbounds double, ptr %375, i64 %378
  store double %371, ptr %379, align 8, !tbaa !18
  %380 = load ptr, ptr %7, align 8, !tbaa !5
  %381 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %380, i32 0, i32 8
  %382 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %381, i32 0, i32 4
  %383 = load ptr, ptr %382, align 8, !tbaa !15
  %384 = load i64, ptr %15, align 8, !tbaa !9
  %385 = load i64, ptr %26, align 8, !tbaa !9
  %386 = add nsw i64 %384, %385
  %387 = getelementptr inbounds double, ptr %383, i64 %386
  %388 = load double, ptr %387, align 8, !tbaa !18
  %389 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %388, double noundef 0.000000e+00)
  br i1 %389, label %390, label %399

390:                                              ; preds = %349
  %391 = load ptr, ptr %7, align 8, !tbaa !5
  %392 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %391, i32 0, i32 8
  %393 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %392, i32 0, i32 4
  %394 = load ptr, ptr %393, align 8, !tbaa !15
  %395 = load i64, ptr %15, align 8, !tbaa !9
  %396 = load i64, ptr %26, align 8, !tbaa !9
  %397 = add nsw i64 %395, %396
  %398 = getelementptr inbounds double, ptr %394, i64 %397
  store double 1.000000e+00, ptr %398, align 8, !tbaa !18
  br label %399

399:                                              ; preds = %390, %349
  br label %400

400:                                              ; preds = %399, %329
  %401 = load i64, ptr %21, align 8, !tbaa !9
  %402 = icmp eq i64 %401, 3
  br i1 %402, label %403, label %485

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

423:                                              ; preds = %403
  %424 = load ptr, ptr %7, align 8, !tbaa !5
  %425 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %424, i32 0, i32 8
  %426 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %425, i32 0, i32 4
  %427 = load ptr, ptr %426, align 8, !tbaa !15
  %428 = load i64, ptr %15, align 8, !tbaa !9
  %429 = load i64, ptr %26, align 8, !tbaa !9
  %430 = add nsw i64 %428, %429
  %431 = getelementptr inbounds double, ptr %427, i64 %430
  %432 = load double, ptr %431, align 8, !tbaa !18
  %433 = load ptr, ptr %12, align 8, !tbaa !5
  %434 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %432, ptr noundef %433)
  %435 = sitofp i64 %434 to double
  store double %435, ptr %24, align 8, !tbaa !18
  br label %436

436:                                              ; preds = %423, %403
  %437 = load double, ptr %24, align 8, !tbaa !18
  %438 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %437, double noundef 0.000000e+00)
  br i1 %438, label %439, label %440

439:                                              ; preds = %436
  store double 1.000000e+00, ptr %24, align 8, !tbaa !18
  br label %440

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

475:                                              ; preds = %440
  %476 = load ptr, ptr %7, align 8, !tbaa !5
  %477 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %476, i32 0, i32 8
  %478 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %477, i32 0, i32 4
  %479 = load ptr, ptr %478, align 8, !tbaa !15
  %480 = load i64, ptr %15, align 8, !tbaa !9
  %481 = load i64, ptr %26, align 8, !tbaa !9
  %482 = add nsw i64 %480, %481
  %483 = getelementptr inbounds double, ptr %479, i64 %482
  store double 1.000000e+00, ptr %483, align 8, !tbaa !18
  br label %484

484:                                              ; preds = %475, %440
  br label %485

485:                                              ; preds = %484, %400
  br label %486

486:                                              ; preds = %485
  %487 = load i64, ptr %26, align 8, !tbaa !9
  %488 = add nsw i64 %487, 1
  store i64 %488, ptr %26, align 8, !tbaa !9
  br label %324, !llvm.loop !28

489:                                              ; preds = %324
  br label %490

490:                                              ; preds = %489, %319
  %491 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %491)
  store i32 0, ptr %28, align 4
  br label %492

492:                                              ; preds = %490, %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
  %493 = load i32, ptr %28, align 4
  switch i32 %493, label %495 [
    i32 0, label %494
    i32 1, label %494
  ]

494:                                              ; preds = %492, %492
  ret void

495:                                              ; preds = %492
  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 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 = { 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 #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.112 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [78 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 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 #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
declare dso_local void @_ZN11alglib_impl25mlpinitpreprocessorsparseEPNS_20multilayerperceptronEPNS_12sparsematrixElPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl31mlpinitpreprocessorsparsesubsetEPNS_20multilayerperceptronEPNS_12sparsematrixElPNS_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 #4 {
  %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.112, ptr noundef %5)
  %14 = icmp slt i64 %4, 0
  br i1 %14, label %15, label %16

15:                                               ; preds = %6
  call void @_ZN11alglib_impl25mlpinitpreprocessorsparseEPNS_20multilayerperceptronEPNS_12sparsematrixElPNS_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.113, ptr noundef %5)
  %.not.not158.not = icmp eq i64 %4, 0
  br i1 %.not.not158.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
  %.0137159 = phi i64 [ 0, %.lr.ph ], [ %29, %20 ]
  %21 = load ptr, ptr %19, align 8, !tbaa !13
  %22 = getelementptr inbounds i64, ptr %21, i64 %.0137159
  %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.114, ptr noundef %5)
  %25 = load ptr, ptr %19, align 8, !tbaa !13
  %26 = getelementptr inbounds i64, ptr %25, i64 %.0137159
  %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.115, ptr noundef %5)
  %29 = add nuw nsw i64 %.0137159, 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
  %.0139.in = add nsw i64 %39, %37
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %.0139.in, ptr noundef %5)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.0139.in, ptr noundef %5)
  %.not.not144160 = icmp sgt i64 %.0139.in, 0
  br i1 %.not.not144160, label %.lr.ph163, label %.preheader157.thread

.lr.ph163:                                        ; 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 %.0139.in, 1
  %44 = icmp eq i64 %43, 0
  br i1 %44, label %.preheader157.unr-lcssa, label %.lr.ph163.new

.lr.ph163.new:                                    ; preds = %.lr.ph163
  %unroll_iter = and i64 %.0139.in, 9223372036854775806
  br label %85

.preheader157.unr-lcssa:                          ; preds = %85, %.lr.ph163
  %.1138161.unr = phi i64 [ 0, %.lr.ph163 ], [ %95, %85 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader157, label %.preheader157.epilog-lcssa

.preheader157.epilog-lcssa:                       ; preds = %.preheader157.unr-lcssa
  %45 = load ptr, ptr %40, align 8, !tbaa !13
  %46 = getelementptr inbounds double, ptr %45, i64 %.1138161.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 %.1138161.unr
  store double 0.000000e+00, ptr %48, align 8, !tbaa !17
  br label %.preheader157

.preheader157:                                    ; preds = %.preheader157.unr-lcssa, %.preheader157.epilog-lcssa
  br i1 %.not.not158.not, label %.preheader156.thread208, label %.lr.ph171

.preheader157.thread:                             ; preds = %._crit_edge
  br i1 %.not.not158.not, label %.preheader153, label %.lr.ph171.thread

.lr.ph171.thread:                                 ; preds = %.preheader157.thread
  %49 = getelementptr inbounds i8, ptr %3, i64 56
  %50 = getelementptr inbounds i8, ptr %0, i64 864
  br label %.lr.ph171.split.preheader

.lr.ph171:                                        ; preds = %.preheader157
  %51 = getelementptr inbounds i8, ptr %3, i64 56
  %52 = getelementptr inbounds i8, ptr %0, i64 864
  %53 = getelementptr inbounds i8, ptr %11, i64 56
  %54 = getelementptr inbounds i8, ptr %0, i64 920
  br i1 %.not.not144160, label %.lr.ph167.us.preheader, label %.lr.ph171.split.preheader

.lr.ph171.split.preheader:                        ; preds = %.lr.ph171.thread, %.lr.ph171
  %55 = phi ptr [ %50, %.lr.ph171.thread ], [ %52, %.lr.ph171 ]
  %56 = phi ptr [ %49, %.lr.ph171.thread ], [ %51, %.lr.ph171 ]
  %smax = call i64 @llvm.smax.i64(i64 %4, i64 1)
  br label %.lr.ph171.split

.lr.ph167.us.preheader:                           ; preds = %.lr.ph171
  %smax198 = call i64 @llvm.smax.i64(i64 %4, i64 1)
  %xtraiter217 = and i64 %.0139.in, 1
  %57 = icmp eq i64 %43, 0
  %unroll_iter219 = and i64 %.0139.in, 9223372036854775806
  %lcmp.mod218.not = icmp eq i64 %xtraiter217, 0
  br label %.lr.ph167.us

.lr.ph167.us:                                     ; preds = %.lr.ph167.us.preheader, %._crit_edge168.us
  %.2170.us = phi i64 [ %84, %._crit_edge168.us ], [ 0, %.lr.ph167.us.preheader ]
  %58 = load ptr, ptr %51, align 8, !tbaa !13
  %59 = getelementptr inbounds i64, ptr %58, i64 %.2170.us
  %60 = load i64, ptr %59, align 8, !tbaa !14
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %1, i64 noundef %60, ptr noundef nonnull %52, ptr noundef %5)
  br i1 %57, label %._crit_edge168.us.unr-lcssa, label %.lr.ph167.us.new

.lr.ph167.us.new:                                 ; preds = %.lr.ph167.us, %.lr.ph167.us.new
  %.0165.us = phi i64 [ %76, %.lr.ph167.us.new ], [ 0, %.lr.ph167.us ]
  %niter220 = phi i64 [ %niter220.next.1, %.lr.ph167.us.new ], [ 0, %.lr.ph167.us ]
  %61 = load ptr, ptr %53, align 8, !tbaa !13
  %62 = getelementptr inbounds double, ptr %61, i64 %.0165.us
  %63 = load double, ptr %62, align 8, !tbaa !17
  %64 = load ptr, ptr %54, align 8, !tbaa !13
  %65 = getelementptr inbounds double, ptr %64, i64 %.0165.us
  %66 = load double, ptr %65, align 8, !tbaa !17
  %67 = fadd double %63, %66
  store double %67, ptr %62, align 8, !tbaa !17
  %68 = or disjoint i64 %.0165.us, 1
  %69 = load ptr, ptr %53, align 8, !tbaa !13
  %70 = getelementptr inbounds double, ptr %69, i64 %68
  %71 = load double, ptr %70, align 8, !tbaa !17
  %72 = load ptr, ptr %54, align 8, !tbaa !13
  %73 = getelementptr inbounds double, ptr %72, i64 %68
  %74 = load double, ptr %73, align 8, !tbaa !17
  %75 = fadd double %71, %74
  store double %75, ptr %70, align 8, !tbaa !17
  %76 = add nuw nsw i64 %.0165.us, 2
  %niter220.next.1 = add i64 %niter220, 2
  %niter220.ncmp.1 = icmp eq i64 %niter220.next.1, %unroll_iter219
  br i1 %niter220.ncmp.1, label %._crit_edge168.us.unr-lcssa, label %.lr.ph167.us.new, !llvm.loop !19

._crit_edge168.us.unr-lcssa:                      ; preds = %.lr.ph167.us.new, %.lr.ph167.us
  %.0165.us.unr = phi i64 [ 0, %.lr.ph167.us ], [ %76, %.lr.ph167.us.new ]
  br i1 %lcmp.mod218.not, label %._crit_edge168.us, label %._crit_edge168.us.epilog-lcssa

._crit_edge168.us.epilog-lcssa:                   ; preds = %._crit_edge168.us.unr-lcssa
  %77 = load ptr, ptr %53, align 8, !tbaa !13
  %78 = getelementptr inbounds double, ptr %77, i64 %.0165.us.unr
  %79 = load double, ptr %78, align 8, !tbaa !17
  %80 = load ptr, ptr %54, align 8, !tbaa !13
  %81 = getelementptr inbounds double, ptr %80, i64 %.0165.us.unr
  %82 = load double, ptr %81, align 8, !tbaa !17
  %83 = fadd double %79, %82
  store double %83, ptr %78, align 8, !tbaa !17
  br label %._crit_edge168.us

._crit_edge168.us:                                ; preds = %._crit_edge168.us.unr-lcssa, %._crit_edge168.us.epilog-lcssa
  %84 = add nuw nsw i64 %.2170.us, 1
  %exitcond199.not = icmp eq i64 %84, %smax198
  br i1 %exitcond199.not, label %.preheader156, label %.lr.ph167.us, !llvm.loop !20

85:                                               ; preds = %85, %.lr.ph163.new
  %.1138161 = phi i64 [ 0, %.lr.ph163.new ], [ %95, %85 ]
  %niter = phi i64 [ 0, %.lr.ph163.new ], [ %niter.next.1, %85 ]
  %86 = load ptr, ptr %40, align 8, !tbaa !13
  %87 = getelementptr inbounds double, ptr %86, i64 %.1138161
  store double 0.000000e+00, ptr %87, align 8, !tbaa !17
  %88 = load ptr, ptr %41, align 8, !tbaa !13
  %89 = getelementptr inbounds double, ptr %88, i64 %.1138161
  store double 0.000000e+00, ptr %89, align 8, !tbaa !17
  %90 = or disjoint i64 %.1138161, 1
  %91 = load ptr, ptr %40, align 8, !tbaa !13
  %92 = getelementptr inbounds double, ptr %91, i64 %90
  store double 0.000000e+00, ptr %92, align 8, !tbaa !17
  %93 = load ptr, ptr %41, align 8, !tbaa !13
  %94 = getelementptr inbounds double, ptr %93, i64 %90
  store double 0.000000e+00, ptr %94, align 8, !tbaa !17
  %95 = add nuw nsw i64 %.1138161, 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 %.preheader157.unr-lcssa, label %85, !llvm.loop !21

.preheader156:                                    ; preds = %.lr.ph171.split, %._crit_edge168.us
  br i1 %.not.not144160, label %.lr.ph174, label %.preheader155.thread207

.preheader156.thread208:                          ; preds = %.preheader157
  br i1 %.not.not144160, label %.lr.ph174, label %.preheader153

.lr.ph174:                                        ; preds = %.preheader156.thread208, %.preheader156
  %96 = getelementptr inbounds i8, ptr %11, i64 56
  %97 = uitofp nneg i64 %4 to double
  %98 = add i64 %39, %37
  %99 = add i64 %98, -1
  %xtraiter222 = and i64 %.0139.in, 3
  %100 = icmp ult i64 %99, 3
  br i1 %100, label %.preheader155.unr-lcssa, label %.lr.ph174.new

.lr.ph174.new:                                    ; preds = %.lr.ph174
  %unroll_iter224 = and i64 %.0139.in, -4
  br label %139

.lr.ph171.split:                                  ; preds = %.lr.ph171.split.preheader, %.lr.ph171.split
  %.2170 = phi i64 [ %104, %.lr.ph171.split ], [ 0, %.lr.ph171.split.preheader ]
  %101 = load ptr, ptr %56, align 8, !tbaa !13
  %102 = getelementptr inbounds i64, ptr %101, i64 %.2170
  %103 = load i64, ptr %102, align 8, !tbaa !14
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %1, i64 noundef %103, ptr noundef nonnull %55, ptr noundef %5)
  %104 = add nuw nsw i64 %.2170, 1
  %exitcond196.not = icmp eq i64 %104, %smax
  br i1 %exitcond196.not, label %.preheader156, label %.lr.ph171.split, !llvm.loop !20

.preheader155.unr-lcssa:                          ; preds = %139, %.lr.ph174
  %.3173.unr = phi i64 [ 0, %.lr.ph174 ], [ %159, %139 ]
  %lcmp.mod223.not = icmp eq i64 %xtraiter222, 0
  br i1 %lcmp.mod223.not, label %.preheader155, label %.epil.preheader221

.epil.preheader221:                               ; preds = %.preheader155.unr-lcssa, %.epil.preheader221
  %.3173.epil = phi i64 [ %109, %.epil.preheader221 ], [ %.3173.unr, %.preheader155.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader221 ], [ 0, %.preheader155.unr-lcssa ]
  %105 = load ptr, ptr %96, align 8, !tbaa !13
  %106 = getelementptr inbounds double, ptr %105, i64 %.3173.epil
  %107 = load double, ptr %106, align 8, !tbaa !17
  %108 = fdiv double %107, %97
  store double %108, ptr %106, align 8, !tbaa !17
  %109 = add nuw nsw i64 %.3173.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter222
  br i1 %epil.iter.cmp.not, label %.preheader155, label %.epil.preheader221, !llvm.loop !22

.preheader155:                                    ; preds = %.epil.preheader221, %.preheader155.unr-lcssa
  br i1 %.not.not158.not, label %.preheader154, label %.lr.ph182

.preheader155.thread207:                          ; preds = %.preheader156
  br i1 %.not.not158.not, label %.preheader153, label %.lr.ph182.thread

.lr.ph182.thread:                                 ; preds = %.preheader155.thread207
  %110 = getelementptr inbounds i8, ptr %3, i64 56
  %111 = getelementptr inbounds i8, ptr %0, i64 864
  br label %.lr.ph182.split.preheader

.lr.ph182:                                        ; preds = %.preheader155
  %112 = getelementptr inbounds i8, ptr %3, i64 56
  %113 = getelementptr inbounds i8, ptr %0, i64 864
  %114 = getelementptr inbounds i8, ptr %12, i64 56
  %115 = getelementptr inbounds i8, ptr %0, i64 920
  %116 = getelementptr inbounds i8, ptr %11, i64 56
  br i1 %.not.not144160, label %.lr.ph178.us.preheader, label %.lr.ph182.split.preheader

.lr.ph182.split.preheader:                        ; preds = %.lr.ph182.thread, %.lr.ph182
  %117 = phi ptr [ %111, %.lr.ph182.thread ], [ %113, %.lr.ph182 ]
  %118 = phi ptr [ %110, %.lr.ph182.thread ], [ %112, %.lr.ph182 ]
  %smax201 = call i64 @llvm.smax.i64(i64 %4, i64 1)
  br label %.lr.ph182.split

.lr.ph178.us.preheader:                           ; preds = %.lr.ph182
  %smax204 = call i64 @llvm.smax.i64(i64 %4, i64 1)
  br label %.lr.ph178.us

.lr.ph178.us:                                     ; preds = %.lr.ph178.us.preheader, %._crit_edge179.us
  %.4181.us = phi i64 [ %138, %._crit_edge179.us ], [ 0, %.lr.ph178.us.preheader ]
  %119 = load ptr, ptr %112, align 8, !tbaa !13
  %120 = getelementptr inbounds i64, ptr %119, i64 %.4181.us
  %121 = load i64, ptr %120, align 8, !tbaa !14
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %1, i64 noundef %121, ptr noundef nonnull %113, ptr noundef %5)
  br label %122

122:                                              ; preds = %.lr.ph178.us, %122
  %.1176.us = phi i64 [ 0, %.lr.ph178.us ], [ %137, %122 ]
  %123 = load ptr, ptr %114, align 8, !tbaa !13
  %124 = getelementptr inbounds double, ptr %123, i64 %.1176.us
  %125 = load double, ptr %124, align 8, !tbaa !17
  %126 = load ptr, ptr %115, align 8, !tbaa !13
  %127 = getelementptr inbounds double, ptr %126, i64 %.1176.us
  %128 = load double, ptr %127, align 8, !tbaa !17
  %129 = load ptr, ptr %116, align 8, !tbaa !13
  %130 = getelementptr inbounds double, ptr %129, i64 %.1176.us
  %131 = load double, ptr %130, align 8, !tbaa !17
  %132 = fsub double %128, %131
  %133 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %132, ptr noundef %5)
  %134 = fadd double %125, %133
  %135 = load ptr, ptr %114, align 8, !tbaa !13
  %136 = getelementptr inbounds double, ptr %135, i64 %.1176.us
  store double %134, ptr %136, align 8, !tbaa !17
  %137 = add nuw nsw i64 %.1176.us, 1
  %exitcond203.not = icmp eq i64 %137, %.0139.in
  br i1 %exitcond203.not, label %._crit_edge179.us, label %122, !llvm.loop !24

._crit_edge179.us:                                ; preds = %122
  %138 = add nuw nsw i64 %.4181.us, 1
  %exitcond205.not = icmp eq i64 %138, %smax204
  br i1 %exitcond205.not, label %.preheader154, label %.lr.ph178.us, !llvm.loop !25

139:                                              ; preds = %139, %.lr.ph174.new
  %.3173 = phi i64 [ 0, %.lr.ph174.new ], [ %159, %139 ]
  %niter225 = phi i64 [ 0, %.lr.ph174.new ], [ %niter225.next.3, %139 ]
  %140 = load ptr, ptr %96, align 8, !tbaa !13
  %141 = getelementptr inbounds double, ptr %140, i64 %.3173
  %142 = load double, ptr %141, align 8, !tbaa !17
  %143 = fdiv double %142, %97
  store double %143, ptr %141, align 8, !tbaa !17
  %144 = or disjoint i64 %.3173, 1
  %145 = load ptr, ptr %96, align 8, !tbaa !13
  %146 = getelementptr inbounds double, ptr %145, i64 %144
  %147 = load double, ptr %146, align 8, !tbaa !17
  %148 = fdiv double %147, %97
  store double %148, ptr %146, align 8, !tbaa !17
  %149 = or disjoint i64 %.3173, 2
  %150 = load ptr, ptr %96, align 8, !tbaa !13
  %151 = getelementptr inbounds double, ptr %150, i64 %149
  %152 = load double, ptr %151, align 8, !tbaa !17
  %153 = fdiv double %152, %97
  store double %153, ptr %151, align 8, !tbaa !17
  %154 = or disjoint i64 %.3173, 3
  %155 = load ptr, ptr %96, align 8, !tbaa !13
  %156 = getelementptr inbounds double, ptr %155, i64 %154
  %157 = load double, ptr %156, align 8, !tbaa !17
  %158 = fdiv double %157, %97
  store double %158, ptr %156, align 8, !tbaa !17
  %159 = add nuw nsw i64 %.3173, 4
  %niter225.next.3 = add i64 %niter225, 4
  %niter225.ncmp.3 = icmp eq i64 %niter225.next.3, %unroll_iter224
  br i1 %niter225.ncmp.3, label %.preheader155.unr-lcssa, label %139, !llvm.loop !26

.preheader154:                                    ; preds = %.lr.ph182.split, %._crit_edge179.us, %.preheader155
  br i1 %.not.not144160, label %.lr.ph185, label %.preheader153

.lr.ph185:                                        ; preds = %.preheader154
  %160 = getelementptr inbounds i8, ptr %12, i64 56
  %161 = uitofp nneg i64 %4 to double
  br label %171

.lr.ph182.split:                                  ; preds = %.lr.ph182.split.preheader, %.lr.ph182.split
  %.4181 = phi i64 [ %165, %.lr.ph182.split ], [ 0, %.lr.ph182.split.preheader ]
  %162 = load ptr, ptr %118, align 8, !tbaa !13
  %163 = getelementptr inbounds i64, ptr %162, i64 %.4181
  %164 = load i64, ptr %163, align 8, !tbaa !14
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %1, i64 noundef %164, ptr noundef nonnull %117, ptr noundef %5)
  %165 = add nuw nsw i64 %.4181, 1
  %exitcond202.not = icmp eq i64 %165, %smax201
  br i1 %exitcond202.not, label %.preheader154, label %.lr.ph182.split, !llvm.loop !25

.preheader153:                                    ; preds = %171, %.preheader156.thread208, %.preheader157.thread, %.preheader155.thread207, %.preheader154
  %166 = load i64, ptr %8, align 8, !tbaa !14
  %.not.not149186 = icmp sgt i64 %166, 0
  br i1 %.not.not149186, label %.lr.ph188, label %._crit_edge189

.lr.ph188:                                        ; preds = %.preheader153
  %167 = getelementptr inbounds i8, ptr %11, i64 56
  %168 = getelementptr inbounds i8, ptr %0, i64 392
  %169 = getelementptr inbounds i8, ptr %12, i64 56
  %170 = getelementptr inbounds i8, ptr %0, i64 456
  br label %180

171:                                              ; preds = %.lr.ph185, %171
  %.5184 = phi i64 [ 0, %.lr.ph185 ], [ %179, %171 ]
  %172 = load ptr, ptr %160, align 8, !tbaa !13
  %173 = getelementptr inbounds double, ptr %172, i64 %.5184
  %174 = load double, ptr %173, align 8, !tbaa !17
  %175 = fdiv double %174, %161
  %176 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %175, ptr noundef %5)
  %177 = load ptr, ptr %160, align 8, !tbaa !13
  %178 = getelementptr inbounds double, ptr %177, i64 %.5184
  store double %176, ptr %178, align 8, !tbaa !17
  %179 = add nuw nsw i64 %.5184, 1
  %exitcond206.not = icmp eq i64 %179, %.0139.in
  br i1 %exitcond206.not, label %.preheader153, label %171, !llvm.loop !27

180:                                              ; preds = %.lr.ph188, %198
  %.6187 = phi i64 [ 0, %.lr.ph188 ], [ %199, %198 ]
  %181 = load ptr, ptr %167, align 8, !tbaa !13
  %182 = getelementptr inbounds double, ptr %181, i64 %.6187
  %183 = load double, ptr %182, align 8, !tbaa !17
  %184 = load ptr, ptr %168, align 8, !tbaa !13
  %185 = getelementptr inbounds double, ptr %184, i64 %.6187
  store double %183, ptr %185, align 8, !tbaa !17
  %186 = load ptr, ptr %169, align 8, !tbaa !13
  %187 = getelementptr inbounds double, ptr %186, i64 %.6187
  %188 = load double, ptr %187, align 8, !tbaa !17
  %189 = load ptr, ptr %170, align 8, !tbaa !13
  %190 = getelementptr inbounds double, ptr %189, i64 %.6187
  store double %188, ptr %190, align 8, !tbaa !17
  %191 = load ptr, ptr %170, align 8, !tbaa !13
  %192 = getelementptr inbounds double, ptr %191, i64 %.6187
  %193 = load double, ptr %192, align 8, !tbaa !17
  %194 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %193, double noundef 0.000000e+00)
  br i1 %194, label %195, label %198

195:                                              ; preds = %180
  %196 = load ptr, ptr %170, align 8, !tbaa !13
  %197 = getelementptr inbounds double, ptr %196, i64 %.6187
  store double 1.000000e+00, ptr %197, align 8, !tbaa !17
  br label %198

198:                                              ; preds = %180, %195
  %199 = add nuw nsw i64 %.6187, 1
  %200 = load i64, ptr %8, align 8, !tbaa !14
  %.not.not149 = icmp slt i64 %199, %200
  br i1 %.not.not149, label %180, label %._crit_edge189, !llvm.loop !28

._crit_edge189:                                   ; preds = %198, %.preheader153
  %201 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %5)
  br i1 %201, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %._crit_edge189
  %202 = load i64, ptr %9, align 8, !tbaa !14
  %.not.not150190 = icmp sgt i64 %202, 0
  br i1 %.not.not150190, label %.lr.ph192, label %.loopexit

.lr.ph192:                                        ; preds = %.preheader
  %203 = getelementptr inbounds i8, ptr %11, i64 56
  %204 = getelementptr inbounds i8, ptr %0, i64 392
  %205 = getelementptr inbounds i8, ptr %0, i64 456
  %206 = getelementptr inbounds i8, ptr %12, i64 56
  br label %207

207:                                              ; preds = %.lr.ph192, %283
  %208 = phi i64 [ %202, %.lr.ph192 ], [ %285, %283 ]
  %.7191 = phi i64 [ 0, %.lr.ph192 ], [ %284, %283 ]
  %209 = add i64 %.7191, %33
  %210 = sub i64 %209, %208
  %211 = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !14
  %212 = mul nsw i64 %211, %210
  %213 = load ptr, ptr %30, align 8, !tbaa !13
  %214 = getelementptr i64, ptr %213, i64 %35
  %215 = getelementptr i64, ptr %214, i64 %212
  %216 = load i64, ptr %215, align 8, !tbaa !14
  switch i64 %216, label %283 [
    i64 0, label %217
    i64 3, label %239
  ]

217:                                              ; preds = %207
  %218 = load ptr, ptr %203, align 8, !tbaa !13
  %219 = load i64, ptr %8, align 8, !tbaa !14
  %220 = add nsw i64 %219, %.7191
  %221 = getelementptr inbounds double, ptr %218, i64 %220
  %222 = load double, ptr %221, align 8, !tbaa !17
  %223 = load ptr, ptr %204, align 8, !tbaa !13
  %224 = getelementptr inbounds double, ptr %223, i64 %220
  store double %222, ptr %224, align 8, !tbaa !17
  %225 = load ptr, ptr %206, align 8, !tbaa !13
  %226 = getelementptr inbounds double, ptr %225, i64 %220
  %227 = load double, ptr %226, align 8, !tbaa !17
  %228 = load ptr, ptr %205, align 8, !tbaa !13
  %229 = getelementptr inbounds double, ptr %228, i64 %220
  store double %227, ptr %229, align 8, !tbaa !17
  %230 = load ptr, ptr %205, align 8, !tbaa !13
  %231 = getelementptr double, ptr %230, i64 %219
  %232 = getelementptr double, ptr %231, i64 %.7191
  %233 = load double, ptr %232, align 8, !tbaa !17
  %234 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %233, double noundef 0.000000e+00)
  br i1 %234, label %235, label %283

235:                                              ; preds = %217
  %236 = load ptr, ptr %205, align 8, !tbaa !13
  %237 = load i64, ptr %8, align 8, !tbaa !14
  %238 = getelementptr double, ptr %236, i64 %237
  br label %.sink.split

239:                                              ; preds = %207
  %240 = load ptr, ptr %203, align 8, !tbaa !13
  %241 = load i64, ptr %8, align 8, !tbaa !14
  %242 = add nsw i64 %241, %.7191
  %243 = getelementptr inbounds double, ptr %240, i64 %242
  %244 = load double, ptr %243, align 8, !tbaa !17
  %245 = load ptr, ptr %204, align 8, !tbaa !13
  %246 = getelementptr inbounds double, ptr %245, i64 %242
  %247 = load double, ptr %246, align 8, !tbaa !17
  %248 = fsub double %244, %247
  %249 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %248, double noundef 0.000000e+00)
  br i1 %249, label %250, label %258

250:                                              ; preds = %239
  %251 = load ptr, ptr %205, align 8, !tbaa !13
  %252 = load i64, ptr %8, align 8, !tbaa !14
  %253 = getelementptr double, ptr %251, i64 %252
  %254 = getelementptr double, ptr %253, i64 %.7191
  %255 = load double, ptr %254, align 8, !tbaa !17
  %256 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %255, ptr noundef %5)
  %257 = sitofp i64 %256 to double
  br label %258

258:                                              ; preds = %250, %239
  %.0140 = phi double [ %257, %250 ], [ %248, %239 ]
  %259 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %.0140, double noundef 0.000000e+00)
  %.1141 = select i1 %259, double 1.000000e+00, double %.0140
  %260 = load ptr, ptr %205, align 8, !tbaa !13
  %261 = load i64, ptr %8, align 8, !tbaa !14
  %262 = getelementptr double, ptr %260, i64 %261
  %263 = getelementptr double, ptr %262, i64 %.7191
  %264 = load double, ptr %263, align 8, !tbaa !17
  %265 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %264, ptr noundef %5)
  %266 = sitofp i64 %265 to double
  %267 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.1141, ptr noundef %5)
  %268 = fmul double %267, %266
  %269 = load ptr, ptr %205, align 8, !tbaa !13
  %270 = load i64, ptr %8, align 8, !tbaa !14
  %271 = getelementptr double, ptr %269, i64 %270
  %272 = getelementptr double, ptr %271, i64 %.7191
  store double %268, ptr %272, align 8, !tbaa !17
  %273 = load ptr, ptr %205, align 8, !tbaa !13
  %274 = getelementptr double, ptr %273, i64 %270
  %275 = getelementptr double, ptr %274, i64 %.7191
  %276 = load double, ptr %275, align 8, !tbaa !17
  %277 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %276, double noundef 0.000000e+00)
  br i1 %277, label %278, label %283

278:                                              ; preds = %258
  %279 = load ptr, ptr %205, align 8, !tbaa !13
  %280 = load i64, ptr %8, align 8, !tbaa !14
  %281 = getelementptr double, ptr %279, i64 %280
  br label %.sink.split

.sink.split:                                      ; preds = %278, %235
  %.sink211 = phi ptr [ %238, %235 ], [ %281, %278 ]
  %282 = getelementptr double, ptr %.sink211, i64 %.7191
  store double 1.000000e+00, ptr %282, align 8, !tbaa !17
  br label %283

283:                                              ; preds = %.sink.split, %217, %207, %258
  %284 = add nuw nsw i64 %.7191, 1
  %285 = load i64, ptr %9, align 8, !tbaa !14
  %.not.not150 = icmp slt i64 %284, %285
  br i1 %.not.not150, label %207, label %.loopexit, !llvm.loop !29

.loopexit:                                        ; preds = %283, %._crit_edge189, %.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 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 = { 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 #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 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}
!28 = distinct !{!28, !16}
!29 = distinct !{!29, !16}


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