; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z9testtrfacbPN11alglib_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_complex" = type { double, double }

@.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.8 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.206 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.207 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.208 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.209 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.210 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.211 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.212 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [32 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 noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef, ptr noundef) #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 void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #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 zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) #1

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

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

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

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

declare noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef) #1

declare { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1

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

declare { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double, double, double, double) #1

declare { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef) #1

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z9testtrfacbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #5 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %7 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %10 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %11 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca %"struct.alglib_impl::ae_complex", align 8
  %20 = alloca double, align 8
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  %26 = alloca i8, align 1
  %27 = alloca i8, align 1
  %28 = alloca i8, align 1
  %29 = alloca i8, align 1
  %30 = alloca double, align 8
  %31 = alloca i64, align 8
  %32 = alloca i8, align 1
  %33 = alloca %"struct.alglib_impl::ae_complex", align 8
  %34 = alloca %"struct.alglib_impl::ae_complex", align 8
  %35 = alloca %"struct.alglib_impl::ae_complex", align 8
  %36 = alloca %"struct.alglib_impl::ae_complex", align 8
  %37 = alloca %"struct.alglib_impl::ae_complex", align 8
  %38 = alloca %"struct.alglib_impl::ae_complex", align 8
  %39 = alloca %"struct.alglib_impl::ae_complex", align 8
  %40 = alloca %"struct.alglib_impl::ae_complex", align 8
  %41 = alloca %"struct.alglib_impl::ae_complex", align 8
  %42 = alloca %"struct.alglib_impl::ae_complex", align 8
  %43 = alloca %"struct.alglib_impl::ae_complex", align 8
  %44 = alloca %"struct.alglib_impl::ae_complex", align 8
  %45 = alloca %"struct.alglib_impl::ae_complex", align 8
  %46 = alloca %"struct.alglib_impl::ae_complex", align 8
  %47 = alloca %"struct.alglib_impl::ae_complex", align 8
  %48 = alloca %"struct.alglib_impl::ae_complex", align 8
  %49 = alloca %"struct.alglib_impl::ae_complex", align 8
  %50 = alloca %"struct.alglib_impl::ae_complex", align 8
  %51 = alloca %"struct.alglib_impl::ae_complex", align 8
  %52 = alloca %"struct.alglib_impl::ae_complex", align 8
  %53 = zext i1 %0 to i8
  store i8 %53, 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) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #6
  %54 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %54, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 80, i1 false)
  %55 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %6, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %55, i1 noundef zeroext true)
  %56 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %7, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %56, i1 noundef zeroext true)
  %57 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %8, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %57, i1 noundef zeroext true)
  %58 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %9, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %58, i1 noundef zeroext true)
  %59 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %10, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %59, i1 noundef zeroext true)
  %60 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %11, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %60, i1 noundef zeroext true)
  store i8 0, ptr %26, align 1, !tbaa !5
  store i8 0, ptr %22, align 1, !tbaa !5
  store i8 0, ptr %23, align 1, !tbaa !5
  store i8 0, ptr %27, align 1, !tbaa !5
  store i8 0, ptr %25, align 1, !tbaa !5
  store i8 0, ptr %28, align 1, !tbaa !5
  store i8 0, ptr %29, align 1, !tbaa !5
  store i8 0, ptr %24, align 1, !tbaa !5
  store i8 0, ptr %21, align 1, !tbaa !5
  %61 = load ptr, ptr %4, align 8, !tbaa !9
  %62 = call noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef %61)
  %63 = mul nsw i64 4, %62
  %64 = add nsw i64 %63, 1
  store i64 %64, ptr %15, align 8, !tbaa !11
  store i64 256, ptr %16, align 8, !tbaa !11
  %65 = load i64, ptr %15, align 8, !tbaa !11
  %66 = sitofp i64 %65 to double
  %67 = fmul double 5.000000e-13, %66
  store double %67, ptr %30, align 8, !tbaa !13
  %68 = load ptr, ptr %4, align 8, !tbaa !9
  %69 = call noundef zeroext i1 @_Z22sparserealcholeskytestPN11alglib_impl8ae_stateE(ptr noundef %68)
  %70 = zext i1 %69 to i8
  store i8 %70, ptr %23, align 1, !tbaa !5
  %71 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_Z16sparsereallutestPbPN11alglib_impl8ae_stateE(ptr noundef %24, ptr noundef %71)
  %72 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL38testtrfacunit_testdensecholeskyupdatesPbPN11alglib_impl8ae_stateE(ptr noundef %29, ptr noundef %72)
  store i64 1, ptr %14, align 8, !tbaa !11
  br label %73

73:                                               ; preds = %250, %2
  %74 = load i64, ptr %14, align 8, !tbaa !11
  %75 = load i64, ptr %15, align 8, !tbaa !11
  %76 = icmp sle i64 %74, %75
  br i1 %76, label %77, label %253

77:                                               ; preds = %73
  %78 = load i64, ptr %14, align 8, !tbaa !11
  %79 = load ptr, ptr %4, align 8, !tbaa !9
  %80 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %78, ptr noundef %79)
  %81 = add nsw i64 1, %80
  store i64 %81, ptr %13, align 8, !tbaa !11
  %82 = load i64, ptr %14, align 8, !tbaa !11
  %83 = load ptr, ptr %4, align 8, !tbaa !9
  %84 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %82, ptr noundef %83)
  %85 = add nsw i64 1, %84
  store i64 %85, ptr %12, align 8, !tbaa !11
  %86 = load ptr, ptr %4, align 8, !tbaa !9
  %87 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %86)
  %88 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %87, double noundef 5.000000e-01)
  br i1 %88, label %89, label %91

89:                                               ; preds = %77
  %90 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %90, ptr %13, align 8, !tbaa !11
  br label %93

91:                                               ; preds = %77
  %92 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %92, ptr %12, align 8, !tbaa !11
  br label %93

93:                                               ; preds = %91, %89
  %94 = load i64, ptr %12, align 8, !tbaa !11
  %95 = load i64, ptr %13, align 8, !tbaa !11
  %96 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %94, i64 noundef %95, ptr noundef %96)
  %97 = load i64, ptr %12, align 8, !tbaa !11
  %98 = load i64, ptr %13, align 8, !tbaa !11
  %99 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %97, i64 noundef %98, ptr noundef %99)
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %100

100:                                              ; preds = %135, %93
  %101 = load i64, ptr %17, align 8, !tbaa !11
  %102 = load i64, ptr %12, align 8, !tbaa !11
  %103 = sub nsw i64 %102, 1
  %104 = icmp sle i64 %101, %103
  br i1 %104, label %105, label %138

105:                                              ; preds = %100
  store i64 0, ptr %18, align 8, !tbaa !11
  br label %106

106:                                              ; preds = %131, %105
  %107 = load i64, ptr %18, align 8, !tbaa !11
  %108 = load i64, ptr %13, align 8, !tbaa !11
  %109 = sub nsw i64 %108, 1
  %110 = icmp sle i64 %107, %109
  br i1 %110, label %111, label %134

111:                                              ; preds = %106
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %113 = load ptr, ptr %112, align 8, !tbaa !15
  %114 = load i64, ptr %17, align 8, !tbaa !11
  %115 = getelementptr inbounds ptr, ptr %113, i64 %114
  %116 = load ptr, ptr %115, align 8, !tbaa !9
  %117 = load i64, ptr %18, align 8, !tbaa !11
  %118 = getelementptr inbounds double, ptr %116, i64 %117
  store double 0.000000e+00, ptr %118, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #6
  %119 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %120 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %121 = extractvalue { double, double } %119, 0
  store double %121, ptr %120, align 8
  %122 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %123 = extractvalue { double, double } %119, 1
  store double %123, ptr %122, align 8
  %124 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %125 = load ptr, ptr %124, align 8, !tbaa !15
  %126 = load i64, ptr %17, align 8, !tbaa !11
  %127 = getelementptr inbounds ptr, ptr %125, i64 %126
  %128 = load ptr, ptr %127, align 8, !tbaa !9
  %129 = load i64, ptr %18, align 8, !tbaa !11
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %128, i64 %129
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %130, ptr align 8 %33, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  br label %131

131:                                              ; preds = %111
  %132 = load i64, ptr %18, align 8, !tbaa !11
  %133 = add nsw i64 %132, 1
  store i64 %133, ptr %18, align 8, !tbaa !11
  br label %106, !llvm.loop !17

134:                                              ; preds = %106
  br label %135

135:                                              ; preds = %134
  %136 = load i64, ptr %17, align 8, !tbaa !11
  %137 = add nsw i64 %136, 1
  store i64 %137, ptr %17, align 8, !tbaa !11
  br label %100, !llvm.loop !19

138:                                              ; preds = %100
  %139 = load i64, ptr %12, align 8, !tbaa !11
  %140 = load i64, ptr %13, align 8, !tbaa !11
  %141 = load double, ptr %30, align 8, !tbaa !13
  %142 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL28testtrfacunit_testcluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef %9, i64 noundef %139, i64 noundef %140, double noundef %141, ptr noundef %27, ptr noundef %28, ptr noundef %142)
  %143 = load i64, ptr %12, align 8, !tbaa !11
  %144 = load i64, ptr %13, align 8, !tbaa !11
  %145 = load double, ptr %30, align 8, !tbaa !13
  %146 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL28testtrfacunit_testrluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef %6, i64 noundef %143, i64 noundef %144, double noundef %145, ptr noundef %26, ptr noundef %28, ptr noundef %146)
  %147 = load i64, ptr %12, align 8, !tbaa !11
  %148 = load i64, ptr %13, align 8, !tbaa !11
  %149 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %147, i64 noundef %148, ptr noundef %149)
  %150 = load i64, ptr %12, align 8, !tbaa !11
  %151 = load i64, ptr %13, align 8, !tbaa !11
  %152 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %150, i64 noundef %151, ptr noundef %152)
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %153

153:                                              ; preds = %188, %138
  %154 = load i64, ptr %17, align 8, !tbaa !11
  %155 = load i64, ptr %12, align 8, !tbaa !11
  %156 = sub nsw i64 %155, 1
  %157 = icmp sle i64 %154, %156
  br i1 %157, label %158, label %191

158:                                              ; preds = %153
  store i64 0, ptr %18, align 8, !tbaa !11
  br label %159

159:                                              ; preds = %184, %158
  %160 = load i64, ptr %18, align 8, !tbaa !11
  %161 = load i64, ptr %13, align 8, !tbaa !11
  %162 = sub nsw i64 %161, 1
  %163 = icmp sle i64 %160, %162
  br i1 %163, label %164, label %187

164:                                              ; preds = %159
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %166 = load ptr, ptr %165, align 8, !tbaa !15
  %167 = load i64, ptr %17, align 8, !tbaa !11
  %168 = getelementptr inbounds ptr, ptr %166, i64 %167
  %169 = load ptr, ptr %168, align 8, !tbaa !9
  %170 = load i64, ptr %18, align 8, !tbaa !11
  %171 = getelementptr inbounds double, ptr %169, i64 %170
  store double 0.000000e+00, ptr %171, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #6
  %172 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %173 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %174 = extractvalue { double, double } %172, 0
  store double %174, ptr %173, align 8
  %175 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %176 = extractvalue { double, double } %172, 1
  store double %176, ptr %175, align 8
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %178 = load ptr, ptr %177, align 8, !tbaa !15
  %179 = load i64, ptr %17, align 8, !tbaa !11
  %180 = getelementptr inbounds ptr, ptr %178, i64 %179
  %181 = load ptr, ptr %180, align 8, !tbaa !9
  %182 = load i64, ptr %18, align 8, !tbaa !11
  %183 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %181, i64 %182
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %183, ptr align 8 %34, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  br label %184

184:                                              ; preds = %164
  %185 = load i64, ptr %18, align 8, !tbaa !11
  %186 = add nsw i64 %185, 1
  store i64 %186, ptr %18, align 8, !tbaa !11
  br label %159, !llvm.loop !20

187:                                              ; preds = %159
  br label %188

188:                                              ; preds = %187
  %189 = load i64, ptr %17, align 8, !tbaa !11
  %190 = add nsw i64 %189, 1
  store i64 %190, ptr %17, align 8, !tbaa !11
  br label %153, !llvm.loop !21

191:                                              ; preds = %153
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %192

192:                                              ; preds = %226, %191
  %193 = load i64, ptr %17, align 8, !tbaa !11
  %194 = load i64, ptr %12, align 8, !tbaa !11
  %195 = load i64, ptr %13, align 8, !tbaa !11
  %196 = load ptr, ptr %4, align 8, !tbaa !9
  %197 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %194, i64 noundef %195, ptr noundef %196)
  %198 = sub nsw i64 %197, 1
  %199 = icmp sle i64 %193, %198
  br i1 %199, label %200, label %229

200:                                              ; preds = %192
  %201 = load ptr, ptr %4, align 8, !tbaa !9
  %202 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %201)
  %203 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %202, double 1.000000e+00)
  %204 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %205 = load ptr, ptr %204, align 8, !tbaa !15
  %206 = load i64, ptr %17, align 8, !tbaa !11
  %207 = getelementptr inbounds ptr, ptr %205, i64 %206
  %208 = load ptr, ptr %207, align 8, !tbaa !9
  %209 = load i64, ptr %17, align 8, !tbaa !11
  %210 = getelementptr inbounds double, ptr %208, i64 %209
  store double %203, ptr %210, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #6
  %211 = load ptr, ptr %4, align 8, !tbaa !9
  %212 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %211)
  %213 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %212, double 1.000000e+00)
  %214 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %213)
  %215 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %216 = extractvalue { double, double } %214, 0
  store double %216, ptr %215, align 8
  %217 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %218 = extractvalue { double, double } %214, 1
  store double %218, ptr %217, align 8
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %220 = load ptr, ptr %219, align 8, !tbaa !15
  %221 = load i64, ptr %17, align 8, !tbaa !11
  %222 = getelementptr inbounds ptr, ptr %220, i64 %221
  %223 = load ptr, ptr %222, align 8, !tbaa !9
  %224 = load i64, ptr %17, align 8, !tbaa !11
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %223, i64 %224
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %225, ptr align 8 %35, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  br label %226

226:                                              ; preds = %200
  %227 = load i64, ptr %17, align 8, !tbaa !11
  %228 = add nsw i64 %227, 1
  store i64 %228, ptr %17, align 8, !tbaa !11
  br label %192, !llvm.loop !22

229:                                              ; preds = %192
  %230 = load i64, ptr %12, align 8, !tbaa !11
  %231 = load i64, ptr %13, align 8, !tbaa !11
  %232 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl31cmatrixrndorthogonalfromtheleftEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %230, i64 noundef %231, ptr noundef %232)
  %233 = load i64, ptr %12, align 8, !tbaa !11
  %234 = load i64, ptr %13, align 8, !tbaa !11
  %235 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl32cmatrixrndorthogonalfromtherightEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %233, i64 noundef %234, ptr noundef %235)
  %236 = load i64, ptr %12, align 8, !tbaa !11
  %237 = load i64, ptr %13, align 8, !tbaa !11
  %238 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl31rmatrixrndorthogonalfromtheleftEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %236, i64 noundef %237, ptr noundef %238)
  %239 = load i64, ptr %12, align 8, !tbaa !11
  %240 = load i64, ptr %13, align 8, !tbaa !11
  %241 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl32rmatrixrndorthogonalfromtherightEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %239, i64 noundef %240, ptr noundef %241)
  %242 = load i64, ptr %12, align 8, !tbaa !11
  %243 = load i64, ptr %13, align 8, !tbaa !11
  %244 = load double, ptr %30, align 8, !tbaa !13
  %245 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL28testtrfacunit_testcluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef %9, i64 noundef %242, i64 noundef %243, double noundef %244, ptr noundef %27, ptr noundef %28, ptr noundef %245)
  %246 = load i64, ptr %12, align 8, !tbaa !11
  %247 = load i64, ptr %13, align 8, !tbaa !11
  %248 = load double, ptr %30, align 8, !tbaa !13
  %249 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL28testtrfacunit_testrluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef %6, i64 noundef %246, i64 noundef %247, double noundef %248, ptr noundef %26, ptr noundef %28, ptr noundef %249)
  br label %250

250:                                              ; preds = %229
  %251 = load i64, ptr %14, align 8, !tbaa !11
  %252 = add nsw i64 %251, 1
  store i64 %252, ptr %14, align 8, !tbaa !11
  br label %73, !llvm.loop !23

253:                                              ; preds = %73
  store i64 1, ptr %31, align 8, !tbaa !11
  br label %254

254:                                              ; preds = %371, %253
  %255 = load i64, ptr %31, align 8, !tbaa !11
  %256 = icmp sle i64 %255, 2
  br i1 %256, label %257, label %374

257:                                              ; preds = %254
  %258 = load i64, ptr %16, align 8, !tbaa !11
  %259 = load ptr, ptr %4, align 8, !tbaa !9
  %260 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %259)
  %261 = sub nsw i64 %260, 1
  %262 = add nsw i64 %258, %261
  store i64 %262, ptr %12, align 8, !tbaa !11
  %263 = load i64, ptr %16, align 8, !tbaa !11
  %264 = load ptr, ptr %4, align 8, !tbaa !9
  %265 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %264)
  %266 = sub nsw i64 %265, 1
  %267 = add nsw i64 %263, %266
  store i64 %267, ptr %13, align 8, !tbaa !11
  %268 = load i64, ptr %12, align 8, !tbaa !11
  %269 = load i64, ptr %13, align 8, !tbaa !11
  %270 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %268, i64 noundef %269, ptr noundef %270)
  %271 = load i64, ptr %12, align 8, !tbaa !11
  %272 = load i64, ptr %13, align 8, !tbaa !11
  %273 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %271, i64 noundef %272, ptr noundef %273)
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %274

274:                                              ; preds = %309, %257
  %275 = load i64, ptr %17, align 8, !tbaa !11
  %276 = load i64, ptr %12, align 8, !tbaa !11
  %277 = sub nsw i64 %276, 1
  %278 = icmp sle i64 %275, %277
  br i1 %278, label %279, label %312

279:                                              ; preds = %274
  store i64 0, ptr %18, align 8, !tbaa !11
  br label %280

280:                                              ; preds = %305, %279
  %281 = load i64, ptr %18, align 8, !tbaa !11
  %282 = load i64, ptr %13, align 8, !tbaa !11
  %283 = sub nsw i64 %282, 1
  %284 = icmp sle i64 %281, %283
  br i1 %284, label %285, label %308

285:                                              ; preds = %280
  %286 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %287 = load ptr, ptr %286, align 8, !tbaa !15
  %288 = load i64, ptr %17, align 8, !tbaa !11
  %289 = getelementptr inbounds ptr, ptr %287, i64 %288
  %290 = load ptr, ptr %289, align 8, !tbaa !9
  %291 = load i64, ptr %18, align 8, !tbaa !11
  %292 = getelementptr inbounds double, ptr %290, i64 %291
  store double 0.000000e+00, ptr %292, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #6
  %293 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %294 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %295 = extractvalue { double, double } %293, 0
  store double %295, ptr %294, align 8
  %296 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %297 = extractvalue { double, double } %293, 1
  store double %297, ptr %296, align 8
  %298 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %299 = load ptr, ptr %298, align 8, !tbaa !15
  %300 = load i64, ptr %17, align 8, !tbaa !11
  %301 = getelementptr inbounds ptr, ptr %299, i64 %300
  %302 = load ptr, ptr %301, align 8, !tbaa !9
  %303 = load i64, ptr %18, align 8, !tbaa !11
  %304 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %302, i64 %303
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %304, ptr align 8 %36, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  br label %305

305:                                              ; preds = %285
  %306 = load i64, ptr %18, align 8, !tbaa !11
  %307 = add nsw i64 %306, 1
  store i64 %307, ptr %18, align 8, !tbaa !11
  br label %280, !llvm.loop !24

308:                                              ; preds = %280
  br label %309

309:                                              ; preds = %308
  %310 = load i64, ptr %17, align 8, !tbaa !11
  %311 = add nsw i64 %310, 1
  store i64 %311, ptr %17, align 8, !tbaa !11
  br label %274, !llvm.loop !25

312:                                              ; preds = %274
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %313

313:                                              ; preds = %347, %312
  %314 = load i64, ptr %17, align 8, !tbaa !11
  %315 = load i64, ptr %12, align 8, !tbaa !11
  %316 = load i64, ptr %13, align 8, !tbaa !11
  %317 = load ptr, ptr %4, align 8, !tbaa !9
  %318 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %315, i64 noundef %316, ptr noundef %317)
  %319 = sub nsw i64 %318, 1
  %320 = icmp sle i64 %314, %319
  br i1 %320, label %321, label %350

321:                                              ; preds = %313
  %322 = load ptr, ptr %4, align 8, !tbaa !9
  %323 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %322)
  %324 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %323, double 1.000000e+00)
  %325 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %326 = load ptr, ptr %325, align 8, !tbaa !15
  %327 = load i64, ptr %17, align 8, !tbaa !11
  %328 = getelementptr inbounds ptr, ptr %326, i64 %327
  %329 = load ptr, ptr %328, align 8, !tbaa !9
  %330 = load i64, ptr %17, align 8, !tbaa !11
  %331 = getelementptr inbounds double, ptr %329, i64 %330
  store double %324, ptr %331, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #6
  %332 = load ptr, ptr %4, align 8, !tbaa !9
  %333 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %332)
  %334 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %333, double 1.000000e+00)
  %335 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %334)
  %336 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %337 = extractvalue { double, double } %335, 0
  store double %337, ptr %336, align 8
  %338 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %339 = extractvalue { double, double } %335, 1
  store double %339, ptr %338, align 8
  %340 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %341 = load ptr, ptr %340, align 8, !tbaa !15
  %342 = load i64, ptr %17, align 8, !tbaa !11
  %343 = getelementptr inbounds ptr, ptr %341, i64 %342
  %344 = load ptr, ptr %343, align 8, !tbaa !9
  %345 = load i64, ptr %17, align 8, !tbaa !11
  %346 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %344, i64 %345
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %346, ptr align 8 %37, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #6
  br label %347

347:                                              ; preds = %321
  %348 = load i64, ptr %17, align 8, !tbaa !11
  %349 = add nsw i64 %348, 1
  store i64 %349, ptr %17, align 8, !tbaa !11
  br label %313, !llvm.loop !26

350:                                              ; preds = %313
  %351 = load i64, ptr %12, align 8, !tbaa !11
  %352 = load i64, ptr %13, align 8, !tbaa !11
  %353 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl31cmatrixrndorthogonalfromtheleftEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %351, i64 noundef %352, ptr noundef %353)
  %354 = load i64, ptr %12, align 8, !tbaa !11
  %355 = load i64, ptr %13, align 8, !tbaa !11
  %356 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl32cmatrixrndorthogonalfromtherightEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %354, i64 noundef %355, ptr noundef %356)
  %357 = load i64, ptr %12, align 8, !tbaa !11
  %358 = load i64, ptr %13, align 8, !tbaa !11
  %359 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl31rmatrixrndorthogonalfromtheleftEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %357, i64 noundef %358, ptr noundef %359)
  %360 = load i64, ptr %12, align 8, !tbaa !11
  %361 = load i64, ptr %13, align 8, !tbaa !11
  %362 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl32rmatrixrndorthogonalfromtherightEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %360, i64 noundef %361, ptr noundef %362)
  %363 = load i64, ptr %12, align 8, !tbaa !11
  %364 = load i64, ptr %13, align 8, !tbaa !11
  %365 = load double, ptr %30, align 8, !tbaa !13
  %366 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL28testtrfacunit_testcluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef %9, i64 noundef %363, i64 noundef %364, double noundef %365, ptr noundef %27, ptr noundef %28, ptr noundef %366)
  %367 = load i64, ptr %12, align 8, !tbaa !11
  %368 = load i64, ptr %13, align 8, !tbaa !11
  %369 = load double, ptr %30, align 8, !tbaa !13
  %370 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL28testtrfacunit_testrluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef %6, i64 noundef %367, i64 noundef %368, double noundef %369, ptr noundef %26, ptr noundef %28, ptr noundef %370)
  br label %371

371:                                              ; preds = %350
  %372 = load i64, ptr %31, align 8, !tbaa !11
  %373 = add nsw i64 %372, 1
  store i64 %373, ptr %31, align 8, !tbaa !11
  br label %254, !llvm.loop !27

374:                                              ; preds = %254
  store i64 1, ptr %13, align 8, !tbaa !11
  br label %375

375:                                              ; preds = %1055, %374
  %376 = load i64, ptr %13, align 8, !tbaa !11
  %377 = load i64, ptr %15, align 8, !tbaa !11
  %378 = icmp sle i64 %376, %377
  br i1 %378, label %379, label %1058

379:                                              ; preds = %375
  %380 = load i64, ptr %13, align 8, !tbaa !11
  %381 = load ptr, ptr %4, align 8, !tbaa !9
  %382 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %381)
  %383 = call double @llvm.fmuladd.f64(double 5.000000e+01, double %382, double 1.000000e+00)
  %384 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl16hpdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %380, double noundef %383, ptr noundef %9, ptr noundef %384)
  %385 = load i64, ptr %13, align 8, !tbaa !11
  %386 = load i64, ptr %13, align 8, !tbaa !11
  %387 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %10, i64 noundef %385, i64 noundef %386, ptr noundef %387)
  %388 = load i64, ptr %13, align 8, !tbaa !11
  %389 = load i64, ptr %13, align 8, !tbaa !11
  %390 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %11, i64 noundef %388, i64 noundef %389, ptr noundef %390)
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %391

391:                                              ; preds = %433, %379
  %392 = load i64, ptr %17, align 8, !tbaa !11
  %393 = load i64, ptr %13, align 8, !tbaa !11
  %394 = sub nsw i64 %393, 1
  %395 = icmp sle i64 %392, %394
  br i1 %395, label %396, label %436

396:                                              ; preds = %391
  store i64 0, ptr %18, align 8, !tbaa !11
  br label %397

397:                                              ; preds = %429, %396
  %398 = load i64, ptr %18, align 8, !tbaa !11
  %399 = load i64, ptr %13, align 8, !tbaa !11
  %400 = sub nsw i64 %399, 1
  %401 = icmp sle i64 %398, %400
  br i1 %401, label %402, label %432

402:                                              ; preds = %397
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #6
  %403 = load i64, ptr %17, align 8, !tbaa !11
  %404 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef %403)
  %405 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %406 = extractvalue { double, double } %404, 0
  store double %406, ptr %405, align 8
  %407 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %408 = extractvalue { double, double } %404, 1
  store double %408, ptr %407, align 8
  %409 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 6
  %410 = load ptr, ptr %409, align 8, !tbaa !15
  %411 = load i64, ptr %17, align 8, !tbaa !11
  %412 = getelementptr inbounds ptr, ptr %410, i64 %411
  %413 = load ptr, ptr %412, align 8, !tbaa !9
  %414 = load i64, ptr %18, align 8, !tbaa !11
  %415 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %413, i64 %414
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %415, ptr align 8 %38, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #6
  %416 = load i64, ptr %18, align 8, !tbaa !11
  %417 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef %416)
  %418 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %419 = extractvalue { double, double } %417, 0
  store double %419, ptr %418, align 8
  %420 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %421 = extractvalue { double, double } %417, 1
  store double %421, ptr %420, align 8
  %422 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %11, i32 0, i32 6
  %423 = load ptr, ptr %422, align 8, !tbaa !15
  %424 = load i64, ptr %17, align 8, !tbaa !11
  %425 = getelementptr inbounds ptr, ptr %423, i64 %424
  %426 = load ptr, ptr %425, align 8, !tbaa !9
  %427 = load i64, ptr %18, align 8, !tbaa !11
  %428 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %426, i64 %427
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %428, ptr align 8 %39, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #6
  br label %429

429:                                              ; preds = %402
  %430 = load i64, ptr %18, align 8, !tbaa !11
  %431 = add nsw i64 %430, 1
  store i64 %431, ptr %18, align 8, !tbaa !11
  br label %397, !llvm.loop !28

432:                                              ; preds = %397
  br label %433

433:                                              ; preds = %432
  %434 = load i64, ptr %17, align 8, !tbaa !11
  %435 = add nsw i64 %434, 1
  store i64 %435, ptr %17, align 8, !tbaa !11
  br label %391, !llvm.loop !29

436:                                              ; preds = %391
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %437

437:                                              ; preds = %475, %436
  %438 = load i64, ptr %17, align 8, !tbaa !11
  %439 = load i64, ptr %13, align 8, !tbaa !11
  %440 = sub nsw i64 %439, 1
  %441 = icmp sle i64 %438, %440
  br i1 %441, label %442, label %478

442:                                              ; preds = %437
  %443 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 6
  %444 = load ptr, ptr %443, align 8, !tbaa !15
  %445 = load i64, ptr %17, align 8, !tbaa !11
  %446 = getelementptr inbounds ptr, ptr %444, i64 %445
  %447 = load ptr, ptr %446, align 8, !tbaa !9
  %448 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %447, i64 0
  %449 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %450 = load ptr, ptr %449, align 8, !tbaa !15
  %451 = load i64, ptr %17, align 8, !tbaa !11
  %452 = getelementptr inbounds ptr, ptr %450, i64 %451
  %453 = load ptr, ptr %452, align 8, !tbaa !9
  %454 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %453, i64 0
  %455 = load i64, ptr %17, align 8, !tbaa !11
  %456 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %455)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %448, i64 noundef 1, ptr noundef %454, i64 noundef 1, ptr noundef @.str.191, i64 noundef %456)
  %457 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %11, i32 0, i32 6
  %458 = load ptr, ptr %457, align 8, !tbaa !15
  %459 = load i64, ptr %17, align 8, !tbaa !11
  %460 = getelementptr inbounds ptr, ptr %458, i64 %459
  %461 = load ptr, ptr %460, align 8, !tbaa !9
  %462 = load i64, ptr %17, align 8, !tbaa !11
  %463 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %461, i64 %462
  %464 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %465 = load ptr, ptr %464, align 8, !tbaa !15
  %466 = load i64, ptr %17, align 8, !tbaa !11
  %467 = getelementptr inbounds ptr, ptr %465, i64 %466
  %468 = load ptr, ptr %467, align 8, !tbaa !9
  %469 = load i64, ptr %17, align 8, !tbaa !11
  %470 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %468, i64 %469
  %471 = load i64, ptr %17, align 8, !tbaa !11
  %472 = load i64, ptr %13, align 8, !tbaa !11
  %473 = sub nsw i64 %472, 1
  %474 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %471, i64 noundef %473)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %463, i64 noundef 1, ptr noundef %470, i64 noundef 1, ptr noundef @.str.191, i64 noundef %474)
  br label %475

475:                                              ; preds = %442
  %476 = load i64, ptr %17, align 8, !tbaa !11
  %477 = add nsw i64 %476, 1
  store i64 %477, ptr %17, align 8, !tbaa !11
  br label %437, !llvm.loop !30

478:                                              ; preds = %437
  %479 = load i64, ptr %13, align 8, !tbaa !11
  %480 = load ptr, ptr %4, align 8, !tbaa !9
  %481 = call noundef zeroext i1 @_ZN11alglib_impl17hpdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %10, i64 noundef %479, i1 noundef zeroext false, ptr noundef %480)
  br i1 %481, label %482, label %582

482:                                              ; preds = %478
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %483

483:                                              ; preds = %578, %482
  %484 = load i64, ptr %17, align 8, !tbaa !11
  %485 = load i64, ptr %13, align 8, !tbaa !11
  %486 = sub nsw i64 %485, 1
  %487 = icmp sle i64 %484, %486
  br i1 %487, label %488, label %581

488:                                              ; preds = %483
  store i64 0, ptr %18, align 8, !tbaa !11
  br label %489

489:                                              ; preds = %574, %488
  %490 = load i64, ptr %18, align 8, !tbaa !11
  %491 = load i64, ptr %13, align 8, !tbaa !11
  %492 = sub nsw i64 %491, 1
  %493 = icmp sle i64 %490, %492
  br i1 %493, label %494, label %577

494:                                              ; preds = %489
  %495 = load i64, ptr %18, align 8, !tbaa !11
  %496 = load i64, ptr %17, align 8, !tbaa !11
  %497 = icmp sgt i64 %495, %496
  br i1 %497, label %498, label %519

498:                                              ; preds = %494
  %499 = load i8, ptr %25, align 1, !tbaa !5, !range !31, !noundef !32
  %500 = trunc i8 %499 to i1
  br i1 %500, label %516, label %501

501:                                              ; preds = %498
  %502 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 6
  %503 = load ptr, ptr %502, align 8, !tbaa !15
  %504 = load i64, ptr %17, align 8, !tbaa !11
  %505 = getelementptr inbounds ptr, ptr %503, i64 %504
  %506 = load ptr, ptr %505, align 8, !tbaa !9
  %507 = load i64, ptr %18, align 8, !tbaa !11
  %508 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %506, i64 %507
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %508, i64 16, i1 false), !tbaa.struct !16
  %509 = load i64, ptr %17, align 8, !tbaa !11
  %510 = sitofp i64 %509 to double
  %511 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %512 = load double, ptr %511, align 8
  %513 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %514 = load double, ptr %513, align 8
  %515 = call noundef zeroext i1 @_ZN11alglib_impl10ae_c_neq_dENS_10ae_complexEd(double %512, double %514, double noundef %510)
  br label %516

516:                                              ; preds = %501, %498
  %517 = phi i1 [ true, %498 ], [ %515, %501 ]
  %518 = zext i1 %517 to i8
  store i8 %518, ptr %25, align 1, !tbaa !5
  br label %573

519:                                              ; preds = %494
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #6
  %520 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 6
  %521 = load ptr, ptr %520, align 8, !tbaa !15
  %522 = load i64, ptr %17, align 8, !tbaa !11
  %523 = getelementptr inbounds ptr, ptr %521, i64 %522
  %524 = load ptr, ptr %523, align 8, !tbaa !9
  %525 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %524, i64 0
  %526 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 6
  %527 = load ptr, ptr %526, align 8, !tbaa !15
  %528 = load i64, ptr %18, align 8, !tbaa !11
  %529 = getelementptr inbounds ptr, ptr %527, i64 %528
  %530 = load ptr, ptr %529, align 8, !tbaa !9
  %531 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %530, i64 0
  %532 = load i64, ptr %18, align 8, !tbaa !11
  %533 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %532)
  %534 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %525, i64 noundef 1, ptr noundef @.str.191, ptr noundef %531, i64 noundef 1, ptr noundef @.str.190, i64 noundef %533)
  %535 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %536 = extractvalue { double, double } %534, 0
  store double %536, ptr %535, align 8
  %537 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %538 = extractvalue { double, double } %534, 1
  store double %538, ptr %537, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %41, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #6
  %539 = load i8, ptr %25, align 1, !tbaa !5, !range !31, !noundef !32
  %540 = trunc i8 %539 to i1
  br i1 %540, label %570, label %541

541:                                              ; preds = %519
  %542 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %543 = load ptr, ptr %542, align 8, !tbaa !15
  %544 = load i64, ptr %17, align 8, !tbaa !11
  %545 = getelementptr inbounds ptr, ptr %543, i64 %544
  %546 = load ptr, ptr %545, align 8, !tbaa !9
  %547 = load i64, ptr %18, align 8, !tbaa !11
  %548 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %546, i64 %547
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 %548, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !16
  %549 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %550 = load double, ptr %549, align 8
  %551 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %552 = load double, ptr %551, align 8
  %553 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %554 = load double, ptr %553, align 8
  %555 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %556 = load double, ptr %555, align 8
  %557 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %550, double %552, double %554, double %556)
  %558 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %559 = extractvalue { double, double } %557, 0
  store double %559, ptr %558, align 8
  %560 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %561 = extractvalue { double, double } %557, 1
  store double %561, ptr %560, align 8
  %562 = load ptr, ptr %4, align 8, !tbaa !9
  %563 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %564 = load double, ptr %563, align 8
  %565 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %566 = load double, ptr %565, align 8
  %567 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %564, double %566, ptr noundef %562)
  %568 = load double, ptr %30, align 8, !tbaa !13
  %569 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %567, double noundef %568)
  br label %570

570:                                              ; preds = %541, %519
  %571 = phi i1 [ true, %519 ], [ %569, %541 ]
  %572 = zext i1 %571 to i8
  store i8 %572, ptr %25, align 1, !tbaa !5
  br label %573

573:                                              ; preds = %570, %516
  br label %574

574:                                              ; preds = %573
  %575 = load i64, ptr %18, align 8, !tbaa !11
  %576 = add nsw i64 %575, 1
  store i64 %576, ptr %18, align 8, !tbaa !11
  br label %489, !llvm.loop !33

577:                                              ; preds = %489
  br label %578

578:                                              ; preds = %577
  %579 = load i64, ptr %17, align 8, !tbaa !11
  %580 = add nsw i64 %579, 1
  store i64 %580, ptr %17, align 8, !tbaa !11
  br label %483, !llvm.loop !34

581:                                              ; preds = %483
  br label %583

582:                                              ; preds = %478
  store i8 1, ptr %25, align 1, !tbaa !5
  br label %583

583:                                              ; preds = %582, %581
  %584 = load i64, ptr %13, align 8, !tbaa !11
  %585 = load ptr, ptr %4, align 8, !tbaa !9
  %586 = call noundef zeroext i1 @_ZN11alglib_impl17hpdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %11, i64 noundef %584, i1 noundef zeroext true, ptr noundef %585)
  br i1 %586, label %587, label %691

587:                                              ; preds = %583
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %588

588:                                              ; preds = %687, %587
  %589 = load i64, ptr %17, align 8, !tbaa !11
  %590 = load i64, ptr %13, align 8, !tbaa !11
  %591 = sub nsw i64 %590, 1
  %592 = icmp sle i64 %589, %591
  br i1 %592, label %593, label %690

593:                                              ; preds = %588
  store i64 0, ptr %18, align 8, !tbaa !11
  br label %594

594:                                              ; preds = %683, %593
  %595 = load i64, ptr %18, align 8, !tbaa !11
  %596 = load i64, ptr %13, align 8, !tbaa !11
  %597 = sub nsw i64 %596, 1
  %598 = icmp sle i64 %595, %597
  br i1 %598, label %599, label %686

599:                                              ; preds = %594
  %600 = load i64, ptr %18, align 8, !tbaa !11
  %601 = load i64, ptr %17, align 8, !tbaa !11
  %602 = icmp slt i64 %600, %601
  br i1 %602, label %603, label %624

603:                                              ; preds = %599
  %604 = load i8, ptr %25, align 1, !tbaa !5, !range !31, !noundef !32
  %605 = trunc i8 %604 to i1
  br i1 %605, label %621, label %606

606:                                              ; preds = %603
  %607 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %11, i32 0, i32 6
  %608 = load ptr, ptr %607, align 8, !tbaa !15
  %609 = load i64, ptr %17, align 8, !tbaa !11
  %610 = getelementptr inbounds ptr, ptr %608, i64 %609
  %611 = load ptr, ptr %610, align 8, !tbaa !9
  %612 = load i64, ptr %18, align 8, !tbaa !11
  %613 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %611, i64 %612
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %613, i64 16, i1 false), !tbaa.struct !16
  %614 = load i64, ptr %18, align 8, !tbaa !11
  %615 = sitofp i64 %614 to double
  %616 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %617 = load double, ptr %616, align 8
  %618 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %619 = load double, ptr %618, align 8
  %620 = call noundef zeroext i1 @_ZN11alglib_impl10ae_c_neq_dENS_10ae_complexEd(double %617, double %619, double noundef %615)
  br label %621

621:                                              ; preds = %606, %603
  %622 = phi i1 [ true, %603 ], [ %620, %606 ]
  %623 = zext i1 %622 to i8
  store i8 %623, ptr %25, align 1, !tbaa !5
  br label %682

624:                                              ; preds = %599
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #6
  %625 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %11, i32 0, i32 6
  %626 = load ptr, ptr %625, align 8, !tbaa !15
  %627 = getelementptr inbounds ptr, ptr %626, i64 0
  %628 = load ptr, ptr %627, align 8, !tbaa !9
  %629 = load i64, ptr %17, align 8, !tbaa !11
  %630 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %628, i64 %629
  %631 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %11, i32 0, i32 2
  %632 = load i64, ptr %631, align 8, !tbaa !35
  %633 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %11, i32 0, i32 6
  %634 = load ptr, ptr %633, align 8, !tbaa !15
  %635 = getelementptr inbounds ptr, ptr %634, i64 0
  %636 = load ptr, ptr %635, align 8, !tbaa !9
  %637 = load i64, ptr %18, align 8, !tbaa !11
  %638 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %636, i64 %637
  %639 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %11, i32 0, i32 2
  %640 = load i64, ptr %639, align 8, !tbaa !35
  %641 = load i64, ptr %17, align 8, !tbaa !11
  %642 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %641)
  %643 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %630, i64 noundef %632, ptr noundef @.str.190, ptr noundef %638, i64 noundef %640, ptr noundef @.str.191, i64 noundef %642)
  %644 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %645 = extractvalue { double, double } %643, 0
  store double %645, ptr %644, align 8
  %646 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %647 = extractvalue { double, double } %643, 1
  store double %647, ptr %646, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %46, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #6
  %648 = load i8, ptr %25, align 1, !tbaa !5, !range !31, !noundef !32
  %649 = trunc i8 %648 to i1
  br i1 %649, label %679, label %650

650:                                              ; preds = %624
  %651 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %652 = load ptr, ptr %651, align 8, !tbaa !15
  %653 = load i64, ptr %17, align 8, !tbaa !11
  %654 = getelementptr inbounds ptr, ptr %652, i64 %653
  %655 = load ptr, ptr %654, align 8, !tbaa !9
  %656 = load i64, ptr %18, align 8, !tbaa !11
  %657 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %655, i64 %656
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %48, ptr align 8 %657, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %49, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !16
  %658 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %659 = load double, ptr %658, align 8
  %660 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %661 = load double, ptr %660, align 8
  %662 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %663 = load double, ptr %662, align 8
  %664 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %665 = load double, ptr %664, align 8
  %666 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %659, double %661, double %663, double %665)
  %667 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %668 = extractvalue { double, double } %666, 0
  store double %668, ptr %667, align 8
  %669 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %670 = extractvalue { double, double } %666, 1
  store double %670, ptr %669, align 8
  %671 = load ptr, ptr %4, align 8, !tbaa !9
  %672 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %673 = load double, ptr %672, align 8
  %674 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %675 = load double, ptr %674, align 8
  %676 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %673, double %675, ptr noundef %671)
  %677 = load double, ptr %30, align 8, !tbaa !13
  %678 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %676, double noundef %677)
  br label %679

679:                                              ; preds = %650, %624
  %680 = phi i1 [ true, %624 ], [ %678, %650 ]
  %681 = zext i1 %680 to i8
  store i8 %681, ptr %25, align 1, !tbaa !5
  br label %682

682:                                              ; preds = %679, %621
  br label %683

683:                                              ; preds = %682
  %684 = load i64, ptr %18, align 8, !tbaa !11
  %685 = add nsw i64 %684, 1
  store i64 %685, ptr %18, align 8, !tbaa !11
  br label %594, !llvm.loop !38

686:                                              ; preds = %594
  br label %687

687:                                              ; preds = %686
  %688 = load i64, ptr %17, align 8, !tbaa !11
  %689 = add nsw i64 %688, 1
  store i64 %689, ptr %17, align 8, !tbaa !11
  br label %588, !llvm.loop !39

690:                                              ; preds = %588
  br label %692

691:                                              ; preds = %583
  store i8 1, ptr %25, align 1, !tbaa !5
  br label %692

692:                                              ; preds = %691, %690
  %693 = load i64, ptr %13, align 8, !tbaa !11
  %694 = load ptr, ptr %4, align 8, !tbaa !9
  %695 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %694)
  %696 = call double @llvm.fmuladd.f64(double 5.000000e+01, double %695, double 1.000000e+00)
  %697 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %693, double noundef %696, ptr noundef %6, ptr noundef %697)
  %698 = load i64, ptr %13, align 8, !tbaa !11
  %699 = load i64, ptr %13, align 8, !tbaa !11
  %700 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %7, i64 noundef %698, i64 noundef %699, ptr noundef %700)
  %701 = load i64, ptr %13, align 8, !tbaa !11
  %702 = load i64, ptr %13, align 8, !tbaa !11
  %703 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %701, i64 noundef %702, ptr noundef %703)
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %704

704:                                              ; preds = %738, %692
  %705 = load i64, ptr %17, align 8, !tbaa !11
  %706 = load i64, ptr %13, align 8, !tbaa !11
  %707 = sub nsw i64 %706, 1
  %708 = icmp sle i64 %705, %707
  br i1 %708, label %709, label %741

709:                                              ; preds = %704
  store i64 0, ptr %18, align 8, !tbaa !11
  br label %710

710:                                              ; preds = %734, %709
  %711 = load i64, ptr %18, align 8, !tbaa !11
  %712 = load i64, ptr %13, align 8, !tbaa !11
  %713 = sub nsw i64 %712, 1
  %714 = icmp sle i64 %711, %713
  br i1 %714, label %715, label %737

715:                                              ; preds = %710
  %716 = load i64, ptr %17, align 8, !tbaa !11
  %717 = sitofp i64 %716 to double
  %718 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %7, i32 0, i32 6
  %719 = load ptr, ptr %718, align 8, !tbaa !15
  %720 = load i64, ptr %17, align 8, !tbaa !11
  %721 = getelementptr inbounds ptr, ptr %719, i64 %720
  %722 = load ptr, ptr %721, align 8, !tbaa !9
  %723 = load i64, ptr %18, align 8, !tbaa !11
  %724 = getelementptr inbounds double, ptr %722, i64 %723
  store double %717, ptr %724, align 8, !tbaa !13
  %725 = load i64, ptr %18, align 8, !tbaa !11
  %726 = sitofp i64 %725 to double
  %727 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %728 = load ptr, ptr %727, align 8, !tbaa !15
  %729 = load i64, ptr %17, align 8, !tbaa !11
  %730 = getelementptr inbounds ptr, ptr %728, i64 %729
  %731 = load ptr, ptr %730, align 8, !tbaa !9
  %732 = load i64, ptr %18, align 8, !tbaa !11
  %733 = getelementptr inbounds double, ptr %731, i64 %732
  store double %726, ptr %733, align 8, !tbaa !13
  br label %734

734:                                              ; preds = %715
  %735 = load i64, ptr %18, align 8, !tbaa !11
  %736 = add nsw i64 %735, 1
  store i64 %736, ptr %18, align 8, !tbaa !11
  br label %710, !llvm.loop !40

737:                                              ; preds = %710
  br label %738

738:                                              ; preds = %737
  %739 = load i64, ptr %17, align 8, !tbaa !11
  %740 = add nsw i64 %739, 1
  store i64 %740, ptr %17, align 8, !tbaa !11
  br label %704, !llvm.loop !41

741:                                              ; preds = %704
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %742

742:                                              ; preds = %780, %741
  %743 = load i64, ptr %17, align 8, !tbaa !11
  %744 = load i64, ptr %13, align 8, !tbaa !11
  %745 = sub nsw i64 %744, 1
  %746 = icmp sle i64 %743, %745
  br i1 %746, label %747, label %783

747:                                              ; preds = %742
  %748 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %7, i32 0, i32 6
  %749 = load ptr, ptr %748, align 8, !tbaa !15
  %750 = load i64, ptr %17, align 8, !tbaa !11
  %751 = getelementptr inbounds ptr, ptr %749, i64 %750
  %752 = load ptr, ptr %751, align 8, !tbaa !9
  %753 = getelementptr inbounds double, ptr %752, i64 0
  %754 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %755 = load ptr, ptr %754, align 8, !tbaa !15
  %756 = load i64, ptr %17, align 8, !tbaa !11
  %757 = getelementptr inbounds ptr, ptr %755, i64 %756
  %758 = load ptr, ptr %757, align 8, !tbaa !9
  %759 = getelementptr inbounds double, ptr %758, i64 0
  %760 = load i64, ptr %17, align 8, !tbaa !11
  %761 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %760)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %753, i64 noundef 1, ptr noundef %759, i64 noundef 1, i64 noundef %761)
  %762 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %763 = load ptr, ptr %762, align 8, !tbaa !15
  %764 = load i64, ptr %17, align 8, !tbaa !11
  %765 = getelementptr inbounds ptr, ptr %763, i64 %764
  %766 = load ptr, ptr %765, align 8, !tbaa !9
  %767 = load i64, ptr %17, align 8, !tbaa !11
  %768 = getelementptr inbounds double, ptr %766, i64 %767
  %769 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %770 = load ptr, ptr %769, align 8, !tbaa !15
  %771 = load i64, ptr %17, align 8, !tbaa !11
  %772 = getelementptr inbounds ptr, ptr %770, i64 %771
  %773 = load ptr, ptr %772, align 8, !tbaa !9
  %774 = load i64, ptr %17, align 8, !tbaa !11
  %775 = getelementptr inbounds double, ptr %773, i64 %774
  %776 = load i64, ptr %17, align 8, !tbaa !11
  %777 = load i64, ptr %13, align 8, !tbaa !11
  %778 = sub nsw i64 %777, 1
  %779 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %776, i64 noundef %778)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %768, i64 noundef 1, ptr noundef %775, i64 noundef 1, i64 noundef %779)
  br label %780

780:                                              ; preds = %747
  %781 = load i64, ptr %17, align 8, !tbaa !11
  %782 = add nsw i64 %781, 1
  store i64 %782, ptr %17, align 8, !tbaa !11
  br label %742, !llvm.loop !42

783:                                              ; preds = %742
  %784 = load i64, ptr %13, align 8, !tbaa !11
  %785 = load ptr, ptr %4, align 8, !tbaa !9
  %786 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %7, i64 noundef %784, i1 noundef zeroext false, ptr noundef %785)
  br i1 %786, label %787, label %866

787:                                              ; preds = %783
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %788

788:                                              ; preds = %862, %787
  %789 = load i64, ptr %17, align 8, !tbaa !11
  %790 = load i64, ptr %13, align 8, !tbaa !11
  %791 = sub nsw i64 %790, 1
  %792 = icmp sle i64 %789, %791
  br i1 %792, label %793, label %865

793:                                              ; preds = %788
  store i64 0, ptr %18, align 8, !tbaa !11
  br label %794

794:                                              ; preds = %858, %793
  %795 = load i64, ptr %18, align 8, !tbaa !11
  %796 = load i64, ptr %13, align 8, !tbaa !11
  %797 = sub nsw i64 %796, 1
  %798 = icmp sle i64 %795, %797
  br i1 %798, label %799, label %861

799:                                              ; preds = %794
  %800 = load i64, ptr %18, align 8, !tbaa !11
  %801 = load i64, ptr %17, align 8, !tbaa !11
  %802 = icmp sgt i64 %800, %801
  br i1 %802, label %803, label %821

803:                                              ; preds = %799
  %804 = load i8, ptr %22, align 1, !tbaa !5, !range !31, !noundef !32
  %805 = trunc i8 %804 to i1
  br i1 %805, label %818, label %806

806:                                              ; preds = %803
  %807 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %7, i32 0, i32 6
  %808 = load ptr, ptr %807, align 8, !tbaa !15
  %809 = load i64, ptr %17, align 8, !tbaa !11
  %810 = getelementptr inbounds ptr, ptr %808, i64 %809
  %811 = load ptr, ptr %810, align 8, !tbaa !9
  %812 = load i64, ptr %18, align 8, !tbaa !11
  %813 = getelementptr inbounds double, ptr %811, i64 %812
  %814 = load double, ptr %813, align 8, !tbaa !13
  %815 = load i64, ptr %17, align 8, !tbaa !11
  %816 = sitofp i64 %815 to double
  %817 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %814, double noundef %816)
  br label %818

818:                                              ; preds = %806, %803
  %819 = phi i1 [ true, %803 ], [ %817, %806 ]
  %820 = zext i1 %819 to i8
  store i8 %820, ptr %22, align 1, !tbaa !5
  br label %857

821:                                              ; preds = %799
  %822 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %7, i32 0, i32 6
  %823 = load ptr, ptr %822, align 8, !tbaa !15
  %824 = load i64, ptr %17, align 8, !tbaa !11
  %825 = getelementptr inbounds ptr, ptr %823, i64 %824
  %826 = load ptr, ptr %825, align 8, !tbaa !9
  %827 = getelementptr inbounds double, ptr %826, i64 0
  %828 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %7, i32 0, i32 6
  %829 = load ptr, ptr %828, align 8, !tbaa !15
  %830 = load i64, ptr %18, align 8, !tbaa !11
  %831 = getelementptr inbounds ptr, ptr %829, i64 %830
  %832 = load ptr, ptr %831, align 8, !tbaa !9
  %833 = getelementptr inbounds double, ptr %832, i64 0
  %834 = load i64, ptr %18, align 8, !tbaa !11
  %835 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %834)
  %836 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %827, i64 noundef 1, ptr noundef %833, i64 noundef 1, i64 noundef %835)
  store double %836, ptr %20, align 8, !tbaa !13
  %837 = load i8, ptr %22, align 1, !tbaa !5, !range !31, !noundef !32
  %838 = trunc i8 %837 to i1
  br i1 %838, label %854, label %839

839:                                              ; preds = %821
  %840 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %841 = load ptr, ptr %840, align 8, !tbaa !15
  %842 = load i64, ptr %17, align 8, !tbaa !11
  %843 = getelementptr inbounds ptr, ptr %841, i64 %842
  %844 = load ptr, ptr %843, align 8, !tbaa !9
  %845 = load i64, ptr %18, align 8, !tbaa !11
  %846 = getelementptr inbounds double, ptr %844, i64 %845
  %847 = load double, ptr %846, align 8, !tbaa !13
  %848 = load double, ptr %20, align 8, !tbaa !13
  %849 = fsub double %847, %848
  %850 = load ptr, ptr %4, align 8, !tbaa !9
  %851 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %849, ptr noundef %850)
  %852 = load double, ptr %30, align 8, !tbaa !13
  %853 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %851, double noundef %852)
  br label %854

854:                                              ; preds = %839, %821
  %855 = phi i1 [ true, %821 ], [ %853, %839 ]
  %856 = zext i1 %855 to i8
  store i8 %856, ptr %22, align 1, !tbaa !5
  br label %857

857:                                              ; preds = %854, %818
  br label %858

858:                                              ; preds = %857
  %859 = load i64, ptr %18, align 8, !tbaa !11
  %860 = add nsw i64 %859, 1
  store i64 %860, ptr %18, align 8, !tbaa !11
  br label %794, !llvm.loop !43

861:                                              ; preds = %794
  br label %862

862:                                              ; preds = %861
  %863 = load i64, ptr %17, align 8, !tbaa !11
  %864 = add nsw i64 %863, 1
  store i64 %864, ptr %17, align 8, !tbaa !11
  br label %788, !llvm.loop !44

865:                                              ; preds = %788
  br label %867

866:                                              ; preds = %783
  store i8 1, ptr %22, align 1, !tbaa !5
  br label %867

867:                                              ; preds = %866, %865
  %868 = load i64, ptr %13, align 8, !tbaa !11
  %869 = load ptr, ptr %4, align 8, !tbaa !9
  %870 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %8, i64 noundef %868, i1 noundef zeroext true, ptr noundef %869)
  br i1 %870, label %871, label %954

871:                                              ; preds = %867
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %872

872:                                              ; preds = %950, %871
  %873 = load i64, ptr %17, align 8, !tbaa !11
  %874 = load i64, ptr %13, align 8, !tbaa !11
  %875 = sub nsw i64 %874, 1
  %876 = icmp sle i64 %873, %875
  br i1 %876, label %877, label %953

877:                                              ; preds = %872
  store i64 0, ptr %18, align 8, !tbaa !11
  br label %878

878:                                              ; preds = %946, %877
  %879 = load i64, ptr %18, align 8, !tbaa !11
  %880 = load i64, ptr %13, align 8, !tbaa !11
  %881 = sub nsw i64 %880, 1
  %882 = icmp sle i64 %879, %881
  br i1 %882, label %883, label %949

883:                                              ; preds = %878
  %884 = load i64, ptr %18, align 8, !tbaa !11
  %885 = load i64, ptr %17, align 8, !tbaa !11
  %886 = icmp slt i64 %884, %885
  br i1 %886, label %887, label %905

887:                                              ; preds = %883
  %888 = load i8, ptr %22, align 1, !tbaa !5, !range !31, !noundef !32
  %889 = trunc i8 %888 to i1
  br i1 %889, label %902, label %890

890:                                              ; preds = %887
  %891 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %892 = load ptr, ptr %891, align 8, !tbaa !15
  %893 = load i64, ptr %17, align 8, !tbaa !11
  %894 = getelementptr inbounds ptr, ptr %892, i64 %893
  %895 = load ptr, ptr %894, align 8, !tbaa !9
  %896 = load i64, ptr %18, align 8, !tbaa !11
  %897 = getelementptr inbounds double, ptr %895, i64 %896
  %898 = load double, ptr %897, align 8, !tbaa !13
  %899 = load i64, ptr %18, align 8, !tbaa !11
  %900 = sitofp i64 %899 to double
  %901 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %898, double noundef %900)
  br label %902

902:                                              ; preds = %890, %887
  %903 = phi i1 [ true, %887 ], [ %901, %890 ]
  %904 = zext i1 %903 to i8
  store i8 %904, ptr %22, align 1, !tbaa !5
  br label %945

905:                                              ; preds = %883
  %906 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %907 = load ptr, ptr %906, align 8, !tbaa !15
  %908 = getelementptr inbounds ptr, ptr %907, i64 0
  %909 = load ptr, ptr %908, align 8, !tbaa !9
  %910 = load i64, ptr %17, align 8, !tbaa !11
  %911 = getelementptr inbounds double, ptr %909, i64 %910
  %912 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 2
  %913 = load i64, ptr %912, align 8, !tbaa !35
  %914 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %915 = load ptr, ptr %914, align 8, !tbaa !15
  %916 = getelementptr inbounds ptr, ptr %915, i64 0
  %917 = load ptr, ptr %916, align 8, !tbaa !9
  %918 = load i64, ptr %18, align 8, !tbaa !11
  %919 = getelementptr inbounds double, ptr %917, i64 %918
  %920 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 2
  %921 = load i64, ptr %920, align 8, !tbaa !35
  %922 = load i64, ptr %17, align 8, !tbaa !11
  %923 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %922)
  %924 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %911, i64 noundef %913, ptr noundef %919, i64 noundef %921, i64 noundef %923)
  store double %924, ptr %20, align 8, !tbaa !13
  %925 = load i8, ptr %22, align 1, !tbaa !5, !range !31, !noundef !32
  %926 = trunc i8 %925 to i1
  br i1 %926, label %942, label %927

927:                                              ; preds = %905
  %928 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %929 = load ptr, ptr %928, align 8, !tbaa !15
  %930 = load i64, ptr %17, align 8, !tbaa !11
  %931 = getelementptr inbounds ptr, ptr %929, i64 %930
  %932 = load ptr, ptr %931, align 8, !tbaa !9
  %933 = load i64, ptr %18, align 8, !tbaa !11
  %934 = getelementptr inbounds double, ptr %932, i64 %933
  %935 = load double, ptr %934, align 8, !tbaa !13
  %936 = load double, ptr %20, align 8, !tbaa !13
  %937 = fsub double %935, %936
  %938 = load ptr, ptr %4, align 8, !tbaa !9
  %939 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %937, ptr noundef %938)
  %940 = load double, ptr %30, align 8, !tbaa !13
  %941 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %939, double noundef %940)
  br label %942

942:                                              ; preds = %927, %905
  %943 = phi i1 [ true, %905 ], [ %941, %927 ]
  %944 = zext i1 %943 to i8
  store i8 %944, ptr %22, align 1, !tbaa !5
  br label %945

945:                                              ; preds = %942, %902
  br label %946

946:                                              ; preds = %945
  %947 = load i64, ptr %18, align 8, !tbaa !11
  %948 = add nsw i64 %947, 1
  store i64 %948, ptr %18, align 8, !tbaa !11
  br label %878, !llvm.loop !45

949:                                              ; preds = %878
  br label %950

950:                                              ; preds = %949
  %951 = load i64, ptr %17, align 8, !tbaa !11
  %952 = add nsw i64 %951, 1
  store i64 %952, ptr %17, align 8, !tbaa !11
  br label %872, !llvm.loop !46

953:                                              ; preds = %872
  br label %955

954:                                              ; preds = %867
  store i8 1, ptr %22, align 1, !tbaa !5
  br label %955

955:                                              ; preds = %954, %953
  %956 = load i64, ptr %13, align 8, !tbaa !11
  %957 = load i64, ptr %13, align 8, !tbaa !11
  %958 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %956, i64 noundef %957, ptr noundef %958)
  %959 = load i64, ptr %13, align 8, !tbaa !11
  %960 = load i64, ptr %13, align 8, !tbaa !11
  %961 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %959, i64 noundef %960, ptr noundef %961)
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %962

962:                                              ; preds = %1016, %955
  %963 = load i64, ptr %17, align 8, !tbaa !11
  %964 = load i64, ptr %13, align 8, !tbaa !11
  %965 = sub nsw i64 %964, 1
  %966 = icmp sle i64 %963, %965
  br i1 %966, label %967, label %1019

967:                                              ; preds = %962
  store i64 0, ptr %18, align 8, !tbaa !11
  br label %968

968:                                              ; preds = %993, %967
  %969 = load i64, ptr %18, align 8, !tbaa !11
  %970 = load i64, ptr %13, align 8, !tbaa !11
  %971 = sub nsw i64 %970, 1
  %972 = icmp sle i64 %969, %971
  br i1 %972, label %973, label %996

973:                                              ; preds = %968
  %974 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %975 = load ptr, ptr %974, align 8, !tbaa !15
  %976 = load i64, ptr %17, align 8, !tbaa !11
  %977 = getelementptr inbounds ptr, ptr %975, i64 %976
  %978 = load ptr, ptr %977, align 8, !tbaa !9
  %979 = load i64, ptr %18, align 8, !tbaa !11
  %980 = getelementptr inbounds double, ptr %978, i64 %979
  store double 0.000000e+00, ptr %980, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #6
  %981 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 0.000000e+00)
  %982 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %983 = extractvalue { double, double } %981, 0
  store double %983, ptr %982, align 8
  %984 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %985 = extractvalue { double, double } %981, 1
  store double %985, ptr %984, align 8
  %986 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %987 = load ptr, ptr %986, align 8, !tbaa !15
  %988 = load i64, ptr %17, align 8, !tbaa !11
  %989 = getelementptr inbounds ptr, ptr %987, i64 %988
  %990 = load ptr, ptr %989, align 8, !tbaa !9
  %991 = load i64, ptr %18, align 8, !tbaa !11
  %992 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %990, i64 %991
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %992, ptr align 8 %50, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #6
  br label %993

993:                                              ; preds = %973
  %994 = load i64, ptr %18, align 8, !tbaa !11
  %995 = add nsw i64 %994, 1
  store i64 %995, ptr %18, align 8, !tbaa !11
  br label %968, !llvm.loop !47

996:                                              ; preds = %968
  %997 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %998 = load ptr, ptr %997, align 8, !tbaa !15
  %999 = load i64, ptr %17, align 8, !tbaa !11
  %1000 = getelementptr inbounds ptr, ptr %998, i64 %999
  %1001 = load ptr, ptr %1000, align 8, !tbaa !9
  %1002 = load i64, ptr %17, align 8, !tbaa !11
  %1003 = getelementptr inbounds double, ptr %1001, i64 %1002
  store double 1.000000e+00, ptr %1003, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #6
  %1004 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %1005 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %1006 = extractvalue { double, double } %1004, 0
  store double %1006, ptr %1005, align 8
  %1007 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %1008 = extractvalue { double, double } %1004, 1
  store double %1008, ptr %1007, align 8
  %1009 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %1010 = load ptr, ptr %1009, align 8, !tbaa !15
  %1011 = load i64, ptr %17, align 8, !tbaa !11
  %1012 = getelementptr inbounds ptr, ptr %1010, i64 %1011
  %1013 = load ptr, ptr %1012, align 8, !tbaa !9
  %1014 = load i64, ptr %17, align 8, !tbaa !11
  %1015 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %1013, i64 %1014
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %1015, ptr align 8 %51, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #6
  br label %1016

1016:                                             ; preds = %996
  %1017 = load i64, ptr %17, align 8, !tbaa !11
  %1018 = add nsw i64 %1017, 1
  store i64 %1018, ptr %17, align 8, !tbaa !11
  br label %962, !llvm.loop !48

1019:                                             ; preds = %962
  %1020 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %1021 = load ptr, ptr %1020, align 8, !tbaa !15
  %1022 = load i64, ptr %13, align 8, !tbaa !11
  %1023 = sdiv i64 %1022, 2
  %1024 = getelementptr inbounds ptr, ptr %1021, i64 %1023
  %1025 = load ptr, ptr %1024, align 8, !tbaa !9
  %1026 = load i64, ptr %13, align 8, !tbaa !11
  %1027 = sdiv i64 %1026, 2
  %1028 = getelementptr inbounds double, ptr %1025, i64 %1027
  store double -1.000000e+00, ptr %1028, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #6
  %1029 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef -1.000000e+00)
  %1030 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %1031 = extractvalue { double, double } %1029, 0
  store double %1031, ptr %1030, align 8
  %1032 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %1033 = extractvalue { double, double } %1029, 1
  store double %1033, ptr %1032, align 8
  %1034 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %1035 = load ptr, ptr %1034, align 8, !tbaa !15
  %1036 = load i64, ptr %13, align 8, !tbaa !11
  %1037 = sdiv i64 %1036, 2
  %1038 = getelementptr inbounds ptr, ptr %1035, i64 %1037
  %1039 = load ptr, ptr %1038, align 8, !tbaa !9
  %1040 = load i64, ptr %13, align 8, !tbaa !11
  %1041 = sdiv i64 %1040, 2
  %1042 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %1039, i64 %1041
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %1042, ptr align 8 %52, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #6
  %1043 = load i64, ptr %13, align 8, !tbaa !11
  %1044 = load ptr, ptr %4, align 8, !tbaa !9
  %1045 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1044)
  %1046 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1045, double noundef 5.000000e-01)
  %1047 = load ptr, ptr %4, align 8, !tbaa !9
  %1048 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %6, i64 noundef %1043, i1 noundef zeroext %1046, ptr noundef %1047)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %22, i1 noundef zeroext %1048, ptr noundef @.str.8, i32 noundef 15006, ptr noundef @.str.206)
  %1049 = load i64, ptr %13, align 8, !tbaa !11
  %1050 = load ptr, ptr %4, align 8, !tbaa !9
  %1051 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1050)
  %1052 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1051, double noundef 5.000000e-01)
  %1053 = load ptr, ptr %4, align 8, !tbaa !9
  %1054 = call noundef zeroext i1 @_ZN11alglib_impl17hpdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %9, i64 noundef %1049, i1 noundef zeroext %1052, ptr noundef %1053)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %25, i1 noundef zeroext %1054, ptr noundef @.str.8, i32 noundef 15007, ptr noundef @.str.207)
  br label %1055

1055:                                             ; preds = %1019
  %1056 = load i64, ptr %13, align 8, !tbaa !11
  %1057 = add nsw i64 %1056, 1
  store i64 %1057, ptr %13, align 8, !tbaa !11
  br label %375, !llvm.loop !49

1058:                                             ; preds = %375
  %1059 = load i8, ptr %26, align 1, !tbaa !5, !range !31, !noundef !32
  %1060 = trunc i8 %1059 to i1
  br i1 %1060, label %1082, label %1061

1061:                                             ; preds = %1058
  %1062 = load i8, ptr %24, align 1, !tbaa !5, !range !31, !noundef !32
  %1063 = trunc i8 %1062 to i1
  br i1 %1063, label %1082, label %1064

1064:                                             ; preds = %1061
  %1065 = load i8, ptr %22, align 1, !tbaa !5, !range !31, !noundef !32
  %1066 = trunc i8 %1065 to i1
  br i1 %1066, label %1082, label %1067

1067:                                             ; preds = %1064
  %1068 = load i8, ptr %23, align 1, !tbaa !5, !range !31, !noundef !32
  %1069 = trunc i8 %1068 to i1
  br i1 %1069, label %1082, label %1070

1070:                                             ; preds = %1067
  %1071 = load i8, ptr %27, align 1, !tbaa !5, !range !31, !noundef !32
  %1072 = trunc i8 %1071 to i1
  br i1 %1072, label %1082, label %1073

1073:                                             ; preds = %1070
  %1074 = load i8, ptr %25, align 1, !tbaa !5, !range !31, !noundef !32
  %1075 = trunc i8 %1074 to i1
  br i1 %1075, label %1082, label %1076

1076:                                             ; preds = %1073
  %1077 = load i8, ptr %28, align 1, !tbaa !5, !range !31, !noundef !32
  %1078 = trunc i8 %1077 to i1
  br i1 %1078, label %1082, label %1079

1079:                                             ; preds = %1076
  %1080 = load i8, ptr %29, align 1, !tbaa !5, !range !31, !noundef !32
  %1081 = trunc i8 %1080 to i1
  br label %1082

1082:                                             ; preds = %1079, %1076, %1073, %1070, %1067, %1064, %1061, %1058
  %1083 = phi i1 [ true, %1076 ], [ true, %1073 ], [ true, %1070 ], [ true, %1067 ], [ true, %1064 ], [ true, %1061 ], [ true, %1058 ], [ %1081, %1079 ]
  %1084 = zext i1 %1083 to i8
  store i8 %1084, ptr %21, align 1, !tbaa !5
  %1085 = load i8, ptr %3, align 1, !tbaa !5, !range !31, !noundef !32
  %1086 = trunc i8 %1085 to i1
  br i1 %1086, label %1162, label %1087

1087:                                             ; preds = %1082
  %1088 = call i32 (ptr, ...) @printf(ptr noundef @.str.208)
  %1089 = call i32 (ptr, ...) @printf(ptr noundef @.str.209)
  %1090 = load i8, ptr %26, align 1, !tbaa !5, !range !31, !noundef !32
  %1091 = trunc i8 %1090 to i1
  br i1 %1091, label %1092, label %1094

1092:                                             ; preds = %1087
  %1093 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1096

1094:                                             ; preds = %1087
  %1095 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1096

1096:                                             ; preds = %1094, %1092
  %1097 = call i32 (ptr, ...) @printf(ptr noundef @.str.210)
  %1098 = load i8, ptr %24, align 1, !tbaa !5, !range !31, !noundef !32
  %1099 = trunc i8 %1098 to i1
  br i1 %1099, label %1100, label %1102

1100:                                             ; preds = %1096
  %1101 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1104

1102:                                             ; preds = %1096
  %1103 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1104

1104:                                             ; preds = %1102, %1100
  %1105 = call i32 (ptr, ...) @printf(ptr noundef @.str.211)
  %1106 = load i8, ptr %22, align 1, !tbaa !5, !range !31, !noundef !32
  %1107 = trunc i8 %1106 to i1
  br i1 %1107, label %1108, label %1110

1108:                                             ; preds = %1104
  %1109 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1112

1110:                                             ; preds = %1104
  %1111 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1112

1112:                                             ; preds = %1110, %1108
  %1113 = call i32 (ptr, ...) @printf(ptr noundef @.str.212)
  %1114 = load i8, ptr %23, align 1, !tbaa !5, !range !31, !noundef !32
  %1115 = trunc i8 %1114 to i1
  br i1 %1115, label %1116, label %1118

1116:                                             ; preds = %1112
  %1117 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1120

1118:                                             ; preds = %1112
  %1119 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1120

1120:                                             ; preds = %1118, %1116
  %1121 = call i32 (ptr, ...) @printf(ptr noundef @.str.213)
  %1122 = load i8, ptr %27, align 1, !tbaa !5, !range !31, !noundef !32
  %1123 = trunc i8 %1122 to i1
  br i1 %1123, label %1124, label %1126

1124:                                             ; preds = %1120
  %1125 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1128

1126:                                             ; preds = %1120
  %1127 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1128

1128:                                             ; preds = %1126, %1124
  %1129 = call i32 (ptr, ...) @printf(ptr noundef @.str.214)
  %1130 = load i8, ptr %25, align 1, !tbaa !5, !range !31, !noundef !32
  %1131 = trunc i8 %1130 to i1
  br i1 %1131, label %1132, label %1134

1132:                                             ; preds = %1128
  %1133 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1136

1134:                                             ; preds = %1128
  %1135 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1136

1136:                                             ; preds = %1134, %1132
  %1137 = call i32 (ptr, ...) @printf(ptr noundef @.str.215)
  %1138 = load i8, ptr %28, align 1, !tbaa !5, !range !31, !noundef !32
  %1139 = trunc i8 %1138 to i1
  br i1 %1139, label %1140, label %1142

1140:                                             ; preds = %1136
  %1141 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1144

1142:                                             ; preds = %1136
  %1143 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1144

1144:                                             ; preds = %1142, %1140
  %1145 = call i32 (ptr, ...) @printf(ptr noundef @.str.216)
  %1146 = call i32 (ptr, ...) @printf(ptr noundef @.str.211)
  %1147 = load i8, ptr %29, align 1, !tbaa !5, !range !31, !noundef !32
  %1148 = trunc i8 %1147 to i1
  br i1 %1148, label %1149, label %1151

1149:                                             ; preds = %1144
  %1150 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1153

1151:                                             ; preds = %1144
  %1152 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1153

1153:                                             ; preds = %1151, %1149
  %1154 = load i8, ptr %21, align 1, !tbaa !5, !range !31, !noundef !32
  %1155 = trunc i8 %1154 to i1
  br i1 %1155, label %1156, label %1158

1156:                                             ; preds = %1153
  %1157 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %1160

1158:                                             ; preds = %1153
  %1159 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %1160

1160:                                             ; preds = %1158, %1156
  %1161 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %1162

1162:                                             ; preds = %1160, %1082
  %1163 = load i8, ptr %21, align 1, !tbaa !5, !range !31, !noundef !32
  %1164 = trunc i8 %1163 to i1
  %1165 = xor i1 %1164, true
  %1166 = zext i1 %1165 to i8
  store i8 %1166, ptr %32, align 1, !tbaa !5
  %1167 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1167)
  %1168 = load i8, ptr %32, align 1, !tbaa !5, !range !31, !noundef !32
  %1169 = trunc i8 %1168 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  ret i1 %1169
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z22sparserealcholeskytestPN11alglib_impl8ae_stateE(ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z16sparsereallutestPbPN11alglib_impl8ae_stateE(ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL38testtrfacunit_testdensecholeskyupdatesPbPN11alglib_impl8ae_stateE(ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL28testtrfacunit_testcluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL28testtrfacunit_testrluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) #5

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"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 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{i64 0, i64 8, !13, i64 8, i64 8, !13}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !18}
!27 = distinct !{!27, !18}
!28 = distinct !{!28, !18}
!29 = distinct !{!29, !18}
!30 = distinct !{!30, !18}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = distinct !{!33, !18}
!34 = distinct !{!34, !18}
!35 = !{!36, !12, i64 16}
!36 = !{!"_ZTSN11alglib_impl9ae_matrixE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !37, i64 40, !7, i64 72}
!37 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!38 = distinct !{!38, !18}
!39 = distinct !{!39, !18}
!40 = distinct !{!40, !18}
!41 = distinct !{!41, !18}
!42 = distinct !{!42, !18}
!43 = distinct !{!43, !18}
!44 = distinct !{!44, !18}
!45 = distinct !{!45, !18}
!46 = distinct !{!46, !18}
!47 = distinct !{!47, !18}
!48 = distinct !{!48, !18}
!49 = distinct !{!49, !18}


; 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_complex" = type { double, double }

@.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.8 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.206 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.207 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.208 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.209 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.210 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.211 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.212 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [32 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 noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef, ptr noundef) 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 void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) 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 zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #1

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

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

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

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

declare noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

declare { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef) local_unnamed_addr #1

declare { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

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

declare { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double, double, double, double) local_unnamed_addr #1

declare { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef) local_unnamed_addr #1

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z9testtrfacbPN11alglib_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_matrix", align 8
  %6 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %7 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #7
  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(80) %5, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %6, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %7, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %8, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %9, i8 0, i64 80, 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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  store i8 0, ptr %13, align 1, !tbaa !5
  store i8 0, ptr %10, align 1, !tbaa !5
  store i8 0, ptr %14, align 1, !tbaa !5
  store i8 0, ptr %12, align 1, !tbaa !5
  store i8 0, ptr %15, align 1, !tbaa !5
  store i8 0, ptr %16, align 1, !tbaa !5
  store i8 0, ptr %11, align 1, !tbaa !5
  %17 = call noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef %1)
  %18 = shl i64 %17, 2
  %19 = or disjoint i64 %18, 1
  %20 = sitofp i64 %19 to double
  %21 = fmul double %20, 5.000000e-13
  %22 = call noundef zeroext i1 @_Z22sparserealcholeskytestPN11alglib_impl8ae_stateE(ptr noundef %1)
  call void @_Z16sparsereallutestPbPN11alglib_impl8ae_stateE(ptr noundef nonnull %11, ptr noundef %1)
  call void @_ZL38testtrfacunit_testdensecholeskyupdatesPbPN11alglib_impl8ae_stateE(ptr noundef nonnull %16, ptr noundef %1)
  %.not453 = icmp slt i64 %17, 0
  br i1 %.not453, label %.preheader437, label %.lr.ph456

.lr.ph456:                                        ; preds = %2
  %23 = getelementptr inbounds i8, ptr %4, i64 72
  %24 = getelementptr inbounds i8, ptr %7, i64 72
  %25 = or disjoint i64 %18, 1
  %smax = call i64 @llvm.smax.i64(i64 %25, i64 1)
  br label %32

.preheader437:                                    ; preds = %._crit_edge, %2
  %26 = getelementptr inbounds i8, ptr %4, i64 72
  %27 = getelementptr inbounds i8, ptr %7, i64 72
  %28 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %1)
  %29 = add nsw i64 %28, 255
  %30 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %1)
  %31 = add nsw i64 %30, 255
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %29, i64 noundef %31, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %29, i64 noundef %31, ptr noundef %1)
  %.not410461 = icmp slt i64 %28, -254
  %.not412457 = icmp slt i64 %30, -254
  %or.cond520 = or i1 %.not410461, %.not412457
  br i1 %or.cond520, label %.preheader436, label %.preheader435.preheader

32:                                               ; preds = %.lr.ph456, %._crit_edge
  %.0372454 = phi i64 [ 1, %.lr.ph456 ], [ %85, %._crit_edge ]
  %33 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %.0372454, ptr noundef %1)
  %34 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %.0372454, ptr noundef %1)
  %35 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %36 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %35, double noundef 5.000000e-01)
  %37 = add nsw i64 %34, 1
  %38 = add nsw i64 %33, 1
  %.0371 = select i1 %36, i64 %.0372454, i64 %38
  %.0 = select i1 %36, i64 %37, i64 %.0372454
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0, i64 noundef %.0371, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0, i64 noundef %.0371, ptr noundef %1)
  %.not413.not443 = icmp sgt i64 %.0, 0
  %.not417.not441 = icmp sgt i64 %.0371, 0
  %or.cond518 = and i1 %.not413.not443, %.not417.not441
  br i1 %or.cond518, label %.preheader439.us, label %._crit_edge445

.preheader439.us:                                 ; preds = %32, %._crit_edge.us
  %.0373444.us = phi i64 [ %52, %._crit_edge.us ], [ 0, %32 ]
  br label %39

39:                                               ; preds = %.preheader439.us, %39
  %.0375442.us = phi i64 [ 0, %.preheader439.us ], [ %51, %39 ]
  %40 = load ptr, ptr %23, align 8, !tbaa !9
  %41 = getelementptr inbounds ptr, ptr %40, i64 %.0373444.us
  %42 = load ptr, ptr %41, align 8, !tbaa !10
  %43 = getelementptr inbounds double, ptr %42, i64 %.0375442.us
  store double 0.000000e+00, ptr %43, align 8, !tbaa !12
  %44 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %45 = extractvalue { double, double } %44, 0
  %46 = extractvalue { double, double } %44, 1
  %47 = load ptr, ptr %24, align 8, !tbaa !9
  %48 = getelementptr inbounds ptr, ptr %47, i64 %.0373444.us
  %49 = load ptr, ptr %48, align 8, !tbaa !10
  %50 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %49, i64 %.0375442.us
  store double %45, ptr %50, align 8, !tbaa !12
  %.sroa.437.0..sroa_idx.us = getelementptr inbounds i8, ptr %50, i64 8
  store double %46, ptr %.sroa.437.0..sroa_idx.us, align 8, !tbaa !12
  %51 = add nuw nsw i64 %.0375442.us, 1
  %exitcond.not = icmp eq i64 %51, %.0371
  br i1 %exitcond.not, label %._crit_edge.us, label %39, !llvm.loop !14

._crit_edge.us:                                   ; preds = %39
  %52 = add nuw nsw i64 %.0373444.us, 1
  %exitcond491.not = icmp eq i64 %52, %.0
  br i1 %exitcond491.not, label %._crit_edge445, label %.preheader439.us, !llvm.loop !16

._crit_edge445:                                   ; preds = %._crit_edge.us, %32
  call void @_ZL28testtrfacunit_testcluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0, i64 noundef %.0371, double noundef %21, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %1)
  call void @_ZL28testtrfacunit_testrluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0, i64 noundef %.0371, double noundef %21, ptr noundef nonnull %13, ptr noundef nonnull %15, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0, i64 noundef %.0371, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0, i64 noundef %.0371, ptr noundef %1)
  %.not416.not446 = icmp sgt i64 %.0371, 0
  %or.cond519 = and i1 %.not413.not443, %.not416.not446
  br i1 %or.cond519, label %.preheader438.us, label %.preheader440

.preheader438.us:                                 ; preds = %._crit_edge445, %._crit_edge.us450
  %.1374449.us = phi i64 [ %66, %._crit_edge.us450 ], [ 0, %._crit_edge445 ]
  br label %53

53:                                               ; preds = %.preheader438.us, %53
  %.1376447.us = phi i64 [ 0, %.preheader438.us ], [ %65, %53 ]
  %54 = load ptr, ptr %23, align 8, !tbaa !9
  %55 = getelementptr inbounds ptr, ptr %54, i64 %.1374449.us
  %56 = load ptr, ptr %55, align 8, !tbaa !10
  %57 = getelementptr inbounds double, ptr %56, i64 %.1376447.us
  store double 0.000000e+00, ptr %57, align 8, !tbaa !12
  %58 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %59 = extractvalue { double, double } %58, 0
  %60 = extractvalue { double, double } %58, 1
  %61 = load ptr, ptr %24, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %61, i64 %.1374449.us
  %63 = load ptr, ptr %62, align 8, !tbaa !10
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %63, i64 %.1376447.us
  store double %59, ptr %64, align 8, !tbaa !12
  %.sroa.435.0..sroa_idx.us = getelementptr inbounds i8, ptr %64, i64 8
  store double %60, ptr %.sroa.435.0..sroa_idx.us, align 8, !tbaa !12
  %65 = add nuw nsw i64 %.1376447.us, 1
  %exitcond492.not = icmp eq i64 %65, %.0371
  br i1 %exitcond492.not, label %._crit_edge.us450, label %53, !llvm.loop !17

._crit_edge.us450:                                ; preds = %53
  %66 = add nuw nsw i64 %.1374449.us, 1
  %exitcond493.not = icmp eq i64 %66, %.0
  br i1 %exitcond493.not, label %.preheader440, label %.preheader438.us, !llvm.loop !18

.preheader440:                                    ; preds = %._crit_edge.us450, %._crit_edge445
  %67 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %.0, i64 noundef %.0371, ptr noundef %1)
  %.not415.not451 = icmp sgt i64 %67, 0
  br i1 %.not415.not451, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader440, %.lr.ph
  %.2452 = phi i64 [ %83, %.lr.ph ], [ 0, %.preheader440 ]
  %68 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %69 = call double @llvm.fmuladd.f64(double %68, double 1.000000e+01, double 1.000000e+00)
  %70 = load ptr, ptr %23, align 8, !tbaa !9
  %71 = getelementptr inbounds ptr, ptr %70, i64 %.2452
  %72 = load ptr, ptr %71, align 8, !tbaa !10
  %73 = getelementptr inbounds double, ptr %72, i64 %.2452
  store double %69, ptr %73, align 8, !tbaa !12
  %74 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %75 = call double @llvm.fmuladd.f64(double %74, double 1.000000e+01, double 1.000000e+00)
  %76 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %75)
  %77 = extractvalue { double, double } %76, 0
  %78 = extractvalue { double, double } %76, 1
  %79 = load ptr, ptr %24, align 8, !tbaa !9
  %80 = getelementptr inbounds ptr, ptr %79, i64 %.2452
  %81 = load ptr, ptr %80, align 8, !tbaa !10
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %81, i64 %.2452
  store double %77, ptr %82, align 8, !tbaa !12
  %.sroa.433.0..sroa_idx = getelementptr inbounds i8, ptr %82, i64 8
  store double %78, ptr %.sroa.433.0..sroa_idx, align 8, !tbaa !12
  %83 = add nuw nsw i64 %.2452, 1
  %84 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %.0, i64 noundef %.0371, ptr noundef %1)
  %.not415.not = icmp slt i64 %83, %84
  br i1 %.not415.not, label %.lr.ph, label %._crit_edge, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph, %.preheader440
  call void @_ZN11alglib_impl31cmatrixrndorthogonalfromtheleftEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0, i64 noundef %.0371, ptr noundef %1)
  call void @_ZN11alglib_impl32cmatrixrndorthogonalfromtherightEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0, i64 noundef %.0371, ptr noundef %1)
  call void @_ZN11alglib_impl31rmatrixrndorthogonalfromtheleftEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0, i64 noundef %.0371, ptr noundef %1)
  call void @_ZN11alglib_impl32rmatrixrndorthogonalfromtherightEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0, i64 noundef %.0371, ptr noundef %1)
  call void @_ZL28testtrfacunit_testcluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0, i64 noundef %.0371, double noundef %21, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %1)
  call void @_ZL28testtrfacunit_testrluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0, i64 noundef %.0371, double noundef %21, ptr noundef nonnull %13, ptr noundef nonnull %15, ptr noundef %1)
  %85 = add nuw nsw i64 %.0372454, 1
  %exitcond494 = icmp eq i64 %.0372454, %smax
  br i1 %exitcond494, label %.preheader437, label %32, !llvm.loop !20

.lr.ph486:                                        ; preds = %._crit_edge466.1
  %86 = getelementptr inbounds i8, ptr %8, i64 72
  %87 = getelementptr inbounds i8, ptr %9, i64 72
  %88 = getelementptr inbounds i8, ptr %9, i64 16
  %89 = getelementptr inbounds i8, ptr %5, i64 72
  %90 = getelementptr inbounds i8, ptr %6, i64 72
  %91 = getelementptr inbounds i8, ptr %6, i64 16
  %92 = or disjoint i64 %18, 1
  %smax516 = call i64 @llvm.smax.i64(i64 %92, i64 1)
  br label %165

.preheader435.preheader:                          ; preds = %.preheader437
  %93 = add i64 %28, 254
  %94 = add i64 %30, 254
  %smax495 = call i64 @llvm.smax.i64(i64 %94, i64 0)
  %smax497 = call i64 @llvm.smax.i64(i64 %93, i64 0)
  br label %.preheader435

.preheader436:                                    ; preds = %._crit_edge460, %.preheader437
  %95 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %29, i64 noundef %31, ptr noundef %1)
  %.not411.not463 = icmp sgt i64 %95, 0
  br i1 %.not411.not463, label %.lr.ph465, label %._crit_edge466

.preheader435:                                    ; preds = %.preheader435.preheader, %._crit_edge460
  %.3462 = phi i64 [ %109, %._crit_edge460 ], [ 0, %.preheader435.preheader ]
  br label %96

96:                                               ; preds = %.preheader435, %96
  %.2377458 = phi i64 [ 0, %.preheader435 ], [ %108, %96 ]
  %97 = load ptr, ptr %26, align 8, !tbaa !9
  %98 = getelementptr inbounds ptr, ptr %97, i64 %.3462
  %99 = load ptr, ptr %98, align 8, !tbaa !10
  %100 = getelementptr inbounds double, ptr %99, i64 %.2377458
  store double 0.000000e+00, ptr %100, align 8, !tbaa !12
  %101 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %102 = extractvalue { double, double } %101, 0
  %103 = extractvalue { double, double } %101, 1
  %104 = load ptr, ptr %27, align 8, !tbaa !9
  %105 = getelementptr inbounds ptr, ptr %104, i64 %.3462
  %106 = load ptr, ptr %105, align 8, !tbaa !10
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %106, i64 %.2377458
  store double %102, ptr %107, align 8, !tbaa !12
  %.sroa.431.0..sroa_idx = getelementptr inbounds i8, ptr %107, i64 8
  store double %103, ptr %.sroa.431.0..sroa_idx, align 8, !tbaa !12
  %108 = add nuw i64 %.2377458, 1
  %exitcond496.not = icmp eq i64 %.2377458, %smax495
  br i1 %exitcond496.not, label %._crit_edge460, label %96, !llvm.loop !21

._crit_edge460:                                   ; preds = %96
  %109 = add nuw i64 %.3462, 1
  %exitcond498.not = icmp eq i64 %.3462, %smax497
  br i1 %exitcond498.not, label %.preheader436, label %.preheader435, !llvm.loop !22

.lr.ph465:                                        ; preds = %.preheader436, %.lr.ph465
  %.4464 = phi i64 [ %125, %.lr.ph465 ], [ 0, %.preheader436 ]
  %110 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %111 = call double @llvm.fmuladd.f64(double %110, double 1.000000e+01, double 1.000000e+00)
  %112 = load ptr, ptr %26, align 8, !tbaa !9
  %113 = getelementptr inbounds ptr, ptr %112, i64 %.4464
  %114 = load ptr, ptr %113, align 8, !tbaa !10
  %115 = getelementptr inbounds double, ptr %114, i64 %.4464
  store double %111, ptr %115, align 8, !tbaa !12
  %116 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %117 = call double @llvm.fmuladd.f64(double %116, double 1.000000e+01, double 1.000000e+00)
  %118 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %117)
  %119 = extractvalue { double, double } %118, 0
  %120 = extractvalue { double, double } %118, 1
  %121 = load ptr, ptr %27, align 8, !tbaa !9
  %122 = getelementptr inbounds ptr, ptr %121, i64 %.4464
  %123 = load ptr, ptr %122, align 8, !tbaa !10
  %124 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %123, i64 %.4464
  store double %119, ptr %124, align 8, !tbaa !12
  %.sroa.429.0..sroa_idx = getelementptr inbounds i8, ptr %124, i64 8
  store double %120, ptr %.sroa.429.0..sroa_idx, align 8, !tbaa !12
  %125 = add nuw nsw i64 %.4464, 1
  %126 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %29, i64 noundef %31, ptr noundef %1)
  %.not411.not = icmp slt i64 %125, %126
  br i1 %.not411.not, label %.lr.ph465, label %._crit_edge466, !llvm.loop !23

._crit_edge466:                                   ; preds = %.lr.ph465, %.preheader436
  call void @_ZN11alglib_impl31cmatrixrndorthogonalfromtheleftEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %29, i64 noundef %31, ptr noundef %1)
  call void @_ZN11alglib_impl32cmatrixrndorthogonalfromtherightEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %29, i64 noundef %31, ptr noundef %1)
  call void @_ZN11alglib_impl31rmatrixrndorthogonalfromtheleftEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %29, i64 noundef %31, ptr noundef %1)
  call void @_ZN11alglib_impl32rmatrixrndorthogonalfromtherightEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %29, i64 noundef %31, ptr noundef %1)
  call void @_ZL28testtrfacunit_testcluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %29, i64 noundef %31, double noundef %21, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %1)
  call void @_ZL28testtrfacunit_testrluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %29, i64 noundef %31, double noundef %21, ptr noundef nonnull %13, ptr noundef nonnull %15, ptr noundef %1)
  %127 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %1)
  %128 = add nsw i64 %127, 255
  %129 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %1)
  %130 = add nsw i64 %129, 255
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %128, i64 noundef %130, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %128, i64 noundef %130, ptr noundef %1)
  %.not410461.1 = icmp slt i64 %127, -254
  %.not412457.1 = icmp slt i64 %129, -254
  %or.cond521 = or i1 %.not410461.1, %.not412457.1
  br i1 %or.cond521, label %.preheader436.1, label %.preheader435.preheader.1

.preheader435.preheader.1:                        ; preds = %._crit_edge466
  %131 = add i64 %127, 254
  %132 = add i64 %129, 254
  %smax495.1 = call i64 @llvm.smax.i64(i64 %132, i64 0)
  %smax497.1 = call i64 @llvm.smax.i64(i64 %131, i64 0)
  br label %.preheader435.1

.preheader435.1:                                  ; preds = %._crit_edge460.1, %.preheader435.preheader.1
  %.3462.1 = phi i64 [ %146, %._crit_edge460.1 ], [ 0, %.preheader435.preheader.1 ]
  br label %133

133:                                              ; preds = %133, %.preheader435.1
  %.2377458.1 = phi i64 [ 0, %.preheader435.1 ], [ %145, %133 ]
  %134 = load ptr, ptr %26, align 8, !tbaa !9
  %135 = getelementptr inbounds ptr, ptr %134, i64 %.3462.1
  %136 = load ptr, ptr %135, align 8, !tbaa !10
  %137 = getelementptr inbounds double, ptr %136, i64 %.2377458.1
  store double 0.000000e+00, ptr %137, align 8, !tbaa !12
  %138 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %139 = extractvalue { double, double } %138, 0
  %140 = extractvalue { double, double } %138, 1
  %141 = load ptr, ptr %27, align 8, !tbaa !9
  %142 = getelementptr inbounds ptr, ptr %141, i64 %.3462.1
  %143 = load ptr, ptr %142, align 8, !tbaa !10
  %144 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %143, i64 %.2377458.1
  store double %139, ptr %144, align 8, !tbaa !12
  %.sroa.431.0..sroa_idx.1 = getelementptr inbounds i8, ptr %144, i64 8
  store double %140, ptr %.sroa.431.0..sroa_idx.1, align 8, !tbaa !12
  %145 = add nuw i64 %.2377458.1, 1
  %exitcond496.1.not = icmp eq i64 %.2377458.1, %smax495.1
  br i1 %exitcond496.1.not, label %._crit_edge460.1, label %133, !llvm.loop !21

._crit_edge460.1:                                 ; preds = %133
  %146 = add nuw i64 %.3462.1, 1
  %exitcond498.1.not = icmp eq i64 %.3462.1, %smax497.1
  br i1 %exitcond498.1.not, label %.preheader436.1, label %.preheader435.1, !llvm.loop !22

.preheader436.1:                                  ; preds = %._crit_edge460.1, %._crit_edge466
  %147 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %128, i64 noundef %130, ptr noundef %1)
  %.not411.not463.1 = icmp sgt i64 %147, 0
  br i1 %.not411.not463.1, label %.lr.ph465.1, label %._crit_edge466.1

.lr.ph465.1:                                      ; preds = %.preheader436.1, %.lr.ph465.1
  %.4464.1 = phi i64 [ %163, %.lr.ph465.1 ], [ 0, %.preheader436.1 ]
  %148 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %149 = call double @llvm.fmuladd.f64(double %148, double 1.000000e+01, double 1.000000e+00)
  %150 = load ptr, ptr %26, align 8, !tbaa !9
  %151 = getelementptr inbounds ptr, ptr %150, i64 %.4464.1
  %152 = load ptr, ptr %151, align 8, !tbaa !10
  %153 = getelementptr inbounds double, ptr %152, i64 %.4464.1
  store double %149, ptr %153, align 8, !tbaa !12
  %154 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %155 = call double @llvm.fmuladd.f64(double %154, double 1.000000e+01, double 1.000000e+00)
  %156 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %155)
  %157 = extractvalue { double, double } %156, 0
  %158 = extractvalue { double, double } %156, 1
  %159 = load ptr, ptr %27, align 8, !tbaa !9
  %160 = getelementptr inbounds ptr, ptr %159, i64 %.4464.1
  %161 = load ptr, ptr %160, align 8, !tbaa !10
  %162 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %161, i64 %.4464.1
  store double %157, ptr %162, align 8, !tbaa !12
  %.sroa.429.0..sroa_idx.1 = getelementptr inbounds i8, ptr %162, i64 8
  store double %158, ptr %.sroa.429.0..sroa_idx.1, align 8, !tbaa !12
  %163 = add nuw nsw i64 %.4464.1, 1
  %164 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %128, i64 noundef %130, ptr noundef %1)
  %.not411.not.1 = icmp slt i64 %163, %164
  br i1 %.not411.not.1, label %.lr.ph465.1, label %._crit_edge466.1, !llvm.loop !23

._crit_edge466.1:                                 ; preds = %.lr.ph465.1, %.preheader436.1
  call void @_ZN11alglib_impl31cmatrixrndorthogonalfromtheleftEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %128, i64 noundef %130, ptr noundef %1)
  call void @_ZN11alglib_impl32cmatrixrndorthogonalfromtherightEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %128, i64 noundef %130, ptr noundef %1)
  call void @_ZN11alglib_impl31rmatrixrndorthogonalfromtheleftEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %128, i64 noundef %130, ptr noundef %1)
  call void @_ZN11alglib_impl32rmatrixrndorthogonalfromtherightEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %128, i64 noundef %130, ptr noundef %1)
  call void @_ZL28testtrfacunit_testcluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %128, i64 noundef %130, double noundef %21, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %1)
  call void @_ZL28testtrfacunit_testrluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %128, i64 noundef %130, double noundef %21, ptr noundef nonnull %13, ptr noundef nonnull %15, ptr noundef %1)
  br i1 %.not453, label %._crit_edge487, label %.lr.ph486

165:                                              ; preds = %.lr.ph486, %441
  %indvar = phi i64 [ 0, %.lr.ph486 ], [ %indvar.next, %441 ]
  %.1485 = phi i64 [ 1, %.lr.ph486 ], [ %460, %441 ]
  %166 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %167 = call double @llvm.fmuladd.f64(double %166, double 5.000000e+01, double 1.000000e+00)
  call void @_ZN11alglib_impl16hpdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %.1485, double noundef %167, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.1485, i64 noundef %.1485, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.1485, i64 noundef %.1485, ptr noundef %1)
  br label %.preheader424

.preheader433:                                    ; preds = %185
  %168 = add nsw i64 %.1485, -1
  br label %187

.preheader424:                                    ; preds = %165, %185
  %.5469 = phi i64 [ 0, %165 ], [ %186, %185 ]
  br label %169

169:                                              ; preds = %.preheader424, %169
  %.3378468 = phi i64 [ 0, %.preheader424 ], [ %184, %169 ]
  %170 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef %.5469)
  %171 = extractvalue { double, double } %170, 0
  %172 = extractvalue { double, double } %170, 1
  %173 = load ptr, ptr %86, align 8, !tbaa !9
  %174 = getelementptr inbounds ptr, ptr %173, i64 %.5469
  %175 = load ptr, ptr %174, align 8, !tbaa !10
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %175, i64 %.3378468
  store double %171, ptr %176, align 8, !tbaa !12
  %.sroa.427.0..sroa_idx = getelementptr inbounds i8, ptr %176, i64 8
  store double %172, ptr %.sroa.427.0..sroa_idx, align 8, !tbaa !12
  %177 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef %.3378468)
  %178 = extractvalue { double, double } %177, 0
  %179 = extractvalue { double, double } %177, 1
  %180 = load ptr, ptr %87, align 8, !tbaa !9
  %181 = getelementptr inbounds ptr, ptr %180, i64 %.5469
  %182 = load ptr, ptr %181, align 8, !tbaa !10
  %183 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %182, i64 %.3378468
  store double %178, ptr %183, align 8, !tbaa !12
  %.sroa.425.0..sroa_idx = getelementptr inbounds i8, ptr %183, i64 8
  store double %179, ptr %.sroa.425.0..sroa_idx, align 8, !tbaa !12
  %184 = add nuw nsw i64 %.3378468, 1
  %exitcond500.not = icmp eq i64 %184, %.1485
  br i1 %exitcond500.not, label %185, label %169, !llvm.loop !24

185:                                              ; preds = %169
  %186 = add nuw nsw i64 %.5469, 1
  %exitcond501.not = icmp eq i64 %186, %.1485
  br i1 %exitcond501.not, label %.preheader433, label %.preheader424, !llvm.loop !25

187:                                              ; preds = %.preheader433, %187
  %.6470 = phi i64 [ 0, %.preheader433 ], [ %204, %187 ]
  %188 = load ptr, ptr %86, align 8, !tbaa !9
  %189 = getelementptr inbounds ptr, ptr %188, i64 %.6470
  %190 = load ptr, ptr %189, align 8, !tbaa !10
  %191 = load ptr, ptr %27, align 8, !tbaa !9
  %192 = getelementptr inbounds ptr, ptr %191, i64 %.6470
  %193 = load ptr, ptr %192, align 8, !tbaa !10
  %194 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.6470)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %190, i64 noundef 1, ptr noundef %193, i64 noundef 1, ptr noundef nonnull @.str.191, i64 noundef %194)
  %195 = load ptr, ptr %87, align 8, !tbaa !9
  %196 = getelementptr inbounds ptr, ptr %195, i64 %.6470
  %197 = load ptr, ptr %196, align 8, !tbaa !10
  %198 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %197, i64 %.6470
  %199 = load ptr, ptr %27, align 8, !tbaa !9
  %200 = getelementptr inbounds ptr, ptr %199, i64 %.6470
  %201 = load ptr, ptr %200, align 8, !tbaa !10
  %202 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %201, i64 %.6470
  %203 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.6470, i64 noundef %168)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %198, i64 noundef 1, ptr noundef %202, i64 noundef 1, ptr noundef nonnull @.str.191, i64 noundef %203)
  %204 = add nuw nsw i64 %.6470, 1
  %exitcond502.not = icmp eq i64 %204, %.1485
  br i1 %exitcond502.not, label %205, label %187, !llvm.loop !26

205:                                              ; preds = %187
  %206 = call noundef zeroext i1 @_ZN11alglib_impl17hpdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.1485, i1 noundef zeroext false, ptr noundef %1)
  br i1 %206, label %.preheader423, label %245

.preheader423:                                    ; preds = %205, %243
  %.7472 = phi i64 [ %244, %243 ], [ 0, %205 ]
  %207 = uitofp nneg i64 %.7472 to double
  br label %208

208:                                              ; preds = %.preheader423, %241
  %.4379471 = phi i64 [ 0, %.preheader423 ], [ %242, %241 ]
  %209 = icmp ugt i64 %.4379471, %.7472
  br i1 %209, label %210, label %219

210:                                              ; preds = %208
  %211 = load i8, ptr %12, align 1, !tbaa !5, !range !27, !noundef !28
  %212 = trunc nuw i8 %211 to i1
  br i1 %212, label %241, label %213

213:                                              ; preds = %210
  %214 = load ptr, ptr %86, align 8, !tbaa !9
  %215 = getelementptr inbounds ptr, ptr %214, i64 %.7472
  %216 = load ptr, ptr %215, align 8, !tbaa !10
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %216, i64 %.4379471
  %.sroa.022.0.copyload = load double, ptr %217, align 8, !tbaa !12
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %217, i64 8
  %.sroa.223.0.copyload = load double, ptr %.sroa.223.0..sroa_idx, align 8, !tbaa !12
  %218 = call noundef zeroext i1 @_ZN11alglib_impl10ae_c_neq_dENS_10ae_complexEd(double %.sroa.022.0.copyload, double %.sroa.223.0.copyload, double noundef %207)
  br label %241

219:                                              ; preds = %208
  %220 = load ptr, ptr %86, align 8, !tbaa !9
  %221 = getelementptr inbounds ptr, ptr %220, i64 %.7472
  %222 = load ptr, ptr %221, align 8, !tbaa !10
  %223 = getelementptr inbounds ptr, ptr %220, i64 %.4379471
  %224 = load ptr, ptr %223, align 8, !tbaa !10
  %225 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.4379471)
  %226 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %222, i64 noundef 1, ptr noundef nonnull @.str.191, ptr noundef %224, i64 noundef 1, ptr noundef nonnull @.str.190, i64 noundef %225)
  %227 = load i8, ptr %12, align 1, !tbaa !5, !range !27, !noundef !28
  %228 = trunc nuw i8 %227 to i1
  br i1 %228, label %241, label %229

229:                                              ; preds = %219
  %230 = extractvalue { double, double } %226, 1
  %231 = extractvalue { double, double } %226, 0
  %232 = load ptr, ptr %27, align 8, !tbaa !9
  %233 = getelementptr inbounds ptr, ptr %232, i64 %.7472
  %234 = load ptr, ptr %233, align 8, !tbaa !10
  %235 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %234, i64 %.4379471
  %.sroa.016.0.copyload = load double, ptr %235, align 8, !tbaa !12
  %.sroa.217.0..sroa_idx = getelementptr inbounds i8, ptr %235, i64 8
  %.sroa.217.0.copyload = load double, ptr %.sroa.217.0..sroa_idx, align 8, !tbaa !12
  %236 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %.sroa.016.0.copyload, double %.sroa.217.0.copyload, double %231, double %230)
  %237 = extractvalue { double, double } %236, 0
  %238 = extractvalue { double, double } %236, 1
  %239 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %237, double %238, ptr noundef %1)
  %240 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %239, double noundef %21)
  br label %241

241:                                              ; preds = %219, %229, %210, %213
  %storemerge408.in = phi i1 [ true, %210 ], [ %218, %213 ], [ true, %219 ], [ %240, %229 ]
  %storemerge408 = zext i1 %storemerge408.in to i8
  store i8 %storemerge408, ptr %12, align 1, !tbaa !5
  %242 = add nuw nsw i64 %.4379471, 1
  %exitcond503.not = icmp eq i64 %242, %.1485
  br i1 %exitcond503.not, label %243, label %208, !llvm.loop !29

243:                                              ; preds = %241
  %244 = add nuw nsw i64 %.7472, 1
  %exitcond504.not = icmp eq i64 %244, %.1485
  br i1 %exitcond504.not, label %.loopexit432, label %.preheader423, !llvm.loop !30

245:                                              ; preds = %205
  store i8 1, ptr %12, align 1, !tbaa !5
  br label %.loopexit432

.loopexit432:                                     ; preds = %243, %245
  %246 = call noundef zeroext i1 @_ZN11alglib_impl17hpdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.1485, i1 noundef zeroext true, ptr noundef %1)
  br i1 %246, label %.preheader422, label %285

.preheader422:                                    ; preds = %.loopexit432, %283
  %.8474 = phi i64 [ %284, %283 ], [ 0, %.loopexit432 ]
  br label %247

247:                                              ; preds = %.preheader422, %281
  %.5380473 = phi i64 [ 0, %.preheader422 ], [ %282, %281 ]
  %248 = icmp ult i64 %.5380473, %.8474
  br i1 %248, label %249, label %259

249:                                              ; preds = %247
  %250 = load i8, ptr %12, align 1, !tbaa !5, !range !27, !noundef !28
  %251 = trunc nuw i8 %250 to i1
  br i1 %251, label %281, label %252

252:                                              ; preds = %249
  %253 = load ptr, ptr %87, align 8, !tbaa !9
  %254 = getelementptr inbounds ptr, ptr %253, i64 %.8474
  %255 = load ptr, ptr %254, align 8, !tbaa !10
  %256 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %255, i64 %.5380473
  %.sroa.012.0.copyload = load double, ptr %256, align 8, !tbaa !12
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %256, i64 8
  %.sroa.213.0.copyload = load double, ptr %.sroa.213.0..sroa_idx, align 8, !tbaa !12
  %257 = uitofp nneg i64 %.5380473 to double
  %258 = call noundef zeroext i1 @_ZN11alglib_impl10ae_c_neq_dENS_10ae_complexEd(double %.sroa.012.0.copyload, double %.sroa.213.0.copyload, double noundef %257)
  br label %281

259:                                              ; preds = %247
  %260 = load ptr, ptr %87, align 8, !tbaa !9
  %261 = load ptr, ptr %260, align 8, !tbaa !10
  %262 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %261, i64 %.8474
  %263 = load i64, ptr %88, align 8, !tbaa !31
  %264 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %261, i64 %.5380473
  %265 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.8474)
  %266 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %262, i64 noundef %263, ptr noundef nonnull @.str.190, ptr noundef %264, i64 noundef %263, ptr noundef nonnull @.str.191, i64 noundef %265)
  %267 = load i8, ptr %12, align 1, !tbaa !5, !range !27, !noundef !28
  %268 = trunc nuw i8 %267 to i1
  br i1 %268, label %281, label %269

269:                                              ; preds = %259
  %270 = extractvalue { double, double } %266, 1
  %271 = extractvalue { double, double } %266, 0
  %272 = load ptr, ptr %27, align 8, !tbaa !9
  %273 = getelementptr inbounds ptr, ptr %272, i64 %.8474
  %274 = load ptr, ptr %273, align 8, !tbaa !10
  %275 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %274, i64 %.5380473
  %.sroa.06.0.copyload = load double, ptr %275, align 8, !tbaa !12
  %.sroa.27.0..sroa_idx = getelementptr inbounds i8, ptr %275, i64 8
  %.sroa.27.0.copyload = load double, ptr %.sroa.27.0..sroa_idx, align 8, !tbaa !12
  %276 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %.sroa.06.0.copyload, double %.sroa.27.0.copyload, double %271, double %270)
  %277 = extractvalue { double, double } %276, 0
  %278 = extractvalue { double, double } %276, 1
  %279 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %277, double %278, ptr noundef %1)
  %280 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %279, double noundef %21)
  br label %281

281:                                              ; preds = %259, %269, %249, %252
  %storemerge406.in = phi i1 [ true, %249 ], [ %258, %252 ], [ true, %259 ], [ %280, %269 ]
  %storemerge406 = zext i1 %storemerge406.in to i8
  store i8 %storemerge406, ptr %12, align 1, !tbaa !5
  %282 = add nuw nsw i64 %.5380473, 1
  %exitcond505.not = icmp eq i64 %282, %.1485
  br i1 %exitcond505.not, label %283, label %247, !llvm.loop !35

283:                                              ; preds = %281
  %284 = add nuw nsw i64 %.8474, 1
  %exitcond506.not = icmp eq i64 %284, %.1485
  br i1 %exitcond506.not, label %.loopexit430, label %.preheader422, !llvm.loop !36

285:                                              ; preds = %.loopexit432
  store i8 1, ptr %12, align 1, !tbaa !5
  br label %.loopexit430

.loopexit430:                                     ; preds = %283, %285
  %286 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %287 = call double @llvm.fmuladd.f64(double %286, double 5.000000e+01, double 1.000000e+00)
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %.1485, double noundef %287, ptr noundef nonnull %4, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1485, i64 noundef %.1485, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.1485, i64 noundef %.1485, ptr noundef %1)
  %xtraiter = and i64 %.1485, 1
  %288 = icmp eq i64 %indvar, 0
  %unroll_iter = and i64 %.1485, -2
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader421

.preheader421:                                    ; preds = %.loopexit430, %319
  %.9476 = phi i64 [ 0, %.loopexit430 ], [ %320, %319 ]
  %289 = uitofp nneg i64 %.9476 to double
  br i1 %288, label %.unr-lcssa, label %.preheader421.new

.preheader421.new:                                ; preds = %.preheader421, %.preheader421.new
  %.6381475 = phi i64 [ %309, %.preheader421.new ], [ 0, %.preheader421 ]
  %niter = phi i64 [ %niter.next.1, %.preheader421.new ], [ 0, %.preheader421 ]
  %290 = load ptr, ptr %89, align 8, !tbaa !9
  %291 = getelementptr inbounds ptr, ptr %290, i64 %.9476
  %292 = load ptr, ptr %291, align 8, !tbaa !10
  %293 = getelementptr inbounds double, ptr %292, i64 %.6381475
  store double %289, ptr %293, align 8, !tbaa !12
  %294 = uitofp nneg i64 %.6381475 to double
  %295 = load ptr, ptr %90, align 8, !tbaa !9
  %296 = getelementptr inbounds ptr, ptr %295, i64 %.9476
  %297 = load ptr, ptr %296, align 8, !tbaa !10
  %298 = getelementptr inbounds double, ptr %297, i64 %.6381475
  store double %294, ptr %298, align 8, !tbaa !12
  %299 = or disjoint i64 %.6381475, 1
  %300 = load ptr, ptr %89, align 8, !tbaa !9
  %301 = getelementptr inbounds ptr, ptr %300, i64 %.9476
  %302 = load ptr, ptr %301, align 8, !tbaa !10
  %303 = getelementptr inbounds double, ptr %302, i64 %299
  store double %289, ptr %303, align 8, !tbaa !12
  %304 = uitofp nneg i64 %299 to double
  %305 = load ptr, ptr %90, align 8, !tbaa !9
  %306 = getelementptr inbounds ptr, ptr %305, i64 %.9476
  %307 = load ptr, ptr %306, align 8, !tbaa !10
  %308 = getelementptr inbounds double, ptr %307, i64 %299
  store double %304, ptr %308, align 8, !tbaa !12
  %309 = add nuw nsw i64 %.6381475, 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 %.unr-lcssa, label %.preheader421.new, !llvm.loop !37

.unr-lcssa:                                       ; preds = %.preheader421.new, %.preheader421
  %.6381475.unr = phi i64 [ 0, %.preheader421 ], [ %309, %.preheader421.new ]
  br i1 %lcmp.mod.not, label %319, label %.epilog-lcssa

.epilog-lcssa:                                    ; preds = %.unr-lcssa
  %310 = load ptr, ptr %89, align 8, !tbaa !9
  %311 = getelementptr inbounds ptr, ptr %310, i64 %.9476
  %312 = load ptr, ptr %311, align 8, !tbaa !10
  %313 = getelementptr inbounds double, ptr %312, i64 %.6381475.unr
  store double %289, ptr %313, align 8, !tbaa !12
  %314 = uitofp nneg i64 %.6381475.unr to double
  %315 = load ptr, ptr %90, align 8, !tbaa !9
  %316 = getelementptr inbounds ptr, ptr %315, i64 %.9476
  %317 = load ptr, ptr %316, align 8, !tbaa !10
  %318 = getelementptr inbounds double, ptr %317, i64 %.6381475.unr
  store double %314, ptr %318, align 8, !tbaa !12
  br label %319

319:                                              ; preds = %.unr-lcssa, %.epilog-lcssa
  %320 = add nuw nsw i64 %.9476, 1
  %exitcond508.not = icmp eq i64 %320, %.1485
  br i1 %exitcond508.not, label %.preheader428, label %.preheader421, !llvm.loop !38

.preheader428:                                    ; preds = %319, %.preheader428
  %.10477 = phi i64 [ %337, %.preheader428 ], [ 0, %319 ]
  %321 = load ptr, ptr %89, align 8, !tbaa !9
  %322 = getelementptr inbounds ptr, ptr %321, i64 %.10477
  %323 = load ptr, ptr %322, align 8, !tbaa !10
  %324 = load ptr, ptr %26, align 8, !tbaa !9
  %325 = getelementptr inbounds ptr, ptr %324, i64 %.10477
  %326 = load ptr, ptr %325, align 8, !tbaa !10
  %327 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.10477)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %323, i64 noundef 1, ptr noundef %326, i64 noundef 1, i64 noundef %327)
  %328 = load ptr, ptr %90, align 8, !tbaa !9
  %329 = getelementptr inbounds ptr, ptr %328, i64 %.10477
  %330 = load ptr, ptr %329, align 8, !tbaa !10
  %331 = getelementptr inbounds double, ptr %330, i64 %.10477
  %332 = load ptr, ptr %26, align 8, !tbaa !9
  %333 = getelementptr inbounds ptr, ptr %332, i64 %.10477
  %334 = load ptr, ptr %333, align 8, !tbaa !10
  %335 = getelementptr inbounds double, ptr %334, i64 %.10477
  %336 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.10477, i64 noundef %168)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %331, i64 noundef 1, ptr noundef %335, i64 noundef 1, i64 noundef %336)
  %337 = add nuw nsw i64 %.10477, 1
  %exitcond509.not = icmp eq i64 %337, %.1485
  br i1 %exitcond509.not, label %338, label %.preheader428, !llvm.loop !39

338:                                              ; preds = %.preheader428
  %339 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1485, i1 noundef zeroext false, ptr noundef %1)
  br i1 %339, label %.preheader420, label %376

.preheader420:                                    ; preds = %338, %374
  %.11479 = phi i64 [ %375, %374 ], [ 0, %338 ]
  %340 = uitofp nneg i64 %.11479 to double
  br label %341

341:                                              ; preds = %.preheader420, %372
  %.7382478 = phi i64 [ 0, %.preheader420 ], [ %373, %372 ]
  %342 = icmp ugt i64 %.7382478, %.11479
  br i1 %342, label %343, label %353

343:                                              ; preds = %341
  %344 = load i8, ptr %10, align 1, !tbaa !5, !range !27, !noundef !28
  %345 = trunc nuw i8 %344 to i1
  br i1 %345, label %372, label %346

346:                                              ; preds = %343
  %347 = load ptr, ptr %89, align 8, !tbaa !9
  %348 = getelementptr inbounds ptr, ptr %347, i64 %.11479
  %349 = load ptr, ptr %348, align 8, !tbaa !10
  %350 = getelementptr inbounds double, ptr %349, i64 %.7382478
  %351 = load double, ptr %350, align 8, !tbaa !12
  %352 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %351, double noundef %340)
  br label %372

353:                                              ; preds = %341
  %354 = load ptr, ptr %89, align 8, !tbaa !9
  %355 = getelementptr inbounds ptr, ptr %354, i64 %.11479
  %356 = load ptr, ptr %355, align 8, !tbaa !10
  %357 = getelementptr inbounds ptr, ptr %354, i64 %.7382478
  %358 = load ptr, ptr %357, align 8, !tbaa !10
  %359 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.7382478)
  %360 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %356, i64 noundef 1, ptr noundef %358, i64 noundef 1, i64 noundef %359)
  %361 = load i8, ptr %10, align 1, !tbaa !5, !range !27, !noundef !28
  %362 = trunc nuw i8 %361 to i1
  br i1 %362, label %372, label %363

363:                                              ; preds = %353
  %364 = load ptr, ptr %26, align 8, !tbaa !9
  %365 = getelementptr inbounds ptr, ptr %364, i64 %.11479
  %366 = load ptr, ptr %365, align 8, !tbaa !10
  %367 = getelementptr inbounds double, ptr %366, i64 %.7382478
  %368 = load double, ptr %367, align 8, !tbaa !12
  %369 = fsub double %368, %360
  %370 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %369, ptr noundef %1)
  %371 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %370, double noundef %21)
  br label %372

372:                                              ; preds = %353, %363, %343, %346
  %storemerge403.in = phi i1 [ true, %343 ], [ %352, %346 ], [ true, %353 ], [ %371, %363 ]
  %storemerge403 = zext i1 %storemerge403.in to i8
  store i8 %storemerge403, ptr %10, align 1, !tbaa !5
  %373 = add nuw nsw i64 %.7382478, 1
  %exitcond510.not = icmp eq i64 %373, %.1485
  br i1 %exitcond510.not, label %374, label %341, !llvm.loop !40

374:                                              ; preds = %372
  %375 = add nuw nsw i64 %.11479, 1
  %exitcond511.not = icmp eq i64 %375, %.1485
  br i1 %exitcond511.not, label %.loopexit427, label %.preheader420, !llvm.loop !41

376:                                              ; preds = %338
  store i8 1, ptr %10, align 1, !tbaa !5
  br label %.loopexit427

.loopexit427:                                     ; preds = %374, %376
  %377 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.1485, i1 noundef zeroext true, ptr noundef %1)
  br i1 %377, label %.preheader419, label %414

.preheader419:                                    ; preds = %.loopexit427, %412
  %.12481 = phi i64 [ %413, %412 ], [ 0, %.loopexit427 ]
  br label %378

378:                                              ; preds = %.preheader419, %410
  %.8383480 = phi i64 [ 0, %.preheader419 ], [ %411, %410 ]
  %379 = icmp ult i64 %.8383480, %.12481
  br i1 %379, label %380, label %391

380:                                              ; preds = %378
  %381 = load i8, ptr %10, align 1, !tbaa !5, !range !27, !noundef !28
  %382 = trunc nuw i8 %381 to i1
  br i1 %382, label %410, label %383

383:                                              ; preds = %380
  %384 = load ptr, ptr %90, align 8, !tbaa !9
  %385 = getelementptr inbounds ptr, ptr %384, i64 %.12481
  %386 = load ptr, ptr %385, align 8, !tbaa !10
  %387 = getelementptr inbounds double, ptr %386, i64 %.8383480
  %388 = load double, ptr %387, align 8, !tbaa !12
  %389 = uitofp nneg i64 %.8383480 to double
  %390 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %388, double noundef %389)
  br label %410

391:                                              ; preds = %378
  %392 = load ptr, ptr %90, align 8, !tbaa !9
  %393 = load ptr, ptr %392, align 8, !tbaa !10
  %394 = getelementptr inbounds double, ptr %393, i64 %.12481
  %395 = load i64, ptr %91, align 8, !tbaa !31
  %396 = getelementptr inbounds double, ptr %393, i64 %.8383480
  %397 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.12481)
  %398 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %394, i64 noundef %395, ptr noundef %396, i64 noundef %395, i64 noundef %397)
  %399 = load i8, ptr %10, align 1, !tbaa !5, !range !27, !noundef !28
  %400 = trunc nuw i8 %399 to i1
  br i1 %400, label %410, label %401

401:                                              ; preds = %391
  %402 = load ptr, ptr %26, align 8, !tbaa !9
  %403 = getelementptr inbounds ptr, ptr %402, i64 %.12481
  %404 = load ptr, ptr %403, align 8, !tbaa !10
  %405 = getelementptr inbounds double, ptr %404, i64 %.8383480
  %406 = load double, ptr %405, align 8, !tbaa !12
  %407 = fsub double %406, %398
  %408 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %407, ptr noundef %1)
  %409 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %408, double noundef %21)
  br label %410

410:                                              ; preds = %391, %401, %380, %383
  %storemerge.in = phi i1 [ true, %380 ], [ %390, %383 ], [ true, %391 ], [ %409, %401 ]
  %storemerge = zext i1 %storemerge.in to i8
  store i8 %storemerge, ptr %10, align 1, !tbaa !5
  %411 = add nuw nsw i64 %.8383480, 1
  %exitcond512.not = icmp eq i64 %411, %.1485
  br i1 %exitcond512.not, label %412, label %378, !llvm.loop !42

412:                                              ; preds = %410
  %413 = add nuw nsw i64 %.12481, 1
  %exitcond513.not = icmp eq i64 %413, %.1485
  br i1 %exitcond513.not, label %.loopexit, label %.preheader419, !llvm.loop !43

414:                                              ; preds = %.loopexit427
  store i8 1, ptr %10, align 1, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %412, %414
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1485, i64 noundef %.1485, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.1485, i64 noundef %.1485, ptr noundef %1)
  br label %.preheader

.preheader:                                       ; preds = %.loopexit, %428
  %.13483 = phi i64 [ 0, %.loopexit ], [ %440, %428 ]
  br label %415

415:                                              ; preds = %.preheader, %415
  %.9384482 = phi i64 [ 0, %.preheader ], [ %427, %415 ]
  %416 = load ptr, ptr %26, align 8, !tbaa !9
  %417 = getelementptr inbounds ptr, ptr %416, i64 %.13483
  %418 = load ptr, ptr %417, align 8, !tbaa !10
  %419 = getelementptr inbounds double, ptr %418, i64 %.9384482
  store double 0.000000e+00, ptr %419, align 8, !tbaa !12
  %420 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 0.000000e+00)
  %421 = extractvalue { double, double } %420, 0
  %422 = extractvalue { double, double } %420, 1
  %423 = load ptr, ptr %27, align 8, !tbaa !9
  %424 = getelementptr inbounds ptr, ptr %423, i64 %.13483
  %425 = load ptr, ptr %424, align 8, !tbaa !10
  %426 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %425, i64 %.9384482
  store double %421, ptr %426, align 8, !tbaa !12
  %.sroa.44.0..sroa_idx = getelementptr inbounds i8, ptr %426, i64 8
  store double %422, ptr %.sroa.44.0..sroa_idx, align 8, !tbaa !12
  %427 = add nuw nsw i64 %.9384482, 1
  %exitcond514.not = icmp eq i64 %427, %.1485
  br i1 %exitcond514.not, label %428, label %415, !llvm.loop !44

428:                                              ; preds = %415
  %429 = load ptr, ptr %26, align 8, !tbaa !9
  %430 = getelementptr inbounds ptr, ptr %429, i64 %.13483
  %431 = load ptr, ptr %430, align 8, !tbaa !10
  %432 = getelementptr inbounds double, ptr %431, i64 %.13483
  store double 1.000000e+00, ptr %432, align 8, !tbaa !12
  %433 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %434 = extractvalue { double, double } %433, 0
  %435 = extractvalue { double, double } %433, 1
  %436 = load ptr, ptr %27, align 8, !tbaa !9
  %437 = getelementptr inbounds ptr, ptr %436, i64 %.13483
  %438 = load ptr, ptr %437, align 8, !tbaa !10
  %439 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %438, i64 %.13483
  store double %434, ptr %439, align 8, !tbaa !12
  %.sroa.42.0..sroa_idx = getelementptr inbounds i8, ptr %439, i64 8
  store double %435, ptr %.sroa.42.0..sroa_idx, align 8, !tbaa !12
  %440 = add nuw nsw i64 %.13483, 1
  %exitcond515.not = icmp eq i64 %440, %.1485
  br i1 %exitcond515.not, label %441, label %.preheader, !llvm.loop !45

441:                                              ; preds = %428
  %442 = load ptr, ptr %26, align 8, !tbaa !9
  %443 = lshr i64 %.1485, 1
  %444 = getelementptr inbounds ptr, ptr %442, i64 %443
  %445 = load ptr, ptr %444, align 8, !tbaa !10
  %446 = getelementptr inbounds double, ptr %445, i64 %443
  store double -1.000000e+00, ptr %446, align 8, !tbaa !12
  %447 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef -1.000000e+00)
  %448 = extractvalue { double, double } %447, 0
  %449 = extractvalue { double, double } %447, 1
  %450 = load ptr, ptr %27, align 8, !tbaa !9
  %451 = getelementptr inbounds ptr, ptr %450, i64 %443
  %452 = load ptr, ptr %451, align 8, !tbaa !10
  %453 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %452, i64 %443
  store double %448, ptr %453, align 8, !tbaa !12
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %453, i64 8
  store double %449, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !12
  %454 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %455 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %454, double noundef 5.000000e-01)
  %456 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1485, i1 noundef zeroext %455, ptr noundef %1)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %10, i1 noundef zeroext %456, ptr noundef nonnull @.str.8, i32 noundef 15006, ptr noundef nonnull @.str.206)
  %457 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %458 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %457, double noundef 5.000000e-01)
  %459 = call noundef zeroext i1 @_ZN11alglib_impl17hpdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.1485, i1 noundef zeroext %458, ptr noundef %1)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %459, ptr noundef nonnull @.str.8, i32 noundef 15007, ptr noundef nonnull @.str.207)
  %460 = add nuw i64 %.1485, 1
  %exitcond517 = icmp eq i64 %.1485, %smax516
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond517, label %._crit_edge487, label %165, !llvm.loop !46

._crit_edge487:                                   ; preds = %441, %._crit_edge466.1
  %461 = load i8, ptr %13, align 1, !tbaa !5, !range !27, !noundef !28
  %462 = trunc nuw i8 %461 to i1
  br i1 %462, label %480, label %463

463:                                              ; preds = %._crit_edge487
  %464 = load i8, ptr %11, align 1, !tbaa !5, !range !27, !noundef !28
  %465 = trunc nuw i8 %464 to i1
  %466 = load i8, ptr %10, align 1, !range !27
  %467 = trunc nuw i8 %466 to i1
  %brmerge = or i1 %22, %467
  %or.cond = select i1 %465, i1 true, i1 %brmerge
  br i1 %or.cond, label %480, label %468

468:                                              ; preds = %463
  %469 = load i8, ptr %14, align 1, !tbaa !5, !range !27, !noundef !28
  %470 = trunc nuw i8 %469 to i1
  br i1 %470, label %480, label %471

471:                                              ; preds = %468
  %472 = load i8, ptr %12, align 1, !tbaa !5, !range !27, !noundef !28
  %473 = trunc nuw i8 %472 to i1
  br i1 %473, label %480, label %474

474:                                              ; preds = %471
  %475 = load i8, ptr %15, align 1, !tbaa !5, !range !27, !noundef !28
  %476 = trunc nuw i8 %475 to i1
  br i1 %476, label %480, label %477

477:                                              ; preds = %474
  %478 = load i8, ptr %16, align 1, !tbaa !5, !range !27, !noundef !28
  %479 = trunc nuw i8 %478 to i1
  br label %480

480:                                              ; preds = %477, %474, %471, %468, %463, %._crit_edge487
  %481 = phi i1 [ true, %474 ], [ true, %471 ], [ true, %468 ], [ true, %463 ], [ true, %._crit_edge487 ], [ %479, %477 ]
  br i1 %0, label %517, label %482

482:                                              ; preds = %480
  %483 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.208)
  %484 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.209)
  %485 = load i8, ptr %13, align 1, !tbaa !5, !range !27, !noundef !28
  %486 = trunc nuw i8 %485 to i1
  %.str.7..str.6 = select i1 %486, ptr @.str.7, ptr @.str.6
  %487 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %488 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.210)
  %489 = load i8, ptr %11, align 1, !tbaa !5, !range !27, !noundef !28
  %490 = trunc nuw i8 %489 to i1
  %.str.6.sink522 = select i1 %490, ptr @.str.7, ptr @.str.6
  %491 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink522)
  %492 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.211)
  %493 = load i8, ptr %10, align 1, !tbaa !5, !range !27, !noundef !28
  %494 = trunc nuw i8 %493 to i1
  %.str.6.sink523 = select i1 %494, ptr @.str.7, ptr @.str.6
  %495 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink523)
  %496 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.212)
  %.str.6.sink524 = select i1 %22, ptr @.str.7, ptr @.str.6
  %497 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink524)
  %498 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.213)
  %499 = load i8, ptr %14, align 1, !tbaa !5, !range !27, !noundef !28
  %500 = trunc nuw i8 %499 to i1
  %.str.6.sink525 = select i1 %500, ptr @.str.7, ptr @.str.6
  %501 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink525)
  %502 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.214)
  %503 = load i8, ptr %12, align 1, !tbaa !5, !range !27, !noundef !28
  %504 = trunc nuw i8 %503 to i1
  %.str.6.sink526 = select i1 %504, ptr @.str.7, ptr @.str.6
  %505 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink526)
  %506 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.215)
  %507 = load i8, ptr %15, align 1, !tbaa !5, !range !27, !noundef !28
  %508 = trunc nuw i8 %507 to i1
  %.str.6.sink527 = select i1 %508, ptr @.str.7, ptr @.str.6
  %509 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink527)
  %510 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.216)
  %511 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.211)
  %512 = load i8, ptr %16, align 1, !tbaa !5, !range !27, !noundef !28
  %513 = trunc nuw i8 %512 to i1
  %.str.6.sink528 = select i1 %513, ptr @.str.7, ptr @.str.6
  %514 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink528)
  %.str.2.sink = select i1 %481, ptr @.str.1, ptr @.str.2
  %515 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
  %516 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %517

517:                                              ; preds = %482, %480
  %518 = xor i1 %481, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  ret i1 %518
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z22sparserealcholeskytestPN11alglib_impl8ae_stateE(ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z16sparsereallutestPbPN11alglib_impl8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL38testtrfacunit_testdensecholeskyupdatesPbPN11alglib_impl8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL28testtrfacunit_testcluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL28testtrfacunit_testrluproblemPN11alglib_impl9ae_matrixElldPbS2_PNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #6

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = distinct !{!29, !15}
!30 = distinct !{!30, !15}
!31 = !{!32, !33, i64 16}
!32 = !{!"_ZTSN11alglib_impl9ae_matrixE", !33, i64 0, !33, i64 8, !33, i64 16, !33, i64 24, !6, i64 32, !34, i64 40, !7, i64 72}
!33 = !{!"long", !7, i64 0}
!34 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!35 = distinct !{!35, !15}
!36 = distinct !{!36, !15}
!37 = distinct !{!37, !15}
!38 = distinct !{!38, !15}
!39 = distinct !{!39, !15}
!40 = distinct !{!40, !15}
!41 = distinct !{!41, !15}
!42 = distinct !{!42, !15}
!43 = distinct !{!43, !15}
!44 = distinct !{!44, !15}
!45 = distinct !{!45, !15}
!46 = distinct !{!46, !15}


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