; 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 nounwind uwtable
declare dso_local void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl25mlpinitpreprocessorsparseEPNS_20multilayerperceptronEPNS_12sparsematrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #4 {
  %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 %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca double, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, 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 64, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 64, 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 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 %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, 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 %18, 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 %19, 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 %11, ptr noundef %12, ptr noundef %13, 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 %14, 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 %15, 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 %11, align 8, !tbaa !9
  %45 = sub nsw i64 %44, 1
  store i64 %45, ptr %10, align 8, !tbaa !9
  br label %51

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

51:                                               ; preds = %46, %43
  %52 = load i64, ptr %10, 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 %18, i64 noundef %53, ptr noundef %54)
  %55 = load i64, ptr %10, 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 %19, i64 noundef %56, ptr noundef %57)
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %71, %51
  %59 = load i64, ptr %21, align 8, !tbaa !9
  %60 = load i64, ptr %10, 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 %18, i32 0, i32 4
  %64 = load ptr, ptr %63, align 8, !tbaa !11
  %65 = load i64, ptr %21, 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 %19, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  %69 = load i64, ptr %21, 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 %21, align 8, !tbaa !9
  %73 = add nsw i64 %72, 1
  store i64 %73, ptr %21, align 8, !tbaa !9
  br label %58, !llvm.loop !14

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

75:                                               ; preds = %112, %74
  %76 = load i64, ptr %21, 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 %115

80:                                               ; preds = %75
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load i64, ptr %21, align 8, !tbaa !9
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %83, i32 0, i32 15
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %81, i64 noundef %82, ptr noundef %84, ptr noundef %85)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %108, %80
  %87 = load i64, ptr %22, align 8, !tbaa !9
  %88 = load i64, ptr %10, align 8, !tbaa !9
  %89 = icmp sle i64 %87, %88
  br i1 %89, label %90, label %111

90:                                               ; preds = %86
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %92 = load ptr, ptr %91, align 8, !tbaa !11
  %93 = load i64, ptr %22, align 8, !tbaa !9
  %94 = getelementptr inbounds double, ptr %92, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !12
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %96, i32 0, i32 15
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %97, i32 0, i32 4
  %99 = load ptr, ptr %98, align 8, !tbaa !11
  %100 = load i64, ptr %22, align 8, !tbaa !9
  %101 = getelementptr inbounds double, ptr %99, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !12
  %103 = fadd double %95, %102
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !11
  %106 = load i64, ptr %22, align 8, !tbaa !9
  %107 = getelementptr inbounds double, ptr %105, i64 %106
  store double %103, ptr %107, align 8, !tbaa !12
  br label %108

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

111:                                              ; preds = %86
  br label %112

112:                                              ; preds = %111
  %113 = load i64, ptr %21, align 8, !tbaa !9
  %114 = add nsw i64 %113, 1
  store i64 %114, ptr %21, align 8, !tbaa !9
  br label %75, !llvm.loop !17

115:                                              ; preds = %75
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %116

116:                                              ; preds = %133, %115
  %117 = load i64, ptr %21, align 8, !tbaa !9
  %118 = load i64, ptr %10, align 8, !tbaa !9
  %119 = icmp sle i64 %117, %118
  br i1 %119, label %120, label %136

120:                                              ; preds = %116
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %122 = load ptr, ptr %121, align 8, !tbaa !11
  %123 = load i64, ptr %21, align 8, !tbaa !9
  %124 = getelementptr inbounds double, ptr %122, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !12
  %126 = load i64, ptr %7, align 8, !tbaa !9
  %127 = sitofp i64 %126 to double
  %128 = fdiv double %125, %127
  %129 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %130 = load ptr, ptr %129, align 8, !tbaa !11
  %131 = load i64, ptr %21, align 8, !tbaa !9
  %132 = getelementptr inbounds double, ptr %130, i64 %131
  store double %128, ptr %132, align 8, !tbaa !12
  br label %133

133:                                              ; preds = %120
  %134 = load i64, ptr %21, align 8, !tbaa !9
  %135 = add nsw i64 %134, 1
  store i64 %135, ptr %21, align 8, !tbaa !9
  br label %116, !llvm.loop !18

136:                                              ; preds = %116
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %137

137:                                              ; preds = %182, %136
  %138 = load i64, ptr %21, align 8, !tbaa !9
  %139 = load i64, ptr %7, align 8, !tbaa !9
  %140 = sub nsw i64 %139, 1
  %141 = icmp sle i64 %138, %140
  br i1 %141, label %142, label %185

142:                                              ; preds = %137
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = load i64, ptr %21, align 8, !tbaa !9
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %145, i32 0, i32 15
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %143, i64 noundef %144, ptr noundef %146, ptr noundef %147)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %148

148:                                              ; preds = %178, %142
  %149 = load i64, ptr %22, align 8, !tbaa !9
  %150 = load i64, ptr %10, align 8, !tbaa !9
  %151 = icmp sle i64 %149, %150
  br i1 %151, label %152, label %181

152:                                              ; preds = %148
  %153 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %154 = load ptr, ptr %153, align 8, !tbaa !11
  %155 = load i64, ptr %22, align 8, !tbaa !9
  %156 = getelementptr inbounds double, ptr %154, i64 %155
  %157 = load double, ptr %156, align 8, !tbaa !12
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %158, i32 0, i32 15
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %159, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !11
  %162 = load i64, ptr %22, align 8, !tbaa !9
  %163 = getelementptr inbounds double, ptr %161, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !12
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %166 = load ptr, ptr %165, align 8, !tbaa !11
  %167 = load i64, ptr %22, align 8, !tbaa !9
  %168 = getelementptr inbounds double, ptr %166, i64 %167
  %169 = load double, ptr %168, align 8, !tbaa !12
  %170 = fsub double %164, %169
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %170, ptr noundef %171)
  %173 = fadd double %157, %172
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %175 = load ptr, ptr %174, align 8, !tbaa !11
  %176 = load i64, ptr %22, align 8, !tbaa !9
  %177 = getelementptr inbounds double, ptr %175, i64 %176
  store double %173, ptr %177, align 8, !tbaa !12
  br label %178

178:                                              ; preds = %152
  %179 = load i64, ptr %22, align 8, !tbaa !9
  %180 = add nsw i64 %179, 1
  store i64 %180, ptr %22, align 8, !tbaa !9
  br label %148, !llvm.loop !19

181:                                              ; preds = %148
  br label %182

182:                                              ; preds = %181
  %183 = load i64, ptr %21, align 8, !tbaa !9
  %184 = add nsw i64 %183, 1
  store i64 %184, ptr %21, align 8, !tbaa !9
  br label %137, !llvm.loop !20

185:                                              ; preds = %137
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %186

186:                                              ; preds = %205, %185
  %187 = load i64, ptr %21, align 8, !tbaa !9
  %188 = load i64, ptr %10, align 8, !tbaa !9
  %189 = icmp sle i64 %187, %188
  br i1 %189, label %190, label %208

190:                                              ; preds = %186
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !11
  %193 = load i64, ptr %21, align 8, !tbaa !9
  %194 = getelementptr inbounds double, ptr %192, i64 %193
  %195 = load double, ptr %194, align 8, !tbaa !12
  %196 = load i64, ptr %7, align 8, !tbaa !9
  %197 = sitofp i64 %196 to double
  %198 = fdiv double %195, %197
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %198, ptr noundef %199)
  %201 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %202 = load ptr, ptr %201, align 8, !tbaa !11
  %203 = load i64, ptr %21, align 8, !tbaa !9
  %204 = getelementptr inbounds double, ptr %202, i64 %203
  store double %200, ptr %204, align 8, !tbaa !12
  br label %205

205:                                              ; preds = %190
  %206 = load i64, ptr %21, align 8, !tbaa !9
  %207 = add nsw i64 %206, 1
  store i64 %207, ptr %21, align 8, !tbaa !9
  br label %186, !llvm.loop !21

208:                                              ; preds = %186
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %209

209:                                              ; preds = %253, %208
  %210 = load i64, ptr %21, align 8, !tbaa !9
  %211 = load i64, ptr %11, align 8, !tbaa !9
  %212 = sub nsw i64 %211, 1
  %213 = icmp sle i64 %210, %212
  br i1 %213, label %214, label %256

214:                                              ; preds = %209
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %216 = load ptr, ptr %215, align 8, !tbaa !11
  %217 = load i64, ptr %21, align 8, !tbaa !9
  %218 = getelementptr inbounds double, ptr %216, i64 %217
  %219 = load double, ptr %218, align 8, !tbaa !12
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %220, i32 0, i32 7
  %222 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %221, i32 0, i32 4
  %223 = load ptr, ptr %222, align 8, !tbaa !11
  %224 = load i64, ptr %21, align 8, !tbaa !9
  %225 = getelementptr inbounds double, ptr %223, i64 %224
  store double %219, ptr %225, align 8, !tbaa !12
  %226 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %227 = load ptr, ptr %226, align 8, !tbaa !11
  %228 = load i64, ptr %21, align 8, !tbaa !9
  %229 = getelementptr inbounds double, ptr %227, i64 %228
  %230 = load double, ptr %229, 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 %21, align 8, !tbaa !9
  %236 = getelementptr inbounds double, ptr %234, i64 %235
  store double %230, ptr %236, align 8, !tbaa !12
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  %238 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %237, i32 0, i32 8
  %239 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %238, i32 0, i32 4
  %240 = load ptr, ptr %239, align 8, !tbaa !11
  %241 = load i64, ptr %21, align 8, !tbaa !9
  %242 = getelementptr inbounds double, ptr %240, i64 %241
  %243 = load double, ptr %242, align 8, !tbaa !12
  %244 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %243, double noundef 0.000000e+00)
  br i1 %244, label %245, label %252

245:                                              ; preds = %214
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %246, i32 0, i32 8
  %248 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %247, i32 0, i32 4
  %249 = load ptr, ptr %248, align 8, !tbaa !11
  %250 = load i64, ptr %21, align 8, !tbaa !9
  %251 = getelementptr inbounds double, ptr %249, i64 %250
  store double 1.000000e+00, ptr %251, align 8, !tbaa !12
  br label %252

252:                                              ; preds = %245, %214
  br label %253

