; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z12testmlptrainbPN11alglib_impl8ae_stateE)

; 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::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 }
%union.anon = 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 }
%"struct.alglib_impl::mlpreport" = type { double, double, double, double, double, i64, i64, i64 }
%"struct.alglib_impl::mlpcvreport" = type { double, double, double, double, double }

@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.518 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.556 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.557 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.558 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.559 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.560 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.561 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.562 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.563 = external hidden unnamed_addr constant [42 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

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

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

declare i32 @printf(ptr noundef, ...) #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #1

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

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

declare void @_ZN11alglib_impl26_multilayerperceptron_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z12testmlptrainbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #3 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca i8, align 1
  %7 = alloca i64, align 8
  %8 = alloca %"struct.alglib_impl::multilayerperceptron", align 8
  %9 = alloca %"struct.alglib_impl::multilayerperceptron", align 8
  %10 = alloca %"struct.alglib_impl::mlpreport", align 8
  %11 = alloca %"struct.alglib_impl::mlpcvreport", align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = zext i1 %0 to i8
  store i8 %23, ptr %3, align 1, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 2104, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 2104, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #4
  %24 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %24, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 2104, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 2104, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 40, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 80, i1 false)
  %25 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl26_multilayerperceptron_initEPvPNS_8ae_stateEb(ptr noundef %8, ptr noundef %25, i1 noundef zeroext true)
  %26 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl26_multilayerperceptron_initEPvPNS_8ae_stateEb(ptr noundef %9, ptr noundef %26, i1 noundef zeroext true)
  %27 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl15_mlpreport_initEPvPNS_8ae_stateEb(ptr noundef %10, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl17_mlpcvreport_initEPvPNS_8ae_stateEb(ptr noundef %11, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %12, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %13, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %30, i1 noundef zeroext true)
  store i8 0, ptr %6, align 1, !tbaa !5
  store i8 0, ptr %14, align 1, !tbaa !5
  store i8 0, ptr %15, align 1, !tbaa !5
  store i8 0, ptr %16, align 1, !tbaa !5
  store i8 0, ptr %17, align 1, !tbaa !5
  store i8 0, ptr %18, align 1, !tbaa !5
  store i8 0, ptr %19, align 1, !tbaa !5
  store i8 0, ptr %20, align 1, !tbaa !5
  store i8 0, ptr %21, align 1, !tbaa !5
  %31 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %12, i64 noundef 4, i64 noundef 3, ptr noundef %31)
  %32 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = getelementptr inbounds ptr, ptr %33, i64 0
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = getelementptr inbounds double, ptr %35, i64 0
  store double -1.000000e+00, ptr %36, align 8, !tbaa !12
  %37 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = getelementptr inbounds ptr, ptr %38, i64 0
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds double, ptr %40, i64 1
  store double -1.000000e+00, ptr %41, align 8, !tbaa !12
  %42 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %43 = load ptr, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds ptr, ptr %43, i64 0
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = getelementptr inbounds double, ptr %45, i64 2
  store double -1.000000e+00, ptr %46, align 8, !tbaa !12
  %47 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = getelementptr inbounds ptr, ptr %48, i64 1
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = getelementptr inbounds double, ptr %50, i64 0
  store double 1.000000e+00, ptr %51, align 8, !tbaa !12
  %52 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %53 = load ptr, ptr %52, align 8, !tbaa !11
  %54 = getelementptr inbounds ptr, ptr %53, i64 1
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = getelementptr inbounds double, ptr %55, i64 1
  store double -1.000000e+00, ptr %56, align 8, !tbaa !12
  %57 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %58 = load ptr, ptr %57, align 8, !tbaa !11
  %59 = getelementptr inbounds ptr, ptr %58, i64 1
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = getelementptr inbounds double, ptr %60, i64 2
  store double 1.000000e+00, ptr %61, align 8, !tbaa !12
  %62 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %63 = load ptr, ptr %62, align 8, !tbaa !11
  %64 = getelementptr inbounds ptr, ptr %63, i64 2
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  %66 = getelementptr inbounds double, ptr %65, i64 0
  store double -1.000000e+00, ptr %66, align 8, !tbaa !12
  %67 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  %69 = getelementptr inbounds ptr, ptr %68, i64 2
  %70 = load ptr, ptr %69, align 8, !tbaa !9
  %71 = getelementptr inbounds double, ptr %70, i64 1
  store double 1.000000e+00, ptr %71, align 8, !tbaa !12
  %72 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %73 = load ptr, ptr %72, align 8, !tbaa !11
  %74 = getelementptr inbounds ptr, ptr %73, i64 2
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  %76 = getelementptr inbounds double, ptr %75, i64 2
  store double 1.000000e+00, ptr %76, align 8, !tbaa !12
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %78 = load ptr, ptr %77, align 8, !tbaa !11
  %79 = getelementptr inbounds ptr, ptr %78, i64 3
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  %81 = getelementptr inbounds double, ptr %80, i64 0
  store double 1.000000e+00, ptr %81, align 8, !tbaa !12
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %83 = load ptr, ptr %82, align 8, !tbaa !11
  %84 = getelementptr inbounds ptr, ptr %83, i64 3
  %85 = load ptr, ptr %84, align 8, !tbaa !9
  %86 = getelementptr inbounds double, ptr %85, i64 1
  store double 1.000000e+00, ptr %86, align 8, !tbaa !12
  %87 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %88 = load ptr, ptr %87, align 8, !tbaa !11
  %89 = getelementptr inbounds ptr, ptr %88, i64 3
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = getelementptr inbounds double, ptr %90, i64 2
  store double -1.000000e+00, ptr %91, align 8, !tbaa !12
  %92 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl10mlpcreate1ElllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef 2, i64 noundef 2, i64 noundef 1, ptr noundef %8, ptr noundef %92)
  %93 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl10mlptrainlmEPNS_20multilayerperceptronEPNS_9ae_matrixEldlPlPNS_9mlpreportEPNS_8ae_stateE(ptr noundef %8, ptr noundef %12, i64 noundef 4, double noundef 1.000000e-03, i64 noundef 10, ptr noundef %7, ptr noundef %10, ptr noundef %93)
  %94 = load i8, ptr %14, align 1, !tbaa !5, !range !14, !noundef !15
  %95 = trunc i8 %94 to i1
  br i1 %95, label %100, label %96

