; 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::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::multilayerperceptron" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::modelerrors", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool" }
%"struct.alglib_impl::modelerrors" = type { double, double, double, double, double }
%"struct.alglib_impl::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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"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.107 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

44:                                               ; preds = %56, %2
  %45 = load i64, ptr %18, align 8, !tbaa !10
  %46 = load i64, ptr %8, align 8, !tbaa !10
  %47 = sub nsw i64 %46, 1
  %48 = icmp sle i64 %45, %47
  br i1 %48, label %49, label %59

49:                                               ; preds = %44
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %50, i32 0, i32 6
  %52 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %51, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !9
  %54 = load i64, ptr %18, align 8, !tbaa !10
  %55 = getelementptr inbounds double, ptr %53, i64 %54
  store double 1.000000e+00, ptr %55, align 8, !tbaa !12
  br label %56

56:                                               ; preds = %49
  %57 = load i64, ptr %18, align 8, !tbaa !10
  %58 = add nsw i64 %57, 1
  store i64 %58, ptr %18, align 8, !tbaa !10
  br label %44, !llvm.loop !14

59:                                               ; preds = %44
  store i64 2, ptr %12, align 8, !tbaa !10
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %60, i32 0, i32 19
  %62 = load i64, ptr %12, align 8, !tbaa !10
  %63 = load i64, ptr %9, align 8, !tbaa !10
  %64 = mul nsw i64 %62, %63
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %61, i64 noundef %64, ptr noundef %65)
  store i64 0, ptr %14, align 8, !tbaa !10
  br label %66

66:                                               ; preds = %405, %59
  %67 = load i64, ptr %14, align 8, !tbaa !10
  %68 = load i64, ptr %9, align 8, !tbaa !10
  %69 = sub nsw i64 %68, 1
  %70 = icmp sle i64 %67, %69
  br i1 %70, label %71, label %408

71:                                               ; preds = %66
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %72, i32 0, i32 5
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  %76 = load i64, ptr %10, align 8, !tbaa !10
  %77 = load i64, ptr %14, align 8, !tbaa !10
  %78 = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !10
  %79 = mul nsw i64 %77, %78
  %80 = add nsw i64 %76, %79
  %81 = add nsw i64 %80, 0
  %82 = getelementptr inbounds i64, ptr %75, i64 %81
  %83 = load i64, ptr %82, align 8, !tbaa !10
  store i64 %83, ptr %15, align 8, !tbaa !10
  %84 = load i64, ptr %12, align 8, !tbaa !10
  %85 = load i64, ptr %14, align 8, !tbaa !10
  %86 = mul nsw i64 %84, %85
  store i64 %86, ptr %13, align 8, !tbaa !10
  %87 = load i64, ptr %15, align 8, !tbaa !10
  %88 = icmp eq i64 %87, -2
  br i1 %88, label %89, label %104

89:                                               ; preds = %71
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %90, i32 0, i32 19
  %92 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %91, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = load i64, ptr %13, align 8, !tbaa !10
  %95 = add nsw i64 %94, 0
  %96 = getelementptr inbounds double, ptr %93, i64 %95
  store double 0.000000e+00, ptr %96, align 8, !tbaa !12
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %97, i32 0, i32 19
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %98, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  %101 = load i64, ptr %13, align 8, !tbaa !10
  %102 = add nsw i64 %101, 1
  %103 = getelementptr inbounds double, ptr %100, i64 %102
  store double 1.000000e+00, ptr %103, align 8, !tbaa !12
  br label %405

104:                                              ; preds = %71
  %105 = load i64, ptr %15, align 8, !tbaa !10
  %106 = icmp eq i64 %105, -3
  br i1 %106, label %107, label %122

107:                                              ; preds = %104
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %108, i32 0, i32 19
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %109, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !9
  %112 = load i64, ptr %13, align 8, !tbaa !10
  %113 = add nsw i64 %112, 0
  %114 = getelementptr inbounds double, ptr %111, i64 %113
  store double -1.000000e+00, ptr %114, align 8, !tbaa !12
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %115, i32 0, i32 19
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !9
  %119 = load i64, ptr %13, align 8, !tbaa !10
  %120 = add nsw i64 %119, 1
  %121 = getelementptr inbounds double, ptr %118, i64 %120
  store double 0.000000e+00, ptr %121, align 8, !tbaa !12
  br label %405

122:                                              ; preds = %104
  %123 = load i64, ptr %15, align 8, !tbaa !10
  %124 = icmp eq i64 %123, -4
  br i1 %124, label %125, label %140

125:                                              ; preds = %122
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %126, i32 0, i32 19
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %127, i32 0, i32 4
  %129 = load ptr, ptr %128, align 8, !tbaa !9
  %130 = load i64, ptr %13, align 8, !tbaa !10
  %131 = add nsw i64 %130, 0
  %132 = getelementptr inbounds double, ptr %129, i64 %131
  store double 0.000000e+00, ptr %132, align 8, !tbaa !12
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %133, i32 0, i32 19
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %134, i32 0, i32 4
  %136 = load ptr, ptr %135, align 8, !tbaa !9
  %137 = load i64, ptr %13, align 8, !tbaa !10
  %138 = add nsw i64 %137, 1
  %139 = getelementptr inbounds double, ptr %136, i64 %138
  store double 0.000000e+00, ptr %139, align 8, !tbaa !12
  br label %405

140:                                              ; preds = %122
  %141 = load i64, ptr %15, align 8, !tbaa !10
  %142 = icmp eq i64 %141, 0
  br i1 %142, label %143, label %226

143:                                              ; preds = %140
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %144, i32 0, i32 5
  %146 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %145, i32 0, i32 4
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  %148 = load i64, ptr %10, align 8, !tbaa !10
  %149 = load i64, ptr %14, align 8, !tbaa !10
  %150 = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !10
  %151 = mul nsw i64 %149, %150
  %152 = add nsw i64 %148, %151
  %153 = add nsw i64 %152, 2
  %154 = getelementptr inbounds i64, ptr %147, i64 %153
  %155 = load i64, ptr %154, align 8, !tbaa !10
  store i64 %155, ptr %19, align 8, !tbaa !10
  %156 = load i64, ptr %19, align 8, !tbaa !10
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %157, i32 0, i32 5
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %158, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !9
  %161 = load i64, ptr %10, align 8, !tbaa !10
  %162 = load i64, ptr %14, align 8, !tbaa !10
  %163 = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !10
  %164 = mul nsw i64 %162, %163
  %165 = add nsw i64 %161, %164
  %166 = add nsw i64 %165, 1
  %167 = getelementptr inbounds i64, ptr %160, i64 %166
  %168 = load i64, ptr %167, align 8, !tbaa !10
  %169 = add nsw i64 %156, %168
  %170 = sub nsw i64 %169, 1
  store i64 %170, ptr %20, align 8, !tbaa !10
  store double 0.000000e+00, ptr %16, align 8, !tbaa !12
  store double 0.000000e+00, ptr %17, align 8, !tbaa !12
  %171 = load i64, ptr %19, align 8, !tbaa !10
  store i64 %171, ptr %18, align 8, !tbaa !10
  br label %172

172:                                              ; preds = %204, %143
  %173 = load i64, ptr %18, align 8, !tbaa !10
  %174 = load i64, ptr %20, align 8, !tbaa !10
  %175 = icmp sle i64 %173, %174
  br i1 %175, label %176, label %207

176:                                              ; preds = %172
  %177 = load double, ptr %17, align 8, !tbaa !12
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %178, i32 0, i32 19
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %179, i32 0, i32 4
  %181 = load ptr, ptr %180, align 8, !tbaa !9
  %182 = load i64, ptr %12, align 8, !tbaa !10
  %183 = load i64, ptr %18, align 8, !tbaa !10
  %184 = mul nsw i64 %182, %183
  %185 = add nsw i64 %184, 0
  %186 = getelementptr inbounds double, ptr %181, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !12
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %187, ptr noundef %188)
  %190 = fadd double %177, %189
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %191, i32 0, i32 19
  %193 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %192, i32 0, i32 4
  %194 = load ptr, ptr %193, align 8, !tbaa !9
  %195 = load i64, ptr %12, align 8, !tbaa !10
  %196 = load i64, ptr %18, align 8, !tbaa !10
  %197 = mul nsw i64 %195, %196
  %198 = add nsw i64 %197, 1
  %199 = getelementptr inbounds double, ptr %194, i64 %198
  %200 = load double, ptr %199, align 8, !tbaa !12
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %200, ptr noundef %201)
  %203 = fadd double %190, %202
  store double %203, ptr %17, align 8, !tbaa !12
  br label %204

204:                                              ; preds = %176
  %205 = load i64, ptr %18, align 8, !tbaa !10
  %206 = add nsw i64 %205, 1
  store i64 %206, ptr %18, align 8, !tbaa !10
  br label %172, !llvm.loop !16

207:                                              ; preds = %172
  %208 = load double, ptr %16, align 8, !tbaa !12
  %209 = load ptr, ptr %3, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %209, i32 0, i32 19
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %210, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !9
  %213 = load i64, ptr %13, align 8, !tbaa !10
  %214 = add nsw i64 %213, 0
  %215 = getelementptr inbounds double, ptr %212, i64 %214
  store double %208, ptr %215, align 8, !tbaa !12
  %216 = load double, ptr %17, align 8, !tbaa !12
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %216, ptr noundef %217)
  %219 = load ptr, ptr %3, align 8, !tbaa !5
  %220 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %219, i32 0, i32 19
  %221 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %220, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !9
  %223 = load i64, ptr %13, align 8, !tbaa !10
  %224 = add nsw i64 %223, 1
  %225 = getelementptr inbounds double, ptr %222, i64 %224
  store double %218, ptr %225, align 8, !tbaa !12
  br label %405

226:                                              ; preds = %140
  %227 = load i64, ptr %15, align 8, !tbaa !10
  %228 = icmp eq i64 %227, -5
  br i1 %228, label %229, label %296

