; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z17testnormestimatorbPN11alglib_impl8ae_stateE)

; 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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = 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::normestimatorstate" = type { i64, i64, i64, 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::hqrndstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, i8, double, %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::hqrndstate" = 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" }

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.349 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.350 = external hidden unnamed_addr constant [42 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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) #1

declare i32 @printf(ptr noundef, ...) #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

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

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) #1

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

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) #1

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

declare void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) #1

declare void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

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

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

declare noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare void @_ZN11alglib_impl14rmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z17testnormestimatorbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #4 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca double, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i64, align 8
  %19 = alloca double, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca %"struct.alglib_impl::normestimatorstate", align 8
  %23 = alloca %"struct.alglib_impl::normestimatorstate", align 8
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  %26 = zext i1 %0 to i8
  store i8 %26, ptr %3, align 1, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 792, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 792, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #5
  %27 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %27, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 792, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 792, i1 false)
  %28 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %12, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %13, i64 noundef 0, i64 noundef 2, ptr noundef %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %14, ptr noundef %30, i1 noundef zeroext true)
  %31 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl24_normestimatorstate_initEPvPNS_8ae_stateEb(ptr noundef %22, ptr noundef %31, i1 noundef zeroext true)
  %32 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl24_normestimatorstate_initEPvPNS_8ae_stateEb(ptr noundef %23, ptr noundef %32, i1 noundef zeroext true)
  store double 1.000000e-02, ptr %6, align 8, !tbaa !11
  store i64 5, ptr %7, align 8, !tbaa !13
  store i8 0, ptr %24, align 1, !tbaa !5
  store i64 1, ptr %8, align 8, !tbaa !13
  br label %33

33:                                               ; preds = %170, %2
  %34 = load i64, ptr %8, align 8, !tbaa !13
  %35 = load i64, ptr %7, align 8, !tbaa !13
  %36 = icmp sle i64 %34, %35
  br i1 %36, label %37, label %173

37:                                               ; preds = %33
  store i64 1, ptr %9, align 8, !tbaa !13
  br label %38

38:                                               ; preds = %166, %37
  %39 = load i64, ptr %9, align 8, !tbaa !13
  %40 = load i64, ptr %7, align 8, !tbaa !13
  %41 = icmp sle i64 %39, %40
  br i1 %41, label %42, label %169

42:                                               ; preds = %38
  %43 = load i64, ptr %8, align 8, !tbaa !13
  %44 = load i64, ptr %9, align 8, !tbaa !13
  %45 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl19normestimatorcreateEllllPNS_18normestimatorstateEPNS_8ae_stateE(i64 noundef %43, i64 noundef %44, i64 noundef 15, i64 noundef 15, ptr noundef %22, ptr noundef %45)
  %46 = load i64, ptr %8, align 8, !tbaa !13
  %47 = load i64, ptr %9, align 8, !tbaa !13
  %48 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %46, i64 noundef %47, i64 noundef 1, ptr noundef %14, ptr noundef %48)
  %49 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %14, ptr noundef %49)
  %50 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %22, ptr noundef %14, ptr noundef %50)
  %51 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20normestimatorresultsEPNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef %22, ptr noundef %16, ptr noundef %51)
  %52 = load i8, ptr %24, align 1, !tbaa !5, !range !15, !noundef !16
  %53 = trunc i8 %52 to i1
  br i1 %53, label %57, label %54

54:                                               ; preds = %42
  %55 = load double, ptr %16, align 8, !tbaa !11
  %56 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %55, double noundef 0.000000e+00)
  br label %57

57:                                               ; preds = %54, %42
  %58 = phi i1 [ true, %42 ], [ %56, %54 ]
  %59 = zext i1 %58 to i8
  store i8 %59, ptr %24, align 1, !tbaa !5
  %60 = load ptr, ptr %4, align 8, !tbaa !9
  %61 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %60)
  %62 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %61, double -5.000000e+00)
  %63 = load ptr, ptr %4, align 8, !tbaa !9
  %64 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %62, ptr noundef %63)
  store double %64, ptr %15, align 8, !tbaa !11
  %65 = load i64, ptr %8, align 8, !tbaa !13
  %66 = load i64, ptr %9, align 8, !tbaa !13
  %67 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %65, i64 noundef %66, i64 noundef 1, ptr noundef %14, ptr noundef %67)
  %68 = load i64, ptr %8, align 8, !tbaa !13
  %69 = load i64, ptr %9, align 8, !tbaa !13
  %70 = icmp sge i64 %68, %69
  br i1 %70, label %71, label %107

71:                                               ; preds = %57
  %72 = load i64, ptr %8, align 8, !tbaa !13
  %73 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20rmatrixrndorthogonalElPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %72, ptr noundef %12, ptr noundef %73)
  store i64 0, ptr %20, align 8, !tbaa !13
  br label %74

74:                                               ; preds = %103, %71
  %75 = load i64, ptr %20, align 8, !tbaa !13
  %76 = load i64, ptr %8, align 8, !tbaa !13
  %77 = sub nsw i64 %76, 1
  %78 = icmp sle i64 %75, %77
  br i1 %78, label %79, label %106

79:                                               ; preds = %74
  store i64 0, ptr %21, align 8, !tbaa !13
  br label %80

80:                                               ; preds = %99, %79
  %81 = load i64, ptr %21, align 8, !tbaa !13
  %82 = load i64, ptr %9, align 8, !tbaa !13
  %83 = sub nsw i64 %82, 1
  %84 = icmp sle i64 %81, %83
  br i1 %84, label %85, label %102

85:                                               ; preds = %80
  %86 = load i64, ptr %20, align 8, !tbaa !13
  %87 = load i64, ptr %21, align 8, !tbaa !13
  %88 = load double, ptr %15, align 8, !tbaa !11
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %90 = load ptr, ptr %89, align 8, !tbaa !17
  %91 = load i64, ptr %20, align 8, !tbaa !13
  %92 = getelementptr inbounds ptr, ptr %90, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = load i64, ptr %21, align 8, !tbaa !13
  %95 = getelementptr inbounds double, ptr %93, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !11
  %97 = fmul double %88, %96
  %98 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %14, i64 noundef %86, i64 noundef %87, double noundef %97, ptr noundef %98)
  br label %99

