; 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::mlpbuffers" = type { i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"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::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::smlpgrad" = type { double, %"struct.alglib_impl::ae_vector" }
%"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::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 }

; 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl18mlpgetweightscountEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef, ptr noundef) #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13mlpcopysharedEPNS_20multilayerperceptronES1_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) #4 {
  %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 %"struct.alglib_impl::mlpbuffers", align 8
  %11 = alloca %"struct.alglib_impl::smlpgrad", 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) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 720, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr %11) #5
  %12 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %12, ptr noundef %7)
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 720, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 72, i1 false)
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_mlpbuffers_initEPvPNS_8ae_stateEb(ptr noundef %10, ptr noundef %13, i1 noundef zeroext true)
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14_smlpgrad_initEPvPNS_8ae_stateEb(ptr noundef %11, ptr noundef %14, i1 noundef zeroext true)
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %15, i32 0, i32 0
  %17 = load i64, ptr %16, align 8, !tbaa !9
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %18, i32 0, i32 0
  store i64 %17, ptr %19, align 8, !tbaa !9
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %20, i32 0, i32 1
  %22 = load i64, ptr %21, align 8, !tbaa !21
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %23, i32 0, i32 1
  store i64 %22, ptr %24, align 8, !tbaa !21
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %25, i32 0, i32 2
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %27, i32 0, i32 2
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl16copyintegerarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %26, ptr noundef %28, ptr noundef %29)
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %30, i32 0, i32 3
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %32, i32 0, i32 3
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl16copyintegerarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %31, ptr noundef %33, ptr noundef %34)
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %35, i32 0, i32 4
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %37, i32 0, i32 4
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl16copyintegerarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %36, ptr noundef %38, ptr noundef %39)
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %40, i32 0, i32 5
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %42, i32 0, i32 5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl16copyintegerarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %41, ptr noundef %43, ptr noundef %44)
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %45, i32 0, i32 6
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %47, i32 0, i32 6
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %46, ptr noundef %48, ptr noundef %49)
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %50, i32 0, i32 7
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %52, i32 0, i32 7
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %51, ptr noundef %53, ptr noundef %54)
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %55, i32 0, i32 8
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %57, i32 0, i32 8
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %56, ptr noundef %58, ptr noundef %59)
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %60, i32 0, i32 9
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %62, i32 0, i32 9
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %61, ptr noundef %63, ptr noundef %64)
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %65, i32 0, i32 10
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %67, i32 0, i32 10
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %66, ptr noundef %68, ptr noundef %69)
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %70, i32 0, i32 11
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %72, i32 0, i32 11
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %71, ptr noundef %73, ptr noundef %74)
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %75, i32 0, i32 12
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %77, i32 0, i32 12
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %76, ptr noundef %78, ptr noundef %79)
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %80, i32 0, i32 13
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %82, i32 0, i32 13
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %81, ptr noundef %83, ptr noundef %84)
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %85, i32 0, i32 16
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %87, i32 0, i32 16
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %86, ptr noundef %88, ptr noundef %89)
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %90, i32 0, i32 17
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %92, i32 0, i32 17
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl16copyintegerarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %91, ptr noundef %93, ptr noundef %94)
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = call noundef i64 @_ZN11alglib_impl18mlpgetweightscountEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %95, ptr noundef %96)
  store i64 %97, ptr %8, align 8, !tbaa !22
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %98, i32 0, i32 20
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef %99, ptr noundef %10, i64 noundef 720, ptr noundef @_ZN11alglib_impl16_mlpbuffers_initEPvPNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl21_mlpbuffers_init_copyEPvS0_PNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl19_mlpbuffers_destroyEPv, ptr noundef %100)
  %101 = getelementptr inbounds %"struct.alglib_impl::smlpgrad", ptr %11, i32 0, i32 1
  %102 = load i64, ptr %8, align 8, !tbaa !22
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %101, i64 noundef %102, ptr noundef %103)
  %104 = getelementptr inbounds %"struct.alglib_impl::smlpgrad", ptr %11, i32 0, i32 0
  store double 0.000000e+00, ptr %104, align 8, !tbaa !23
  store i64 0, ptr %9, align 8, !tbaa !22
  br label %105

105:                                              ; preds = %116, %3
  %106 = load i64, ptr %9, align 8, !tbaa !22
  %107 = load i64, ptr %8, align 8, !tbaa !22
  %108 = sub nsw i64 %107, 1
  %109 = icmp sle i64 %106, %108
  br i1 %109, label %110, label %119

110:                                              ; preds = %105
  %111 = getelementptr inbounds %"struct.alglib_impl::smlpgrad", ptr %11, i32 0, i32 1
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %111, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !25
  %114 = load i64, ptr %9, align 8, !tbaa !22
  %115 = getelementptr inbounds double, ptr %113, i64 %114
  store double 0.000000e+00, ptr %115, align 8, !tbaa !26
  br label %116

116:                                              ; preds = %110
  %117 = load i64, ptr %9, align 8, !tbaa !22
  %118 = add nsw i64 %117, 1
  store i64 %118, ptr %9, align 8, !tbaa !22
  br label %105, !llvm.loop !27

119:                                              ; preds = %105
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %120, i32 0, i32 21
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef %121, ptr noundef %11, i64 noundef 72, ptr noundef @_ZN11alglib_impl14_smlpgrad_initEPvPNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl19_smlpgrad_init_copyEPvS0_PNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl17_smlpgrad_destroyEPv, ptr noundef %122)
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %123)
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 720, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  ret void
}

declare void @_ZN11alglib_impl16_mlpbuffers_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl14_smlpgrad_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #4

declare void @_ZN11alglib_impl16copyintegerarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl21_mlpbuffers_init_copyEPvS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #3

declare void @_ZN11alglib_impl19_mlpbuffers_destroyEPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl19_smlpgrad_init_copyEPvS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #4

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl20multilayerperceptronE", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 80, !12, i64 144, !12, i64 208, !12, i64 272, !12, i64 336, !12, i64 400, !12, i64 464, !12, i64 528, !12, i64 592, !12, i64 656, !12, i64 720, !15, i64 784, !12, i64 864, !12, i64 928, !12, i64 992, !16, i64 1056, !12, i64 1096, !18, i64 1160, !18, i64 1304, !15, i64 1448, !20, i64 1528, !12, i64 1896, !18, i64 1960}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, 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 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!16 = !{!"_ZTSN11alglib_impl11modelerrorsE", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32}
!17 = !{!"double", !7, i64 0}
!18 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !19, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !11, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !14, i64 112}
!19 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !14, i64 8, !13, i64 40}
!20 = !{!"_ZTSN11alglib_impl12sparsematrixE", !12, i64 0, !12, i64 64, !12, i64 128, !12, i64 192, !12, i64 256, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360}
!21 = !{!10, !11, i64 8}
!22 = !{!11, !11, i64 0}
!23 = !{!24, !17, i64 0}
!24 = !{!"_ZTSN11alglib_impl8smlpgradE", !17, i64 0, !12, i64 8}
!25 = !{!7, !7, i64 0}
!26 = !{!17, !17, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"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"

%"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::mlpbuffers" = type { i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"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::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::smlpgrad" = type { double, %"struct.alglib_impl::ae_vector" }

; 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl18mlpgetweightscountEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13mlpcopysharedEPNS_20multilayerperceptronES1_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #4 {
  %4 = alloca %"struct.alglib_impl::ae_frame", align 8
  %5 = alloca %"struct.alglib_impl::mlpbuffers", align 8
  %6 = alloca %"struct.alglib_impl::smlpgrad", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 720, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #5
  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(720) %5, i8 0, i64 720, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %6, i8 0, i64 72, i1 false)
  call void @_ZN11alglib_impl16_mlpbuffers_initEPvPNS_8ae_stateEb(ptr noundef nonnull %5, ptr noundef %2, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14_smlpgrad_initEPvPNS_8ae_stateEb(ptr noundef nonnull %6, ptr noundef %2, i1 noundef zeroext true)
  %7 = load <2 x i64>, ptr %0, align 8, !tbaa !5
  store <2 x i64> %7, ptr %1, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  %9 = getelementptr inbounds i8, ptr %1, i64 16
  call void @_ZN11alglib_impl16copyintegerarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %2)
  %10 = getelementptr inbounds i8, ptr %0, i64 80
  %11 = getelementptr inbounds i8, ptr %1, i64 80
  call void @_ZN11alglib_impl16copyintegerarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %2)
  %12 = getelementptr inbounds i8, ptr %0, i64 144
  %13 = getelementptr inbounds i8, ptr %1, i64 144
  call void @_ZN11alglib_impl16copyintegerarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef %2)
  %14 = getelementptr inbounds i8, ptr %0, i64 208
  %15 = getelementptr inbounds i8, ptr %1, i64 208
  call void @_ZN11alglib_impl16copyintegerarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %2)
  %16 = getelementptr inbounds i8, ptr %0, i64 272
  %17 = getelementptr inbounds i8, ptr %1, i64 272
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef %2)
  %18 = getelementptr inbounds i8, ptr %0, i64 336
  %19 = getelementptr inbounds i8, ptr %1, i64 336
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef %2)
  %20 = getelementptr inbounds i8, ptr %0, i64 400
  %21 = getelementptr inbounds i8, ptr %1, i64 400
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef %2)
  %22 = getelementptr inbounds i8, ptr %0, i64 464
  %23 = getelementptr inbounds i8, ptr %1, i64 464
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef %2)
  %24 = getelementptr inbounds i8, ptr %0, i64 528
  %25 = getelementptr inbounds i8, ptr %1, i64 528
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef %2)
  %26 = getelementptr inbounds i8, ptr %0, i64 592
  %27 = getelementptr inbounds i8, ptr %1, i64 592
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %2)
  %28 = getelementptr inbounds i8, ptr %0, i64 656
  %29 = getelementptr inbounds i8, ptr %1, i64 656
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef %2)
  %30 = getelementptr inbounds i8, ptr %0, i64 720
  %31 = getelementptr inbounds i8, ptr %1, i64 720
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %30, ptr noundef nonnull %31, ptr noundef %2)
  %32 = getelementptr inbounds i8, ptr %0, i64 928
  %33 = getelementptr inbounds i8, ptr %1, i64 928
  call void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %2)
  %34 = getelementptr inbounds i8, ptr %0, i64 992
  %35 = getelementptr inbounds i8, ptr %1, i64 992
  call void @_ZN11alglib_impl16copyintegerarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef %2)
  %36 = call noundef i64 @_ZN11alglib_impl18mlpgetweightscountEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %2)
  %37 = getelementptr inbounds i8, ptr %1, i64 1160
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef nonnull %37, ptr noundef nonnull %5, i64 noundef 720, ptr noundef nonnull @_ZN11alglib_impl16_mlpbuffers_initEPvPNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl21_mlpbuffers_init_copyEPvS0_PNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl19_mlpbuffers_destroyEPv, ptr noundef %2)
  %38 = getelementptr inbounds i8, ptr %6, i64 8
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %38, i64 noundef %36, ptr noundef %2)
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  %.not.not61 = icmp sgt i64 %36, 0
  br i1 %.not.not61, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %39 = getelementptr inbounds i8, ptr %6, i64 64
  %xtraiter = and i64 %36, 3
  %40 = icmp ult i64 %36, 4
  br i1 %40, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

41:                                               ; preds = %41, %.lr.ph.new
  %.062 = phi i64 [ 0, %.lr.ph.new ], [ %53, %41 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %41 ]
  %42 = load ptr, ptr %39, align 8, !tbaa !16
  %43 = getelementptr inbounds double, ptr %42, i64 %.062
  store double 0.000000e+00, ptr %43, align 8, !tbaa !17
  %44 = or disjoint i64 %.062, 1
  %45 = load ptr, ptr %39, align 8, !tbaa !16
  %46 = getelementptr inbounds double, ptr %45, i64 %44
  store double 0.000000e+00, ptr %46, align 8, !tbaa !17
  %47 = or disjoint i64 %.062, 2
  %48 = load ptr, ptr %39, align 8, !tbaa !16
  %49 = getelementptr inbounds double, ptr %48, i64 %47
  store double 0.000000e+00, ptr %49, align 8, !tbaa !17
  %50 = or disjoint i64 %.062, 3
  %51 = load ptr, ptr %39, align 8, !tbaa !16
  %52 = getelementptr inbounds double, ptr %51, i64 %50
  store double 0.000000e+00, ptr %52, align 8, !tbaa !17
  %53 = add nuw nsw i64 %.062, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %41, !llvm.loop !18

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

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.062.epil = phi i64 [ %56, %.epil.preheader ], [ %.062.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %54 = load ptr, ptr %39, align 8, !tbaa !16
  %55 = getelementptr inbounds double, ptr %54, i64 %.062.epil
  store double 0.000000e+00, ptr %55, align 8, !tbaa !17
  %56 = add nuw nsw i64 %.062.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !20

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %3
  %57 = getelementptr inbounds i8, ptr %1, i64 1304
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef nonnull %57, ptr noundef nonnull %6, i64 noundef 72, ptr noundef nonnull @_ZN11alglib_impl14_smlpgrad_initEPvPNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl19_smlpgrad_init_copyEPvS0_PNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl17_smlpgrad_destroyEPv, ptr noundef %2)
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %2)
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 720, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  ret void
}

declare void @_ZN11alglib_impl16_mlpbuffers_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl14_smlpgrad_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #4

declare void @_ZN11alglib_impl16copyintegerarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl13copyrealarrayEPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl21_mlpbuffers_init_copyEPvS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #3

declare void @_ZN11alglib_impl19_mlpbuffers_destroyEPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl19_smlpgrad_init_copyEPvS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #4

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

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


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