; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z11testmlpbasebPN11alglib_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 }

@.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.519 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.520 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.521 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.522 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.523 = 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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z11testmlpbasebPN11alglib_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 i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca %"struct.alglib_impl::multilayerperceptron", align 8
  %18 = alloca %"struct.alglib_impl::multilayerperceptron", align 8
  %19 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %20 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  %26 = alloca i8, align 1
  %27 = zext i1 %0 to i8
  store i8 %27, 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 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 2104, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 2104, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 80, 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
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #4
  %28 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %28, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 2104, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 2104, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 80, i1 false)
  %29 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl26_multilayerperceptron_initEPvPNS_8ae_stateEb(ptr noundef %17, ptr noundef %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl26_multilayerperceptron_initEPvPNS_8ae_stateEb(ptr noundef %18, ptr noundef %30, i1 noundef zeroext true)
  %31 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %31, i1 noundef zeroext true)
  %32 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %32, i1 noundef zeroext true)
  store i8 0, ptr %6, align 1, !tbaa !5
  store i8 0, ptr %21, align 1, !tbaa !5
  store i8 0, ptr %22, align 1, !tbaa !5
  store i8 0, ptr %23, align 1, !tbaa !5
  store i8 0, ptr %24, align 1, !tbaa !5
  store i8 0, ptr %25, align 1, !tbaa !5
  store i64 5, ptr %7, align 8, !tbaa !11
  store i64 3, ptr %8, align 8, !tbaa !11
  store i64 3, ptr %9, align 8, !tbaa !11
  %33 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL25testmlpbaseunit_spectestsPbS_S_S_S_PN11alglib_impl8ae_stateE(ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %33)
  store i64 0, ptr %10, align 8, !tbaa !11
  store i64 10, ptr %11, align 8, !tbaa !11
  store i64 1, ptr %12, align 8, !tbaa !11
  br label %34

34:                                               ; preds = %127, %2
  %35 = load i64, ptr %12, align 8, !tbaa !11
  %36 = load i64, ptr %8, align 8, !tbaa !11
  %37 = icmp sle i64 %35, %36
  br i1 %37, label %38, label %130

38:                                               ; preds = %34
  store i64 1, ptr %13, align 8, !tbaa !11
  br label %39

39:                                               ; preds = %123, %38
  %40 = load i64, ptr %13, align 8, !tbaa !11
  %41 = load i64, ptr %8, align 8, !tbaa !11
  %42 = icmp sle i64 %40, %41
  br i1 %42, label %43, label %126

43:                                               ; preds = %39
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %44

44:                                               ; preds = %119, %43
  %45 = load i64, ptr %14, align 8, !tbaa !11
  %46 = load i64, ptr %9, align 8, !tbaa !11
  %47 = icmp sle i64 %45, %46
  br i1 %47, label %48, label %122

48:                                               ; preds = %44
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %49

49:                                               ; preds = %115, %48
  %50 = load i64, ptr %15, align 8, !tbaa !11
  %51 = load i64, ptr %9, align 8, !tbaa !11
  %52 = icmp sle i64 %50, %51
  br i1 %52, label %53, label %118

53:                                               ; preds = %49
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %54

54:                                               ; preds = %111, %53
  %55 = load i64, ptr %16, align 8, !tbaa !11
  %56 = icmp sle i64 %55, 3
  br i1 %56, label %57, label %114

57:                                               ; preds = %54
  %58 = load i64, ptr %16, align 8, !tbaa !11
  %59 = icmp eq i64 %58, 1
  br i1 %59, label %60, label %64

60:                                               ; preds = %57
  %61 = load i64, ptr %13, align 8, !tbaa !11
  %62 = icmp slt i64 %61, 2
  br i1 %62, label %63, label %64

63:                                               ; preds = %60
  br label %111

64:                                               ; preds = %60, %57
  %65 = load i64, ptr %14, align 8, !tbaa !11
  %66 = icmp eq i64 %65, 0
  br i1 %66, label %67, label %71

67:                                               ; preds = %64
  %68 = load i64, ptr %15, align 8, !tbaa !11
  %69 = icmp ne i64 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %67
  br label %111

71:                                               ; preds = %67, %64
  %72 = load i64, ptr %16, align 8, !tbaa !11
  %73 = load i64, ptr %12, align 8, !tbaa !11
  %74 = load i64, ptr %14, align 8, !tbaa !11
  %75 = load i64, ptr %15, align 8, !tbaa !11
  %76 = load i64, ptr %13, align 8, !tbaa !11
  %77 = load i64, ptr %7, align 8, !tbaa !11
  %78 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL33testmlpbaseunit_testinformationalllllllPbPN11alglib_impl8ae_stateE(i64 noundef %72, i64 noundef %73, i64 noundef %74, i64 noundef %75, i64 noundef %76, i64 noundef %77, ptr noundef %21, ptr noundef %78)
  %79 = load i64, ptr %16, align 8, !tbaa !11
  %80 = load i64, ptr %12, align 8, !tbaa !11
  %81 = load i64, ptr %14, align 8, !tbaa !11
  %82 = load i64, ptr %15, align 8, !tbaa !11
  %83 = load i64, ptr %13, align 8, !tbaa !11
  %84 = load i64, ptr %7, align 8, !tbaa !11
  %85 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL30testmlpbaseunit_testprocessingllllllPbPN11alglib_impl8ae_stateE(i64 noundef %79, i64 noundef %80, i64 noundef %81, i64 noundef %82, i64 noundef %83, i64 noundef %84, ptr noundef %22, ptr noundef %85)
  %86 = load i64, ptr %16, align 8, !tbaa !11
  %87 = load i64, ptr %12, align 8, !tbaa !11
  %88 = load i64, ptr %14, align 8, !tbaa !11
  %89 = load i64, ptr %15, align 8, !tbaa !11
  %90 = load i64, ptr %13, align 8, !tbaa !11
  %91 = load i64, ptr %7, align 8, !tbaa !11
  %92 = load i64, ptr %10, align 8, !tbaa !11
  %93 = load i64, ptr %11, align 8, !tbaa !11
  %94 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL28testmlpbaseunit_testgradientllllllllPbPN11alglib_impl8ae_stateE(i64 noundef %86, i64 noundef %87, i64 noundef %88, i64 noundef %89, i64 noundef %90, i64 noundef %91, i64 noundef %92, i64 noundef %93, ptr noundef %23, ptr noundef %94)
  %95 = load i64, ptr %16, align 8, !tbaa !11
  %96 = load i64, ptr %12, align 8, !tbaa !11
  %97 = load i64, ptr %14, align 8, !tbaa !11
  %98 = load i64, ptr %15, align 8, !tbaa !11
  %99 = load i64, ptr %13, align 8, !tbaa !11
  %100 = load i64, ptr %7, align 8, !tbaa !11
  %101 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL27testmlpbaseunit_testhessianllllllPbPN11alglib_impl8ae_stateE(i64 noundef %95, i64 noundef %96, i64 noundef %97, i64 noundef %98, i64 noundef %99, i64 noundef %100, ptr noundef %24, ptr noundef %101)
  %102 = load i64, ptr %16, align 8, !tbaa !11
  %103 = load i64, ptr %12, align 8, !tbaa !11
  %104 = load i64, ptr %14, align 8, !tbaa !11
  %105 = load i64, ptr %15, align 8, !tbaa !11
  %106 = load i64, ptr %13, align 8, !tbaa !11
  %107 = load i64, ptr %7, align 8, !tbaa !11
  %108 = load i64, ptr %10, align 8, !tbaa !11
  %109 = load i64, ptr %11, align 8, !tbaa !11
  %110 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testmlpbaseunit_testerrllllllllPbPN11alglib_impl8ae_stateE(i64 noundef %102, i64 noundef %103, i64 noundef %104, i64 noundef %105, i64 noundef %106, i64 noundef %107, i64 noundef %108, i64 noundef %109, ptr noundef %25, ptr noundef %110)
  br label %111

111:                                              ; preds = %71, %70, %63
  %112 = load i64, ptr %16, align 8, !tbaa !11
  %113 = add nsw i64 %112, 1
  store i64 %113, ptr %16, align 8, !tbaa !11
  br label %54, !llvm.loop !13

114:                                              ; preds = %54
  br label %115

