; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z7testpcabPN11alglib_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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { 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::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }

@.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.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.485 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.486 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.487 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.488 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.489 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.490 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.491 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.492 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.493 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.494 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.495 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.496 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.497 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.498 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.499 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.500 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.501 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.502 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.503 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.504 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.505 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.506 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.507 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.508 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.509 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.510 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.511 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.512 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

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

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

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr 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 void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 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_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z7testpcabPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #4 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca double, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %21 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %22 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %35 = alloca i64, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca i64, align 8
  %40 = alloca i8, align 1
  %41 = alloca i8, align 1
  %42 = alloca i8, align 1
  %43 = alloca i8, align 1
  %44 = alloca i8, align 1
  %45 = alloca i8, align 1
  %46 = alloca i8, align 1
  %47 = alloca i8, align 1
  %48 = zext i1 %0 to i8
  store i8 %48, ptr %3, align 1, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %41) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %42) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %43) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %47) #5
  %49 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %49, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %34, i8 0, i64 24, i1 false)
  %50 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %15, i64 noundef 0, i64 noundef 3, ptr noundef %50, i1 noundef zeroext true)
  %51 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 3, ptr noundef %51, i1 noundef zeroext true)
  %52 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 3, ptr noundef %52, i1 noundef zeroext true)
  %53 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 3, ptr noundef %53, i1 noundef zeroext true)
  %54 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 3, ptr noundef %54, i1 noundef zeroext true)
  %55 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %20, 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 %21, 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 %22, 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_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %25, ptr noundef %58, i1 noundef zeroext true)
  %59 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %34, ptr noundef %59, i1 noundef zeroext true)
  %60 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %34, ptr noundef %60)
  store i64 10, ptr %7, align 8, !tbaa !11
  store i64 100, ptr %6, align 8, !tbaa !11
  store double 5.000000e-11, ptr %8, align 8, !tbaa !13
  store i8 0, ptr %46, align 1, !tbaa !5
  store i8 0, ptr %40, align 1, !tbaa !5
  store i8 0, ptr %41, align 1, !tbaa !5
  store i8 0, ptr %42, align 1, !tbaa !5
  store i8 0, ptr %43, align 1, !tbaa !5
  store i8 0, ptr %44, align 1, !tbaa !5
  store i8 0, ptr %45, align 1, !tbaa !5
  store i64 1, ptr %9, align 8, !tbaa !11
  br label %61

61:                                               ; preds = %463, %2
  %62 = load i64, ptr %9, align 8, !tbaa !11
  %63 = load i64, ptr %7, align 8, !tbaa !11
  %64 = icmp sle i64 %62, %63
  br i1 %64, label %65, label %466

65:                                               ; preds = %61
  store i64 1, ptr %10, align 8, !tbaa !11
  br label %66

66:                                               ; preds = %459, %65
  %67 = load i64, ptr %10, align 8, !tbaa !11
  %68 = load i64, ptr %6, align 8, !tbaa !11
  %69 = icmp sle i64 %67, %68
  br i1 %69, label %70, label %462

70:                                               ; preds = %66
  %71 = load i64, ptr %10, align 8, !tbaa !11
  %72 = sub nsw i64 %71, 1
  %73 = add nsw i64 %72, 1
  %74 = load i64, ptr %9, align 8, !tbaa !11
  %75 = sub nsw i64 %74, 1
  %76 = add nsw i64 %75, 1
  %77 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %22, i64 noundef %73, i64 noundef %76, ptr noundef %77)
  %78 = load i64, ptr %9, align 8, !tbaa !11
  %79 = sub nsw i64 %78, 1
  %80 = add nsw i64 %79, 1
  %81 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %15, i64 noundef %80, ptr noundef %81)
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %82

82:                                               ; preds = %95, %70
  %83 = load i64, ptr %12, align 8, !tbaa !11
  %84 = load i64, ptr %9, align 8, !tbaa !11
  %85 = sub nsw i64 %84, 1
  %86 = icmp sle i64 %83, %85
  br i1 %86, label %87, label %98

87:                                               ; preds = %82
  %88 = load ptr, ptr %4, align 8, !tbaa !9
  %89 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %88)
  %90 = call double @llvm.fmuladd.f64(double 1.500000e+00, double %89, double -7.500000e-01)
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %92 = load ptr, ptr %91, align 8, !tbaa !15
  %93 = load i64, ptr %12, align 8, !tbaa !11
  %94 = getelementptr inbounds double, ptr %92, i64 %93
  store double %90, ptr %94, align 8, !tbaa !13
  br label %95

95:                                               ; preds = %87
  %96 = load i64, ptr %12, align 8, !tbaa !11
  %97 = add nsw i64 %96, 1
  store i64 %97, ptr %12, align 8, !tbaa !11
  br label %82, !llvm.loop !16

98:                                               ; preds = %82
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %99

99:                                               ; preds = %131, %98
  %100 = load i64, ptr %11, align 8, !tbaa !11
  %101 = load i64, ptr %10, align 8, !tbaa !11
  %102 = sub nsw i64 %101, 1
  %103 = icmp sle i64 %100, %102
  br i1 %103, label %104, label %134

104:                                              ; preds = %99
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %105

105:                                              ; preds = %127, %104
  %106 = load i64, ptr %12, align 8, !tbaa !11
  %107 = load i64, ptr %9, align 8, !tbaa !11
  %108 = sub nsw i64 %107, 1
  %109 = icmp sle i64 %106, %108
  br i1 %109, label %110, label %130

110:                                              ; preds = %105
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %112 = load ptr, ptr %111, align 8, !tbaa !15
  %113 = load i64, ptr %12, align 8, !tbaa !11
  %114 = getelementptr inbounds double, ptr %112, i64 %113
  %115 = load double, ptr %114, align 8, !tbaa !13
  %116 = load ptr, ptr %4, align 8, !tbaa !9
  %117 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %116)
  %118 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %117, double -1.000000e+00)
  %119 = fadd double %115, %118
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %121 = load ptr, ptr %120, align 8, !tbaa !15
  %122 = load i64, ptr %11, align 8, !tbaa !11
  %123 = getelementptr inbounds ptr, ptr %121, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !9
  %125 = load i64, ptr %12, align 8, !tbaa !11
  %126 = getelementptr inbounds double, ptr %124, i64 %125
  store double %119, ptr %126, align 8, !tbaa !13
  br label %127

127:                                              ; preds = %110
  %128 = load i64, ptr %12, align 8, !tbaa !11
  %129 = add nsw i64 %128, 1
  store i64 %129, ptr %12, align 8, !tbaa !11
  br label %105, !llvm.loop !18

130:                                              ; preds = %105
  br label %131

131:                                              ; preds = %130
  %132 = load i64, ptr %11, align 8, !tbaa !11
  %133 = add nsw i64 %132, 1
  store i64 %133, ptr %11, align 8, !tbaa !11
  br label %99, !llvm.loop !19

134:                                              ; preds = %99
  %135 = load i64, ptr %10, align 8, !tbaa !11
  %136 = load i64, ptr %9, align 8, !tbaa !11
  %137 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pcabuildbasisEPNS_9ae_matrixEllPlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %22, i64 noundef %135, i64 noundef %136, ptr noundef %14, ptr noundef %16, ptr noundef %20, ptr noundef %137)
  %138 = load i64, ptr %14, align 8, !tbaa !11
  %139 = icmp ne i64 %138, 1
  br i1 %139, label %140, label %141

140:                                              ; preds = %134
  store i8 1, ptr %40, align 1, !tbaa !5
  br label %459

141:                                              ; preds = %134
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %142

142:                                              ; preds = %196, %141
  %143 = load i64, ptr %11, align 8, !tbaa !11
  %144 = load i64, ptr %9, align 8, !tbaa !11
  %145 = sub nsw i64 %144, 1
  %146 = icmp sle i64 %143, %145
  br i1 %146, label %147, label %199

147:                                              ; preds = %142
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %148

148:                                              ; preds = %192, %147
  %149 = load i64, ptr %12, align 8, !tbaa !11
  %150 = load i64, ptr %9, align 8, !tbaa !11
  %151 = sub nsw i64 %150, 1
  %152 = icmp sle i64 %149, %151
  br i1 %152, label %153, label %195

153:                                              ; preds = %148
  %154 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %155 = load ptr, ptr %154, align 8, !tbaa !15
  %156 = getelementptr inbounds ptr, ptr %155, i64 0
  %157 = load ptr, ptr %156, align 8, !tbaa !9
  %158 = load i64, ptr %11, align 8, !tbaa !11
  %159 = getelementptr inbounds double, ptr %157, i64 %158
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 2
  %161 = load i64, ptr %160, align 8, !tbaa !20
  %162 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %163 = load ptr, ptr %162, align 8, !tbaa !15
  %164 = getelementptr inbounds ptr, ptr %163, i64 0
  %165 = load ptr, ptr %164, align 8, !tbaa !9
  %166 = load i64, ptr %12, align 8, !tbaa !11
  %167 = getelementptr inbounds double, ptr %165, i64 %166
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 2
  %169 = load i64, ptr %168, align 8, !tbaa !20
  %170 = load i64, ptr %9, align 8, !tbaa !11
  %171 = sub nsw i64 %170, 1
  %172 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %171)
  %173 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %159, i64 noundef %161, ptr noundef %167, i64 noundef %169, i64 noundef %172)
  store double %173, ptr %23, align 8, !tbaa !13
  %174 = load i64, ptr %11, align 8, !tbaa !11
  %175 = load i64, ptr %12, align 8, !tbaa !11
  %176 = icmp eq i64 %174, %175
  br i1 %176, label %177, label %180

177:                                              ; preds = %153
  %178 = load double, ptr %23, align 8, !tbaa !13
  %179 = fsub double %178, 1.000000e+00
  store double %179, ptr %23, align 8, !tbaa !13
  br label %180

180:                                              ; preds = %177, %153
  %181 = load i8, ptr %41, align 1, !tbaa !5, !range !23, !noundef !24
  %182 = trunc i8 %181 to i1
  br i1 %182, label %189, label %183

183:                                              ; preds = %180
  %184 = load double, ptr %23, align 8, !tbaa !13
  %185 = load ptr, ptr %4, align 8, !tbaa !9
  %186 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %184, ptr noundef %185)
  %187 = load double, ptr %8, align 8, !tbaa !13
  %188 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %186, double noundef %187)
  br label %189

189:                                              ; preds = %183, %180
  %190 = phi i1 [ true, %180 ], [ %188, %183 ]
  %191 = zext i1 %190 to i8
  store i8 %191, ptr %41, align 1, !tbaa !5
  br label %192

192:                                              ; preds = %189
  %193 = load i64, ptr %12, align 8, !tbaa !11
  %194 = add nsw i64 %193, 1
  store i64 %194, ptr %12, align 8, !tbaa !11
  br label %148, !llvm.loop !25

195:                                              ; preds = %148
  br label %196

196:                                              ; preds = %195
  %197 = load i64, ptr %11, align 8, !tbaa !11
  %198 = add nsw i64 %197, 1
  store i64 %198, ptr %11, align 8, !tbaa !11
  br label %142, !llvm.loop !26

199:                                              ; preds = %142
  %200 = load i64, ptr %10, align 8, !tbaa !11
  %201 = sub nsw i64 %200, 1
  %202 = add nsw i64 %201, 1
  %203 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %202, ptr noundef %203)
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %204

204:                                              ; preds = %277, %199
  %205 = load i64, ptr %13, align 8, !tbaa !11
  %206 = load i64, ptr %9, align 8, !tbaa !11
  %207 = sub nsw i64 %206, 1
  %208 = icmp sle i64 %205, %207
  br i1 %208, label %209, label %280

209:                                              ; preds = %204
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %210

210:                                              ; preds = %239, %209
  %211 = load i64, ptr %11, align 8, !tbaa !11
  %212 = load i64, ptr %10, align 8, !tbaa !11
  %213 = sub nsw i64 %212, 1
  %214 = icmp sle i64 %211, %213
  br i1 %214, label %215, label %242

215:                                              ; preds = %210
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %217 = load ptr, ptr %216, align 8, !tbaa !15
  %218 = load i64, ptr %11, align 8, !tbaa !11
  %219 = getelementptr inbounds ptr, ptr %217, i64 %218
  %220 = load ptr, ptr %219, align 8, !tbaa !9
  %221 = getelementptr inbounds double, ptr %220, i64 0
  %222 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %223 = load ptr, ptr %222, align 8, !tbaa !15
  %224 = getelementptr inbounds ptr, ptr %223, i64 0
  %225 = load ptr, ptr %224, align 8, !tbaa !9
  %226 = load i64, ptr %13, align 8, !tbaa !11
  %227 = getelementptr inbounds double, ptr %225, i64 %226
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 2
  %229 = load i64, ptr %228, align 8, !tbaa !20
  %230 = load i64, ptr %9, align 8, !tbaa !11
  %231 = sub nsw i64 %230, 1
  %232 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %231)
  %233 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %221, i64 noundef 1, ptr noundef %227, i64 noundef %229, i64 noundef %232)
  store double %233, ptr %23, align 8, !tbaa !13
  %234 = load double, ptr %23, align 8, !tbaa !13
  %235 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %236 = load ptr, ptr %235, align 8, !tbaa !15
  %237 = load i64, ptr %11, align 8, !tbaa !11
  %238 = getelementptr inbounds double, ptr %236, i64 %237
  store double %234, ptr %238, align 8, !tbaa !13
  br label %239

239:                                              ; preds = %215
  %240 = load i64, ptr %11, align 8, !tbaa !11
  %241 = add nsw i64 %240, 1
  store i64 %241, ptr %11, align 8, !tbaa !11
  br label %210, !llvm.loop !27

242:                                              ; preds = %210
  %243 = load i64, ptr %10, align 8, !tbaa !11
  %244 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testpcaunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %18, i64 noundef %243, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %244)
  %245 = load i64, ptr %10, align 8, !tbaa !11
  %246 = icmp ne i64 %245, 1
  br i1 %246, label %247, label %258

247:                                              ; preds = %242
  %248 = load double, ptr %28, align 8, !tbaa !13
  %249 = load ptr, ptr %4, align 8, !tbaa !9
  %250 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %248, ptr noundef %249)
  %251 = load i64, ptr %10, align 8, !tbaa !11
  %252 = sitofp i64 %251 to double
  %253 = fmul double %250, %252
  %254 = load i64, ptr %10, align 8, !tbaa !11
  %255 = sub nsw i64 %254, 1
  %256 = sitofp i64 %255 to double
  %257 = fdiv double %253, %256
  store double %257, ptr %23, align 8, !tbaa !13
  br label %259

258:                                              ; preds = %242
  store double 0.000000e+00, ptr %23, align 8, !tbaa !13
  br label %259

259:                                              ; preds = %258, %247
  %260 = load i8, ptr %42, align 1, !tbaa !5, !range !23, !noundef !24
  %261 = trunc i8 %260 to i1
  br i1 %261, label %274, label %262

262:                                              ; preds = %259
  %263 = load double, ptr %23, align 8, !tbaa !13
  %264 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %265 = load ptr, ptr %264, align 8, !tbaa !15
  %266 = load i64, ptr %13, align 8, !tbaa !11
  %267 = getelementptr inbounds double, ptr %265, i64 %266
  %268 = load double, ptr %267, align 8, !tbaa !13
  %269 = fsub double %263, %268
  %270 = load ptr, ptr %4, align 8, !tbaa !9
  %271 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %269, ptr noundef %270)
  %272 = load double, ptr %8, align 8, !tbaa !13
  %273 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %271, double noundef %272)
  br label %274

274:                                              ; preds = %262, %259
  %275 = phi i1 [ true, %259 ], [ %273, %262 ]
  %276 = zext i1 %275 to i8
  store i8 %276, ptr %42, align 1, !tbaa !5
  br label %277

277:                                              ; preds = %274
  %278 = load i64, ptr %13, align 8, !tbaa !11
  %279 = add nsw i64 %278, 1
  store i64 %279, ptr %13, align 8, !tbaa !11
  br label %204, !llvm.loop !28

280:                                              ; preds = %204
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %281

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

286:                                              ; preds = %281
  %287 = load i8, ptr %42, align 1, !tbaa !5, !range !23, !noundef !24
  %288 = trunc i8 %287 to i1
  br i1 %288, label %302, label %289

289:                                              ; preds = %286
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %291 = load ptr, ptr %290, align 8, !tbaa !15
  %292 = load i64, ptr %13, align 8, !tbaa !11
  %293 = getelementptr inbounds double, ptr %291, i64 %292
  %294 = load double, ptr %293, align 8, !tbaa !13
  %295 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %296 = load ptr, ptr %295, align 8, !tbaa !15
  %297 = load i64, ptr %13, align 8, !tbaa !11
  %298 = add nsw i64 %297, 1
  %299 = getelementptr inbounds double, ptr %296, i64 %298
  %300 = load double, ptr %299, align 8, !tbaa !13
  %301 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %294, double noundef %300)
  br label %302

302:                                              ; preds = %289, %286
  %303 = phi i1 [ true, %286 ], [ %301, %289 ]
  %304 = zext i1 %303 to i8
  store i8 %304, ptr %42, align 1, !tbaa !5
  br label %305

305:                                              ; preds = %302
  %306 = load i64, ptr %13, align 8, !tbaa !11
  %307 = add nsw i64 %306, 1
  store i64 %307, ptr %13, align 8, !tbaa !11
  br label %281, !llvm.loop !29

308:                                              ; preds = %281
  %309 = load i64, ptr %10, align 8, !tbaa !11
  %310 = sub nsw i64 %309, 1
  %311 = add nsw i64 %310, 1
  %312 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %311, ptr noundef %312)
  %313 = load i64, ptr %10, align 8, !tbaa !11
  %314 = sub nsw i64 %313, 1
  %315 = add nsw i64 %314, 1
  %316 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %315, ptr noundef %316)
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %317

317:                                              ; preds = %345, %308
  %318 = load i64, ptr %11, align 8, !tbaa !11
  %319 = load i64, ptr %10, align 8, !tbaa !11
  %320 = sub nsw i64 %319, 1
  %321 = icmp sle i64 %318, %320
  br i1 %321, label %322, label %348

322:                                              ; preds = %317
  %323 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %324 = load ptr, ptr %323, align 8, !tbaa !15
  %325 = load i64, ptr %11, align 8, !tbaa !11
  %326 = getelementptr inbounds ptr, ptr %324, i64 %325
  %327 = load ptr, ptr %326, align 8, !tbaa !9
  %328 = getelementptr inbounds double, ptr %327, i64 0
  %329 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %330 = load ptr, ptr %329, align 8, !tbaa !15
  %331 = getelementptr inbounds ptr, ptr %330, i64 0
  %332 = load ptr, ptr %331, align 8, !tbaa !9
  %333 = getelementptr inbounds double, ptr %332, i64 0
  %334 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 2
  %335 = load i64, ptr %334, align 8, !tbaa !20
  %336 = load i64, ptr %9, align 8, !tbaa !11
  %337 = sub nsw i64 %336, 1
  %338 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %337)
  %339 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %328, i64 noundef 1, ptr noundef %333, i64 noundef %335, i64 noundef %338)
  store double %339, ptr %23, align 8, !tbaa !13
  %340 = load double, ptr %23, align 8, !tbaa !13
  %341 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %342 = load ptr, ptr %341, align 8, !tbaa !15
  %343 = load i64, ptr %11, align 8, !tbaa !11
  %344 = getelementptr inbounds double, ptr %342, i64 %343
  store double %340, ptr %344, align 8, !tbaa !13
  br label %345

345:                                              ; preds = %322
  %346 = load i64, ptr %11, align 8, !tbaa !11
  %347 = add nsw i64 %346, 1
  store i64 %347, ptr %11, align 8, !tbaa !11
  br label %317, !llvm.loop !30

348:                                              ; preds = %317
  %349 = load i64, ptr %10, align 8, !tbaa !11
  %350 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testpcaunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %18, i64 noundef %349, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %350)
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %351

351:                                              ; preds = %455, %348
  %352 = load i64, ptr %13, align 8, !tbaa !11
  %353 = load i64, ptr %9, align 8, !tbaa !11
  %354 = mul nsw i64 2, %353
  %355 = sub nsw i64 %354, 1
  %356 = icmp sle i64 %352, %355
  br i1 %356, label %357, label %458

357:                                              ; preds = %351
  store double 1.000000e-03, ptr %24, align 8, !tbaa !13
  %358 = load i64, ptr %13, align 8, !tbaa !11
  %359 = srem i64 %358, 2
  %360 = icmp ne i64 %359, 0
  br i1 %360, label %361, label %364

361:                                              ; preds = %357
  %362 = load double, ptr %24, align 8, !tbaa !13
  %363 = fneg double %362
  store double %363, ptr %24, align 8, !tbaa !13
  br label %364

364:                                              ; preds = %361, %357
  %365 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %366 = load ptr, ptr %365, align 8, !tbaa !15
  %367 = getelementptr inbounds double, ptr %366, i64 0
  %368 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %369 = load ptr, ptr %368, align 8, !tbaa !15
  %370 = getelementptr inbounds double, ptr %369, i64 0
  %371 = load i64, ptr %10, align 8, !tbaa !11
  %372 = sub nsw i64 %371, 1
  %373 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %372)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %367, i64 noundef 1, ptr noundef %370, i64 noundef 1, i64 noundef %373)
  %374 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %375 = load ptr, ptr %374, align 8, !tbaa !15
  %376 = getelementptr inbounds double, ptr %375, i64 0
  %377 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %378 = load ptr, ptr %377, align 8, !tbaa !15
  %379 = getelementptr inbounds ptr, ptr %378, i64 0
  %380 = load ptr, ptr %379, align 8, !tbaa !9
  %381 = load i64, ptr %13, align 8, !tbaa !11
  %382 = sdiv i64 %381, 2
  %383 = getelementptr inbounds double, ptr %380, i64 %382
  %384 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 2
  %385 = load i64, ptr %384, align 8, !tbaa !20
  %386 = load i64, ptr %10, align 8, !tbaa !11
  %387 = sub nsw i64 %386, 1
  %388 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %387)
  %389 = load double, ptr %24, align 8, !tbaa !13
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %376, i64 noundef 1, ptr noundef %383, i64 noundef %385, i64 noundef %388, double noundef %389)
  store double 0.000000e+00, ptr %23, align 8, !tbaa !13
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %390

390:                                              ; preds = %427, %364
  %391 = load i64, ptr %12, align 8, !tbaa !11
  %392 = load i64, ptr %9, align 8, !tbaa !11
  %393 = sub nsw i64 %392, 1
  %394 = icmp sle i64 %391, %393
  br i1 %394, label %395, label %430

395:                                              ; preds = %390
  %396 = load i64, ptr %12, align 8, !tbaa !11
  %397 = load i64, ptr %13, align 8, !tbaa !11
  %398 = sdiv i64 %397, 2
  %399 = icmp ne i64 %396, %398
  br i1 %399, label %400, label %412

400:                                              ; preds = %395
  %401 = load double, ptr %23, align 8, !tbaa !13
  %402 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %403 = load ptr, ptr %402, align 8, !tbaa !15
  %404 = load i64, ptr %12, align 8, !tbaa !11
  %405 = getelementptr inbounds ptr, ptr %403, i64 %404
  %406 = load ptr, ptr %405, align 8, !tbaa !9
  %407 = getelementptr inbounds double, ptr %406, i64 0
  %408 = load double, ptr %407, align 8, !tbaa !13
  %409 = load ptr, ptr %4, align 8, !tbaa !9
  %410 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %408, ptr noundef %409)
  %411 = fadd double %401, %410
  store double %411, ptr %23, align 8, !tbaa !13
  br label %426

412:                                              ; preds = %395
  %413 = load double, ptr %23, align 8, !tbaa !13
  %414 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %415 = load ptr, ptr %414, align 8, !tbaa !15
  %416 = load i64, ptr %12, align 8, !tbaa !11
  %417 = getelementptr inbounds ptr, ptr %415, i64 %416
  %418 = load ptr, ptr %417, align 8, !tbaa !9
  %419 = getelementptr inbounds double, ptr %418, i64 0
  %420 = load double, ptr %419, align 8, !tbaa !13
  %421 = load double, ptr %24, align 8, !tbaa !13
  %422 = fadd double %420, %421
  %423 = load ptr, ptr %4, align 8, !tbaa !9
  %424 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %422, ptr noundef %423)
  %425 = fadd double %413, %424
  store double %425, ptr %23, align 8, !tbaa !13
  br label %426

426:                                              ; preds = %412, %400
  br label %427

427:                                              ; preds = %426
  %428 = load i64, ptr %12, align 8, !tbaa !11
  %429 = add nsw i64 %428, 1
  store i64 %429, ptr %12, align 8, !tbaa !11
  br label %390, !llvm.loop !31

