; 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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::multilayerperceptron" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::modelerrors", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool" }
%"struct.alglib_impl::modelerrors" = type { double, double, double, double, double }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_shared_pool" = type { %"struct.alglib_impl::ae_lock", ptr, ptr, ptr, ptr, i64, ptr, ptr, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }

@_ZN11alglib_implL15mlpbase_mlpvnumE = external hidden global i64, align 8
@.str.106 = external hidden unnamed_addr constant [33 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

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

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

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

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #1

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl17mlpunserializeoldEPNS_9ae_vectorEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %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
  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 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl27_multilayerperceptron_clearEPv(ptr noundef %15)
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds double, ptr %18, i64 1
  %20 = load double, ptr %19, align 8, !tbaa !10
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %20, ptr noundef %21)
  %23 = load i64, ptr @_ZN11alglib_implL15mlpbase_mlpvnumE, align 8, !tbaa !12
  %24 = icmp eq i64 %22, %23
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef @.str.106, ptr noundef %25)
  store i64 3, ptr %14, align 8, !tbaa !12
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = getelementptr inbounds double, ptr %28, i64 2
  %30 = load double, ptr %29, align 8, !tbaa !10
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %30, ptr noundef %31)
  store i64 %32, ptr %8, align 8, !tbaa !12
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %33, i32 0, i32 5
  %35 = load i64, ptr %8, align 8, !tbaa !12
  %36 = sub nsw i64 %35, 1
  %37 = add nsw i64 %36, 1
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %34, i64 noundef %37, ptr noundef %38)
  store i64 0, ptr %7, align 8, !tbaa !12
  br label %39

39:                                               ; preds = %61, %3
  %40 = load i64, ptr %7, align 8, !tbaa !12
  %41 = load i64, ptr %8, align 8, !tbaa !12
  %42 = sub nsw i64 %41, 1
  %43 = icmp sle i64 %40, %42
  br i1 %43, label %44, label %64

44:                                               ; preds = %39
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = load i64, ptr %14, align 8, !tbaa !12
  %49 = load i64, ptr %7, align 8, !tbaa !12
  %50 = add nsw i64 %48, %49
  %51 = getelementptr inbounds double, ptr %47, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !10
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %52, ptr noundef %53)
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %55, i32 0, i32 5
  %57 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %56, i32 0, i32 4
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = load i64, ptr %7, align 8, !tbaa !12
  %60 = getelementptr inbounds i64, ptr %58, i64 %59
  store i64 %54, ptr %60, align 8, !tbaa !12
  br label %61

61:                                               ; preds = %44
  %62 = load i64, ptr %7, align 8, !tbaa !12
  %63 = add nsw i64 %62, 1
  store i64 %63, ptr %7, align 8, !tbaa !12
  br label %39, !llvm.loop !14

64:                                               ; preds = %39
  %65 = load i64, ptr %14, align 8, !tbaa !12
  %66 = load i64, ptr %8, align 8, !tbaa !12
  %67 = add nsw i64 %65, %66
  store i64 %67, ptr %14, align 8, !tbaa !12
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %68, i32 0, i32 5
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %69, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = getelementptr inbounds i64, ptr %71, i64 0
  %73 = load i64, ptr %72, align 8, !tbaa !12
  store i64 %73, ptr %8, align 8, !tbaa !12
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %74, i32 0, i32 5
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %75, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  %78 = getelementptr inbounds i64, ptr %77, i64 1
  %79 = load i64, ptr %78, align 8, !tbaa !12
  store i64 %79, ptr %10, align 8, !tbaa !12
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %80, i32 0, i32 5
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %81, i32 0, i32 4
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = getelementptr inbounds i64, ptr %83, i64 2
  %85 = load i64, ptr %84, align 8, !tbaa !12
  store i64 %85, ptr %11, align 8, !tbaa !12
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %86, i32 0, i32 5
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %87, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !9
  %90 = getelementptr inbounds i64, ptr %89, i64 3
  %91 = load i64, ptr %90, align 8, !tbaa !12
  store i64 %91, ptr %9, align 8, !tbaa !12
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %92, i32 0, i32 5
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  %96 = getelementptr inbounds i64, ptr %95, i64 4
  %97 = load i64, ptr %96, align 8, !tbaa !12
  store i64 %97, ptr %12, align 8, !tbaa !12
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %98, i32 0, i32 5
  %100 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %99, i32 0, i32 4
  %101 = load ptr, ptr %100, align 8, !tbaa !9
  %102 = getelementptr inbounds i64, ptr %101, i64 6
  %103 = load i64, ptr %102, align 8, !tbaa !12
  %104 = icmp eq i64 %103, 0
  br i1 %104, label %105, label %109

105:                                              ; preds = %64
  %106 = load i64, ptr %10, align 8, !tbaa !12
  %107 = load i64, ptr %11, align 8, !tbaa !12
  %108 = add nsw i64 %106, %107
  store i64 %108, ptr %13, align 8, !tbaa !12
  br label %111

109:                                              ; preds = %64
  %110 = load i64, ptr %10, align 8, !tbaa !12
  store i64 %110, ptr %13, align 8, !tbaa !12
  br label %111

111:                                              ; preds = %109, %105
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %112, i32 0, i32 6
  %114 = load i64, ptr %12, align 8, !tbaa !12
  %115 = sub nsw i64 %114, 1
  %116 = add nsw i64 %115, 1
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %113, i64 noundef %116, ptr noundef %117)
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %118, i32 0, i32 7
  %120 = load i64, ptr %13, align 8, !tbaa !12
  %121 = sub nsw i64 %120, 1
  %122 = add nsw i64 %121, 1
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %119, i64 noundef %122, ptr noundef %123)
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %124, i32 0, i32 8
  %126 = load i64, ptr %13, align 8, !tbaa !12
  %127 = sub nsw i64 %126, 1
  %128 = add nsw i64 %127, 1
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %125, i64 noundef %128, ptr noundef %129)
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %130, i32 0, i32 9
  %132 = load i64, ptr %9, align 8, !tbaa !12
  %133 = sub nsw i64 %132, 1
  %134 = add nsw i64 %133, 1
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %131, i64 noundef %134, ptr noundef %135)
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %136, i32 0, i32 16
  %138 = load i64, ptr %12, align 8, !tbaa !12
  %139 = load i64, ptr %11, align 8, !tbaa !12
  %140 = mul nsw i64 2, %139
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %138, i64 noundef %140, ptr noundef %141)
  %143 = sub nsw i64 %142, 1
  %144 = add nsw i64 %143, 1
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %137, i64 noundef %144, ptr noundef %145)
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %146, i32 0, i32 10
  %148 = load i64, ptr %9, align 8, !tbaa !12
  %149 = sub nsw i64 %148, 1
  %150 = add nsw i64 %149, 1
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %147, i64 noundef %150, ptr noundef %151)
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %152, i32 0, i32 12
  %154 = load i64, ptr %10, align 8, !tbaa !12
  %155 = sub nsw i64 %154, 1
  %156 = add nsw i64 %155, 1
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %153, i64 noundef %156, ptr noundef %157)
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %158, i32 0, i32 13
  %160 = load i64, ptr %11, align 8, !tbaa !12
  %161 = sub nsw i64 %160, 1
  %162 = add nsw i64 %161, 1
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %159, i64 noundef %162, ptr noundef %163)
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %164, i32 0, i32 11
  %166 = load i64, ptr %9, align 8, !tbaa !12
  %167 = sub nsw i64 %166, 1
  %168 = add nsw i64 %167, 1
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %165, i64 noundef %168, ptr noundef %169)
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %170, i32 0, i32 6
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %171, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !9
  %174 = getelementptr inbounds double, ptr %173, i64 0
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %175, i32 0, i32 4
  %177 = load ptr, ptr %176, align 8, !tbaa !9
  %178 = load i64, ptr %14, align 8, !tbaa !12
  %179 = getelementptr inbounds double, ptr %177, i64 %178
  %180 = load i64, ptr %12, align 8, !tbaa !12
  %181 = sub nsw i64 %180, 1
  %182 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %181)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %174, i64 noundef 1, ptr noundef %179, i64 noundef 1, i64 noundef %182)
  %183 = load i64, ptr %14, align 8, !tbaa !12
  %184 = load i64, ptr %12, align 8, !tbaa !12
  %185 = add nsw i64 %183, %184
  store i64 %185, ptr %14, align 8, !tbaa !12
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %186, i32 0, i32 7
  %188 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %187, i32 0, i32 4
  %189 = load ptr, ptr %188, align 8, !tbaa !9
  %190 = getelementptr inbounds double, ptr %189, i64 0
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %191, i32 0, i32 4
  %193 = load ptr, ptr %192, align 8, !tbaa !9
  %194 = load i64, ptr %14, align 8, !tbaa !12
  %195 = getelementptr inbounds double, ptr %193, i64 %194
  %196 = load i64, ptr %13, align 8, !tbaa !12
  %197 = sub nsw i64 %196, 1
  %198 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %197)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %190, i64 noundef 1, ptr noundef %195, i64 noundef 1, i64 noundef %198)
  %199 = load i64, ptr %14, align 8, !tbaa !12
  %200 = load i64, ptr %13, align 8, !tbaa !12
  %201 = add nsw i64 %199, %200
  store i64 %201, ptr %14, align 8, !tbaa !12
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %202, i32 0, i32 8
  %204 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %203, i32 0, i32 4
  %205 = load ptr, ptr %204, align 8, !tbaa !9
  %206 = getelementptr inbounds double, ptr %205, i64 0
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %207, i32 0, i32 4
  %209 = load ptr, ptr %208, align 8, !tbaa !9
  %210 = load i64, ptr %14, align 8, !tbaa !12
  %211 = getelementptr inbounds double, ptr %209, i64 %210
  %212 = load i64, ptr %13, align 8, !tbaa !12
  %213 = sub nsw i64 %212, 1
  %214 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %213)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %206, i64 noundef 1, ptr noundef %211, i64 noundef 1, i64 noundef %214)
  %215 = load i64, ptr %14, align 8, !tbaa !12
  %216 = load i64, ptr %13, align 8, !tbaa !12
  %217 = add nsw i64 %215, %216
  store i64 %217, ptr %14, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

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 = { 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 #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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

@_ZN11alglib_implL15mlpbase_mlpvnumE = external hidden local_unnamed_addr global i64, align 8
@.str.106 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #0

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

declare noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl17mlpunserializeoldEPNS_9ae_vectorEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl27_multilayerperceptron_clearEPv(ptr noundef %1)
  %4 = getelementptr inbounds i8, ptr %0, i64 56
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 8
  %7 = load double, ptr %6, align 8, !tbaa !8
  %8 = tail call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %7, ptr noundef %2)
  %9 = load i64, ptr @_ZN11alglib_implL15mlpbase_mlpvnumE, align 8, !tbaa !10
  %10 = icmp eq i64 %8, %9
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.106, ptr noundef %2)
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  %13 = load double, ptr %12, align 8, !tbaa !8
  %14 = tail call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %13, ptr noundef %2)
  %15 = getelementptr inbounds i8, ptr %1, i64 208
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %14, ptr noundef %2)
  %.not.not76 = icmp sgt i64 %14, 0
  br i1 %.not.not76, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %16 = getelementptr inbounds i8, ptr %1, i64 264
  br label %17

17:                                               ; preds = %.lr.ph, %17
  %.07577 = phi i64 [ 0, %.lr.ph ], [ %25, %17 ]
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds double, ptr %18, i64 %.07577
  %20 = getelementptr inbounds i8, ptr %19, i64 24
  %21 = load double, ptr %20, align 8, !tbaa !8
  %22 = tail call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %21, ptr noundef %2)
  %23 = load ptr, ptr %16, align 8, !tbaa !5
  %24 = getelementptr inbounds i64, ptr %23, i64 %.07577
  store i64 %22, ptr %24, align 8, !tbaa !10
  %25 = add nuw nsw i64 %.07577, 1
  %exitcond.not = icmp eq i64 %25, %14
  br i1 %exitcond.not, label %._crit_edge, label %17, !llvm.loop !12

._crit_edge:                                      ; preds = %17, %3
  %26 = getelementptr inbounds i8, ptr %1, i64 264
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load i64, ptr %28, align 8, !tbaa !10
  %30 = getelementptr inbounds i8, ptr %27, i64 16
  %31 = load i64, ptr %30, align 8, !tbaa !10
  %32 = getelementptr inbounds i8, ptr %27, i64 24
  %33 = load i64, ptr %32, align 8, !tbaa !10
  %34 = getelementptr inbounds i8, ptr %27, i64 32
  %35 = load i64, ptr %34, align 8, !tbaa !10
  %36 = getelementptr inbounds i8, ptr %27, i64 48
  %37 = load i64, ptr %36, align 8, !tbaa !10
  %38 = icmp eq i64 %37, 0
  %39 = select i1 %38, i64 %31, i64 0
  %.0 = add nsw i64 %39, %29
  %40 = add nsw i64 %14, 3
  %41 = getelementptr inbounds i8, ptr %1, i64 272
  %42 = add nsw i64 %35, -1
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %41, i64 noundef %35, ptr noundef %2)
  %43 = getelementptr inbounds i8, ptr %1, i64 336
  %44 = add nsw i64 %.0, -1
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %43, i64 noundef %.0, ptr noundef %2)
  %45 = getelementptr inbounds i8, ptr %1, i64 400
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %45, i64 noundef %.0, ptr noundef %2)
  %46 = getelementptr inbounds i8, ptr %1, i64 464
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %46, i64 noundef %33, ptr noundef %2)
  %47 = getelementptr inbounds i8, ptr %1, i64 928
  %48 = shl nsw i64 %31, 1
  %49 = tail call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %35, i64 noundef %48, ptr noundef %2)
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %47, i64 noundef %49, ptr noundef %2)
  %50 = getelementptr inbounds i8, ptr %1, i64 528
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %50, i64 noundef %33, ptr noundef %2)
  %51 = getelementptr inbounds i8, ptr %1, i64 656
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %51, i64 noundef %29, ptr noundef %2)
  %52 = getelementptr inbounds i8, ptr %1, i64 720
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %52, i64 noundef %31, ptr noundef %2)
  %53 = getelementptr inbounds i8, ptr %1, i64 592
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %53, i64 noundef %33, ptr noundef %2)
  %54 = getelementptr inbounds i8, ptr %1, i64 328
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds double, ptr %56, i64 %40
  %58 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %42)
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %55, i64 noundef 1, ptr noundef %57, i64 noundef 1, i64 noundef %58)
  %59 = add nsw i64 %35, %40
  %60 = getelementptr inbounds i8, ptr %1, i64 392
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds double, ptr %62, i64 %59
  %64 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %44)
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %61, i64 noundef 1, ptr noundef %63, i64 noundef 1, i64 noundef %64)
  %65 = getelementptr inbounds i8, ptr %1, i64 456
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr double, ptr %67, i64 %59
  %69 = getelementptr double, ptr %68, i64 %.0
  %70 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %44)
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %66, i64 noundef 1, ptr noundef %69, i64 noundef 1, i64 noundef %70)
  ret void
}

attributes #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 #1 = { 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" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass