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

@_ZN11alglib_implL22mlpbase_microbatchsizeE = external hidden global i64, align 8
@.str.198 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.199 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.200 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [30 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

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_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #2

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

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) #2

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13mlpgradbatchxEPNS_20multilayerperceptronEPNS_9ae_matrixEPNS_12sparsematrixEllPNS_9ae_vectorElllPNS_14ae_shared_poolES9_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, i64 noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) #4 {
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"struct.alglib_impl::ae_frame", align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca double, align 8
  %35 = alloca ptr, align 8
  %36 = alloca %"struct.alglib_impl::ae_smart_ptr", align 8
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  %39 = alloca ptr, align 8
  %40 = alloca %"struct.alglib_impl::ae_smart_ptr", align 8
  %41 = alloca ptr, align 8
  %42 = alloca %"struct.alglib_impl::ae_smart_ptr", align 8
  %43 = alloca i32, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store i64 %3, ptr %16, align 8, !tbaa !9
  store i64 %4, ptr %17, align 8, !tbaa !9
  store ptr %5, ptr %18, align 8, !tbaa !5
  store i64 %6, ptr %19, align 8, !tbaa !9
  store i64 %7, ptr %20, align 8, !tbaa !9
  store i64 %8, ptr %21, align 8, !tbaa !9
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  store ptr %11, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %40) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %42) #5
  %44 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %44, ptr noundef %25)
  call void @llvm.memset.p0.i64(ptr align 8 %36, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %40, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %42, i8 0, i64 64, i1 false)
  %45 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl17ae_smart_ptr_initEPNS_12ae_smart_ptrEPPvPNS_8ae_stateEb(ptr noundef %36, ptr noundef %35, ptr noundef %45, i1 noundef zeroext true)
  %46 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl17ae_smart_ptr_initEPNS_12ae_smart_ptrEPPvPNS_8ae_stateEb(ptr noundef %40, ptr noundef %39, ptr noundef %46, i1 noundef zeroext true)
  %47 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl17ae_smart_ptr_initEPNS_12ae_smart_ptrEPPvPNS_8ae_stateEb(ptr noundef %42, ptr noundef %41, ptr noundef %47, i1 noundef zeroext true)
  %48 = load i64, ptr %16, align 8, !tbaa !9
  %49 = icmp sge i64 %48, 0
  %50 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.198, ptr noundef %50)
  %51 = load i64, ptr %17, align 8, !tbaa !9
  %52 = icmp eq i64 %51, 0
  br i1 %52, label %56, label %53

53:                                               ; preds = %12
  %54 = load i64, ptr %17, align 8, !tbaa !9
  %55 = icmp eq i64 %54, 1
  br label %56

56:                                               ; preds = %53, %12
  %57 = phi i1 [ true, %12 ], [ %55, %53 ]
  %58 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %57, ptr noundef @.str.199, ptr noundef %58)
  %59 = load i64, ptr %21, align 8, !tbaa !9
  %60 = icmp eq i64 %59, 0
  br i1 %60, label %64, label %61

61:                                               ; preds = %56
  %62 = load i64, ptr %21, align 8, !tbaa !9
  %63 = icmp eq i64 %62, 1
  br label %64

64:                                               ; preds = %61, %56
  %65 = phi i1 [ true, %56 ], [ %63, %61 ]
  %66 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %65, ptr noundef @.str.200, ptr noundef %66)
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %67, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %68)
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = load ptr, ptr %24, align 8, !tbaa !5
  %71 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %69, ptr noundef %70)
  br i1 %71, label %72, label %75

72:                                               ; preds = %64
  %73 = load i64, ptr %26, align 8, !tbaa !9
  %74 = add nsw i64 %73, 1
  store i64 %74, ptr %29, align 8, !tbaa !9
  br label %79

75:                                               ; preds = %64
  %76 = load i64, ptr %26, align 8, !tbaa !9
  %77 = load i64, ptr %27, align 8, !tbaa !9
  %78 = add nsw i64 %76, %77
  store i64 %78, ptr %29, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %75, %72
  %80 = load i64, ptr %20, align 8, !tbaa !9
  %81 = load i64, ptr %19, align 8, !tbaa !9
  %82 = sub nsw i64 %80, %81
  %83 = sitofp i64 %82 to double
  store double %83, ptr %34, align 8, !tbaa !11
  %84 = load double, ptr %34, align 8, !tbaa !11
  %85 = load i64, ptr %28, align 8, !tbaa !9
  %86 = sitofp i64 %85 to double
  %87 = fmul double %84, %86
  %88 = fmul double %87, 2.000000e+00
  store double %88, ptr %34, align 8, !tbaa !11
  %89 = load double, ptr %34, align 8, !tbaa !11
  %90 = load ptr, ptr %24, align 8, !tbaa !5
  %91 = call noundef double @_ZN11alglib_impl18smpactivationlevelEPNS_8ae_stateE(ptr noundef %90)
  %92 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %89, double noundef %91)
  br i1 %92, label %93, label %117

93:                                               ; preds = %79
  %94 = load i64, ptr %20, align 8, !tbaa !9
  %95 = load i64, ptr %19, align 8, !tbaa !9
  %96 = sub nsw i64 %94, %95
  %97 = load i64, ptr @_ZN11alglib_implL22mlpbase_microbatchsizeE, align 8, !tbaa !9
  %98 = mul nsw i64 2, %97
  %99 = icmp sge i64 %96, %98
  br i1 %99, label %100, label %117

100:                                              ; preds = %93
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = load ptr, ptr %15, align 8, !tbaa !5
  %104 = load i64, ptr %16, align 8, !tbaa !9
  %105 = load i64, ptr %17, align 8, !tbaa !9
  %106 = load ptr, ptr %18, align 8, !tbaa !5
  %107 = load i64, ptr %19, align 8, !tbaa !9
  %108 = load i64, ptr %20, align 8, !tbaa !9
  %109 = load i64, ptr %21, align 8, !tbaa !9
  %110 = load ptr, ptr %22, align 8, !tbaa !5
  %111 = load ptr, ptr %23, align 8, !tbaa !5
  %112 = load ptr, ptr %24, align 8, !tbaa !5
  %113 = call noundef zeroext i1 @_ZN11alglib_impl23_trypexec_mlpgradbatchxEPNS_20multilayerperceptronEPNS_9ae_matrixEPNS_12sparsematrixEllPNS_9ae_vectorElllPNS_14ae_shared_poolES9_PNS_8ae_stateE(ptr noundef %101, ptr noundef %102, ptr noundef %103, i64 noundef %104, i64 noundef %105, ptr noundef %106, i64 noundef %107, i64 noundef %108, i64 noundef %109, ptr noundef %110, ptr noundef %111, ptr noundef %112)
  br i1 %113, label %114, label %116

114:                                              ; preds = %100
  %115 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %115)
  store i32 1, ptr %43, align 4
  br label %300

116:                                              ; preds = %100
  br label %117

117:                                              ; preds = %116, %93, %79
  %118 = load i64, ptr %20, align 8, !tbaa !9
  %119 = load i64, ptr %19, align 8, !tbaa !9
  %120 = sub nsw i64 %118, %119
  %121 = load i64, ptr @_ZN11alglib_implL22mlpbase_microbatchsizeE, align 8, !tbaa !9
  %122 = mul nsw i64 2, %121
  %123 = icmp sge i64 %120, %122
  br i1 %123, label %124, label %164

124:                                              ; preds = %117
  %125 = load double, ptr %34, align 8, !tbaa !11
  %126 = load ptr, ptr %24, align 8, !tbaa !5
  %127 = call noundef double @_ZN11alglib_impl10spawnlevelEPNS_8ae_stateE(ptr noundef %126)
  %128 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %125, double noundef %127)
  br i1 %128, label %129, label %164

129:                                              ; preds = %124
  %130 = load i64, ptr %20, align 8, !tbaa !9
  %131 = load i64, ptr %19, align 8, !tbaa !9
  %132 = sub nsw i64 %130, %131
  %133 = load i64, ptr @_ZN11alglib_implL22mlpbase_microbatchsizeE, align 8, !tbaa !9
  %134 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl11splitlengthEllPlS0_PNS_8ae_stateE(i64 noundef %132, i64 noundef %133, ptr noundef %37, ptr noundef %38, ptr noundef %134)
  %135 = load ptr, ptr %13, align 8, !tbaa !5
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = load ptr, ptr %15, align 8, !tbaa !5
  %138 = load i64, ptr %16, align 8, !tbaa !9
  %139 = load i64, ptr %17, align 8, !tbaa !9
  %140 = load ptr, ptr %18, align 8, !tbaa !5
  %141 = load i64, ptr %19, align 8, !tbaa !9
  %142 = load i64, ptr %19, align 8, !tbaa !9
  %143 = load i64, ptr %37, align 8, !tbaa !9
  %144 = add nsw i64 %142, %143
  %145 = load i64, ptr %21, align 8, !tbaa !9
  %146 = load ptr, ptr %22, align 8, !tbaa !5
  %147 = load ptr, ptr %23, align 8, !tbaa !5
  %148 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlpgradbatchxEPNS_20multilayerperceptronEPNS_9ae_matrixEPNS_12sparsematrixEllPNS_9ae_vectorElllPNS_14ae_shared_poolES9_PNS_8ae_stateE(ptr noundef %135, ptr noundef %136, ptr noundef %137, i64 noundef %138, i64 noundef %139, ptr noundef %140, i64 noundef %141, i64 noundef %144, i64 noundef %145, ptr noundef %146, ptr noundef %147, ptr noundef %148)
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = load ptr, ptr %14, align 8, !tbaa !5
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = load i64, ptr %16, align 8, !tbaa !9
  %153 = load i64, ptr %17, align 8, !tbaa !9
  %154 = load ptr, ptr %18, align 8, !tbaa !5
  %155 = load i64, ptr %19, align 8, !tbaa !9
  %156 = load i64, ptr %37, align 8, !tbaa !9
  %157 = add nsw i64 %155, %156
  %158 = load i64, ptr %20, align 8, !tbaa !9
  %159 = load i64, ptr %21, align 8, !tbaa !9
  %160 = load ptr, ptr %22, align 8, !tbaa !5
  %161 = load ptr, ptr %23, align 8, !tbaa !5
  %162 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl13mlpgradbatchxEPNS_20multilayerperceptronEPNS_9ae_matrixEPNS_12sparsematrixEllPNS_9ae_vectorElllPNS_14ae_shared_poolES9_PNS_8ae_stateE(ptr noundef %149, ptr noundef %150, ptr noundef %151, i64 noundef %152, i64 noundef %153, ptr noundef %154, i64 noundef %157, i64 noundef %158, i64 noundef %159, ptr noundef %160, ptr noundef %161, ptr noundef %162)
  %163 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %163)
  store i32 1, ptr %43, align 4
  br label %300

164:                                              ; preds = %124, %117
  %165 = load ptr, ptr %23, align 8, !tbaa !5
  %166 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ae_shared_pool_retrieveEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef %165, ptr noundef %42, ptr noundef %166)
  %167 = load ptr, ptr %22, align 8, !tbaa !5
  %168 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ae_shared_pool_retrieveEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef %167, ptr noundef %40, ptr noundef %168)
  %169 = load ptr, ptr %13, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::multilayerperceptron", ptr %169, i32 0, i32 6
  %171 = load i64, ptr %28, align 8, !tbaa !9
  %172 = load ptr, ptr %13, align 8, !tbaa !5
  %173 = load ptr, ptr %24, align 8, !tbaa !5
  %174 = call noundef i64 @_ZN11alglib_impl9mlpntotalEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %172, ptr noundef %173)
  %175 = load i64, ptr %26, align 8, !tbaa !9
  %176 = load i64, ptr %27, align 8, !tbaa !9
  %177 = load ptr, ptr %39, align 8, !tbaa !5
  %178 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl25hpcpreparechunkedgradientEPNS_9ae_vectorEllllPNS_10mlpbuffersEPNS_8ae_stateE(ptr noundef %170, i64 noundef %171, i64 noundef %174, i64 noundef %175, i64 noundef %176, ptr noundef %177, ptr noundef %178)
  %179 = load i64, ptr %19, align 8, !tbaa !9
  store i64 %179, ptr %31, align 8, !tbaa !9
  br label %180

180:                                              ; preds = %273, %164
  %181 = load i64, ptr %31, align 8, !tbaa !9
  %182 = load i64, ptr %20, align 8, !tbaa !9
  %183 = icmp slt i64 %181, %182
  br i1 %183, label %184, label %290

184:                                              ; preds = %180
  %185 = load i64, ptr %20, align 8, !tbaa !9
  %186 = load i64, ptr %31, align 8, !tbaa !9
  %187 = load ptr, ptr %39, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.alglib_impl::mlpbuffers", ptr %187, i32 0, i32 0
  %189 = load i64, ptr %188, align 8, !tbaa !13
  %190 = add nsw i64 %186, %189
  %191 = load ptr, ptr %24, align 8, !tbaa !5
  %192 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %185, i64 noundef %190, ptr noundef %191)
  %193 = load i64, ptr %31, align 8, !tbaa !9
  %194 = sub nsw i64 %192, %193
  store i64 %194, ptr %32, align 8, !tbaa !9
  store i64 0, ptr %33, align 8, !tbaa !9
  br label %195

195:                                              ; preds = %270, %184
  %196 = load i64, ptr %33, align 8, !tbaa !9
  %197 = load i64, ptr %32, align 8, !tbaa !9
  %198 = sub nsw i64 %197, 1
  %199 = icmp sle i64 %196, %198
  br i1 %199, label %200, label %273

200:                                              ; preds = %195
  store i64 -1, ptr %30, align 8, !tbaa !9
  %201 = load i64, ptr %21, align 8, !tbaa !9
  %202 = icmp eq i64 %201, 0
  br i1 %202, label %203, label %207

203:                                              ; preds = %200
  %204 = load i64, ptr %31, align 8, !tbaa !9
  %205 = load i64, ptr %33, align 8, !tbaa !9
  %206 = add nsw i64 %204, %205
  store i64 %206, ptr %30, align 8, !tbaa !9
  br label %207

207:                                              ; preds = %203, %200
  %208 = load i64, ptr %21, align 8, !tbaa !9
  %209 = icmp eq i64 %208, 1
  br i1 %209, label %210, label %219

210:                                              ; preds = %207
  %211 = load ptr, ptr %18, align 8, !tbaa !5
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %211, i32 0, i32 4
  %213 = load ptr, ptr %212, align 8, !tbaa !19
  %214 = load i64, ptr %31, align 8, !tbaa !9
  %215 = load i64, ptr %33, align 8, !tbaa !9
  %216 = add nsw i64 %214, %215
  %217 = getelementptr inbounds i64, ptr %213, i64 %216
  %218 = load i64, ptr %217, align 8, !tbaa !9
  store i64 %218, ptr %30, align 8, !tbaa !9
  br label %219

219:                                              ; preds = %210, %207
  %220 = load i64, ptr %30, align 8, !tbaa !9
  %221 = icmp sge i64 %220, 0
  %222 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %221, ptr noundef @.str.201, ptr noundef %222)
  %223 = load i64, ptr %17, align 8, !tbaa !9
  %224 = icmp eq i64 %223, 0
  br i1 %224, label %225, label %244

225:                                              ; preds = %219
  %226 = load ptr, ptr %39, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.alglib_impl::mlpbuffers", ptr %226, i32 0, i32 7
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %227, i32 0, i32 6
  %229 = load ptr, ptr %228, align 8, !tbaa !19
  %230 = load i64, ptr %33, align 8, !tbaa !9
  %231 = getelementptr inbounds ptr, ptr %229, i64 %230
  %232 = load ptr, ptr %231, align 8, !tbaa !5
  %233 = getelementptr inbounds double, ptr %232, i64 0
  %234 = load ptr, ptr %14, align 8, !tbaa !5
  %235 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %234, i32 0, i32 6
  %236 = load ptr, ptr %235, align 8, !tbaa !19
  %237 = load i64, ptr %30, align 8, !tbaa !9
  %238 = getelementptr inbounds ptr, ptr %236, i64 %237
  %239 = load ptr, ptr %238, align 8, !tbaa !5
  %240 = getelementptr inbounds double, ptr %239, i64 0
  %241 = load i64, ptr %29, align 8, !tbaa !9
  %242 = sub nsw i64 %241, 1
  %243 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %242)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %233, i64 noundef 1, ptr noundef %240, i64 noundef 1, i64 noundef %243)
  br label %244

244:                                              ; preds = %225, %219
  %245 = load i64, ptr %17, align 8, !tbaa !9
  %246 = icmp eq i64 %245, 1
  br i1 %246, label %247, label %269

247:                                              ; preds = %244
  %248 = load ptr, ptr %15, align 8, !tbaa !5
  %249 = load i64, ptr %30, align 8, !tbaa !9
  %250 = load ptr, ptr %39, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.alglib_impl::mlpbuffers", ptr %250, i32 0, i32 9
  %252 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %248, i64 noundef %249, ptr noundef %251, ptr noundef %252)
  %253 = load ptr, ptr %39, align 8, !tbaa !5
  %254 = getelementptr inbounds %"struct.alglib_impl::mlpbuffers", ptr %253, i32 0, i32 7
  %255 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %254, i32 0, i32 6
  %256 = load ptr, ptr %255, align 8, !tbaa !19
  %257 = load i64, ptr %33, align 8, !tbaa !9
  %258 = getelementptr inbounds ptr, ptr %256, i64 %257
  %259 = load ptr, ptr %258, align 8, !tbaa !5
  %260 = getelementptr inbounds double, ptr %259, i64 0
  %261 = load ptr, ptr %39, align 8, !tbaa !5
  %262 = getelementptr inbounds %"struct.alglib_impl::mlpbuffers", ptr %261, i32 0, i32 9
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %262, i32 0, i32 4
  %264 = load ptr, ptr %263, align 8, !tbaa !19
  %265 = getelementptr inbounds double, ptr %264, i64 0
  %266 = load i64, ptr %29, align 8, !tbaa !9
  %267 = sub nsw i64 %266, 1
  %268 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %267)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %260, i64 noundef 1, ptr noundef %265, i64 noundef 1, i64 noundef %268)
  br label %269

269:                                              ; preds = %247, %244
  br label %270

270:                                              ; preds = %269
  %271 = load i64, ptr %33, align 8, !tbaa !9
  %272 = add nsw i64 %271, 1
  store i64 %272, ptr %33, align 8, !tbaa !9
  br label %195, !llvm.loop !20

273:                                              ; preds = %195
  %274 = load ptr, ptr %13, align 8, !tbaa !5
  %275 = load ptr, ptr %39, align 8, !tbaa !5
  %276 = getelementptr inbounds %"struct.alglib_impl::mlpbuffers", ptr %275, i32 0, i32 7
  %277 = load i64, ptr %32, align 8, !tbaa !9
  %278 = load ptr, ptr %39, align 8, !tbaa !5
  %279 = getelementptr inbounds %"struct.alglib_impl::mlpbuffers", ptr %278, i32 0, i32 5
  %280 = load ptr, ptr %39, align 8, !tbaa !5
  %281 = getelementptr inbounds %"struct.alglib_impl::mlpbuffers", ptr %280, i32 0, i32 6
  %282 = load ptr, ptr %41, align 8, !tbaa !5
  %283 = getelementptr inbounds %"struct.alglib_impl::smlpgrad", ptr %282, i32 0, i32 0
  %284 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_implL26mlpbase_mlpchunkedgradientEPNS_20multilayerperceptronEPNS_9ae_matrixEllPNS_9ae_vectorES5_PdbPNS_8ae_stateE(ptr noundef %274, ptr noundef %276, i64 noundef 0, i64 noundef %277, ptr noundef %279, ptr noundef %281, ptr noundef %283, i1 noundef zeroext false, ptr noundef %284)
  %285 = load i64, ptr %31, align 8, !tbaa !9
  %286 = load ptr, ptr %39, align 8, !tbaa !5
  %287 = getelementptr inbounds %"struct.alglib_impl::mlpbuffers", ptr %286, i32 0, i32 0
  %288 = load i64, ptr %287, align 8, !tbaa !13
  %289 = add nsw i64 %285, %288
  store i64 %289, ptr %31, align 8, !tbaa !9
  br label %180, !llvm.loop !22

290:                                              ; preds = %180
  %291 = load ptr, ptr %39, align 8, !tbaa !5
  %292 = load ptr, ptr %41, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.alglib_impl::smlpgrad", ptr %292, i32 0, i32 1
  %294 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl26hpcfinalizechunkedgradientEPNS_10mlpbuffersEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %291, ptr noundef %293, ptr noundef %294)
  %295 = load ptr, ptr %22, align 8, !tbaa !5
  %296 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl22ae_shared_pool_recycleEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef %295, ptr noundef %40, ptr noundef %296)
  %297 = load ptr, ptr %23, align 8, !tbaa !5
  %298 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl22ae_shared_pool_recycleEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef %297, ptr noundef %42, ptr noundef %298)
  %299 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %299)
  store i32 0, ptr %43, align 4
  br label %300

300:                                              ; preds = %290, %129, %114
  call void @llvm.lifetime.end.p0(i64 64, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #5
  %301 = load i32, ptr %43, align 4
  switch i32 %301, label %303 [
    i32 0, label %302
    i32 1, label %302
  ]

302:                                              ; preds = %300, %300
  ret void

303:                                              ; preds = %300
  unreachable
}

declare noundef double @_ZN11alglib_impl18smpactivationlevelEPNS_8ae_stateE(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl23_trypexec_mlpgradbatchxEPNS_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) #3

declare noundef double @_ZN11alglib_impl10spawnlevelEPNS_8ae_stateE(ptr noundef) #2

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL26mlpbase_mlpchunkedgradientEPNS_20multilayerperceptronEPNS_9ae_matrixEllPNS_9ae_vectorES5_PdbPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef) #4

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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_impl10mlpbuffersE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !15, i64 40, !15, i64 104, !18, i64 168, !18, i64 248, !15, i64 328, !15, i64 392, !15, i64 456, !15, i64 520, !12, i64 584, !15, i64 592, !15, i64 656}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !16, i64 16, !17, i64 24, !7, i64 56}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !16, i64 32, !17, i64 40, !7, i64 72}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}


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

@_ZN11alglib_implL22mlpbase_microbatchsizeE = external hidden local_unnamed_addr global i64, align 8
@.str.198 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.199 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.200 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [30 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13mlpgradbatchxEPNS_20multilayerperceptronEPNS_9ae_matrixEPNS_12sparsematrixEllPNS_9ae_vectorElllPNS_14ae_shared_poolES9_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, i64 noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) local_unnamed_addr #4 {
  %13 = alloca %"struct.alglib_impl::ae_frame", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"struct.alglib_impl::ae_smart_ptr", align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"struct.alglib_impl::ae_smart_ptr", align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"struct.alglib_impl::ae_smart_ptr", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %24) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %11, ptr noundef nonnull %13)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %24, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl17ae_smart_ptr_initEPNS_12ae_smart_ptrEPPvPNS_8ae_stateEb(ptr noundef nonnull %18, ptr noundef nonnull %17, ptr noundef %11, i1 noundef zeroext true)
  call void @_ZN11alglib_impl17ae_smart_ptr_initEPNS_12ae_smart_ptrEPPvPNS_8ae_stateEb(ptr noundef nonnull %22, ptr noundef nonnull %21, ptr noundef %11, i1 noundef zeroext true)
  call void @_ZN11alglib_impl17ae_smart_ptr_initEPNS_12ae_smart_ptrEPPvPNS_8ae_stateEb(ptr noundef nonnull %24, ptr noundef nonnull %23, ptr noundef %11, i1 noundef zeroext true)
  %25 = icmp sgt i64 %3, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.198, ptr noundef %11)
  %26 = icmp ult i64 %4, 2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef nonnull @.str.199, ptr noundef %11)
  %27 = icmp eq i64 %8, 0
  %28 = icmp eq i64 %8, 1
  %29 = icmp ult i64 %8, 2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef nonnull @.str.200, ptr noundef %11)
  call void @_ZN11alglib_impl13mlppropertiesEPNS_20multilayerperceptronEPlS2_S2_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef %11)
  %30 = call noundef zeroext i1 @_ZN11alglib_impl12mlpissoftmaxEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %11)
  %31 = load i64, ptr %14, align 8, !tbaa !5
  %32 = load i64, ptr %15, align 8
  %33 = add i64 %31, -1
  %34 = add i64 %33, %32
  %.0115 = select i1 %30, i64 %31, i64 %34
  %35 = sub nsw i64 %7, %6
  %36 = sitofp i64 %35 to double
  %37 = load i64, ptr %16, align 8, !tbaa !5
  %38 = sitofp i64 %37 to double
  %39 = fmul double %36, %38
  %40 = fmul double %39, 2.000000e+00
  %41 = call noundef double @_ZN11alglib_impl18smpactivationlevelEPNS_8ae_stateE(ptr noundef %11)
  %42 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %40, double noundef %41)
  %.pre152 = load i64, ptr @_ZN11alglib_implL22mlpbase_microbatchsizeE, align 8, !tbaa !5
  %43 = shl nsw i64 %.pre152, 1
  %.not = icmp sge i64 %35, %43
  %or.cond.not = select i1 %42, i1 %.not, i1 false
  br i1 %or.cond.not, label %44, label %46

44:                                               ; preds = %12
  %45 = call noundef zeroext i1 @_ZN11alglib_impl23_trypexec_mlpgradbatchxEPNS_20multilayerperceptronEPNS_9ae_matrixEPNS_12sparsematrixEllPNS_9ae_vectorElllPNS_14ae_shared_poolES9_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, i64 noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11)
  br i1 %45, label %132, label %._crit_edge151

._crit_edge151:                                   ; preds = %44
  %.pre = load i64, ptr @_ZN11alglib_implL22mlpbase_microbatchsizeE, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %._crit_edge151, %12
  %47 = phi i64 [ %.pre, %._crit_edge151 ], [ %.pre152, %12 ]
  %48 = shl nsw i64 %47, 1
  %.not120 = icmp slt i64 %35, %48
  br i1 %.not120, label %58, label %49

49:                                               ; preds = %46
  %50 = call noundef double @_ZN11alglib_impl10spawnlevelEPNS_8ae_stateE(ptr noundef %11)
  %51 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %40, double noundef %50)
  br i1 %51, label %52, label %58

52:                                               ; preds = %49
  %53 = load i64, ptr @_ZN11alglib_implL22mlpbase_microbatchsizeE, align 8, !tbaa !5
  call void @_ZN11alglib_impl11splitlengthEllPlS0_PNS_8ae_stateE(i64 noundef %35, i64 noundef %53, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef %11)
  %54 = load i64, ptr %19, align 8, !tbaa !5
  %55 = add nsw i64 %54, %6
  call void @_ZN11alglib_impl13mlpgradbatchxEPNS_20multilayerperceptronEPNS_9ae_matrixEPNS_12sparsematrixEllPNS_9ae_vectorElllPNS_14ae_shared_poolES9_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, i64 noundef %55, i64 noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11)
  %56 = load i64, ptr %19, align 8, !tbaa !5
  %57 = add nsw i64 %56, %6
  call void @_ZN11alglib_impl13mlpgradbatchxEPNS_20multilayerperceptronEPNS_9ae_matrixEPNS_12sparsematrixEllPNS_9ae_vectorElllPNS_14ae_shared_poolES9_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %57, i64 noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11)
  br label %132

58:                                               ; preds = %49, %46
  call void @_ZN11alglib_impl23ae_shared_pool_retrieveEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef %10, ptr noundef nonnull %24, ptr noundef %11)
  call void @_ZN11alglib_impl23ae_shared_pool_retrieveEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef %9, ptr noundef nonnull %22, ptr noundef %11)
  %59 = getelementptr inbounds i8, ptr %0, i64 272
  %60 = load i64, ptr %16, align 8, !tbaa !5
  %61 = call noundef i64 @_ZN11alglib_impl9mlpntotalEPNS_20multilayerperceptronEPNS_8ae_stateE(ptr noundef %0, ptr noundef %11)
  %62 = load i64, ptr %14, align 8, !tbaa !5
  %63 = load i64, ptr %15, align 8, !tbaa !5
  %64 = load ptr, ptr %21, align 8, !tbaa !9
  call void @_ZN11alglib_impl25hpcpreparechunkedgradientEPNS_9ae_vectorEllllPNS_10mlpbuffersEPNS_8ae_stateE(ptr noundef nonnull %59, i64 noundef %60, i64 noundef %61, i64 noundef %62, i64 noundef %63, ptr noundef %64, ptr noundef %11)
  %65 = icmp slt i64 %6, %7
  %.pre155 = load ptr, ptr %21, align 8, !tbaa !9
  br i1 %65, label %.lr.ph141, label %._crit_edge142

.lr.ph141:                                        ; preds = %58
  %66 = getelementptr inbounds i8, ptr %5, i64 56
  %67 = getelementptr inbounds i8, ptr %1, i64 72
  %.pre154 = load i64, ptr %.pre155, align 8, !tbaa !11
  br label %68

68:                                               ; preds = %.lr.ph141, %._crit_edge
  %69 = phi i64 [ %.pre154, %.lr.ph141 ], [ %126, %._crit_edge ]
  %.0116135 = phi i64 [ %6, %.lr.ph141 ], [ %127, %._crit_edge ]
  %70 = add nsw i64 %69, %.0116135
  %71 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %7, i64 noundef %70, ptr noundef %11)
  %72 = sub nsw i64 %71, %.0116135
  %.not121.not122 = icmp sgt i64 %72, 0
  br i1 %.not121.not122, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %68
  switch i64 %4, label %.lr.ph.split [
    i64 0, label %.lr.ph.split.us
    i64 1, label %.lr.ph.split.us124
  ]

.lr.ph.split.us:                                  ; preds = %.lr.ph, %79
  %.0123.us = phi i64 [ %90, %79 ], [ %4, %.lr.ph ]
  %73 = add nsw i64 %.0123.us, %.0116135
  %spec.select.us = select i1 %27, i64 %73, i64 -1
  br i1 %28, label %74, label %79

74:                                               ; preds = %.lr.ph.split.us
  %75 = load ptr, ptr %66, align 8, !tbaa !18
  %76 = getelementptr i64, ptr %75, i64 %.0116135
  %77 = getelementptr i64, ptr %76, i64 %.0123.us
  %78 = load i64, ptr %77, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %74, %.lr.ph.split.us
  %.1.us = phi i64 [ %78, %74 ], [ %spec.select.us, %.lr.ph.split.us ]
  %80 = icmp sgt i64 %.1.us, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %80, ptr noundef nonnull @.str.201, ptr noundef %11)
  %81 = load ptr, ptr %21, align 8, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %81, i64 240
  %83 = load ptr, ptr %82, align 8, !tbaa !18
  %84 = getelementptr inbounds ptr, ptr %83, i64 %.0123.us
  %85 = load ptr, ptr %84, align 8, !tbaa !9
  %86 = load ptr, ptr %67, align 8, !tbaa !18
  %87 = getelementptr inbounds ptr, ptr %86, i64 %.1.us
  %88 = load ptr, ptr %87, align 8, !tbaa !9
  %89 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.0115)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %85, i64 noundef 1, ptr noundef %88, i64 noundef 1, i64 noundef %89)
  %90 = add nuw nsw i64 %.0123.us, 1
  %exitcond147.not = icmp eq i64 %90, %72
  br i1 %exitcond147.not, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !19

.lr.ph.split.us124:                               ; preds = %.lr.ph, %97
  %.0123.us125 = phi i64 [ %109, %97 ], [ 0, %.lr.ph ]
  %91 = add nsw i64 %.0123.us125, %.0116135
  %spec.select.us126 = select i1 %27, i64 %91, i64 -1
  br i1 %28, label %92, label %97

92:                                               ; preds = %.lr.ph.split.us124
  %93 = load ptr, ptr %66, align 8, !tbaa !18
  %94 = getelementptr i64, ptr %93, i64 %.0116135
  %95 = getelementptr i64, ptr %94, i64 %.0123.us125
  %96 = load i64, ptr %95, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %92, %.lr.ph.split.us124
  %.1.us127 = phi i64 [ %96, %92 ], [ %spec.select.us126, %.lr.ph.split.us124 ]
  %98 = icmp sgt i64 %.1.us127, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %98, ptr noundef nonnull @.str.201, ptr noundef %11)
  %99 = load ptr, ptr %21, align 8, !tbaa !9
  %100 = getelementptr inbounds i8, ptr %99, i64 328
  call void @_ZN11alglib_impl12sparsegetrowEPNS_12sparsematrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %2, i64 noundef %.1.us127, ptr noundef nonnull %100, ptr noundef %11)
  %101 = load ptr, ptr %21, align 8, !tbaa !9
  %102 = getelementptr inbounds i8, ptr %101, i64 240
  %103 = load ptr, ptr %102, align 8, !tbaa !18
  %104 = getelementptr inbounds ptr, ptr %103, i64 %.0123.us125
  %105 = load ptr, ptr %104, align 8, !tbaa !9
  %106 = getelementptr inbounds i8, ptr %101, i64 384
  %107 = load ptr, ptr %106, align 8, !tbaa !18
  %108 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.0115)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %105, i64 noundef 1, ptr noundef %107, i64 noundef 1, i64 noundef %108)
  %109 = add nuw nsw i64 %.0123.us125, 1
  %exitcond.not = icmp eq i64 %109, %72
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph.split.us124, !llvm.loop !19

.lr.ph.split:                                     ; preds = %.lr.ph
  br i1 %28, label %.lr.ph.split.split.us, label %.lr.ph.split.split

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split, %.lr.ph.split.split.us
  %.0123.us129 = phi i64 [ %115, %.lr.ph.split.split.us ], [ 0, %.lr.ph.split ]
  %110 = load ptr, ptr %66, align 8, !tbaa !18
  %111 = getelementptr i64, ptr %110, i64 %.0116135
  %112 = getelementptr i64, ptr %111, i64 %.0123.us129
  %113 = load i64, ptr %112, align 8, !tbaa !5
  %114 = icmp sgt i64 %113, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %114, ptr noundef nonnull @.str.201, ptr noundef %11)
  %115 = add nuw nsw i64 %.0123.us129, 1
  %exitcond150.not = icmp eq i64 %115, %72
  br i1 %exitcond150.not, label %._crit_edge, label %.lr.ph.split.split.us, !llvm.loop !19

.lr.ph.split.split:                               ; preds = %.lr.ph.split
  br i1 %27, label %.lr.ph.split.split.split.us, label %.lr.ph.split.split.split

.lr.ph.split.split.split.us:                      ; preds = %.lr.ph.split.split
  %invariant.op = xor i64 %.0116135, -1
  br label %116

116:                                              ; preds = %116, %.lr.ph.split.split.split.us
  %.0123.us133 = phi i64 [ 0, %.lr.ph.split.split.split.us ], [ %118, %116 ]
  %117 = icmp sgt i64 %.0123.us133, %invariant.op
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %117, ptr noundef nonnull @.str.201, ptr noundef %11)
  %118 = add nuw nsw i64 %.0123.us133, 1
  %exitcond149.not = icmp eq i64 %118, %72
  br i1 %exitcond149.not, label %._crit_edge, label %116, !llvm.loop !19

.lr.ph.split.split.split:                         ; preds = %.lr.ph.split.split, %.lr.ph.split.split.split
  %.0123 = phi i64 [ %119, %.lr.ph.split.split.split ], [ 0, %.lr.ph.split.split ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.201, ptr noundef %11)
  %119 = add nuw nsw i64 %.0123, 1
  %exitcond148.not = icmp eq i64 %119, %72
  br i1 %exitcond148.not, label %._crit_edge, label %.lr.ph.split.split.split, !llvm.loop !19

._crit_edge:                                      ; preds = %97, %79, %.lr.ph.split.split.split, %116, %.lr.ph.split.split.us, %68
  %120 = load ptr, ptr %21, align 8, !tbaa !9
  %121 = getelementptr inbounds i8, ptr %120, i64 168
  %122 = getelementptr inbounds i8, ptr %120, i64 40
  %123 = getelementptr inbounds i8, ptr %120, i64 104
  %124 = load ptr, ptr %23, align 8, !tbaa !9
  call void @_ZN11alglib_implL26mlpbase_mlpchunkedgradientEPNS_20multilayerperceptronEPNS_9ae_matrixEllPNS_9ae_vectorES5_PdbPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %121, i64 noundef 0, i64 noundef %72, ptr noundef nonnull %122, ptr noundef nonnull %123, ptr noundef %124, i1 noundef zeroext false, ptr noundef %11)
  %125 = load ptr, ptr %21, align 8, !tbaa !9
  %126 = load i64, ptr %125, align 8, !tbaa !11
  %127 = add nsw i64 %126, %.0116135
  %128 = icmp slt i64 %127, %7
  br i1 %128, label %68, label %._crit_edge142, !llvm.loop !21

._crit_edge142:                                   ; preds = %._crit_edge, %58
  %129 = phi ptr [ %.pre155, %58 ], [ %125, %._crit_edge ]
  %130 = load ptr, ptr %23, align 8, !tbaa !9
  %131 = getelementptr inbounds i8, ptr %130, i64 8
  call void @_ZN11alglib_impl26hpcfinalizechunkedgradientEPNS_10mlpbuffersEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %129, ptr noundef nonnull %131, ptr noundef %11)
  call void @_ZN11alglib_impl22ae_shared_pool_recycleEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef %9, ptr noundef nonnull %22, ptr noundef %11)
  call void @_ZN11alglib_impl22ae_shared_pool_recycleEPNS_14ae_shared_poolEPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef %10, ptr noundef nonnull %24, ptr noundef %11)
  br label %132

132:                                              ; preds = %44, %._crit_edge142, %52
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %11)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #5
  ret void
}

declare noundef double @_ZN11alglib_impl18smpactivationlevelEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl23_trypexec_mlpgradbatchxEPNS_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 #3

declare noundef double @_ZN11alglib_impl10spawnlevelEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL26mlpbase_mlpchunkedgradientEPNS_20multilayerperceptronEPNS_9ae_matrixEllPNS_9ae_vectorES5_PdbPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #4

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN11alglib_impl10mlpbuffersE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 104, !16, i64 168, !16, i64 248, !13, i64 328, !13, i64 392, !13, i64 456, !13, i64 520, !17, i64 584, !13, i64 592, !13, i64 656}
!13 = !{!"_ZTSN11alglib_impl9ae_vectorE", !6, i64 0, !6, i64 8, !14, i64 16, !15, i64 24, !7, i64 56}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !15, i64 40, !7, i64 72}
!17 = !{!"double", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


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