430:                                              ; preds = %390
  %431 = load double, ptr %23, align 8, !tbaa !13
  %432 = load ptr, ptr %4, align 8, !tbaa !9
  %433 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %431, ptr noundef %432)
  %434 = fdiv double 1.000000e+00, %433
  store double %434, ptr %23, align 8, !tbaa !13
  %435 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %436 = load ptr, ptr %435, align 8, !tbaa !15
  %437 = getelementptr inbounds double, ptr %436, i64 0
  %438 = load i64, ptr %10, align 8, !tbaa !11
  %439 = sub nsw i64 %438, 1
  %440 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %439)
  %441 = load double, ptr %23, align 8, !tbaa !13
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %437, i64 noundef 1, i64 noundef %440, double noundef %441)
  %442 = load i64, ptr %10, align 8, !tbaa !11
  %443 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testpcaunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %19, i64 noundef %442, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %33, ptr noundef %443)
  %444 = load i8, ptr %43, align 1, !tbaa !5, !range !23, !noundef !24
  %445 = trunc i8 %444 to i1
  br i1 %445, label %452, label %446

446:                                              ; preds = %430
  %447 = load double, ptr %32, align 8, !tbaa !13
  %448 = load double, ptr %28, align 8, !tbaa !13
  %449 = load double, ptr %8, align 8, !tbaa !13
  %450 = fadd double %448, %449
  %451 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %447, double noundef %450)
  br label %452

452:                                              ; preds = %446, %430
  %453 = phi i1 [ true, %430 ], [ %451, %446 ]
  %454 = zext i1 %453 to i8
  store i8 %454, ptr %43, align 1, !tbaa !5
  br label %455

455:                                              ; preds = %452
  %456 = load i64, ptr %13, align 8, !tbaa !11
  %457 = add nsw i64 %456, 1
  store i64 %457, ptr %13, align 8, !tbaa !11
  br label %351, !llvm.loop !32

458:                                              ; preds = %351
  br label %459

459:                                              ; preds = %458, %140
  %460 = load i64, ptr %10, align 8, !tbaa !11
  %461 = add nsw i64 %460, 1
  store i64 %461, ptr %10, align 8, !tbaa !11
  br label %66, !llvm.loop !33

462:                                              ; preds = %66
  br label %463

463:                                              ; preds = %462
  %464 = load i64, ptr %9, align 8, !tbaa !11
  %465 = add nsw i64 %464, 1
  store i64 %465, ptr %9, align 8, !tbaa !11
  br label %61, !llvm.loop !34

466:                                              ; preds = %61
  store i64 1, ptr %9, align 8, !tbaa !11
  br label %467

467:                                              ; preds = %536, %466
  %468 = load i64, ptr %9, align 8, !tbaa !11
  %469 = load i64, ptr %7, align 8, !tbaa !11
  %470 = icmp sle i64 %468, %469
  br i1 %470, label %471, label %539

471:                                              ; preds = %467
  %472 = load i64, ptr %9, align 8, !tbaa !11
  %473 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pcabuildbasisEPNS_9ae_matrixEllPlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %22, i64 noundef 0, i64 noundef %472, ptr noundef %14, ptr noundef %16, ptr noundef %20, ptr noundef %473)
  %474 = load i64, ptr %14, align 8, !tbaa !11
  %475 = icmp ne i64 %474, 1
  br i1 %475, label %476, label %477

476:                                              ; preds = %471
  store i8 1, ptr %40, align 1, !tbaa !5
  br label %536

477:                                              ; preds = %471
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %478

478:                                              ; preds = %532, %477
  %479 = load i64, ptr %11, align 8, !tbaa !11
  %480 = load i64, ptr %9, align 8, !tbaa !11
  %481 = sub nsw i64 %480, 1
  %482 = icmp sle i64 %479, %481
  br i1 %482, label %483, label %535

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

484:                                              ; preds = %528, %483
  %485 = load i64, ptr %12, align 8, !tbaa !11
  %486 = load i64, ptr %9, align 8, !tbaa !11
  %487 = sub nsw i64 %486, 1
  %488 = icmp sle i64 %485, %487
  br i1 %488, label %489, label %531

489:                                              ; preds = %484
  %490 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %491 = load ptr, ptr %490, align 8, !tbaa !15
  %492 = getelementptr inbounds ptr, ptr %491, i64 0
  %493 = load ptr, ptr %492, align 8, !tbaa !9
  %494 = load i64, ptr %11, align 8, !tbaa !11
  %495 = getelementptr inbounds double, ptr %493, i64 %494
  %496 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 2
  %497 = load i64, ptr %496, align 8, !tbaa !20
  %498 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %499 = load ptr, ptr %498, align 8, !tbaa !15
  %500 = getelementptr inbounds ptr, ptr %499, i64 0
  %501 = load ptr, ptr %500, align 8, !tbaa !9
  %502 = load i64, ptr %12, align 8, !tbaa !11
  %503 = getelementptr inbounds double, ptr %501, i64 %502
  %504 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 2
  %505 = load i64, ptr %504, align 8, !tbaa !20
  %506 = load i64, ptr %9, align 8, !tbaa !11
  %507 = sub nsw i64 %506, 1
  %508 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %507)
  %509 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %495, i64 noundef %497, ptr noundef %503, i64 noundef %505, i64 noundef %508)
  store double %509, ptr %23, align 8, !tbaa !13
  %510 = load i64, ptr %11, align 8, !tbaa !11
  %511 = load i64, ptr %12, align 8, !tbaa !11
  %512 = icmp eq i64 %510, %511
  br i1 %512, label %513, label %516

513:                                              ; preds = %489
  %514 = load double, ptr %23, align 8, !tbaa !13
  %515 = fsub double %514, 1.000000e+00
  store double %515, ptr %23, align 8, !tbaa !13
  br label %516

516:                                              ; preds = %513, %489
  %517 = load i8, ptr %41, align 1, !tbaa !5, !range !23, !noundef !24
  %518 = trunc i8 %517 to i1
  br i1 %518, label %525, label %519

519:                                              ; preds = %516
  %520 = load double, ptr %23, align 8, !tbaa !13
  %521 = load ptr, ptr %4, align 8, !tbaa !9
  %522 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %520, ptr noundef %521)
  %523 = load double, ptr %8, align 8, !tbaa !13
  %524 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %522, double noundef %523)
  br label %525

525:                                              ; preds = %519, %516
  %526 = phi i1 [ true, %516 ], [ %524, %519 ]
  %527 = zext i1 %526 to i8
  store i8 %527, ptr %41, align 1, !tbaa !5
  br label %528

528:                                              ; preds = %525
  %529 = load i64, ptr %12, align 8, !tbaa !11
  %530 = add nsw i64 %529, 1
  store i64 %530, ptr %12, align 8, !tbaa !11
  br label %484, !llvm.loop !35

531:                                              ; preds = %484
  br label %532

532:                                              ; preds = %531
  %533 = load i64, ptr %11, align 8, !tbaa !11
  %534 = add nsw i64 %533, 1
  store i64 %534, ptr %11, align 8, !tbaa !11
  br label %478, !llvm.loop !36

535:                                              ; preds = %478
  br label %536

536:                                              ; preds = %535, %476
  %537 = load i64, ptr %9, align 8, !tbaa !11
  %538 = add nsw i64 %537, 1
  store i64 %538, ptr %9, align 8, !tbaa !11
  br label %467, !llvm.loop !37

539:                                              ; preds = %467
  store double 1.000000e-03, ptr %36, align 8, !tbaa !13
  store i64 1, ptr %9, align 8, !tbaa !11
  br label %540

540:                                              ; preds = %848, %539
  %541 = load i64, ptr %9, align 8, !tbaa !11
  %542 = load i64, ptr %7, align 8, !tbaa !11
  %543 = icmp sle i64 %541, %542
  br i1 %543, label %544, label %851

544:                                              ; preds = %540
  store i64 1, ptr %10, align 8, !tbaa !11
  br label %545

545:                                              ; preds = %844, %544
  %546 = load i64, ptr %10, align 8, !tbaa !11
  %547 = load i64, ptr %6, align 8, !tbaa !11
  %548 = icmp sle i64 %546, %547
  br i1 %548, label %549, label %847

549:                                              ; preds = %545
  %550 = load i64, ptr %9, align 8, !tbaa !11
  %551 = load ptr, ptr %4, align 8, !tbaa !9
  %552 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %34, i64 noundef %550, ptr noundef %551)
  %553 = add nsw i64 1, %552
  store i64 %553, ptr %35, align 8, !tbaa !11
  %554 = load i64, ptr %9, align 8, !tbaa !11
  %555 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %15, i64 noundef %554, ptr noundef %555)
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %556

556:                                              ; preds = %569, %549
  %557 = load i64, ptr %12, align 8, !tbaa !11
  %558 = load i64, ptr %9, align 8, !tbaa !11
  %559 = sub nsw i64 %558, 1
  %560 = icmp sle i64 %557, %559
  br i1 %560, label %561, label %572

561:                                              ; preds = %556
  %562 = load ptr, ptr %4, align 8, !tbaa !9
  %563 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %34, ptr noundef %562)
  %564 = fmul double 1.000000e+02, %563
  %565 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %566 = load ptr, ptr %565, align 8, !tbaa !15
  %567 = load i64, ptr %12, align 8, !tbaa !11
  %568 = getelementptr inbounds double, ptr %566, i64 %567
  store double %564, ptr %568, align 8, !tbaa !13
  br label %569

569:                                              ; preds = %561
  %570 = load i64, ptr %12, align 8, !tbaa !11
  %571 = add nsw i64 %570, 1
  store i64 %571, ptr %12, align 8, !tbaa !11
  br label %556, !llvm.loop !38

572:                                              ; preds = %556
  %573 = load i64, ptr %10, align 8, !tbaa !11
  %574 = load i64, ptr %9, align 8, !tbaa !11
  %575 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %22, i64 noundef %573, i64 noundef %574, ptr noundef %575)
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %576

576:                                              ; preds = %607, %572
  %577 = load i64, ptr %11, align 8, !tbaa !11
  %578 = load i64, ptr %10, align 8, !tbaa !11
  %579 = sub nsw i64 %578, 1
  %580 = icmp sle i64 %577, %579
  br i1 %580, label %581, label %610

581:                                              ; preds = %576
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %582

582:                                              ; preds = %603, %581
  %583 = load i64, ptr %12, align 8, !tbaa !11
  %584 = load i64, ptr %9, align 8, !tbaa !11
  %585 = sub nsw i64 %584, 1
  %586 = icmp sle i64 %583, %585
  br i1 %586, label %587, label %606

587:                                              ; preds = %582
  %588 = load ptr, ptr %4, align 8, !tbaa !9
  %589 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %34, ptr noundef %588)
  %590 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %591 = load ptr, ptr %590, align 8, !tbaa !15
  %592 = load i64, ptr %12, align 8, !tbaa !11
  %593 = getelementptr inbounds double, ptr %591, i64 %592
  %594 = load double, ptr %593, align 8, !tbaa !13
  %595 = fadd double %589, %594
  %596 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %597 = load ptr, ptr %596, align 8, !tbaa !15
  %598 = load i64, ptr %11, align 8, !tbaa !11
  %599 = getelementptr inbounds ptr, ptr %597, i64 %598
  %600 = load ptr, ptr %599, align 8, !tbaa !9
  %601 = load i64, ptr %12, align 8, !tbaa !11
  %602 = getelementptr inbounds double, ptr %600, i64 %601
  store double %595, ptr %602, align 8, !tbaa !13
  br label %603

603:                                              ; preds = %587
  %604 = load i64, ptr %12, align 8, !tbaa !11
  %605 = add nsw i64 %604, 1
  store i64 %605, ptr %12, align 8, !tbaa !11
  br label %582, !llvm.loop !39

606:                                              ; preds = %582
  br label %607

607:                                              ; preds = %606
  %608 = load i64, ptr %11, align 8, !tbaa !11
  %609 = add nsw i64 %608, 1
  store i64 %609, ptr %11, align 8, !tbaa !11
  br label %576, !llvm.loop !40

610:                                              ; preds = %576
  %611 = load i64, ptr %10, align 8, !tbaa !11
  %612 = load i64, ptr %9, align 8, !tbaa !11
  %613 = load i64, ptr %35, align 8, !tbaa !11
  %614 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20pcatruncatedsubspaceEPNS_9ae_matrixEllldlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %22, i64 noundef %611, i64 noundef %612, i64 noundef %613, double noundef 1.000000e-09, i64 noundef 0, ptr noundef %16, ptr noundef %20, ptr noundef %614)
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %615

615:                                              ; preds = %663, %610
  %616 = load i64, ptr %11, align 8, !tbaa !11
  %617 = load i64, ptr %35, align 8, !tbaa !11
  %618 = sub nsw i64 %617, 1
  %619 = icmp sle i64 %616, %618
  br i1 %619, label %620, label %666

620:                                              ; preds = %615
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %621

621:                                              ; preds = %659, %620
  %622 = load i64, ptr %12, align 8, !tbaa !11
  %623 = load i64, ptr %35, align 8, !tbaa !11
  %624 = sub nsw i64 %623, 1
  %625 = icmp sle i64 %622, %624
  br i1 %625, label %626, label %662

626:                                              ; preds = %621
  %627 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %628 = load ptr, ptr %627, align 8, !tbaa !15
  %629 = getelementptr inbounds ptr, ptr %628, i64 0
  %630 = load ptr, ptr %629, align 8, !tbaa !9
  %631 = load i64, ptr %11, align 8, !tbaa !11
  %632 = getelementptr inbounds double, ptr %630, i64 %631
  %633 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 2
  %634 = load i64, ptr %633, align 8, !tbaa !20
  %635 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %636 = load ptr, ptr %635, align 8, !tbaa !15
  %637 = getelementptr inbounds ptr, ptr %636, i64 0
  %638 = load ptr, ptr %637, align 8, !tbaa !9
  %639 = load i64, ptr %12, align 8, !tbaa !11
  %640 = getelementptr inbounds double, ptr %638, i64 %639
  %641 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 2
  %642 = load i64, ptr %641, align 8, !tbaa !20
  %643 = load i64, ptr %9, align 8, !tbaa !11
  %644 = sub nsw i64 %643, 1
  %645 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %644)
  %646 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %632, i64 noundef %634, ptr noundef %640, i64 noundef %642, i64 noundef %645)
  store double %646, ptr %23, align 8, !tbaa !13
  %647 = load i64, ptr %11, align 8, !tbaa !11
  %648 = load i64, ptr %12, align 8, !tbaa !11
  %649 = icmp eq i64 %647, %648
  br i1 %649, label %650, label %653

650:                                              ; preds = %626
  %651 = load double, ptr %23, align 8, !tbaa !13
  %652 = fsub double %651, 1.000000e+00
  store double %652, ptr %23, align 8, !tbaa !13
  br label %653

653:                                              ; preds = %650, %626
  %654 = load double, ptr %23, align 8, !tbaa !13
  %655 = load ptr, ptr %4, align 8, !tbaa !9
  %656 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %654, ptr noundef %655)
  %657 = load double, ptr %8, align 8, !tbaa !13
  %658 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %656, double noundef %657)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %44, i1 noundef zeroext %658, ptr noundef @.str.8, i32 noundef 72474, ptr noundef @.str.485)
  br label %659

659:                                              ; preds = %653
  %660 = load i64, ptr %12, align 8, !tbaa !11
  %661 = add nsw i64 %660, 1
  store i64 %661, ptr %12, align 8, !tbaa !11
  br label %621, !llvm.loop !41

662:                                              ; preds = %621
  br label %663

663:                                              ; preds = %662
  %664 = load i64, ptr %11, align 8, !tbaa !11
  %665 = add nsw i64 %664, 1
  store i64 %665, ptr %11, align 8, !tbaa !11
  br label %615, !llvm.loop !42

666:                                              ; preds = %615
  %667 = load i64, ptr %10, align 8, !tbaa !11
  %668 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %667, ptr noundef %668)
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %669

669:                                              ; preds = %736, %666
  %670 = load i64, ptr %13, align 8, !tbaa !11
  %671 = load i64, ptr %35, align 8, !tbaa !11
  %672 = sub nsw i64 %671, 1
  %673 = icmp sle i64 %670, %672
  br i1 %673, label %674, label %739

674:                                              ; preds = %669
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %675

675:                                              ; preds = %704, %674
  %676 = load i64, ptr %11, align 8, !tbaa !11
  %677 = load i64, ptr %10, align 8, !tbaa !11
  %678 = sub nsw i64 %677, 1
  %679 = icmp sle i64 %676, %678
  br i1 %679, label %680, label %707

680:                                              ; preds = %675
  %681 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %682 = load ptr, ptr %681, align 8, !tbaa !15
  %683 = load i64, ptr %11, align 8, !tbaa !11
  %684 = getelementptr inbounds ptr, ptr %682, i64 %683
  %685 = load ptr, ptr %684, align 8, !tbaa !9
  %686 = getelementptr inbounds double, ptr %685, i64 0
  %687 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %688 = load ptr, ptr %687, align 8, !tbaa !15
  %689 = getelementptr inbounds ptr, ptr %688, i64 0
  %690 = load ptr, ptr %689, align 8, !tbaa !9
  %691 = load i64, ptr %13, align 8, !tbaa !11
  %692 = getelementptr inbounds double, ptr %690, i64 %691
  %693 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 2
  %694 = load i64, ptr %693, align 8, !tbaa !20
  %695 = load i64, ptr %9, align 8, !tbaa !11
  %696 = sub nsw i64 %695, 1
  %697 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %696)
  %698 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %686, i64 noundef 1, ptr noundef %692, i64 noundef %694, i64 noundef %697)
  store double %698, ptr %23, align 8, !tbaa !13
  %699 = load double, ptr %23, align 8, !tbaa !13
  %700 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %701 = load ptr, ptr %700, align 8, !tbaa !15
  %702 = load i64, ptr %11, align 8, !tbaa !11
  %703 = getelementptr inbounds double, ptr %701, i64 %702
  store double %699, ptr %703, align 8, !tbaa !13
  br label %704

704:                                              ; preds = %680
  %705 = load i64, ptr %11, align 8, !tbaa !11
  %706 = add nsw i64 %705, 1
  store i64 %706, ptr %11, align 8, !tbaa !11
  br label %675, !llvm.loop !43

707:                                              ; preds = %675
  %708 = load i64, ptr %10, align 8, !tbaa !11
  %709 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testpcaunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %18, i64 noundef %708, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %709)
  %710 = load i64, ptr %10, align 8, !tbaa !11
  %711 = icmp ne i64 %710, 1
  br i1 %711, label %712, label %723

712:                                              ; preds = %707
  %713 = load double, ptr %28, align 8, !tbaa !13
  %714 = load ptr, ptr %4, align 8, !tbaa !9
  %715 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %713, ptr noundef %714)
  %716 = load i64, ptr %10, align 8, !tbaa !11
  %717 = sitofp i64 %716 to double
  %718 = fmul double %715, %717
  %719 = load i64, ptr %10, align 8, !tbaa !11
  %720 = sub nsw i64 %719, 1
  %721 = sitofp i64 %720 to double
  %722 = fdiv double %718, %721
  store double %722, ptr %23, align 8, !tbaa !13
  br label %724

723:                                              ; preds = %707
  store double 0.000000e+00, ptr %23, align 8, !tbaa !13
  br label %724

724:                                              ; preds = %723, %712
  %725 = load double, ptr %23, align 8, !tbaa !13
  %726 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %727 = load ptr, ptr %726, align 8, !tbaa !15
  %728 = load i64, ptr %13, align 8, !tbaa !11
  %729 = getelementptr inbounds double, ptr %727, i64 %728
  %730 = load double, ptr %729, align 8, !tbaa !13
  %731 = fsub double %725, %730
  %732 = load ptr, ptr %4, align 8, !tbaa !9
  %733 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %731, ptr noundef %732)
  %734 = load double, ptr %8, align 8, !tbaa !13
  %735 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %733, double noundef %734)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %44, i1 noundef zeroext %735, ptr noundef @.str.8, i32 noundef 72498, ptr noundef @.str.486)
  br label %736

736:                                              ; preds = %724
  %737 = load i64, ptr %13, align 8, !tbaa !11
  %738 = add nsw i64 %737, 1
  store i64 %738, ptr %13, align 8, !tbaa !11
  br label %669, !llvm.loop !44

739:                                              ; preds = %669
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %740

740:                                              ; preds = %762, %739
  %741 = load i64, ptr %13, align 8, !tbaa !11
  %742 = load i64, ptr %35, align 8, !tbaa !11
  %743 = sub nsw i64 %742, 2
  %744 = icmp sle i64 %741, %743
  br i1 %744, label %745, label %765

745:                                              ; preds = %740
  %746 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %747 = load ptr, ptr %746, align 8, !tbaa !15
  %748 = load i64, ptr %13, align 8, !tbaa !11
  %749 = getelementptr inbounds double, ptr %747, i64 %748
  %750 = load double, ptr %749, align 8, !tbaa !13
  %751 = load ptr, ptr %4, align 8, !tbaa !9
  %752 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %750, ptr noundef %751)
  %753 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %754 = load ptr, ptr %753, align 8, !tbaa !15
  %755 = load i64, ptr %13, align 8, !tbaa !11
  %756 = add nsw i64 %755, 1
  %757 = getelementptr inbounds double, ptr %754, i64 %756
  %758 = load double, ptr %757, align 8, !tbaa !13
  %759 = load ptr, ptr %4, align 8, !tbaa !9
  %760 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %758, ptr noundef %759)
  %761 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %752, double noundef %760)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %44, i1 noundef zeroext %761, ptr noundef @.str.8, i32 noundef 72502, ptr noundef @.str.487)
  br label %762

762:                                              ; preds = %745
  %763 = load i64, ptr %13, align 8, !tbaa !11
  %764 = add nsw i64 %763, 1
  store i64 %764, ptr %13, align 8, !tbaa !11
  br label %740, !llvm.loop !45

765:                                              ; preds = %740
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %766

766:                                              ; preds = %796, %765
  %767 = load i64, ptr %13, align 8, !tbaa !11
  %768 = load i64, ptr %35, align 8, !tbaa !11
  %769 = sub nsw i64 %768, 1
  %770 = icmp sle i64 %767, %769
  br i1 %770, label %771, label %799

771:                                              ; preds = %766
  %772 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %773 = load ptr, ptr %772, align 8, !tbaa !15
  %774 = load i64, ptr %13, align 8, !tbaa !11
  %775 = getelementptr inbounds double, ptr %773, i64 %774
  %776 = load double, ptr %775, align 8, !tbaa !13
  %777 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %776, double noundef 0.000000e+00)
  br i1 %777, label %778, label %794

778:                                              ; preds = %771
  %779 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %780 = load ptr, ptr %779, align 8, !tbaa !15
  %781 = load i64, ptr %13, align 8, !tbaa !11
  %782 = getelementptr inbounds double, ptr %780, i64 %781
  %783 = load double, ptr %782, align 8, !tbaa !13
  %784 = load ptr, ptr %4, align 8, !tbaa !9
  %785 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %783, ptr noundef %784)
  %786 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %787 = load ptr, ptr %786, align 8, !tbaa !15
  %788 = getelementptr inbounds double, ptr %787, i64 0
  %789 = load double, ptr %788, align 8, !tbaa !13
  %790 = load ptr, ptr %4, align 8, !tbaa !9
  %791 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %789, ptr noundef %790)
  %792 = fmul double 5.000000e-13, %791
  %793 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %785, double noundef %792)
  br label %794

794:                                              ; preds = %778, %771
  %795 = phi i1 [ false, %771 ], [ %793, %778 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %44, i1 noundef zeroext %795, ptr noundef @.str.8, i32 noundef 72506, ptr noundef @.str.488)
  br label %796

796:                                              ; preds = %794
  %797 = load i64, ptr %13, align 8, !tbaa !11
  %798 = add nsw i64 %797, 1
  store i64 %798, ptr %13, align 8, !tbaa !11
  br label %766, !llvm.loop !46

799:                                              ; preds = %766
  %800 = load i64, ptr %10, align 8, !tbaa !11
  %801 = load i64, ptr %9, align 8, !tbaa !11
  %802 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pcabuildbasisEPNS_9ae_matrixEllPlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %22, i64 noundef %800, i64 noundef %801, ptr noundef %14, ptr noundef %17, ptr noundef %21, ptr noundef %802)
  %803 = load i64, ptr %14, align 8, !tbaa !11
  %804 = icmp sgt i64 %803, 0
  %805 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %804, ptr noundef @.str.489, ptr noundef %805)
  store double 0.000000e+00, ptr %37, align 8, !tbaa !13
  store double 0.000000e+00, ptr %38, align 8, !tbaa !13
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %806

806:                                              ; preds = %826, %799
  %807 = load i64, ptr %13, align 8, !tbaa !11
  %808 = load i64, ptr %35, align 8, !tbaa !11
  %809 = sub nsw i64 %808, 1
  %810 = icmp sle i64 %807, %809
  br i1 %810, label %811, label %829

811:                                              ; preds = %806
  %812 = load double, ptr %38, align 8, !tbaa !13
  %813 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %814 = load ptr, ptr %813, align 8, !tbaa !15
  %815 = load i64, ptr %13, align 8, !tbaa !11
  %816 = getelementptr inbounds double, ptr %814, i64 %815
  %817 = load double, ptr %816, align 8, !tbaa !13
  %818 = fadd double %812, %817
  store double %818, ptr %38, align 8, !tbaa !13
  %819 = load double, ptr %37, align 8, !tbaa !13
  %820 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %821 = load ptr, ptr %820, align 8, !tbaa !15
  %822 = load i64, ptr %13, align 8, !tbaa !11
  %823 = getelementptr inbounds double, ptr %821, i64 %822
  %824 = load double, ptr %823, align 8, !tbaa !13
  %825 = fadd double %819, %824
  store double %825, ptr %37, align 8, !tbaa !13
  br label %826