96:                                               ; preds = %2
  %97 = load ptr, ptr %4, align 8, !tbaa !9
  %98 = call noundef double @_ZN11alglib_impl11mlprmserrorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %8, ptr noundef %12, i64 noundef 4, ptr noundef %97)
  %99 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %98, double noundef 1.000000e-01)
  br label %100

100:                                              ; preds = %96, %2
  %101 = phi i1 [ true, %2 ], [ %99, %96 ]
  %102 = zext i1 %101 to i8
  store i8 %102, ptr %14, align 1, !tbaa !5
  %103 = load i8, ptr %14, align 1, !tbaa !5, !range !14, !noundef !15
  %104 = trunc i8 %103 to i1
  br i1 %104, label %108, label %105

105:                                              ; preds = %100
  %106 = load ptr, ptr %4, align 8, !tbaa !9
  %107 = call noundef zeroext i1 @_ZL31testmlptrainunit_testmlptrainesPN11alglib_impl8ae_stateE(ptr noundef %106)
  br label %108

108:                                              ; preds = %105, %100
  %109 = phi i1 [ true, %100 ], [ %107, %105 ]
  %110 = zext i1 %109 to i8
  store i8 %110, ptr %14, align 1, !tbaa !5
  %111 = load ptr, ptr %4, align 8, !tbaa !9
  %112 = call noundef zeroext i1 @_ZL31testmlptrainunit_testmlpcverrorPN11alglib_impl8ae_stateE(ptr noundef %111)
  %113 = zext i1 %112 to i8
  store i8 %113, ptr %15, align 1, !tbaa !5
  %114 = load ptr, ptr %4, align 8, !tbaa !9
  %115 = call noundef zeroext i1 @_ZL33testmlptrainunit_testmlptrainregrPN11alglib_impl8ae_stateE(ptr noundef %114)
  br i1 %115, label %119, label %116