253:                                              ; preds = %252
  %254 = load i64, ptr %21, align 8, !tbaa !9
  %255 = add nsw i64 %254, 1
  store i64 %255, ptr %21, align 8, !tbaa !9
  br label %209, !llvm.loop !22

256:                                              ; preds = %209
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = load ptr, ptr %8, align 8, !tbaa !5
  %259 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %257, ptr noundef %258)
  br i1 %259, label %427, label %260

260:                                              ; preds = %256
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %261

261:                                              ; preds = %423, %260
  %262 = load i64, ptr %21, align 8, !tbaa !9
  %263 = load i64, ptr %12, align 8, !tbaa !9
  %264 = sub nsw i64 %263, 1
  %265 = icmp sle i64 %262, %264
  br i1 %265, label %266, label %426

266:                                              ; preds = %261
  %267 = load i64, ptr %15, align 8, !tbaa !9
  %268 = load i64, ptr %14, align 8, !tbaa !9
  %269 = load i64, ptr %12, align 8, !tbaa !9
  %270 = sub nsw i64 %268, %269
  %271 = load i64, ptr %21, align 8, !tbaa !9
  %272 = add nsw i64 %270, %271
  %273 = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !9
  %274 = mul nsw i64 %272, %273
  %275 = add nsw i64 %267, %274
  store i64 %275, ptr %16, align 8, !tbaa !9
  %276 = load ptr, ptr %5, align 8, !tbaa !5
  %277 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %276, i32 0, i32 5
  %278 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %277, i32 0, i32 4
  %279 = load ptr, ptr %278, align 8, !tbaa !11
  %280 = load i64, ptr %16, align 8, !tbaa !9
  %281 = add nsw i64 %280, 0
  %282 = getelementptr inbounds i64, ptr %279, i64 %281
  %283 = load i64, ptr %282, align 8, !tbaa !9
  store i64 %283, ptr %17, align 8, !tbaa !9
  %284 = load i64, ptr %17, align 8, !tbaa !9
  %285 = icmp eq i64 %284, 0
  br i1 %285, label %286, label %337

286:                                              ; preds = %266
  %287 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %288 = load ptr, ptr %287, align 8, !tbaa !11
  %289 = load i64, ptr %11, align 8, !tbaa !9
  %290 = load i64, ptr %21, align 8, !tbaa !9
  %291 = add nsw i64 %289, %290
  %292 = getelementptr inbounds double, ptr %288, i64 %291
  %293 = load double, ptr %292, align 8, !tbaa !12
  %294 = load ptr, ptr %5, align 8, !tbaa !5
  %295 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %294, i32 0, i32 7
  %296 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %295, i32 0, i32 4
  %297 = load ptr, ptr %296, align 8, !tbaa !11
  %298 = load i64, ptr %11, align 8, !tbaa !9
  %299 = load i64, ptr %21, align 8, !tbaa !9
  %300 = add nsw i64 %298, %299
  %301 = getelementptr inbounds double, ptr %297, i64 %300
  store double %293, ptr %301, align 8, !tbaa !12
  %302 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %303 = load ptr, ptr %302, align 8, !tbaa !11
  %304 = load i64, ptr %11, align 8, !tbaa !9
  %305 = load i64, ptr %21, align 8, !tbaa !9
  %306 = add nsw i64 %304, %305
  %307 = getelementptr inbounds double, ptr %303, i64 %306
  %308 = load double, ptr %307, align 8, !tbaa !12
  %309 = load ptr, ptr %5, 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 !11
  %313 = load i64, ptr %11, align 8, !tbaa !9
  %314 = load i64, ptr %21, align 8, !tbaa !9
  %315 = add nsw i64 %313, %314
  %316 = getelementptr inbounds double, ptr %312, i64 %315
  store double %308, ptr %316, align 8, !tbaa !12
  %317 = load ptr, ptr %5, align 8, !tbaa !5
  %318 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %317, i32 0, i32 8
  %319 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %318, i32 0, i32 4
  %320 = load ptr, ptr %319, align 8, !tbaa !11
  %321 = load i64, ptr %11, align 8, !tbaa !9
  %322 = load i64, ptr %21, align 8, !tbaa !9
  %323 = add nsw i64 %321, %322
  %324 = getelementptr inbounds double, ptr %320, i64 %323
  %325 = load double, ptr %324, align 8, !tbaa !12
  %326 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %325, double noundef 0.000000e+00)
  br i1 %326, label %327, label %336

327:                                              ; preds = %286
  %328 = load ptr, ptr %5, align 8, !tbaa !5
  %329 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %328, i32 0, i32 8
  %330 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %329, i32 0, i32 4
  %331 = load ptr, ptr %330, align 8, !tbaa !11
  %332 = load i64, ptr %11, align 8, !tbaa !9
  %333 = load i64, ptr %21, align 8, !tbaa !9
  %334 = add nsw i64 %332, %333
  %335 = getelementptr inbounds double, ptr %331, i64 %334
  store double 1.000000e+00, ptr %335, align 8, !tbaa !12
  br label %336

336:                                              ; preds = %327, %286
  br label %337

337:                                              ; preds = %336, %266
  %338 = load i64, ptr %17, align 8, !tbaa !9
  %339 = icmp eq i64 %338, 3
  br i1 %339, label %340, label %422

340:                                              ; preds = %337
  %341 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %342 = load ptr, ptr %341, align 8, !tbaa !11
  %343 = load i64, ptr %11, align 8, !tbaa !9
  %344 = load i64, ptr %21, align 8, !tbaa !9
  %345 = add nsw i64 %343, %344
  %346 = getelementptr inbounds double, ptr %342, i64 %345
  %347 = load double, ptr %346, align 8, !tbaa !12
  %348 = load ptr, ptr %5, align 8, !tbaa !5
  %349 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %348, i32 0, i32 7
  %350 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %349, i32 0, i32 4
  %351 = load ptr, ptr %350, align 8, !tbaa !11
  %352 = load i64, ptr %11, align 8, !tbaa !9
  %353 = load i64, ptr %21, 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 !12
  %357 = fsub double %347, %356
  store double %357, ptr %20, align 8, !tbaa !12
  %358 = load double, ptr %20, align 8, !tbaa !12
  %359 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %358, double noundef 0.000000e+00)
  br i1 %359, label %360, label %373

360:                                              ; preds = %340
  %361 = load ptr, ptr %5, align 8, !tbaa !5
  %362 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %361, i32 0, i32 8
  %363 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %362, i32 0, i32 4
  %364 = load ptr, ptr %363, align 8, !tbaa !11
  %365 = load i64, ptr %11, align 8, !tbaa !9
  %366 = load i64, ptr %21, align 8, !tbaa !9
  %367 = add nsw i64 %365, %366
  %368 = getelementptr inbounds double, ptr %364, i64 %367
  %369 = load double, ptr %368, align 8, !tbaa !12
  %370 = load ptr, ptr %8, align 8, !tbaa !5
  %371 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %369, ptr noundef %370)
  %372 = sitofp i64 %371 to double
  store double %372, ptr %20, align 8, !tbaa !12
  br label %373

373:                                              ; preds = %360, %340
  %374 = load double, ptr %20, align 8, !tbaa !12
  %375 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %374, double noundef 0.000000e+00)
  br i1 %375, label %376, label %377

376:                                              ; preds = %373
  store double 1.000000e+00, ptr %20, align 8, !tbaa !12
  br label %377

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

412:                                              ; preds = %377
  %413 = load ptr, ptr %5, align 8, !tbaa !5
  %414 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %413, i32 0, i32 8
  %415 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %414, i32 0, i32 4
  %416 = load ptr, ptr %415, align 8, !tbaa !11
  %417 = load i64, ptr %11, align 8, !tbaa !9
  %418 = load i64, ptr %21, align 8, !tbaa !9
  %419 = add nsw i64 %417, %418
  %420 = getelementptr inbounds double, ptr %416, i64 %419
  store double 1.000000e+00, ptr %420, align 8, !tbaa !12
  br label %421

421:                                              ; preds = %412, %377
  br label %422

422:                                              ; preds = %421, %337
  br label %423

423:                                              ; preds = %422
  %424 = load i64, ptr %21, align 8, !tbaa !9
  %425 = add nsw i64 %424, 1
  store i64 %425, ptr %21, align 8, !tbaa !9
  br label %261, !llvm.loop !23

426:                                              ; preds = %261
  br label %427

427:                                              ; preds = %426, %256
  %428 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %428)
  call void @llvm.lifetime.end.p0(i64 8, 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 64, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 64, 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
}

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl25mlpinitpreprocessorsparseEPNS_20multilayerperceptronEPNS_12sparsematrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) local_unnamed_addr #4 {
  %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
  %.0117.in = add nsw i64 %20, %18
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0117.in, ptr noundef %3)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.0117.in, ptr noundef %3)
  %.not.not132 = icmp sgt i64 %.0117.in, 0
  br i1 %.not.not132, label %.lr.ph, label %.preheader131.thread

.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 %.0117.in, 1
  %25 = icmp eq i64 %24, 0
  br i1 %25, label %.preheader131.unr-lcssa, label %.lr.ph.new

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

.preheader131.unr-lcssa:                          ; preds = %60, %.lr.ph
  %.0113133.unr = phi i64 [ 0, %.lr.ph ], [ %70, %60 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader131, label %.preheader131.epilog-lcssa

.preheader131.epilog-lcssa:                       ; preds = %.preheader131.unr-lcssa
  %26 = load ptr, ptr %21, align 8, !tbaa !5
  %27 = getelementptr inbounds double, ptr %26, i64 %.0113133.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 %.0113133.unr
  store double 0.000000e+00, ptr %29, align 8, !tbaa !10
  br label %.preheader131

.preheader131:                                    ; preds = %.preheader131.unr-lcssa, %.preheader131.epilog-lcssa
  %.not.not119137 = icmp sgt i64 %2, 0
  br i1 %.not.not119137, label %.lr.ph139, label %.preheader130

.preheader131.thread:                             ; preds = %4
  %.not.not119137169 = icmp sgt i64 %2, 0
  br i1 %.not.not119137169, label %.lr.ph139.thread, label %.preheader127

.lr.ph139.thread:                                 ; preds = %.preheader131.thread
  %30 = getelementptr inbounds i8, ptr %0, i64 864
  br label %.lr.ph139.split.preheader

.lr.ph139:                                        ; preds = %.preheader131
  %31 = getelementptr inbounds i8, ptr %0, i64 864
  %32 = getelementptr inbounds i8, ptr %9, i64 56
  %33 = getelementptr inbounds i8, ptr %0, i64 920
  br i1 %.not.not132, label %.lr.ph136.us.preheader, label %.lr.ph139.split.preheader

.lr.ph136.us.preheader:                           ; preds = %.lr.ph139
  %xtraiter187 = and i64 %.0117.in, 1
  %34 = icmp eq i64 %24, 0
  %unroll_iter189 = and i64 %.0117.in, 9223372036854775806
  %lcmp.mod188.not = icmp eq i64 %xtraiter187, 0
  br label %.lr.ph136.us

.lr.ph139.split.preheader:                        ; preds = %.lr.ph139.thread, %.lr.ph139
  %35 = phi ptr [ %30, %.lr.ph139.thread ], [ %31, %.lr.ph139 ]
  br label %.lr.ph139.split

.lr.ph136.us:                                     ; preds = %.lr.ph136.us.preheader, %._crit_edge.us
  %.1114138.us = phi i64 [ %59, %._crit_edge.us ], [ 0, %.lr.ph136.us.preheader ]
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %1, i64 noundef %.1114138.us, ptr noundef nonnull %31, ptr noundef %3)
  br i1 %34, label %._crit_edge.us.unr-lcssa, label %.lr.ph136.us.new

.lr.ph136.us.new:                                 ; preds = %.lr.ph136.us, %.lr.ph136.us.new
  %.0135.us = phi i64 [ %51, %.lr.ph136.us.new ], [ 0, %.lr.ph136.us ]
  %niter190 = phi i64 [ %niter190.next.1, %.lr.ph136.us.new ], [ 0, %.lr.ph136.us ]
  %36 = load ptr, ptr %32, align 8, !tbaa !5
  %37 = getelementptr inbounds double, ptr %36, i64 %.0135.us
  %38 = load double, ptr %37, align 8, !tbaa !10
  %39 = load ptr, ptr %33, align 8, !tbaa !5
  %40 = getelementptr inbounds double, ptr %39, i64 %.0135.us
  %41 = load double, ptr %40, align 8, !tbaa !10
  %42 = fadd double %38, %41
  store double %42, ptr %37, align 8, !tbaa !10
  %43 = or disjoint i64 %.0135.us, 1
  %44 = load ptr, ptr %32, align 8, !tbaa !5
  %45 = getelementptr inbounds double, ptr %44, i64 %43
  %46 = load double, ptr %45, align 8, !tbaa !10
  %47 = load ptr, ptr %33, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %47, i64 %43
  %49 = load double, ptr %48, align 8, !tbaa !10
  %50 = fadd double %46, %49
  store double %50, ptr %45, align 8, !tbaa !10
  %51 = add nuw nsw i64 %.0135.us, 2
  %niter190.next.1 = add i64 %niter190, 2
  %niter190.ncmp.1 = icmp eq i64 %niter190.next.1, %unroll_iter189
  br i1 %niter190.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.lr.ph136.us.new, !llvm.loop !12

._crit_edge.us.unr-lcssa:                         ; preds = %.lr.ph136.us.new, %.lr.ph136.us
  %.0135.us.unr = phi i64 [ 0, %.lr.ph136.us ], [ %51, %.lr.ph136.us.new ]
  br i1 %lcmp.mod188.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %52 = load ptr, ptr %32, align 8, !tbaa !5
  %53 = getelementptr inbounds double, ptr %52, i64 %.0135.us.unr
  %54 = load double, ptr %53, align 8, !tbaa !10
  %55 = load ptr, ptr %33, align 8, !tbaa !5
  %56 = getelementptr inbounds double, ptr %55, i64 %.0135.us.unr
  %57 = load double, ptr %56, align 8, !tbaa !10
  %58 = fadd double %54, %57
  store double %58, ptr %53, align 8, !tbaa !10
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %59 = add nuw nsw i64 %.1114138.us, 1
  %exitcond163.not = icmp eq i64 %59, %2
  br i1 %exitcond163.not, label %.preheader130, label %.lr.ph136.us, !llvm.loop !14

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

.preheader130:                                    ; preds = %.lr.ph139.split, %._crit_edge.us, %.preheader131
  %.not.not119137170 = phi i1 [ false, %.preheader131 ], [ true, %._crit_edge.us ], [ true, %.lr.ph139.split ]
  br i1 %.not.not132, label %.lr.ph142, label %.preheader129.thread177

.lr.ph142:                                        ; preds = %.preheader130
  %71 = getelementptr inbounds i8, ptr %9, i64 56
  %72 = sitofp i64 %2 to double
  %73 = add i64 %20, %18
  %74 = add i64 %73, -1
  %xtraiter192 = and i64 %.0117.in, 3
  %75 = icmp ult i64 %74, 3
  br i1 %75, label %.preheader129.unr-lcssa, label %.lr.ph142.new

.lr.ph142.new:                                    ; preds = %.lr.ph142
  %unroll_iter194 = and i64 %.0117.in, 9223372036854775804
  br label %105

.lr.ph139.split:                                  ; preds = %.lr.ph139.split.preheader, %.lr.ph139.split
  %.1114138 = phi i64 [ %76, %.lr.ph139.split ], [ 0, %.lr.ph139.split.preheader ]
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %1, i64 noundef %.1114138, ptr noundef nonnull %35, ptr noundef %3)
  %76 = add nuw nsw i64 %.1114138, 1
  %exitcond161.not = icmp eq i64 %76, %2
  br i1 %exitcond161.not, label %.preheader130, label %.lr.ph139.split, !llvm.loop !14

.preheader129.unr-lcssa:                          ; preds = %105, %.lr.ph142
  %.2141.unr = phi i64 [ 0, %.lr.ph142 ], [ %125, %105 ]
  %lcmp.mod193.not = icmp eq i64 %xtraiter192, 0
  br i1 %lcmp.mod193.not, label %.preheader129, label %.epil.preheader191

.epil.preheader191:                               ; preds = %.preheader129.unr-lcssa, %.epil.preheader191
  %.2141.epil = phi i64 [ %81, %.epil.preheader191 ], [ %.2141.unr, %.preheader129.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader191 ], [ 0, %.preheader129.unr-lcssa ]
  %77 = load ptr, ptr %71, align 8, !tbaa !5
  %78 = getelementptr inbounds double, ptr %77, i64 %.2141.epil
  %79 = load double, ptr %78, align 8, !tbaa !10
  %80 = fdiv double %79, %72
  store double %80, ptr %78, align 8, !tbaa !10
  %81 = add nuw nsw i64 %.2141.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter192
  br i1 %epil.iter.cmp.not, label %.preheader129, label %.epil.preheader191, !llvm.loop !16

.preheader129:                                    ; preds = %.epil.preheader191, %.preheader129.unr-lcssa
  br i1 %.not.not119137170, label %.lr.ph148, label %.preheader128

.preheader129.thread177:                          ; preds = %.preheader130
  br i1 %.not.not119137170, label %.lr.ph148.thread, label %.preheader127

.lr.ph148.thread:                                 ; preds = %.preheader129.thread177
  %82 = getelementptr inbounds i8, ptr %0, i64 864
  br label %.lr.ph148.split.preheader

.lr.ph148:                                        ; preds = %.preheader129
  %83 = getelementptr inbounds i8, ptr %0, i64 864
  %84 = getelementptr inbounds i8, ptr %10, i64 56
  %85 = getelementptr inbounds i8, ptr %0, i64 920
  %86 = getelementptr inbounds i8, ptr %9, i64 56
  br i1 %.not.not132, label %.lr.ph145.us, label %.lr.ph148.split.preheader

.lr.ph148.split.preheader:                        ; preds = %.lr.ph148.thread, %.lr.ph148
  %87 = phi ptr [ %82, %.lr.ph148.thread ], [ %83, %.lr.ph148 ]
  br label %.lr.ph148.split

.lr.ph145.us:                                     ; preds = %.lr.ph148, %._crit_edge.us149
  %.3147.us = phi i64 [ %104, %._crit_edge.us149 ], [ 0, %.lr.ph148 ]
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %1, i64 noundef %.3147.us, ptr noundef nonnull %83, ptr noundef %3)
  br label %88

88:                                               ; preds = %.lr.ph145.us, %88
  %.1144.us = phi i64 [ 0, %.lr.ph145.us ], [ %103, %88 ]
  %89 = load ptr, ptr %84, align 8, !tbaa !5
  %90 = getelementptr inbounds double, ptr %89, i64 %.1144.us
  %91 = load double, ptr %90, align 8, !tbaa !10
  %92 = load ptr, ptr %85, align 8, !tbaa !5
  %93 = getelementptr inbounds double, ptr %92, i64 %.1144.us
  %94 = load double, ptr %93, align 8, !tbaa !10
  %95 = load ptr, ptr %86, align 8, !tbaa !5
  %96 = getelementptr inbounds double, ptr %95, i64 %.1144.us
  %97 = load double, ptr %96, align 8, !tbaa !10
  %98 = fsub double %94, %97
  %99 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %98, ptr noundef %3)
  %100 = fadd double %91, %99
  %101 = load ptr, ptr %84, align 8, !tbaa !5
  %102 = getelementptr inbounds double, ptr %101, i64 %.1144.us
  store double %100, ptr %102, align 8, !tbaa !10
  %103 = add nuw nsw i64 %.1144.us, 1
  %exitcond166.not = icmp eq i64 %103, %.0117.in
  br i1 %exitcond166.not, label %._crit_edge.us149, label %88, !llvm.loop !18

._crit_edge.us149:                                ; preds = %88
  %104 = add nuw nsw i64 %.3147.us, 1
  %exitcond167.not = icmp eq i64 %104, %2
  br i1 %exitcond167.not, label %.preheader128, label %.lr.ph145.us, !llvm.loop !19

105:                                              ; preds = %105, %.lr.ph142.new
  %.2141 = phi i64 [ 0, %.lr.ph142.new ], [ %125, %105 ]
  %niter195 = phi i64 [ 0, %.lr.ph142.new ], [ %niter195.next.3, %105 ]
  %106 = load ptr, ptr %71, align 8, !tbaa !5
  %107 = getelementptr inbounds double, ptr %106, i64 %.2141
  %108 = load double, ptr %107, align 8, !tbaa !10
  %109 = fdiv double %108, %72
  store double %109, ptr %107, align 8, !tbaa !10
  %110 = or disjoint i64 %.2141, 1
  %111 = load ptr, ptr %71, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %111, i64 %110
  %113 = load double, ptr %112, align 8, !tbaa !10
  %114 = fdiv double %113, %72
  store double %114, ptr %112, align 8, !tbaa !10
  %115 = or disjoint i64 %.2141, 2
  %116 = load ptr, ptr %71, align 8, !tbaa !5
  %117 = getelementptr inbounds double, ptr %116, i64 %115
  %118 = load double, ptr %117, align 8, !tbaa !10
  %119 = fdiv double %118, %72
  store double %119, ptr %117, align 8, !tbaa !10
  %120 = or disjoint i64 %.2141, 3
  %121 = load ptr, ptr %71, align 8, !tbaa !5
  %122 = getelementptr inbounds double, ptr %121, i64 %120
  %123 = load double, ptr %122, align 8, !tbaa !10
  %124 = fdiv double %123, %72
  store double %124, ptr %122, align 8, !tbaa !10
  %125 = add nuw nsw i64 %.2141, 4
  %niter195.next.3 = add i64 %niter195, 4
  %niter195.ncmp.3 = icmp eq i64 %niter195.next.3, %unroll_iter194
  br i1 %niter195.ncmp.3, label %.preheader129.unr-lcssa, label %105, !llvm.loop !20

.preheader128:                                    ; preds = %.lr.ph148.split, %._crit_edge.us149, %.preheader129
  br i1 %.not.not132, label %.lr.ph152, label %.preheader127

.lr.ph152:                                        ; preds = %.preheader128
  %126 = getelementptr inbounds i8, ptr %10, i64 56
  %127 = sitofp i64 %2 to double
  br label %134

.lr.ph148.split:                                  ; preds = %.lr.ph148.split.preheader, %.lr.ph148.split
  %.3147 = phi i64 [ %128, %.lr.ph148.split ], [ 0, %.lr.ph148.split.preheader ]
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %1, i64 noundef %.3147, ptr noundef nonnull %87, ptr noundef %3)
  %128 = add nuw nsw i64 %.3147, 1
  %exitcond165.not = icmp eq i64 %128, %2
  br i1 %exitcond165.not, label %.preheader128, label %.lr.ph148.split, !llvm.loop !19

.preheader127:                                    ; preds = %134, %.preheader131.thread, %.preheader129.thread177, %.preheader128
  %129 = load i64, ptr %6, align 8, !tbaa !8
  %.not.not123153 = icmp sgt i64 %129, 0
  br i1 %.not.not123153, label %.lr.ph155, label %._crit_edge

.lr.ph155:                                        ; preds = %.preheader127
  %130 = getelementptr inbounds i8, ptr %9, i64 56
  %131 = getelementptr inbounds i8, ptr %0, i64 392
  %132 = getelementptr inbounds i8, ptr %10, i64 56
  %133 = getelementptr inbounds i8, ptr %0, i64 456
  br label %143

134:                                              ; preds = %.lr.ph152, %134
  %.4151 = phi i64 [ 0, %.lr.ph152 ], [ %142, %134 ]
  %135 = load ptr, ptr %126, align 8, !tbaa !5
  %136 = getelementptr inbounds double, ptr %135, i64 %.4151
  %137 = load double, ptr %136, align 8, !tbaa !10
  %138 = fdiv double %137, %127
  %139 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %138, ptr noundef %3)
  %140 = load ptr, ptr %126, align 8, !tbaa !5
  %141 = getelementptr inbounds double, ptr %140, i64 %.4151
  store double %139, ptr %141, align 8, !tbaa !10
  %142 = add nuw nsw i64 %.4151, 1
  %exitcond168.not = icmp eq i64 %142, %.0117.in
  br i1 %exitcond168.not, label %.preheader127, label %134, !llvm.loop !21

143:                                              ; preds = %.lr.ph155, %161
  %.5154 = phi i64 [ 0, %.lr.ph155 ], [ %162, %161 ]
  %144 = load ptr, ptr %130, align 8, !tbaa !5
  %145 = getelementptr inbounds double, ptr %144, i64 %.5154
  %146 = load double, ptr %145, align 8, !tbaa !10
  %147 = load ptr, ptr %131, align 8, !tbaa !5
  %148 = getelementptr inbounds double, ptr %147, i64 %.5154
  store double %146, ptr %148, align 8, !tbaa !10
  %149 = load ptr, ptr %132, align 8, !tbaa !5
  %150 = getelementptr inbounds double, ptr %149, i64 %.5154
  %151 = load double, ptr %150, align 8, !tbaa !10
  %152 = load ptr, ptr %133, align 8, !tbaa !5
  %153 = getelementptr inbounds double, ptr %152, i64 %.5154
  store double %151, ptr %153, align 8, !tbaa !10
  %154 = load ptr, ptr %133, align 8, !tbaa !5
  %155 = getelementptr inbounds double, ptr %154, i64 %.5154
  %156 = load double, ptr %155, align 8, !tbaa !10
  %157 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %156, double noundef 0.000000e+00)
  br i1 %157, label %158, label %161

158:                                              ; preds = %143
  %159 = load ptr, ptr %133, align 8, !tbaa !5
  %160 = getelementptr inbounds double, ptr %159, i64 %.5154
  store double 1.000000e+00, ptr %160, align 8, !tbaa !10
  br label %161

161:                                              ; preds = %143, %158
  %162 = add nuw nsw i64 %.5154, 1
  %163 = load i64, ptr %6, align 8, !tbaa !8
  %.not.not123 = icmp slt i64 %162, %163
  br i1 %.not.not123, label %143, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %161, %.preheader127
  %164 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %3)
  br i1 %164, label %.loopexit, label %.preheader

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

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

170:                                              ; preds = %.lr.ph158, %246
  %171 = phi i64 [ %165, %.lr.ph158 ], [ %248, %246 ]
  %.6157 = phi i64 [ 0, %.lr.ph158 ], [ %247, %246 ]
  %172 = add i64 %.6157, %14
  %173 = sub i64 %172, %171
  %174 = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !8
  %175 = mul nsw i64 %174, %173
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = getelementptr i64, ptr %176, i64 %16
  %178 = getelementptr i64, ptr %177, i64 %175
  %179 = load i64, ptr %178, align 8, !tbaa !8
  switch i64 %179, label %246 [
    i64 0, label %180
    i64 3, label %202
  ]

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

198:                                              ; preds = %180
  %199 = load ptr, ptr %168, align 8, !tbaa !5
  %200 = load i64, ptr %6, align 8, !tbaa !8
  %201 = getelementptr double, ptr %199, i64 %200
  br label %.sink.split

202:                                              ; preds = %170
  %203 = load ptr, ptr %166, align 8, !tbaa !5
  %204 = load i64, ptr %6, align 8, !tbaa !8
  %205 = add nsw i64 %204, %.6157
  %206 = getelementptr inbounds double, ptr %203, i64 %205
  %207 = load double, ptr %206, align 8, !tbaa !10
  %208 = load ptr, ptr %167, align 8, !tbaa !5
  %209 = getelementptr inbounds double, ptr %208, i64 %205
  %210 = load double, ptr %209, align 8, !tbaa !10
  %211 = fsub double %207, %210
  %212 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %211, double noundef 0.000000e+00)
  br i1 %212, label %213, label %221

213:                                              ; preds = %202
  %214 = load ptr, ptr %168, align 8, !tbaa !5
  %215 = load i64, ptr %6, align 8, !tbaa !8
  %216 = getelementptr double, ptr %214, i64 %215
  %217 = getelementptr double, ptr %216, i64 %.6157
  %218 = load double, ptr %217, align 8, !tbaa !10
  %219 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %218, ptr noundef %3)
  %220 = sitofp i64 %219 to double
  br label %221

221:                                              ; preds = %213, %202
  %.0115 = phi double [ %220, %213 ], [ %211, %202 ]
  %222 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %.0115, double noundef 0.000000e+00)
  %.1116 = select i1 %222, double 1.000000e+00, double %.0115
  %223 = load ptr, ptr %168, align 8, !tbaa !5
  %224 = load i64, ptr %6, align 8, !tbaa !8
  %225 = getelementptr double, ptr %223, i64 %224
  %226 = getelementptr double, ptr %225, i64 %.6157
  %227 = load double, ptr %226, align 8, !tbaa !10
  %228 = call noundef i64 @_ZN11alglib_impl7ae_signEdPNS_8ae_stateE(double noundef %227, ptr noundef %3)
  %229 = sitofp i64 %228 to double
  %230 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.1116, ptr noundef %3)
  %231 = fmul double %230, %229
  %232 = load ptr, ptr %168, align 8, !tbaa !5
  %233 = load i64, ptr %6, align 8, !tbaa !8
  %234 = getelementptr double, ptr %232, i64 %233
  %235 = getelementptr double, ptr %234, i64 %.6157
  store double %231, ptr %235, align 8, !tbaa !10
  %236 = load ptr, ptr %168, align 8, !tbaa !5
  %237 = getelementptr double, ptr %236, i64 %233
  %238 = getelementptr double, ptr %237, i64 %.6157
  %239 = load double, ptr %238, align 8, !tbaa !10
  %240 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %239, double noundef 0.000000e+00)
  br i1 %240, label %241, label %246

241:                                              ; preds = %221
  %242 = load ptr, ptr %168, align 8, !tbaa !5
  %243 = load i64, ptr %6, align 8, !tbaa !8
  %244 = getelementptr double, ptr %242, i64 %243
  br label %.sink.split

.sink.split:                                      ; preds = %241, %198
  %.sink181 = phi ptr [ %201, %198 ], [ %244, %241 ]
  %245 = getelementptr double, ptr %.sink181, i64 %.6157
  store double 1.000000e+00, ptr %245, align 8, !tbaa !10
  br label %246

246:                                              ; preds = %.sink.split, %180, %170, %221
  %247 = add nuw nsw i64 %.6157, 1
  %248 = load i64, ptr %7, align 8, !tbaa !8
  %.not.not124 = icmp slt i64 %247, %248
  br i1 %.not.not124, label %170, label %.loopexit, !llvm.loop !23

.loopexit:                                        ; preds = %246, %.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
}

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

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


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