826:                                              ; preds = %811
  %827 = load i64, ptr %13, align 8, !tbaa !11
  %828 = add nsw i64 %827, 1
  store i64 %828, ptr %13, align 8, !tbaa !11
  br label %806, !llvm.loop !47

829:                                              ; preds = %806
  %830 = load double, ptr %38, align 8, !tbaa !13
  %831 = load double, ptr %37, align 8, !tbaa !13
  %832 = fsub double %830, %831
  %833 = load double, ptr %37, align 8, !tbaa !13
  %834 = fdiv double %832, %833
  %835 = load double, ptr %36, align 8, !tbaa !13
  %836 = fneg double %835
  %837 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %834, double noundef %836)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %44, i1 noundef zeroext %837, ptr noundef @.str.8, i32 noundef 72522, ptr noundef @.str.490)
  %838 = load double, ptr %38, align 8, !tbaa !13
  %839 = load double, ptr %37, align 8, !tbaa !13
  %840 = fsub double %838, %839
  %841 = load double, ptr %37, align 8, !tbaa !13
  %842 = fdiv double %840, %841
  %843 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %842, double noundef 5.000000e-11)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %44, i1 noundef zeroext %843, ptr noundef @.str.8, i32 noundef 72523, ptr noundef @.str.491)
  br label %844

844:                                              ; preds = %829
  %845 = load i64, ptr %10, align 8, !tbaa !11
  %846 = add nsw i64 %845, 1
  store i64 %846, ptr %10, align 8, !tbaa !11
  br label %545, !llvm.loop !48

847:                                              ; preds = %545
  br label %848

848:                                              ; preds = %847
  %849 = load i64, ptr %9, align 8, !tbaa !11
  %850 = add nsw i64 %849, 1
  store i64 %850, ptr %9, align 8, !tbaa !11
  br label %540, !llvm.loop !49

851:                                              ; preds = %540
  store i64 0, ptr %39, align 8, !tbaa !11
  br label %852

852:                                              ; preds = %1180, %851
  %853 = load i64, ptr %39, align 8, !tbaa !11
  %854 = icmp sle i64 %853, 3
  br i1 %854, label %855, label %1183

855:                                              ; preds = %852
  store i64 -1, ptr %9, align 8, !tbaa !11
  store i64 -1, ptr %35, align 8, !tbaa !11
  %856 = load i64, ptr %39, align 8, !tbaa !11
  %857 = icmp eq i64 %856, 0
  br i1 %857, label %858, label %865

858:                                              ; preds = %855
  %859 = load ptr, ptr %4, align 8, !tbaa !9
  %860 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %34, i64 noundef 50, ptr noundef %859)
  %861 = add nsw i64 50, %860
  store i64 %861, ptr %9, align 8, !tbaa !11
  %862 = load ptr, ptr %4, align 8, !tbaa !9
  %863 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %34, i64 noundef 10, ptr noundef %862)
  %864 = add nsw i64 1, %863
  store i64 %864, ptr %35, align 8, !tbaa !11
  br label %865

865:                                              ; preds = %858, %855
  %866 = load i64, ptr %39, align 8, !tbaa !11
  %867 = icmp eq i64 %866, 1
  br i1 %867, label %868, label %875

868:                                              ; preds = %865
  %869 = load ptr, ptr %4, align 8, !tbaa !9
  %870 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %34, i64 noundef 50, ptr noundef %869)
  %871 = add nsw i64 100, %870
  store i64 %871, ptr %9, align 8, !tbaa !11
  %872 = load ptr, ptr %4, align 8, !tbaa !9
  %873 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %34, i64 noundef 10, ptr noundef %872)
  %874 = add nsw i64 1, %873
  store i64 %874, ptr %35, align 8, !tbaa !11
  br label %875

875:                                              ; preds = %868, %865
  %876 = load i64, ptr %39, align 8, !tbaa !11
  %877 = icmp eq i64 %876, 2
  br i1 %877, label %878, label %885

878:                                              ; preds = %875
  %879 = load ptr, ptr %4, align 8, !tbaa !9
  %880 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %34, i64 noundef 50, ptr noundef %879)
  %881 = add nsw i64 100, %880
  store i64 %881, ptr %9, align 8, !tbaa !11
  %882 = load ptr, ptr %4, align 8, !tbaa !9
  %883 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %34, i64 noundef 10, ptr noundef %882)
  %884 = add nsw i64 25, %883
  store i64 %884, ptr %35, align 8, !tbaa !11
  br label %885

885:                                              ; preds = %878, %875
  %886 = load i64, ptr %39, align 8, !tbaa !11
  %887 = icmp eq i64 %886, 3
  br i1 %887, label %888, label %895

888:                                              ; preds = %885
  %889 = load ptr, ptr %4, align 8, !tbaa !9
  %890 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %34, i64 noundef 200, ptr noundef %889)
  %891 = add nsw i64 200, %890
  store i64 %891, ptr %9, align 8, !tbaa !11
  %892 = load ptr, ptr %4, align 8, !tbaa !9
  %893 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %34, i64 noundef 10, ptr noundef %892)
  %894 = add nsw i64 1, %893
  store i64 %894, ptr %35, align 8, !tbaa !11
  br label %895

895:                                              ; preds = %888, %885
  %896 = load i64, ptr %9, align 8, !tbaa !11
  %897 = icmp sgt i64 %896, 0
  br i1 %897, label %898, label %901

898:                                              ; preds = %895
  %899 = load i64, ptr %35, align 8, !tbaa !11
  %900 = icmp sgt i64 %899, 0
  br label %901

901:                                              ; preds = %898, %895
  %902 = phi i1 [ false, %895 ], [ %900, %898 ]
  %903 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %902, ptr noundef @.str.492, ptr noundef %903)
  %904 = load i64, ptr %9, align 8, !tbaa !11
  %905 = mul nsw i64 2, %904
  store i64 %905, ptr %10, align 8, !tbaa !11
  store double 1.000000e-03, ptr %36, align 8, !tbaa !13
  %906 = load i64, ptr %10, align 8, !tbaa !11
  %907 = load i64, ptr %9, align 8, !tbaa !11
  %908 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %22, i64 noundef %906, i64 noundef %907, ptr noundef %908)
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %909

909:                                              ; preds = %932, %901
  %910 = load i64, ptr %11, align 8, !tbaa !11
  %911 = load i64, ptr %10, align 8, !tbaa !11
  %912 = sub nsw i64 %911, 1
  %913 = icmp sle i64 %910, %912
  br i1 %913, label %914, label %935

914:                                              ; preds = %909
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %915

915:                                              ; preds = %928, %914
  %916 = load i64, ptr %12, align 8, !tbaa !11
  %917 = load i64, ptr %9, align 8, !tbaa !11
  %918 = sub nsw i64 %917, 1
  %919 = icmp sle i64 %916, %918
  br i1 %919, label %920, label %931

920:                                              ; preds = %915
  %921 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %922 = load ptr, ptr %921, align 8, !tbaa !15
  %923 = load i64, ptr %11, align 8, !tbaa !11
  %924 = getelementptr inbounds ptr, ptr %922, i64 %923
  %925 = load ptr, ptr %924, align 8, !tbaa !9
  %926 = load i64, ptr %12, align 8, !tbaa !11
  %927 = getelementptr inbounds double, ptr %925, i64 %926
  store double 0.000000e+00, ptr %927, align 8, !tbaa !13
  br label %928

928:                                              ; preds = %920
  %929 = load i64, ptr %12, align 8, !tbaa !11
  %930 = add nsw i64 %929, 1
  store i64 %930, ptr %12, align 8, !tbaa !11
  br label %915, !llvm.loop !50

931:                                              ; preds = %915
  br label %932

932:                                              ; preds = %931
  %933 = load i64, ptr %11, align 8, !tbaa !11
  %934 = add nsw i64 %933, 1
  store i64 %934, ptr %11, align 8, !tbaa !11
  br label %909, !llvm.loop !51

935:                                              ; preds = %909
  %936 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %937 = load ptr, ptr %936, align 8, !tbaa !15
  %938 = getelementptr inbounds ptr, ptr %937, i64 0
  %939 = load ptr, ptr %938, align 8, !tbaa !9
  %940 = getelementptr inbounds double, ptr %939, i64 0
  store double 1.000000e+00, ptr %940, align 8, !tbaa !13
  store i64 1, ptr %11, align 8, !tbaa !11
  br label %941

941:                                              ; preds = %965, %935
  %942 = load i64, ptr %11, align 8, !tbaa !11
  %943 = load i64, ptr %9, align 8, !tbaa !11
  %944 = sub nsw i64 %943, 1
  %945 = icmp sle i64 %942, %944
  br i1 %945, label %946, label %968

946:                                              ; preds = %941
  %947 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %948 = load ptr, ptr %947, align 8, !tbaa !15
  %949 = load i64, ptr %11, align 8, !tbaa !11
  %950 = sub nsw i64 %949, 1
  %951 = getelementptr inbounds ptr, ptr %948, i64 %950
  %952 = load ptr, ptr %951, align 8, !tbaa !9
  %953 = load i64, ptr %11, align 8, !tbaa !11
  %954 = sub nsw i64 %953, 1
  %955 = getelementptr inbounds double, ptr %952, i64 %954
  %956 = load double, ptr %955, align 8, !tbaa !13
  %957 = fmul double %956, 0x3FEE79E79E79E79E
  %958 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %959 = load ptr, ptr %958, align 8, !tbaa !15
  %960 = load i64, ptr %11, align 8, !tbaa !11
  %961 = getelementptr inbounds ptr, ptr %959, i64 %960
  %962 = load ptr, ptr %961, align 8, !tbaa !9
  %963 = load i64, ptr %11, align 8, !tbaa !11
  %964 = getelementptr inbounds double, ptr %962, i64 %963
  store double %957, ptr %964, align 8, !tbaa !13
  br label %965

965:                                              ; preds = %946
  %966 = load i64, ptr %11, align 8, !tbaa !11
  %967 = add nsw i64 %966, 1
  store i64 %967, ptr %11, align 8, !tbaa !11
  br label %941, !llvm.loop !52

968:                                              ; preds = %941
  %969 = load i64, ptr %10, align 8, !tbaa !11
  %970 = load i64, ptr %9, align 8, !tbaa !11
  %971 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl31rmatrixrndorthogonalfromtheleftEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %22, i64 noundef %969, i64 noundef %970, ptr noundef %971)
  %972 = load i64, ptr %10, align 8, !tbaa !11
  %973 = load i64, ptr %9, align 8, !tbaa !11
  %974 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl32rmatrixrndorthogonalfromtherightEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %22, i64 noundef %972, i64 noundef %973, ptr noundef %974)
  %975 = load ptr, ptr %4, align 8, !tbaa !9
  %976 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %34, ptr noundef %975)
  %977 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %976, double noundef 5.000000e-01)
  br i1 %977, label %978, label %983

978:                                              ; preds = %968
  %979 = load i64, ptr %10, align 8, !tbaa !11
  %980 = load i64, ptr %9, align 8, !tbaa !11
  %981 = load i64, ptr %35, align 8, !tbaa !11
  %982 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20pcatruncatedsubspaceEPNS_9ae_matrixEllldlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %22, i64 noundef %979, i64 noundef %980, i64 noundef %981, double noundef 0.000000e+00, i64 noundef 20, ptr noundef %16, ptr noundef %20, ptr noundef %982)
  br label %988

983:                                              ; preds = %968
  %984 = load i64, ptr %10, align 8, !tbaa !11
  %985 = load i64, ptr %9, align 8, !tbaa !11
  %986 = load i64, ptr %35, align 8, !tbaa !11
  %987 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20pcatruncatedsubspaceEPNS_9ae_matrixEllldlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %22, i64 noundef %984, i64 noundef %985, i64 noundef %986, double noundef 0.000000e+00, i64 noundef 0, ptr noundef %16, ptr noundef %20, ptr noundef %987)
  br label %988

988:                                              ; preds = %983, %978
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %989

989:                                              ; preds = %1037, %988
  %990 = load i64, ptr %11, align 8, !tbaa !11
  %991 = load i64, ptr %35, align 8, !tbaa !11
  %992 = sub nsw i64 %991, 1
  %993 = icmp sle i64 %990, %992
  br i1 %993, label %994, label %1040

994:                                              ; preds = %989
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %995

995:                                              ; preds = %1033, %994
  %996 = load i64, ptr %12, align 8, !tbaa !11
  %997 = load i64, ptr %35, align 8, !tbaa !11
  %998 = sub nsw i64 %997, 1
  %999 = icmp sle i64 %996, %998
  br i1 %999, label %1000, label %1036

1000:                                             ; preds = %995
  %1001 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %1002 = load ptr, ptr %1001, align 8, !tbaa !15
  %1003 = getelementptr inbounds ptr, ptr %1002, i64 0
  %1004 = load ptr, ptr %1003, align 8, !tbaa !9
  %1005 = load i64, ptr %11, align 8, !tbaa !11
  %1006 = getelementptr inbounds double, ptr %1004, i64 %1005
  %1007 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 2
  %1008 = load i64, ptr %1007, align 8, !tbaa !20
  %1009 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %1010 = load ptr, ptr %1009, align 8, !tbaa !15
  %1011 = getelementptr inbounds ptr, ptr %1010, i64 0
  %1012 = load ptr, ptr %1011, align 8, !tbaa !9
  %1013 = load i64, ptr %12, align 8, !tbaa !11
  %1014 = getelementptr inbounds double, ptr %1012, i64 %1013
  %1015 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 2
  %1016 = load i64, ptr %1015, align 8, !tbaa !20
  %1017 = load i64, ptr %9, align 8, !tbaa !11
  %1018 = sub nsw i64 %1017, 1
  %1019 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %1018)
  %1020 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %1006, i64 noundef %1008, ptr noundef %1014, i64 noundef %1016, i64 noundef %1019)
  store double %1020, ptr %23, align 8, !tbaa !13
  %1021 = load i64, ptr %11, align 8, !tbaa !11
  %1022 = load i64, ptr %12, align 8, !tbaa !11
  %1023 = icmp eq i64 %1021, %1022
  br i1 %1023, label %1024, label %1027

1024:                                             ; preds = %1000
  %1025 = load double, ptr %23, align 8, !tbaa !13
  %1026 = fsub double %1025, 1.000000e+00
  store double %1026, ptr %23, align 8, !tbaa !13
  br label %1027

1027:                                             ; preds = %1024, %1000
  %1028 = load double, ptr %23, align 8, !tbaa !13
  %1029 = load ptr, ptr %4, align 8, !tbaa !9
  %1030 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1028, ptr noundef %1029)
  %1031 = load double, ptr %8, align 8, !tbaa !13
  %1032 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1030, double noundef %1031)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %44, i1 noundef zeroext %1032, ptr noundef @.str.8, i32 noundef 72603, ptr noundef @.str.493)
  br label %1033

1033:                                             ; preds = %1027
  %1034 = load i64, ptr %12, align 8, !tbaa !11
  %1035 = add nsw i64 %1034, 1
  store i64 %1035, ptr %12, align 8, !tbaa !11
  br label %995, !llvm.loop !53

1036:                                             ; preds = %995
  br label %1037

1037:                                             ; preds = %1036
  %1038 = load i64, ptr %11, align 8, !tbaa !11
  %1039 = add nsw i64 %1038, 1
  store i64 %1039, ptr %11, align 8, !tbaa !11
  br label %989, !llvm.loop !54

1040:                                             ; preds = %989
  %1041 = load i64, ptr %10, align 8, !tbaa !11
  %1042 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %1041, ptr noundef %1042)
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %1043

1043:                                             ; preds = %1110, %1040
  %1044 = load i64, ptr %13, align 8, !tbaa !11
  %1045 = load i64, ptr %35, align 8, !tbaa !11
  %1046 = sub nsw i64 %1045, 1
  %1047 = icmp sle i64 %1044, %1046
  br i1 %1047, label %1048, label %1113

1048:                                             ; preds = %1043
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %1049

1049:                                             ; preds = %1078, %1048
  %1050 = load i64, ptr %11, align 8, !tbaa !11
  %1051 = load i64, ptr %10, align 8, !tbaa !11
  %1052 = sub nsw i64 %1051, 1
  %1053 = icmp sle i64 %1050, %1052
  br i1 %1053, label %1054, label %1081

1054:                                             ; preds = %1049
  %1055 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %1056 = load ptr, ptr %1055, align 8, !tbaa !15
  %1057 = load i64, ptr %11, align 8, !tbaa !11
  %1058 = getelementptr inbounds ptr, ptr %1056, i64 %1057
  %1059 = load ptr, ptr %1058, align 8, !tbaa !9
  %1060 = getelementptr inbounds double, ptr %1059, i64 0
  %1061 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %1062 = load ptr, ptr %1061, align 8, !tbaa !15
  %1063 = getelementptr inbounds ptr, ptr %1062, i64 0
  %1064 = load ptr, ptr %1063, align 8, !tbaa !9
  %1065 = load i64, ptr %13, align 8, !tbaa !11
  %1066 = getelementptr inbounds double, ptr %1064, i64 %1065
  %1067 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 2
  %1068 = load i64, ptr %1067, align 8, !tbaa !20
  %1069 = load i64, ptr %9, align 8, !tbaa !11
  %1070 = sub nsw i64 %1069, 1
  %1071 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %1070)
  %1072 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %1060, i64 noundef 1, ptr noundef %1066, i64 noundef %1068, i64 noundef %1071)
  store double %1072, ptr %23, align 8, !tbaa !13
  %1073 = load double, ptr %23, align 8, !tbaa !13
  %1074 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %1075 = load ptr, ptr %1074, align 8, !tbaa !15
  %1076 = load i64, ptr %11, align 8, !tbaa !11
  %1077 = getelementptr inbounds double, ptr %1075, i64 %1076
  store double %1073, ptr %1077, align 8, !tbaa !13
  br label %1078

1078:                                             ; preds = %1054
  %1079 = load i64, ptr %11, align 8, !tbaa !11
  %1080 = add nsw i64 %1079, 1
  store i64 %1080, ptr %11, align 8, !tbaa !11
  br label %1049, !llvm.loop !55

1081:                                             ; preds = %1049
  %1082 = load i64, ptr %10, align 8, !tbaa !11
  %1083 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testpcaunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %18, i64 noundef %1082, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %1083)
  %1084 = load i64, ptr %10, align 8, !tbaa !11
  %1085 = icmp ne i64 %1084, 1
  br i1 %1085, label %1086, label %1097

1086:                                             ; preds = %1081
  %1087 = load double, ptr %28, align 8, !tbaa !13
  %1088 = load ptr, ptr %4, align 8, !tbaa !9
  %1089 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1087, ptr noundef %1088)
  %1090 = load i64, ptr %10, align 8, !tbaa !11
  %1091 = sitofp i64 %1090 to double
  %1092 = fmul double %1089, %1091
  %1093 = load i64, ptr %10, align 8, !tbaa !11
  %1094 = sub nsw i64 %1093, 1
  %1095 = sitofp i64 %1094 to double
  %1096 = fdiv double %1092, %1095
  store double %1096, ptr %23, align 8, !tbaa !13
  br label %1098

1097:                                             ; preds = %1081
  store double 0.000000e+00, ptr %23, align 8, !tbaa !13
  br label %1098

1098:                                             ; preds = %1097, %1086
  %1099 = load double, ptr %23, align 8, !tbaa !13
  %1100 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %1101 = load ptr, ptr %1100, align 8, !tbaa !15
  %1102 = load i64, ptr %13, align 8, !tbaa !11
  %1103 = getelementptr inbounds double, ptr %1101, i64 %1102
  %1104 = load double, ptr %1103, align 8, !tbaa !13
  %1105 = fsub double %1099, %1104
  %1106 = load ptr, ptr %4, align 8, !tbaa !9
  %1107 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1105, ptr noundef %1106)
  %1108 = load double, ptr %8, align 8, !tbaa !13
  %1109 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1107, double noundef %1108)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %44, i1 noundef zeroext %1109, ptr noundef @.str.8, i32 noundef 72627, ptr noundef @.str.494)
  br label %1110

1110:                                             ; preds = %1098
  %1111 = load i64, ptr %13, align 8, !tbaa !11
  %1112 = add nsw i64 %1111, 1
  store i64 %1112, ptr %13, align 8, !tbaa !11
  br label %1043, !llvm.loop !56

1113:                                             ; preds = %1043
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %1114

1114:                                             ; preds = %1132, %1113
  %1115 = load i64, ptr %13, align 8, !tbaa !11
  %1116 = load i64, ptr %35, align 8, !tbaa !11
  %1117 = sub nsw i64 %1116, 2
  %1118 = icmp sle i64 %1115, %1117
  br i1 %1118, label %1119, label %1135

1119:                                             ; preds = %1114
  %1120 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %1121 = load ptr, ptr %1120, align 8, !tbaa !15
  %1122 = load i64, ptr %13, align 8, !tbaa !11
  %1123 = getelementptr inbounds double, ptr %1121, i64 %1122
  %1124 = load double, ptr %1123, align 8, !tbaa !13
  %1125 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %1126 = load ptr, ptr %1125, align 8, !tbaa !15
  %1127 = load i64, ptr %13, align 8, !tbaa !11
  %1128 = add nsw i64 %1127, 1
  %1129 = getelementptr inbounds double, ptr %1126, i64 %1128
  %1130 = load double, ptr %1129, align 8, !tbaa !13
  %1131 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %1124, double noundef %1130)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %44, i1 noundef zeroext %1131, ptr noundef @.str.8, i32 noundef 72631, ptr noundef @.str.495)
  br label %1132

1132:                                             ; preds = %1119
  %1133 = load i64, ptr %13, align 8, !tbaa !11
  %1134 = add nsw i64 %1133, 1
  store i64 %1134, ptr %13, align 8, !tbaa !11
  br label %1114, !llvm.loop !57

1135:                                             ; preds = %1114
  %1136 = load i64, ptr %10, align 8, !tbaa !11
  %1137 = load i64, ptr %9, align 8, !tbaa !11
  %1138 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pcabuildbasisEPNS_9ae_matrixEllPlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %22, i64 noundef %1136, i64 noundef %1137, ptr noundef %14, ptr noundef %17, ptr noundef %21, ptr noundef %1138)
  %1139 = load i64, ptr %14, align 8, !tbaa !11
  %1140 = icmp sgt i64 %1139, 0
  %1141 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %1140, ptr noundef @.str.489, ptr noundef %1141)
  store double 0.000000e+00, ptr %37, align 8, !tbaa !13
  store double 0.000000e+00, ptr %38, align 8, !tbaa !13
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %1142

1142:                                             ; preds = %1162, %1135
  %1143 = load i64, ptr %13, align 8, !tbaa !11
  %1144 = load i64, ptr %35, align 8, !tbaa !11
  %1145 = sub nsw i64 %1144, 1
  %1146 = icmp sle i64 %1143, %1145
  br i1 %1146, label %1147, label %1165

1147:                                             ; preds = %1142
  %1148 = load double, ptr %38, align 8, !tbaa !13
  %1149 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %1150 = load ptr, ptr %1149, align 8, !tbaa !15
  %1151 = load i64, ptr %13, align 8, !tbaa !11
  %1152 = getelementptr inbounds double, ptr %1150, i64 %1151
  %1153 = load double, ptr %1152, align 8, !tbaa !13
  %1154 = fadd double %1148, %1153
  store double %1154, ptr %38, align 8, !tbaa !13
  %1155 = load double, ptr %37, align 8, !tbaa !13
  %1156 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %1157 = load ptr, ptr %1156, align 8, !tbaa !15
  %1158 = load i64, ptr %13, align 8, !tbaa !11
  %1159 = getelementptr inbounds double, ptr %1157, i64 %1158
  %1160 = load double, ptr %1159, align 8, !tbaa !13
  %1161 = fadd double %1155, %1160
  store double %1161, ptr %37, align 8, !tbaa !13
  br label %1162

1162:                                             ; preds = %1147
  %1163 = load i64, ptr %13, align 8, !tbaa !11
  %1164 = add nsw i64 %1163, 1
  store i64 %1164, ptr %13, align 8, !tbaa !11
  br label %1142, !llvm.loop !58

1165:                                             ; preds = %1142
  %1166 = load double, ptr %38, align 8, !tbaa !13
  %1167 = load double, ptr %37, align 8, !tbaa !13
  %1168 = fsub double %1166, %1167
  %1169 = load double, ptr %37, align 8, !tbaa !13
  %1170 = fdiv double %1168, %1169
  %1171 = load double, ptr %36, align 8, !tbaa !13
  %1172 = fneg double %1171
  %1173 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %1170, double noundef %1172)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %44, i1 noundef zeroext %1173, ptr noundef @.str.8, i32 noundef 72647, ptr noundef @.str.496)
  %1174 = load double, ptr %38, align 8, !tbaa !13
  %1175 = load double, ptr %37, align 8, !tbaa !13
  %1176 = fsub double %1174, %1175
  %1177 = load double, ptr %37, align 8, !tbaa !13
  %1178 = fdiv double %1176, %1177
  %1179 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1178, double noundef 5.000000e-11)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %44, i1 noundef zeroext %1179, ptr noundef @.str.8, i32 noundef 72648, ptr noundef @.str.497)
  br label %1180

1180:                                             ; preds = %1165
  %1181 = load i64, ptr %39, align 8, !tbaa !11
  %1182 = add nsw i64 %1181, 1
  store i64 %1182, ptr %39, align 8, !tbaa !11
  br label %852, !llvm.loop !59

1183:                                             ; preds = %852
  store double 1.000000e-03, ptr %36, align 8, !tbaa !13
  store i64 1, ptr %9, align 8, !tbaa !11
  br label %1184

1184:                                             ; preds = %1550, %1183
  %1185 = load i64, ptr %9, align 8, !tbaa !11
  %1186 = load i64, ptr %7, align 8, !tbaa !11
  %1187 = icmp sle i64 %1185, %1186
  br i1 %1187, label %1188, label %1553

1188:                                             ; preds = %1184
  store i64 1, ptr %10, align 8, !tbaa !11
  br label %1189

1189:                                             ; preds = %1546, %1188
  %1190 = load i64, ptr %10, align 8, !tbaa !11
  %1191 = load i64, ptr %6, align 8, !tbaa !11
  %1192 = icmp sle i64 %1190, %1191
  br i1 %1192, label %1193, label %1549

1193:                                             ; preds = %1189
  %1194 = load i64, ptr %9, align 8, !tbaa !11
  %1195 = load ptr, ptr %4, align 8, !tbaa !9
  %1196 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %34, i64 noundef %1194, ptr noundef %1195)
  %1197 = add nsw i64 1, %1196
  store i64 %1197, ptr %35, align 8, !tbaa !11
  %1198 = load i64, ptr %9, align 8, !tbaa !11
  %1199 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %15, i64 noundef %1198, ptr noundef %1199)
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %1200

1200:                                             ; preds = %1213, %1193
  %1201 = load i64, ptr %12, align 8, !tbaa !11
  %1202 = load i64, ptr %9, align 8, !tbaa !11
  %1203 = sub nsw i64 %1202, 1
  %1204 = icmp sle i64 %1201, %1203
  br i1 %1204, label %1205, label %1216

1205:                                             ; preds = %1200
  %1206 = load ptr, ptr %4, align 8, !tbaa !9
  %1207 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %34, ptr noundef %1206)
  %1208 = fmul double 1.000000e+02, %1207
  %1209 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %1210 = load ptr, ptr %1209, align 8, !tbaa !15
  %1211 = load i64, ptr %12, align 8, !tbaa !11
  %1212 = getelementptr inbounds double, ptr %1210, i64 %1211
  store double %1208, ptr %1212, align 8, !tbaa !13
  br label %1213

1213:                                             ; preds = %1205
  %1214 = load i64, ptr %12, align 8, !tbaa !11
  %1215 = add nsw i64 %1214, 1
  store i64 %1215, ptr %12, align 8, !tbaa !11
  br label %1200, !llvm.loop !60

1216:                                             ; preds = %1200
  %1217 = load i64, ptr %10, align 8, !tbaa !11
  %1218 = load i64, ptr %9, align 8, !tbaa !11
  %1219 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %1217, i64 noundef %1218, i64 noundef 0, ptr noundef %25, ptr noundef %1219)
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %1220

1220:                                             ; preds = %1254, %1216
  %1221 = load i64, ptr %11, align 8, !tbaa !11
  %1222 = load i64, ptr %10, align 8, !tbaa !11
  %1223 = sub nsw i64 %1222, 1
  %1224 = icmp sle i64 %1221, %1223
  br i1 %1224, label %1225, label %1257

1225:                                             ; preds = %1220
  %1226 = load i64, ptr %9, align 8, !tbaa !11
  %1227 = load ptr, ptr %4, align 8, !tbaa !9
  %1228 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %34, i64 noundef %1226, ptr noundef %1227)
  store i64 %1228, ptr %12, align 8, !tbaa !11
  %1229 = load i64, ptr %11, align 8, !tbaa !11
  %1230 = load i64, ptr %12, align 8, !tbaa !11
  %1231 = load ptr, ptr %4, align 8, !tbaa !9
  %1232 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %34, ptr noundef %1231)
  %1233 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %1234 = load ptr, ptr %1233, align 8, !tbaa !15
  %1235 = load i64, ptr %12, align 8, !tbaa !11
  %1236 = getelementptr inbounds double, ptr %1234, i64 %1235
  %1237 = load double, ptr %1236, align 8, !tbaa !13
  %1238 = fadd double %1232, %1237
  %1239 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %25, i64 noundef %1229, i64 noundef %1230, double noundef %1238, ptr noundef %1239)
  %1240 = load i64, ptr %9, align 8, !tbaa !11
  %1241 = load ptr, ptr %4, align 8, !tbaa !9
  %1242 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %34, i64 noundef %1240, ptr noundef %1241)
  store i64 %1242, ptr %12, align 8, !tbaa !11
  %1243 = load i64, ptr %11, align 8, !tbaa !11
  %1244 = load i64, ptr %12, align 8, !tbaa !11
  %1245 = load ptr, ptr %4, align 8, !tbaa !9
  %1246 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %34, ptr noundef %1245)
  %1247 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %1248 = load ptr, ptr %1247, align 8, !tbaa !15
  %1249 = load i64, ptr %12, align 8, !tbaa !11
  %1250 = getelementptr inbounds double, ptr %1248, i64 %1249
  %1251 = load double, ptr %1250, align 8, !tbaa !13
  %1252 = fadd double %1246, %1251
  %1253 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %25, i64 noundef %1243, i64 noundef %1244, double noundef %1252, ptr noundef %1253)
  br label %1254

1254:                                             ; preds = %1225
  %1255 = load i64, ptr %11, align 8, !tbaa !11
  %1256 = add nsw i64 %1255, 1
  store i64 %1256, ptr %11, align 8, !tbaa !11
  br label %1220, !llvm.loop !61

1257:                                             ; preds = %1220
  %1258 = load ptr, ptr %4, align 8, !tbaa !9
  %1259 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %34, ptr noundef %1258)
  %1260 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1259, double noundef 0.000000e+00)
  br i1 %1260, label %1261, label %1263

1261:                                             ; preds = %1257
  %1262 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %25, ptr noundef %1262)
  br label %1263

1263:                                             ; preds = %1261, %1257
  %1264 = load i64, ptr %10, align 8, !tbaa !11
  %1265 = load i64, ptr %9, align 8, !tbaa !11
  %1266 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %22, i64 noundef %1264, i64 noundef %1265, ptr noundef %1266)
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %1267

1267:                                             ; preds = %1294, %1263
  %1268 = load i64, ptr %11, align 8, !tbaa !11
  %1269 = load i64, ptr %10, align 8, !tbaa !11
  %1270 = sub nsw i64 %1269, 1
  %1271 = icmp sle i64 %1268, %1270
  br i1 %1271, label %1272, label %1297

1272:                                             ; preds = %1267
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %1273

1273:                                             ; preds = %1290, %1272
  %1274 = load i64, ptr %12, align 8, !tbaa !11
  %1275 = load i64, ptr %9, align 8, !tbaa !11
  %1276 = sub nsw i64 %1275, 1
  %1277 = icmp sle i64 %1274, %1276
  br i1 %1277, label %1278, label %1293

1278:                                             ; preds = %1273
  %1279 = load i64, ptr %11, align 8, !tbaa !11
  %1280 = load i64, ptr %12, align 8, !tbaa !11
  %1281 = load ptr, ptr %4, align 8, !tbaa !9
  %1282 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %25, i64 noundef %1279, i64 noundef %1280, ptr noundef %1281)
  %1283 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %1284 = load ptr, ptr %1283, align 8, !tbaa !15
  %1285 = load i64, ptr %11, align 8, !tbaa !11
  %1286 = getelementptr inbounds ptr, ptr %1284, i64 %1285
  %1287 = load ptr, ptr %1286, align 8, !tbaa !9
  %1288 = load i64, ptr %12, align 8, !tbaa !11
  %1289 = getelementptr inbounds double, ptr %1287, i64 %1288
  store double %1282, ptr %1289, align 8, !tbaa !13
  br label %1290

1290:                                             ; preds = %1278
  %1291 = load i64, ptr %12, align 8, !tbaa !11
  %1292 = add nsw i64 %1291, 1
  store i64 %1292, ptr %12, align 8, !tbaa !11
  br label %1273, !llvm.loop !62

1293:                                             ; preds = %1273
  br label %1294

1294:                                             ; preds = %1293
  %1295 = load i64, ptr %11, align 8, !tbaa !11
  %1296 = add nsw i64 %1295, 1
  store i64 %1296, ptr %11, align 8, !tbaa !11
  br label %1267, !llvm.loop !63

1297:                                             ; preds = %1267
  %1298 = load i64, ptr %10, align 8, !tbaa !11
  %1299 = load i64, ptr %9, align 8, !tbaa !11
  %1300 = load i64, ptr %35, align 8, !tbaa !11
  %1301 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl26pcatruncatedsubspacesparseEPNS_12sparsematrixEllldlPNS_9ae_vectorEPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %25, i64 noundef %1298, i64 noundef %1299, i64 noundef %1300, double noundef 1.000000e-09, i64 noundef 0, ptr noundef %16, ptr noundef %20, ptr noundef %1301)
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %1302

1302:                                             ; preds = %1350, %1297
  %1303 = load i64, ptr %11, align 8, !tbaa !11
  %1304 = load i64, ptr %35, align 8, !tbaa !11
  %1305 = sub nsw i64 %1304, 1
  %1306 = icmp sle i64 %1303, %1305
  br i1 %1306, label %1307, label %1353

1307:                                             ; preds = %1302
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %1308

1308:                                             ; preds = %1346, %1307
  %1309 = load i64, ptr %12, align 8, !tbaa !11
  %1310 = load i64, ptr %35, align 8, !tbaa !11
  %1311 = sub nsw i64 %1310, 1
  %1312 = icmp sle i64 %1309, %1311
  br i1 %1312, label %1313, label %1349

1313:                                             ; preds = %1308
  %1314 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %1315 = load ptr, ptr %1314, align 8, !tbaa !15
  %1316 = getelementptr inbounds ptr, ptr %1315, i64 0
  %1317 = load ptr, ptr %1316, align 8, !tbaa !9
  %1318 = load i64, ptr %11, align 8, !tbaa !11
  %1319 = getelementptr inbounds double, ptr %1317, i64 %1318
  %1320 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 2
  %1321 = load i64, ptr %1320, align 8, !tbaa !20
  %1322 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %1323 = load ptr, ptr %1322, align 8, !tbaa !15
  %1324 = getelementptr inbounds ptr, ptr %1323, i64 0
  %1325 = load ptr, ptr %1324, align 8, !tbaa !9
  %1326 = load i64, ptr %12, align 8, !tbaa !11
  %1327 = getelementptr inbounds double, ptr %1325, i64 %1326
  %1328 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 2
  %1329 = load i64, ptr %1328, align 8, !tbaa !20
  %1330 = load i64, ptr %9, align 8, !tbaa !11
  %1331 = sub nsw i64 %1330, 1
  %1332 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %1331)
  %1333 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %1319, i64 noundef %1321, ptr noundef %1327, i64 noundef %1329, i64 noundef %1332)
  store double %1333, ptr %23, align 8, !tbaa !13
  %1334 = load i64, ptr %11, align 8, !tbaa !11
  %1335 = load i64, ptr %12, align 8, !tbaa !11
  %1336 = icmp eq i64 %1334, %1335
  br i1 %1336, label %1337, label %1340

1337:                                             ; preds = %1313
  %1338 = load double, ptr %23, align 8, !tbaa !13
  %1339 = fsub double %1338, 1.000000e+00
  store double %1339, ptr %23, align 8, !tbaa !13
  br label %1340

1340:                                             ; preds = %1337, %1313
  %1341 = load double, ptr %23, align 8, !tbaa !13
  %1342 = load ptr, ptr %4, align 8, !tbaa !9
  %1343 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1341, ptr noundef %1342)
  %1344 = load double, ptr %8, align 8, !tbaa !13
  %1345 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1343, double noundef %1344)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %45, i1 noundef zeroext %1345, ptr noundef @.str.8, i32 noundef 72716, ptr noundef @.str.498)
  br label %1346

1346:                                             ; preds = %1340
  %1347 = load i64, ptr %12, align 8, !tbaa !11
  %1348 = add nsw i64 %1347, 1
  store i64 %1348, ptr %12, align 8, !tbaa !11
  br label %1308, !llvm.loop !64

1349:                                             ; preds = %1308
  br label %1350

1350:                                             ; preds = %1349
  %1351 = load i64, ptr %11, align 8, !tbaa !11
  %1352 = add nsw i64 %1351, 1
  store i64 %1352, ptr %11, align 8, !tbaa !11
  br label %1302, !llvm.loop !65

1353:                                             ; preds = %1302
  %1354 = load i64, ptr %10, align 8, !tbaa !11
  %1355 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %1354, ptr noundef %1355)
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %1356

1356:                                             ; preds = %1432, %1353
  %1357 = load i64, ptr %13, align 8, !tbaa !11
  %1358 = load i64, ptr %35, align 8, !tbaa !11
  %1359 = sub nsw i64 %1358, 1
  %1360 = icmp sle i64 %1357, %1359
  br i1 %1360, label %1361, label %1435

1361:                                             ; preds = %1356
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %1362

1362:                                             ; preds = %1391, %1361
  %1363 = load i64, ptr %11, align 8, !tbaa !11
  %1364 = load i64, ptr %10, align 8, !tbaa !11
  %1365 = sub nsw i64 %1364, 1
  %1366 = icmp sle i64 %1363, %1365
  br i1 %1366, label %1367, label %1394

1367:                                             ; preds = %1362
  %1368 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %1369 = load ptr, ptr %1368, align 8, !tbaa !15
  %1370 = load i64, ptr %11, align 8, !tbaa !11
  %1371 = getelementptr inbounds ptr, ptr %1369, i64 %1370
  %1372 = load ptr, ptr %1371, align 8, !tbaa !9
  %1373 = getelementptr inbounds double, ptr %1372, i64 0
  %1374 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %1375 = load ptr, ptr %1374, align 8, !tbaa !15
  %1376 = getelementptr inbounds ptr, ptr %1375, i64 0
  %1377 = load ptr, ptr %1376, align 8, !tbaa !9
  %1378 = load i64, ptr %13, align 8, !tbaa !11
  %1379 = getelementptr inbounds double, ptr %1377, i64 %1378
  %1380 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 2
  %1381 = load i64, ptr %1380, align 8, !tbaa !20
  %1382 = load i64, ptr %9, align 8, !tbaa !11
  %1383 = sub nsw i64 %1382, 1
  %1384 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %1383)
  %1385 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %1373, i64 noundef 1, ptr noundef %1379, i64 noundef %1381, i64 noundef %1384)
  store double %1385, ptr %23, align 8, !tbaa !13
  %1386 = load double, ptr %23, align 8, !tbaa !13
  %1387 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %1388 = load ptr, ptr %1387, align 8, !tbaa !15
  %1389 = load i64, ptr %11, align 8, !tbaa !11
  %1390 = getelementptr inbounds double, ptr %1388, i64 %1389
  store double %1386, ptr %1390, align 8, !tbaa !13
  br label %1391

1391:                                             ; preds = %1367
  %1392 = load i64, ptr %11, align 8, !tbaa !11
  %1393 = add nsw i64 %1392, 1
  store i64 %1393, ptr %11, align 8, !tbaa !11
  br label %1362, !llvm.loop !66

1394:                                             ; preds = %1362
  %1395 = load i64, ptr %10, align 8, !tbaa !11
  %1396 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testpcaunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %18, i64 noundef %1395, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %1396)
  %1397 = load i64, ptr %10, align 8, !tbaa !11
  %1398 = icmp ne i64 %1397, 1
  br i1 %1398, label %1399, label %1410

1399:                                             ; preds = %1394
  %1400 = load double, ptr %28, align 8, !tbaa !13
  %1401 = load ptr, ptr %4, align 8, !tbaa !9
  %1402 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1400, ptr noundef %1401)
  %1403 = load i64, ptr %10, align 8, !tbaa !11
  %1404 = sitofp i64 %1403 to double
  %1405 = fmul double %1402, %1404
  %1406 = load i64, ptr %10, align 8, !tbaa !11
  %1407 = sub nsw i64 %1406, 1
  %1408 = sitofp i64 %1407 to double
  %1409 = fdiv double %1405, %1408
  store double %1409, ptr %23, align 8, !tbaa !13
  br label %1411

1410:                                             ; preds = %1394
  store double 0.000000e+00, ptr %23, align 8, !tbaa !13
  br label %1411

1411:                                             ; preds = %1410, %1399
  %1412 = load double, ptr %23, align 8, !tbaa !13
  %1413 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %1414 = load ptr, ptr %1413, align 8, !tbaa !15
  %1415 = load i64, ptr %13, align 8, !tbaa !11
  %1416 = getelementptr inbounds double, ptr %1414, i64 %1415
  %1417 = load double, ptr %1416, align 8, !tbaa !13
  %1418 = fsub double %1412, %1417
  %1419 = load ptr, ptr %4, align 8, !tbaa !9
  %1420 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1418, ptr noundef %1419)
  %1421 = load double, ptr %8, align 8, !tbaa !13
  %1422 = load double, ptr %23, align 8, !tbaa !13
  %1423 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %1424 = load ptr, ptr %1423, align 8, !tbaa !15
  %1425 = load i64, ptr %13, align 8, !tbaa !11
  %1426 = getelementptr inbounds double, ptr %1424, i64 %1425
  %1427 = load double, ptr %1426, align 8, !tbaa !13
  %1428 = load ptr, ptr %4, align 8, !tbaa !9
  %1429 = call noundef double @_ZN11alglib_impl8rmaxabs3EdddPNS_8ae_stateE(double noundef %1422, double noundef %1427, double noundef 1.000000e+00, ptr noundef %1428)
  %1430 = fmul double %1421, %1429
  %1431 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1420, double noundef %1430)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %45, i1 noundef zeroext %1431, ptr noundef @.str.8, i32 noundef 72740, ptr noundef @.str.499)
  br label %1432

1432:                                             ; preds = %1411
  %1433 = load i64, ptr %13, align 8, !tbaa !11
  %1434 = add nsw i64 %1433, 1
  store i64 %1434, ptr %13, align 8, !tbaa !11
  br label %1356, !llvm.loop !67

1435:                                             ; preds = %1356
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %1436

1436:                                             ; preds = %1458, %1435
  %1437 = load i64, ptr %13, align 8, !tbaa !11
  %1438 = load i64, ptr %35, align 8, !tbaa !11
  %1439 = sub nsw i64 %1438, 2
  %1440 = icmp sle i64 %1437, %1439
  br i1 %1440, label %1441, label %1461

1441:                                             ; preds = %1436
  %1442 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %1443 = load ptr, ptr %1442, align 8, !tbaa !15
  %1444 = load i64, ptr %13, align 8, !tbaa !11
  %1445 = getelementptr inbounds double, ptr %1443, i64 %1444
  %1446 = load double, ptr %1445, align 8, !tbaa !13
  %1447 = load ptr, ptr %4, align 8, !tbaa !9
  %1448 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1446, ptr noundef %1447)
  %1449 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %1450 = load ptr, ptr %1449, align 8, !tbaa !15
  %1451 = load i64, ptr %13, align 8, !tbaa !11
  %1452 = add nsw i64 %1451, 1
  %1453 = getelementptr inbounds double, ptr %1450, i64 %1452
  %1454 = load double, ptr %1453, align 8, !tbaa !13
  %1455 = load ptr, ptr %4, align 8, !tbaa !9
  %1456 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1454, ptr noundef %1455)
  %1457 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %1448, double noundef %1456)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %45, i1 noundef zeroext %1457, ptr noundef @.str.8, i32 noundef 72744, ptr noundef @.str.500)
  br label %1458

1458:                                             ; preds = %1441
  %1459 = load i64, ptr %13, align 8, !tbaa !11
  %1460 = add nsw i64 %1459, 1
  store i64 %1460, ptr %13, align 8, !tbaa !11
  br label %1436, !llvm.loop !68

1461:                                             ; preds = %1436
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %1462

1462:                                             ; preds = %1494, %1461
  %1463 = load i64, ptr %13, align 8, !tbaa !11
  %1464 = load i64, ptr %35, align 8, !tbaa !11
  %1465 = sub nsw i64 %1464, 1
  %1466 = icmp sle i64 %1463, %1465
  br i1 %1466, label %1467, label %1497

1467:                                             ; preds = %1462
  %1468 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %1469 = load ptr, ptr %1468, align 8, !tbaa !15
  %1470 = load i64, ptr %13, align 8, !tbaa !11
  %1471 = getelementptr inbounds double, ptr %1469, i64 %1470
  %1472 = load double, ptr %1471, align 8, !tbaa !13
  %1473 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %1472, double noundef 0.000000e+00)
  br i1 %1473, label %1474, label %1492

1474:                                             ; preds = %1467
  %1475 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %1476 = load ptr, ptr %1475, align 8, !tbaa !15
  %1477 = load i64, ptr %13, align 8, !tbaa !11
  %1478 = getelementptr inbounds double, ptr %1476, i64 %1477
  %1479 = load double, ptr %1478, align 8, !tbaa !13
  %1480 = load ptr, ptr %4, align 8, !tbaa !9
  %1481 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1479, ptr noundef %1480)
  %1482 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %1483 = load ptr, ptr %1482, align 8, !tbaa !15
  %1484 = getelementptr inbounds double, ptr %1483, i64 0
  %1485 = load double, ptr %1484, align 8, !tbaa !13
  %1486 = load ptr, ptr %4, align 8, !tbaa !9
  %1487 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1485, ptr noundef %1486)
  %1488 = load ptr, ptr %4, align 8, !tbaa !9
  %1489 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1487, double noundef 1.000000e+00, ptr noundef %1488)
  %1490 = fmul double 5.000000e-13, %1489
  %1491 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1481, double noundef %1490)
  br label %1492

1492:                                             ; preds = %1474, %1467
  %1493 = phi i1 [ false, %1467 ], [ %1491, %1474 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %45, i1 noundef zeroext %1493, ptr noundef @.str.8, i32 noundef 72748, ptr noundef @.str.501)
  br label %1494

1494:                                             ; preds = %1492
  %1495 = load i64, ptr %13, align 8, !tbaa !11
  %1496 = add nsw i64 %1495, 1
  store i64 %1496, ptr %13, align 8, !tbaa !11
  br label %1462, !llvm.loop !69

1497:                                             ; preds = %1462
  %1498 = load i64, ptr %10, align 8, !tbaa !11
  %1499 = load i64, ptr %9, align 8, !tbaa !11
  %1500 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pcabuildbasisEPNS_9ae_matrixEllPlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %22, i64 noundef %1498, i64 noundef %1499, ptr noundef %14, ptr noundef %17, ptr noundef %21, ptr noundef %1500)
  %1501 = load i64, ptr %14, align 8, !tbaa !11
  %1502 = icmp sgt i64 %1501, 0
  %1503 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %1502, ptr noundef @.str.489, ptr noundef %1503)
  store double 0.000000e+00, ptr %37, align 8, !tbaa !13
  store double 0.000000e+00, ptr %38, align 8, !tbaa !13
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %1504

1504:                                             ; preds = %1524, %1497
  %1505 = load i64, ptr %13, align 8, !tbaa !11
  %1506 = load i64, ptr %35, align 8, !tbaa !11
  %1507 = sub nsw i64 %1506, 1
  %1508 = icmp sle i64 %1505, %1507
  br i1 %1508, label %1509, label %1527

1509:                                             ; preds = %1504
  %1510 = load double, ptr %38, align 8, !tbaa !13
  %1511 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %1512 = load ptr, ptr %1511, align 8, !tbaa !15
  %1513 = load i64, ptr %13, align 8, !tbaa !11
  %1514 = getelementptr inbounds double, ptr %1512, i64 %1513
  %1515 = load double, ptr %1514, align 8, !tbaa !13
  %1516 = fadd double %1510, %1515
  store double %1516, ptr %38, align 8, !tbaa !13
  %1517 = load double, ptr %37, align 8, !tbaa !13
  %1518 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %1519 = load ptr, ptr %1518, align 8, !tbaa !15
  %1520 = load i64, ptr %13, align 8, !tbaa !11
  %1521 = getelementptr inbounds double, ptr %1519, i64 %1520
  %1522 = load double, ptr %1521, align 8, !tbaa !13
  %1523 = fadd double %1517, %1522
  store double %1523, ptr %37, align 8, !tbaa !13
  br label %1524

1524:                                             ; preds = %1509
  %1525 = load i64, ptr %13, align 8, !tbaa !11
  %1526 = add nsw i64 %1525, 1
  store i64 %1526, ptr %13, align 8, !tbaa !11
  br label %1504, !llvm.loop !70

1527:                                             ; preds = %1504
  %1528 = load double, ptr %38, align 8, !tbaa !13
  %1529 = load double, ptr %37, align 8, !tbaa !13
  %1530 = fsub double %1528, %1529
  %1531 = load double, ptr %37, align 8, !tbaa !13
  %1532 = load ptr, ptr %4, align 8, !tbaa !9
  %1533 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1531, double noundef 1.000000e+00, ptr noundef %1532)
  %1534 = fdiv double %1530, %1533
  %1535 = load double, ptr %36, align 8, !tbaa !13
  %1536 = fneg double %1535
  %1537 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %1534, double noundef %1536)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %45, i1 noundef zeroext %1537, ptr noundef @.str.8, i32 noundef 72764, ptr noundef @.str.502)
  %1538 = load double, ptr %38, align 8, !tbaa !13
  %1539 = load double, ptr %37, align 8, !tbaa !13
  %1540 = fsub double %1538, %1539
  %1541 = load double, ptr %37, align 8, !tbaa !13
  %1542 = load ptr, ptr %4, align 8, !tbaa !9
  %1543 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1541, double noundef 1.000000e+00, ptr noundef %1542)
  %1544 = fdiv double %1540, %1543
  %1545 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1544, double noundef 5.000000e-11)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %45, i1 noundef zeroext %1545, ptr noundef @.str.8, i32 noundef 72765, ptr noundef @.str.503)
  br label %1546

1546:                                             ; preds = %1527
  %1547 = load i64, ptr %10, align 8, !tbaa !11
  %1548 = add nsw i64 %1547, 1
  store i64 %1548, ptr %10, align 8, !tbaa !11
  br label %1189, !llvm.loop !71

1549:                                             ; preds = %1189
  br label %1550

1550:                                             ; preds = %1549
  %1551 = load i64, ptr %9, align 8, !tbaa !11
  %1552 = add nsw i64 %1551, 1
  store i64 %1552, ptr %9, align 8, !tbaa !11
  br label %1184, !llvm.loop !72

1553:                                             ; preds = %1184
  %1554 = load i8, ptr %40, align 1, !tbaa !5, !range !23, !noundef !24
  %1555 = trunc i8 %1554 to i1
  br i1 %1555, label %1571, label %1556

1556:                                             ; preds = %1553
  %1557 = load i8, ptr %41, align 1, !tbaa !5, !range !23, !noundef !24
  %1558 = trunc i8 %1557 to i1
  br i1 %1558, label %1571, label %1559

1559:                                             ; preds = %1556
  %1560 = load i8, ptr %42, align 1, !tbaa !5, !range !23, !noundef !24
  %1561 = trunc i8 %1560 to i1
  br i1 %1561, label %1571, label %1562

1562:                                             ; preds = %1559
  %1563 = load i8, ptr %43, align 1, !tbaa !5, !range !23, !noundef !24
  %1564 = trunc i8 %1563 to i1
  br i1 %1564, label %1571, label %1565

1565:                                             ; preds = %1562
  %1566 = load i8, ptr %44, align 1, !tbaa !5, !range !23, !noundef !24
  %1567 = trunc i8 %1566 to i1
  br i1 %1567, label %1571, label %1568

1568:                                             ; preds = %1565
  %1569 = load i8, ptr %45, align 1, !tbaa !5, !range !23, !noundef !24
  %1570 = trunc i8 %1569 to i1
  br label %1571

1571:                                             ; preds = %1568, %1565, %1562, %1559, %1556, %1553
  %1572 = phi i1 [ true, %1565 ], [ true, %1562 ], [ true, %1559 ], [ true, %1556 ], [ true, %1553 ], [ %1570, %1568 ]
  %1573 = zext i1 %1572 to i8
  store i8 %1573, ptr %46, align 1, !tbaa !5
  %1574 = load i8, ptr %3, align 1, !tbaa !5, !range !23, !noundef !24
  %1575 = trunc i8 %1574 to i1
  br i1 %1575, label %1636, label %1576

1576:                                             ; preds = %1571
  %1577 = call i32 (ptr, ...) @printf(ptr noundef @.str.504)
  %1578 = call i32 (ptr, ...) @printf(ptr noundef @.str.505)
  %1579 = call i32 (ptr, ...) @printf(ptr noundef @.str.506)
  %1580 = load i8, ptr %40, align 1, !tbaa !5, !range !23, !noundef !24
  %1581 = trunc i8 %1580 to i1
  br i1 %1581, label %1584, label %1582

1582:                                             ; preds = %1576
  %1583 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1586

1584:                                             ; preds = %1576
  %1585 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1586

1586:                                             ; preds = %1584, %1582
  %1587 = call i32 (ptr, ...) @printf(ptr noundef @.str.507)
  %1588 = load i8, ptr %41, align 1, !tbaa !5, !range !23, !noundef !24
  %1589 = trunc i8 %1588 to i1
  br i1 %1589, label %1592, label %1590

1590:                                             ; preds = %1586
  %1591 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1594

1592:                                             ; preds = %1586
  %1593 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1594

1594:                                             ; preds = %1592, %1590
  %1595 = call i32 (ptr, ...) @printf(ptr noundef @.str.508)
  %1596 = load i8, ptr %42, align 1, !tbaa !5, !range !23, !noundef !24
  %1597 = trunc i8 %1596 to i1
  br i1 %1597, label %1600, label %1598

1598:                                             ; preds = %1594
  %1599 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1602

1600:                                             ; preds = %1594
  %1601 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1602

1602:                                             ; preds = %1600, %1598
  %1603 = call i32 (ptr, ...) @printf(ptr noundef @.str.509)
  %1604 = load i8, ptr %43, align 1, !tbaa !5, !range !23, !noundef !24
  %1605 = trunc i8 %1604 to i1
  br i1 %1605, label %1608, label %1606

1606:                                             ; preds = %1602
  %1607 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1610

1608:                                             ; preds = %1602
  %1609 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1610

1610:                                             ; preds = %1608, %1606
  %1611 = call i32 (ptr, ...) @printf(ptr noundef @.str.510)
  %1612 = call i32 (ptr, ...) @printf(ptr noundef @.str.511)
  %1613 = load i8, ptr %44, align 1, !tbaa !5, !range !23, !noundef !24
  %1614 = trunc i8 %1613 to i1
  br i1 %1614, label %1617, label %1615

1615:                                             ; preds = %1610
  %1616 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1619

1617:                                             ; preds = %1610
  %1618 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1619

1619:                                             ; preds = %1617, %1615
  %1620 = call i32 (ptr, ...) @printf(ptr noundef @.str.512)
  %1621 = load i8, ptr %45, align 1, !tbaa !5, !range !23, !noundef !24
  %1622 = trunc i8 %1621 to i1
  br i1 %1622, label %1625, label %1623

1623:                                             ; preds = %1619
  %1624 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1627

1625:                                             ; preds = %1619
  %1626 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1627

1627:                                             ; preds = %1625, %1623
  %1628 = load i8, ptr %46, align 1, !tbaa !5, !range !23, !noundef !24
  %1629 = trunc i8 %1628 to i1
  br i1 %1629, label %1630, label %1632

1630:                                             ; preds = %1627
  %1631 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  br label %1634

1632:                                             ; preds = %1627
  %1633 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  br label %1634

1634:                                             ; preds = %1632, %1630
  %1635 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %1636

1636:                                             ; preds = %1634, %1571
  %1637 = load i8, ptr %46, align 1, !tbaa !5, !range !23, !noundef !24
  %1638 = trunc i8 %1637 to i1
  %1639 = xor i1 %1638, true
  %1640 = zext i1 %1639 to i8
  store i8 %1640, ptr %47, align 1, !tbaa !5
  %1641 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1641)
  %1642 = load i8, ptr %47, align 1, !tbaa !5, !range !23, !noundef !24
  %1643 = trunc i8 %1642 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  ret i1 %1643
}

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = !{!21, !12, i64 16}
!21 = !{!"_ZTSN11alglib_impl9ae_matrixE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !22, i64 40, !7, i64 72}
!22 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}
!32 = distinct !{!32, !17}
!33 = distinct !{!33, !17}
!34 = distinct !{!34, !17}
!35 = distinct !{!35, !17}
!36 = distinct !{!36, !17}
!37 = distinct !{!37, !17}
!38 = distinct !{!38, !17}
!39 = distinct !{!39, !17}
!40 = distinct !{!40, !17}
!41 = distinct !{!41, !17}
!42 = distinct !{!42, !17}
!43 = distinct !{!43, !17}
!44 = distinct !{!44, !17}
!45 = distinct !{!45, !17}
!46 = distinct !{!46, !17}
!47 = distinct !{!47, !17}
!48 = distinct !{!48, !17}
!49 = distinct !{!49, !17}
!50 = distinct !{!50, !17}
!51 = distinct !{!51, !17}
!52 = distinct !{!52, !17}
!53 = distinct !{!53, !17}
!54 = distinct !{!54, !17}
!55 = distinct !{!55, !17}
!56 = distinct !{!56, !17}
!57 = distinct !{!57, !17}
!58 = distinct !{!58, !17}
!59 = distinct !{!59, !17}
!60 = distinct !{!60, !17}
!61 = distinct !{!61, !17}
!62 = distinct !{!62, !17}
!63 = distinct !{!63, !17}
!64 = distinct !{!64, !17}
!65 = distinct !{!65, !17}
!66 = distinct !{!66, !17}
!67 = distinct !{!67, !17}
!68 = distinct !{!68, !17}
!69 = distinct !{!69, !17}
!70 = distinct !{!70, !17}
!71 = distinct !{!71, !17}
!72 = distinct !{!72, !17}


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

@.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.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.485 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.486 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.487 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.488 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.489 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.490 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.491 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.492 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.493 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.494 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.495 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.496 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.497 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.498 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.499 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.500 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.501 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.502 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.503 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.504 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.505 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.506 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.507 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.508 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.509 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.510 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.511 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.512 = external hidden unnamed_addr constant [42 x i8], align 1
@switch.table._Z7testpcabPN11alglib_impl8ae_stateE = private unnamed_addr constant [3 x i64] [i64 50, i64 100, i64 100], align 8
@switch.table._Z7testpcabPN11alglib_impl8ae_stateE.1 = private unnamed_addr constant [3 x i64] [i64 1, i64 1, i64 25], align 8

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

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

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

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

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr 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 void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr 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 void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 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_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z7testpcabPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #5 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca i64, align 8
  %5 = alloca %"struct.alglib_impl::ae_vector", align 8
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %11 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #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(64) %5, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %10, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %11, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %12, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %13, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %22, i8 0, i64 24, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, 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 %10, 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 %11, 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 %12, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %13, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %22, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %22, ptr noundef %1)
  store i8 0, ptr %23, align 1, !tbaa !5
  store i8 0, ptr %24, align 1, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %5, i64 56
  %26 = getelementptr inbounds i8, ptr %12, i64 72
  %27 = getelementptr inbounds i8, ptr %10, i64 72
  %28 = getelementptr inbounds i8, ptr %10, i64 16
  %29 = getelementptr inbounds i8, ptr %8, i64 56
  %30 = getelementptr inbounds i8, ptr %6, i64 56
  %31 = getelementptr inbounds i8, ptr %9, i64 56
  %32 = getelementptr inbounds i8, ptr %12, i64 16
  br label %.preheader691

.preheader691:                                    ; preds = %2, %179
  %indvars.iv856 = phi i64 [ 2, %2 ], [ %indvars.iv.next857, %179 ]
  %indvars.iv = phi i64 [ 0, %2 ], [ %indvars.iv.next, %179 ]
  %.0724 = phi i64 [ 1, %2 ], [ %180, %179 ]
  %.0507723 = phi i8 [ 0, %2 ], [ %.3510, %179 ]
  %.0511722 = phi i8 [ 0, %2 ], [ %.4515, %179 ]
  %.0516721 = phi i8 [ 0, %2 ], [ %.4520, %179 ]
  %.0524720 = phi i1 [ false, %2 ], [ %.2526, %179 ]
  %33 = add nsw i64 %.0724, -1
  %.not644707 = icmp ult i64 %.0724, 2
  br label %34

34:                                               ; preds = %.preheader691, %.loopexit687
  %.1508719 = phi i8 [ %.0507723, %.preheader691 ], [ %.3510, %.loopexit687 ]
  %.1512718 = phi i8 [ %.0511722, %.preheader691 ], [ %.4515, %.loopexit687 ]
  %.1517717 = phi i8 [ %.0516721, %.preheader691 ], [ %.4520, %.loopexit687 ]
  %.1525716 = phi i1 [ %.0524720, %.preheader691 ], [ %.2526, %.loopexit687 ]
  %.0588715 = phi i64 [ 1, %.preheader691 ], [ %178, %.loopexit687 ]
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.0588715, i64 noundef %.0724, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0724, ptr noundef %1)
  br label %35

35:                                               ; preds = %34, %35
  %.0561697 = phi i64 [ 0, %34 ], [ %40, %35 ]
  %36 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %37 = call double @llvm.fmuladd.f64(double %36, double 1.500000e+00, double -7.500000e-01)
  %38 = load ptr, ptr %25, align 8, !tbaa !9
  %39 = getelementptr inbounds double, ptr %38, i64 %.0561697
  store double %37, ptr %39, align 8, !tbaa !10
  %40 = add nuw nsw i64 %.0561697, 1
  %exitcond.not = icmp eq i64 %40, %.0724
  br i1 %exitcond.not, label %.preheader686, label %35, !llvm.loop !12

.preheader686:                                    ; preds = %35, %53
  %.0574699 = phi i64 [ %54, %53 ], [ 0, %35 ]
  br label %41

41:                                               ; preds = %.preheader686, %41
  %.1562698 = phi i64 [ 0, %.preheader686 ], [ %52, %41 ]
  %42 = load ptr, ptr %25, align 8, !tbaa !9
  %43 = getelementptr inbounds double, ptr %42, i64 %.1562698
  %44 = load double, ptr %43, align 8, !tbaa !10
  %45 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %46 = call double @llvm.fmuladd.f64(double %45, double 2.000000e+00, double -1.000000e+00)
  %47 = fadd double %44, %46
  %48 = load ptr, ptr %26, align 8, !tbaa !9
  %49 = getelementptr inbounds ptr, ptr %48, i64 %.0574699
  %50 = load ptr, ptr %49, align 8, !tbaa !14
  %51 = getelementptr inbounds double, ptr %50, i64 %.1562698
  store double %47, ptr %51, align 8, !tbaa !10
  %52 = add nuw nsw i64 %.1562698, 1
  %exitcond847.not = icmp eq i64 %52, %.0724
  br i1 %exitcond847.not, label %53, label %41, !llvm.loop !16

53:                                               ; preds = %41
  %54 = add nuw nsw i64 %.0574699, 1
  %exitcond848.not = icmp eq i64 %54, %.0588715
  br i1 %exitcond848.not, label %55, label %.preheader686, !llvm.loop !17

55:                                               ; preds = %53
  %56 = add nsw i64 %.0588715, -1
  call void @_ZN11alglib_impl13pcabuildbasisEPNS_9ae_matrixEllPlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.0588715, i64 noundef %.0724, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %10, ptr noundef %1)
  %57 = load i64, ptr %4, align 8, !tbaa !18
  %.not641 = icmp eq i64 %57, 1
  br i1 %.not641, label %.preheader685, label %.loopexit687

.preheader685:                                    ; preds = %55, %76
  %.2518703 = phi i8 [ %74, %76 ], [ %.1517717, %55 ]
  %.1575702 = phi i64 [ %77, %76 ], [ 0, %55 ]
  br label %58

58:                                               ; preds = %.preheader685, %72
  %.3519701 = phi i8 [ %.2518703, %.preheader685 ], [ %74, %72 ]
  %.2563700 = phi i64 [ 0, %.preheader685 ], [ %75, %72 ]
  %59 = load ptr, ptr %27, align 8, !tbaa !9
  %60 = load ptr, ptr %59, align 8, !tbaa !14
  %61 = getelementptr inbounds double, ptr %60, i64 %.1575702
  %62 = load i64, ptr %28, align 8, !tbaa !20
  %63 = getelementptr inbounds double, ptr %60, i64 %.2563700
  %64 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %33)
  %65 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %61, i64 noundef %62, ptr noundef %63, i64 noundef %62, i64 noundef %64)
  %66 = trunc nuw i8 %.3519701 to i1
  br i1 %66, label %72, label %67

67:                                               ; preds = %58
  %68 = icmp eq i64 %.1575702, %.2563700
  %69 = fadd double %65, -1.000000e+00
  %.0541 = select i1 %68, double %69, double %65
  %70 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.0541, ptr noundef %1)
  %71 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %70, double noundef 5.000000e-11)
  br label %72

72:                                               ; preds = %67, %58
  %73 = phi i1 [ true, %58 ], [ %71, %67 ]
  %74 = zext i1 %73 to i8
  %75 = add nuw nsw i64 %.2563700, 1
  %exitcond849.not = icmp eq i64 %75, %.0724
  br i1 %exitcond849.not, label %76, label %58, !llvm.loop !23

76:                                               ; preds = %72
  %77 = add nuw nsw i64 %.1575702, 1
  %exitcond850.not = icmp eq i64 %77, %.0724
  br i1 %exitcond850.not, label %78, label %.preheader685, !llvm.loop !24

78:                                               ; preds = %76
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0588715, ptr noundef %1)
  %.not651 = icmp eq i64 %.0588715, 1
  %79 = uitofp nneg i64 %.0588715 to double
  %80 = sitofp i64 %56 to double
  br label %.preheader684

.preheader688:                                    ; preds = %109
  br i1 %.not644707, label %._crit_edge, label %.lr.ph

.preheader684:                                    ; preds = %78, %109
  %.2513706 = phi i8 [ %.1512718, %78 ], [ %111, %109 ]
  %.0550705 = phi i64 [ 0, %78 ], [ %112, %109 ]
  br label %81

81:                                               ; preds = %.preheader684, %81
  %.2576704 = phi i64 [ 0, %.preheader684 ], [ %93, %81 ]
  %82 = load ptr, ptr %26, align 8, !tbaa !9
  %83 = getelementptr inbounds ptr, ptr %82, i64 %.2576704
  %84 = load ptr, ptr %83, align 8, !tbaa !14
  %85 = load ptr, ptr %27, align 8, !tbaa !9
  %86 = load ptr, ptr %85, align 8, !tbaa !14
  %87 = getelementptr inbounds double, ptr %86, i64 %.0550705
  %88 = load i64, ptr %28, align 8, !tbaa !20
  %89 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %33)
  %90 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %84, i64 noundef 1, ptr noundef %87, i64 noundef %88, i64 noundef %89)
  %91 = load ptr, ptr %29, align 8, !tbaa !9
  %92 = getelementptr inbounds double, ptr %91, i64 %.2576704
  store double %90, ptr %92, align 8, !tbaa !10
  %93 = add nuw nsw i64 %.2576704, 1
  %exitcond851.not = icmp eq i64 %93, %.0588715
  br i1 %exitcond851.not, label %94, label %81, !llvm.loop !25

94:                                               ; preds = %81
  call void @_ZL23testpcaunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0588715, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef %1)
  br i1 %.not651, label %100, label %95

95:                                               ; preds = %94
  %96 = load double, ptr %16, align 8, !tbaa !10
  %97 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %96, ptr noundef %1)
  %98 = fmul double %97, %79
  %99 = fdiv double %98, %80
  br label %100

100:                                              ; preds = %94, %95
  %.1542 = phi double [ %99, %95 ], [ 0.000000e+00, %94 ]
  %101 = trunc nuw i8 %.2513706 to i1
  br i1 %101, label %109, label %102

102:                                              ; preds = %100
  %103 = load ptr, ptr %30, align 8, !tbaa !9
  %104 = getelementptr inbounds double, ptr %103, i64 %.0550705
  %105 = load double, ptr %104, align 8, !tbaa !10
  %106 = fsub double %.1542, %105
  %107 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %106, ptr noundef %1)
  %108 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %107, double noundef 5.000000e-11)
  br label %109

109:                                              ; preds = %102, %100
  %110 = phi i1 [ true, %100 ], [ %108, %102 ]
  %111 = zext i1 %110 to i8
  %112 = add nuw nsw i64 %.0550705, 1
  %exitcond852.not = icmp eq i64 %112, %.0724
  br i1 %exitcond852.not, label %.preheader688, label %.preheader684, !llvm.loop !26

.lr.ph:                                           ; preds = %.preheader688, %120
  %.3514709 = phi i1 [ %121, %120 ], [ %110, %.preheader688 ]
  %.1551708 = phi i64 [ %122, %120 ], [ 0, %.preheader688 ]
  br i1 %.3514709, label %120, label %113

113:                                              ; preds = %.lr.ph
  %114 = load ptr, ptr %30, align 8, !tbaa !9
  %115 = getelementptr inbounds double, ptr %114, i64 %.1551708
  %116 = load double, ptr %115, align 8, !tbaa !10
  %117 = getelementptr inbounds i8, ptr %115, i64 8
  %118 = load double, ptr %117, align 8, !tbaa !10
  %119 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %116, double noundef %118)
  br label %120

120:                                              ; preds = %113, %.lr.ph
  %121 = phi i1 [ true, %.lr.ph ], [ %119, %113 ]
  %122 = add nuw nsw i64 %.1551708, 1
  %exitcond853.not = icmp eq i64 %122, %indvars.iv
  br i1 %exitcond853.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !27

._crit_edge.loopexit:                             ; preds = %120
  %123 = zext i1 %121 to i8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader688
  %.3514.lcssa = phi i8 [ %111, %.preheader688 ], [ %123, %._crit_edge.loopexit ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0588715, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0588715, ptr noundef %1)
  br label %124

124:                                              ; preds = %._crit_edge, %124
  %.3577710 = phi i64 [ 0, %._crit_edge ], [ %135, %124 ]
  %125 = load ptr, ptr %26, align 8, !tbaa !9
  %126 = getelementptr inbounds ptr, ptr %125, i64 %.3577710
  %127 = load ptr, ptr %126, align 8, !tbaa !14
  %128 = load ptr, ptr %27, align 8, !tbaa !9
  %129 = load ptr, ptr %128, align 8, !tbaa !14
  %130 = load i64, ptr %28, align 8, !tbaa !20
  %131 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %33)
  %132 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %127, i64 noundef 1, ptr noundef %129, i64 noundef %130, i64 noundef %131)
  %133 = load ptr, ptr %29, align 8, !tbaa !9
  %134 = getelementptr inbounds double, ptr %133, i64 %.3577710
  store double %132, ptr %134, align 8, !tbaa !10
  %135 = add nuw nsw i64 %.3577710, 1
  %exitcond854.not = icmp eq i64 %135, %.0588715
  br i1 %exitcond854.not, label %136, label %124, !llvm.loop !28

136:                                              ; preds = %124
  call void @_ZL23testpcaunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0588715, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef %1)
  br label %137

137:                                              ; preds = %136, %174
  %.2509714 = phi i8 [ %.1508719, %136 ], [ %176, %174 ]
  %.2552713 = phi i64 [ 0, %136 ], [ %177, %174 ]
  %138 = and i64 %.2552713, 1
  %.not647 = icmp eq i64 %138, 0
  %.0540 = select i1 %.not647, double 1.000000e-03, double -1.000000e-03
  %139 = load ptr, ptr %31, align 8, !tbaa !9
  %140 = load ptr, ptr %29, align 8, !tbaa !9
  %141 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %56)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %139, i64 noundef 1, ptr noundef %140, i64 noundef 1, i64 noundef %141)
  %142 = load ptr, ptr %31, align 8, !tbaa !9
  %143 = load ptr, ptr %26, align 8, !tbaa !9
  %144 = load ptr, ptr %143, align 8, !tbaa !14
  %145 = lshr i64 %.2552713, 1
  %146 = getelementptr inbounds double, ptr %144, i64 %145
  %147 = load i64, ptr %32, align 8, !tbaa !20
  %148 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %56)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %142, i64 noundef 1, ptr noundef %146, i64 noundef %147, i64 noundef %148, double noundef %.0540)
  br label %149

149:                                              ; preds = %137, %160
  %.2543712 = phi double [ 0.000000e+00, %137 ], [ %.3544, %160 ]
  %.3564711 = phi i64 [ 0, %137 ], [ %162, %160 ]
  %.not649 = icmp eq i64 %.3564711, %145
  %150 = load ptr, ptr %27, align 8, !tbaa !9
  br i1 %.not649, label %155, label %151

151:                                              ; preds = %149
  %152 = getelementptr inbounds ptr, ptr %150, i64 %.3564711
  %153 = load ptr, ptr %152, align 8, !tbaa !14
  %154 = load double, ptr %153, align 8, !tbaa !10
  br label %160

155:                                              ; preds = %149
  %156 = getelementptr inbounds ptr, ptr %150, i64 %145
  %157 = load ptr, ptr %156, align 8, !tbaa !14
  %158 = load double, ptr %157, align 8, !tbaa !10
  %159 = fadd double %.0540, %158
  br label %160

160:                                              ; preds = %151, %155
  %.sink = phi double [ %154, %151 ], [ %159, %155 ]
  %161 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %.sink, ptr noundef %1)
  %.3544 = fadd double %.2543712, %161
  %162 = add nuw nsw i64 %.3564711, 1
  %exitcond855.not = icmp eq i64 %162, %.0724
  br i1 %exitcond855.not, label %163, label %149, !llvm.loop !29

163:                                              ; preds = %160
  %164 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %.3544, ptr noundef %1)
  %165 = fdiv double 1.000000e+00, %164
  %166 = load ptr, ptr %31, align 8, !tbaa !9
  %167 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %56)
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %166, i64 noundef 1, i64 noundef %167, double noundef %165)
  call void @_ZL23testpcaunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0588715, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef %1)
  %168 = trunc nuw i8 %.2509714 to i1
  br i1 %168, label %174, label %169

169:                                              ; preds = %163
  %170 = load double, ptr %20, align 8, !tbaa !10
  %171 = load double, ptr %16, align 8, !tbaa !10
  %172 = fadd double %171, 5.000000e-11
  %173 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %170, double noundef %172)
  br label %174

174:                                              ; preds = %169, %163
  %175 = phi i1 [ true, %163 ], [ %173, %169 ]
  %176 = zext i1 %175 to i8
  %177 = add nuw nsw i64 %.2552713, 1
  %exitcond858.not = icmp eq i64 %177, %indvars.iv856
  br i1 %exitcond858.not, label %.loopexit687, label %137, !llvm.loop !30

.loopexit687:                                     ; preds = %174, %55
  %.2526 = phi i1 [ true, %55 ], [ %.1525716, %174 ]
  %.4520 = phi i8 [ %.1517717, %55 ], [ %74, %174 ]
  %.4515 = phi i8 [ %.1512718, %55 ], [ %.3514.lcssa, %174 ]
  %.3510 = phi i8 [ %.1508719, %55 ], [ %176, %174 ]
  %178 = add nuw nsw i64 %.0588715, 1
  %exitcond859.not = icmp eq i64 %178, 101
  br i1 %exitcond859.not, label %179, label %34, !llvm.loop !31

179:                                              ; preds = %.loopexit687
  %180 = add nuw nsw i64 %.0724, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %indvars.iv.next857 = add nuw nsw i64 %indvars.iv856, 2
  %exitcond860.not = icmp eq i64 %indvars.iv.next, 10
  br i1 %exitcond860.not, label %.preheader683, label %.preheader691, !llvm.loop !32

.preheader680:                                    ; preds = %.loopexit
  %181 = getelementptr inbounds i8, ptr %7, i64 56
  br label %.preheader679

.preheader683:                                    ; preds = %179, %.loopexit
  %.1731 = phi i64 [ %204, %.loopexit ], [ 1, %179 ]
  %.5521730 = phi i8 [ %.8, %.loopexit ], [ %.4520, %179 ]
  %.3527729 = phi i1 [ %.4528, %.loopexit ], [ %.2526, %179 ]
  call void @_ZN11alglib_impl13pcabuildbasisEPNS_9ae_matrixEllPlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef 0, i64 noundef %.1731, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %10, ptr noundef %1)
  %182 = load i64, ptr %4, align 8, !tbaa !18
  %.not636 = icmp eq i64 %182, 1
  br i1 %.not636, label %.preheader682, label %.loopexit

.preheader682:                                    ; preds = %.preheader683
  %183 = add nsw i64 %.1731, -1
  br label %.preheader681

.preheader681:                                    ; preds = %.preheader682, %202
  %.6522728 = phi i8 [ %.5521730, %.preheader682 ], [ %200, %202 ]
  %.4578727 = phi i64 [ 0, %.preheader682 ], [ %203, %202 ]
  br label %184

184:                                              ; preds = %.preheader681, %198
  %.7523726 = phi i8 [ %.6522728, %.preheader681 ], [ %200, %198 ]
  %.4565725 = phi i64 [ 0, %.preheader681 ], [ %201, %198 ]
  %185 = load ptr, ptr %27, align 8, !tbaa !9
  %186 = load ptr, ptr %185, align 8, !tbaa !14
  %187 = getelementptr inbounds double, ptr %186, i64 %.4578727
  %188 = load i64, ptr %28, align 8, !tbaa !20
  %189 = getelementptr inbounds double, ptr %186, i64 %.4565725
  %190 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %183)
  %191 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %187, i64 noundef %188, ptr noundef %189, i64 noundef %188, i64 noundef %190)
  %192 = trunc nuw i8 %.7523726 to i1
  br i1 %192, label %198, label %193

193:                                              ; preds = %184
  %194 = icmp eq i64 %.4578727, %.4565725
  %195 = fadd double %191, -1.000000e+00
  %.4545 = select i1 %194, double %195, double %191
  %196 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.4545, ptr noundef %1)
  %197 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %196, double noundef 5.000000e-11)
  br label %198

198:                                              ; preds = %193, %184
  %199 = phi i1 [ true, %184 ], [ %197, %193 ]
  %200 = zext i1 %199 to i8
  %201 = add nuw nsw i64 %.4565725, 1
  %exitcond861.not = icmp eq i64 %201, %.1731
  br i1 %exitcond861.not, label %202, label %184, !llvm.loop !33

202:                                              ; preds = %198
  %203 = add nuw nsw i64 %.4578727, 1
  %exitcond862.not = icmp eq i64 %203, %.1731
  br i1 %exitcond862.not, label %.loopexit, label %.preheader681, !llvm.loop !34

.loopexit:                                        ; preds = %202, %.preheader683
  %.4528 = phi i1 [ true, %.preheader683 ], [ %.3527729, %202 ]
  %.8 = phi i8 [ %.5521730, %.preheader683 ], [ %200, %202 ]
  %204 = add nuw nsw i64 %.1731, 1
  %exitcond863.not = icmp eq i64 %204, 11
  br i1 %exitcond863.not, label %.preheader680, label %.preheader683, !llvm.loop !35

.preheader679:                                    ; preds = %.preheader680, %350
  %.2762 = phi i64 [ 1, %.preheader680 ], [ %351, %350 ]
  %205 = add nsw i64 %.2762, -1
  br label %206

206:                                              ; preds = %.preheader679, %._crit_edge758
  %.1589761 = phi i64 [ 1, %.preheader679 ], [ %349, %._crit_edge758 ]
  %207 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %22, i64 noundef %.2762, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.2762, ptr noundef %1)
  br label %208

208:                                              ; preds = %206, %208
  %.5566732 = phi i64 [ 0, %206 ], [ %213, %208 ]
  %209 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %22, ptr noundef %1)
  %210 = fmul double %209, 1.000000e+02
  %211 = load ptr, ptr %25, align 8, !tbaa !9
  %212 = getelementptr inbounds double, ptr %211, i64 %.5566732
  store double %210, ptr %212, align 8, !tbaa !10
  %213 = add nuw nsw i64 %.5566732, 1
  %exitcond864.not = icmp eq i64 %213, %.2762
  br i1 %exitcond864.not, label %214, label %208, !llvm.loop !36

214:                                              ; preds = %208
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.1589761, i64 noundef %.2762, ptr noundef %1)
  br label %.preheader676

.preheader676:                                    ; preds = %214, %226
  %.5579734 = phi i64 [ 0, %214 ], [ %227, %226 ]
  br label %215

215:                                              ; preds = %.preheader676, %215
  %.6567733 = phi i64 [ 0, %.preheader676 ], [ %225, %215 ]
  %216 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %22, ptr noundef %1)
  %217 = load ptr, ptr %25, align 8, !tbaa !9
  %218 = getelementptr inbounds double, ptr %217, i64 %.6567733
  %219 = load double, ptr %218, align 8, !tbaa !10
  %220 = fadd double %216, %219
  %221 = load ptr, ptr %26, align 8, !tbaa !9
  %222 = getelementptr inbounds ptr, ptr %221, i64 %.5579734
  %223 = load ptr, ptr %222, align 8, !tbaa !14
  %224 = getelementptr inbounds double, ptr %223, i64 %.6567733
  store double %220, ptr %224, align 8, !tbaa !10
  %225 = add nuw nsw i64 %.6567733, 1
  %exitcond865.not = icmp eq i64 %225, %.2762
  br i1 %exitcond865.not, label %226, label %215, !llvm.loop !37

226:                                              ; preds = %215
  %227 = add nuw nsw i64 %.5579734, 1
  %exitcond866.not = icmp eq i64 %227, %.1589761
  br i1 %exitcond866.not, label %228, label %.preheader676, !llvm.loop !38

228:                                              ; preds = %226
  %229 = add i64 %207, 1
  %230 = add nsw i64 %.1589761, -1
  call void @_ZN11alglib_impl20pcatruncatedsubspaceEPNS_9ae_matrixEllldlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.1589761, i64 noundef %.2762, i64 noundef %229, double noundef 1.000000e-09, i64 noundef 0, ptr noundef nonnull %6, ptr noundef nonnull %10, ptr noundef %1)
  %.not627739 = icmp slt i64 %207, 0
  br i1 %.not627739, label %._crit_edge741.split.thread, label %.preheader675

._crit_edge741.split.thread:                      ; preds = %228
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.1589761, ptr noundef %1)
  br label %._crit_edge751

.preheader675:                                    ; preds = %228, %._crit_edge738
  %.6580740 = phi i64 [ %244, %._crit_edge738 ], [ 0, %228 ]
  br label %231

231:                                              ; preds = %.preheader675, %231
  %.7568736 = phi i64 [ 0, %.preheader675 ], [ %243, %231 ]
  %232 = load ptr, ptr %27, align 8, !tbaa !9
  %233 = load ptr, ptr %232, align 8, !tbaa !14
  %234 = getelementptr inbounds double, ptr %233, i64 %.6580740
  %235 = load i64, ptr %28, align 8, !tbaa !20
  %236 = getelementptr inbounds double, ptr %233, i64 %.7568736
  %237 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %205)
  %238 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %234, i64 noundef %235, ptr noundef %236, i64 noundef %235, i64 noundef %237)
  %239 = icmp eq i64 %.6580740, %.7568736
  %240 = fadd double %238, -1.000000e+00
  %.5546 = select i1 %239, double %240, double %238
  %241 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.5546, ptr noundef %1)
  %242 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %241, double noundef 5.000000e-11)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %23, i1 noundef zeroext %242, ptr noundef nonnull @.str.8, i32 noundef 72474, ptr noundef nonnull @.str.485)
  %243 = add nuw i64 %.7568736, 1
  %exitcond867.not = icmp eq i64 %.7568736, %207
  br i1 %exitcond867.not, label %._crit_edge738, label %231, !llvm.loop !39

._crit_edge738:                                   ; preds = %231
  %244 = add nuw i64 %.6580740, 1
  %exitcond868.not = icmp eq i64 %.6580740, %207
  br i1 %exitcond868.not, label %._crit_edge741.split, label %.preheader675, !llvm.loop !40

._crit_edge741.split:                             ; preds = %._crit_edge738
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.1589761, ptr noundef %1)
  br i1 %.not627739, label %._crit_edge758.critedge, label %.preheader674.lr.ph

.preheader674.lr.ph:                              ; preds = %._crit_edge741.split
  %.not633 = icmp eq i64 %.1589761, 1
  %245 = uitofp nneg i64 %.1589761 to double
  %246 = sitofp i64 %230 to double
  br label %.preheader674

.preheader678:                                    ; preds = %266
  %.not629.not745.not = icmp eq i64 %207, 0
  br i1 %.not629.not745.not, label %.preheader677, label %.lr.ph747

.preheader674:                                    ; preds = %.preheader674.lr.ph, %266
  %.3553744 = phi i64 [ 0, %.preheader674.lr.ph ], [ %273, %266 ]
  br label %247

247:                                              ; preds = %.preheader674, %247
  %.7581742 = phi i64 [ 0, %.preheader674 ], [ %259, %247 ]
  %248 = load ptr, ptr %26, align 8, !tbaa !9
  %249 = getelementptr inbounds ptr, ptr %248, i64 %.7581742
  %250 = load ptr, ptr %249, align 8, !tbaa !14
  %251 = load ptr, ptr %27, align 8, !tbaa !9
  %252 = load ptr, ptr %251, align 8, !tbaa !14
  %253 = getelementptr inbounds double, ptr %252, i64 %.3553744
  %254 = load i64, ptr %28, align 8, !tbaa !20
  %255 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %205)
  %256 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %250, i64 noundef 1, ptr noundef %253, i64 noundef %254, i64 noundef %255)
  %257 = load ptr, ptr %29, align 8, !tbaa !9
  %258 = getelementptr inbounds double, ptr %257, i64 %.7581742
  store double %256, ptr %258, align 8, !tbaa !10
  %259 = add nuw nsw i64 %.7581742, 1
  %exitcond869.not = icmp eq i64 %259, %.1589761
  br i1 %exitcond869.not, label %260, label %247, !llvm.loop !41

260:                                              ; preds = %247
  call void @_ZL23testpcaunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.1589761, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef %1)
  br i1 %.not633, label %266, label %261

261:                                              ; preds = %260
  %262 = load double, ptr %16, align 8, !tbaa !10
  %263 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %262, ptr noundef %1)
  %264 = fmul double %263, %245
  %265 = fdiv double %264, %246
  br label %266

266:                                              ; preds = %260, %261
  %.6547 = phi double [ %265, %261 ], [ 0.000000e+00, %260 ]
  %267 = load ptr, ptr %30, align 8, !tbaa !9
  %268 = getelementptr inbounds double, ptr %267, i64 %.3553744
  %269 = load double, ptr %268, align 8, !tbaa !10
  %270 = fsub double %.6547, %269
  %271 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %270, ptr noundef %1)
  %272 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %271, double noundef 5.000000e-11)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %23, i1 noundef zeroext %272, ptr noundef nonnull @.str.8, i32 noundef 72498, ptr noundef nonnull @.str.486)
  %273 = add nuw i64 %.3553744, 1
  %exitcond870.not = icmp eq i64 %.3553744, %207
  br i1 %exitcond870.not, label %.preheader678, label %.preheader674, !llvm.loop !42

.preheader677:                                    ; preds = %.lr.ph747, %.preheader678
  br i1 %.not627739, label %._crit_edge758.critedge, label %.lr.ph750

.lr.ph747:                                        ; preds = %.preheader678, %.lr.ph747
  %.4554746 = phi i64 [ %279, %.lr.ph747 ], [ 0, %.preheader678 ]
  %274 = load ptr, ptr %30, align 8, !tbaa !9
  %275 = getelementptr inbounds double, ptr %274, i64 %.4554746
  %276 = load double, ptr %275, align 8, !tbaa !10
  %277 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %276, ptr noundef %1)
  %278 = load ptr, ptr %30, align 8, !tbaa !9
  %279 = add nuw nsw i64 %.4554746, 1
  %280 = getelementptr inbounds double, ptr %278, i64 %279
  %281 = load double, ptr %280, align 8, !tbaa !10
  %282 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %281, ptr noundef %1)
  %283 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %277, double noundef %282)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %23, i1 noundef zeroext %283, ptr noundef nonnull @.str.8, i32 noundef 72502, ptr noundef nonnull @.str.487)
  %exitcond871.not = icmp eq i64 %279, %207
  br i1 %exitcond871.not, label %.preheader677, label %.lr.ph747, !llvm.loop !43

.lr.ph750:                                        ; preds = %.preheader677, %298
  %.5555749 = phi i64 [ %300, %298 ], [ 0, %.preheader677 ]
  %284 = load ptr, ptr %30, align 8, !tbaa !9
  %285 = getelementptr inbounds double, ptr %284, i64 %.5555749
  %286 = load double, ptr %285, align 8, !tbaa !10
  %287 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %286, double noundef 0.000000e+00)
  br i1 %287, label %288, label %298

288:                                              ; preds = %.lr.ph750
  %289 = load ptr, ptr %30, align 8, !tbaa !9
  %290 = getelementptr inbounds double, ptr %289, i64 %.5555749
  %291 = load double, ptr %290, align 8, !tbaa !10
  %292 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %291, ptr noundef %1)
  %293 = load ptr, ptr %30, align 8, !tbaa !9
  %294 = load double, ptr %293, align 8, !tbaa !10
  %295 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %294, ptr noundef %1)
  %296 = fmul double %295, 5.000000e-13
  %297 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %292, double noundef %296)
  br label %298

298:                                              ; preds = %288, %.lr.ph750
  %299 = phi i1 [ false, %.lr.ph750 ], [ %297, %288 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %23, i1 noundef zeroext %299, ptr noundef nonnull @.str.8, i32 noundef 72506, ptr noundef nonnull @.str.488)
  %300 = add nuw i64 %.5555749, 1
  %exitcond872.not = icmp eq i64 %.5555749, %207
  br i1 %exitcond872.not, label %._crit_edge751, label %.lr.ph750, !llvm.loop !44

._crit_edge751:                                   ; preds = %298, %._crit_edge741.split.thread
  call void @_ZN11alglib_impl13pcabuildbasisEPNS_9ae_matrixEllPlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.1589761, i64 noundef %.2762, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %11, ptr noundef %1)
  %301 = load i64, ptr %4, align 8, !tbaa !18
  %302 = icmp sgt i64 %301, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %302, ptr noundef nonnull @.str.489, ptr noundef %1)
  br i1 %.not627739, label %._crit_edge758, label %.lr.ph757

.lr.ph757:                                        ; preds = %._crit_edge751
  %303 = load ptr, ptr %30, align 8, !tbaa !9
  %304 = load ptr, ptr %181, align 8, !tbaa !9
  %305 = add nuw i64 %207, 1
  %xtraiter = and i64 %305, 3
  %306 = icmp ult i64 %207, 3
  br i1 %306, label %._crit_edge758.loopexit.unr-lcssa, label %.lr.ph757.new

.lr.ph757.new:                                    ; preds = %.lr.ph757
  %unroll_iter = and i64 %305, -4
  br label %307

307:                                              ; preds = %307, %.lr.ph757.new
  %.0530755 = phi double [ 0.000000e+00, %.lr.ph757.new ], [ %331, %307 ]
  %.0533754 = phi double [ 0.000000e+00, %.lr.ph757.new ], [ %334, %307 ]
  %.6556753 = phi i64 [ 0, %.lr.ph757.new ], [ %335, %307 ]
  %niter = phi i64 [ 0, %.lr.ph757.new ], [ %niter.next.3, %307 ]
  %308 = getelementptr inbounds double, ptr %303, i64 %.6556753
  %309 = load double, ptr %308, align 8, !tbaa !10
  %310 = fadd double %.0530755, %309
  %311 = getelementptr inbounds double, ptr %304, i64 %.6556753
  %312 = load double, ptr %311, align 8, !tbaa !10
  %313 = fadd double %.0533754, %312
  %314 = or disjoint i64 %.6556753, 1
  %315 = getelementptr inbounds double, ptr %303, i64 %314
  %316 = load double, ptr %315, align 8, !tbaa !10
  %317 = fadd double %310, %316
  %318 = getelementptr inbounds double, ptr %304, i64 %314
  %319 = load double, ptr %318, align 8, !tbaa !10
  %320 = fadd double %313, %319
  %321 = or disjoint i64 %.6556753, 2
  %322 = getelementptr inbounds double, ptr %303, i64 %321
  %323 = load double, ptr %322, align 8, !tbaa !10
  %324 = fadd double %317, %323
  %325 = getelementptr inbounds double, ptr %304, i64 %321
  %326 = load double, ptr %325, align 8, !tbaa !10
  %327 = fadd double %320, %326
  %328 = or disjoint i64 %.6556753, 3
  %329 = getelementptr inbounds double, ptr %303, i64 %328
  %330 = load double, ptr %329, align 8, !tbaa !10
  %331 = fadd double %324, %330
  %332 = getelementptr inbounds double, ptr %304, i64 %328
  %333 = load double, ptr %332, align 8, !tbaa !10
  %334 = fadd double %327, %333
  %335 = add nuw i64 %.6556753, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge758.loopexit.unr-lcssa, label %307, !llvm.loop !45

._crit_edge758.critedge:                          ; preds = %.preheader677, %._crit_edge741.split
  call void @_ZN11alglib_impl13pcabuildbasisEPNS_9ae_matrixEllPlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.1589761, i64 noundef %.2762, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %11, ptr noundef %1)
  %336 = load i64, ptr %4, align 8, !tbaa !18
  %337 = icmp sgt i64 %336, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %337, ptr noundef nonnull @.str.489, ptr noundef %1)
  br label %._crit_edge758

._crit_edge758.loopexit.unr-lcssa:                ; preds = %307, %.lr.ph757
  %.lcssa943.ph = phi double [ poison, %.lr.ph757 ], [ %331, %307 ]
  %.lcssa942.ph = phi double [ poison, %.lr.ph757 ], [ %334, %307 ]
  %.0530755.unr = phi double [ 0.000000e+00, %.lr.ph757 ], [ %331, %307 ]
  %.0533754.unr = phi double [ 0.000000e+00, %.lr.ph757 ], [ %334, %307 ]
  %.6556753.unr = phi i64 [ 0, %.lr.ph757 ], [ %335, %307 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge758, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge758.loopexit.unr-lcssa, %.epil.preheader
  %.0530755.epil = phi double [ %340, %.epil.preheader ], [ %.0530755.unr, %._crit_edge758.loopexit.unr-lcssa ]
  %.0533754.epil = phi double [ %343, %.epil.preheader ], [ %.0533754.unr, %._crit_edge758.loopexit.unr-lcssa ]
  %.6556753.epil = phi i64 [ %344, %.epil.preheader ], [ %.6556753.unr, %._crit_edge758.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge758.loopexit.unr-lcssa ]
  %338 = getelementptr inbounds double, ptr %303, i64 %.6556753.epil
  %339 = load double, ptr %338, align 8, !tbaa !10
  %340 = fadd double %.0530755.epil, %339
  %341 = getelementptr inbounds double, ptr %304, i64 %.6556753.epil
  %342 = load double, ptr %341, align 8, !tbaa !10
  %343 = fadd double %.0533754.epil, %342
  %344 = add nuw i64 %.6556753.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge758, label %.epil.preheader, !llvm.loop !46

._crit_edge758:                                   ; preds = %._crit_edge758.loopexit.unr-lcssa, %.epil.preheader, %._crit_edge758.critedge, %._crit_edge751
  %.0533.lcssa = phi double [ 0.000000e+00, %._crit_edge751 ], [ 0.000000e+00, %._crit_edge758.critedge ], [ %.lcssa942.ph, %._crit_edge758.loopexit.unr-lcssa ], [ %343, %.epil.preheader ]
  %.0530.lcssa = phi double [ 0.000000e+00, %._crit_edge751 ], [ 0.000000e+00, %._crit_edge758.critedge ], [ %.lcssa943.ph, %._crit_edge758.loopexit.unr-lcssa ], [ %340, %.epil.preheader ]
  %345 = fsub double %.0530.lcssa, %.0533.lcssa
  %346 = fdiv double %345, %.0533.lcssa
  %347 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %346, double noundef -1.000000e-03)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %23, i1 noundef zeroext %347, ptr noundef nonnull @.str.8, i32 noundef 72522, ptr noundef nonnull @.str.490)
  %348 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %346, double noundef 5.000000e-11)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %23, i1 noundef zeroext %348, ptr noundef nonnull @.str.8, i32 noundef 72523, ptr noundef nonnull @.str.491)
  %349 = add nuw nsw i64 %.1589761, 1
  %exitcond874.not = icmp eq i64 %349, 101
  br i1 %exitcond874.not, label %350, label %206, !llvm.loop !48

350:                                              ; preds = %._crit_edge758
  %351 = add nuw nsw i64 %.2762, 1
  %exitcond875.not = icmp eq i64 %351, 11
  br i1 %exitcond875.not, label %.preheader673, label %.preheader679, !llvm.loop !49

.preheader673:                                    ; preds = %350, %._crit_edge798
  %.0529801 = phi i64 [ %528, %._crit_edge798 ], [ 0, %350 ]
  %352 = icmp ult i64 %.0529801, 3
  br i1 %352, label %switch.lookup, label %.thread660

switch.lookup:                                    ; preds = %.preheader673
  %switch.gep = getelementptr inbounds [3 x i64], ptr @switch.table._Z7testpcabPN11alglib_impl8ae_stateE, i64 0, i64 %.0529801
  %switch.load = load i64, ptr %switch.gep, align 8
  %switch.gep937 = getelementptr inbounds [3 x i64], ptr @switch.table._Z7testpcabPN11alglib_impl8ae_stateE.1, i64 0, i64 %.0529801
  %switch.load938 = load i64, ptr %switch.gep937, align 8
  br label %.thread660

.thread660:                                       ; preds = %.preheader673, %switch.lookup
  %.sink919 = phi i64 [ 50, %switch.lookup ], [ 200, %.preheader673 ]
  %.sink918 = phi i64 [ %switch.load, %switch.lookup ], [ 200, %.preheader673 ]
  %.sink916 = phi i64 [ %switch.load938, %switch.lookup ], [ 1, %.preheader673 ]
  %353 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %22, i64 noundef %.sink919, ptr noundef %1)
  %354 = add i64 %353, %.sink918
  %355 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %22, i64 noundef 10, ptr noundef %1)
  %356 = add i64 %355, %.sink916
  %357 = icmp sgt i64 %354, 0
  %358 = icmp sgt i64 %356, 0
  %359 = select i1 %357, i1 %358, i1 false
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %359, ptr noundef nonnull @.str.492, ptr noundef %1)
  %360 = shl nsw i64 %354, 1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %360, i64 noundef %354, ptr noundef %1)
  br i1 %357, label %.preheader671.us.preheader, label %._crit_edge769.thread

._crit_edge769.thread:                            ; preds = %.thread660
  %361 = load ptr, ptr %26, align 8, !tbaa !9
  %362 = load ptr, ptr %361, align 8, !tbaa !14
  store double 1.000000e+00, ptr %362, align 8, !tbaa !10
  br label %._crit_edge774

.preheader671.us.preheader:                       ; preds = %.thread660
  %smax = call i64 @llvm.smax.i64(i64 %360, i64 1)
  %363 = add i64 %353, -1
  %364 = add i64 %363, %.sink918
  %xtraiter953 = and i64 %354, 3
  %365 = icmp ult i64 %364, 3
  %unroll_iter956 = and i64 %354, 9223372036854775804
  %lcmp.mod955.not = icmp eq i64 %xtraiter953, 0
  br label %.preheader671.us

.preheader671.us:                                 ; preds = %.preheader671.us.preheader, %._crit_edge766.us
  %.8582768.us = phi i64 [ %391, %._crit_edge766.us ], [ 0, %.preheader671.us.preheader ]
  br i1 %365, label %._crit_edge766.us.unr-lcssa, label %.preheader671.us.new

.preheader671.us.new:                             ; preds = %.preheader671.us, %.preheader671.us.new
  %.8569764.us = phi i64 [ %385, %.preheader671.us.new ], [ 0, %.preheader671.us ]
  %niter957 = phi i64 [ %niter957.next.3, %.preheader671.us.new ], [ 0, %.preheader671.us ]
  %366 = load ptr, ptr %26, align 8, !tbaa !9
  %367 = getelementptr inbounds ptr, ptr %366, i64 %.8582768.us
  %368 = load ptr, ptr %367, align 8, !tbaa !14
  %369 = getelementptr inbounds double, ptr %368, i64 %.8569764.us
  store double 0.000000e+00, ptr %369, align 8, !tbaa !10
  %370 = or disjoint i64 %.8569764.us, 1
  %371 = load ptr, ptr %26, align 8, !tbaa !9
  %372 = getelementptr inbounds ptr, ptr %371, i64 %.8582768.us
  %373 = load ptr, ptr %372, align 8, !tbaa !14
  %374 = getelementptr inbounds double, ptr %373, i64 %370
  store double 0.000000e+00, ptr %374, align 8, !tbaa !10
  %375 = or disjoint i64 %.8569764.us, 2
  %376 = load ptr, ptr %26, align 8, !tbaa !9
  %377 = getelementptr inbounds ptr, ptr %376, i64 %.8582768.us
  %378 = load ptr, ptr %377, align 8, !tbaa !14
  %379 = getelementptr inbounds double, ptr %378, i64 %375
  store double 0.000000e+00, ptr %379, align 8, !tbaa !10
  %380 = or disjoint i64 %.8569764.us, 3
  %381 = load ptr, ptr %26, align 8, !tbaa !9
  %382 = getelementptr inbounds ptr, ptr %381, i64 %.8582768.us
  %383 = load ptr, ptr %382, align 8, !tbaa !14
  %384 = getelementptr inbounds double, ptr %383, i64 %380
  store double 0.000000e+00, ptr %384, align 8, !tbaa !10
  %385 = add nuw nsw i64 %.8569764.us, 4
  %niter957.next.3 = add i64 %niter957, 4
  %niter957.ncmp.3 = icmp eq i64 %niter957.next.3, %unroll_iter956
  br i1 %niter957.ncmp.3, label %._crit_edge766.us.unr-lcssa, label %.preheader671.us.new, !llvm.loop !50

._crit_edge766.us.unr-lcssa:                      ; preds = %.preheader671.us.new, %.preheader671.us
  %.8569764.us.unr = phi i64 [ 0, %.preheader671.us ], [ %385, %.preheader671.us.new ]
  br i1 %lcmp.mod955.not, label %._crit_edge766.us, label %.epil.preheader952

.epil.preheader952:                               ; preds = %._crit_edge766.us.unr-lcssa, %.epil.preheader952
  %.8569764.us.epil = phi i64 [ %390, %.epil.preheader952 ], [ %.8569764.us.unr, %._crit_edge766.us.unr-lcssa ]
  %epil.iter954 = phi i64 [ %epil.iter954.next, %.epil.preheader952 ], [ 0, %._crit_edge766.us.unr-lcssa ]
  %386 = load ptr, ptr %26, align 8, !tbaa !9
  %387 = getelementptr inbounds ptr, ptr %386, i64 %.8582768.us
  %388 = load ptr, ptr %387, align 8, !tbaa !14
  %389 = getelementptr inbounds double, ptr %388, i64 %.8569764.us.epil
  store double 0.000000e+00, ptr %389, align 8, !tbaa !10
  %390 = add nuw nsw i64 %.8569764.us.epil, 1
  %epil.iter954.next = add i64 %epil.iter954, 1
  %epil.iter954.cmp.not = icmp eq i64 %epil.iter954.next, %xtraiter953
  br i1 %epil.iter954.cmp.not, label %._crit_edge766.us, label %.epil.preheader952, !llvm.loop !51

._crit_edge766.us:                                ; preds = %.epil.preheader952, %._crit_edge766.us.unr-lcssa
  %391 = add nuw nsw i64 %.8582768.us, 1
  %exitcond877.not = icmp eq i64 %391, %smax
  br i1 %exitcond877.not, label %._crit_edge769, label %.preheader671.us, !llvm.loop !52

._crit_edge769:                                   ; preds = %._crit_edge766.us
  %392 = load ptr, ptr %26, align 8, !tbaa !9
  %393 = load ptr, ptr %392, align 8, !tbaa !14
  store double 1.000000e+00, ptr %393, align 8, !tbaa !10
  %.not617.not770.not = icmp eq i64 %354, 1
  br i1 %.not617.not770.not, label %._crit_edge774, label %.lr.ph773.preheader

.lr.ph773.preheader:                              ; preds = %._crit_edge769
  %394 = add i64 %353, -2
  %xtraiter958 = and i64 %364, 1
  %395 = sub i64 0, %.sink918
  %396 = icmp eq i64 %394, %395
  br i1 %396, label %._crit_edge774.loopexit.unr-lcssa, label %.lr.ph773.preheader.new

.lr.ph773.preheader.new:                          ; preds = %.lr.ph773.preheader
  %unroll_iter961 = and i64 %364, -2
  br label %.lr.ph773

.lr.ph773:                                        ; preds = %.lr.ph773, %.lr.ph773.preheader.new
  %.9583771 = phi i64 [ 1, %.lr.ph773.preheader.new ], [ %417, %.lr.ph773 ]
  %niter962 = phi i64 [ 0, %.lr.ph773.preheader.new ], [ %niter962.next.1, %.lr.ph773 ]
  %397 = load ptr, ptr %26, align 8, !tbaa !9
  %398 = add nsw i64 %.9583771, -1
  %399 = getelementptr inbounds ptr, ptr %397, i64 %398
  %400 = load ptr, ptr %399, align 8, !tbaa !14
  %401 = getelementptr inbounds double, ptr %400, i64 %398
  %402 = load double, ptr %401, align 8, !tbaa !10
  %403 = fmul double %402, 0x3FEE79E79E79E79E
  %404 = getelementptr inbounds ptr, ptr %397, i64 %.9583771
  %405 = load ptr, ptr %404, align 8, !tbaa !14
  %406 = getelementptr inbounds double, ptr %405, i64 %.9583771
  store double %403, ptr %406, align 8, !tbaa !10
  %407 = add nuw nsw i64 %.9583771, 1
  %408 = load ptr, ptr %26, align 8, !tbaa !9
  %409 = getelementptr inbounds ptr, ptr %408, i64 %.9583771
  %410 = load ptr, ptr %409, align 8, !tbaa !14
  %411 = getelementptr inbounds double, ptr %410, i64 %.9583771
  %412 = load double, ptr %411, align 8, !tbaa !10
  %413 = fmul double %412, 0x3FEE79E79E79E79E
  %414 = getelementptr inbounds ptr, ptr %408, i64 %407
  %415 = load ptr, ptr %414, align 8, !tbaa !14
  %416 = getelementptr inbounds double, ptr %415, i64 %407
  store double %413, ptr %416, align 8, !tbaa !10
  %417 = add nuw nsw i64 %.9583771, 2
  %niter962.next.1 = add nuw i64 %niter962, 2
  %niter962.ncmp.1 = icmp eq i64 %niter962.next.1, %unroll_iter961
  br i1 %niter962.ncmp.1, label %._crit_edge774.loopexit.unr-lcssa, label %.lr.ph773, !llvm.loop !53

._crit_edge774.loopexit.unr-lcssa:                ; preds = %.lr.ph773, %.lr.ph773.preheader
  %.9583771.unr = phi i64 [ 1, %.lr.ph773.preheader ], [ %417, %.lr.ph773 ]
  %lcmp.mod960.not = icmp eq i64 %xtraiter958, 0
  br i1 %lcmp.mod960.not, label %._crit_edge774, label %.lr.ph773.epil

.lr.ph773.epil:                                   ; preds = %._crit_edge774.loopexit.unr-lcssa
  %418 = load ptr, ptr %26, align 8, !tbaa !9
  %419 = add nsw i64 %.9583771.unr, -1
  %420 = getelementptr inbounds ptr, ptr %418, i64 %419
  %421 = load ptr, ptr %420, align 8, !tbaa !14
  %422 = getelementptr inbounds double, ptr %421, i64 %419
  %423 = load double, ptr %422, align 8, !tbaa !10
  %424 = fmul double %423, 0x3FEE79E79E79E79E
  %425 = getelementptr inbounds ptr, ptr %418, i64 %.9583771.unr
  %426 = load ptr, ptr %425, align 8, !tbaa !14
  %427 = getelementptr inbounds double, ptr %426, i64 %.9583771.unr
  store double %424, ptr %427, align 8, !tbaa !10
  br label %._crit_edge774

._crit_edge774:                                   ; preds = %.lr.ph773.epil, %._crit_edge774.loopexit.unr-lcssa, %._crit_edge769.thread, %._crit_edge769
  %428 = add nsw i64 %360, -1
  %429 = add nsw i64 %354, -1
  call void @_ZN11alglib_impl31rmatrixrndorthogonalfromtheleftEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %360, i64 noundef %354, ptr noundef %1)
  call void @_ZN11alglib_impl32rmatrixrndorthogonalfromtherightEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %360, i64 noundef %354, ptr noundef %1)
  %430 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %22, ptr noundef %1)
  %431 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %430, double noundef 5.000000e-01)
  %. = select i1 %431, i64 20, i64 0
  call void @_ZN11alglib_impl20pcatruncatedsubspaceEPNS_9ae_matrixEllldlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %360, i64 noundef %354, i64 noundef %356, double noundef 0.000000e+00, i64 noundef %., ptr noundef nonnull %6, ptr noundef nonnull %10, ptr noundef %1)
  br i1 %358, label %.preheader670.us, label %._crit_edge781.split.us.thread

._crit_edge781.split.us.thread:                   ; preds = %._crit_edge774
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %360, ptr noundef %1)
  br label %._crit_edge791

.preheader670.us:                                 ; preds = %._crit_edge774, %._crit_edge778.us
  %.10584780.us = phi i64 [ %445, %._crit_edge778.us ], [ 0, %._crit_edge774 ]
  br label %432

432:                                              ; preds = %.preheader670.us, %432
  %.9570776.us = phi i64 [ 0, %.preheader670.us ], [ %444, %432 ]
  %433 = load ptr, ptr %27, align 8, !tbaa !9
  %434 = load ptr, ptr %433, align 8, !tbaa !14
  %435 = getelementptr inbounds double, ptr %434, i64 %.10584780.us
  %436 = load i64, ptr %28, align 8, !tbaa !20
  %437 = getelementptr inbounds double, ptr %434, i64 %.9570776.us
  %438 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %429)
  %439 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %435, i64 noundef %436, ptr noundef %437, i64 noundef %436, i64 noundef %438)
  %440 = icmp eq i64 %.10584780.us, %.9570776.us
  %441 = fadd double %439, -1.000000e+00
  %.7548.us = select i1 %440, double %441, double %439
  %442 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.7548.us, ptr noundef %1)
  %443 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %442, double noundef 5.000000e-11)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %23, i1 noundef zeroext %443, ptr noundef nonnull @.str.8, i32 noundef 72603, ptr noundef nonnull @.str.493)
  %444 = add nuw nsw i64 %.9570776.us, 1
  %exitcond879.not = icmp eq i64 %444, %356
  br i1 %exitcond879.not, label %._crit_edge778.us, label %432, !llvm.loop !54

._crit_edge778.us:                                ; preds = %432
  %445 = add nuw nsw i64 %.10584780.us, 1
  %exitcond880.not = icmp eq i64 %445, %356
  br i1 %exitcond880.not, label %._crit_edge781.split.us, label %.preheader670.us, !llvm.loop !55

._crit_edge781.split.us:                          ; preds = %._crit_edge778.us
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %360, ptr noundef %1)
  br i1 %358, label %.preheader669.lr.ph, label %._crit_edge798.critedge

.preheader669.lr.ph:                              ; preds = %._crit_edge781.split.us
  %446 = sitofp i64 %360 to double
  %447 = sitofp i64 %428 to double
  %smax881 = call i64 @llvm.smax.i64(i64 %360, i64 1)
  br label %.preheader669

.preheader672:                                    ; preds = %._crit_edge785
  %.not620788 = icmp eq i64 %356, 1
  br i1 %.not620788, label %._crit_edge791, label %.lr.ph790.preheader

.lr.ph790.preheader:                              ; preds = %.preheader672
  %448 = add nsw i64 %356, -2
  br label %.lr.ph790

.preheader669:                                    ; preds = %.preheader669.lr.ph, %._crit_edge785
  %.7557787 = phi i64 [ 0, %.preheader669.lr.ph ], [ %471, %._crit_edge785 ]
  br i1 %357, label %.lr.ph784, label %._crit_edge785

.lr.ph784:                                        ; preds = %.preheader669, %.lr.ph784
  %.11585783 = phi i64 [ %460, %.lr.ph784 ], [ 0, %.preheader669 ]
  %449 = load ptr, ptr %26, align 8, !tbaa !9
  %450 = getelementptr inbounds ptr, ptr %449, i64 %.11585783
  %451 = load ptr, ptr %450, align 8, !tbaa !14
  %452 = load ptr, ptr %27, align 8, !tbaa !9
  %453 = load ptr, ptr %452, align 8, !tbaa !14
  %454 = getelementptr inbounds double, ptr %453, i64 %.7557787
  %455 = load i64, ptr %28, align 8, !tbaa !20
  %456 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %429)
  %457 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %451, i64 noundef 1, ptr noundef %454, i64 noundef %455, i64 noundef %456)
  %458 = load ptr, ptr %29, align 8, !tbaa !9
  %459 = getelementptr inbounds double, ptr %458, i64 %.11585783
  store double %457, ptr %459, align 8, !tbaa !10
  %460 = add nuw nsw i64 %.11585783, 1
  %exitcond882.not = icmp eq i64 %460, %smax881
  br i1 %exitcond882.not, label %._crit_edge785, label %.lr.ph784, !llvm.loop !56

._crit_edge785:                                   ; preds = %.lr.ph784, %.preheader669
  call void @_ZL23testpcaunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %360, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef %1)
  %461 = load double, ptr %16, align 8, !tbaa !10
  %462 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %461, ptr noundef %1)
  %463 = fmul double %462, %446
  %464 = fdiv double %463, %447
  %465 = load ptr, ptr %30, align 8, !tbaa !9
  %466 = getelementptr inbounds double, ptr %465, i64 %.7557787
  %467 = load double, ptr %466, align 8, !tbaa !10
  %468 = fsub double %464, %467
  %469 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %468, ptr noundef %1)
  %470 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %469, double noundef 5.000000e-11)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %23, i1 noundef zeroext %470, ptr noundef nonnull @.str.8, i32 noundef 72627, ptr noundef nonnull @.str.494)
  %471 = add nuw nsw i64 %.7557787, 1
  %exitcond883.not = icmp eq i64 %471, %356
  br i1 %exitcond883.not, label %.preheader672, label %.preheader669, !llvm.loop !57

.lr.ph790:                                        ; preds = %.lr.ph790.preheader, %.lr.ph790
  %.8558789 = phi i64 [ %475, %.lr.ph790 ], [ 0, %.lr.ph790.preheader ]
  %472 = load ptr, ptr %30, align 8, !tbaa !9
  %473 = getelementptr inbounds double, ptr %472, i64 %.8558789
  %474 = load double, ptr %473, align 8, !tbaa !10
  %475 = add nuw nsw i64 %.8558789, 1
  %476 = getelementptr inbounds double, ptr %472, i64 %475
  %477 = load double, ptr %476, align 8, !tbaa !10
  %478 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %474, double noundef %477)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %23, i1 noundef zeroext %478, ptr noundef nonnull @.str.8, i32 noundef 72631, ptr noundef nonnull @.str.495)
  %exitcond884.not = icmp eq i64 %.8558789, %448
  br i1 %exitcond884.not, label %._crit_edge791, label %.lr.ph790, !llvm.loop !58

._crit_edge791:                                   ; preds = %.lr.ph790, %._crit_edge781.split.us.thread, %.preheader672
  call void @_ZN11alglib_impl13pcabuildbasisEPNS_9ae_matrixEllPlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %360, i64 noundef %354, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %11, ptr noundef %1)
  %479 = load i64, ptr %4, align 8, !tbaa !18
  %480 = icmp sgt i64 %479, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %480, ptr noundef nonnull @.str.489, ptr noundef %1)
  br i1 %358, label %.lr.ph797, label %._crit_edge798

.lr.ph797:                                        ; preds = %._crit_edge791
  %481 = load ptr, ptr %30, align 8, !tbaa !9
  %482 = load ptr, ptr %181, align 8, !tbaa !9
  %483 = add i64 %355, -1
  %484 = add i64 %483, %.sink916
  %xtraiter964 = and i64 %356, 3
  %485 = icmp ult i64 %484, 3
  br i1 %485, label %._crit_edge798.loopexit.unr-lcssa, label %.lr.ph797.new

.lr.ph797.new:                                    ; preds = %.lr.ph797
  %unroll_iter969 = and i64 %356, 9223372036854775804
  br label %486

486:                                              ; preds = %486, %.lr.ph797.new
  %.1531795 = phi double [ 0.000000e+00, %.lr.ph797.new ], [ %510, %486 ]
  %.1534794 = phi double [ 0.000000e+00, %.lr.ph797.new ], [ %513, %486 ]
  %.9559793 = phi i64 [ 0, %.lr.ph797.new ], [ %514, %486 ]
  %niter970 = phi i64 [ 0, %.lr.ph797.new ], [ %niter970.next.3, %486 ]
  %487 = getelementptr inbounds double, ptr %481, i64 %.9559793
  %488 = load double, ptr %487, align 8, !tbaa !10
  %489 = fadd double %.1531795, %488
  %490 = getelementptr inbounds double, ptr %482, i64 %.9559793
  %491 = load double, ptr %490, align 8, !tbaa !10
  %492 = fadd double %.1534794, %491
  %493 = or disjoint i64 %.9559793, 1
  %494 = getelementptr inbounds double, ptr %481, i64 %493
  %495 = load double, ptr %494, align 8, !tbaa !10
  %496 = fadd double %489, %495
  %497 = getelementptr inbounds double, ptr %482, i64 %493
  %498 = load double, ptr %497, align 8, !tbaa !10
  %499 = fadd double %492, %498
  %500 = or disjoint i64 %.9559793, 2
  %501 = getelementptr inbounds double, ptr %481, i64 %500
  %502 = load double, ptr %501, align 8, !tbaa !10
  %503 = fadd double %496, %502
  %504 = getelementptr inbounds double, ptr %482, i64 %500
  %505 = load double, ptr %504, align 8, !tbaa !10
  %506 = fadd double %499, %505
  %507 = or disjoint i64 %.9559793, 3
  %508 = getelementptr inbounds double, ptr %481, i64 %507
  %509 = load double, ptr %508, align 8, !tbaa !10
  %510 = fadd double %503, %509
  %511 = getelementptr inbounds double, ptr %482, i64 %507
  %512 = load double, ptr %511, align 8, !tbaa !10
  %513 = fadd double %506, %512
  %514 = add nuw nsw i64 %.9559793, 4
  %niter970.next.3 = add i64 %niter970, 4
  %niter970.ncmp.3 = icmp eq i64 %niter970.next.3, %unroll_iter969
  br i1 %niter970.ncmp.3, label %._crit_edge798.loopexit.unr-lcssa, label %486, !llvm.loop !59

._crit_edge798.critedge:                          ; preds = %._crit_edge781.split.us
  call void @_ZN11alglib_impl13pcabuildbasisEPNS_9ae_matrixEllPlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %360, i64 noundef %354, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %11, ptr noundef %1)
  %515 = load i64, ptr %4, align 8, !tbaa !18
  %516 = icmp sgt i64 %515, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %516, ptr noundef nonnull @.str.489, ptr noundef %1)
  br label %._crit_edge798

._crit_edge798.loopexit.unr-lcssa:                ; preds = %486, %.lr.ph797
  %.lcssa941.ph = phi double [ poison, %.lr.ph797 ], [ %510, %486 ]
  %.lcssa940.ph = phi double [ poison, %.lr.ph797 ], [ %513, %486 ]
  %.1531795.unr = phi double [ 0.000000e+00, %.lr.ph797 ], [ %510, %486 ]
  %.1534794.unr = phi double [ 0.000000e+00, %.lr.ph797 ], [ %513, %486 ]
  %.9559793.unr = phi i64 [ 0, %.lr.ph797 ], [ %514, %486 ]
  %lcmp.mod966.not = icmp eq i64 %xtraiter964, 0
  br i1 %lcmp.mod966.not, label %._crit_edge798, label %.epil.preheader963

.epil.preheader963:                               ; preds = %._crit_edge798.loopexit.unr-lcssa, %.epil.preheader963
  %.1531795.epil = phi double [ %519, %.epil.preheader963 ], [ %.1531795.unr, %._crit_edge798.loopexit.unr-lcssa ]
  %.1534794.epil = phi double [ %522, %.epil.preheader963 ], [ %.1534794.unr, %._crit_edge798.loopexit.unr-lcssa ]
  %.9559793.epil = phi i64 [ %523, %.epil.preheader963 ], [ %.9559793.unr, %._crit_edge798.loopexit.unr-lcssa ]
  %epil.iter965 = phi i64 [ %epil.iter965.next, %.epil.preheader963 ], [ 0, %._crit_edge798.loopexit.unr-lcssa ]
  %517 = getelementptr inbounds double, ptr %481, i64 %.9559793.epil
  %518 = load double, ptr %517, align 8, !tbaa !10
  %519 = fadd double %.1531795.epil, %518
  %520 = getelementptr inbounds double, ptr %482, i64 %.9559793.epil
  %521 = load double, ptr %520, align 8, !tbaa !10
  %522 = fadd double %.1534794.epil, %521
  %523 = add nuw nsw i64 %.9559793.epil, 1
  %epil.iter965.next = add i64 %epil.iter965, 1
  %epil.iter965.cmp.not = icmp eq i64 %epil.iter965.next, %xtraiter964
  br i1 %epil.iter965.cmp.not, label %._crit_edge798, label %.epil.preheader963, !llvm.loop !60

._crit_edge798:                                   ; preds = %._crit_edge798.loopexit.unr-lcssa, %.epil.preheader963, %._crit_edge798.critedge, %._crit_edge791
  %.1534.lcssa = phi double [ 0.000000e+00, %._crit_edge791 ], [ 0.000000e+00, %._crit_edge798.critedge ], [ %.lcssa940.ph, %._crit_edge798.loopexit.unr-lcssa ], [ %522, %.epil.preheader963 ]
  %.1531.lcssa = phi double [ 0.000000e+00, %._crit_edge791 ], [ 0.000000e+00, %._crit_edge798.critedge ], [ %.lcssa941.ph, %._crit_edge798.loopexit.unr-lcssa ], [ %519, %.epil.preheader963 ]
  %524 = fsub double %.1531.lcssa, %.1534.lcssa
  %525 = fdiv double %524, %.1534.lcssa
  %526 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %525, double noundef -1.000000e-03)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %23, i1 noundef zeroext %526, ptr noundef nonnull @.str.8, i32 noundef 72647, ptr noundef nonnull @.str.496)
  %527 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %525, double noundef 5.000000e-11)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %23, i1 noundef zeroext %527, ptr noundef nonnull @.str.8, i32 noundef 72648, ptr noundef nonnull @.str.497)
  %528 = add nuw nsw i64 %.0529801, 1
  %exitcond886.not = icmp eq i64 %528, 4
  br i1 %exitcond886.not, label %.preheader667, label %.preheader673, !llvm.loop !61

.preheader667:                                    ; preds = %._crit_edge798, %698
  %.7833 = phi i64 [ %699, %698 ], [ 1, %._crit_edge798 ]
  %529 = add nsw i64 %.7833, -1
  br label %530

530:                                              ; preds = %.preheader667, %._crit_edge829
  %.2590832 = phi i64 [ 1, %.preheader667 ], [ %697, %._crit_edge829 ]
  %531 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %22, i64 noundef %.7833, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.7833, ptr noundef %1)
  br label %532

532:                                              ; preds = %530, %532
  %.10571802 = phi i64 [ 0, %530 ], [ %537, %532 ]
  %533 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %22, ptr noundef %1)
  %534 = fmul double %533, 1.000000e+02
  %535 = load ptr, ptr %25, align 8, !tbaa !9
  %536 = getelementptr inbounds double, ptr %535, i64 %.10571802
  store double %534, ptr %536, align 8, !tbaa !10
  %537 = add nuw nsw i64 %.10571802, 1
  %exitcond887.not = icmp eq i64 %537, %.7833
  br i1 %exitcond887.not, label %538, label %532, !llvm.loop !62

538:                                              ; preds = %532
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %.2590832, i64 noundef %.7833, i64 noundef 0, ptr noundef nonnull %13, ptr noundef %1)
  br label %539

539:                                              ; preds = %538, %539
  %.12586803 = phi i64 [ 0, %538 ], [ %552, %539 ]
  %540 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %22, i64 noundef %.7833, ptr noundef %1)
  %541 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %22, ptr noundef %1)
  %542 = load ptr, ptr %25, align 8, !tbaa !9
  %543 = getelementptr inbounds double, ptr %542, i64 %540
  %544 = load double, ptr %543, align 8, !tbaa !10
  %545 = fadd double %541, %544
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %.12586803, i64 noundef %540, double noundef %545, ptr noundef %1)
  %546 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %22, i64 noundef %.7833, ptr noundef %1)
  %547 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %22, ptr noundef %1)
  %548 = load ptr, ptr %25, align 8, !tbaa !9
  %549 = getelementptr inbounds double, ptr %548, i64 %546
  %550 = load double, ptr %549, align 8, !tbaa !10
  %551 = fadd double %547, %550
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %.12586803, i64 noundef %546, double noundef %551, ptr noundef %1)
  %552 = add nuw nsw i64 %.12586803, 1
  %exitcond888.not = icmp eq i64 %552, %.2590832
  br i1 %exitcond888.not, label %553, label %539, !llvm.loop !63

553:                                              ; preds = %539
  %554 = add i64 %531, 1
  %555 = add nsw i64 %.2590832, -1
  %556 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %22, ptr noundef %1)
  %557 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %556, double noundef 0.000000e+00)
  br i1 %557, label %558, label %559

558:                                              ; preds = %553
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  br label %559

559:                                              ; preds = %558, %553
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.2590832, i64 noundef %.7833, ptr noundef %1)
  br label %.preheader664

.preheader664:                                    ; preds = %559, %567
  %.13587805 = phi i64 [ 0, %559 ], [ %568, %567 ]
  br label %560

560:                                              ; preds = %.preheader664, %560
  %.11572804 = phi i64 [ 0, %.preheader664 ], [ %566, %560 ]
  %561 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %.13587805, i64 noundef %.11572804, ptr noundef %1)
  %562 = load ptr, ptr %26, align 8, !tbaa !9
  %563 = getelementptr inbounds ptr, ptr %562, i64 %.13587805
  %564 = load ptr, ptr %563, align 8, !tbaa !14
  %565 = getelementptr inbounds double, ptr %564, i64 %.11572804
  store double %561, ptr %565, align 8, !tbaa !10
  %566 = add nuw nsw i64 %.11572804, 1
  %exitcond889.not = icmp eq i64 %566, %.7833
  br i1 %exitcond889.not, label %567, label %560, !llvm.loop !64

567:                                              ; preds = %560
  %568 = add nuw nsw i64 %.13587805, 1
  %exitcond890.not = icmp eq i64 %568, %.2590832
  br i1 %exitcond890.not, label %569, label %.preheader664, !llvm.loop !65

569:                                              ; preds = %567
  call void @_ZN11alglib_impl26pcatruncatedsubspacesparseEPNS_12sparsematrixEllldlPNS_9ae_vectorEPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %.2590832, i64 noundef %.7833, i64 noundef %554, double noundef 1.000000e-09, i64 noundef 0, ptr noundef nonnull %6, ptr noundef nonnull %10, ptr noundef %1)
  %.not810 = icmp slt i64 %531, 0
  br i1 %.not810, label %._crit_edge812.split.thread, label %.preheader663

._crit_edge812.split.thread:                      ; preds = %569
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.2590832, ptr noundef %1)
  br label %._crit_edge822

.preheader663:                                    ; preds = %569, %._crit_edge809
  %.14811 = phi i64 [ %583, %._crit_edge809 ], [ 0, %569 ]
  br label %570

570:                                              ; preds = %.preheader663, %570
  %.12573807 = phi i64 [ 0, %.preheader663 ], [ %582, %570 ]
  %571 = load ptr, ptr %27, align 8, !tbaa !9
  %572 = load ptr, ptr %571, align 8, !tbaa !14
  %573 = getelementptr inbounds double, ptr %572, i64 %.14811
  %574 = load i64, ptr %28, align 8, !tbaa !20
  %575 = getelementptr inbounds double, ptr %572, i64 %.12573807
  %576 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %529)
  %577 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %573, i64 noundef %574, ptr noundef %575, i64 noundef %574, i64 noundef %576)
  %578 = icmp eq i64 %.14811, %.12573807
  %579 = fadd double %577, -1.000000e+00
  %.9 = select i1 %578, double %579, double %577
  %580 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.9, ptr noundef %1)
  %581 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %580, double noundef 5.000000e-11)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %24, i1 noundef zeroext %581, ptr noundef nonnull @.str.8, i32 noundef 72716, ptr noundef nonnull @.str.498)
  %582 = add nuw i64 %.12573807, 1
  %exitcond891.not = icmp eq i64 %.12573807, %531
  br i1 %exitcond891.not, label %._crit_edge809, label %570, !llvm.loop !66

._crit_edge809:                                   ; preds = %570
  %583 = add nuw i64 %.14811, 1
  %exitcond892.not = icmp eq i64 %.14811, %531
  br i1 %exitcond892.not, label %._crit_edge812.split, label %.preheader663, !llvm.loop !67

._crit_edge812.split:                             ; preds = %._crit_edge809
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.2590832, ptr noundef %1)
  br i1 %.not810, label %._crit_edge829.critedge, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %._crit_edge812.split
  %.not613 = icmp eq i64 %.2590832, 1
  %584 = uitofp nneg i64 %.2590832 to double
  %585 = sitofp i64 %555 to double
  br label %.preheader

.preheader666:                                    ; preds = %605
  %.not609.not816.not = icmp eq i64 %531, 0
  br i1 %.not609.not816.not, label %.preheader665, label %.lr.ph818

.preheader:                                       ; preds = %.preheader.lr.ph, %605
  %.10560815 = phi i64 [ 0, %.preheader.lr.ph ], [ %617, %605 ]
  br label %586

586:                                              ; preds = %.preheader, %586
  %.15813 = phi i64 [ 0, %.preheader ], [ %598, %586 ]
  %587 = load ptr, ptr %26, align 8, !tbaa !9
  %588 = getelementptr inbounds ptr, ptr %587, i64 %.15813
  %589 = load ptr, ptr %588, align 8, !tbaa !14
  %590 = load ptr, ptr %27, align 8, !tbaa !9
  %591 = load ptr, ptr %590, align 8, !tbaa !14
  %592 = getelementptr inbounds double, ptr %591, i64 %.10560815
  %593 = load i64, ptr %28, align 8, !tbaa !20
  %594 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %529)
  %595 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %589, i64 noundef 1, ptr noundef %592, i64 noundef %593, i64 noundef %594)
  %596 = load ptr, ptr %29, align 8, !tbaa !9
  %597 = getelementptr inbounds double, ptr %596, i64 %.15813
  store double %595, ptr %597, align 8, !tbaa !10
  %598 = add nuw nsw i64 %.15813, 1
  %exitcond893.not = icmp eq i64 %598, %.2590832
  br i1 %exitcond893.not, label %599, label %586, !llvm.loop !68

599:                                              ; preds = %586
  call void @_ZL23testpcaunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.2590832, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef %1)
  br i1 %.not613, label %605, label %600

600:                                              ; preds = %599
  %601 = load double, ptr %16, align 8, !tbaa !10
  %602 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %601, ptr noundef %1)
  %603 = fmul double %602, %584
  %604 = fdiv double %603, %585
  br label %605

605:                                              ; preds = %599, %600
  %.10 = phi double [ %604, %600 ], [ 0.000000e+00, %599 ]
  %606 = load ptr, ptr %30, align 8, !tbaa !9
  %607 = getelementptr inbounds double, ptr %606, i64 %.10560815
  %608 = load double, ptr %607, align 8, !tbaa !10
  %609 = fsub double %.10, %608
  %610 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %609, ptr noundef %1)
  %611 = load ptr, ptr %30, align 8, !tbaa !9
  %612 = getelementptr inbounds double, ptr %611, i64 %.10560815
  %613 = load double, ptr %612, align 8, !tbaa !10
  %614 = call noundef double @_ZN11alglib_impl8rmaxabs3EdddPNS_8ae_stateE(double noundef %.10, double noundef %613, double noundef 1.000000e+00, ptr noundef %1)
  %615 = fmul double %614, 5.000000e-11
  %616 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %610, double noundef %615)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %24, i1 noundef zeroext %616, ptr noundef nonnull @.str.8, i32 noundef 72740, ptr noundef nonnull @.str.499)
  %617 = add nuw i64 %.10560815, 1
  %exitcond894.not = icmp eq i64 %.10560815, %531
  br i1 %exitcond894.not, label %.preheader666, label %.preheader, !llvm.loop !69

.preheader665:                                    ; preds = %.lr.ph818, %.preheader666
  br i1 %.not810, label %._crit_edge829.critedge, label %.lr.ph821

.lr.ph818:                                        ; preds = %.preheader666, %.lr.ph818
  %.11817 = phi i64 [ %623, %.lr.ph818 ], [ 0, %.preheader666 ]
  %618 = load ptr, ptr %30, align 8, !tbaa !9
  %619 = getelementptr inbounds double, ptr %618, i64 %.11817
  %620 = load double, ptr %619, align 8, !tbaa !10
  %621 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %620, ptr noundef %1)
  %622 = load ptr, ptr %30, align 8, !tbaa !9
  %623 = add nuw nsw i64 %.11817, 1
  %624 = getelementptr inbounds double, ptr %622, i64 %623
  %625 = load double, ptr %624, align 8, !tbaa !10
  %626 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %625, ptr noundef %1)
  %627 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %621, double noundef %626)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %24, i1 noundef zeroext %627, ptr noundef nonnull @.str.8, i32 noundef 72744, ptr noundef nonnull @.str.500)
  %exitcond895.not = icmp eq i64 %623, %531
  br i1 %exitcond895.not, label %.preheader665, label %.lr.ph818, !llvm.loop !70

.lr.ph821:                                        ; preds = %.preheader665, %643
  %.12820 = phi i64 [ %645, %643 ], [ 0, %.preheader665 ]
  %628 = load ptr, ptr %30, align 8, !tbaa !9
  %629 = getelementptr inbounds double, ptr %628, i64 %.12820
  %630 = load double, ptr %629, align 8, !tbaa !10
  %631 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %630, double noundef 0.000000e+00)
  br i1 %631, label %632, label %643

632:                                              ; preds = %.lr.ph821
  %633 = load ptr, ptr %30, align 8, !tbaa !9
  %634 = getelementptr inbounds double, ptr %633, i64 %.12820
  %635 = load double, ptr %634, align 8, !tbaa !10
  %636 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %635, ptr noundef %1)
  %637 = load ptr, ptr %30, align 8, !tbaa !9
  %638 = load double, ptr %637, align 8, !tbaa !10
  %639 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %638, ptr noundef %1)
  %640 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %639, double noundef 1.000000e+00, ptr noundef %1)
  %641 = fmul double %640, 5.000000e-13
  %642 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %636, double noundef %641)
  br label %643

643:                                              ; preds = %632, %.lr.ph821
  %644 = phi i1 [ false, %.lr.ph821 ], [ %642, %632 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %24, i1 noundef zeroext %644, ptr noundef nonnull @.str.8, i32 noundef 72748, ptr noundef nonnull @.str.501)
  %645 = add nuw i64 %.12820, 1
  %exitcond896.not = icmp eq i64 %.12820, %531
  br i1 %exitcond896.not, label %._crit_edge822, label %.lr.ph821, !llvm.loop !71

._crit_edge822:                                   ; preds = %643, %._crit_edge812.split.thread
  call void @_ZN11alglib_impl13pcabuildbasisEPNS_9ae_matrixEllPlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.2590832, i64 noundef %.7833, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %11, ptr noundef %1)
  %646 = load i64, ptr %4, align 8, !tbaa !18
  %647 = icmp sgt i64 %646, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %647, ptr noundef nonnull @.str.489, ptr noundef %1)
  br i1 %.not810, label %._crit_edge829, label %.lr.ph828

.lr.ph828:                                        ; preds = %._crit_edge822
  %648 = load ptr, ptr %30, align 8, !tbaa !9
  %649 = load ptr, ptr %181, align 8, !tbaa !9
  %650 = add nuw i64 %531, 1
  %xtraiter972 = and i64 %650, 3
  %651 = icmp ult i64 %531, 3
  br i1 %651, label %._crit_edge829.loopexit.unr-lcssa, label %.lr.ph828.new

.lr.ph828.new:                                    ; preds = %.lr.ph828
  %unroll_iter977 = and i64 %650, -4
  br label %652

652:                                              ; preds = %652, %.lr.ph828.new
  %.2532826 = phi double [ 0.000000e+00, %.lr.ph828.new ], [ %676, %652 ]
  %.2535825 = phi double [ 0.000000e+00, %.lr.ph828.new ], [ %679, %652 ]
  %.13824 = phi i64 [ 0, %.lr.ph828.new ], [ %680, %652 ]
  %niter978 = phi i64 [ 0, %.lr.ph828.new ], [ %niter978.next.3, %652 ]
  %653 = getelementptr inbounds double, ptr %648, i64 %.13824
  %654 = load double, ptr %653, align 8, !tbaa !10
  %655 = fadd double %.2532826, %654
  %656 = getelementptr inbounds double, ptr %649, i64 %.13824
  %657 = load double, ptr %656, align 8, !tbaa !10
  %658 = fadd double %.2535825, %657
  %659 = or disjoint i64 %.13824, 1
  %660 = getelementptr inbounds double, ptr %648, i64 %659
  %661 = load double, ptr %660, align 8, !tbaa !10
  %662 = fadd double %655, %661
  %663 = getelementptr inbounds double, ptr %649, i64 %659
  %664 = load double, ptr %663, align 8, !tbaa !10
  %665 = fadd double %658, %664
  %666 = or disjoint i64 %.13824, 2
  %667 = getelementptr inbounds double, ptr %648, i64 %666
  %668 = load double, ptr %667, align 8, !tbaa !10
  %669 = fadd double %662, %668
  %670 = getelementptr inbounds double, ptr %649, i64 %666
  %671 = load double, ptr %670, align 8, !tbaa !10
  %672 = fadd double %665, %671
  %673 = or disjoint i64 %.13824, 3
  %674 = getelementptr inbounds double, ptr %648, i64 %673
  %675 = load double, ptr %674, align 8, !tbaa !10
  %676 = fadd double %669, %675
  %677 = getelementptr inbounds double, ptr %649, i64 %673
  %678 = load double, ptr %677, align 8, !tbaa !10
  %679 = fadd double %672, %678
  %680 = add nuw i64 %.13824, 4
  %niter978.next.3 = add i64 %niter978, 4
  %niter978.ncmp.3 = icmp eq i64 %niter978.next.3, %unroll_iter977
  br i1 %niter978.ncmp.3, label %._crit_edge829.loopexit.unr-lcssa, label %652, !llvm.loop !72

._crit_edge829.critedge:                          ; preds = %.preheader665, %._crit_edge812.split
  call void @_ZN11alglib_impl13pcabuildbasisEPNS_9ae_matrixEllPlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.2590832, i64 noundef %.7833, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %11, ptr noundef %1)
  %681 = load i64, ptr %4, align 8, !tbaa !18
  %682 = icmp sgt i64 %681, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %682, ptr noundef nonnull @.str.489, ptr noundef %1)
  br label %._crit_edge829

._crit_edge829.loopexit.unr-lcssa:                ; preds = %652, %.lr.ph828
  %.lcssa939.ph = phi double [ poison, %.lr.ph828 ], [ %676, %652 ]
  %.lcssa.ph = phi double [ poison, %.lr.ph828 ], [ %679, %652 ]
  %.2532826.unr = phi double [ 0.000000e+00, %.lr.ph828 ], [ %676, %652 ]
  %.2535825.unr = phi double [ 0.000000e+00, %.lr.ph828 ], [ %679, %652 ]
  %.13824.unr = phi i64 [ 0, %.lr.ph828 ], [ %680, %652 ]
  %lcmp.mod974.not = icmp eq i64 %xtraiter972, 0
  br i1 %lcmp.mod974.not, label %._crit_edge829, label %.epil.preheader971

.epil.preheader971:                               ; preds = %._crit_edge829.loopexit.unr-lcssa, %.epil.preheader971
  %.2532826.epil = phi double [ %685, %.epil.preheader971 ], [ %.2532826.unr, %._crit_edge829.loopexit.unr-lcssa ]
  %.2535825.epil = phi double [ %688, %.epil.preheader971 ], [ %.2535825.unr, %._crit_edge829.loopexit.unr-lcssa ]
  %.13824.epil = phi i64 [ %689, %.epil.preheader971 ], [ %.13824.unr, %._crit_edge829.loopexit.unr-lcssa ]
  %epil.iter973 = phi i64 [ %epil.iter973.next, %.epil.preheader971 ], [ 0, %._crit_edge829.loopexit.unr-lcssa ]
  %683 = getelementptr inbounds double, ptr %648, i64 %.13824.epil
  %684 = load double, ptr %683, align 8, !tbaa !10
  %685 = fadd double %.2532826.epil, %684
  %686 = getelementptr inbounds double, ptr %649, i64 %.13824.epil
  %687 = load double, ptr %686, align 8, !tbaa !10
  %688 = fadd double %.2535825.epil, %687
  %689 = add nuw i64 %.13824.epil, 1
  %epil.iter973.next = add i64 %epil.iter973, 1
  %epil.iter973.cmp.not = icmp eq i64 %epil.iter973.next, %xtraiter972
  br i1 %epil.iter973.cmp.not, label %._crit_edge829, label %.epil.preheader971, !llvm.loop !73

._crit_edge829:                                   ; preds = %._crit_edge829.loopexit.unr-lcssa, %.epil.preheader971, %._crit_edge829.critedge, %._crit_edge822
  %.2535.lcssa = phi double [ 0.000000e+00, %._crit_edge822 ], [ 0.000000e+00, %._crit_edge829.critedge ], [ %.lcssa.ph, %._crit_edge829.loopexit.unr-lcssa ], [ %688, %.epil.preheader971 ]
  %.2532.lcssa = phi double [ 0.000000e+00, %._crit_edge822 ], [ 0.000000e+00, %._crit_edge829.critedge ], [ %.lcssa939.ph, %._crit_edge829.loopexit.unr-lcssa ], [ %685, %.epil.preheader971 ]
  %690 = fsub double %.2532.lcssa, %.2535.lcssa
  %691 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.2535.lcssa, double noundef 1.000000e+00, ptr noundef %1)
  %692 = fdiv double %690, %691
  %693 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %692, double noundef -1.000000e-03)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %24, i1 noundef zeroext %693, ptr noundef nonnull @.str.8, i32 noundef 72764, ptr noundef nonnull @.str.502)
  %694 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.2535.lcssa, double noundef 1.000000e+00, ptr noundef %1)
  %695 = fdiv double %690, %694
  %696 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %695, double noundef 5.000000e-11)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %24, i1 noundef zeroext %696, ptr noundef nonnull @.str.8, i32 noundef 72765, ptr noundef nonnull @.str.503)
  %697 = add nuw nsw i64 %.2590832, 1
  %exitcond898.not = icmp eq i64 %697, 101
  br i1 %exitcond898.not, label %698, label %530, !llvm.loop !74

698:                                              ; preds = %._crit_edge829
  %699 = add nuw nsw i64 %.7833, 1
  %exitcond899.not = icmp eq i64 %699, 11
  br i1 %exitcond899.not, label %700, label %.preheader667, !llvm.loop !75

700:                                              ; preds = %698
  br i1 %.4528, label %713, label %701

701:                                              ; preds = %700
  %702 = trunc nuw i8 %.8 to i1
  br i1 %702, label %713, label %703

703:                                              ; preds = %701
  %704 = trunc nuw i8 %.4515 to i1
  br i1 %704, label %713, label %705

705:                                              ; preds = %703
  %706 = trunc nuw i8 %.3510 to i1
  br i1 %706, label %713, label %707

707:                                              ; preds = %705
  %708 = load i8, ptr %23, align 1, !tbaa !5, !range !76, !noundef !77
  %709 = trunc nuw i8 %708 to i1
  br i1 %709, label %713, label %710

710:                                              ; preds = %707
  %711 = load i8, ptr %24, align 1, !tbaa !5, !range !76, !noundef !77
  %712 = trunc nuw i8 %711 to i1
  br label %713

713:                                              ; preds = %710, %707, %705, %703, %701, %700
  %714 = phi i1 [ true, %707 ], [ true, %705 ], [ true, %703 ], [ true, %701 ], [ true, %700 ], [ %712, %710 ]
  br i1 %0, label %740, label %715

715:                                              ; preds = %713
  %716 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.504)
  %717 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.505)
  %718 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.506)
  %.str.7..str.6 = select i1 %.4528, ptr @.str.7, ptr @.str.6
  %719 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %720 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.507)
  %721 = trunc nuw i8 %.8 to i1
  %.str.7.sink921 = select i1 %721, ptr @.str.7, ptr @.str.6
  %722 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink921)
  %723 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.508)
  %724 = trunc nuw i8 %.4515 to i1
  %.str.7.sink922 = select i1 %724, ptr @.str.7, ptr @.str.6
  %725 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink922)
  %726 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.509)
  %727 = trunc nuw i8 %.3510 to i1
  %.str.7.sink923 = select i1 %727, ptr @.str.7, ptr @.str.6
  %728 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink923)
  %729 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.510)
  %730 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.511)
  %731 = load i8, ptr %23, align 1, !tbaa !5, !range !76, !noundef !77
  %732 = trunc nuw i8 %731 to i1
  %.str.7.sink924 = select i1 %732, ptr @.str.7, ptr @.str.6
  %733 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink924)
  %734 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.512)
  %735 = load i8, ptr %24, align 1, !tbaa !5, !range !76, !noundef !77
  %736 = trunc nuw i8 %735 to i1
  %.str.7.sink925 = select i1 %736, ptr @.str.7, ptr @.str.6
  %737 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink925)
  %.str.21.sink = select i1 %714, ptr @.str.20, ptr @.str.21
  %738 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.21.sink)
  %739 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %740

740:                                              ; preds = %715, %713
  %741 = xor i1 %714, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  ret i1 %741
}

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

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

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

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

declare noundef double @_ZN11alglib_impl8rmaxabs3EdddPNS_8ae_stateE(double noundef, double noundef, double noundef, 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 = !{!"double", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!21, !19, i64 16}
!21 = !{!"_ZTSN11alglib_impl9ae_matrixE", !19, i64 0, !19, i64 8, !19, i64 16, !19, i64 24, !6, i64 32, !22, i64 40, !7, i64 72}
!22 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!23 = distinct !{!23, !13}
!24 = distinct !{!24, !13}
!25 = distinct !{!25, !13}
!26 = distinct !{!26, !13}
!27 = distinct !{!27, !13}
!28 = distinct !{!28, !13}
!29 = distinct !{!29, !13}
!30 = distinct !{!30, !13}
!31 = distinct !{!31, !13}
!32 = distinct !{!32, !13}
!33 = distinct !{!33, !13}
!34 = distinct !{!34, !13}
!35 = distinct !{!35, !13}
!36 = distinct !{!36, !13}
!37 = distinct !{!37, !13}
!38 = distinct !{!38, !13}
!39 = distinct !{!39, !13}
!40 = distinct !{!40, !13}
!41 = distinct !{!41, !13}
!42 = distinct !{!42, !13}
!43 = distinct !{!43, !13}
!44 = distinct !{!44, !13}
!45 = distinct !{!45, !13}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.unroll.disable"}
!48 = distinct !{!48, !13}
!49 = distinct !{!49, !13}
!50 = distinct !{!50, !13}
!51 = distinct !{!51, !47}
!52 = distinct !{!52, !13}
!53 = distinct !{!53, !13}
!54 = distinct !{!54, !13}
!55 = distinct !{!55, !13}
!56 = distinct !{!56, !13}
!57 = distinct !{!57, !13}
!58 = distinct !{!58, !13}
!59 = distinct !{!59, !13}
!60 = distinct !{!60, !47}
!61 = distinct !{!61, !13}
!62 = distinct !{!62, !13}
!63 = distinct !{!63, !13}
!64 = distinct !{!64, !13}
!65 = distinct !{!65, !13}
!66 = distinct !{!66, !13}
!67 = distinct !{!67, !13}
!68 = distinct !{!68, !13}
!69 = distinct !{!69, !13}
!70 = distinct !{!70, !13}
!71 = distinct !{!71, !13}
!72 = distinct !{!72, !13}
!73 = distinct !{!73, !47}
!74 = distinct !{!74, !13}
!75 = distinct !{!75, !13}
!76 = !{i8 0, i8 2}
!77 = !{}


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