; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (dataanalysis)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

@_ZN11alglib_implL23mlpbase_mlpfirstversionE = external hidden global i64, align 8
@.str.204 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.205 = external hidden unnamed_addr constant [40 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl14mlpunserializeEPNS_13ae_serializerEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i8, align 1
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, 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 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #4
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %21, ptr noundef %7)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl27_multilayerperceptron_clearEPv(ptr noundef %22)
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 2, ptr noundef %23, i1 noundef zeroext true)
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl29ae_serializer_unserialize_intEPNS_13ae_serializerEPlPNS_8ae_stateE(ptr noundef %24, ptr noundef %8, ptr noundef %25)
  %26 = load i64, ptr %8, align 8, !tbaa !9
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call noundef i64 @_ZN11alglib_impl23getmlpserializationcodeEPNS_8ae_stateE(ptr noundef %27)
  %29 = icmp eq i64 %26, %28
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef @.str.204, ptr noundef %30)
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl29ae_serializer_unserialize_intEPNS_13ae_serializerEPlPNS_8ae_stateE(ptr noundef %31, ptr noundef %9, ptr noundef %32)
  %33 = load i64, ptr %9, align 8, !tbaa !9
  %34 = load i64, ptr @_ZN11alglib_implL23mlpbase_mlpfirstversionE, align 8, !tbaa !9
  %35 = icmp eq i64 %33, %34
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef @.str.204, ptr noundef %36)
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl30ae_serializer_unserialize_boolEPNS_13ae_serializerEPbPNS_8ae_stateE(ptr noundef %37, ptr noundef %19, ptr noundef %38)
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl23unserializeintegerarrayEPNS_13ae_serializerEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %39, ptr noundef %20, ptr noundef %40)
  %41 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 0
  %42 = load i64, ptr %41, align 8, !tbaa !11
  %43 = icmp eq i64 %42, 2
  br i1 %43, label %52, label %44

44:                                               ; preds = %3
  %45 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 0
  %46 = load i64, ptr %45, align 8, !tbaa !11
  %47 = icmp eq i64 %46, 3
  br i1 %47, label %52, label %48

48:                                               ; preds = %44
  %49 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 0
  %50 = load i64, ptr %49, align 8, !tbaa !11
  %51 = icmp eq i64 %50, 4
  br label %52

52:                                               ; preds = %48, %44, %3
  %53 = phi i1 [ true, %44 ], [ true, %3 ], [ %51, %48 ]
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %53, ptr noundef @.str.205, ptr noundef %54)
  %55 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  %57 = getelementptr inbounds i64, ptr %56, i64 0
  %58 = load i64, ptr %57, align 8, !tbaa !9
  store i64 %58, ptr %17, align 8, !tbaa !9
  %59 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !15
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 0
  %62 = load i64, ptr %61, align 8, !tbaa !11
  %63 = sub nsw i64 %62, 1
  %64 = getelementptr inbounds i64, ptr %60, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !9
  store i64 %65, ptr %18, align 8, !tbaa !9
  %66 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 0
  %67 = load i64, ptr %66, align 8, !tbaa !11
  %68 = icmp eq i64 %67, 2
  br i1 %68, label %69, label %95

69:                                               ; preds = %52
  %70 = load i8, ptr %19, align 1, !tbaa !16, !range !17, !noundef !18
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %83

72:                                               ; preds = %69
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !15
  %75 = getelementptr inbounds i64, ptr %74, i64 0
  %76 = load i64, ptr %75, align 8, !tbaa !9
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !15
  %79 = getelementptr inbounds i64, ptr %78, i64 1
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl11mlpcreatec0EllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %76, i64 noundef %80, ptr noundef %81, ptr noundef %82)
  br label %94

83:                                               ; preds = %69
  %84 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !15
  %86 = getelementptr inbounds i64, ptr %85, i64 0
  %87 = load i64, ptr %86, align 8, !tbaa !9
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !15
  %90 = getelementptr inbounds i64, ptr %89, i64 1
  %91 = load i64, ptr %90, align 8, !tbaa !9
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl10mlpcreate0EllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %87, i64 noundef %91, ptr noundef %92, ptr noundef %93)
  br label %94

94:                                               ; preds = %83, %72
  br label %95

95:                                               ; preds = %94, %52
  %96 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 0
  %97 = load i64, ptr %96, align 8, !tbaa !11
  %98 = icmp eq i64 %97, 3
  br i1 %98, label %99, label %133

99:                                               ; preds = %95
  %100 = load i8, ptr %19, align 1, !tbaa !16, !range !17, !noundef !18
  %101 = trunc i8 %100 to i1
  br i1 %101, label %102, label %117

102:                                              ; preds = %99
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !15
  %105 = getelementptr inbounds i64, ptr %104, i64 0
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !15
  %109 = getelementptr inbounds i64, ptr %108, i64 1
  %110 = load i64, ptr %109, align 8, !tbaa !9
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %112 = load ptr, ptr %111, align 8, !tbaa !15
  %113 = getelementptr inbounds i64, ptr %112, i64 2
  %114 = load i64, ptr %113, align 8, !tbaa !9
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl11mlpcreatec1ElllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %106, i64 noundef %110, i64 noundef %114, ptr noundef %115, ptr noundef %116)
  br label %132

117:                                              ; preds = %99
  %118 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %119 = load ptr, ptr %118, align 8, !tbaa !15
  %120 = getelementptr inbounds i64, ptr %119, i64 0
  %121 = load i64, ptr %120, align 8, !tbaa !9
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !15
  %124 = getelementptr inbounds i64, ptr %123, i64 1
  %125 = load i64, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %127 = load ptr, ptr %126, align 8, !tbaa !15
  %128 = getelementptr inbounds i64, ptr %127, i64 2
  %129 = load i64, ptr %128, align 8, !tbaa !9
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl10mlpcreate1ElllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %121, i64 noundef %125, i64 noundef %129, ptr noundef %130, ptr noundef %131)
  br label %132

132:                                              ; preds = %117, %102
  br label %133

133:                                              ; preds = %132, %95
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 0
  %135 = load i64, ptr %134, align 8, !tbaa !11
  %136 = icmp eq i64 %135, 4
  br i1 %136, label %137, label %179

137:                                              ; preds = %133
  %138 = load i8, ptr %19, align 1, !tbaa !16, !range !17, !noundef !18
  %139 = trunc i8 %138 to i1
  br i1 %139, label %140, label %159

140:                                              ; preds = %137
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !15
  %143 = getelementptr inbounds i64, ptr %142, i64 0
  %144 = load i64, ptr %143, align 8, !tbaa !9
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !15
  %147 = getelementptr inbounds i64, ptr %146, i64 1
  %148 = load i64, ptr %147, align 8, !tbaa !9
  %149 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !15
  %151 = getelementptr inbounds i64, ptr %150, i64 2
  %152 = load i64, ptr %151, align 8, !tbaa !9
  %153 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %154 = load ptr, ptr %153, align 8, !tbaa !15
  %155 = getelementptr inbounds i64, ptr %154, i64 3
  %156 = load i64, ptr %155, align 8, !tbaa !9
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl11mlpcreatec2EllllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %144, i64 noundef %148, i64 noundef %152, i64 noundef %156, ptr noundef %157, ptr noundef %158)
  br label %178

159:                                              ; preds = %137
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !15
  %162 = getelementptr inbounds i64, ptr %161, i64 0
  %163 = load i64, ptr %162, align 8, !tbaa !9
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %165 = load ptr, ptr %164, align 8, !tbaa !15
  %166 = getelementptr inbounds i64, ptr %165, i64 1
  %167 = load i64, ptr %166, align 8, !tbaa !9
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !15
  %170 = getelementptr inbounds i64, ptr %169, i64 2
  %171 = load i64, ptr %170, align 8, !tbaa !9
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !15
  %174 = getelementptr inbounds i64, ptr %173, i64 3
  %175 = load i64, ptr %174, align 8, !tbaa !9
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl10mlpcreate2EllllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %163, i64 noundef %167, i64 noundef %171, i64 noundef %175, ptr noundef %176, ptr noundef %177)
  br label %178

178:                                              ; preds = %159, %140
  br label %179

179:                                              ; preds = %178, %133
  store i64 1, ptr %10, align 8, !tbaa !9
  br label %180

180:                                              ; preds = %236, %179
  %181 = load i64, ptr %10, align 8, !tbaa !9
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 0
  %183 = load i64, ptr %182, align 8, !tbaa !11
  %184 = sub nsw i64 %183, 1
  %185 = icmp sle i64 %181, %184
  br i1 %185, label %186, label %239

186:                                              ; preds = %180
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %187

187:                                              ; preds = %232, %186
  %188 = load i64, ptr %11, align 8, !tbaa !9
  %189 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !15
  %191 = load i64, ptr %10, align 8, !tbaa !9
  %192 = getelementptr inbounds i64, ptr %190, i64 %191
  %193 = load i64, ptr %192, align 8, !tbaa !9
  %194 = sub nsw i64 %193, 1
  %195 = icmp sle i64 %188, %194
  br i1 %195, label %196, label %235

196:                                              ; preds = %187
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl29ae_serializer_unserialize_intEPNS_13ae_serializerEPlPNS_8ae_stateE(ptr noundef %197, ptr noundef %13, ptr noundef %198)
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl32ae_serializer_unserialize_doubleEPNS_13ae_serializerEPdPNS_8ae_stateE(ptr noundef %199, ptr noundef %14, ptr noundef %200)
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = load i64, ptr %10, align 8, !tbaa !9
  %203 = load i64, ptr %11, align 8, !tbaa !9
  %204 = load i64, ptr %13, align 8, !tbaa !9
  %205 = load double, ptr %14, align 8, !tbaa !19
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl16mlpsetneuroninfoEPNS_20multilayerperceptronEllldPNS_8ae_stateE(ptr noundef %201, i64 noundef %202, i64 noundef %203, i64 noundef %204, double noundef %205, ptr noundef %206)
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %207

207:                                              ; preds = %228, %196
  %208 = load i64, ptr %12, align 8, !tbaa !9
  %209 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %210 = load ptr, ptr %209, align 8, !tbaa !15
  %211 = load i64, ptr %10, align 8, !tbaa !9
  %212 = sub nsw i64 %211, 1
  %213 = getelementptr inbounds i64, ptr %210, i64 %212
  %214 = load i64, ptr %213, align 8, !tbaa !9
  %215 = sub nsw i64 %214, 1
  %216 = icmp sle i64 %208, %215
  br i1 %216, label %217, label %231

217:                                              ; preds = %207
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl32ae_serializer_unserialize_doubleEPNS_13ae_serializerEPdPNS_8ae_stateE(ptr noundef %218, ptr noundef %15, ptr noundef %219)
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = load i64, ptr %10, align 8, !tbaa !9
  %222 = sub nsw i64 %221, 1
  %223 = load i64, ptr %12, align 8, !tbaa !9
  %224 = load i64, ptr %10, align 8, !tbaa !9
  %225 = load i64, ptr %11, align 8, !tbaa !9
  %226 = load double, ptr %15, align 8, !tbaa !19
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl12mlpsetweightEPNS_20multilayerperceptronElllldPNS_8ae_stateE(ptr noundef %220, i64 noundef %222, i64 noundef %223, i64 noundef %224, i64 noundef %225, double noundef %226, ptr noundef %227)
  br label %228

228:                                              ; preds = %217
  %229 = load i64, ptr %12, align 8, !tbaa !9
  %230 = add nsw i64 %229, 1
  store i64 %230, ptr %12, align 8, !tbaa !9
  br label %207, !llvm.loop !21

231:                                              ; preds = %207
  br label %232

232:                                              ; preds = %231
  %233 = load i64, ptr %11, align 8, !tbaa !9
  %234 = add nsw i64 %233, 1
  store i64 %234, ptr %11, align 8, !tbaa !9
  br label %187, !llvm.loop !23

235:                                              ; preds = %187
  br label %236

236:                                              ; preds = %235
  %237 = load i64, ptr %10, align 8, !tbaa !9
  %238 = add nsw i64 %237, 1
  store i64 %238, ptr %10, align 8, !tbaa !9
  br label %180, !llvm.loop !24

239:                                              ; preds = %180
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %240

240:                                              ; preds = %255, %239
  %241 = load i64, ptr %11, align 8, !tbaa !9
  %242 = load i64, ptr %17, align 8, !tbaa !9
  %243 = sub nsw i64 %242, 1
  %244 = icmp sle i64 %241, %243
  br i1 %244, label %245, label %258

245:                                              ; preds = %240
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl32ae_serializer_unserialize_doubleEPNS_13ae_serializerEPdPNS_8ae_stateE(ptr noundef %246, ptr noundef %15, ptr noundef %247)
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl32ae_serializer_unserialize_doubleEPNS_13ae_serializerEPdPNS_8ae_stateE(ptr noundef %248, ptr noundef %16, ptr noundef %249)
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = load i64, ptr %11, align 8, !tbaa !9
  %252 = load double, ptr %15, align 8, !tbaa !19
  %253 = load double, ptr %16, align 8, !tbaa !19
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl18mlpsetinputscalingEPNS_20multilayerperceptronElddPNS_8ae_stateE(ptr noundef %250, i64 noundef %251, double noundef %252, double noundef %253, ptr noundef %254)
  br label %255

255:                                              ; preds = %245
  %256 = load i64, ptr %11, align 8, !tbaa !9
  %257 = add nsw i64 %256, 1
  store i64 %257, ptr %11, align 8, !tbaa !9
  br label %240, !llvm.loop !25

258:                                              ; preds = %240
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %259

259:                                              ; preds = %274, %258
  %260 = load i64, ptr %11, align 8, !tbaa !9
  %261 = load i64, ptr %18, align 8, !tbaa !9
  %262 = sub nsw i64 %261, 1
  %263 = icmp sle i64 %260, %262
  br i1 %263, label %264, label %277

264:                                              ; preds = %259
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl32ae_serializer_unserialize_doubleEPNS_13ae_serializerEPdPNS_8ae_stateE(ptr noundef %265, ptr noundef %15, ptr noundef %266)
  %267 = load ptr, ptr %4, align 8, !tbaa !5
  %268 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl32ae_serializer_unserialize_doubleEPNS_13ae_serializerEPdPNS_8ae_stateE(ptr noundef %267, ptr noundef %16, ptr noundef %268)
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = load i64, ptr %11, align 8, !tbaa !9
  %271 = load double, ptr %15, align 8, !tbaa !19
  %272 = load double, ptr %16, align 8, !tbaa !19
  %273 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl19mlpsetoutputscalingEPNS_20multilayerperceptronElddPNS_8ae_stateE(ptr noundef %269, i64 noundef %270, double noundef %271, double noundef %272, ptr noundef %273)
  br label %274

274:                                              ; preds = %264
  %275 = load i64, ptr %11, align 8, !tbaa !9
  %276 = add nsw i64 %275, 1
  store i64 %276, ptr %11, align 8, !tbaa !9
  br label %259, !llvm.loop !26

277:                                              ; preds = %259
  %278 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %278)
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 32, ptr %7) #4
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl27_multilayerperceptron_clearEPv(ptr noundef) #3

declare noundef i64 @_ZN11alglib_impl23getmlpserializationcodeEPNS_8ae_stateE(ptr noundef) #2

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!7, !7, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

@_ZN11alglib_implL23mlpbase_mlpfirstversionE = external hidden local_unnamed_addr global i64, align 8
@.str.204 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.205 = external hidden unnamed_addr constant [40 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl14mlpunserializeEPNS_13ae_serializerEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #3 {
  %4 = alloca %"struct.alglib_impl::ae_frame", align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i8, align 1
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %2, ptr noundef nonnull %4)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl27_multilayerperceptron_clearEPv(ptr noundef %1)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 2, ptr noundef %2, i1 noundef zeroext true)
  call void @_ZN11alglib_impl29ae_serializer_unserialize_intEPNS_13ae_serializerEPlPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %5, ptr noundef %2)
  %13 = load i64, ptr %5, align 8, !tbaa !5
  %14 = call noundef i64 @_ZN11alglib_impl23getmlpserializationcodeEPNS_8ae_stateE(ptr noundef %2)
  %15 = icmp eq i64 %13, %14
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.204, ptr noundef %2)
  call void @_ZN11alglib_impl29ae_serializer_unserialize_intEPNS_13ae_serializerEPlPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %6, ptr noundef %2)
  %16 = load i64, ptr %6, align 8, !tbaa !5
  %17 = load i64, ptr @_ZN11alglib_implL23mlpbase_mlpfirstversionE, align 8, !tbaa !5
  %18 = icmp eq i64 %16, %17
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.204, ptr noundef %2)
  call void @_ZN11alglib_impl30ae_serializer_unserialize_boolEPNS_13ae_serializerEPbPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %11, ptr noundef %2)
  call void @_ZN11alglib_impl23unserializeintegerarrayEPNS_13ae_serializerEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %12, ptr noundef %2)
  %19 = load i64, ptr %12, align 8
  %20 = and i64 %19, -2
  %or.cond = icmp eq i64 %20, 2
  %21 = icmp eq i64 %19, 4
  %spec.select = or i1 %21, %or.cond
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.205, ptr noundef %2)
  %22 = getelementptr inbounds i8, ptr %12, i64 56
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = load i64, ptr %23, align 8, !tbaa !5
  %25 = load i64, ptr %12, align 8, !tbaa !10
  %26 = getelementptr i64, ptr %23, i64 %25
  %27 = getelementptr i8, ptr %26, i64 -8
  %28 = load i64, ptr %27, align 8, !tbaa !5
  %29 = icmp eq i64 %25, 2
  br i1 %29, label %30, label %37

30:                                               ; preds = %3
  %31 = load i8, ptr %11, align 1, !tbaa !15, !range !16, !noundef !17
  %32 = trunc nuw i8 %31 to i1
  %33 = getelementptr inbounds i8, ptr %23, i64 8
  %34 = load i64, ptr %33, align 8, !tbaa !5
  br i1 %32, label %35, label %36

35:                                               ; preds = %30
  call void @_ZN11alglib_impl11mlpcreatec0EllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %24, i64 noundef %34, ptr noundef %1, ptr noundef %2)
  br label %thread-pre-split

36:                                               ; preds = %30
  call void @_ZN11alglib_impl10mlpcreate0EllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %24, i64 noundef %34, ptr noundef %1, ptr noundef %2)
  br label %thread-pre-split

thread-pre-split:                                 ; preds = %36, %35
  %.pr = load i64, ptr %12, align 8, !tbaa !10
  br label %37

37:                                               ; preds = %thread-pre-split, %3
  %38 = phi i64 [ %.pr, %thread-pre-split ], [ %25, %3 ]
  %39 = icmp eq i64 %38, 3
  br i1 %39, label %40, label %51

40:                                               ; preds = %37
  %41 = load i8, ptr %11, align 1, !tbaa !15, !range !16, !noundef !17
  %42 = trunc nuw i8 %41 to i1
  %43 = load ptr, ptr %22, align 8, !tbaa !9
  %44 = load i64, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %43, i64 8
  %46 = load i64, ptr %45, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %43, i64 16
  %48 = load i64, ptr %47, align 8, !tbaa !5
  br i1 %42, label %49, label %50

49:                                               ; preds = %40
  call void @_ZN11alglib_impl11mlpcreatec1ElllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %44, i64 noundef %46, i64 noundef %48, ptr noundef %1, ptr noundef %2)
  br label %51

50:                                               ; preds = %40
  call void @_ZN11alglib_impl10mlpcreate1ElllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %44, i64 noundef %46, i64 noundef %48, ptr noundef %1, ptr noundef %2)
  br label %51

51:                                               ; preds = %49, %50, %37
  %52 = load i64, ptr %12, align 8, !tbaa !10
  %53 = icmp eq i64 %52, 4
  br i1 %53, label %54, label %67

54:                                               ; preds = %51
  %55 = load i8, ptr %11, align 1, !tbaa !15, !range !16, !noundef !17
  %56 = trunc nuw i8 %55 to i1
  %57 = load ptr, ptr %22, align 8, !tbaa !9
  %58 = load i64, ptr %57, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %57, i64 8
  %60 = load i64, ptr %59, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %57, i64 16
  %62 = load i64, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %57, i64 24
  %64 = load i64, ptr %63, align 8, !tbaa !5
  br i1 %56, label %65, label %66

65:                                               ; preds = %54
  call void @_ZN11alglib_impl11mlpcreatec2EllllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %58, i64 noundef %60, i64 noundef %62, i64 noundef %64, ptr noundef %1, ptr noundef %2)
  br label %thread-pre-split99

66:                                               ; preds = %54
  call void @_ZN11alglib_impl10mlpcreate2EllllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef %58, i64 noundef %60, i64 noundef %62, i64 noundef %64, ptr noundef %1, ptr noundef %2)
  br label %thread-pre-split99

thread-pre-split99:                               ; preds = %66, %65
  %.pr100 = load i64, ptr %12, align 8, !tbaa !10
  br label %67

67:                                               ; preds = %thread-pre-split99, %51
  %68 = phi i64 [ %.pr100, %thread-pre-split99 ], [ %52, %51 ]
  %.not.not88 = icmp sgt i64 %68, 1
  br i1 %.not.not88, label %.preheader81.preheader, label %.preheader80

.preheader81.preheader:                           ; preds = %67
  %.pre = load ptr, ptr %22, align 8, !tbaa !9
  br label %.preheader81

.preheader81:                                     ; preds = %.preheader81.preheader, %._crit_edge87
  %69 = phi i64 [ %89, %._crit_edge87 ], [ %68, %.preheader81.preheader ]
  %70 = phi ptr [ %90, %._crit_edge87 ], [ %.pre, %.preheader81.preheader ]
  %.089 = phi i64 [ %91, %._crit_edge87 ], [ 1, %.preheader81.preheader ]
  %71 = getelementptr inbounds i64, ptr %70, i64 %.089
  %72 = load i64, ptr %71, align 8, !tbaa !5
  %.not.not7884 = icmp sgt i64 %72, 0
  br i1 %.not.not7884, label %.lr.ph86, label %._crit_edge87

.lr.ph86:                                         ; preds = %.preheader81
  %73 = add nsw i64 %.089, -1
  br label %74

.preheader80:                                     ; preds = %._crit_edge87, %67
  %.not.not7690 = icmp sgt i64 %24, 0
  br i1 %.not.not7690, label %.lr.ph92, label %.preheader

74:                                               ; preds = %.lr.ph86, %._crit_edge
  %.07385 = phi i64 [ 0, %.lr.ph86 ], [ %86, %._crit_edge ]
  call void @_ZN11alglib_impl29ae_serializer_unserialize_intEPNS_13ae_serializerEPlPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %7, ptr noundef %2)
  call void @_ZN11alglib_impl32ae_serializer_unserialize_doubleEPNS_13ae_serializerEPdPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %8, ptr noundef %2)
  %75 = load i64, ptr %7, align 8, !tbaa !5
  %76 = load double, ptr %8, align 8, !tbaa !18
  call void @_ZN11alglib_impl16mlpsetneuroninfoEPNS_20multilayerperceptronEllldPNS_8ae_stateE(ptr noundef %1, i64 noundef %.089, i64 noundef %.07385, i64 noundef %75, double noundef %76, ptr noundef %2)
  %77 = load ptr, ptr %22, align 8, !tbaa !9
  %78 = getelementptr inbounds i64, ptr %77, i64 %73
  %79 = load i64, ptr %78, align 8, !tbaa !5
  %.not.not7982 = icmp sgt i64 %79, 0
  br i1 %.not.not7982, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %74, %.lr.ph
  %.07483 = phi i64 [ %81, %.lr.ph ], [ 0, %74 ]
  call void @_ZN11alglib_impl32ae_serializer_unserialize_doubleEPNS_13ae_serializerEPdPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %9, ptr noundef %2)
  %80 = load double, ptr %9, align 8, !tbaa !18
  call void @_ZN11alglib_impl12mlpsetweightEPNS_20multilayerperceptronElllldPNS_8ae_stateE(ptr noundef %1, i64 noundef %73, i64 noundef %.07483, i64 noundef %.089, i64 noundef %.07385, double noundef %80, ptr noundef %2)
  %81 = add nuw nsw i64 %.07483, 1
  %82 = load ptr, ptr %22, align 8, !tbaa !9
  %83 = getelementptr inbounds i64, ptr %82, i64 %73
  %84 = load i64, ptr %83, align 8, !tbaa !5
  %.not.not79 = icmp slt i64 %81, %84
  br i1 %.not.not79, label %.lr.ph, label %._crit_edge, !llvm.loop !20

._crit_edge:                                      ; preds = %.lr.ph, %74
  %85 = phi ptr [ %77, %74 ], [ %82, %.lr.ph ]
  %86 = add nuw nsw i64 %.07385, 1
  %87 = getelementptr inbounds i64, ptr %85, i64 %.089
  %88 = load i64, ptr %87, align 8, !tbaa !5
  %.not.not78 = icmp slt i64 %86, %88
  br i1 %.not.not78, label %74, label %._crit_edge87.loopexit, !llvm.loop !22

._crit_edge87.loopexit:                           ; preds = %._crit_edge
  %.pre98 = load i64, ptr %12, align 8, !tbaa !10
  br label %._crit_edge87

._crit_edge87:                                    ; preds = %._crit_edge87.loopexit, %.preheader81
  %89 = phi i64 [ %.pre98, %._crit_edge87.loopexit ], [ %69, %.preheader81 ]
  %90 = phi ptr [ %85, %._crit_edge87.loopexit ], [ %70, %.preheader81 ]
  %91 = add nuw nsw i64 %.089, 1
  %.not.not = icmp slt i64 %91, %89
  br i1 %.not.not, label %.preheader81, label %.preheader80, !llvm.loop !23

.preheader:                                       ; preds = %.lr.ph92, %.preheader80
  %.not.not7793 = icmp sgt i64 %28, 0
  br i1 %.not.not7793, label %.lr.ph95, label %._crit_edge96

.lr.ph92:                                         ; preds = %.preheader80, %.lr.ph92
  %.191 = phi i64 [ %94, %.lr.ph92 ], [ 0, %.preheader80 ]
  call void @_ZN11alglib_impl32ae_serializer_unserialize_doubleEPNS_13ae_serializerEPdPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %9, ptr noundef %2)
  call void @_ZN11alglib_impl32ae_serializer_unserialize_doubleEPNS_13ae_serializerEPdPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %10, ptr noundef %2)
  %92 = load double, ptr %9, align 8, !tbaa !18
  %93 = load double, ptr %10, align 8, !tbaa !18
  call void @_ZN11alglib_impl18mlpsetinputscalingEPNS_20multilayerperceptronElddPNS_8ae_stateE(ptr noundef %1, i64 noundef %.191, double noundef %92, double noundef %93, ptr noundef %2)
  %94 = add nuw nsw i64 %.191, 1
  %exitcond.not = icmp eq i64 %94, %24
  br i1 %exitcond.not, label %.preheader, label %.lr.ph92, !llvm.loop !24

.lr.ph95:                                         ; preds = %.preheader, %.lr.ph95
  %.294 = phi i64 [ %97, %.lr.ph95 ], [ 0, %.preheader ]
  call void @_ZN11alglib_impl32ae_serializer_unserialize_doubleEPNS_13ae_serializerEPdPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %9, ptr noundef %2)
  call void @_ZN11alglib_impl32ae_serializer_unserialize_doubleEPNS_13ae_serializerEPdPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %10, ptr noundef %2)
  %95 = load double, ptr %9, align 8, !tbaa !18
  %96 = load double, ptr %10, align 8, !tbaa !18
  call void @_ZN11alglib_impl19mlpsetoutputscalingEPNS_20multilayerperceptronElddPNS_8ae_stateE(ptr noundef %1, i64 noundef %.294, double noundef %95, double noundef %96, ptr noundef %2)
  %97 = add nuw nsw i64 %.294, 1
  %exitcond97.not = icmp eq i64 %97, %28
  br i1 %exitcond97.not, label %._crit_edge96, label %.lr.ph95, !llvm.loop !25

._crit_edge96:                                    ; preds = %.lr.ph95, %.preheader
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %2)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl10mlpcreate0EllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl10mlpcreate1ElllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl10mlpcreate2EllllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11mlpcreatec0EllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11mlpcreatec1ElllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11mlpcreatec2EllllPNS_20multilayerperceptronEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl27_multilayerperceptron_clearEPv(ptr noundef) local_unnamed_addr #3

declare noundef i64 @_ZN11alglib_impl23getmlpserializationcodeEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 0}
!11 = !{!"_ZTSN11alglib_impl9ae_vectorE", !6, i64 0, !6, i64 8, !12, i64 16, !13, i64 24, !7, i64 56}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !21}


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