116:                                              ; preds = %108
  %117 = load ptr, ptr %4, align 8, !tbaa !9
  %118 = call noundef zeroext i1 @_ZL35testmlptrainunit_testmlpzeroweightsPN11alglib_impl8ae_stateE(ptr noundef %117)
  br label %119

119:                                              ; preds = %116, %108
  %120 = phi i1 [ true, %108 ], [ %118, %116 ]
  %121 = zext i1 %120 to i8
  store i8 %121, ptr %16, align 1, !tbaa !5
  %122 = load ptr, ptr %4, align 8, !tbaa !9
  %123 = call noundef zeroext i1 @_ZL34testmlptrainunit_testmlptrainclassPN11alglib_impl8ae_stateE(ptr noundef %122)
  %124 = zext i1 %123 to i8
  store i8 %124, ptr %17, align 1, !tbaa !5
  %125 = load ptr, ptr %4, align 8, !tbaa !9
  %126 = call noundef zeroext i1 @_ZL32testmlptrainunit_testmlprestartsPN11alglib_impl8ae_stateE(ptr noundef %125)
  %127 = zext i1 %126 to i8
  store i8 %127, ptr %18, align 1, !tbaa !5
  %128 = load ptr, ptr %4, align 8, !tbaa !9
  %129 = call noundef zeroext i1 @_ZL31testmlptrainunit_testmlpxorregrPN11alglib_impl8ae_stateE(ptr noundef %128)
  %130 = zext i1 %129 to i8
  store i8 %130, ptr %19, align 1, !tbaa !5
  %131 = load ptr, ptr %4, align 8, !tbaa !9
  %132 = call noundef zeroext i1 @_ZL30testmlptrainunit_testmlpxorclsPN11alglib_impl8ae_stateE(ptr noundef %131)
  %133 = zext i1 %132 to i8
  store i8 %133, ptr %20, align 1, !tbaa !5
  %134 = load ptr, ptr %4, align 8, !tbaa !9
  %135 = call noundef zeroext i1 @_ZL32testmlptrainunit_testmlptrainensPN11alglib_impl8ae_stateE(ptr noundef %134)
  br i1 %135, label %142, label %136

136:                                              ; preds = %119
  %137 = load ptr, ptr %4, align 8, !tbaa !9
  %138 = call noundef zeroext i1 @_ZL36testmlptrainunit_testmlptrainensregrPN11alglib_impl8ae_stateE(ptr noundef %137)
  br i1 %138, label %142, label %139

139:                                              ; preds = %136
  %140 = load ptr, ptr %4, align 8, !tbaa !9
  %141 = call noundef zeroext i1 @_ZL35testmlptrainunit_testmlptrainensclsPN11alglib_impl8ae_stateE(ptr noundef %140)
  br label %142

142:                                              ; preds = %139, %136, %119
  %143 = phi i1 [ true, %136 ], [ true, %119 ], [ %141, %139 ]
  %144 = zext i1 %143 to i8
  store i8 %144, ptr %21, align 1, !tbaa !5
  %145 = load i8, ptr %14, align 1, !tbaa !5, !range !14, !noundef !15
  %146 = trunc i8 %145 to i1
  br i1 %146, label %168, label %147

147:                                              ; preds = %142
  %148 = load i8, ptr %16, align 1, !tbaa !5, !range !14, !noundef !15
  %149 = trunc i8 %148 to i1
  br i1 %149, label %168, label %150

150:                                              ; preds = %147
  %151 = load i8, ptr %17, align 1, !tbaa !5, !range !14, !noundef !15
  %152 = trunc i8 %151 to i1
  br i1 %152, label %168, label %153

153:                                              ; preds = %150
  %154 = load i8, ptr %18, align 1, !tbaa !5, !range !14, !noundef !15
  %155 = trunc i8 %154 to i1
  br i1 %155, label %168, label %156

156:                                              ; preds = %153
  %157 = load i8, ptr %19, align 1, !tbaa !5, !range !14, !noundef !15
  %158 = trunc i8 %157 to i1
  br i1 %158, label %168, label %159

159:                                              ; preds = %156
  %160 = load i8, ptr %20, align 1, !tbaa !5, !range !14, !noundef !15
  %161 = trunc i8 %160 to i1
  br i1 %161, label %168, label %162

162:                                              ; preds = %159
  %163 = load i8, ptr %15, align 1, !tbaa !5, !range !14, !noundef !15
  %164 = trunc i8 %163 to i1
  br i1 %164, label %168, label %165

165:                                              ; preds = %162
  %166 = load i8, ptr %21, align 1, !tbaa !5, !range !14, !noundef !15
  %167 = trunc i8 %166 to i1
  br label %168

168:                                              ; preds = %165, %162, %159, %156, %153, %150, %147, %142
  %169 = phi i1 [ true, %162 ], [ true, %159 ], [ true, %156 ], [ true, %153 ], [ true, %150 ], [ true, %147 ], [ true, %142 ], [ %167, %165 ]
  %170 = zext i1 %169 to i8
  store i8 %170, ptr %6, align 1, !tbaa !5
  %171 = load i8, ptr %3, align 1, !tbaa !5, !range !14, !noundef !15
  %172 = trunc i8 %171 to i1
  br i1 %172, label %247, label %173

173:                                              ; preds = %168
  %174 = call i32 (ptr, ...) @printf(ptr noundef @.str.518)
  %175 = call i32 (ptr, ...) @printf(ptr noundef @.str.556)
  %176 = load i8, ptr %15, align 1, !tbaa !5, !range !14, !noundef !15
  %177 = trunc i8 %176 to i1
  br i1 %177, label %180, label %178

178:                                              ; preds = %173
  %179 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %182

180:                                              ; preds = %173
  %181 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %182

182:                                              ; preds = %180, %178
  %183 = call i32 (ptr, ...) @printf(ptr noundef @.str.557)
  %184 = load i8, ptr %14, align 1, !tbaa !5, !range !14, !noundef !15
  %185 = trunc i8 %184 to i1
  br i1 %185, label %188, label %186

186:                                              ; preds = %182
  %187 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %190

188:                                              ; preds = %182
  %189 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %190

190:                                              ; preds = %188, %186
  %191 = call i32 (ptr, ...) @printf(ptr noundef @.str.558)
  %192 = load i8, ptr %16, align 1, !tbaa !5, !range !14, !noundef !15
  %193 = trunc i8 %192 to i1
  br i1 %193, label %194, label %196

194:                                              ; preds = %190
  %195 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %198

196:                                              ; preds = %190
  %197 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %198

198:                                              ; preds = %196, %194
  %199 = call i32 (ptr, ...) @printf(ptr noundef @.str.559)
  %200 = load i8, ptr %17, align 1, !tbaa !5, !range !14, !noundef !15
  %201 = trunc i8 %200 to i1
  br i1 %201, label %202, label %204

202:                                              ; preds = %198
  %203 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %206

204:                                              ; preds = %198
  %205 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %206

206:                                              ; preds = %204, %202
  %207 = call i32 (ptr, ...) @printf(ptr noundef @.str.560)
  %208 = load i8, ptr %18, align 1, !tbaa !5, !range !14, !noundef !15
  %209 = trunc i8 %208 to i1
  br i1 %209, label %210, label %212

210:                                              ; preds = %206
  %211 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %214

212:                                              ; preds = %206
  %213 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %214

214:                                              ; preds = %212, %210
  %215 = call i32 (ptr, ...) @printf(ptr noundef @.str.561)
  %216 = load i8, ptr %19, align 1, !tbaa !5, !range !14, !noundef !15
  %217 = trunc i8 %216 to i1
  br i1 %217, label %218, label %220

218:                                              ; preds = %214
  %219 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %222

220:                                              ; preds = %214
  %221 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %222

222:                                              ; preds = %220, %218
  %223 = call i32 (ptr, ...) @printf(ptr noundef @.str.562)
  %224 = load i8, ptr %20, align 1, !tbaa !5, !range !14, !noundef !15
  %225 = trunc i8 %224 to i1
  br i1 %225, label %226, label %228

226:                                              ; preds = %222
  %227 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %230

228:                                              ; preds = %222
  %229 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %230

230:                                              ; preds = %228, %226
  %231 = call i32 (ptr, ...) @printf(ptr noundef @.str.563)
  %232 = load i8, ptr %21, align 1, !tbaa !5, !range !14, !noundef !15
  %233 = trunc i8 %232 to i1
  br i1 %233, label %234, label %236

234:                                              ; preds = %230
  %235 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %238

236:                                              ; preds = %230
  %237 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %238

238:                                              ; preds = %236, %234
  %239 = load i8, ptr %6, align 1, !tbaa !5, !range !14, !noundef !15
  %240 = trunc i8 %239 to i1
  br i1 %240, label %241, label %243

241:                                              ; preds = %238
  %242 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  br label %245

243:                                              ; preds = %238
  %244 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  br label %245

245:                                              ; preds = %243, %241
  %246 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %247

247:                                              ; preds = %245, %168
  %248 = load i8, ptr %6, align 1, !tbaa !5, !range !14, !noundef !15
  %249 = trunc i8 %248 to i1
  %250 = xor i1 %249, true
  %251 = zext i1 %250 to i8
  store i8 %251, ptr %22, align 1, !tbaa !5
  %252 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %252)
  %253 = load i8, ptr %22, align 1, !tbaa !5, !range !14, !noundef !15
  %254 = trunc i8 %253 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 2104, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 2104, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #4
  ret i1 %254
}

declare void @_ZN11alglib_impl15_mlpreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #1

declare void @_ZN11alglib_impl17_mlpcvreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #1

declare void @_ZN11alglib_impl10mlpcreate1ElllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl10mlptrainlmEPNS_20multilayerperceptronEPNS_9ae_matrixEldlPlPNS_9mlpreportEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, double noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl11mlprmserrorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL31testmlptrainunit_testmlptrainesPN11alglib_impl8ae_stateE(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL31testmlptrainunit_testmlpcverrorPN11alglib_impl8ae_stateE(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL33testmlptrainunit_testmlptrainregrPN11alglib_impl8ae_stateE(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL35testmlptrainunit_testmlpzeroweightsPN11alglib_impl8ae_stateE(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL34testmlptrainunit_testmlptrainclassPN11alglib_impl8ae_stateE(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL32testmlptrainunit_testmlprestartsPN11alglib_impl8ae_stateE(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL31testmlptrainunit_testmlpxorregrPN11alglib_impl8ae_stateE(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL30testmlptrainunit_testmlpxorclsPN11alglib_impl8ae_stateE(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL32testmlptrainunit_testmlptrainensPN11alglib_impl8ae_stateE(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL36testmlptrainunit_testmlptrainensregrPN11alglib_impl8ae_stateE(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL35testmlptrainunit_testmlptrainensclsPN11alglib_impl8ae_stateE(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{i8 0, i8 2}
!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::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 }
%union.anon = 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 }
%"struct.alglib_impl::mlpreport" = type { double, double, double, double, double, i64, i64, i64 }
%"struct.alglib_impl::mlpcvreport" = type { double, double, double, double, double }

@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.518 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.556 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.557 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.558 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.559 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.560 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.561 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.562 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.563 = external hidden unnamed_addr constant [42 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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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

declare void @_ZN11alglib_impl26_multilayerperceptron_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z12testmlptrainbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #4 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca i64, align 8
  %5 = alloca %"struct.alglib_impl::multilayerperceptron", align 8
  %6 = alloca %"struct.alglib_impl::multilayerperceptron", align 8
  %7 = alloca %"struct.alglib_impl::mlpreport", align 8
  %8 = alloca %"struct.alglib_impl::mlpcvreport", align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %10 = alloca %"struct.alglib_impl::ae_matrix", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 2104, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 2104, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %10) #5
  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(2104) %5, i8 0, i64 2104, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(2104) %6, i8 0, i64 2104, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %8, i8 0, i64 40, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %9, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %10, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl26_multilayerperceptron_initEPvPNS_8ae_stateEb(ptr noundef nonnull %5, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl26_multilayerperceptron_initEPvPNS_8ae_stateEb(ptr noundef nonnull %6, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl15_mlpreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %7, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl17_mlpcvreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %8, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef 4, i64 noundef 3, ptr noundef %1)
  %11 = getelementptr inbounds i8, ptr %9, i64 72
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = load ptr, ptr %12, align 8, !tbaa !8
  store double -1.000000e+00, ptr %13, align 8, !tbaa !10
  %14 = load ptr, ptr %11, align 8, !tbaa !5
  %15 = load ptr, ptr %14, align 8, !tbaa !8
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  store double -1.000000e+00, ptr %16, align 8, !tbaa !10
  %17 = load ptr, ptr %11, align 8, !tbaa !5
  %18 = load ptr, ptr %17, align 8, !tbaa !8
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  store double -1.000000e+00, ptr %19, align 8, !tbaa !10
  %20 = load ptr, ptr %11, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !8
  store double 1.000000e+00, ptr %22, align 8, !tbaa !10
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !8
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  store double -1.000000e+00, ptr %26, align 8, !tbaa !10
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !8
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  store double 1.000000e+00, ptr %30, align 8, !tbaa !10
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %33 = load ptr, ptr %32, align 8, !tbaa !8
  store double -1.000000e+00, ptr %33, align 8, !tbaa !10
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %36 = load ptr, ptr %35, align 8, !tbaa !8
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  store double 1.000000e+00, ptr %37, align 8, !tbaa !10
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %40 = load ptr, ptr %39, align 8, !tbaa !8
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  store double 1.000000e+00, ptr %41, align 8, !tbaa !10
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 24
  %44 = load ptr, ptr %43, align 8, !tbaa !8
  store double 1.000000e+00, ptr %44, align 8, !tbaa !10
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 24
  %47 = load ptr, ptr %46, align 8, !tbaa !8
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  store double 1.000000e+00, ptr %48, align 8, !tbaa !10
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 24
  %51 = load ptr, ptr %50, align 8, !tbaa !8
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  store double -1.000000e+00, ptr %52, align 8, !tbaa !10
  call void @_ZN11alglib_impl10mlpcreate1ElllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef 2, i64 noundef 2, i64 noundef 1, ptr noundef nonnull %5, ptr noundef %1)
  call void @_ZN11alglib_impl10mlptrainlmEPNS_20multilayerperceptronEPNS_9ae_matrixEldlPlPNS_9mlpreportEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %9, i64 noundef 4, double noundef 1.000000e-03, i64 noundef 10, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef %1)
  %53 = call noundef double @_ZN11alglib_impl11mlprmserrorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %9, i64 noundef 4, ptr noundef %1)
  %54 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %53, double noundef 1.000000e-01)
  br i1 %54, label %57, label %55

55:                                               ; preds = %2
  %56 = call noundef zeroext i1 @_ZL31testmlptrainunit_testmlptrainesPN11alglib_impl8ae_stateE(ptr noundef %1)
  br label %57

57:                                               ; preds = %55, %2
  %58 = phi i1 [ true, %2 ], [ %56, %55 ]
  %59 = call noundef zeroext i1 @_ZL31testmlptrainunit_testmlpcverrorPN11alglib_impl8ae_stateE(ptr noundef %1)
  %60 = call noundef zeroext i1 @_ZL33testmlptrainunit_testmlptrainregrPN11alglib_impl8ae_stateE(ptr noundef %1)
  br i1 %60, label %63, label %61

61:                                               ; preds = %57
  %62 = call noundef zeroext i1 @_ZL35testmlptrainunit_testmlpzeroweightsPN11alglib_impl8ae_stateE(ptr noundef %1)
  br label %63

63:                                               ; preds = %61, %57
  %64 = phi i1 [ true, %57 ], [ %62, %61 ]
  %65 = call noundef zeroext i1 @_ZL34testmlptrainunit_testmlptrainclassPN11alglib_impl8ae_stateE(ptr noundef %1)
  %66 = call noundef zeroext i1 @_ZL32testmlptrainunit_testmlprestartsPN11alglib_impl8ae_stateE(ptr noundef %1)
  %67 = call noundef zeroext i1 @_ZL31testmlptrainunit_testmlpxorregrPN11alglib_impl8ae_stateE(ptr noundef %1)
  %68 = call noundef zeroext i1 @_ZL30testmlptrainunit_testmlpxorclsPN11alglib_impl8ae_stateE(ptr noundef %1)
  %69 = call noundef zeroext i1 @_ZL32testmlptrainunit_testmlptrainensPN11alglib_impl8ae_stateE(ptr noundef %1)
  br i1 %69, label %74, label %70

70:                                               ; preds = %63
  %71 = call noundef zeroext i1 @_ZL36testmlptrainunit_testmlptrainensregrPN11alglib_impl8ae_stateE(ptr noundef %1)
  br i1 %71, label %74, label %72

72:                                               ; preds = %70
  %73 = call noundef zeroext i1 @_ZL35testmlptrainunit_testmlptrainensclsPN11alglib_impl8ae_stateE(ptr noundef %1)
  br label %74

74:                                               ; preds = %72, %70, %63
  %75 = phi i1 [ true, %70 ], [ true, %63 ], [ %73, %72 ]
  %spec.select = or i1 %59, %75
  %76 = or i1 %64, %spec.select
  %77 = or i1 %58, %76
  %78 = or i1 %65, %77
  %79 = or i1 %66, %78
  %80 = or i1 %67, %79
  %spec.select48 = or i1 %68, %80
  br i1 %0, label %101, label %81

81:                                               ; preds = %74
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.518)
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.556)
  %.str.7..str.6 = select i1 %59, ptr @.str.7, ptr @.str.6
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.557)
  %.str.7.sink49 = select i1 %58, ptr @.str.7, ptr @.str.6
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink49)
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.558)
  %.str.6.sink = select i1 %64, ptr @.str.7, ptr @.str.6
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink)
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.559)
  %.str.6.sink50 = select i1 %65, ptr @.str.7, ptr @.str.6
  %90 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink50)
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.560)
  %.str.6.sink51 = select i1 %66, ptr @.str.7, ptr @.str.6
  %92 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink51)
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.561)
  %.str.6.sink52 = select i1 %67, ptr @.str.7, ptr @.str.6
  %94 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink52)
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.562)
  %.str.6.sink53 = select i1 %68, ptr @.str.7, ptr @.str.6
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink53)
  %97 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.563)
  %.str.6.sink54 = select i1 %75, ptr @.str.7, ptr @.str.6
  %98 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink54)
  %.str.21.sink = select i1 %spec.select48, ptr @.str.20, ptr @.str.21
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.21.sink)
  %100 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %101

