; 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::mlptrainer" = type { i64, i64, i8, i64, double, double, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::smlptrnsession", i64, %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%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::smlptrnsession" = type { %"struct.alglib_impl::ae_vector", double, i8, %"struct.alglib_impl::multilayerperceptron", %"struct.alglib_impl::minlbfgsstate", %"struct.alglib_impl::minlbfgsreport", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rcommstate", i64, i64, %"struct.alglib_impl::hqrndstate" }
%"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_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::minlbfgsstate" = type { i64, i64, double, double, double, i64, i8, double, %"struct.alglib_impl::ae_vector", double, i64, i64, i64, i64, i64, %"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", double, %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::ae_vector", i64, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, %"struct.alglib_impl::precbuflbfgs", %"struct.alglib_impl::precbuflowrank", double, double, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, double, %"struct.alglib_impl::rcommstate", i64, i64, i64, %"struct.alglib_impl::linminstate", i64, %"struct.alglib_impl::smoothnessmonitor", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::precbuflbfgs" = type { %"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::precbuflowrank" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::linminstate" = type { i8, i8, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"struct.alglib_impl::smoothnessmonitor" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", i64, %"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", i64, i8, i8, double, double, i8, %"struct.alglib_impl::optguardreport", double, double, %"struct.alglib_impl::optguardnonc1test0report", %"struct.alglib_impl::optguardnonc1test0report", double, double, %"struct.alglib_impl::optguardnonc1test1report", %"struct.alglib_impl::optguardnonc1test1report", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::rcommstate", %"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_matrix", %"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::optguardreport" = type { i8, i8, i64, double, i8, i8, i8, i64, double, i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardnonc1test0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test1report" = type { i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::minlbfgsreport" = type { i64, i64, i64 }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::hqrndstate" = type { 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 }

@.str.357 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.358 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.359 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.360 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.361 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.362 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.363 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.364 = external hidden unnamed_addr constant [125 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13mlpsetdatasetEPNS_10mlptrainerEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %13, i32 0, i32 0
  %15 = load i64, ptr %14, align 8, !tbaa !11
  %16 = icmp sge i64 %15, 1
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef @.str.357, ptr noundef %17)
  %18 = load i64, ptr %7, align 8, !tbaa !9
  %19 = icmp sge i64 %18, 0
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef @.str.358, ptr noundef %20)
  %21 = load i64, ptr %7, align 8, !tbaa !9
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 0
  %24 = load i64, ptr %23, align 8, !tbaa !36
  %25 = icmp sle i64 %21, %24
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef @.str.359, ptr noundef %26)
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %27, i32 0, i32 7
  store i64 0, ptr %28, align 8, !tbaa !37
  %29 = load i64, ptr %7, align 8, !tbaa !9
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %30, i32 0, i32 8
  store i64 %29, ptr %31, align 8, !tbaa !38
  %32 = load i64, ptr %7, align 8, !tbaa !9
  %33 = icmp eq i64 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %4
  store i32 1, ptr %12, align 4
  br label %176

35:                                               ; preds = %4
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %36, i32 0, i32 2
  %38 = load i8, ptr %37, align 8, !tbaa !39, !range !40, !noundef !41
  %39 = trunc i8 %38 to i1
  br i1 %39, label %40, label %65

40:                                               ; preds = %35
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %41, i32 0, i32 1
  %43 = load i64, ptr %42, align 8, !tbaa !42
  %44 = icmp sge i64 %43, 1
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef @.str.360, ptr noundef %45)
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %46, i32 0, i32 0
  %48 = load i64, ptr %47, align 8, !tbaa !11
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %49, i32 0, i32 1
  %51 = load i64, ptr %50, align 8, !tbaa !42
  %52 = add nsw i64 %48, %51
  store i64 %52, ptr %9, align 8, !tbaa !9
  %53 = load i64, ptr %9, align 8, !tbaa !9
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %54, i32 0, i32 1
  %56 = load i64, ptr %55, align 8, !tbaa !43
  %57 = icmp sle i64 %53, %56
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %57, ptr noundef @.str.361, ptr noundef %58)
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = load i64, ptr %7, align 8, !tbaa !9
  %61 = load i64, ptr %9, align 8, !tbaa !9
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %59, i64 noundef %60, i64 noundef %61, ptr noundef %62)
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %63, ptr noundef @.str.362, ptr noundef %64)
  br label %132

65:                                               ; preds = %35
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %66, i32 0, i32 1
  %68 = load i64, ptr %67, align 8, !tbaa !42
  %69 = icmp sge i64 %68, 2
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %69, ptr noundef @.str.363, ptr noundef %70)
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %71, i32 0, i32 0
  %73 = load i64, ptr %72, align 8, !tbaa !11
  %74 = add nsw i64 %73, 1
  store i64 %74, ptr %9, align 8, !tbaa !9
  %75 = load i64, ptr %9, align 8, !tbaa !9
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %76, i32 0, i32 1
  %78 = load i64, ptr %77, align 8, !tbaa !43
  %79 = icmp sle i64 %75, %78
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %79, ptr noundef @.str.361, ptr noundef %80)
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load i64, ptr %7, align 8, !tbaa !9
  %83 = load i64, ptr %9, align 8, !tbaa !9
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %81, i64 noundef %82, i64 noundef %83, ptr noundef %84)
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %85, ptr noundef @.str.362, ptr noundef %86)
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %87

87:                                               ; preds = %128, %65
  %88 = load i64, ptr %10, align 8, !tbaa !9
  %89 = load i64, ptr %7, align 8, !tbaa !9
  %90 = sub nsw i64 %89, 1
  %91 = icmp sle i64 %88, %90
  br i1 %91, label %92, label %131

92:                                               ; preds = %87
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %93, i32 0, i32 6
  %95 = load ptr, ptr %94, align 8, !tbaa !44
  %96 = load i64, ptr %10, align 8, !tbaa !9
  %97 = getelementptr inbounds ptr, ptr %95, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %99, i32 0, i32 0
  %101 = load i64, ptr %100, align 8, !tbaa !11
  %102 = getelementptr inbounds double, ptr %98, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !45
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %103, ptr noundef %104)
  %106 = icmp sge i64 %105, 0
  br i1 %106, label %107, label %125

107:                                              ; preds = %92
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %108, i32 0, i32 6
  %110 = load ptr, ptr %109, align 8, !tbaa !44
  %111 = load i64, ptr %10, align 8, !tbaa !9
  %112 = getelementptr inbounds ptr, ptr %110, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %114, i32 0, i32 0
  %116 = load i64, ptr %115, align 8, !tbaa !11
  %117 = getelementptr inbounds double, ptr %113, i64 %116
  %118 = load double, ptr %117, align 8, !tbaa !45
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %118, ptr noundef %119)
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %121, i32 0, i32 1
  %123 = load i64, ptr %122, align 8, !tbaa !42
  %124 = icmp slt i64 %120, %123
  br label %125

125:                                              ; preds = %107, %92
  %126 = phi i1 [ false, %92 ], [ %124, %107 ]
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %126, ptr noundef @.str.364, ptr noundef %127)
  br label %128

128:                                              ; preds = %125
  %129 = load i64, ptr %10, align 8, !tbaa !9
  %130 = add nsw i64 %129, 1
  store i64 %130, ptr %10, align 8, !tbaa !9
  br label %87, !llvm.loop !46

131:                                              ; preds = %87
  br label %132

132:                                              ; preds = %131, %40
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %133, i32 0, i32 9
  %135 = load i64, ptr %7, align 8, !tbaa !9
  %136 = load i64, ptr %9, align 8, !tbaa !9
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %134, i64 noundef %135, i64 noundef %136, ptr noundef %137)
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %138

138:                                              ; preds = %172, %132
  %139 = load i64, ptr %10, align 8, !tbaa !9
  %140 = load i64, ptr %7, align 8, !tbaa !9
  %141 = sub nsw i64 %140, 1
  %142 = icmp sle i64 %139, %141
  br i1 %142, label %143, label %175

143:                                              ; preds = %138
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %144

144:                                              ; preds = %168, %143
  %145 = load i64, ptr %11, align 8, !tbaa !9
  %146 = load i64, ptr %9, align 8, !tbaa !9
  %147 = sub nsw i64 %146, 1
  %148 = icmp sle i64 %145, %147
  br i1 %148, label %149, label %171

149:                                              ; preds = %144
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %150, i32 0, i32 6
  %152 = load ptr, ptr %151, align 8, !tbaa !44
  %153 = load i64, ptr %10, align 8, !tbaa !9
  %154 = getelementptr inbounds ptr, ptr %152, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = load i64, ptr %11, align 8, !tbaa !9
  %157 = getelementptr inbounds double, ptr %155, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !45
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.alglib_impl::mlptrainer", ptr %159, i32 0, i32 9
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %160, i32 0, i32 6
  %162 = load ptr, ptr %161, align 8, !tbaa !44
  %163 = load i64, ptr %10, align 8, !tbaa !9
  %164 = getelementptr inbounds ptr, ptr %162, i64 %163
  %165 = load ptr, ptr %164, align 8, !tbaa !5
  %166 = load i64, ptr %11, align 8, !tbaa !9
  %167 = getelementptr inbounds double, ptr %165, i64 %166
  store double %158, ptr %167, align 8, !tbaa !45
  br label %168

168:                                              ; preds = %149
  %169 = load i64, ptr %11, align 8, !tbaa !9
  %170 = add nsw i64 %169, 1
  store i64 %170, ptr %11, align 8, !tbaa !9
  br label %144, !llvm.loop !48

171:                                              ; preds = %144
  br label %172

172:                                              ; preds = %171
  %173 = load i64, ptr %10, align 8, !tbaa !9
  %174 = add nsw i64 %173, 1
  store i64 %174, ptr %10, align 8, !tbaa !9
  br label %138, !llvm.loop !49

175:                                              ; preds = %138
  store i32 0, ptr %12, align 4
  br label %176

176:                                              ; preds = %175, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  %177 = load i32, ptr %12, align 4
  switch i32 %177, label %179 [
    i32 0, label %178
    i32 1, label %178
  ]

178:                                              ; preds = %176, %176
  ret void

179:                                              ; preds = %176
  unreachable
}

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

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

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl10mlptrainerE", !10, i64 0, !10, i64 8, !13, i64 16, !10, i64 24, !14, i64 32, !14, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !15, i64 72, !17, i64 152, !19, i64 520, !10, i64 10160, !18, i64 10168, !10, i64 10232, !18, i64 10240, !10, i64 10304, !10, i64 10312, !10, i64 10320}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !16, i64 40, !7, i64 72}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTSN11alglib_impl12sparsematrixE", !18, i64 0, !18, i64 64, !18, i64 128, !18, i64 192, !18, i64 256, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360}
!18 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !16, i64 24, !7, i64 56}
!19 = !{!"_ZTSN11alglib_impl14smlptrnsessionE", !18, i64 0, !14, i64 64, !13, i64 72, !20, i64 80, !24, i64 2184, !34, i64 9056, !18, i64 9080, !18, i64 9144, !18, i64 9208, !18, i64 9272, !27, i64 9336, !10, i64 9600, !10, i64 9608, !35, i64 9616}
!20 = !{!"_ZTSN11alglib_impl20multilayerperceptronE", !10, i64 0, !10, i64 8, !18, i64 16, !18, i64 80, !18, i64 144, !18, i64 208, !18, i64 272, !18, i64 336, !18, i64 400, !18, i64 464, !18, i64 528, !18, i64 592, !18, i64 656, !18, i64 720, !15, i64 784, !18, i64 864, !18, i64 928, !18, i64 992, !21, i64 1056, !18, i64 1096, !22, i64 1160, !22, i64 1304, !15, i64 1448, !17, i64 1528, !18, i64 1896, !22, i64 1960}
!21 = !{!"_ZTSN11alglib_impl11modelerrorsE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32}
!22 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !23, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !10, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !16, i64 112}
!23 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !16, i64 8, !13, i64 40}
!24 = !{!"_ZTSN11alglib_impl13minlbfgsstateE", !10, i64 0, !10, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !10, i64 40, !13, i64 48, !14, i64 56, !18, i64 64, !14, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !18, i64 176, !15, i64 240, !15, i64 320, !18, i64 400, !18, i64 464, !18, i64 528, !14, i64 592, !18, i64 600, !14, i64 664, !14, i64 672, !18, i64 680, !10, i64 744, !14, i64 752, !15, i64 760, !18, i64 840, !18, i64 904, !18, i64 968, !15, i64 1032, !10, i64 1112, !25, i64 1120, !26, i64 1584, !14, i64 2032, !14, i64 2040, !14, i64 2048, !14, i64 2056, !14, i64 2064, !18, i64 2072, !18, i64 2136, !18, i64 2200, !14, i64 2264, !18, i64 2272, !13, i64 2336, !13, i64 2337, !13, i64 2338, !13, i64 2339, !14, i64 2344, !27, i64 2352, !10, i64 2616, !10, i64 2624, !10, i64 2632, !29, i64 2640, !10, i64 2832, !30, i64 2840, !18, i64 6808}
!25 = !{!"_ZTSN11alglib_impl12precbuflbfgsE", !18, i64 0, !18, i64 64, !18, i64 128, !15, i64 192, !18, i64 272, !18, i64 336, !18, i64 400}
!26 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !10, i64 0, !10, i64 8, !18, i64 16, !15, i64 80, !18, i64 160, !15, i64 224, !15, i64 304, !18, i64 384}
!27 = !{!"_ZTSN11alglib_impl10rcommstateE", !28, i64 0, !18, i64 8, !18, i64 72, !18, i64 136, !18, i64 200}
!28 = !{!"int", !7, i64 0}
!29 = !{!"_ZTSN11alglib_impl11linminstateE", !13, i64 0, !13, i64 1, !10, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184}
!30 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !10, i64 0, !10, i64 8, !13, i64 16, !18, i64 24, !10, i64 88, !18, i64 96, !18, i64 160, !18, i64 224, !15, i64 288, !18, i64 368, !18, i64 432, !10, i64 496, !13, i64 504, !13, i64 505, !14, i64 512, !14, i64 520, !13, i64 528, !31, i64 536, !14, i64 832, !14, i64 840, !32, i64 848, !32, i64 1152, !14, i64 1456, !14, i64 1464, !33, i64 1472, !33, i64 1784, !13, i64 2096, !18, i64 2104, !18, i64 2168, !15, i64 2232, !27, i64 2312, !18, i64 2576, !18, i64 2640, !18, i64 2704, !18, i64 2768, !18, i64 2832, !18, i64 2896, !18, i64 2960, !18, i64 3024, !15, i64 3088, !15, i64 3168, !18, i64 3248, !18, i64 3312, !18, i64 3376, !18, i64 3440, !18, i64 3504, !18, i64 3568, !18, i64 3632, !18, i64 3696, !18, i64 3760, !18, i64 3824, !15, i64 3888}
!31 = !{!"_ZTSN11alglib_impl14optguardreportE", !13, i64 0, !13, i64 1, !10, i64 8, !14, i64 16, !13, i64 24, !13, i64 25, !13, i64 26, !10, i64 32, !14, i64 40, !13, i64 48, !10, i64 56, !10, i64 64, !18, i64 72, !15, i64 136, !15, i64 216}
!32 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !13, i64 0, !10, i64 8, !18, i64 16, !18, i64 80, !10, i64 144, !18, i64 152, !18, i64 216, !10, i64 280, !10, i64 288, !10, i64 296}
!33 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !13, i64 0, !10, i64 8, !10, i64 16, !18, i64 24, !18, i64 88, !10, i64 152, !18, i64 160, !18, i64 224, !10, i64 288, !10, i64 296, !10, i64 304}
!34 = !{!"_ZTSN11alglib_impl14minlbfgsreportE", !10, i64 0, !10, i64 8, !10, i64 16}
!35 = !{!"_ZTSN11alglib_impl10hqrndstateE", !10, i64 0, !10, i64 8, !10, i64 16}
!36 = !{!15, !10, i64 0}
!37 = !{!12, !10, i64 56}
!38 = !{!12, !10, i64 64}
!39 = !{!12, !13, i64 16}
!40 = !{i8 0, i8 2}
!41 = !{}
!42 = !{!12, !10, i64 8}
!43 = !{!15, !10, i64 8}
!44 = !{!7, !7, i64 0}
!45 = !{!14, !14, i64 0}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}
!48 = distinct !{!48, !47}
!49 = distinct !{!49, !47}


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

@.str.357 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.358 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.359 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.360 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.361 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.362 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.363 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.364 = external hidden unnamed_addr constant [125 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13mlpsetdatasetEPNS_10mlptrainerEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = load i64, ptr %0, align 8, !tbaa !5
  %6 = icmp sgt i64 %5, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %6, ptr noundef nonnull @.str.357, ptr noundef %3)
  %7 = icmp sgt i64 %2, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.358, ptr noundef %3)
  %8 = load i64, ptr %1, align 8, !tbaa !34
  %9 = icmp sge i64 %8, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.359, ptr noundef %3)
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  store i64 0, ptr %10, align 8, !tbaa !35
  %11 = getelementptr inbounds i8, ptr %0, i64 64
  store i64 %2, ptr %11, align 8, !tbaa !36
  %12 = icmp eq i64 %2, 0
  br i1 %12, label %.loopexit, label %13

13:                                               ; preds = %4
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load i8, ptr %14, align 8, !tbaa !37, !range !38, !noundef !39
  %16 = trunc nuw i8 %15 to i1
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = load i64, ptr %17, align 8, !tbaa !40
  br i1 %16, label %19, label %28

19:                                               ; preds = %13
  %20 = icmp sgt i64 %18, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.360, ptr noundef %3)
  %21 = load i64, ptr %0, align 8, !tbaa !5
  %22 = load i64, ptr %17, align 8, !tbaa !40
  %23 = add nsw i64 %22, %21
  %24 = getelementptr inbounds i8, ptr %1, i64 8
  %25 = load i64, ptr %24, align 8, !tbaa !41
  %26 = icmp sle i64 %23, %25
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef nonnull @.str.361, ptr noundef %3)
  %27 = tail call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, i64 noundef %23, ptr noundef %3)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef nonnull @.str.362, ptr noundef %3)
  br label %.loopexit68

28:                                               ; preds = %13
  %29 = icmp sgt i64 %18, 1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef nonnull @.str.363, ptr noundef %3)
  %30 = load i64, ptr %0, align 8, !tbaa !5
  %31 = add nsw i64 %30, 1
  %32 = getelementptr inbounds i8, ptr %1, i64 8
  %33 = load i64, ptr %32, align 8, !tbaa !41
  %34 = icmp slt i64 %30, %33
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef nonnull @.str.361, ptr noundef %3)
  %35 = tail call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, i64 noundef %31, ptr noundef %3)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef nonnull @.str.362, ptr noundef %3)
  %.not.not69 = icmp sgt i64 %2, 0
  br i1 %.not.not69, label %.lr.ph, label %.loopexit68.thread

.loopexit68.thread:                               ; preds = %28
  %36 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %36, i64 noundef %2, i64 noundef %31, ptr noundef %3)
  br label %.loopexit

.lr.ph:                                           ; preds = %28
  %37 = getelementptr inbounds i8, ptr %1, i64 72
  br label %38

38:                                               ; preds = %.lr.ph, %57
  %.06370 = phi i64 [ 0, %.lr.ph ], [ %59, %57 ]
  %39 = load ptr, ptr %37, align 8, !tbaa !42
  %40 = getelementptr inbounds ptr, ptr %39, i64 %.06370
  %41 = load ptr, ptr %40, align 8, !tbaa !43
  %42 = load i64, ptr %0, align 8, !tbaa !5
  %43 = getelementptr inbounds double, ptr %41, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !44
  %45 = tail call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %44, ptr noundef %3)
  %46 = icmp sgt i64 %45, -1
  br i1 %46, label %47, label %57

47:                                               ; preds = %38
  %48 = load ptr, ptr %37, align 8, !tbaa !42
  %49 = getelementptr inbounds ptr, ptr %48, i64 %.06370
  %50 = load ptr, ptr %49, align 8, !tbaa !43
  %51 = load i64, ptr %0, align 8, !tbaa !5
  %52 = getelementptr inbounds double, ptr %50, i64 %51
  %53 = load double, ptr %52, align 8, !tbaa !44
  %54 = tail call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %53, ptr noundef %3)
  %55 = load i64, ptr %17, align 8, !tbaa !40
  %56 = icmp slt i64 %54, %55
  br label %57

57:                                               ; preds = %47, %38
  %58 = phi i1 [ false, %38 ], [ %56, %47 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %58, ptr noundef nonnull @.str.364, ptr noundef %3)
  %59 = add nuw nsw i64 %.06370, 1
  %exitcond.not = icmp eq i64 %59, %2
  br i1 %exitcond.not, label %.loopexit68, label %38, !llvm.loop !45

.loopexit68:                                      ; preds = %57, %19
  %.064 = phi i64 [ %23, %19 ], [ %31, %57 ]
  %60 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %60, i64 noundef %2, i64 noundef %.064, ptr noundef %3)
  %.not.not6674 = icmp sgt i64 %2, 0
  br i1 %.not.not6674, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %.loopexit68
  %.not.not6771 = icmp sgt i64 %.064, 0
  %61 = getelementptr inbounds i8, ptr %1, i64 72
  %62 = getelementptr inbounds i8, ptr %0, i64 144
  br i1 %.not.not6771, label %.preheader.us.preheader, label %.loopexit

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter = and i64 %.064, 1
  %63 = icmp eq i64 %.064, 1
  %unroll_iter = and i64 %.064, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.175.us = phi i64 [ %93, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  br i1 %63, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.072.us = phi i64 [ %83, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %64 = load ptr, ptr %61, align 8, !tbaa !42
  %65 = getelementptr inbounds ptr, ptr %64, i64 %.175.us
  %66 = load ptr, ptr %65, align 8, !tbaa !43
  %67 = getelementptr inbounds double, ptr %66, i64 %.072.us
  %68 = load double, ptr %67, align 8, !tbaa !44
  %69 = load ptr, ptr %62, align 8, !tbaa !42
  %70 = getelementptr inbounds ptr, ptr %69, i64 %.175.us
  %71 = load ptr, ptr %70, align 8, !tbaa !43
  %72 = getelementptr inbounds double, ptr %71, i64 %.072.us
  store double %68, ptr %72, align 8, !tbaa !44
  %73 = or disjoint i64 %.072.us, 1
  %74 = load ptr, ptr %61, align 8, !tbaa !42
  %75 = getelementptr inbounds ptr, ptr %74, i64 %.175.us
  %76 = load ptr, ptr %75, align 8, !tbaa !43
  %77 = getelementptr inbounds double, ptr %76, i64 %73
  %78 = load double, ptr %77, align 8, !tbaa !44
  %79 = load ptr, ptr %62, align 8, !tbaa !42
  %80 = getelementptr inbounds ptr, ptr %79, i64 %.175.us
  %81 = load ptr, ptr %80, align 8, !tbaa !43
  %82 = getelementptr inbounds double, ptr %81, i64 %73
  store double %78, ptr %82, align 8, !tbaa !44
  %83 = add nuw nsw i64 %.072.us, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !47

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %.072.us.unr = phi i64 [ 0, %.preheader.us ], [ %83, %.preheader.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %84 = load ptr, ptr %61, align 8, !tbaa !42
  %85 = getelementptr inbounds ptr, ptr %84, i64 %.175.us
  %86 = load ptr, ptr %85, align 8, !tbaa !43
  %87 = getelementptr inbounds double, ptr %86, i64 %.072.us.unr
  %88 = load double, ptr %87, align 8, !tbaa !44
  %89 = load ptr, ptr %62, align 8, !tbaa !42
  %90 = getelementptr inbounds ptr, ptr %89, i64 %.175.us
  %91 = load ptr, ptr %90, align 8, !tbaa !43
  %92 = getelementptr inbounds double, ptr %91, i64 %.072.us.unr
  store double %88, ptr %92, align 8, !tbaa !44
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %93 = add nuw nsw i64 %.175.us, 1
  %exitcond78.not = icmp eq i64 %93, %2
  br i1 %exitcond78.not, label %.loopexit, label %.preheader.us, !llvm.loop !48

.loopexit:                                        ; preds = %._crit_edge.us, %.preheader.lr.ph, %.loopexit68.thread, %.loopexit68, %4
  ret void
}

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

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

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl10mlptrainerE", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !11, i64 32, !11, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !12, i64 72, !15, i64 152, !17, i64 520, !7, i64 10160, !16, i64 10168, !7, i64 10232, !16, i64 10240, !7, i64 10304, !7, i64 10312, !7, i64 10320}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !13, i64 40, !8, i64 72}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSN11alglib_impl12sparsematrixE", !16, i64 0, !16, i64 64, !16, i64 128, !16, i64 192, !16, i64 256, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !13, i64 24, !8, i64 56}
!17 = !{!"_ZTSN11alglib_impl14smlptrnsessionE", !16, i64 0, !11, i64 64, !10, i64 72, !18, i64 80, !22, i64 2184, !32, i64 9056, !16, i64 9080, !16, i64 9144, !16, i64 9208, !16, i64 9272, !25, i64 9336, !7, i64 9600, !7, i64 9608, !33, i64 9616}
!18 = !{!"_ZTSN11alglib_impl20multilayerperceptronE", !7, i64 0, !7, i64 8, !16, i64 16, !16, i64 80, !16, i64 144, !16, i64 208, !16, i64 272, !16, i64 336, !16, i64 400, !16, i64 464, !16, i64 528, !16, i64 592, !16, i64 656, !16, i64 720, !12, i64 784, !16, i64 864, !16, i64 928, !16, i64 992, !19, i64 1056, !16, i64 1096, !20, i64 1160, !20, i64 1304, !12, i64 1448, !15, i64 1528, !16, i64 1896, !20, i64 1960}
!19 = !{!"_ZTSN11alglib_impl11modelerrorsE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!20 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !21, i64 0, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !7, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !13, i64 112}
!21 = !{!"_ZTSN11alglib_impl7ae_lockE", !14, i64 0, !13, i64 8, !10, i64 40}
!22 = !{!"_ZTSN11alglib_impl13minlbfgsstateE", !7, i64 0, !7, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !7, i64 40, !10, i64 48, !11, i64 56, !16, i64 64, !11, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !16, i64 176, !12, i64 240, !12, i64 320, !16, i64 400, !16, i64 464, !16, i64 528, !11, i64 592, !16, i64 600, !11, i64 664, !11, i64 672, !16, i64 680, !7, i64 744, !11, i64 752, !12, i64 760, !16, i64 840, !16, i64 904, !16, i64 968, !12, i64 1032, !7, i64 1112, !23, i64 1120, !24, i64 1584, !11, i64 2032, !11, i64 2040, !11, i64 2048, !11, i64 2056, !11, i64 2064, !16, i64 2072, !16, i64 2136, !16, i64 2200, !11, i64 2264, !16, i64 2272, !10, i64 2336, !10, i64 2337, !10, i64 2338, !10, i64 2339, !11, i64 2344, !25, i64 2352, !7, i64 2616, !7, i64 2624, !7, i64 2632, !27, i64 2640, !7, i64 2832, !28, i64 2840, !16, i64 6808}
!23 = !{!"_ZTSN11alglib_impl12precbuflbfgsE", !16, i64 0, !16, i64 64, !16, i64 128, !12, i64 192, !16, i64 272, !16, i64 336, !16, i64 400}
!24 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !7, i64 0, !7, i64 8, !16, i64 16, !12, i64 80, !16, i64 160, !12, i64 224, !12, i64 304, !16, i64 384}
!25 = !{!"_ZTSN11alglib_impl10rcommstateE", !26, i64 0, !16, i64 8, !16, i64 72, !16, i64 136, !16, i64 200}
!26 = !{!"int", !8, i64 0}
!27 = !{!"_ZTSN11alglib_impl11linminstateE", !10, i64 0, !10, i64 1, !7, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184}
!28 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !7, i64 0, !7, i64 8, !10, i64 16, !16, i64 24, !7, i64 88, !16, i64 96, !16, i64 160, !16, i64 224, !12, i64 288, !16, i64 368, !16, i64 432, !7, i64 496, !10, i64 504, !10, i64 505, !11, i64 512, !11, i64 520, !10, i64 528, !29, i64 536, !11, i64 832, !11, i64 840, !30, i64 848, !30, i64 1152, !11, i64 1456, !11, i64 1464, !31, i64 1472, !31, i64 1784, !10, i64 2096, !16, i64 2104, !16, i64 2168, !12, i64 2232, !25, i64 2312, !16, i64 2576, !16, i64 2640, !16, i64 2704, !16, i64 2768, !16, i64 2832, !16, i64 2896, !16, i64 2960, !16, i64 3024, !12, i64 3088, !12, i64 3168, !16, i64 3248, !16, i64 3312, !16, i64 3376, !16, i64 3440, !16, i64 3504, !16, i64 3568, !16, i64 3632, !16, i64 3696, !16, i64 3760, !16, i64 3824, !12, i64 3888}
!29 = !{!"_ZTSN11alglib_impl14optguardreportE", !10, i64 0, !10, i64 1, !7, i64 8, !11, i64 16, !10, i64 24, !10, i64 25, !10, i64 26, !7, i64 32, !11, i64 40, !10, i64 48, !7, i64 56, !7, i64 64, !16, i64 72, !12, i64 136, !12, i64 216}
!30 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !10, i64 0, !7, i64 8, !16, i64 16, !16, i64 80, !7, i64 144, !16, i64 152, !16, i64 216, !7, i64 280, !7, i64 288, !7, i64 296}
!31 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !10, i64 0, !7, i64 8, !7, i64 16, !16, i64 24, !16, i64 88, !7, i64 152, !16, i64 160, !16, i64 224, !7, i64 288, !7, i64 296, !7, i64 304}
!32 = !{!"_ZTSN11alglib_impl14minlbfgsreportE", !7, i64 0, !7, i64 8, !7, i64 16}
!33 = !{!"_ZTSN11alglib_impl10hqrndstateE", !7, i64 0, !7, i64 8, !7, i64 16}
!34 = !{!12, !7, i64 0}
!35 = !{!6, !7, i64 56}
!36 = !{!6, !7, i64 64}
!37 = !{!6, !10, i64 16}
!38 = !{i8 0, i8 2}
!39 = !{}
!40 = !{!6, !7, i64 8}
!41 = !{!12, !7, i64 8}
!42 = !{!8, !8, i64 0}
!43 = !{!14, !14, i64 0}
!44 = !{!11, !11, i64 0}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}
!47 = distinct !{!47, !46}
!48 = distinct !{!48, !46}


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