115:                                              ; preds = %114
  %116 = load i64, ptr %15, align 8, !tbaa !11
  %117 = add nsw i64 %116, 1
  store i64 %117, ptr %15, align 8, !tbaa !11
  br label %49, !llvm.loop !15

118:                                              ; preds = %49
  br label %119

119:                                              ; preds = %118
  %120 = load i64, ptr %14, align 8, !tbaa !11
  %121 = add nsw i64 %120, 1
  store i64 %121, ptr %14, align 8, !tbaa !11
  br label %44, !llvm.loop !16

122:                                              ; preds = %44
  br label %123

123:                                              ; preds = %122
  %124 = load i64, ptr %13, align 8, !tbaa !11
  %125 = add nsw i64 %124, 1
  store i64 %125, ptr %13, align 8, !tbaa !11
  br label %39, !llvm.loop !17

126:                                              ; preds = %39
  br label %127

127:                                              ; preds = %126
  %128 = load i64, ptr %12, align 8, !tbaa !11
  %129 = add nsw i64 %128, 1
  store i64 %129, ptr %12, align 8, !tbaa !11
  br label %34, !llvm.loop !18

130:                                              ; preds = %34
  store i64 2, ptr %12, align 8, !tbaa !11
  store i64 20, ptr %14, align 8, !tbaa !11
  store i64 20, ptr %15, align 8, !tbaa !11
  store i64 2, ptr %13, align 8, !tbaa !11
  store i64 50000, ptr %10, align 8, !tbaa !11
  store i64 50000, ptr %11, align 8, !tbaa !11
  %131 = load i64, ptr %12, align 8, !tbaa !11
  %132 = load i64, ptr %14, align 8, !tbaa !11
  %133 = load i64, ptr %15, align 8, !tbaa !11
  %134 = load i64, ptr %13, align 8, !tbaa !11
  %135 = load i64, ptr %10, align 8, !tbaa !11
  %136 = load i64, ptr %11, align 8, !tbaa !11
  %137 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testmlpbaseunit_testerrllllllllPbPN11alglib_impl8ae_stateE(i64 noundef 0, i64 noundef %131, i64 noundef %132, i64 noundef %133, i64 noundef %134, i64 noundef 1, i64 noundef %135, i64 noundef %136, ptr noundef %25, ptr noundef %137)
  %138 = load i64, ptr %12, align 8, !tbaa !11
  %139 = load i64, ptr %14, align 8, !tbaa !11
  %140 = load i64, ptr %15, align 8, !tbaa !11
  %141 = load i64, ptr %13, align 8, !tbaa !11
  %142 = load i64, ptr %10, align 8, !tbaa !11
  %143 = load i64, ptr %11, align 8, !tbaa !11
  %144 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL28testmlpbaseunit_testgradientllllllllPbPN11alglib_impl8ae_stateE(i64 noundef 0, i64 noundef %138, i64 noundef %139, i64 noundef %140, i64 noundef %141, i64 noundef 1, i64 noundef %142, i64 noundef %143, ptr noundef %23, ptr noundef %144)
  %145 = load i8, ptr %23, align 1, !tbaa !5, !range !19, !noundef !20
  %146 = trunc i8 %145 to i1
  br i1 %146, label %150, label %147

147:                                              ; preds = %130
  %148 = load ptr, ptr %4, align 8, !tbaa !9
  %149 = call noundef zeroext i1 @_ZL31testmlpbaseunit_testmlpgbsubsetPN11alglib_impl8ae_stateE(ptr noundef %148)
  br label %150

150:                                              ; preds = %147, %130
  %151 = phi i1 [ true, %130 ], [ %149, %147 ]
  %152 = zext i1 %151 to i8
  store i8 %152, ptr %23, align 1, !tbaa !5
  %153 = load i8, ptr %21, align 1, !tbaa !5, !range !19, !noundef !20
  %154 = trunc i8 %153 to i1
  br i1 %154, label %167, label %155

155:                                              ; preds = %150
  %156 = load i8, ptr %22, align 1, !tbaa !5, !range !19, !noundef !20
  %157 = trunc i8 %156 to i1
  br i1 %157, label %167, label %158