101:                                              ; preds = %81, %74
  %102 = xor i1 %spec.select48, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 2104, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 2104, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  ret i1 %102
}

declare void @_ZN11alglib_impl15_mlpreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare void @_ZN11alglib_impl17_mlpcvreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare void @_ZN11alglib_impl10mlpcreate1ElllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl10mlptrainlmEPNS_20multilayerperceptronEPNS_9ae_matrixEldlPlPNS_9mlpreportEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, double noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl11mlprmserrorEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL31testmlptrainunit_testmlptrainesPN11alglib_impl8ae_stateE(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL31testmlptrainunit_testmlpcverrorPN11alglib_impl8ae_stateE(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL33testmlptrainunit_testmlptrainregrPN11alglib_impl8ae_stateE(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL35testmlptrainunit_testmlpzeroweightsPN11alglib_impl8ae_stateE(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL34testmlptrainunit_testmlptrainclassPN11alglib_impl8ae_stateE(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL32testmlptrainunit_testmlprestartsPN11alglib_impl8ae_stateE(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL31testmlptrainunit_testmlpxorregrPN11alglib_impl8ae_stateE(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL30testmlptrainunit_testmlpxorclsPN11alglib_impl8ae_stateE(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL32testmlptrainunit_testmlptrainensPN11alglib_impl8ae_stateE(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL36testmlptrainunit_testmlptrainensregrPN11alglib_impl8ae_stateE(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL35testmlptrainunit_testmlptrainensclsPN11alglib_impl8ae_stateE(ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nofree nounwind "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 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !6, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass