; 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_smart_ptr" = type { ptr, ptr, i8, i8, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"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::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 }
%"struct.alglib_impl::smlpgrad" = type { double, %"struct.alglib_impl::ae_vector" }

@.str.189 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [65 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 nounwind uwtable
declare dso_local void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl18mlpgradbatchsubsetEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_9ae_vectorElPdS5_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #4 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.alglib_impl::ae_frame", align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"struct.alglib_impl::ae_smart_ptr", align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i64 %2, ptr %11, align 8, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !5
  store i64 %4, ptr %13, align 8, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #5
  %28 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %28, ptr noundef %17)
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 64, i1 false)
  %29 = load ptr, ptr %14, align 8, !tbaa !5
  store double 0.000000e+00, ptr %29, align 8, !tbaa !11
  %30 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl17ae_smart_ptr_initEPNS_12ae_smart_ptrEPPvPNS_8ae_stateEb(ptr noundef %27, ptr noundef %26, ptr noundef %30, i1 noundef zeroext true)
  %31 = load i64, ptr %11, align 8, !tbaa !9
  %32 = icmp sge i64 %31, 0
  %33 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef @.str.189, ptr noundef %33)
  %34 = load i64, ptr %13, align 8, !tbaa !9
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 0
  %37 = load i64, ptr %36, align 8, !tbaa !13
  %38 = icmp sle i64 %34, %37
  %39 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef @.str.190, ptr noundef %39)
  %40 = load i64, ptr %11, align 8, !tbaa !9
  store i64 %40, ptr %22, align 8, !tbaa !9
  %41 = load i64, ptr %13, align 8, !tbaa !9
  %42 = icmp slt i64 %41, 0
  br i1 %42, label %43, label %45

43:                                               ; preds = %8
  store i64 0, ptr %23, align 8, !tbaa !9
  %44 = load i64, ptr %11, align 8, !tbaa !9
  store i64 %44, ptr %24, align 8, !tbaa !9
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %75

45:                                               ; preds = %8
  store i64 0, ptr %23, align 8, !tbaa !9
  %46 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %46, ptr %24, align 8, !tbaa !9
  store i64 1, ptr %25, align 8, !tbaa !9
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %47

47:                                               ; preds = %71, %45
  %48 = load i64, ptr %18, align 8, !tbaa !9
  %49 = load i64, ptr %13, align 8, !tbaa !9
  %50 = sub nsw i64 %49, 1
  %51 = icmp sle i64 %48, %50
  br i1 %51, label %52, label %74

52:                                               ; preds = %47
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %53, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !17
  %56 = load i64, ptr %18, align 8, !tbaa !9
  %57 = getelementptr inbounds i64, ptr %55, i64 %56
  %58 = load i64, ptr %57, align 8, !tbaa !9
  %59 = icmp sge i64 %58, 0
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %59, ptr noundef @.str.191, ptr noundef %60)
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %61, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !17
  %64 = load i64, ptr %18, align 8, !tbaa !9
  %65 = getelementptr inbounds i64, ptr %63, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = load i64, ptr %22, align 8, !tbaa !9
  %68 = sub nsw i64 %67, 1
  %69 = icmp sle i64 %66, %68
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %69, ptr noundef @.str.192, ptr noundef %70)
  br label %71

71:                                               ; preds = %52
  %72 = load i64, ptr %18, align 8, !tbaa !9
  %73 = add nsw i64 %72, 1
  store i64 %73, ptr %18, align 8, !tbaa !9
  br label %47, !llvm.loop !18

74:                                               ; preds = %47
  br label %75

75:                                               ; preds = %74, %43
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %76, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %77)
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  %79 = load i64, ptr %21, align 8, !tbaa !9
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %78, i64 noundef %79, ptr noundef %80)
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %81, i32 0, i32 21
  %83 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl29ae_shared_pool_first_recycledEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef %82, ptr noundef %27, ptr noundef %83)
  br label %84

84:                                               ; preds = %105, %75
  %85 = load ptr, ptr %26, align 8, !tbaa !5
  %86 = icmp ne ptr %85, null
  br i1 %86, label %87, label %109

87:                                               ; preds = %84
  %88 = load ptr, ptr %26, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::smlpgrad", ptr %88, i32 0, i32 0
  store double 0.000000e+00, ptr %89, align 8, !tbaa !20
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %90

90:                                               ; preds = %102, %87
  %91 = load i64, ptr %18, align 8, !tbaa !9
  %92 = load i64, ptr %21, align 8, !tbaa !9
  %93 = sub nsw i64 %92, 1
  %94 = icmp sle i64 %91, %93
  br i1 %94, label %95, label %105

95:                                               ; preds = %90
  %96 = load ptr, ptr %26, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::smlpgrad", ptr %96, i32 0, i32 1
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %97, i32 0, i32 4
  %99 = load ptr, ptr %98, align 8, !tbaa !17
  %100 = load i64, ptr %18, align 8, !tbaa !9
  %101 = getelementptr inbounds double, ptr %99, i64 %100
  store double 0.000000e+00, ptr %101, align 8, !tbaa !11
  br label %102

102:                                              ; preds = %95
  %103 = load i64, ptr %18, align 8, !tbaa !9
  %104 = add nsw i64 %103, 1
  store i64 %104, ptr %18, align 8, !tbaa !9
  br label %90, !llvm.loop !22

105:                                              ; preds = %90
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %106, i32 0, i32 21
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl28ae_shared_pool_next_recycledEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef %107, ptr noundef %27, ptr noundef %108)
  br label %84, !llvm.loop !23

109:                                              ; preds = %84
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %112, i32 0, i32 23
  %114 = load i64, ptr %11, align 8, !tbaa !9
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = load i64, ptr %23, align 8, !tbaa !9
  %117 = load i64, ptr %24, align 8, !tbaa !9
  %118 = load i64, ptr %25, align 8, !tbaa !9
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %119, i32 0, i32 20
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %121, i32 0, i32 21
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlpgradbatchxEPNS_20multilayerperceptronEPNS_9ae_matrixEPNS_12sparsematrixEllPNS_9ae_vectorElllPNS_14ae_shared_poolES9_PNS_8ae_stateE(ptr noundef %110, ptr noundef %111, ptr noundef %113, i64 noundef %114, i64 noundef 0, ptr noundef %115, i64 noundef %116, i64 noundef %117, i64 noundef %118, ptr noundef %120, ptr noundef %122, ptr noundef %123)
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  store double 0.000000e+00, ptr %124, align 8, !tbaa !11
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %125

125:                                              ; preds = %136, %109
  %126 = load i64, ptr %18, align 8, !tbaa !9
  %127 = load i64, ptr %21, align 8, !tbaa !9
  %128 = sub nsw i64 %127, 1
  %129 = icmp sle i64 %126, %128
  br i1 %129, label %130, label %139

130:                                              ; preds = %125
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %131, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !17
  %134 = load i64, ptr %18, align 8, !tbaa !9
  %135 = getelementptr inbounds double, ptr %133, i64 %134
  store double 0.000000e+00, ptr %135, align 8, !tbaa !11
  br label %136

136:                                              ; preds = %130
  %137 = load i64, ptr %18, align 8, !tbaa !9
  %138 = add nsw i64 %137, 1
  store i64 %138, ptr %18, align 8, !tbaa !9
  br label %125, !llvm.loop !24

139:                                              ; preds = %125
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %140, i32 0, i32 21
  %142 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl29ae_shared_pool_first_recycledEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef %141, ptr noundef %27, ptr noundef %142)
  br label %143

143:                                              ; preds = %182, %139
  %144 = load ptr, ptr %26, align 8, !tbaa !5
  %145 = icmp ne ptr %144, null
  br i1 %145, label %146, label %186

146:                                              ; preds = %143
  %147 = load ptr, ptr %14, align 8, !tbaa !5
  %148 = load double, ptr %147, align 8, !tbaa !11
  %149 = load ptr, ptr %26, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.alglib_impl::smlpgrad", ptr %149, i32 0, i32 0
  %151 = load double, ptr %150, align 8, !tbaa !20
  %152 = fadd double %148, %151
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  store double %152, ptr %153, align 8, !tbaa !11
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %154

154:                                              ; preds = %179, %146
  %155 = load i64, ptr %18, align 8, !tbaa !9
  %156 = load i64, ptr %21, align 8, !tbaa !9
  %157 = sub nsw i64 %156, 1
  %158 = icmp sle i64 %155, %157
  br i1 %158, label %159, label %182

159:                                              ; preds = %154
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %160, i32 0, i32 4
  %162 = load ptr, ptr %161, align 8, !tbaa !17
  %163 = load i64, ptr %18, align 8, !tbaa !9
  %164 = getelementptr inbounds double, ptr %162, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !11
  %166 = load ptr, ptr %26, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::smlpgrad", ptr %166, i32 0, i32 1
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %167, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !17
  %170 = load i64, ptr %18, align 8, !tbaa !9
  %171 = getelementptr inbounds double, ptr %169, i64 %170
  %172 = load double, ptr %171, align 8, !tbaa !11
  %173 = fadd double %165, %172
  %174 = load ptr, ptr %15, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %174, i32 0, i32 4
  %176 = load ptr, ptr %175, align 8, !tbaa !17
  %177 = load i64, ptr %18, align 8, !tbaa !9
  %178 = getelementptr inbounds double, ptr %176, i64 %177
  store double %173, ptr %178, align 8, !tbaa !11
  br label %179

179:                                              ; preds = %159
  %180 = load i64, ptr %18, align 8, !tbaa !9
  %181 = add nsw i64 %180, 1
  store i64 %181, ptr %18, align 8, !tbaa !9
  br label %154, !llvm.loop !25

182:                                              ; preds = %154
  %183 = load ptr, ptr %9, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %183, i32 0, i32 21
  %185 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl28ae_shared_pool_next_recycledEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef %184, ptr noundef %27, ptr noundef %185)
  br label %143, !llvm.loop !26

186:                                              ; preds = %143
  %187 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %187)
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  ret void
}

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

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

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

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

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

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 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 #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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !15, i64 16, !16, i64 24, !7, i64 56}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !12, i64 0}
!21 = !{!"_ZTSN11alglib_impl8smlpgradE", !12, i64 0, !14, i64 8}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19}


; 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_smart_ptr" = type { ptr, ptr, i8, i8, ptr, %"struct.alglib_impl::ae_dyn_block" }

@.str.189 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [65 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 nounwind uwtable
declare dso_local void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl18mlpgradbatchsubsetEPNS_20multilayerperceptronEPNS_9ae_matrixElPNS_9ae_vectorElPdS5_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr nocapture noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #4 {
  %9 = alloca %"struct.alglib_impl::ae_frame", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"struct.alglib_impl::ae_smart_ptr", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %7, ptr noundef nonnull %9)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %14, i8 0, i64 64, i1 false)
  store double 0.000000e+00, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl17ae_smart_ptr_initEPNS_12ae_smart_ptrEPPvPNS_8ae_stateEb(ptr noundef nonnull %14, ptr noundef nonnull %13, ptr noundef %7, i1 noundef zeroext true)
  %15 = icmp sgt i64 %2, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.189, ptr noundef %7)
  %16 = load i64, ptr %3, align 8, !tbaa !9
  %17 = icmp sge i64 %16, %4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.190, ptr noundef %7)
  %18 = icmp slt i64 %4, 0
  br i1 %18, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %8
  %.not.not72.not = icmp eq i64 %4, 0
  br i1 %.not.not72.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %19 = getelementptr inbounds i8, ptr %3, i64 56
  br label %20

20:                                               ; preds = %.lr.ph, %20
  %.06473 = phi i64 [ 0, %.lr.ph ], [ %29, %20 ]
  %21 = load ptr, ptr %19, align 8, !tbaa !15
  %22 = getelementptr inbounds i64, ptr %21, i64 %.06473
  %23 = load i64, ptr %22, align 8, !tbaa !16
  %24 = icmp sgt i64 %23, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.191, ptr noundef %7)
  %25 = load ptr, ptr %19, align 8, !tbaa !15
  %26 = getelementptr inbounds i64, ptr %25, i64 %.06473
  %27 = load i64, ptr %26, align 8, !tbaa !16
  %28 = icmp slt i64 %27, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %28, ptr noundef nonnull @.str.192, ptr noundef %7)
  %29 = add nuw nsw i64 %.06473, 1
  %exitcond.not = icmp eq i64 %29, %4
  br i1 %exitcond.not, label %.loopexit, label %20, !llvm.loop !17

.loopexit:                                        ; preds = %20, %.preheader, %8
  %.062 = phi i64 [ %2, %8 ], [ 0, %.preheader ], [ %4, %20 ]
  %.0 = phi i64 [ 0, %8 ], [ 1, %.preheader ], [ 1, %20 ]
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %7)
  %30 = load i64, ptr %12, align 8, !tbaa !16
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %6, i64 noundef %30, ptr noundef %7)
  %31 = getelementptr inbounds i8, ptr %0, i64 1304
  call void @_ZN11alglib_impl29ae_shared_pool_first_recycledEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef nonnull %31, ptr noundef nonnull %14, ptr noundef %7)
  %32 = load ptr, ptr %13, align 8, !tbaa !19
  %.not77 = icmp eq ptr %32, null
  br i1 %.not77, label %._crit_edge80, label %.lr.ph79

.lr.ph79:                                         ; preds = %.loopexit, %._crit_edge
  %33 = phi ptr [ %53, %._crit_edge ], [ %32, %.loopexit ]
  store double 0.000000e+00, ptr %33, align 8, !tbaa !20
  %34 = load i64, ptr %12, align 8, !tbaa !16
  %.not71.not74 = icmp sgt i64 %34, 0
  br i1 %.not71.not74, label %.lr.ph76, label %._crit_edge

.lr.ph76:                                         ; preds = %.lr.ph79
  %35 = getelementptr inbounds i8, ptr %33, i64 64
  %xtraiter = and i64 %34, 3
  %36 = icmp ult i64 %34, 4
  br i1 %36, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph76.new

.lr.ph76.new:                                     ; preds = %.lr.ph76
  %unroll_iter = and i64 %34, 9223372036854775804
  br label %37

37:                                               ; preds = %37, %.lr.ph76.new
  %.175 = phi i64 [ 0, %.lr.ph76.new ], [ %49, %37 ]
  %niter = phi i64 [ 0, %.lr.ph76.new ], [ %niter.next.3, %37 ]
  %38 = load ptr, ptr %35, align 8, !tbaa !15
  %39 = getelementptr inbounds double, ptr %38, i64 %.175
  store double 0.000000e+00, ptr %39, align 8, !tbaa !5
  %40 = or disjoint i64 %.175, 1
  %41 = load ptr, ptr %35, align 8, !tbaa !15
  %42 = getelementptr inbounds double, ptr %41, i64 %40
  store double 0.000000e+00, ptr %42, align 8, !tbaa !5
  %43 = or disjoint i64 %.175, 2
  %44 = load ptr, ptr %35, align 8, !tbaa !15
  %45 = getelementptr inbounds double, ptr %44, i64 %43
  store double 0.000000e+00, ptr %45, align 8, !tbaa !5
  %46 = or disjoint i64 %.175, 3
  %47 = load ptr, ptr %35, align 8, !tbaa !15
  %48 = getelementptr inbounds double, ptr %47, i64 %46
  store double 0.000000e+00, ptr %48, align 8, !tbaa !5
  %49 = add nuw nsw i64 %.175, 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 %37, !llvm.loop !22

._crit_edge.loopexit.unr-lcssa:                   ; preds = %37, %.lr.ph76
  %.175.unr = phi i64 [ 0, %.lr.ph76 ], [ %49, %37 ]
  %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
  %.175.epil = phi i64 [ %52, %.epil.preheader ], [ %.175.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %50 = load ptr, ptr %35, align 8, !tbaa !15
  %51 = getelementptr inbounds double, ptr %50, i64 %.175.epil
  store double 0.000000e+00, ptr %51, align 8, !tbaa !5
  %52 = add nuw nsw i64 %.175.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 !23

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %.lr.ph79
  call void @_ZN11alglib_impl28ae_shared_pool_next_recycledEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef nonnull %31, ptr noundef nonnull %14, ptr noundef %7)
  %53 = load ptr, ptr %13, align 8, !tbaa !19
  %.not = icmp eq ptr %53, null
  br i1 %.not, label %._crit_edge80, label %.lr.ph79, !llvm.loop !25

._crit_edge80:                                    ; preds = %._crit_edge, %.loopexit
  %54 = getelementptr inbounds i8, ptr %0, i64 1528
  %55 = getelementptr inbounds i8, ptr %0, i64 1160
  call void @_ZN11alglib_impl13mlpgradbatchxEPNS_20multilayerperceptronEPNS_9ae_matrixEPNS_12sparsematrixEllPNS_9ae_vectorElllPNS_14ae_shared_poolES9_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %54, i64 noundef %2, i64 noundef 0, ptr noundef nonnull %3, i64 noundef 0, i64 noundef %.062, i64 noundef %.0, ptr noundef nonnull %55, ptr noundef nonnull %31, ptr noundef %7)
  store double 0.000000e+00, ptr %5, align 8, !tbaa !5
  %56 = load i64, ptr %12, align 8, !tbaa !16
  %.not68.not81 = icmp sgt i64 %56, 0
  br i1 %.not68.not81, label %.lr.ph84, label %._crit_edge85

.lr.ph84:                                         ; preds = %._crit_edge80
  %57 = getelementptr inbounds i8, ptr %6, i64 56
  %xtraiter99 = and i64 %56, 3
  %58 = icmp ult i64 %56, 4
  br i1 %58, label %._crit_edge85.loopexit.unr-lcssa, label %.lr.ph84.new

.lr.ph84.new:                                     ; preds = %.lr.ph84
  %unroll_iter102 = and i64 %56, 9223372036854775804
  br label %59

59:                                               ; preds = %59, %.lr.ph84.new
  %.282 = phi i64 [ 0, %.lr.ph84.new ], [ %71, %59 ]
  %niter103 = phi i64 [ 0, %.lr.ph84.new ], [ %niter103.next.3, %59 ]
  %60 = load ptr, ptr %57, align 8, !tbaa !15
  %61 = getelementptr inbounds double, ptr %60, i64 %.282
  store double 0.000000e+00, ptr %61, align 8, !tbaa !5
  %62 = or disjoint i64 %.282, 1
  %63 = load ptr, ptr %57, align 8, !tbaa !15
  %64 = getelementptr inbounds double, ptr %63, i64 %62
  store double 0.000000e+00, ptr %64, align 8, !tbaa !5
  %65 = or disjoint i64 %.282, 2
  %66 = load ptr, ptr %57, align 8, !tbaa !15
  %67 = getelementptr inbounds double, ptr %66, i64 %65
  store double 0.000000e+00, ptr %67, align 8, !tbaa !5
  %68 = or disjoint i64 %.282, 3
  %69 = load ptr, ptr %57, align 8, !tbaa !15
  %70 = getelementptr inbounds double, ptr %69, i64 %68
  store double 0.000000e+00, ptr %70, align 8, !tbaa !5
  %71 = add nuw nsw i64 %.282, 4
  %niter103.next.3 = add i64 %niter103, 4
  %niter103.ncmp.3 = icmp eq i64 %niter103.next.3, %unroll_iter102
  br i1 %niter103.ncmp.3, label %._crit_edge85.loopexit.unr-lcssa, label %59, !llvm.loop !26

._crit_edge85.loopexit.unr-lcssa:                 ; preds = %59, %.lr.ph84
  %.282.unr = phi i64 [ 0, %.lr.ph84 ], [ %71, %59 ]
  %lcmp.mod101.not = icmp eq i64 %xtraiter99, 0
  br i1 %lcmp.mod101.not, label %._crit_edge85, label %.epil.preheader98

.epil.preheader98:                                ; preds = %._crit_edge85.loopexit.unr-lcssa, %.epil.preheader98
  %.282.epil = phi i64 [ %74, %.epil.preheader98 ], [ %.282.unr, %._crit_edge85.loopexit.unr-lcssa ]
  %epil.iter100 = phi i64 [ %epil.iter100.next, %.epil.preheader98 ], [ 0, %._crit_edge85.loopexit.unr-lcssa ]
  %72 = load ptr, ptr %57, align 8, !tbaa !15
  %73 = getelementptr inbounds double, ptr %72, i64 %.282.epil
  store double 0.000000e+00, ptr %73, align 8, !tbaa !5
  %74 = add nuw nsw i64 %.282.epil, 1
  %epil.iter100.next = add i64 %epil.iter100, 1
  %epil.iter100.cmp.not = icmp eq i64 %epil.iter100.next, %xtraiter99
  br i1 %epil.iter100.cmp.not, label %._crit_edge85, label %.epil.preheader98, !llvm.loop !27

._crit_edge85:                                    ; preds = %._crit_edge85.loopexit.unr-lcssa, %.epil.preheader98, %._crit_edge80
  call void @_ZN11alglib_impl29ae_shared_pool_first_recycledEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef nonnull %31, ptr noundef nonnull %14, ptr noundef %7)
  %75 = load ptr, ptr %13, align 8, !tbaa !19
  %.not6991 = icmp eq ptr %75, null
  br i1 %.not6991, label %._crit_edge94, label %.lr.ph93

.lr.ph93:                                         ; preds = %._crit_edge85
  %76 = getelementptr inbounds i8, ptr %6, i64 56
  br label %77

77:                                               ; preds = %.lr.ph93, %._crit_edge90
  %78 = phi ptr [ %75, %.lr.ph93 ], [ %109, %._crit_edge90 ]
  %79 = load double, ptr %5, align 8, !tbaa !5
  %80 = load double, ptr %78, align 8, !tbaa !20
  %81 = fadd double %79, %80
  store double %81, ptr %5, align 8, !tbaa !5
  %82 = load i64, ptr %12, align 8, !tbaa !16
  %.not70.not86 = icmp sgt i64 %82, 0
  br i1 %.not70.not86, label %.lr.ph89, label %._crit_edge90

.lr.ph89:                                         ; preds = %77
  %83 = getelementptr inbounds i8, ptr %78, i64 64
  %xtraiter105 = and i64 %82, 1
  %84 = icmp eq i64 %82, 1
  br i1 %84, label %._crit_edge90.loopexit.unr-lcssa, label %.lr.ph89.new

.lr.ph89.new:                                     ; preds = %.lr.ph89
  %unroll_iter108 = and i64 %82, 9223372036854775806
  br label %85

85:                                               ; preds = %85, %.lr.ph89.new
  %.387 = phi i64 [ 0, %.lr.ph89.new ], [ %101, %85 ]
  %niter109 = phi i64 [ 0, %.lr.ph89.new ], [ %niter109.next.1, %85 ]
  %86 = load ptr, ptr %76, align 8, !tbaa !15
  %87 = getelementptr inbounds double, ptr %86, i64 %.387
  %88 = load double, ptr %87, align 8, !tbaa !5
  %89 = load ptr, ptr %83, align 8, !tbaa !15
  %90 = getelementptr inbounds double, ptr %89, i64 %.387
  %91 = load double, ptr %90, align 8, !tbaa !5
  %92 = fadd double %88, %91
  store double %92, ptr %87, align 8, !tbaa !5
  %93 = or disjoint i64 %.387, 1
  %94 = load ptr, ptr %76, align 8, !tbaa !15
  %95 = getelementptr inbounds double, ptr %94, i64 %93
  %96 = load double, ptr %95, align 8, !tbaa !5
  %97 = load ptr, ptr %83, align 8, !tbaa !15
  %98 = getelementptr inbounds double, ptr %97, i64 %93
  %99 = load double, ptr %98, align 8, !tbaa !5
  %100 = fadd double %96, %99
  store double %100, ptr %95, align 8, !tbaa !5
  %101 = add nuw nsw i64 %.387, 2
  %niter109.next.1 = add i64 %niter109, 2
  %niter109.ncmp.1 = icmp eq i64 %niter109.next.1, %unroll_iter108
  br i1 %niter109.ncmp.1, label %._crit_edge90.loopexit.unr-lcssa, label %85, !llvm.loop !28

._crit_edge90.loopexit.unr-lcssa:                 ; preds = %85, %.lr.ph89
  %.387.unr = phi i64 [ 0, %.lr.ph89 ], [ %101, %85 ]
  %lcmp.mod107.not = icmp eq i64 %xtraiter105, 0
  br i1 %lcmp.mod107.not, label %._crit_edge90, label %._crit_edge90.loopexit.epilog-lcssa

._crit_edge90.loopexit.epilog-lcssa:              ; preds = %._crit_edge90.loopexit.unr-lcssa
  %102 = load ptr, ptr %76, align 8, !tbaa !15
  %103 = getelementptr inbounds double, ptr %102, i64 %.387.unr
  %104 = load double, ptr %103, align 8, !tbaa !5
  %105 = load ptr, ptr %83, align 8, !tbaa !15
  %106 = getelementptr inbounds double, ptr %105, i64 %.387.unr
  %107 = load double, ptr %106, align 8, !tbaa !5
  %108 = fadd double %104, %107
  store double %108, ptr %103, align 8, !tbaa !5
  br label %._crit_edge90

._crit_edge90:                                    ; preds = %._crit_edge90.loopexit.epilog-lcssa, %._crit_edge90.loopexit.unr-lcssa, %77
  call void @_ZN11alglib_impl28ae_shared_pool_next_recycledEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef nonnull %31, ptr noundef nonnull %14, ptr noundef %7)
  %109 = load ptr, ptr %13, align 8, !tbaa !19
  %.not69 = icmp eq ptr %109, null
  br i1 %.not69, label %._crit_edge94, label %77, !llvm.loop !29

._crit_edge94:                                    ; preds = %._crit_edge90, %._crit_edge85
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %7)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  ret void
}

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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 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 #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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !12, i64 16, !13, i64 24, !7, i64 56}
!11 = !{!"long", !7, i64 0}
!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 = !{!7, !7, i64 0}
!16 = !{!11, !11, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!14, !14, i64 0}
!20 = !{!21, !6, i64 0}
!21 = !{!"_ZTSN11alglib_impl8smlpgradE", !6, i64 0, !10, i64 8}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !18}
!27 = distinct !{!27, !24}
!28 = distinct !{!28, !18}
!29 = distinct !{!29, !18}


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