158:                                              ; preds = %155
  %159 = load i8, ptr %23, align 1, !tbaa !5, !range !19, !noundef !20
  %160 = trunc i8 %159 to i1
  br i1 %160, label %167, label %161

161:                                              ; preds = %158
  %162 = load i8, ptr %24, align 1, !tbaa !5, !range !19, !noundef !20
  %163 = trunc i8 %162 to i1
  br i1 %163, label %167, label %164

164:                                              ; preds = %161
  %165 = load i8, ptr %25, align 1, !tbaa !5, !range !19, !noundef !20
  %166 = trunc i8 %165 to i1
  br label %167

167:                                              ; preds = %164, %161, %158, %155, %150
  %168 = phi i1 [ true, %161 ], [ true, %158 ], [ true, %155 ], [ true, %150 ], [ %166, %164 ]
  %169 = zext i1 %168 to i8
  store i8 %169, ptr %6, align 1, !tbaa !5
  %170 = load i8, ptr %3, align 1, !tbaa !5, !range !19, !noundef !20
  %171 = trunc i8 %170 to i1
  br i1 %171, label %222, label %172

172:                                              ; preds = %167
  %173 = call i32 (ptr, ...) @printf(ptr noundef @.str.518)
  %174 = call i32 (ptr, ...) @printf(ptr noundef @.str.519)
  %175 = load i8, ptr %21, align 1, !tbaa !5, !range !19, !noundef !20
  %176 = trunc i8 %175 to i1
  br i1 %176, label %179, label %177

177:                                              ; preds = %172
  %178 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %181

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

181:                                              ; preds = %179, %177
  %182 = call i32 (ptr, ...) @printf(ptr noundef @.str.520)
  %183 = load i8, ptr %22, align 1, !tbaa !5, !range !19, !noundef !20
  %184 = trunc i8 %183 to i1
  br i1 %184, label %187, label %185

185:                                              ; preds = %181
  %186 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %189

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

189:                                              ; preds = %187, %185
  %190 = call i32 (ptr, ...) @printf(ptr noundef @.str.521)
  %191 = load i8, ptr %23, align 1, !tbaa !5, !range !19, !noundef !20
  %192 = trunc i8 %191 to i1
  br i1 %192, label %195, label %193

193:                                              ; preds = %189
  %194 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %197

195:                                              ; preds = %189
  %196 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %197

197:                                              ; preds = %195, %193
  %198 = call i32 (ptr, ...) @printf(ptr noundef @.str.522)
  %199 = load i8, ptr %24, align 1, !tbaa !5, !range !19, !noundef !20
  %200 = trunc i8 %199 to i1
  br i1 %200, label %203, label %201

201:                                              ; preds = %197
  %202 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %205

203:                                              ; preds = %197
  %204 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %205

205:                                              ; preds = %203, %201
  %206 = call i32 (ptr, ...) @printf(ptr noundef @.str.523)
  %207 = load i8, ptr %25, align 1, !tbaa !5, !range !19, !noundef !20
  %208 = trunc i8 %207 to i1
  br i1 %208, label %211, label %209

209:                                              ; preds = %205
  %210 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %213

211:                                              ; preds = %205
  %212 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %213

213:                                              ; preds = %211, %209
  %214 = load i8, ptr %6, align 1, !tbaa !5, !range !19, !noundef !20
  %215 = trunc i8 %214 to i1
  br i1 %215, label %216, label %218

216:                                              ; preds = %213
  %217 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  br label %220

218:                                              ; preds = %213
  %219 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  br label %220

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

222:                                              ; preds = %220, %167
  %223 = load i8, ptr %6, align 1, !tbaa !5, !range !19, !noundef !20
  %224 = trunc i8 %223 to i1
  %225 = xor i1 %224, true
  %226 = zext i1 %225 to i8
  store i8 %226, ptr %26, align 1, !tbaa !5
  %227 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %227)
  %228 = load i8, ptr %26, align 1, !tbaa !5, !range !19, !noundef !20
  %229 = trunc i8 %228 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #4
  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 80, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 2104, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 2104, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 %229
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL31testmlpbaseunit_testmlpgbsubsetPN11alglib_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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = !{i8 0, i8 2}
!20 = !{}


; 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 }

@.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.519 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.520 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.521 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.522 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.523 = 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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z11testmlpbasebPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #4 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca %"struct.alglib_impl::multilayerperceptron", align 8
  %5 = alloca %"struct.alglib_impl::multilayerperceptron", align 8
  %6 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %7 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 2104, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 2104, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #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) %4, i8 0, i64 2104, i1 false)
  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(80) %6, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %7, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl26_multilayerperceptron_initEPvPNS_8ae_stateEb(ptr noundef nonnull %4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl26_multilayerperceptron_initEPvPNS_8ae_stateEb(ptr noundef nonnull %5, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %6, 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 %7, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  store i8 0, ptr %8, align 1, !tbaa !5
  store i8 0, ptr %9, align 1, !tbaa !5
  store i8 0, ptr %10, align 1, !tbaa !5
  store i8 0, ptr %11, align 1, !tbaa !5
  store i8 0, ptr %12, align 1, !tbaa !5
  call void @_ZL25testmlpbaseunit_spectestsPbS_S_S_S_PN11alglib_impl8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %1)
  br label %.preheader95

.preheader95:                                     ; preds = %2, %22
  %.088100 = phi i64 [ 1, %2 ], [ %23, %22 ]
  br label %.preheader94

.preheader94:                                     ; preds = %.preheader95, %20
  %.08799 = phi i64 [ 1, %.preheader95 ], [ %21, %20 ]
  %13 = icmp ult i64 %.08799, 2
  br label %.preheader93

.preheader93:                                     ; preds = %.preheader94, %18
  %.08698 = phi i64 [ 0, %.preheader94 ], [ %19, %18 ]
  %14 = icmp eq i64 %.08698, 0
  br label %.preheader

.preheader:                                       ; preds = %.preheader93, %.split.us
  %.08597 = phi i64 [ 0, %.preheader93 ], [ %17, %.split.us ]
  %15 = icmp ne i64 %.08597, 0
  %or.cond3 = and i1 %14, %15
  %or.cond3.fr = freeze i1 %or.cond3
  br i1 %or.cond3.fr, label %.split.us, label %.preheader.split.1

.preheader.split.1:                               ; preds = %.preheader
  call void @_ZL33testmlpbaseunit_testinformationalllllllPbPN11alglib_impl8ae_stateE(i64 noundef 0, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, ptr noundef nonnull %8, ptr noundef %1)
  call void @_ZL30testmlpbaseunit_testprocessingllllllPbPN11alglib_impl8ae_stateE(i64 noundef 0, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, ptr noundef nonnull %9, ptr noundef %1)
  call void @_ZL28testmlpbaseunit_testgradientllllllllPbPN11alglib_impl8ae_stateE(i64 noundef 0, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, i64 noundef 0, i64 noundef 10, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZL27testmlpbaseunit_testhessianllllllPbPN11alglib_impl8ae_stateE(i64 noundef 0, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, ptr noundef nonnull %11, ptr noundef %1)
  call void @_ZL23testmlpbaseunit_testerrllllllllPbPN11alglib_impl8ae_stateE(i64 noundef 0, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, i64 noundef 0, i64 noundef 10, ptr noundef nonnull %12, ptr noundef %1)
  br i1 %13, label %.split.us.loopexit102, label %16

16:                                               ; preds = %.preheader.split.1
  call void @_ZL33testmlpbaseunit_testinformationalllllllPbPN11alglib_impl8ae_stateE(i64 noundef 1, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, ptr noundef nonnull %8, ptr noundef %1)
  call void @_ZL30testmlpbaseunit_testprocessingllllllPbPN11alglib_impl8ae_stateE(i64 noundef 1, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, ptr noundef nonnull %9, ptr noundef %1)
  call void @_ZL28testmlpbaseunit_testgradientllllllllPbPN11alglib_impl8ae_stateE(i64 noundef 1, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, i64 noundef 0, i64 noundef 10, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZL27testmlpbaseunit_testhessianllllllPbPN11alglib_impl8ae_stateE(i64 noundef 1, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, ptr noundef nonnull %11, ptr noundef %1)
  call void @_ZL23testmlpbaseunit_testerrllllllllPbPN11alglib_impl8ae_stateE(i64 noundef 1, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, i64 noundef 0, i64 noundef 10, ptr noundef nonnull %12, ptr noundef %1)
  br label %.split.us.loopexit102

.split.us.loopexit102:                            ; preds = %16, %.preheader.split.1
  call void @_ZL33testmlpbaseunit_testinformationalllllllPbPN11alglib_impl8ae_stateE(i64 noundef 2, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, ptr noundef nonnull %8, ptr noundef %1)
  call void @_ZL30testmlpbaseunit_testprocessingllllllPbPN11alglib_impl8ae_stateE(i64 noundef 2, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, ptr noundef nonnull %9, ptr noundef %1)
  call void @_ZL28testmlpbaseunit_testgradientllllllllPbPN11alglib_impl8ae_stateE(i64 noundef 2, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, i64 noundef 0, i64 noundef 10, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZL27testmlpbaseunit_testhessianllllllPbPN11alglib_impl8ae_stateE(i64 noundef 2, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, ptr noundef nonnull %11, ptr noundef %1)
  call void @_ZL23testmlpbaseunit_testerrllllllllPbPN11alglib_impl8ae_stateE(i64 noundef 2, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, i64 noundef 0, i64 noundef 10, ptr noundef nonnull %12, ptr noundef %1)
  call void @_ZL33testmlpbaseunit_testinformationalllllllPbPN11alglib_impl8ae_stateE(i64 noundef 3, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, ptr noundef nonnull %8, ptr noundef %1)
  call void @_ZL30testmlpbaseunit_testprocessingllllllPbPN11alglib_impl8ae_stateE(i64 noundef 3, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, ptr noundef nonnull %9, ptr noundef %1)
  call void @_ZL28testmlpbaseunit_testgradientllllllllPbPN11alglib_impl8ae_stateE(i64 noundef 3, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, i64 noundef 0, i64 noundef 10, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZL27testmlpbaseunit_testhessianllllllPbPN11alglib_impl8ae_stateE(i64 noundef 3, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, ptr noundef nonnull %11, ptr noundef %1)
  call void @_ZL23testmlpbaseunit_testerrllllllllPbPN11alglib_impl8ae_stateE(i64 noundef 3, i64 noundef %.088100, i64 noundef %.08698, i64 noundef %.08597, i64 noundef %.08799, i64 noundef 5, i64 noundef 0, i64 noundef 10, ptr noundef nonnull %12, ptr noundef %1)
  br label %.split.us

.split.us:                                        ; preds = %.preheader, %.split.us.loopexit102
  %17 = add nuw nsw i64 %.08597, 1
  %exitcond.not = icmp eq i64 %17, 4
  br i1 %exitcond.not, label %18, label %.preheader, !llvm.loop !9

18:                                               ; preds = %.split.us
  %19 = add nuw nsw i64 %.08698, 1
  %exitcond103.not = icmp eq i64 %19, 4
  br i1 %exitcond103.not, label %20, label %.preheader93, !llvm.loop !11

20:                                               ; preds = %18
  %21 = add nuw nsw i64 %.08799, 1
  %exitcond104.not = icmp eq i64 %21, 4
  br i1 %exitcond104.not, label %22, label %.preheader94, !llvm.loop !12

22:                                               ; preds = %20
  %23 = add nuw nsw i64 %.088100, 1
  %exitcond105.not = icmp eq i64 %23, 4
  br i1 %exitcond105.not, label %24, label %.preheader95, !llvm.loop !13

24:                                               ; preds = %22
  call void @_ZL23testmlpbaseunit_testerrllllllllPbPN11alglib_impl8ae_stateE(i64 noundef 0, i64 noundef 2, i64 noundef 20, i64 noundef 20, i64 noundef 2, i64 noundef 1, i64 noundef 50000, i64 noundef 50000, ptr noundef nonnull %12, ptr noundef %1)
  call void @_ZL28testmlpbaseunit_testgradientllllllllPbPN11alglib_impl8ae_stateE(i64 noundef 0, i64 noundef 2, i64 noundef 20, i64 noundef 20, i64 noundef 2, i64 noundef 1, i64 noundef 50000, i64 noundef 50000, ptr noundef nonnull %10, ptr noundef %1)
  %25 = load i8, ptr %10, align 1, !tbaa !5, !range !14, !noundef !15
  %26 = trunc nuw i8 %25 to i1
  br i1 %26, label %.thread, label %27

.thread:                                          ; preds = %24
  store i8 1, ptr %10, align 1, !tbaa !5
  br label %40

27:                                               ; preds = %24
  %28 = call noundef zeroext i1 @_ZL31testmlpbaseunit_testmlpgbsubsetPN11alglib_impl8ae_stateE(ptr noundef %1)
  %29 = zext i1 %28 to i8
  store i8 %29, ptr %10, align 1, !tbaa !5
  %30 = load i8, ptr %8, align 1, !tbaa !5, !range !14, !noundef !15
  %31 = trunc nuw i8 %30 to i1
  %32 = load i8, ptr %9, align 1, !range !14
  %33 = trunc nuw i8 %32 to i1
  %brmerge = or i1 %28, %33
  %or.cond90 = select i1 %31, i1 true, i1 %brmerge
  br i1 %or.cond90, label %40, label %34

34:                                               ; preds = %27
  %35 = load i8, ptr %11, align 1, !tbaa !5, !range !14, !noundef !15
  %36 = trunc nuw i8 %35 to i1
  br i1 %36, label %40, label %37

37:                                               ; preds = %34
  %38 = load i8, ptr %12, align 1, !tbaa !5, !range !14, !noundef !15
  %39 = trunc nuw i8 %38 to i1
  br label %40

40:                                               ; preds = %.thread, %37, %34, %27
  %41 = phi i1 [ true, %34 ], [ true, %27 ], [ %39, %37 ], [ true, %.thread ]
  br i1 %0, label %66, label %42

42:                                               ; preds = %40
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.518)
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.519)
  %45 = load i8, ptr %8, align 1, !tbaa !5, !range !14, !noundef !15
  %46 = trunc nuw i8 %45 to i1
  %.str.7..str.6 = select i1 %46, ptr @.str.7, ptr @.str.6
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.520)
  %49 = load i8, ptr %9, align 1, !tbaa !5, !range !14, !noundef !15
  %50 = trunc nuw i8 %49 to i1
  %.str.7.sink106 = select i1 %50, ptr @.str.7, ptr @.str.6
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink106)
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.521)
  %53 = load i8, ptr %10, align 1, !tbaa !5, !range !14, !noundef !15
  %54 = trunc nuw i8 %53 to i1
  %.str.7.sink107 = select i1 %54, ptr @.str.7, ptr @.str.6
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink107)
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.522)
  %57 = load i8, ptr %11, align 1, !tbaa !5, !range !14, !noundef !15
  %58 = trunc nuw i8 %57 to i1
  %.str.7.sink108 = select i1 %58, ptr @.str.7, ptr @.str.6
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink108)
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.523)
  %61 = load i8, ptr %12, align 1, !tbaa !5, !range !14, !noundef !15
  %62 = trunc nuw i8 %61 to i1
  %.str.7.sink109 = select i1 %62, ptr @.str.7, ptr @.str.6
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink109)
  %.str.21.sink = select i1 %41, ptr @.str.20, ptr @.str.21
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.21.sink)
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %66

66:                                               ; preds = %42, %40
  %67 = xor i1 %41, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 2104, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 2104, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  ret i1 %67
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL25testmlpbaseunit_spectestsPbS_S_S_S_PN11alglib_impl8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL33testmlpbaseunit_testinformationalllllllPbPN11alglib_impl8ae_stateE(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL30testmlpbaseunit_testprocessingllllllPbPN11alglib_impl8ae_stateE(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL28testmlpbaseunit_testgradientllllllllPbPN11alglib_impl8ae_stateE(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL27testmlpbaseunit_testhessianllllllPbPN11alglib_impl8ae_stateE(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23testmlpbaseunit_testerrllllllllPbPN11alglib_impl8ae_stateE(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL31testmlpbaseunit_testmlpgbsubsetPN11alglib_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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = !{i8 0, i8 2}
!15 = !{}


; Effective O3 passes: ADCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass