; 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.193 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.195 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [71 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_impl24mlpgradbatchsparsesubsetEPNS_20multilayerperceptronEPNS_12sparsematrixElPNS_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.193, 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.194, ptr noundef %39)
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = load ptr, ptr %16, align 8, !tbaa !5
  %42 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %40, ptr noundef %41)
  %43 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef @.str.195, ptr noundef %43)
  %44 = load i64, ptr %11, align 8, !tbaa !9
  store i64 %44, ptr %22, align 8, !tbaa !9
  %45 = load i64, ptr %13, align 8, !tbaa !9
  %46 = icmp slt i64 %45, 0
  br i1 %46, label %47, label %49

47:                                               ; preds = %8
  store i64 0, ptr %23, align 8, !tbaa !9
  %48 = load i64, ptr %11, align 8, !tbaa !9
  store i64 %48, ptr %24, align 8, !tbaa !9
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %79

49:                                               ; preds = %8
  store i64 0, ptr %23, align 8, !tbaa !9
  %50 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %50, 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 %51

51:                                               ; preds = %75, %49
  %52 = load i64, ptr %18, align 8, !tbaa !9
  %53 = load i64, ptr %13, align 8, !tbaa !9
  %54 = sub nsw i64 %53, 1
  %55 = icmp sle i64 %52, %54
  br i1 %55, label %56, label %78

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

75:                                               ; preds = %56
  %76 = load i64, ptr %18, align 8, !tbaa !9
  %77 = add nsw i64 %76, 1
  store i64 %77, ptr %18, align 8, !tbaa !9
  br label %51, !llvm.loop !18

78:                                               ; preds = %51
  br label %79

79:                                               ; preds = %78, %47
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %80, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %81)
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = load i64, ptr %21, align 8, !tbaa !9
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %82, i64 noundef %83, ptr noundef %84)
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %85, i32 0, i32 21
  %87 = 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 %86, ptr noundef %27, ptr noundef %87)
  br label %88

88:                                               ; preds = %109, %79
  %89 = load ptr, ptr %26, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %113

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

94:                                               ; preds = %106, %91
  %95 = load i64, ptr %18, align 8, !tbaa !9
  %96 = load i64, ptr %21, align 8, !tbaa !9
  %97 = sub nsw i64 %96, 1
  %98 = icmp sle i64 %95, %97
  br i1 %98, label %99, label %109

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

106:                                              ; preds = %99
  %107 = load i64, ptr %18, align 8, !tbaa !9
  %108 = add nsw i64 %107, 1
  store i64 %108, ptr %18, align 8, !tbaa !9
  br label %94, !llvm.loop !22

109:                                              ; preds = %94
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %110, i32 0, i32 21
  %112 = 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 %111, ptr noundef %27, ptr noundef %112)
  br label %88, !llvm.loop !23

113:                                              ; preds = %88
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %115, i32 0, i32 22
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = load i64, ptr %11, align 8, !tbaa !9
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = load i64, ptr %23, align 8, !tbaa !9
  %121 = load i64, ptr %24, align 8, !tbaa !9
  %122 = load i64, ptr %25, align 8, !tbaa !9
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %123, i32 0, i32 20
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %125, i32 0, i32 21
  %127 = 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 %114, ptr noundef %116, ptr noundef %117, i64 noundef %118, i64 noundef 1, ptr noundef %119, i64 noundef %120, i64 noundef %121, i64 noundef %122, ptr noundef %124, ptr noundef %126, ptr noundef %127)
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  store double 0.000000e+00, ptr %128, align 8, !tbaa !11
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %129

129:                                              ; preds = %140, %113
  %130 = load i64, ptr %18, align 8, !tbaa !9
  %131 = load i64, ptr %21, align 8, !tbaa !9
  %132 = sub nsw i64 %131, 1
  %133 = icmp sle i64 %130, %132
  br i1 %133, label %134, label %143

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

140:                                              ; preds = %134
  %141 = load i64, ptr %18, align 8, !tbaa !9
  %142 = add nsw i64 %141, 1
  store i64 %142, ptr %18, align 8, !tbaa !9
  br label %129, !llvm.loop !24

143:                                              ; preds = %129
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %144, i32 0, i32 21
  %146 = 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 %145, ptr noundef %27, ptr noundef %146)
  br label %147

147:                                              ; preds = %186, %143
  %148 = load ptr, ptr %26, align 8, !tbaa !5
  %149 = icmp ne ptr %148, null
  br i1 %149, label %150, label %190

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

158:                                              ; preds = %183, %150
  %159 = load i64, ptr %18, align 8, !tbaa !9
  %160 = load i64, ptr %21, align 8, !tbaa !9
  %161 = sub nsw i64 %160, 1
  %162 = icmp sle i64 %159, %161
  br i1 %162, label %163, label %186

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

183:                                              ; preds = %163
  %184 = load i64, ptr %18, align 8, !tbaa !9
  %185 = add nsw i64 %184, 1
  store i64 %185, ptr %18, align 8, !tbaa !9
  br label %158, !llvm.loop !25

186:                                              ; preds = %158
  %187 = load ptr, ptr %9, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %187, i32 0, i32 21
  %189 = 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 %188, ptr noundef %27, ptr noundef %189)
  br label %147, !llvm.loop !26

190:                                              ; preds = %147
  %191 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %191)
  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 noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, 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.193 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.195 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [71 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_impl24mlpgradbatchsparsesubsetEPNS_20multilayerperceptronEPNS_12sparsematrixElPNS_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.193, 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.194, ptr noundef %7)
  %18 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %1, ptr noundef %7)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.195, ptr noundef %7)
  %19 = icmp slt i64 %4, 0
  br i1 %19, label %.loopexit, label %.preheader

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

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

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

.loopexit:                                        ; preds = %21, %.preheader, %8
  %.065 = phi i64 [ %2, %8 ], [ 0, %.preheader ], [ %4, %21 ]
  %.0 = phi i64 [ 0, %8 ], [ 1, %.preheader ], [ 1, %21 ]
  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)
  %31 = load i64, ptr %12, align 8, !tbaa !16
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %6, i64 noundef %31, ptr noundef %7)
  %32 = 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 %32, ptr noundef nonnull %14, ptr noundef %7)
  %33 = load ptr, ptr %13, align 8, !tbaa !19
  %.not80 = icmp eq ptr %33, null
  br i1 %.not80, label %._crit_edge83, label %.lr.ph82

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

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

.lr.ph79.new:                                     ; preds = %.lr.ph79
  %unroll_iter = and i64 %35, 9223372036854775804
  br label %38

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

._crit_edge.loopexit.unr-lcssa:                   ; preds = %38, %.lr.ph79
  %.178.unr = phi i64 [ 0, %.lr.ph79 ], [ %50, %38 ]
  %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
  %.178.epil = phi i64 [ %53, %.epil.preheader ], [ %.178.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %51 = load ptr, ptr %36, align 8, !tbaa !15
  %52 = getelementptr inbounds double, ptr %51, i64 %.178.epil
  store double 0.000000e+00, ptr %52, align 8, !tbaa !5
  %53 = add nuw nsw i64 %.178.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.ph82
  call void @_ZN11alglib_impl28ae_shared_pool_next_recycledEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %14, ptr noundef %7)
  %54 = load ptr, ptr %13, align 8, !tbaa !19
  %.not = icmp eq ptr %54, null
  br i1 %.not, label %._crit_edge83, label %.lr.ph82, !llvm.loop !25

._crit_edge83:                                    ; preds = %._crit_edge, %.loopexit
  %55 = getelementptr inbounds i8, ptr %0, i64 1448
  %56 = 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 nonnull %55, ptr noundef %1, i64 noundef %2, i64 noundef 1, ptr noundef nonnull %3, i64 noundef 0, i64 noundef %.065, i64 noundef %.0, ptr noundef nonnull %56, ptr noundef nonnull %32, ptr noundef %7)
  store double 0.000000e+00, ptr %5, align 8, !tbaa !5
  %57 = load i64, ptr %12, align 8, !tbaa !16
  %.not71.not84 = icmp sgt i64 %57, 0
  br i1 %.not71.not84, label %.lr.ph87, label %._crit_edge88

.lr.ph87:                                         ; preds = %._crit_edge83
  %58 = getelementptr inbounds i8, ptr %6, i64 56
  %xtraiter102 = and i64 %57, 3
  %59 = icmp ult i64 %57, 4
  br i1 %59, label %._crit_edge88.loopexit.unr-lcssa, label %.lr.ph87.new

.lr.ph87.new:                                     ; preds = %.lr.ph87
  %unroll_iter105 = and i64 %57, 9223372036854775804
  br label %60

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

._crit_edge88.loopexit.unr-lcssa:                 ; preds = %60, %.lr.ph87
  %.285.unr = phi i64 [ 0, %.lr.ph87 ], [ %72, %60 ]
  %lcmp.mod104.not = icmp eq i64 %xtraiter102, 0
  br i1 %lcmp.mod104.not, label %._crit_edge88, label %.epil.preheader101

.epil.preheader101:                               ; preds = %._crit_edge88.loopexit.unr-lcssa, %.epil.preheader101
  %.285.epil = phi i64 [ %75, %.epil.preheader101 ], [ %.285.unr, %._crit_edge88.loopexit.unr-lcssa ]
  %epil.iter103 = phi i64 [ %epil.iter103.next, %.epil.preheader101 ], [ 0, %._crit_edge88.loopexit.unr-lcssa ]
  %73 = load ptr, ptr %58, align 8, !tbaa !15
  %74 = getelementptr inbounds double, ptr %73, i64 %.285.epil
  store double 0.000000e+00, ptr %74, align 8, !tbaa !5
  %75 = add nuw nsw i64 %.285.epil, 1
  %epil.iter103.next = add i64 %epil.iter103, 1
  %epil.iter103.cmp.not = icmp eq i64 %epil.iter103.next, %xtraiter102
  br i1 %epil.iter103.cmp.not, label %._crit_edge88, label %.epil.preheader101, !llvm.loop !27

._crit_edge88:                                    ; preds = %._crit_edge88.loopexit.unr-lcssa, %.epil.preheader101, %._crit_edge83
  call void @_ZN11alglib_impl29ae_shared_pool_first_recycledEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %14, ptr noundef %7)
  %76 = load ptr, ptr %13, align 8, !tbaa !19
  %.not7294 = icmp eq ptr %76, null
  br i1 %.not7294, label %._crit_edge97, label %.lr.ph96

.lr.ph96:                                         ; preds = %._crit_edge88
  %77 = getelementptr inbounds i8, ptr %6, i64 56
  br label %78

78:                                               ; preds = %.lr.ph96, %._crit_edge93
  %79 = phi ptr [ %76, %.lr.ph96 ], [ %110, %._crit_edge93 ]
  %80 = load double, ptr %5, align 8, !tbaa !5
  %81 = load double, ptr %79, align 8, !tbaa !20
  %82 = fadd double %80, %81
  store double %82, ptr %5, align 8, !tbaa !5
  %83 = load i64, ptr %12, align 8, !tbaa !16
  %.not73.not89 = icmp sgt i64 %83, 0
  br i1 %.not73.not89, label %.lr.ph92, label %._crit_edge93

.lr.ph92:                                         ; preds = %78
  %84 = getelementptr inbounds i8, ptr %79, i64 64
  %xtraiter108 = and i64 %83, 1
  %85 = icmp eq i64 %83, 1
  br i1 %85, label %._crit_edge93.loopexit.unr-lcssa, label %.lr.ph92.new

.lr.ph92.new:                                     ; preds = %.lr.ph92
  %unroll_iter111 = and i64 %83, 9223372036854775806
  br label %86

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

._crit_edge93.loopexit.unr-lcssa:                 ; preds = %86, %.lr.ph92
  %.390.unr = phi i64 [ 0, %.lr.ph92 ], [ %102, %86 ]
  %lcmp.mod110.not = icmp eq i64 %xtraiter108, 0
  br i1 %lcmp.mod110.not, label %._crit_edge93, label %._crit_edge93.loopexit.epilog-lcssa

._crit_edge93.loopexit.epilog-lcssa:              ; preds = %._crit_edge93.loopexit.unr-lcssa
  %103 = load ptr, ptr %77, align 8, !tbaa !15
  %104 = getelementptr inbounds double, ptr %103, i64 %.390.unr
  %105 = load double, ptr %104, align 8, !tbaa !5
  %106 = load ptr, ptr %84, align 8, !tbaa !15
  %107 = getelementptr inbounds double, ptr %106, i64 %.390.unr
  %108 = load double, ptr %107, align 8, !tbaa !5
  %109 = fadd double %105, %108
  store double %109, ptr %104, align 8, !tbaa !5
  br label %._crit_edge93

._crit_edge93:                                    ; preds = %._crit_edge93.loopexit.epilog-lcssa, %._crit_edge93.loopexit.unr-lcssa, %78
  call void @_ZN11alglib_impl28ae_shared_pool_next_recycledEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %14, ptr noundef %7)
  %110 = load ptr, ptr %13, align 8, !tbaa !19
  %.not72 = icmp eq ptr %110, null
  br i1 %.not72, label %._crit_edge97, label %78, !llvm.loop !29

._crit_edge97:                                    ; preds = %._crit_edge93, %._crit_edge88
  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 noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, 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