99:                                               ; preds = %85
  %100 = load i64, ptr %21, align 8, !tbaa !13
  %101 = add nsw i64 %100, 1
  store i64 %101, ptr %21, align 8, !tbaa !13
  br label %80, !llvm.loop !18

102:                                              ; preds = %80
  br label %103

103:                                              ; preds = %102
  %104 = load i64, ptr %20, align 8, !tbaa !13
  %105 = add nsw i64 %104, 1
  store i64 %105, ptr %20, align 8, !tbaa !13
  br label %74, !llvm.loop !20

106:                                              ; preds = %74
  br label %143

107:                                              ; preds = %57
  %108 = load i64, ptr %9, align 8, !tbaa !13
  %109 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20rmatrixrndorthogonalElPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %108, ptr noundef %12, ptr noundef %109)
  store i64 0, ptr %20, align 8, !tbaa !13
  br label %110

110:                                              ; preds = %139, %107
  %111 = load i64, ptr %20, align 8, !tbaa !13
  %112 = load i64, ptr %8, align 8, !tbaa !13
  %113 = sub nsw i64 %112, 1
  %114 = icmp sle i64 %111, %113
  br i1 %114, label %115, label %142

115:                                              ; preds = %110
  store i64 0, ptr %21, align 8, !tbaa !13
  br label %116

116:                                              ; preds = %135, %115
  %117 = load i64, ptr %21, align 8, !tbaa !13
  %118 = load i64, ptr %9, align 8, !tbaa !13
  %119 = sub nsw i64 %118, 1
  %120 = icmp sle i64 %117, %119
  br i1 %120, label %121, label %138

121:                                              ; preds = %116
  %122 = load i64, ptr %20, align 8, !tbaa !13
  %123 = load i64, ptr %21, align 8, !tbaa !13
  %124 = load double, ptr %15, align 8, !tbaa !11
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %126 = load ptr, ptr %125, align 8, !tbaa !17
  %127 = load i64, ptr %20, align 8, !tbaa !13
  %128 = getelementptr inbounds ptr, ptr %126, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !9
  %130 = load i64, ptr %21, align 8, !tbaa !13
  %131 = getelementptr inbounds double, ptr %129, i64 %130
  %132 = load double, ptr %131, align 8, !tbaa !11
  %133 = fmul double %124, %132
  %134 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %14, i64 noundef %122, i64 noundef %123, double noundef %133, ptr noundef %134)
  br label %135

135:                                              ; preds = %121
  %136 = load i64, ptr %21, align 8, !tbaa !13
  %137 = add nsw i64 %136, 1
  store i64 %137, ptr %21, align 8, !tbaa !13
  br label %116, !llvm.loop !21

138:                                              ; preds = %116
  br label %139

139:                                              ; preds = %138
  %140 = load i64, ptr %20, align 8, !tbaa !13
  %141 = add nsw i64 %140, 1
  store i64 %141, ptr %20, align 8, !tbaa !13
  br label %110, !llvm.loop !22

142:                                              ; preds = %110
  br label %143

143:                                              ; preds = %142, %106
  %144 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %14, ptr noundef %144)
  %145 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %22, ptr noundef %14, ptr noundef %145)
  %146 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20normestimatorresultsEPNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef %22, ptr noundef %16, ptr noundef %146)
  %147 = load i8, ptr %24, align 1, !tbaa !5, !range !15, !noundef !16
  %148 = trunc i8 %147 to i1
  br i1 %148, label %163, label %149

149:                                              ; preds = %143
  %150 = load double, ptr %16, align 8, !tbaa !11
  %151 = load double, ptr %15, align 8, !tbaa !11
  %152 = load double, ptr %6, align 8, !tbaa !11
  %153 = fadd double 1.000000e+00, %152
  %154 = fmul double %151, %153
  %155 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %150, double noundef %154)
  br i1 %155, label %163, label %156

156:                                              ; preds = %149
  %157 = load double, ptr %16, align 8, !tbaa !11
  %158 = load double, ptr %15, align 8, !tbaa !11
  %159 = load double, ptr %6, align 8, !tbaa !11
  %160 = fsub double 1.000000e+00, %159
  %161 = fmul double %158, %160
  %162 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %157, double noundef %161)
  br label %163

163:                                              ; preds = %156, %149, %143
  %164 = phi i1 [ true, %149 ], [ true, %143 ], [ %162, %156 ]
  %165 = zext i1 %164 to i8
  store i8 %165, ptr %24, align 1, !tbaa !5
  br label %166

166:                                              ; preds = %163
  %167 = load i64, ptr %9, align 8, !tbaa !13
  %168 = add nsw i64 %167, 1
  store i64 %168, ptr %9, align 8, !tbaa !13
  br label %38, !llvm.loop !23

169:                                              ; preds = %38
  br label %170

170:                                              ; preds = %169
  %171 = load i64, ptr %8, align 8, !tbaa !13
  %172 = add nsw i64 %171, 1
  store i64 %172, ptr %8, align 8, !tbaa !13
  br label %33, !llvm.loop !24

173:                                              ; preds = %33
  store i64 3, ptr %9, align 8, !tbaa !13
  %174 = load i64, ptr %9, align 8, !tbaa !13
  %175 = load i64, ptr %9, align 8, !tbaa !13
  %176 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl19normestimatorcreateEllllPNS_18normestimatorstateEPNS_8ae_stateE(i64 noundef %174, i64 noundef %175, i64 noundef 1, i64 noundef 1, ptr noundef %22, ptr noundef %176)
  %177 = load i64, ptr %9, align 8, !tbaa !13
  %178 = load i64, ptr %9, align 8, !tbaa !13
  %179 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl19normestimatorcreateEllllPNS_18normestimatorstateEPNS_8ae_stateE(i64 noundef %177, i64 noundef %178, i64 noundef 10, i64 noundef 1, ptr noundef %23, ptr noundef %179)
  %180 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20normestimatorsetseedEPNS_18normestimatorstateElPNS_8ae_stateE(ptr noundef %22, i64 noundef 0, ptr noundef %180)
  %181 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20normestimatorsetseedEPNS_18normestimatorstateElPNS_8ae_stateE(ptr noundef %23, i64 noundef 0, ptr noundef %181)
  store i64 0, ptr %18, align 8, !tbaa !13
  store i64 2000, ptr %11, align 8, !tbaa !13
  store double 5.000000e+00, ptr %19, align 8, !tbaa !11
  store i64 1, ptr %10, align 8, !tbaa !13
  br label %182

182:                                              ; preds = %250, %173
  %183 = load i64, ptr %10, align 8, !tbaa !13
  %184 = load i64, ptr %11, align 8, !tbaa !13
  %185 = icmp sle i64 %183, %184
  br i1 %185, label %186, label %253

186:                                              ; preds = %182
  %187 = load ptr, ptr %4, align 8, !tbaa !9
  %188 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %187)
  %189 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %188, double -1.000000e+00)
  %190 = load ptr, ptr %4, align 8, !tbaa !9
  %191 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef 1.000000e+01, double noundef %189, ptr noundef %190)
  store double %191, ptr %15, align 8, !tbaa !11
  %192 = load i64, ptr %9, align 8, !tbaa !13
  %193 = load i64, ptr %9, align 8, !tbaa !13
  %194 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %192, i64 noundef %193, i64 noundef 1, ptr noundef %14, ptr noundef %194)
  %195 = load i64, ptr %9, align 8, !tbaa !13
  %196 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14rmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %195, double noundef 2.000000e+00, ptr noundef %12, ptr noundef %196)
  store i64 0, ptr %20, align 8, !tbaa !13
  br label %197

197:                                              ; preds = %226, %186
  %198 = load i64, ptr %20, align 8, !tbaa !13
  %199 = load i64, ptr %9, align 8, !tbaa !13
  %200 = sub nsw i64 %199, 1
  %201 = icmp sle i64 %198, %200
  br i1 %201, label %202, label %229

202:                                              ; preds = %197
  store i64 0, ptr %21, align 8, !tbaa !13
  br label %203

203:                                              ; preds = %222, %202
  %204 = load i64, ptr %21, align 8, !tbaa !13
  %205 = load i64, ptr %9, align 8, !tbaa !13
  %206 = sub nsw i64 %205, 1
  %207 = icmp sle i64 %204, %206
  br i1 %207, label %208, label %225

208:                                              ; preds = %203
  %209 = load i64, ptr %20, align 8, !tbaa !13
  %210 = load i64, ptr %21, align 8, !tbaa !13
  %211 = load double, ptr %15, align 8, !tbaa !11
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %213 = load ptr, ptr %212, align 8, !tbaa !17
  %214 = load i64, ptr %20, align 8, !tbaa !13
  %215 = getelementptr inbounds ptr, ptr %213, i64 %214
  %216 = load ptr, ptr %215, align 8, !tbaa !9
  %217 = load i64, ptr %21, align 8, !tbaa !13
  %218 = getelementptr inbounds double, ptr %216, i64 %217
  %219 = load double, ptr %218, align 8, !tbaa !11
  %220 = fmul double %211, %219
  %221 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %14, i64 noundef %209, i64 noundef %210, double noundef %220, ptr noundef %221)
  br label %222

222:                                              ; preds = %208
  %223 = load i64, ptr %21, align 8, !tbaa !13
  %224 = add nsw i64 %223, 1
  store i64 %224, ptr %21, align 8, !tbaa !13
  br label %203, !llvm.loop !25

225:                                              ; preds = %203
  br label %226

226:                                              ; preds = %225
  %227 = load i64, ptr %20, align 8, !tbaa !13
  %228 = add nsw i64 %227, 1
  store i64 %228, ptr %20, align 8, !tbaa !13
  br label %197, !llvm.loop !26

229:                                              ; preds = %197
  %230 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %14, ptr noundef %230)
  %231 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %22, ptr noundef %14, ptr noundef %231)
  %232 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20normestimatorresultsEPNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef %22, ptr noundef %16, ptr noundef %232)
  %233 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %23, ptr noundef %14, ptr noundef %233)
  %234 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20normestimatorresultsEPNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef %23, ptr noundef %17, ptr noundef %234)
  %235 = load double, ptr %17, align 8, !tbaa !11
  %236 = load double, ptr %15, align 8, !tbaa !11
  %237 = fsub double %235, %236
  %238 = load ptr, ptr %4, align 8, !tbaa !9
  %239 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %237, ptr noundef %238)
  %240 = load double, ptr %16, align 8, !tbaa !11
  %241 = load double, ptr %15, align 8, !tbaa !11
  %242 = fsub double %240, %241
  %243 = load ptr, ptr %4, align 8, !tbaa !9
  %244 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %242, ptr noundef %243)
  %245 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %239, double noundef %244)
  br i1 %245, label %246, label %249

246:                                              ; preds = %229
  %247 = load i64, ptr %18, align 8, !tbaa !13
  %248 = add nsw i64 %247, 1
  store i64 %248, ptr %18, align 8, !tbaa !13
  br label %249

249:                                              ; preds = %246, %229
  br label %250

250:                                              ; preds = %249
  %251 = load i64, ptr %10, align 8, !tbaa !13
  %252 = add nsw i64 %251, 1
  store i64 %252, ptr %10, align 8, !tbaa !13
  br label %182, !llvm.loop !27

253:                                              ; preds = %182
  %254 = load i8, ptr %24, align 1, !tbaa !5, !range !15, !noundef !16
  %255 = trunc i8 %254 to i1
  br i1 %255, label %270, label %256

256:                                              ; preds = %253
  %257 = load i64, ptr %18, align 8, !tbaa !13
  %258 = sitofp i64 %257 to double
  %259 = load i64, ptr %11, align 8, !tbaa !13
  %260 = sitofp i64 %259 to double
  %261 = load double, ptr %19, align 8, !tbaa !11
  %262 = load i64, ptr %11, align 8, !tbaa !13
  %263 = sitofp i64 %262 to double
  %264 = fmul double 2.500000e-01, %263
  %265 = load ptr, ptr %4, align 8, !tbaa !9
  %266 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %264, ptr noundef %265)
  %267 = fmul double %261, %266
  %268 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %260, double %267)
  %269 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %258, double noundef %268)
  br label %270

270:                                              ; preds = %256, %253
  %271 = phi i1 [ true, %253 ], [ %269, %256 ]
  %272 = zext i1 %271 to i8
  store i8 %272, ptr %24, align 1, !tbaa !5
  store i64 3, ptr %9, align 8, !tbaa !13
  %273 = load i64, ptr %9, align 8, !tbaa !13
  %274 = load i64, ptr %9, align 8, !tbaa !13
  %275 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl19normestimatorcreateEllllPNS_18normestimatorstateEPNS_8ae_stateE(i64 noundef %273, i64 noundef %274, i64 noundef 1, i64 noundef 1, ptr noundef %22, ptr noundef %275)
  %276 = load i64, ptr %9, align 8, !tbaa !13
  %277 = load i64, ptr %9, align 8, !tbaa !13
  %278 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl19normestimatorcreateEllllPNS_18normestimatorstateEPNS_8ae_stateE(i64 noundef %276, i64 noundef %277, i64 noundef 1, i64 noundef 10, ptr noundef %23, ptr noundef %278)
  %279 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20normestimatorsetseedEPNS_18normestimatorstateElPNS_8ae_stateE(ptr noundef %22, i64 noundef 0, ptr noundef %279)
  %280 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20normestimatorsetseedEPNS_18normestimatorstateElPNS_8ae_stateE(ptr noundef %23, i64 noundef 0, ptr noundef %280)
  store i64 0, ptr %18, align 8, !tbaa !13
  store i64 2000, ptr %11, align 8, !tbaa !13
  store double 5.000000e+00, ptr %19, align 8, !tbaa !11
  store i64 1, ptr %10, align 8, !tbaa !13
  br label %281

281:                                              ; preds = %349, %270
  %282 = load i64, ptr %10, align 8, !tbaa !13
  %283 = load i64, ptr %11, align 8, !tbaa !13
  %284 = icmp sle i64 %282, %283
  br i1 %284, label %285, label %352

285:                                              ; preds = %281
  %286 = load ptr, ptr %4, align 8, !tbaa !9
  %287 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %286)
  %288 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %287, double -1.000000e+00)
  %289 = load ptr, ptr %4, align 8, !tbaa !9
  %290 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef 1.000000e+01, double noundef %288, ptr noundef %289)
  store double %290, ptr %15, align 8, !tbaa !11
  %291 = load i64, ptr %9, align 8, !tbaa !13
  %292 = load i64, ptr %9, align 8, !tbaa !13
  %293 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %291, i64 noundef %292, i64 noundef 1, ptr noundef %14, ptr noundef %293)
  %294 = load i64, ptr %9, align 8, !tbaa !13
  %295 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14rmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %294, double noundef 2.000000e+00, ptr noundef %12, ptr noundef %295)
  store i64 0, ptr %20, align 8, !tbaa !13
  br label %296

296:                                              ; preds = %325, %285
  %297 = load i64, ptr %20, align 8, !tbaa !13
  %298 = load i64, ptr %9, align 8, !tbaa !13
  %299 = sub nsw i64 %298, 1
  %300 = icmp sle i64 %297, %299
  br i1 %300, label %301, label %328

301:                                              ; preds = %296
  store i64 0, ptr %21, align 8, !tbaa !13
  br label %302

302:                                              ; preds = %321, %301
  %303 = load i64, ptr %21, align 8, !tbaa !13
  %304 = load i64, ptr %9, align 8, !tbaa !13
  %305 = sub nsw i64 %304, 1
  %306 = icmp sle i64 %303, %305
  br i1 %306, label %307, label %324

307:                                              ; preds = %302
  %308 = load i64, ptr %20, align 8, !tbaa !13
  %309 = load i64, ptr %21, align 8, !tbaa !13
  %310 = load double, ptr %15, align 8, !tbaa !11
  %311 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %312 = load ptr, ptr %311, align 8, !tbaa !17
  %313 = load i64, ptr %20, align 8, !tbaa !13
  %314 = getelementptr inbounds ptr, ptr %312, i64 %313
  %315 = load ptr, ptr %314, align 8, !tbaa !9
  %316 = load i64, ptr %21, align 8, !tbaa !13
  %317 = getelementptr inbounds double, ptr %315, i64 %316
  %318 = load double, ptr %317, align 8, !tbaa !11
  %319 = fmul double %310, %318
  %320 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %14, i64 noundef %308, i64 noundef %309, double noundef %319, ptr noundef %320)
  br label %321

321:                                              ; preds = %307
  %322 = load i64, ptr %21, align 8, !tbaa !13
  %323 = add nsw i64 %322, 1
  store i64 %323, ptr %21, align 8, !tbaa !13
  br label %302, !llvm.loop !28

324:                                              ; preds = %302
  br label %325

325:                                              ; preds = %324
  %326 = load i64, ptr %20, align 8, !tbaa !13
  %327 = add nsw i64 %326, 1
  store i64 %327, ptr %20, align 8, !tbaa !13
  br label %296, !llvm.loop !29

328:                                              ; preds = %296
  %329 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %14, ptr noundef %329)
  %330 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %22, ptr noundef %14, ptr noundef %330)
  %331 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20normestimatorresultsEPNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef %22, ptr noundef %16, ptr noundef %331)
  %332 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %23, ptr noundef %14, ptr noundef %332)
  %333 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20normestimatorresultsEPNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef %23, ptr noundef %17, ptr noundef %333)
  %334 = load double, ptr %17, align 8, !tbaa !11
  %335 = load double, ptr %15, align 8, !tbaa !11
  %336 = fsub double %334, %335
  %337 = load ptr, ptr %4, align 8, !tbaa !9
  %338 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %336, ptr noundef %337)
  %339 = load double, ptr %16, align 8, !tbaa !11
  %340 = load double, ptr %15, align 8, !tbaa !11
  %341 = fsub double %339, %340
  %342 = load ptr, ptr %4, align 8, !tbaa !9
  %343 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %341, ptr noundef %342)
  %344 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %338, double noundef %343)
  br i1 %344, label %345, label %348

345:                                              ; preds = %328
  %346 = load i64, ptr %18, align 8, !tbaa !13
  %347 = add nsw i64 %346, 1
  store i64 %347, ptr %18, align 8, !tbaa !13
  br label %348

348:                                              ; preds = %345, %328
  br label %349

349:                                              ; preds = %348
  %350 = load i64, ptr %10, align 8, !tbaa !13
  %351 = add nsw i64 %350, 1
  store i64 %351, ptr %10, align 8, !tbaa !13
  br label %281, !llvm.loop !30

352:                                              ; preds = %281
  %353 = load i8, ptr %24, align 1, !tbaa !5, !range !15, !noundef !16
  %354 = trunc i8 %353 to i1
  br i1 %354, label %369, label %355

355:                                              ; preds = %352
  %356 = load i64, ptr %18, align 8, !tbaa !13
  %357 = sitofp i64 %356 to double
  %358 = load i64, ptr %11, align 8, !tbaa !13
  %359 = sitofp i64 %358 to double
  %360 = load double, ptr %19, align 8, !tbaa !11
  %361 = load i64, ptr %11, align 8, !tbaa !13
  %362 = sitofp i64 %361 to double
  %363 = fmul double 2.500000e-01, %362
  %364 = load ptr, ptr %4, align 8, !tbaa !9
  %365 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %363, ptr noundef %364)
  %366 = fmul double %360, %365
  %367 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %359, double %366)
  %368 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %357, double noundef %367)
  br label %369

369:                                              ; preds = %355, %352
  %370 = phi i1 [ true, %352 ], [ %368, %355 ]
  %371 = zext i1 %370 to i8
  store i8 %371, ptr %24, align 1, !tbaa !5
  %372 = load i8, ptr %3, align 1, !tbaa !5, !range !15, !noundef !16
  %373 = trunc i8 %372 to i1
  br i1 %373, label %392, label %374

374:                                              ; preds = %369
  %375 = call i32 (ptr, ...) @printf(ptr noundef @.str.349)
  %376 = call i32 (ptr, ...) @printf(ptr noundef @.str.350)
  %377 = load i8, ptr %24, align 1, !tbaa !5, !range !15, !noundef !16
  %378 = trunc i8 %377 to i1
  br i1 %378, label %381, label %379

379:                                              ; preds = %374
  %380 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %383

381:                                              ; preds = %374
  %382 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %383

383:                                              ; preds = %381, %379
  %384 = load i8, ptr %24, align 1, !tbaa !5, !range !15, !noundef !16
  %385 = trunc i8 %384 to i1
  br i1 %385, label %386, label %388

386:                                              ; preds = %383
  %387 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %390

388:                                              ; preds = %383
  %389 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %390

390:                                              ; preds = %388, %386
  %391 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %392

392:                                              ; preds = %390, %369
  %393 = load i8, ptr %24, align 1, !tbaa !5, !range !15, !noundef !16
  %394 = trunc i8 %393 to i1
  %395 = xor i1 %394, true
  %396 = zext i1 %395 to i8
  store i8 %396, ptr %25, align 1, !tbaa !5
  %397 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %397)
  %398 = load i8, ptr %25, align 1, !tbaa !5, !range !15, !noundef !16
  %399 = trunc i8 %398 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 792, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 792, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  ret i1 %399
}

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

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

declare void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl20normestimatorresultsEPNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl20normestimatorsetseedEPNS_18normestimatorstateElPNS_8ae_stateE(ptr 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"bool", !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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !19}
!29 = distinct !{!29, !19}
!30 = distinct !{!30, !19}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = 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::normestimatorstate" = type { i64, i64, i64, 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::hqrndstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, i8, double, %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::hqrndstate" = 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" }

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.349 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.350 = external hidden unnamed_addr constant [42 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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

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

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) local_unnamed_addr #1

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

declare void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl20rmatrixrndorthogonalElPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl14rmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z17testnormestimatorbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #5 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %5 = alloca %"struct.alglib_impl::ae_vector", align 8
  %6 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca %"struct.alglib_impl::normestimatorstate", align 8
  %10 = alloca %"struct.alglib_impl::normestimatorstate", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 792, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 792, ptr nonnull %10) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %3)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %4, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %5, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %6, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(792) %9, i8 0, i64 792, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(792) %10, i8 0, i64 792, i1 false)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %4, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 2, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %6, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl24_normestimatorstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %9, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl24_normestimatorstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %10, ptr noundef %1, i1 noundef zeroext true)
  %11 = getelementptr inbounds i8, ptr %4, i64 72
  br label %.preheader185

.preheader185:                                    ; preds = %2, %54
  %.0193 = phi i64 [ 1, %2 ], [ %55, %54 ]
  %.0162192 = phi i1 [ false, %2 ], [ %52, %54 ]
  br label %12

12:                                               ; preds = %.preheader185, %51
  %.1191 = phi i1 [ %.0162192, %.preheader185 ], [ %52, %51 ]
  %.0175190 = phi i64 [ 1, %.preheader185 ], [ %53, %51 ]
  call void @_ZN11alglib_impl19normestimatorcreateEllllPNS_18normestimatorstateEPNS_8ae_stateE(i64 noundef %.0193, i64 noundef %.0175190, i64 noundef 15, i64 noundef 15, ptr noundef nonnull %9, ptr noundef %1)
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %.0193, i64 noundef %.0175190, i64 noundef 1, ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZN11alglib_impl20normestimatorresultsEPNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %7, ptr noundef %1)
  br i1 %.1191, label %16, label %13

13:                                               ; preds = %12
  %14 = load double, ptr %7, align 8, !tbaa !5
  %15 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %14, double noundef 0.000000e+00)
  br label %16

16:                                               ; preds = %13, %12
  %17 = phi i1 [ true, %12 ], [ %15, %13 ]
  %18 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %19 = call double @llvm.fmuladd.f64(double %18, double 1.000000e+01, double -5.000000e+00)
  %20 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %19, ptr noundef %1)
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %.0193, i64 noundef %.0175190, i64 noundef 1, ptr noundef nonnull %6, ptr noundef %1)
  %.not = icmp ult i64 %.0193, %.0175190
  br i1 %.not, label %32, label %21

21:                                               ; preds = %16
  call void @_ZN11alglib_impl20rmatrixrndorthogonalElPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %.0193, ptr noundef nonnull %4, ptr noundef %1)
  br label %.preheader183

.preheader183:                                    ; preds = %21, %30
  %.0165187 = phi i64 [ 0, %21 ], [ %31, %30 ]
  br label %22

22:                                               ; preds = %.preheader183, %22
  %.0163186 = phi i64 [ 0, %.preheader183 ], [ %29, %22 ]
  %23 = load ptr, ptr %11, align 8, !tbaa !9
  %24 = getelementptr inbounds ptr, ptr %23, i64 %.0165187
  %25 = load ptr, ptr %24, align 8, !tbaa !10
  %26 = getelementptr inbounds double, ptr %25, i64 %.0163186
  %27 = load double, ptr %26, align 8, !tbaa !5
  %28 = fmul double %20, %27
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0165187, i64 noundef %.0163186, double noundef %28, ptr noundef %1)
  %29 = add nuw nsw i64 %.0163186, 1
  %exitcond.not = icmp eq i64 %29, %.0175190
  br i1 %exitcond.not, label %30, label %22, !llvm.loop !12

30:                                               ; preds = %22
  %31 = add nuw nsw i64 %.0165187, 1
  %exitcond204.not = icmp eq i64 %31, %.0193
  br i1 %exitcond204.not, label %.loopexit, label %.preheader183, !llvm.loop !14

32:                                               ; preds = %16
  call void @_ZN11alglib_impl20rmatrixrndorthogonalElPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %.0175190, ptr noundef nonnull %4, ptr noundef %1)
  br label %.preheader182

.preheader182:                                    ; preds = %32, %41
  %.1166189 = phi i64 [ 0, %32 ], [ %42, %41 ]
  br label %33

33:                                               ; preds = %.preheader182, %33
  %.1164188 = phi i64 [ 0, %.preheader182 ], [ %40, %33 ]
  %34 = load ptr, ptr %11, align 8, !tbaa !9
  %35 = getelementptr inbounds ptr, ptr %34, i64 %.1166189
  %36 = load ptr, ptr %35, align 8, !tbaa !10
  %37 = getelementptr inbounds double, ptr %36, i64 %.1164188
  %38 = load double, ptr %37, align 8, !tbaa !5
  %39 = fmul double %20, %38
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.1166189, i64 noundef %.1164188, double noundef %39, ptr noundef %1)
  %40 = add nuw nsw i64 %.1164188, 1
  %exitcond205.not = icmp eq i64 %40, %.0175190
  br i1 %exitcond205.not, label %41, label %33, !llvm.loop !15

41:                                               ; preds = %33
  %42 = add nuw nsw i64 %.1166189, 1
  %exitcond206.not = icmp eq i64 %42, %.0193
  br i1 %exitcond206.not, label %.loopexit, label %.preheader182, !llvm.loop !16

.loopexit:                                        ; preds = %30, %41
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZN11alglib_impl20normestimatorresultsEPNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %7, ptr noundef %1)
  br i1 %17, label %51, label %43

43:                                               ; preds = %.loopexit
  %44 = load double, ptr %7, align 8, !tbaa !5
  %45 = fmul double %20, 1.010000e+00
  %46 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %44, double noundef %45)
  br i1 %46, label %51, label %47

47:                                               ; preds = %43
  %48 = load double, ptr %7, align 8, !tbaa !5
  %49 = fmul double %20, 0x3FEFAE147AE147AE
  %50 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %48, double noundef %49)
  br label %51

51:                                               ; preds = %47, %43, %.loopexit
  %52 = phi i1 [ true, %43 ], [ true, %.loopexit ], [ %50, %47 ]
  %53 = add nuw nsw i64 %.0175190, 1
  %exitcond207.not = icmp eq i64 %53, 6
  br i1 %exitcond207.not, label %54, label %12, !llvm.loop !17

54:                                               ; preds = %51
  %55 = add nuw nsw i64 %.0193, 1
  %exitcond208.not = icmp eq i64 %55, 6
  br i1 %exitcond208.not, label %56, label %.preheader185, !llvm.loop !18

56:                                               ; preds = %54
  call void @_ZN11alglib_impl19normestimatorcreateEllllPNS_18normestimatorstateEPNS_8ae_stateE(i64 noundef 3, i64 noundef 3, i64 noundef 1, i64 noundef 1, ptr noundef nonnull %9, ptr noundef %1)
  call void @_ZN11alglib_impl19normestimatorcreateEllllPNS_18normestimatorstateEPNS_8ae_stateE(i64 noundef 3, i64 noundef 3, i64 noundef 10, i64 noundef 1, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZN11alglib_impl20normestimatorsetseedEPNS_18normestimatorstateElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef 0, ptr noundef %1)
  call void @_ZN11alglib_impl20normestimatorsetseedEPNS_18normestimatorstateElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef 0, ptr noundef %1)
  br label %.preheader181

.preheader181:                                    ; preds = %56, %.preheader181
  %.0169197 = phi i64 [ 0, %56 ], [ %spec.select, %.preheader181 ]
  %.0173196 = phi i64 [ 1, %56 ], [ %116, %.preheader181 ]
  %57 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %58 = call double @llvm.fmuladd.f64(double %57, double 2.000000e+00, double -1.000000e+00)
  %59 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef 1.000000e+01, double noundef %58, ptr noundef %1)
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef 3, i64 noundef 3, i64 noundef 1, ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZN11alglib_impl14rmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 3, double noundef 2.000000e+00, ptr noundef nonnull %4, ptr noundef %1)
  %60 = load ptr, ptr %11, align 8, !tbaa !9
  %61 = load ptr, ptr %60, align 8, !tbaa !10
  %62 = load double, ptr %61, align 8, !tbaa !5
  %63 = fmul double %59, %62
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 0, double noundef %63, ptr noundef %1)
  %64 = load ptr, ptr %11, align 8, !tbaa !9
  %65 = load ptr, ptr %64, align 8, !tbaa !10
  %66 = getelementptr inbounds i8, ptr %65, i64 8
  %67 = load double, ptr %66, align 8, !tbaa !5
  %68 = fmul double %59, %67
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 1, double noundef %68, ptr noundef %1)
  %69 = load ptr, ptr %11, align 8, !tbaa !9
  %70 = load ptr, ptr %69, align 8, !tbaa !10
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %72 = load double, ptr %71, align 8, !tbaa !5
  %73 = fmul double %59, %72
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 2, double noundef %73, ptr noundef %1)
  %74 = load ptr, ptr %11, align 8, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %74, i64 8
  %76 = load ptr, ptr %75, align 8, !tbaa !10
  %77 = load double, ptr %76, align 8, !tbaa !5
  %78 = fmul double %59, %77
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 1, i64 noundef 0, double noundef %78, ptr noundef %1)
  %79 = load ptr, ptr %11, align 8, !tbaa !9
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  %81 = load ptr, ptr %80, align 8, !tbaa !10
  %82 = getelementptr inbounds i8, ptr %81, i64 8
  %83 = load double, ptr %82, align 8, !tbaa !5
  %84 = fmul double %59, %83
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 1, i64 noundef 1, double noundef %84, ptr noundef %1)
  %85 = load ptr, ptr %11, align 8, !tbaa !9
  %86 = getelementptr inbounds i8, ptr %85, i64 8
  %87 = load ptr, ptr %86, align 8, !tbaa !10
  %88 = getelementptr inbounds i8, ptr %87, i64 16
  %89 = load double, ptr %88, align 8, !tbaa !5
  %90 = fmul double %59, %89
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 1, i64 noundef 2, double noundef %90, ptr noundef %1)
  %91 = load ptr, ptr %11, align 8, !tbaa !9
  %92 = getelementptr inbounds i8, ptr %91, i64 16
  %93 = load ptr, ptr %92, align 8, !tbaa !10
  %94 = load double, ptr %93, align 8, !tbaa !5
  %95 = fmul double %59, %94
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 2, i64 noundef 0, double noundef %95, ptr noundef %1)
  %96 = load ptr, ptr %11, align 8, !tbaa !9
  %97 = getelementptr inbounds i8, ptr %96, i64 16
  %98 = load ptr, ptr %97, align 8, !tbaa !10
  %99 = getelementptr inbounds i8, ptr %98, i64 8
  %100 = load double, ptr %99, align 8, !tbaa !5
  %101 = fmul double %59, %100
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 2, i64 noundef 1, double noundef %101, ptr noundef %1)
  %102 = load ptr, ptr %11, align 8, !tbaa !9
  %103 = getelementptr inbounds i8, ptr %102, i64 16
  %104 = load ptr, ptr %103, align 8, !tbaa !10
  %105 = getelementptr inbounds i8, ptr %104, i64 16
  %106 = load double, ptr %105, align 8, !tbaa !5
  %107 = fmul double %59, %106
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 2, i64 noundef 2, double noundef %107, ptr noundef %1)
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZN11alglib_impl20normestimatorresultsEPNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZN11alglib_impl20normestimatorresultsEPNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %8, ptr noundef %1)
  %108 = load double, ptr %8, align 8, !tbaa !5
  %109 = fsub double %108, %59
  %110 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %109, ptr noundef %1)
  %111 = load double, ptr %7, align 8, !tbaa !5
  %112 = fsub double %111, %59
  %113 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %112, ptr noundef %1)
  %114 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %110, double noundef %113)
  %115 = zext i1 %114 to i64
  %spec.select = add nuw nsw i64 %.0169197, %115
  %116 = add nuw nsw i64 %.0173196, 1
  %exitcond211.not = icmp eq i64 %116, 2001
  br i1 %exitcond211.not, label %117, label %.preheader181, !llvm.loop !19

117:                                              ; preds = %.preheader181
  br i1 %52, label %124, label %118

118:                                              ; preds = %117
  %119 = uitofp nneg i64 %spec.select to double
  %120 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 5.000000e+02, ptr noundef %1)
  %121 = fmul double %120, 5.000000e+00
  %122 = fadd double %121, 1.000000e+03
  %123 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %119, double noundef %122)
  br label %124

124:                                              ; preds = %118, %117
  %125 = phi i1 [ true, %117 ], [ %123, %118 ]
  call void @_ZN11alglib_impl19normestimatorcreateEllllPNS_18normestimatorstateEPNS_8ae_stateE(i64 noundef 3, i64 noundef 3, i64 noundef 1, i64 noundef 1, ptr noundef nonnull %9, ptr noundef %1)
  call void @_ZN11alglib_impl19normestimatorcreateEllllPNS_18normestimatorstateEPNS_8ae_stateE(i64 noundef 3, i64 noundef 3, i64 noundef 1, i64 noundef 10, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZN11alglib_impl20normestimatorsetseedEPNS_18normestimatorstateElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef 0, ptr noundef %1)
  call void @_ZN11alglib_impl20normestimatorsetseedEPNS_18normestimatorstateElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef 0, ptr noundef %1)
  br label %.preheader

.preheader:                                       ; preds = %124, %.preheader
  %.2171201 = phi i64 [ 0, %124 ], [ %spec.select180, %.preheader ]
  %.1174200 = phi i64 [ 1, %124 ], [ %185, %.preheader ]
  %126 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %127 = call double @llvm.fmuladd.f64(double %126, double 2.000000e+00, double -1.000000e+00)
  %128 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef 1.000000e+01, double noundef %127, ptr noundef %1)
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef 3, i64 noundef 3, i64 noundef 1, ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZN11alglib_impl14rmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 3, double noundef 2.000000e+00, ptr noundef nonnull %4, ptr noundef %1)
  %129 = load ptr, ptr %11, align 8, !tbaa !9
  %130 = load ptr, ptr %129, align 8, !tbaa !10
  %131 = load double, ptr %130, align 8, !tbaa !5
  %132 = fmul double %128, %131
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 0, double noundef %132, ptr noundef %1)
  %133 = load ptr, ptr %11, align 8, !tbaa !9
  %134 = load ptr, ptr %133, align 8, !tbaa !10
  %135 = getelementptr inbounds i8, ptr %134, i64 8
  %136 = load double, ptr %135, align 8, !tbaa !5
  %137 = fmul double %128, %136
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 1, double noundef %137, ptr noundef %1)
  %138 = load ptr, ptr %11, align 8, !tbaa !9
  %139 = load ptr, ptr %138, align 8, !tbaa !10
  %140 = getelementptr inbounds i8, ptr %139, i64 16
  %141 = load double, ptr %140, align 8, !tbaa !5
  %142 = fmul double %128, %141
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 2, double noundef %142, ptr noundef %1)
  %143 = load ptr, ptr %11, align 8, !tbaa !9
  %144 = getelementptr inbounds i8, ptr %143, i64 8
  %145 = load ptr, ptr %144, align 8, !tbaa !10
  %146 = load double, ptr %145, align 8, !tbaa !5
  %147 = fmul double %128, %146
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 1, i64 noundef 0, double noundef %147, ptr noundef %1)
  %148 = load ptr, ptr %11, align 8, !tbaa !9
  %149 = getelementptr inbounds i8, ptr %148, i64 8
  %150 = load ptr, ptr %149, align 8, !tbaa !10
  %151 = getelementptr inbounds i8, ptr %150, i64 8
  %152 = load double, ptr %151, align 8, !tbaa !5
  %153 = fmul double %128, %152
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 1, i64 noundef 1, double noundef %153, ptr noundef %1)
  %154 = load ptr, ptr %11, align 8, !tbaa !9
  %155 = getelementptr inbounds i8, ptr %154, i64 8
  %156 = load ptr, ptr %155, align 8, !tbaa !10
  %157 = getelementptr inbounds i8, ptr %156, i64 16
  %158 = load double, ptr %157, align 8, !tbaa !5
  %159 = fmul double %128, %158
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 1, i64 noundef 2, double noundef %159, ptr noundef %1)
  %160 = load ptr, ptr %11, align 8, !tbaa !9
  %161 = getelementptr inbounds i8, ptr %160, i64 16
  %162 = load ptr, ptr %161, align 8, !tbaa !10
  %163 = load double, ptr %162, align 8, !tbaa !5
  %164 = fmul double %128, %163
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 2, i64 noundef 0, double noundef %164, ptr noundef %1)
  %165 = load ptr, ptr %11, align 8, !tbaa !9
  %166 = getelementptr inbounds i8, ptr %165, i64 16
  %167 = load ptr, ptr %166, align 8, !tbaa !10
  %168 = getelementptr inbounds i8, ptr %167, i64 8
  %169 = load double, ptr %168, align 8, !tbaa !5
  %170 = fmul double %128, %169
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 2, i64 noundef 1, double noundef %170, ptr noundef %1)
  %171 = load ptr, ptr %11, align 8, !tbaa !9
  %172 = getelementptr inbounds i8, ptr %171, i64 16
  %173 = load ptr, ptr %172, align 8, !tbaa !10
  %174 = getelementptr inbounds i8, ptr %173, i64 16
  %175 = load double, ptr %174, align 8, !tbaa !5
  %176 = fmul double %128, %175
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 2, i64 noundef 2, double noundef %176, ptr noundef %1)
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZN11alglib_impl20normestimatorresultsEPNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZN11alglib_impl20normestimatorresultsEPNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %8, ptr noundef %1)
  %177 = load double, ptr %8, align 8, !tbaa !5
  %178 = fsub double %177, %128
  %179 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %178, ptr noundef %1)
  %180 = load double, ptr %7, align 8, !tbaa !5
  %181 = fsub double %180, %128
  %182 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %181, ptr noundef %1)
  %183 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %179, double noundef %182)
  %184 = zext i1 %183 to i64
  %spec.select180 = add nuw nsw i64 %.2171201, %184
  %185 = add nuw nsw i64 %.1174200, 1
  %exitcond214.not = icmp eq i64 %185, 2001
  br i1 %exitcond214.not, label %186, label %.preheader, !llvm.loop !20

186:                                              ; preds = %.preheader
  br i1 %125, label %193, label %187

187:                                              ; preds = %186
  %188 = uitofp nneg i64 %spec.select180 to double
  %189 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 5.000000e+02, ptr noundef %1)
  %190 = fmul double %189, 5.000000e+00
  %191 = fadd double %190, 1.000000e+03
  %192 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %188, double noundef %191)
  br label %193

193:                                              ; preds = %187, %186
  %194 = phi i1 [ true, %186 ], [ %192, %187 ]
  br i1 %0, label %201, label %195

195:                                              ; preds = %193
  %196 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.349)
  %197 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.350)
  %.str.7..str.6 = select i1 %194, ptr @.str.7, ptr @.str.6
  %.str.1..str.2 = select i1 %194, ptr @.str.1, ptr @.str.2
  %198 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %199 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2)
  %200 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %201

201:                                              ; preds = %195, %193
  %202 = xor i1 %194, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 792, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 792, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  ret i1 %202
}

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

declare void @_ZN11alglib_impl19normestimatorcreateEllllPNS_18normestimatorstateEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl27normestimatorestimatesparseEPNS_18normestimatorstateEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl20normestimatorresultsEPNS_18normestimatorstateEPdPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl20normestimatorsetseedEPNS_18normestimatorstateElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nofree nounwind "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}


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