229:                                              ; preds = %226
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  %231 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %230, i32 0, i32 5
  %232 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %231, i32 0, i32 4
  %233 = load ptr, ptr %232, align 8, !tbaa !9
  %234 = load i64, ptr %10, align 8, !tbaa !10
  %235 = load i64, ptr %14, align 8, !tbaa !10
  %236 = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !10
  %237 = mul nsw i64 %235, %236
  %238 = add nsw i64 %234, %237
  %239 = add nsw i64 %238, 2
  %240 = getelementptr inbounds i64, ptr %233, i64 %239
  %241 = load i64, ptr %240, align 8, !tbaa !10
  store i64 %241, ptr %18, align 8, !tbaa !10
  %242 = load ptr, ptr %3, align 8, !tbaa !5
  %243 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %242, i32 0, i32 19
  %244 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %243, i32 0, i32 4
  %245 = load ptr, ptr %244, align 8, !tbaa !9
  %246 = load i64, ptr %12, align 8, !tbaa !10
  %247 = load i64, ptr %18, align 8, !tbaa !10
  %248 = mul nsw i64 %246, %247
  %249 = add nsw i64 %248, 0
  %250 = getelementptr inbounds double, ptr %245, i64 %249
  %251 = load double, ptr %250, align 8, !tbaa !12
  store double %251, ptr %16, align 8, !tbaa !12
  %252 = load ptr, ptr %3, align 8, !tbaa !5
  %253 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %252, i32 0, i32 19
  %254 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %253, i32 0, i32 4
  %255 = load ptr, ptr %254, align 8, !tbaa !9
  %256 = load i64, ptr %12, align 8, !tbaa !10
  %257 = load i64, ptr %18, align 8, !tbaa !10
  %258 = mul nsw i64 %256, %257
  %259 = add nsw i64 %258, 1
  %260 = getelementptr inbounds double, ptr %255, i64 %259
  %261 = load double, ptr %260, align 8, !tbaa !12
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %261, ptr noundef %262)
  store double %263, ptr %17, align 8, !tbaa !12
  %264 = load double, ptr %17, align 8, !tbaa !12
  %265 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %264, double noundef 0.000000e+00)
  br i1 %265, label %266, label %272

266:                                              ; preds = %229
  %267 = load double, ptr %21, align 8, !tbaa !12
  %268 = load double, ptr %17, align 8, !tbaa !12
  %269 = load ptr, ptr %4, align 8, !tbaa !5
  %270 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %268, ptr noundef %269)
  %271 = fdiv double %267, %270
  store double %271, ptr %26, align 8, !tbaa !12
  br label %273

272:                                              ; preds = %229
  store double 1.000000e+00, ptr %26, align 8, !tbaa !12
  br label %273

273:                                              ; preds = %272, %266
  %274 = load ptr, ptr %3, align 8, !tbaa !5
  %275 = load i64, ptr %18, align 8, !tbaa !10
  %276 = load double, ptr %26, align 8, !tbaa !12
  %277 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_implL29mlpbase_randomizebackwardpassEPNS_20multilayerperceptronEldPNS_8ae_stateE(ptr noundef %274, i64 noundef %275, double noundef %276, ptr noundef %277)
  %278 = load double, ptr %16, align 8, !tbaa !12
  %279 = load double, ptr %26, align 8, !tbaa !12
  %280 = fmul double %278, %279
  %281 = load ptr, ptr %3, align 8, !tbaa !5
  %282 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %281, i32 0, i32 19
  %283 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %282, i32 0, i32 4
  %284 = load ptr, ptr %283, align 8, !tbaa !9
  %285 = load i64, ptr %13, align 8, !tbaa !10
  %286 = add nsw i64 %285, 0
  %287 = getelementptr inbounds double, ptr %284, i64 %286
  store double %280, ptr %287, align 8, !tbaa !12
  %288 = load double, ptr %21, align 8, !tbaa !12
  %289 = load ptr, ptr %3, align 8, !tbaa !5
  %290 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %289, i32 0, i32 19
  %291 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %290, i32 0, i32 4
  %292 = load ptr, ptr %291, align 8, !tbaa !9
  %293 = load i64, ptr %13, align 8, !tbaa !10
  %294 = add nsw i64 %293, 1
  %295 = getelementptr inbounds double, ptr %292, i64 %294
  store double %288, ptr %295, align 8, !tbaa !12
  br label %405

296:                                              ; preds = %226
  %297 = load i64, ptr %15, align 8, !tbaa !10
  %298 = icmp sgt i64 %297, 0
  br i1 %298, label %299, label %403

299:                                              ; preds = %296
  %300 = load ptr, ptr %3, align 8, !tbaa !5
  %301 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %300, i32 0, i32 5
  %302 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %301, i32 0, i32 4
  %303 = load ptr, ptr %302, align 8, !tbaa !9
  %304 = load i64, ptr %10, align 8, !tbaa !10
  %305 = load i64, ptr %14, align 8, !tbaa !10
  %306 = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !10
  %307 = mul nsw i64 %305, %306
  %308 = add nsw i64 %304, %307
  %309 = add nsw i64 %308, 2
  %310 = getelementptr inbounds i64, ptr %303, i64 %309
  %311 = load i64, ptr %310, align 8, !tbaa !10
  store i64 %311, ptr %18, align 8, !tbaa !10
  %312 = load ptr, ptr %3, align 8, !tbaa !5
  %313 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %312, i32 0, i32 19
  %314 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %313, i32 0, i32 4
  %315 = load ptr, ptr %314, align 8, !tbaa !9
  %316 = load i64, ptr %12, align 8, !tbaa !10
  %317 = load i64, ptr %18, align 8, !tbaa !10
  %318 = mul nsw i64 %316, %317
  %319 = add nsw i64 %318, 0
  %320 = getelementptr inbounds double, ptr %315, i64 %319
  %321 = load double, ptr %320, align 8, !tbaa !12
  store double %321, ptr %16, align 8, !tbaa !12
  %322 = load ptr, ptr %3, align 8, !tbaa !5
  %323 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %322, i32 0, i32 19
  %324 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %323, i32 0, i32 4
  %325 = load ptr, ptr %324, align 8, !tbaa !9
  %326 = load i64, ptr %12, align 8, !tbaa !10
  %327 = load i64, ptr %18, align 8, !tbaa !10
  %328 = mul nsw i64 %326, %327
  %329 = add nsw i64 %328, 1
  %330 = getelementptr inbounds double, ptr %325, i64 %329
  %331 = load double, ptr %330, align 8, !tbaa !12
  %332 = load ptr, ptr %4, align 8, !tbaa !5
  %333 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %331, ptr noundef %332)
  store double %333, ptr %17, align 8, !tbaa !12
  %334 = load double, ptr %17, align 8, !tbaa !12
  %335 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %334, double noundef 0.000000e+00)
  br i1 %335, label %336, label %342

336:                                              ; preds = %299
  %337 = load double, ptr %21, align 8, !tbaa !12
  %338 = load double, ptr %17, align 8, !tbaa !12
  %339 = load ptr, ptr %4, align 8, !tbaa !5
  %340 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %338, ptr noundef %339)
  %341 = fdiv double %337, %340
  store double %341, ptr %26, align 8, !tbaa !12
  br label %343

342:                                              ; preds = %299
  store double 1.000000e+00, ptr %26, align 8, !tbaa !12
  br label %343

343:                                              ; preds = %342, %336
  %344 = load ptr, ptr %3, align 8, !tbaa !5
  %345 = load i64, ptr %18, align 8, !tbaa !10
  %346 = load double, ptr %26, align 8, !tbaa !12
  %347 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_implL29mlpbase_randomizebackwardpassEPNS_20multilayerperceptronEldPNS_8ae_stateE(ptr noundef %344, i64 noundef %345, double noundef %346, ptr noundef %347)
  store double 0.000000e+00, ptr %23, align 8, !tbaa !12
  store double 0.000000e+00, ptr %24, align 8, !tbaa !12
  %348 = load double, ptr %16, align 8, !tbaa !12
  %349 = load double, ptr %26, align 8, !tbaa !12
  %350 = fmul double %348, %349
  store double %350, ptr %16, align 8, !tbaa !12
  store i64 0, ptr %18, align 8, !tbaa !10
  br label %351

351:                                              ; preds = %369, %343
  %352 = load i64, ptr %18, align 8, !tbaa !10
  %353 = load i64, ptr %22, align 8, !tbaa !10
  %354 = sub nsw i64 %353, 1
  %355 = icmp sle i64 %352, %354
  br i1 %355, label %356, label %372

356:                                              ; preds = %351
  %357 = load double, ptr %16, align 8, !tbaa !12
  %358 = load double, ptr %21, align 8, !tbaa !12
  %359 = load ptr, ptr %4, align 8, !tbaa !5
  %360 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %11, ptr noundef %359)
  %361 = call double @llvm.fmuladd.f64(double %358, double %360, double %357)
  store double %361, ptr %25, align 8, !tbaa !12
  %362 = load double, ptr %23, align 8, !tbaa !12
  %363 = load double, ptr %25, align 8, !tbaa !12
  %364 = fadd double %362, %363
  store double %364, ptr %23, align 8, !tbaa !12
  %365 = load double, ptr %24, align 8, !tbaa !12
  %366 = load double, ptr %25, align 8, !tbaa !12
  %367 = load double, ptr %25, align 8, !tbaa !12
  %368 = call double @llvm.fmuladd.f64(double %366, double %367, double %365)
  store double %368, ptr %24, align 8, !tbaa !12
  br label %369

369:                                              ; preds = %356
  %370 = load i64, ptr %18, align 8, !tbaa !10
  %371 = add nsw i64 %370, 1
  store i64 %371, ptr %18, align 8, !tbaa !10
  br label %351, !llvm.loop !17

372:                                              ; preds = %351
  %373 = load double, ptr %23, align 8, !tbaa !12
  %374 = load i64, ptr %22, align 8, !tbaa !10
  %375 = sitofp i64 %374 to double
  %376 = fdiv double %373, %375
  store double %376, ptr %23, align 8, !tbaa !12
  %377 = load double, ptr %24, align 8, !tbaa !12
  %378 = load i64, ptr %22, align 8, !tbaa !10
  %379 = sitofp i64 %378 to double
  %380 = fdiv double %377, %379
  store double %380, ptr %24, align 8, !tbaa !12
  %381 = load double, ptr %23, align 8, !tbaa !12
  %382 = load ptr, ptr %3, align 8, !tbaa !5
  %383 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %382, i32 0, i32 19
  %384 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %383, i32 0, i32 4
  %385 = load ptr, ptr %384, align 8, !tbaa !9
  %386 = load i64, ptr %13, align 8, !tbaa !10
  %387 = add nsw i64 %386, 0
  %388 = getelementptr inbounds double, ptr %385, i64 %387
  store double %381, ptr %388, align 8, !tbaa !12
  %389 = load double, ptr %24, align 8, !tbaa !12
  %390 = load double, ptr %23, align 8, !tbaa !12
  %391 = load double, ptr %23, align 8, !tbaa !12
  %392 = fneg double %390
  %393 = call double @llvm.fmuladd.f64(double %392, double %391, double %389)
  %394 = load ptr, ptr %4, align 8, !tbaa !5
  %395 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %393, double noundef 0.000000e+00, ptr noundef %394)
  %396 = load ptr, ptr %3, align 8, !tbaa !5
  %397 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %396, i32 0, i32 19
  %398 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %397, i32 0, i32 4
  %399 = load ptr, ptr %398, align 8, !tbaa !9
  %400 = load i64, ptr %13, align 8, !tbaa !10
  %401 = add nsw i64 %400, 1
  %402 = getelementptr inbounds double, ptr %399, i64 %401
  store double %395, ptr %402, align 8, !tbaa !12
  br label %405

403:                                              ; preds = %296
  %404 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.107, ptr noundef %404)
  br label %405

405:                                              ; preds = %403, %372, %273, %207, %125, %107, %89
  %406 = load i64, ptr %14, align 8, !tbaa !10
  %407 = add nsw i64 %406, 1
  store i64 %407, ptr %14, align 8, !tbaa !10
  br label %66, !llvm.loop !18

408:                                              ; preds = %66
  store i64 0, ptr %18, align 8, !tbaa !10
  br label %409

409:                                              ; preds = %431, %408
  %410 = load i64, ptr %18, align 8, !tbaa !10
  %411 = load i64, ptr %8, align 8, !tbaa !10
  %412 = sub nsw i64 %411, 1
  %413 = icmp sle i64 %410, %412
  br i1 %413, label %414, label %434

414:                                              ; preds = %409
  %415 = load ptr, ptr %3, align 8, !tbaa !5
  %416 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %415, i32 0, i32 6
  %417 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %416, i32 0, i32 4
  %418 = load ptr, ptr %417, align 8, !tbaa !9
  %419 = load i64, ptr %18, align 8, !tbaa !10
  %420 = getelementptr inbounds double, ptr %418, i64 %419
  %421 = load double, ptr %420, align 8, !tbaa !12
  %422 = load ptr, ptr %4, align 8, !tbaa !5
  %423 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %11, ptr noundef %422)
  %424 = fmul double %421, %423
  %425 = load ptr, ptr %3, align 8, !tbaa !5
  %426 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %425, i32 0, i32 6
  %427 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %426, i32 0, i32 4
  %428 = load ptr, ptr %427, align 8, !tbaa !9
  %429 = load i64, ptr %18, align 8, !tbaa !10
  %430 = getelementptr inbounds double, ptr %428, i64 %429
  store double %424, ptr %430, align 8, !tbaa !12
  br label %431

431:                                              ; preds = %414
  %432 = load i64, ptr %18, align 8, !tbaa !10
  %433 = add nsw i64 %432, 1
  store i64 %433, ptr %18, align 8, !tbaa !10
  br label %409, !llvm.loop !19

434:                                              ; preds = %409
  %435 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %435)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  ret void
}

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL29mlpbase_randomizebackwardpassEPNS_20multilayerperceptronEldPNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, ptr noundef) #3

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !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}


; 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::hqrndstate" = type { i64, i64, i64 }

@_ZN11alglib_implL19mlpbase_nfieldwidthE = external hidden local_unnamed_addr global i64, align 8
@.str.107 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl12mlprandomizeEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"struct.alglib_impl::hqrndstate", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %3)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, i8 0, i64 24, i1 false)
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %7, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef %1)
  %8 = getelementptr inbounds i8, ptr %0, i64 264
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 24
  %11 = load i64, ptr %10, align 8, !tbaa !8
  %12 = getelementptr inbounds i8, ptr %9, i64 40
  %13 = load i64, ptr %12, align 8, !tbaa !8
  %14 = load i64, ptr %6, align 8, !tbaa !8
  %.not.not155 = icmp sgt i64 %14, 0
  br i1 %.not.not155, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %15 = getelementptr inbounds i8, ptr %0, i64 328
  %xtraiter = and i64 %14, 3
  %16 = icmp ult i64 %14, 4
  br i1 %16, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %14, 9223372036854775804
  br label %17

17:                                               ; preds = %17, %.lr.ph.new
  %.0149156 = phi i64 [ 0, %.lr.ph.new ], [ %29, %17 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %17 ]
  %18 = load ptr, ptr %15, align 8, !tbaa !5
  %19 = getelementptr inbounds double, ptr %18, i64 %.0149156
  store double 1.000000e+00, ptr %19, align 8, !tbaa !10
  %20 = or disjoint i64 %.0149156, 1
  %21 = load ptr, ptr %15, align 8, !tbaa !5
  %22 = getelementptr inbounds double, ptr %21, i64 %20
  store double 1.000000e+00, ptr %22, align 8, !tbaa !10
  %23 = or disjoint i64 %.0149156, 2
  %24 = load ptr, ptr %15, align 8, !tbaa !5
  %25 = getelementptr inbounds double, ptr %24, i64 %23
  store double 1.000000e+00, ptr %25, align 8, !tbaa !10
  %26 = or disjoint i64 %.0149156, 3
  %27 = load ptr, ptr %15, align 8, !tbaa !5
  %28 = getelementptr inbounds double, ptr %27, i64 %26
  store double 1.000000e+00, ptr %28, align 8, !tbaa !10
  %29 = add nuw nsw i64 %.0149156, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %17, !llvm.loop !12

._crit_edge.loopexit.unr-lcssa:                   ; preds = %17, %.lr.ph
  %.0149156.unr = phi i64 [ 0, %.lr.ph ], [ %29, %17 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.0149156.epil = phi i64 [ %32, %.epil.preheader ], [ %.0149156.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %30 = load ptr, ptr %15, align 8, !tbaa !5
  %31 = getelementptr inbounds double, ptr %30, i64 %.0149156.epil
  store double 1.000000e+00, ptr %31, align 8, !tbaa !10
  %32 = add nuw nsw i64 %.0149156.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !14

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %2
  %33 = getelementptr inbounds i8, ptr %0, i64 1096
  %34 = shl nsw i64 %11, 1
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %33, i64 noundef %34, ptr noundef %1)
  %.not.not152166 = icmp sgt i64 %11, 0
  br i1 %.not.not152166, label %.lr.ph169, label %.preheader

.lr.ph169:                                        ; preds = %._crit_edge
  %35 = getelementptr inbounds i8, ptr %0, i64 1152
  br label %38

.preheader:                                       ; preds = %221, %._crit_edge
  %36 = load i64, ptr %6, align 8, !tbaa !8
  %.not.not153170 = icmp sgt i64 %36, 0
  br i1 %.not.not153170, label %.lr.ph172, label %._crit_edge173

.lr.ph172:                                        ; preds = %.preheader
  %37 = getelementptr inbounds i8, ptr %0, i64 328
  br label %223

38:                                               ; preds = %.lr.ph169, %221
  %.0145167 = phi i64 [ 0, %.lr.ph169 ], [ %222, %221 ]
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = load i64, ptr @_ZN11alglib_implL19mlpbase_nfieldwidthE, align 8, !tbaa !8
  %41 = mul nsw i64 %40, %.0145167
  %42 = getelementptr i64, ptr %39, i64 %13
  %43 = getelementptr i64, ptr %42, i64 %41
  %44 = load i64, ptr %43, align 8, !tbaa !8
  %45 = shl nuw nsw i64 %.0145167, 1
  switch i64 %44, label %111 [
    i64 -2, label %46
    i64 -3, label %52
    i64 -4, label %58
    i64 0, label %64
    i64 -5, label %89
  ]

46:                                               ; preds = %38
  %47 = load ptr, ptr %35, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %47, i64 %45
  store double 0.000000e+00, ptr %48, align 8, !tbaa !10
  %49 = load ptr, ptr %35, align 8, !tbaa !5
  %50 = or disjoint i64 %45, 1
  %51 = getelementptr inbounds double, ptr %49, i64 %50
  store double 1.000000e+00, ptr %51, align 8, !tbaa !10
  br label %221

52:                                               ; preds = %38
  %53 = load ptr, ptr %35, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %53, i64 %45
  store double -1.000000e+00, ptr %54, align 8, !tbaa !10
  %55 = load ptr, ptr %35, align 8, !tbaa !5
  %56 = or disjoint i64 %45, 1
  %57 = getelementptr inbounds double, ptr %55, i64 %56
  store double 0.000000e+00, ptr %57, align 8, !tbaa !10
  br label %221

58:                                               ; preds = %38
  %59 = load ptr, ptr %35, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %59, i64 %45
  store double 0.000000e+00, ptr %60, align 8, !tbaa !10
  %61 = load ptr, ptr %35, align 8, !tbaa !5
  %62 = or disjoint i64 %45, 1
  %63 = getelementptr inbounds double, ptr %61, i64 %62
  store double 0.000000e+00, ptr %63, align 8, !tbaa !10
  br label %221

64:                                               ; preds = %38
  %65 = getelementptr i8, ptr %43, i64 16
  %66 = load i64, ptr %65, align 8, !tbaa !8
  %67 = getelementptr i8, ptr %43, i64 8
  %68 = load i64, ptr %67, align 8, !tbaa !8
  %69 = add nsw i64 %68, %66
  %.not.not154157 = icmp sgt i64 %68, 0
  br i1 %.not.not154157, label %.lr.ph161, label %._crit_edge162

.lr.ph161:                                        ; preds = %64, %.lr.ph161
  %.0148159 = phi double [ %81, %.lr.ph161 ], [ 0.000000e+00, %64 ]
  %.1150158 = phi i64 [ %82, %.lr.ph161 ], [ %66, %64 ]
  %70 = load ptr, ptr %35, align 8, !tbaa !5
  %71 = shl nsw i64 %.1150158, 1
  %72 = getelementptr inbounds double, ptr %70, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !10
  %74 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %73, ptr noundef %1)
  %75 = fadd double %.0148159, %74
  %76 = load ptr, ptr %35, align 8, !tbaa !5
  %77 = or disjoint i64 %71, 1
  %78 = getelementptr inbounds double, ptr %76, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !10
  %80 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %79, ptr noundef %1)
  %81 = fadd double %75, %80
  %82 = add nsw i64 %.1150158, 1
  %.not.not154 = icmp slt i64 %82, %69
  br i1 %.not.not154, label %.lr.ph161, label %._crit_edge162, !llvm.loop !16

._crit_edge162:                                   ; preds = %.lr.ph161, %64
  %.0148.lcssa = phi double [ 0.000000e+00, %64 ], [ %81, %.lr.ph161 ]
  %83 = load ptr, ptr %35, align 8, !tbaa !5
  %84 = getelementptr inbounds double, ptr %83, i64 %45
  store double 0.000000e+00, ptr %84, align 8, !tbaa !10
  %85 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %.0148.lcssa, ptr noundef %1)
  %86 = load ptr, ptr %35, align 8, !tbaa !5
  %87 = or disjoint i64 %45, 1
  %88 = getelementptr inbounds double, ptr %86, i64 %87
  store double %85, ptr %88, align 8, !tbaa !10
  br label %221

89:                                               ; preds = %38
  %90 = getelementptr i8, ptr %43, i64 16
  %91 = load i64, ptr %90, align 8, !tbaa !8
  %92 = load ptr, ptr %35, align 8, !tbaa !5
  %93 = shl nsw i64 %91, 1
  %94 = getelementptr inbounds double, ptr %92, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !10
  %96 = or disjoint i64 %93, 1
  %97 = getelementptr inbounds double, ptr %92, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !10
  %99 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %98, ptr noundef %1)
  %100 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %99, double noundef 0.000000e+00)
  br i1 %100, label %101, label %104

101:                                              ; preds = %89
  %102 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %99, ptr noundef %1)
  %103 = fdiv double 5.000000e-01, %102
  br label %104

104:                                              ; preds = %89, %101
  %.0 = phi double [ %103, %101 ], [ 1.000000e+00, %89 ]
  call void @_ZN11alglib_implL29mlpbase_randomizebackwardpassEPNS_20multilayerperceptronEldPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %91, double noundef %.0, ptr noundef %1)
  %105 = fmul double %95, %.0
  %106 = load ptr, ptr %35, align 8, !tbaa !5
  %107 = getelementptr inbounds double, ptr %106, i64 %45
  store double %105, ptr %107, align 8, !tbaa !10
  %108 = load ptr, ptr %35, align 8, !tbaa !5
  %109 = or disjoint i64 %45, 1
  %110 = getelementptr inbounds double, ptr %108, i64 %109
  store double 5.000000e-01, ptr %110, align 8, !tbaa !10
  br label %221

111:                                              ; preds = %38
  %112 = icmp sgt i64 %44, 0
  br i1 %112, label %113, label %220

113:                                              ; preds = %111
  %114 = getelementptr i8, ptr %43, i64 16
  %115 = load i64, ptr %114, align 8, !tbaa !8
  %116 = load ptr, ptr %35, align 8, !tbaa !5
  %117 = shl nsw i64 %115, 1
  %118 = getelementptr inbounds double, ptr %116, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !10
  %120 = or disjoint i64 %117, 1
  %121 = getelementptr inbounds double, ptr %116, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !10
  %123 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %122, ptr noundef %1)
  %124 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %123, double noundef 0.000000e+00)
  br i1 %124, label %125, label %128

125:                                              ; preds = %113
  %126 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %123, ptr noundef %1)
  %127 = fdiv double 5.000000e-01, %126
  br label %128

128:                                              ; preds = %113, %125
  %.1 = phi double [ %127, %125 ], [ 1.000000e+00, %113 ]
  call void @_ZN11alglib_implL29mlpbase_randomizebackwardpassEPNS_20multilayerperceptronEldPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %115, double noundef %.1, ptr noundef %1)
  %129 = fmul double %119, %.1
  %130 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %131 = call double @llvm.fmuladd.f64(double %130, double 5.000000e-01, double %129)
  %132 = fadd double %131, 0.000000e+00
  %133 = call double @llvm.fmuladd.f64(double %131, double %131, double 0.000000e+00)
  %134 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %135 = call double @llvm.fmuladd.f64(double %134, double 5.000000e-01, double %129)
  %136 = fadd double %132, %135
  %137 = call double @llvm.fmuladd.f64(double %135, double %135, double %133)
  %138 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %139 = call double @llvm.fmuladd.f64(double %138, double 5.000000e-01, double %129)
  %140 = fadd double %136, %139
  %141 = call double @llvm.fmuladd.f64(double %139, double %139, double %137)
  %142 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %143 = call double @llvm.fmuladd.f64(double %142, double 5.000000e-01, double %129)
  %144 = fadd double %140, %143
  %145 = call double @llvm.fmuladd.f64(double %143, double %143, double %141)
  %146 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %147 = call double @llvm.fmuladd.f64(double %146, double 5.000000e-01, double %129)
  %148 = fadd double %144, %147
  %149 = call double @llvm.fmuladd.f64(double %147, double %147, double %145)
  %150 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %151 = call double @llvm.fmuladd.f64(double %150, double 5.000000e-01, double %129)
  %152 = fadd double %148, %151
  %153 = call double @llvm.fmuladd.f64(double %151, double %151, double %149)
  %154 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %155 = call double @llvm.fmuladd.f64(double %154, double 5.000000e-01, double %129)
  %156 = fadd double %152, %155
  %157 = call double @llvm.fmuladd.f64(double %155, double %155, double %153)
  %158 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %159 = call double @llvm.fmuladd.f64(double %158, double 5.000000e-01, double %129)
  %160 = fadd double %156, %159
  %161 = call double @llvm.fmuladd.f64(double %159, double %159, double %157)
  %162 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %163 = call double @llvm.fmuladd.f64(double %162, double 5.000000e-01, double %129)
  %164 = fadd double %160, %163
  %165 = call double @llvm.fmuladd.f64(double %163, double %163, double %161)
  %166 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %167 = call double @llvm.fmuladd.f64(double %166, double 5.000000e-01, double %129)
  %168 = fadd double %164, %167
  %169 = call double @llvm.fmuladd.f64(double %167, double %167, double %165)
  %170 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %171 = call double @llvm.fmuladd.f64(double %170, double 5.000000e-01, double %129)
  %172 = fadd double %168, %171
  %173 = call double @llvm.fmuladd.f64(double %171, double %171, double %169)
  %174 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %175 = call double @llvm.fmuladd.f64(double %174, double 5.000000e-01, double %129)
  %176 = fadd double %172, %175
  %177 = call double @llvm.fmuladd.f64(double %175, double %175, double %173)
  %178 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %179 = call double @llvm.fmuladd.f64(double %178, double 5.000000e-01, double %129)
  %180 = fadd double %176, %179
  %181 = call double @llvm.fmuladd.f64(double %179, double %179, double %177)
  %182 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %183 = call double @llvm.fmuladd.f64(double %182, double 5.000000e-01, double %129)
  %184 = fadd double %180, %183
  %185 = call double @llvm.fmuladd.f64(double %183, double %183, double %181)
  %186 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %187 = call double @llvm.fmuladd.f64(double %186, double 5.000000e-01, double %129)
  %188 = fadd double %184, %187
  %189 = call double @llvm.fmuladd.f64(double %187, double %187, double %185)
  %190 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %191 = call double @llvm.fmuladd.f64(double %190, double 5.000000e-01, double %129)
  %192 = fadd double %188, %191
  %193 = call double @llvm.fmuladd.f64(double %191, double %191, double %189)
  %194 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %195 = call double @llvm.fmuladd.f64(double %194, double 5.000000e-01, double %129)
  %196 = fadd double %192, %195
  %197 = call double @llvm.fmuladd.f64(double %195, double %195, double %193)
  %198 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %199 = call double @llvm.fmuladd.f64(double %198, double 5.000000e-01, double %129)
  %200 = fadd double %196, %199
  %201 = call double @llvm.fmuladd.f64(double %199, double %199, double %197)
  %202 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %203 = call double @llvm.fmuladd.f64(double %202, double 5.000000e-01, double %129)
  %204 = fadd double %200, %203
  %205 = call double @llvm.fmuladd.f64(double %203, double %203, double %201)
  %206 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %207 = call double @llvm.fmuladd.f64(double %206, double 5.000000e-01, double %129)
  %208 = fadd double %204, %207
  %209 = call double @llvm.fmuladd.f64(double %207, double %207, double %205)
  %210 = fdiv double %208, 2.000000e+01
  %211 = fdiv double %209, 2.000000e+01
  %212 = load ptr, ptr %35, align 8, !tbaa !5
  %213 = getelementptr inbounds double, ptr %212, i64 %45
  store double %210, ptr %213, align 8, !tbaa !10
  %214 = fneg double %210
  %215 = call double @llvm.fmuladd.f64(double %214, double %210, double %211)
  %216 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %215, double noundef 0.000000e+00, ptr noundef %1)
  %217 = load ptr, ptr %35, align 8, !tbaa !5
  %218 = or disjoint i64 %45, 1
  %219 = getelementptr inbounds double, ptr %217, i64 %218
  store double %216, ptr %219, align 8, !tbaa !10
  br label %221

220:                                              ; preds = %111
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.107, ptr noundef %1)
  br label %221

221:                                              ; preds = %220, %128, %104, %._crit_edge162, %58, %52, %46
  %222 = add nuw nsw i64 %.0145167, 1
  %exitcond177.not = icmp eq i64 %222, %11
  br i1 %exitcond177.not, label %.preheader, label %38, !llvm.loop !17

223:                                              ; preds = %.lr.ph172, %223
  %.3171 = phi i64 [ 0, %.lr.ph172 ], [ %231, %223 ]
  %224 = load ptr, ptr %37, align 8, !tbaa !5
  %225 = getelementptr inbounds double, ptr %224, i64 %.3171
  %226 = load double, ptr %225, align 8, !tbaa !10
  %227 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %228 = fmul double %226, %227
  %229 = load ptr, ptr %37, align 8, !tbaa !5
  %230 = getelementptr inbounds double, ptr %229, i64 %.3171
  store double %228, ptr %230, align 8, !tbaa !10
  %231 = add nuw nsw i64 %.3171, 1
  %232 = load i64, ptr %6, align 8, !tbaa !8
  %.not.not153 = icmp slt i64 %231, %232
  br i1 %.not.not153, label %223, label %._crit_edge173, !llvm.loop !18

._crit_edge173:                                   ; preds = %223, %.preheader
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  ret void
}

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL29mlpbase_randomizebackwardpassEPNS_20multilayerperceptronEldPNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}


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