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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::ae_complex" = type { double, double }

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.275 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.276 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.277 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.278 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.279 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.280 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.281 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.282 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.283 = 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 noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(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 void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

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

declare noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef) #1

declare noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z10testortfacbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #5 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca double, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %24 = alloca i8, align 1
  %25 = alloca %"struct.alglib_impl::ae_complex", align 8
  %26 = alloca %"struct.alglib_impl::ae_complex", align 8
  %27 = alloca %"struct.alglib_impl::ae_complex", align 8
  %28 = alloca %"struct.alglib_impl::ae_complex", align 8
  %29 = alloca %"struct.alglib_impl::ae_complex", align 8
  %30 = alloca %"struct.alglib_impl::ae_complex", align 8
  %31 = alloca %"struct.alglib_impl::ae_complex", align 8
  %32 = alloca %"struct.alglib_impl::ae_complex", align 8
  %33 = alloca %"struct.alglib_impl::ae_complex", align 8
  %34 = alloca %"struct.alglib_impl::ae_complex", align 8
  %35 = alloca %"struct.alglib_impl::ae_complex", align 8
  %36 = alloca %"struct.alglib_impl::ae_complex", align 8
  %37 = zext i1 %0 to i8
  store i8 %37, ptr %3, align 1, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  %38 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %38, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 24, i1 false)
  %39 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %8, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %9, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %23, ptr noundef %41, i1 noundef zeroext true)
  %42 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %23, ptr noundef %42)
  store i8 0, ptr %22, align 1, !tbaa !5
  store i8 0, ptr %14, align 1, !tbaa !5
  store i8 0, ptr %15, align 1, !tbaa !5
  store i8 0, ptr %16, align 1, !tbaa !5
  store i8 0, ptr %17, align 1, !tbaa !5
  store i8 0, ptr %18, align 1, !tbaa !5
  store i8 0, ptr %19, align 1, !tbaa !5
  store i8 0, ptr %20, align 1, !tbaa !5
  store i8 0, ptr %21, align 1, !tbaa !5
  store double 0x3D85FD7FE1796496, ptr %6, align 8, !tbaa !11
  store i64 1, ptr %7, align 8, !tbaa !13
  br label %43

43:                                               ; preds = %613, %2
  %44 = load i64, ptr %7, align 8, !tbaa !13
  %45 = load ptr, ptr %4, align 8, !tbaa !9
  %46 = call noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef %45)
  %47 = mul nsw i64 3, %46
  %48 = add nsw i64 %47, 1
  %49 = icmp sle i64 %44, %48
  br i1 %49, label %50, label %616

50:                                               ; preds = %43
  %51 = load i64, ptr %7, align 8, !tbaa !13
  %52 = load ptr, ptr %4, align 8, !tbaa !9
  %53 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %51, ptr noundef %52)
  %54 = add nsw i64 1, %53
  store i64 %54, ptr %11, align 8, !tbaa !13
  %55 = load i64, ptr %7, align 8, !tbaa !13
  %56 = load ptr, ptr %4, align 8, !tbaa !9
  %57 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %55, ptr noundef %56)
  %58 = add nsw i64 1, %57
  store i64 %58, ptr %10, align 8, !tbaa !13
  %59 = load ptr, ptr %4, align 8, !tbaa !9
  %60 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %59)
  %61 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %60, double noundef 5.000000e-01)
  br i1 %61, label %62, label %64

62:                                               ; preds = %50
  %63 = load i64, ptr %7, align 8, !tbaa !13
  store i64 %63, ptr %11, align 8, !tbaa !13
  br label %66

64:                                               ; preds = %50
  %65 = load i64, ptr %7, align 8, !tbaa !13
  store i64 %65, ptr %10, align 8, !tbaa !13
  br label %66

66:                                               ; preds = %64, %62
  %67 = load i64, ptr %10, align 8, !tbaa !13
  %68 = load i64, ptr %11, align 8, !tbaa !13
  %69 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %67, i64 noundef %68, ptr noundef %69)
  %70 = load i64, ptr %10, align 8, !tbaa !13
  %71 = load i64, ptr %11, align 8, !tbaa !13
  %72 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %70, i64 noundef %71, ptr noundef %72)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %73

73:                                               ; preds = %108, %66
  %74 = load i64, ptr %12, align 8, !tbaa !13
  %75 = load i64, ptr %10, align 8, !tbaa !13
  %76 = sub nsw i64 %75, 1
  %77 = icmp sle i64 %74, %76
  br i1 %77, label %78, label %111

78:                                               ; preds = %73
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %79

79:                                               ; preds = %104, %78
  %80 = load i64, ptr %13, align 8, !tbaa !13
  %81 = load i64, ptr %11, align 8, !tbaa !13
  %82 = sub nsw i64 %81, 1
  %83 = icmp sle i64 %80, %82
  br i1 %83, label %84, label %107

84:                                               ; preds = %79
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %86 = load ptr, ptr %85, align 8, !tbaa !15
  %87 = load i64, ptr %12, align 8, !tbaa !13
  %88 = getelementptr inbounds ptr, ptr %86, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !9
  %90 = load i64, ptr %13, align 8, !tbaa !13
  %91 = getelementptr inbounds double, ptr %89, i64 %90
  store double 0.000000e+00, ptr %91, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  %92 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %93 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %94 = extractvalue { double, double } %92, 0
  store double %94, ptr %93, align 8
  %95 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %96 = extractvalue { double, double } %92, 1
  store double %96, ptr %95, align 8
  %97 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %98 = load ptr, ptr %97, align 8, !tbaa !15
  %99 = load i64, ptr %12, align 8, !tbaa !13
  %100 = getelementptr inbounds ptr, ptr %98, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !9
  %102 = load i64, ptr %13, align 8, !tbaa !13
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %101, i64 %102
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %103, ptr align 8 %25, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  br label %104

104:                                              ; preds = %84
  %105 = load i64, ptr %13, align 8, !tbaa !13
  %106 = add nsw i64 %105, 1
  store i64 %106, ptr %13, align 8, !tbaa !13
  br label %79, !llvm.loop !17

107:                                              ; preds = %79
  br label %108

108:                                              ; preds = %107
  %109 = load i64, ptr %12, align 8, !tbaa !13
  %110 = add nsw i64 %109, 1
  store i64 %110, ptr %12, align 8, !tbaa !13
  br label %73, !llvm.loop !19

111:                                              ; preds = %73
  %112 = load i64, ptr %10, align 8, !tbaa !13
  %113 = load i64, ptr %11, align 8, !tbaa !13
  %114 = load double, ptr %6, align 8, !tbaa !11
  %115 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %112, i64 noundef %113, double noundef %114, ptr noundef %14, ptr noundef %115)
  %116 = load i64, ptr %10, align 8, !tbaa !13
  %117 = load i64, ptr %11, align 8, !tbaa !13
  %118 = load double, ptr %6, align 8, !tbaa !11
  %119 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrlqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %116, i64 noundef %117, double noundef %118, ptr noundef %15, ptr noundef %119)
  %120 = load i64, ptr %10, align 8, !tbaa !13
  %121 = load i64, ptr %11, align 8, !tbaa !13
  %122 = load double, ptr %6, align 8, !tbaa !11
  %123 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testcqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %9, i64 noundef %120, i64 noundef %121, double noundef %122, ptr noundef %16, ptr noundef %123)
  %124 = load i64, ptr %10, align 8, !tbaa !13
  %125 = load i64, ptr %11, align 8, !tbaa !13
  %126 = load double, ptr %6, align 8, !tbaa !11
  %127 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testclqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %9, i64 noundef %124, i64 noundef %125, double noundef %126, ptr noundef %17, ptr noundef %127)
  %128 = load i64, ptr %10, align 8, !tbaa !13
  %129 = load i64, ptr %11, align 8, !tbaa !13
  %130 = load double, ptr %6, align 8, !tbaa !11
  %131 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrbdproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %128, i64 noundef %129, double noundef %130, ptr noundef %18, ptr noundef %131)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %132

132:                                              ; preds = %180, %111
  %133 = load i64, ptr %12, align 8, !tbaa !13
  %134 = load i64, ptr %10, align 8, !tbaa !13
  %135 = sub nsw i64 %134, 1
  %136 = icmp sle i64 %133, %135
  br i1 %136, label %137, label %183

137:                                              ; preds = %132
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %138

138:                                              ; preds = %176, %137
  %139 = load i64, ptr %13, align 8, !tbaa !13
  %140 = load i64, ptr %11, align 8, !tbaa !13
  %141 = sub nsw i64 %140, 1
  %142 = icmp sle i64 %139, %141
  br i1 %142, label %143, label %179

143:                                              ; preds = %138
  %144 = load ptr, ptr %4, align 8, !tbaa !9
  %145 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %144)
  %146 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %145, double -1.000000e+00)
  %147 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %148 = load ptr, ptr %147, align 8, !tbaa !15
  %149 = load i64, ptr %12, align 8, !tbaa !13
  %150 = getelementptr inbounds ptr, ptr %148, i64 %149
  %151 = load ptr, ptr %150, align 8, !tbaa !9
  %152 = load i64, ptr %13, align 8, !tbaa !13
  %153 = getelementptr inbounds double, ptr %151, i64 %152
  store double %146, ptr %153, align 8, !tbaa !11
  %154 = load ptr, ptr %4, align 8, !tbaa !9
  %155 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %154)
  %156 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %155, double -1.000000e+00)
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %158 = load ptr, ptr %157, align 8, !tbaa !15
  %159 = load i64, ptr %12, align 8, !tbaa !13
  %160 = getelementptr inbounds ptr, ptr %158, i64 %159
  %161 = load ptr, ptr %160, align 8, !tbaa !9
  %162 = load i64, ptr %13, align 8, !tbaa !13
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %161, i64 %162
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %163, i32 0, i32 0
  store double %156, ptr %164, align 8, !tbaa !20
  %165 = load ptr, ptr %4, align 8, !tbaa !9
  %166 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %165)
  %167 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %166, double -1.000000e+00)
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %169 = load ptr, ptr %168, align 8, !tbaa !15
  %170 = load i64, ptr %12, align 8, !tbaa !13
  %171 = getelementptr inbounds ptr, ptr %169, i64 %170
  %172 = load ptr, ptr %171, align 8, !tbaa !9
  %173 = load i64, ptr %13, align 8, !tbaa !13
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %172, i64 %173
  %175 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %174, i32 0, i32 1
  store double %167, ptr %175, align 8, !tbaa !22
  br label %176

176:                                              ; preds = %143
  %177 = load i64, ptr %13, align 8, !tbaa !13
  %178 = add nsw i64 %177, 1
  store i64 %178, ptr %13, align 8, !tbaa !13
  br label %138, !llvm.loop !23

179:                                              ; preds = %138
  br label %180

180:                                              ; preds = %179
  %181 = load i64, ptr %12, align 8, !tbaa !13
  %182 = add nsw i64 %181, 1
  store i64 %182, ptr %12, align 8, !tbaa !13
  br label %132, !llvm.loop !24

183:                                              ; preds = %132
  %184 = load i64, ptr %10, align 8, !tbaa !13
  %185 = load i64, ptr %11, align 8, !tbaa !13
  %186 = load double, ptr %6, align 8, !tbaa !11
  %187 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %184, i64 noundef %185, double noundef %186, ptr noundef %14, ptr noundef %187)
  %188 = load i64, ptr %10, align 8, !tbaa !13
  %189 = load i64, ptr %11, align 8, !tbaa !13
  %190 = load double, ptr %6, align 8, !tbaa !11
  %191 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrlqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %188, i64 noundef %189, double noundef %190, ptr noundef %15, ptr noundef %191)
  %192 = load i64, ptr %10, align 8, !tbaa !13
  %193 = load i64, ptr %11, align 8, !tbaa !13
  %194 = load double, ptr %6, align 8, !tbaa !11
  %195 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testcqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %9, i64 noundef %192, i64 noundef %193, double noundef %194, ptr noundef %16, ptr noundef %195)
  %196 = load i64, ptr %10, align 8, !tbaa !13
  %197 = load i64, ptr %11, align 8, !tbaa !13
  %198 = load double, ptr %6, align 8, !tbaa !11
  %199 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testclqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %9, i64 noundef %196, i64 noundef %197, double noundef %198, ptr noundef %17, ptr noundef %199)
  %200 = load i64, ptr %10, align 8, !tbaa !13
  %201 = load i64, ptr %11, align 8, !tbaa !13
  %202 = load double, ptr %6, align 8, !tbaa !11
  %203 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrbdproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %200, i64 noundef %201, double noundef %202, ptr noundef %18, ptr noundef %203)
  %204 = load i64, ptr %10, align 8, !tbaa !13
  %205 = load i64, ptr %11, align 8, !tbaa !13
  %206 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL33testortfacunit_rmatrixfillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef %8, i64 noundef %204, i64 noundef %205, double noundef 0x3FEE666666666666, ptr noundef %206)
  %207 = load i64, ptr %10, align 8, !tbaa !13
  %208 = load i64, ptr %11, align 8, !tbaa !13
  %209 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL33testortfacunit_cmatrixfillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef %9, i64 noundef %207, i64 noundef %208, double noundef 0x3FEE666666666666, ptr noundef %209)
  %210 = load i64, ptr %10, align 8, !tbaa !13
  %211 = load i64, ptr %11, align 8, !tbaa !13
  %212 = load double, ptr %6, align 8, !tbaa !11
  %213 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %210, i64 noundef %211, double noundef %212, ptr noundef %14, ptr noundef %213)
  %214 = load i64, ptr %10, align 8, !tbaa !13
  %215 = load i64, ptr %11, align 8, !tbaa !13
  %216 = load double, ptr %6, align 8, !tbaa !11
  %217 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrlqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %214, i64 noundef %215, double noundef %216, ptr noundef %15, ptr noundef %217)
  %218 = load i64, ptr %10, align 8, !tbaa !13
  %219 = load i64, ptr %11, align 8, !tbaa !13
  %220 = load double, ptr %6, align 8, !tbaa !11
  %221 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testcqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %9, i64 noundef %218, i64 noundef %219, double noundef %220, ptr noundef %16, ptr noundef %221)
  %222 = load i64, ptr %10, align 8, !tbaa !13
  %223 = load i64, ptr %11, align 8, !tbaa !13
  %224 = load double, ptr %6, align 8, !tbaa !11
  %225 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testclqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %9, i64 noundef %222, i64 noundef %223, double noundef %224, ptr noundef %17, ptr noundef %225)
  %226 = load i64, ptr %10, align 8, !tbaa !13
  %227 = load i64, ptr %11, align 8, !tbaa !13
  %228 = load double, ptr %6, align 8, !tbaa !11
  %229 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrbdproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %226, i64 noundef %227, double noundef %228, ptr noundef %18, ptr noundef %229)
  %230 = load i64, ptr %7, align 8, !tbaa !13
  %231 = load i64, ptr %7, align 8, !tbaa !13
  %232 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %230, i64 noundef %231, ptr noundef %232)
  %233 = load i64, ptr %7, align 8, !tbaa !13
  %234 = load i64, ptr %7, align 8, !tbaa !13
  %235 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %233, i64 noundef %234, ptr noundef %235)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %236

236:                                              ; preds = %271, %183
  %237 = load i64, ptr %12, align 8, !tbaa !13
  %238 = load i64, ptr %7, align 8, !tbaa !13
  %239 = sub nsw i64 %238, 1
  %240 = icmp sle i64 %237, %239
  br i1 %240, label %241, label %274

241:                                              ; preds = %236
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %242

242:                                              ; preds = %267, %241
  %243 = load i64, ptr %13, align 8, !tbaa !13
  %244 = load i64, ptr %7, align 8, !tbaa !13
  %245 = sub nsw i64 %244, 1
  %246 = icmp sle i64 %243, %245
  br i1 %246, label %247, label %270

247:                                              ; preds = %242
  %248 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %249 = load ptr, ptr %248, align 8, !tbaa !15
  %250 = load i64, ptr %12, align 8, !tbaa !13
  %251 = getelementptr inbounds ptr, ptr %249, i64 %250
  %252 = load ptr, ptr %251, align 8, !tbaa !9
  %253 = load i64, ptr %13, align 8, !tbaa !13
  %254 = getelementptr inbounds double, ptr %252, i64 %253
  store double 0.000000e+00, ptr %254, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  %255 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %256 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %257 = extractvalue { double, double } %255, 0
  store double %257, ptr %256, align 8
  %258 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %259 = extractvalue { double, double } %255, 1
  store double %259, ptr %258, align 8
  %260 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %261 = load ptr, ptr %260, align 8, !tbaa !15
  %262 = load i64, ptr %12, align 8, !tbaa !13
  %263 = getelementptr inbounds ptr, ptr %261, i64 %262
  %264 = load ptr, ptr %263, align 8, !tbaa !9
  %265 = load i64, ptr %13, align 8, !tbaa !13
  %266 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %264, i64 %265
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %266, ptr align 8 %26, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  br label %267

267:                                              ; preds = %247
  %268 = load i64, ptr %13, align 8, !tbaa !13
  %269 = add nsw i64 %268, 1
  store i64 %269, ptr %13, align 8, !tbaa !13
  br label %242, !llvm.loop !25

270:                                              ; preds = %242
  br label %271

271:                                              ; preds = %270
  %272 = load i64, ptr %12, align 8, !tbaa !13
  %273 = add nsw i64 %272, 1
  store i64 %273, ptr %12, align 8, !tbaa !13
  br label %236, !llvm.loop !26

274:                                              ; preds = %236
  %275 = load i64, ptr %7, align 8, !tbaa !13
  %276 = load double, ptr %6, align 8, !tbaa !11
  %277 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testortfacunit_testrhessproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %275, double noundef %276, ptr noundef %19, ptr noundef %277)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %278

278:                                              ; preds = %326, %274
  %279 = load i64, ptr %12, align 8, !tbaa !13
  %280 = load i64, ptr %7, align 8, !tbaa !13
  %281 = sub nsw i64 %280, 1
  %282 = icmp sle i64 %279, %281
  br i1 %282, label %283, label %329

283:                                              ; preds = %278
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %284

284:                                              ; preds = %322, %283
  %285 = load i64, ptr %13, align 8, !tbaa !13
  %286 = load i64, ptr %7, align 8, !tbaa !13
  %287 = sub nsw i64 %286, 1
  %288 = icmp sle i64 %285, %287
  br i1 %288, label %289, label %325

289:                                              ; preds = %284
  %290 = load ptr, ptr %4, align 8, !tbaa !9
  %291 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %290)
  %292 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %291, double -1.000000e+00)
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %294 = load ptr, ptr %293, align 8, !tbaa !15
  %295 = load i64, ptr %12, align 8, !tbaa !13
  %296 = getelementptr inbounds ptr, ptr %294, i64 %295
  %297 = load ptr, ptr %296, align 8, !tbaa !9
  %298 = load i64, ptr %13, align 8, !tbaa !13
  %299 = getelementptr inbounds double, ptr %297, i64 %298
  store double %292, ptr %299, align 8, !tbaa !11
  %300 = load ptr, ptr %4, align 8, !tbaa !9
  %301 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %300)
  %302 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %301, double -1.000000e+00)
  %303 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %304 = load ptr, ptr %303, align 8, !tbaa !15
  %305 = load i64, ptr %12, align 8, !tbaa !13
  %306 = getelementptr inbounds ptr, ptr %304, i64 %305
  %307 = load ptr, ptr %306, align 8, !tbaa !9
  %308 = load i64, ptr %13, align 8, !tbaa !13
  %309 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %307, i64 %308
  %310 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %309, i32 0, i32 0
  store double %302, ptr %310, align 8, !tbaa !20
  %311 = load ptr, ptr %4, align 8, !tbaa !9
  %312 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %311)
  %313 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %312, double -1.000000e+00)
  %314 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %315 = load ptr, ptr %314, align 8, !tbaa !15
  %316 = load i64, ptr %12, align 8, !tbaa !13
  %317 = getelementptr inbounds ptr, ptr %315, i64 %316
  %318 = load ptr, ptr %317, align 8, !tbaa !9
  %319 = load i64, ptr %13, align 8, !tbaa !13
  %320 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %318, i64 %319
  %321 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %320, i32 0, i32 1
  store double %313, ptr %321, align 8, !tbaa !22
  br label %322

322:                                              ; preds = %289
  %323 = load i64, ptr %13, align 8, !tbaa !13
  %324 = add nsw i64 %323, 1
  store i64 %324, ptr %13, align 8, !tbaa !13
  br label %284, !llvm.loop !27

325:                                              ; preds = %284
  br label %326

326:                                              ; preds = %325
  %327 = load i64, ptr %12, align 8, !tbaa !13
  %328 = add nsw i64 %327, 1
  store i64 %328, ptr %12, align 8, !tbaa !13
  br label %278, !llvm.loop !28

329:                                              ; preds = %278
  %330 = load i64, ptr %7, align 8, !tbaa !13
  %331 = load double, ptr %6, align 8, !tbaa !11
  %332 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testortfacunit_testrhessproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %330, double noundef %331, ptr noundef %19, ptr noundef %332)
  %333 = load i64, ptr %7, align 8, !tbaa !13
  %334 = load i64, ptr %7, align 8, !tbaa !13
  %335 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL33testortfacunit_rmatrixfillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef %8, i64 noundef %333, i64 noundef %334, double noundef 0x3FEE666666666666, ptr noundef %335)
  %336 = load i64, ptr %7, align 8, !tbaa !13
  %337 = load i64, ptr %7, align 8, !tbaa !13
  %338 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL33testortfacunit_cmatrixfillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef %9, i64 noundef %336, i64 noundef %337, double noundef 0x3FEE666666666666, ptr noundef %338)
  %339 = load i64, ptr %7, align 8, !tbaa !13
  %340 = load double, ptr %6, align 8, !tbaa !11
  %341 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testortfacunit_testrhessproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %339, double noundef %340, ptr noundef %19, ptr noundef %341)
  %342 = load i64, ptr %7, align 8, !tbaa !13
  %343 = load i64, ptr %7, align 8, !tbaa !13
  %344 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %342, i64 noundef %343, ptr noundef %344)
  %345 = load i64, ptr %7, align 8, !tbaa !13
  %346 = load i64, ptr %7, align 8, !tbaa !13
  %347 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %345, i64 noundef %346, ptr noundef %347)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %348

348:                                              ; preds = %383, %329
  %349 = load i64, ptr %12, align 8, !tbaa !13
  %350 = load i64, ptr %7, align 8, !tbaa !13
  %351 = sub nsw i64 %350, 1
  %352 = icmp sle i64 %349, %351
  br i1 %352, label %353, label %386

353:                                              ; preds = %348
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %354

354:                                              ; preds = %379, %353
  %355 = load i64, ptr %13, align 8, !tbaa !13
  %356 = load i64, ptr %7, align 8, !tbaa !13
  %357 = sub nsw i64 %356, 1
  %358 = icmp sle i64 %355, %357
  br i1 %358, label %359, label %382

359:                                              ; preds = %354
  %360 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %361 = load ptr, ptr %360, align 8, !tbaa !15
  %362 = load i64, ptr %12, align 8, !tbaa !13
  %363 = getelementptr inbounds ptr, ptr %361, i64 %362
  %364 = load ptr, ptr %363, align 8, !tbaa !9
  %365 = load i64, ptr %13, align 8, !tbaa !13
  %366 = getelementptr inbounds double, ptr %364, i64 %365
  store double 0.000000e+00, ptr %366, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  %367 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %368 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %369 = extractvalue { double, double } %367, 0
  store double %369, ptr %368, align 8
  %370 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %371 = extractvalue { double, double } %367, 1
  store double %371, ptr %370, align 8
  %372 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %373 = load ptr, ptr %372, align 8, !tbaa !15
  %374 = load i64, ptr %12, align 8, !tbaa !13
  %375 = getelementptr inbounds ptr, ptr %373, i64 %374
  %376 = load ptr, ptr %375, align 8, !tbaa !9
  %377 = load i64, ptr %13, align 8, !tbaa !13
  %378 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %376, i64 %377
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %378, ptr align 8 %27, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %379

379:                                              ; preds = %359
  %380 = load i64, ptr %13, align 8, !tbaa !13
  %381 = add nsw i64 %380, 1
  store i64 %381, ptr %13, align 8, !tbaa !13
  br label %354, !llvm.loop !29

382:                                              ; preds = %354
  br label %383

383:                                              ; preds = %382
  %384 = load i64, ptr %12, align 8, !tbaa !13
  %385 = add nsw i64 %384, 1
  store i64 %385, ptr %12, align 8, !tbaa !13
  br label %348, !llvm.loop !30

386:                                              ; preds = %348
  %387 = load i64, ptr %7, align 8, !tbaa !13
  %388 = load double, ptr %6, align 8, !tbaa !11
  %389 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrtdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %387, double noundef %388, ptr noundef %20, ptr noundef %389)
  %390 = load i64, ptr %7, align 8, !tbaa !13
  %391 = load double, ptr %6, align 8, !tbaa !11
  %392 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testctdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef %9, i64 noundef %390, double noundef %391, ptr noundef %21, ptr noundef %392)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %393

393:                                              ; preds = %481, %386
  %394 = load i64, ptr %12, align 8, !tbaa !13
  %395 = load i64, ptr %7, align 8, !tbaa !13
  %396 = sub nsw i64 %395, 1
  %397 = icmp sle i64 %394, %396
  br i1 %397, label %398, label %484

398:                                              ; preds = %393
  %399 = load i64, ptr %12, align 8, !tbaa !13
  store i64 %399, ptr %13, align 8, !tbaa !13
  br label %400

400:                                              ; preds = %477, %398
  %401 = load i64, ptr %13, align 8, !tbaa !13
  %402 = load i64, ptr %7, align 8, !tbaa !13
  %403 = sub nsw i64 %402, 1
  %404 = icmp sle i64 %401, %403
  br i1 %404, label %405, label %480

405:                                              ; preds = %400
  %406 = load ptr, ptr %4, align 8, !tbaa !9
  %407 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %406)
  %408 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %407, double -1.000000e+00)
  %409 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %410 = load ptr, ptr %409, align 8, !tbaa !15
  %411 = load i64, ptr %12, align 8, !tbaa !13
  %412 = getelementptr inbounds ptr, ptr %410, i64 %411
  %413 = load ptr, ptr %412, align 8, !tbaa !9
  %414 = load i64, ptr %13, align 8, !tbaa !13
  %415 = getelementptr inbounds double, ptr %413, i64 %414
  store double %408, ptr %415, align 8, !tbaa !11
  %416 = load ptr, ptr %4, align 8, !tbaa !9
  %417 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %416)
  %418 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %417, double -1.000000e+00)
  %419 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %420 = load ptr, ptr %419, align 8, !tbaa !15
  %421 = load i64, ptr %12, align 8, !tbaa !13
  %422 = getelementptr inbounds ptr, ptr %420, i64 %421
  %423 = load ptr, ptr %422, align 8, !tbaa !9
  %424 = load i64, ptr %13, align 8, !tbaa !13
  %425 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %423, i64 %424
  %426 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %425, i32 0, i32 0
  store double %418, ptr %426, align 8, !tbaa !20
  %427 = load ptr, ptr %4, align 8, !tbaa !9
  %428 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %427)
  %429 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %428, double -1.000000e+00)
  %430 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %431 = load ptr, ptr %430, align 8, !tbaa !15
  %432 = load i64, ptr %12, align 8, !tbaa !13
  %433 = getelementptr inbounds ptr, ptr %431, i64 %432
  %434 = load ptr, ptr %433, align 8, !tbaa !9
  %435 = load i64, ptr %13, align 8, !tbaa !13
  %436 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %434, i64 %435
  %437 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %436, i32 0, i32 1
  store double %429, ptr %437, align 8, !tbaa !22
  %438 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %439 = load ptr, ptr %438, align 8, !tbaa !15
  %440 = load i64, ptr %12, align 8, !tbaa !13
  %441 = getelementptr inbounds ptr, ptr %439, i64 %440
  %442 = load ptr, ptr %441, align 8, !tbaa !9
  %443 = load i64, ptr %13, align 8, !tbaa !13
  %444 = getelementptr inbounds double, ptr %442, i64 %443
  %445 = load double, ptr %444, align 8, !tbaa !11
  %446 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %447 = load ptr, ptr %446, align 8, !tbaa !15
  %448 = load i64, ptr %13, align 8, !tbaa !13
  %449 = getelementptr inbounds ptr, ptr %447, i64 %448
  %450 = load ptr, ptr %449, align 8, !tbaa !9
  %451 = load i64, ptr %12, align 8, !tbaa !13
  %452 = getelementptr inbounds double, ptr %450, i64 %451
  store double %445, ptr %452, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  %453 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %454 = load ptr, ptr %453, align 8, !tbaa !15
  %455 = load i64, ptr %12, align 8, !tbaa !13
  %456 = getelementptr inbounds ptr, ptr %454, i64 %455
  %457 = load ptr, ptr %456, align 8, !tbaa !9
  %458 = load i64, ptr %13, align 8, !tbaa !13
  %459 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %457, i64 %458
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %459, i64 16, i1 false), !tbaa.struct !16
  %460 = load ptr, ptr %4, align 8, !tbaa !9
  %461 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %462 = load double, ptr %461, align 8
  %463 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %464 = load double, ptr %463, align 8
  %465 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %462, double %464, ptr noundef %460)
  %466 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %467 = extractvalue { double, double } %465, 0
  store double %467, ptr %466, align 8
  %468 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %469 = extractvalue { double, double } %465, 1
  store double %469, ptr %468, align 8
  %470 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %471 = load ptr, ptr %470, align 8, !tbaa !15
  %472 = load i64, ptr %13, align 8, !tbaa !13
  %473 = getelementptr inbounds ptr, ptr %471, i64 %472
  %474 = load ptr, ptr %473, align 8, !tbaa !9
  %475 = load i64, ptr %12, align 8, !tbaa !13
  %476 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %474, i64 %475
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %476, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  br label %477

477:                                              ; preds = %405
  %478 = load i64, ptr %13, align 8, !tbaa !13
  %479 = add nsw i64 %478, 1
  store i64 %479, ptr %13, align 8, !tbaa !13
  br label %400, !llvm.loop !31

480:                                              ; preds = %400
  br label %481

481:                                              ; preds = %480
  %482 = load i64, ptr %12, align 8, !tbaa !13
  %483 = add nsw i64 %482, 1
  store i64 %483, ptr %12, align 8, !tbaa !13
  br label %393, !llvm.loop !32

484:                                              ; preds = %393
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %485

485:                                              ; preds = %506, %484
  %486 = load i64, ptr %12, align 8, !tbaa !13
  %487 = load i64, ptr %7, align 8, !tbaa !13
  %488 = sub nsw i64 %487, 1
  %489 = icmp sle i64 %486, %488
  br i1 %489, label %490, label %509

490:                                              ; preds = %485
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  %491 = load ptr, ptr %4, align 8, !tbaa !9
  %492 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %491)
  %493 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %492, double -1.000000e+00)
  %494 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %493)
  %495 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %496 = extractvalue { double, double } %494, 0
  store double %496, ptr %495, align 8
  %497 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %498 = extractvalue { double, double } %494, 1
  store double %498, ptr %497, align 8
  %499 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %500 = load ptr, ptr %499, align 8, !tbaa !15
  %501 = load i64, ptr %12, align 8, !tbaa !13
  %502 = getelementptr inbounds ptr, ptr %500, i64 %501
  %503 = load ptr, ptr %502, align 8, !tbaa !9
  %504 = load i64, ptr %12, align 8, !tbaa !13
  %505 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %503, i64 %504
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %505, ptr align 8 %30, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  br label %506

506:                                              ; preds = %490
  %507 = load i64, ptr %12, align 8, !tbaa !13
  %508 = add nsw i64 %507, 1
  store i64 %508, ptr %12, align 8, !tbaa !13
  br label %485, !llvm.loop !33

509:                                              ; preds = %485
  %510 = load i64, ptr %7, align 8, !tbaa !13
  %511 = load double, ptr %6, align 8, !tbaa !11
  %512 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrtdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %510, double noundef %511, ptr noundef %20, ptr noundef %512)
  %513 = load i64, ptr %7, align 8, !tbaa !13
  %514 = load double, ptr %6, align 8, !tbaa !11
  %515 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testctdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef %9, i64 noundef %513, double noundef %514, ptr noundef %21, ptr noundef %515)
  %516 = load i64, ptr %7, align 8, !tbaa !13
  %517 = load i64, ptr %7, align 8, !tbaa !13
  %518 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL33testortfacunit_rmatrixfillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef %8, i64 noundef %516, i64 noundef %517, double noundef 0x3FEE666666666666, ptr noundef %518)
  %519 = load i64, ptr %7, align 8, !tbaa !13
  %520 = load i64, ptr %7, align 8, !tbaa !13
  %521 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL33testortfacunit_cmatrixfillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef %9, i64 noundef %519, i64 noundef %520, double noundef 0x3FEE666666666666, ptr noundef %521)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %522

522:                                              ; preds = %578, %509
  %523 = load i64, ptr %12, align 8, !tbaa !13
  %524 = load i64, ptr %7, align 8, !tbaa !13
  %525 = sub nsw i64 %524, 1
  %526 = icmp sle i64 %523, %525
  br i1 %526, label %527, label %581

527:                                              ; preds = %522
  %528 = load i64, ptr %12, align 8, !tbaa !13
  store i64 %528, ptr %13, align 8, !tbaa !13
  br label %529

529:                                              ; preds = %574, %527
  %530 = load i64, ptr %13, align 8, !tbaa !13
  %531 = load i64, ptr %7, align 8, !tbaa !13
  %532 = sub nsw i64 %531, 1
  %533 = icmp sle i64 %530, %532
  br i1 %533, label %534, label %577

534:                                              ; preds = %529
  %535 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %536 = load ptr, ptr %535, align 8, !tbaa !15
  %537 = load i64, ptr %12, align 8, !tbaa !13
  %538 = getelementptr inbounds ptr, ptr %536, i64 %537
  %539 = load ptr, ptr %538, align 8, !tbaa !9
  %540 = load i64, ptr %13, align 8, !tbaa !13
  %541 = getelementptr inbounds double, ptr %539, i64 %540
  %542 = load double, ptr %541, align 8, !tbaa !11
  %543 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %544 = load ptr, ptr %543, align 8, !tbaa !15
  %545 = load i64, ptr %13, align 8, !tbaa !13
  %546 = getelementptr inbounds ptr, ptr %544, i64 %545
  %547 = load ptr, ptr %546, align 8, !tbaa !9
  %548 = load i64, ptr %12, align 8, !tbaa !13
  %549 = getelementptr inbounds double, ptr %547, i64 %548
  store double %542, ptr %549, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #6
  %550 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %551 = load ptr, ptr %550, align 8, !tbaa !15
  %552 = load i64, ptr %12, align 8, !tbaa !13
  %553 = getelementptr inbounds ptr, ptr %551, i64 %552
  %554 = load ptr, ptr %553, align 8, !tbaa !9
  %555 = load i64, ptr %13, align 8, !tbaa !13
  %556 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %554, i64 %555
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 %556, i64 16, i1 false), !tbaa.struct !16
  %557 = load ptr, ptr %4, align 8, !tbaa !9
  %558 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %559 = load double, ptr %558, align 8
  %560 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %561 = load double, ptr %560, align 8
  %562 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %559, double %561, ptr noundef %557)
  %563 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %564 = extractvalue { double, double } %562, 0
  store double %564, ptr %563, align 8
  %565 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %566 = extractvalue { double, double } %562, 1
  store double %566, ptr %565, align 8
  %567 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %568 = load ptr, ptr %567, align 8, !tbaa !15
  %569 = load i64, ptr %13, align 8, !tbaa !13
  %570 = getelementptr inbounds ptr, ptr %568, i64 %569
  %571 = load ptr, ptr %570, align 8, !tbaa !9
  %572 = load i64, ptr %12, align 8, !tbaa !13
  %573 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %571, i64 %572
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %573, ptr align 8 %31, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  br label %574

574:                                              ; preds = %534
  %575 = load i64, ptr %13, align 8, !tbaa !13
  %576 = add nsw i64 %575, 1
  store i64 %576, ptr %13, align 8, !tbaa !13
  br label %529, !llvm.loop !34

577:                                              ; preds = %529
  br label %578

578:                                              ; preds = %577
  %579 = load i64, ptr %12, align 8, !tbaa !13
  %580 = add nsw i64 %579, 1
  store i64 %580, ptr %12, align 8, !tbaa !13
  br label %522, !llvm.loop !35

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

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

587:                                              ; preds = %582
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #6
  %588 = load ptr, ptr %4, align 8, !tbaa !9
  %589 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %588)
  %590 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %589, double -1.000000e+00)
  %591 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %590)
  %592 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %593 = extractvalue { double, double } %591, 0
  store double %593, ptr %592, align 8
  %594 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %595 = extractvalue { double, double } %591, 1
  store double %595, ptr %594, align 8
  %596 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %597 = load ptr, ptr %596, align 8, !tbaa !15
  %598 = load i64, ptr %12, align 8, !tbaa !13
  %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 !13
  %602 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %600, i64 %601
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %602, ptr align 8 %33, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  br label %603

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

606:                                              ; preds = %582
  %607 = load i64, ptr %7, align 8, !tbaa !13
  %608 = load double, ptr %6, align 8, !tbaa !11
  %609 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrtdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %607, double noundef %608, ptr noundef %20, ptr noundef %609)
  %610 = load i64, ptr %7, align 8, !tbaa !13
  %611 = load double, ptr %6, align 8, !tbaa !11
  %612 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testctdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef %9, i64 noundef %610, double noundef %611, ptr noundef %21, ptr noundef %612)
  br label %613

613:                                              ; preds = %606
  %614 = load i64, ptr %7, align 8, !tbaa !13
  %615 = add nsw i64 %614, 1
  store i64 %615, ptr %7, align 8, !tbaa !13
  br label %43, !llvm.loop !37

616:                                              ; preds = %43
  %617 = load ptr, ptr %4, align 8, !tbaa !9
  %618 = call noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef %617)
  %619 = mul nsw i64 4, %618
  store i64 %619, ptr %7, align 8, !tbaa !13
  br label %620

620:                                              ; preds = %911, %616
  %621 = load i64, ptr %7, align 8, !tbaa !13
  %622 = load ptr, ptr %4, align 8, !tbaa !9
  %623 = call noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef %622)
  %624 = mul nsw i64 4, %623
  %625 = icmp sle i64 %621, %624
  br i1 %625, label %626, label %914

626:                                              ; preds = %620
  %627 = load i64, ptr %7, align 8, !tbaa !13
  %628 = load ptr, ptr %4, align 8, !tbaa !9
  %629 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %627, ptr noundef %628)
  %630 = add nsw i64 1, %629
  store i64 %630, ptr %11, align 8, !tbaa !13
  %631 = load i64, ptr %7, align 8, !tbaa !13
  %632 = load ptr, ptr %4, align 8, !tbaa !9
  %633 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %631, ptr noundef %632)
  %634 = add nsw i64 1, %633
  store i64 %634, ptr %10, align 8, !tbaa !13
  %635 = load ptr, ptr %4, align 8, !tbaa !9
  %636 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %635)
  %637 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %636, double noundef 5.000000e-01)
  br i1 %637, label %638, label %640

638:                                              ; preds = %626
  %639 = load i64, ptr %7, align 8, !tbaa !13
  store i64 %639, ptr %11, align 8, !tbaa !13
  br label %642

640:                                              ; preds = %626
  %641 = load i64, ptr %7, align 8, !tbaa !13
  store i64 %641, ptr %10, align 8, !tbaa !13
  br label %642

642:                                              ; preds = %640, %638
  %643 = load i64, ptr %10, align 8, !tbaa !13
  %644 = load i64, ptr %11, align 8, !tbaa !13
  %645 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %643, i64 noundef %644, ptr noundef %645)
  %646 = load i64, ptr %10, align 8, !tbaa !13
  %647 = load i64, ptr %11, align 8, !tbaa !13
  %648 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %646, i64 noundef %647, ptr noundef %648)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %649

649:                                              ; preds = %697, %642
  %650 = load i64, ptr %12, align 8, !tbaa !13
  %651 = load i64, ptr %10, align 8, !tbaa !13
  %652 = sub nsw i64 %651, 1
  %653 = icmp sle i64 %650, %652
  br i1 %653, label %654, label %700

654:                                              ; preds = %649
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %655

655:                                              ; preds = %693, %654
  %656 = load i64, ptr %13, align 8, !tbaa !13
  %657 = load i64, ptr %11, align 8, !tbaa !13
  %658 = sub nsw i64 %657, 1
  %659 = icmp sle i64 %656, %658
  br i1 %659, label %660, label %696

660:                                              ; preds = %655
  %661 = load ptr, ptr %4, align 8, !tbaa !9
  %662 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %661)
  %663 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %662, double -1.000000e+00)
  %664 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %665 = load ptr, ptr %664, align 8, !tbaa !15
  %666 = load i64, ptr %12, align 8, !tbaa !13
  %667 = getelementptr inbounds ptr, ptr %665, i64 %666
  %668 = load ptr, ptr %667, align 8, !tbaa !9
  %669 = load i64, ptr %13, align 8, !tbaa !13
  %670 = getelementptr inbounds double, ptr %668, i64 %669
  store double %663, ptr %670, align 8, !tbaa !11
  %671 = load ptr, ptr %4, align 8, !tbaa !9
  %672 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %671)
  %673 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %672, double -1.000000e+00)
  %674 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %675 = load ptr, ptr %674, align 8, !tbaa !15
  %676 = load i64, ptr %12, align 8, !tbaa !13
  %677 = getelementptr inbounds ptr, ptr %675, i64 %676
  %678 = load ptr, ptr %677, align 8, !tbaa !9
  %679 = load i64, ptr %13, align 8, !tbaa !13
  %680 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %678, i64 %679
  %681 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %680, i32 0, i32 0
  store double %673, ptr %681, align 8, !tbaa !20
  %682 = load ptr, ptr %4, align 8, !tbaa !9
  %683 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %682)
  %684 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %683, double -1.000000e+00)
  %685 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %686 = load ptr, ptr %685, align 8, !tbaa !15
  %687 = load i64, ptr %12, align 8, !tbaa !13
  %688 = getelementptr inbounds ptr, ptr %686, i64 %687
  %689 = load ptr, ptr %688, align 8, !tbaa !9
  %690 = load i64, ptr %13, align 8, !tbaa !13
  %691 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %689, i64 %690
  %692 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %691, i32 0, i32 1
  store double %684, ptr %692, align 8, !tbaa !22
  br label %693

693:                                              ; preds = %660
  %694 = load i64, ptr %13, align 8, !tbaa !13
  %695 = add nsw i64 %694, 1
  store i64 %695, ptr %13, align 8, !tbaa !13
  br label %655, !llvm.loop !38

696:                                              ; preds = %655
  br label %697

697:                                              ; preds = %696
  %698 = load i64, ptr %12, align 8, !tbaa !13
  %699 = add nsw i64 %698, 1
  store i64 %699, ptr %12, align 8, !tbaa !13
  br label %649, !llvm.loop !39

700:                                              ; preds = %649
  %701 = load i64, ptr %10, align 8, !tbaa !13
  %702 = load i64, ptr %11, align 8, !tbaa !13
  %703 = load double, ptr %6, align 8, !tbaa !11
  %704 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %701, i64 noundef %702, double noundef %703, ptr noundef %14, ptr noundef %704)
  %705 = load i64, ptr %10, align 8, !tbaa !13
  %706 = load i64, ptr %11, align 8, !tbaa !13
  %707 = load double, ptr %6, align 8, !tbaa !11
  %708 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrlqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %705, i64 noundef %706, double noundef %707, ptr noundef %15, ptr noundef %708)
  %709 = load i64, ptr %10, align 8, !tbaa !13
  %710 = load i64, ptr %11, align 8, !tbaa !13
  %711 = load double, ptr %6, align 8, !tbaa !11
  %712 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testcqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %9, i64 noundef %709, i64 noundef %710, double noundef %711, ptr noundef %16, ptr noundef %712)
  %713 = load i64, ptr %10, align 8, !tbaa !13
  %714 = load i64, ptr %11, align 8, !tbaa !13
  %715 = load double, ptr %6, align 8, !tbaa !11
  %716 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testclqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %9, i64 noundef %713, i64 noundef %714, double noundef %715, ptr noundef %17, ptr noundef %716)
  %717 = load i64, ptr %10, align 8, !tbaa !13
  %718 = load i64, ptr %11, align 8, !tbaa !13
  %719 = load double, ptr %6, align 8, !tbaa !11
  %720 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrbdproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %717, i64 noundef %718, double noundef %719, ptr noundef %18, ptr noundef %720)
  %721 = load i64, ptr %7, align 8, !tbaa !13
  %722 = load i64, ptr %7, align 8, !tbaa !13
  %723 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %721, i64 noundef %722, ptr noundef %723)
  %724 = load i64, ptr %7, align 8, !tbaa !13
  %725 = load i64, ptr %7, align 8, !tbaa !13
  %726 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %724, i64 noundef %725, ptr noundef %726)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %727

727:                                              ; preds = %775, %700
  %728 = load i64, ptr %12, align 8, !tbaa !13
  %729 = load i64, ptr %7, align 8, !tbaa !13
  %730 = sub nsw i64 %729, 1
  %731 = icmp sle i64 %728, %730
  br i1 %731, label %732, label %778

732:                                              ; preds = %727
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %733

733:                                              ; preds = %771, %732
  %734 = load i64, ptr %13, align 8, !tbaa !13
  %735 = load i64, ptr %7, align 8, !tbaa !13
  %736 = sub nsw i64 %735, 1
  %737 = icmp sle i64 %734, %736
  br i1 %737, label %738, label %774

738:                                              ; preds = %733
  %739 = load ptr, ptr %4, align 8, !tbaa !9
  %740 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %739)
  %741 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %740, double -1.000000e+00)
  %742 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %743 = load ptr, ptr %742, align 8, !tbaa !15
  %744 = load i64, ptr %12, align 8, !tbaa !13
  %745 = getelementptr inbounds ptr, ptr %743, i64 %744
  %746 = load ptr, ptr %745, align 8, !tbaa !9
  %747 = load i64, ptr %13, align 8, !tbaa !13
  %748 = getelementptr inbounds double, ptr %746, i64 %747
  store double %741, ptr %748, align 8, !tbaa !11
  %749 = load ptr, ptr %4, align 8, !tbaa !9
  %750 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %749)
  %751 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %750, double -1.000000e+00)
  %752 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %753 = load ptr, ptr %752, align 8, !tbaa !15
  %754 = load i64, ptr %12, align 8, !tbaa !13
  %755 = getelementptr inbounds ptr, ptr %753, i64 %754
  %756 = load ptr, ptr %755, align 8, !tbaa !9
  %757 = load i64, ptr %13, align 8, !tbaa !13
  %758 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %756, i64 %757
  %759 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %758, i32 0, i32 0
  store double %751, ptr %759, align 8, !tbaa !20
  %760 = load ptr, ptr %4, align 8, !tbaa !9
  %761 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %760)
  %762 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %761, double -1.000000e+00)
  %763 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %764 = load ptr, ptr %763, align 8, !tbaa !15
  %765 = load i64, ptr %12, align 8, !tbaa !13
  %766 = getelementptr inbounds ptr, ptr %764, i64 %765
  %767 = load ptr, ptr %766, align 8, !tbaa !9
  %768 = load i64, ptr %13, align 8, !tbaa !13
  %769 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %767, i64 %768
  %770 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %769, i32 0, i32 1
  store double %762, ptr %770, align 8, !tbaa !22
  br label %771

771:                                              ; preds = %738
  %772 = load i64, ptr %13, align 8, !tbaa !13
  %773 = add nsw i64 %772, 1
  store i64 %773, ptr %13, align 8, !tbaa !13
  br label %733, !llvm.loop !40

774:                                              ; preds = %733
  br label %775

775:                                              ; preds = %774
  %776 = load i64, ptr %12, align 8, !tbaa !13
  %777 = add nsw i64 %776, 1
  store i64 %777, ptr %12, align 8, !tbaa !13
  br label %727, !llvm.loop !41

778:                                              ; preds = %727
  %779 = load i64, ptr %7, align 8, !tbaa !13
  %780 = load double, ptr %6, align 8, !tbaa !11
  %781 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testortfacunit_testrhessproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %779, double noundef %780, ptr noundef %19, ptr noundef %781)
  %782 = load i64, ptr %7, align 8, !tbaa !13
  %783 = load i64, ptr %7, align 8, !tbaa !13
  %784 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %782, i64 noundef %783, ptr noundef %784)
  %785 = load i64, ptr %7, align 8, !tbaa !13
  %786 = load i64, ptr %7, align 8, !tbaa !13
  %787 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %785, i64 noundef %786, ptr noundef %787)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %788

788:                                              ; preds = %876, %778
  %789 = load i64, ptr %12, align 8, !tbaa !13
  %790 = load i64, ptr %7, align 8, !tbaa !13
  %791 = sub nsw i64 %790, 1
  %792 = icmp sle i64 %789, %791
  br i1 %792, label %793, label %879

793:                                              ; preds = %788
  %794 = load i64, ptr %12, align 8, !tbaa !13
  store i64 %794, ptr %13, align 8, !tbaa !13
  br label %795

795:                                              ; preds = %872, %793
  %796 = load i64, ptr %13, align 8, !tbaa !13
  %797 = load i64, ptr %7, align 8, !tbaa !13
  %798 = sub nsw i64 %797, 1
  %799 = icmp sle i64 %796, %798
  br i1 %799, label %800, label %875

800:                                              ; preds = %795
  %801 = load ptr, ptr %4, align 8, !tbaa !9
  %802 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %801)
  %803 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %802, double -1.000000e+00)
  %804 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %805 = load ptr, ptr %804, align 8, !tbaa !15
  %806 = load i64, ptr %12, align 8, !tbaa !13
  %807 = getelementptr inbounds ptr, ptr %805, i64 %806
  %808 = load ptr, ptr %807, align 8, !tbaa !9
  %809 = load i64, ptr %13, align 8, !tbaa !13
  %810 = getelementptr inbounds double, ptr %808, i64 %809
  store double %803, ptr %810, align 8, !tbaa !11
  %811 = load ptr, ptr %4, align 8, !tbaa !9
  %812 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %811)
  %813 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %812, double -1.000000e+00)
  %814 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %815 = load ptr, ptr %814, align 8, !tbaa !15
  %816 = load i64, ptr %12, align 8, !tbaa !13
  %817 = getelementptr inbounds ptr, ptr %815, i64 %816
  %818 = load ptr, ptr %817, align 8, !tbaa !9
  %819 = load i64, ptr %13, align 8, !tbaa !13
  %820 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %818, i64 %819
  %821 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %820, i32 0, i32 0
  store double %813, ptr %821, align 8, !tbaa !20
  %822 = load ptr, ptr %4, align 8, !tbaa !9
  %823 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %822)
  %824 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %823, double -1.000000e+00)
  %825 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %826 = load ptr, ptr %825, align 8, !tbaa !15
  %827 = load i64, ptr %12, align 8, !tbaa !13
  %828 = getelementptr inbounds ptr, ptr %826, i64 %827
  %829 = load ptr, ptr %828, align 8, !tbaa !9
  %830 = load i64, ptr %13, align 8, !tbaa !13
  %831 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %829, i64 %830
  %832 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %831, i32 0, i32 1
  store double %824, ptr %832, align 8, !tbaa !22
  %833 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %834 = load ptr, ptr %833, align 8, !tbaa !15
  %835 = load i64, ptr %12, align 8, !tbaa !13
  %836 = getelementptr inbounds ptr, ptr %834, i64 %835
  %837 = load ptr, ptr %836, align 8, !tbaa !9
  %838 = load i64, ptr %13, align 8, !tbaa !13
  %839 = getelementptr inbounds double, ptr %837, i64 %838
  %840 = load double, ptr %839, align 8, !tbaa !11
  %841 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %842 = load ptr, ptr %841, align 8, !tbaa !15
  %843 = load i64, ptr %13, align 8, !tbaa !13
  %844 = getelementptr inbounds ptr, ptr %842, i64 %843
  %845 = load ptr, ptr %844, align 8, !tbaa !9
  %846 = load i64, ptr %12, align 8, !tbaa !13
  %847 = getelementptr inbounds double, ptr %845, i64 %846
  store double %840, ptr %847, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #6
  %848 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %849 = load ptr, ptr %848, align 8, !tbaa !15
  %850 = load i64, ptr %12, align 8, !tbaa !13
  %851 = getelementptr inbounds ptr, ptr %849, i64 %850
  %852 = load ptr, ptr %851, align 8, !tbaa !9
  %853 = load i64, ptr %13, align 8, !tbaa !13
  %854 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %852, i64 %853
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %854, i64 16, i1 false), !tbaa.struct !16
  %855 = load ptr, ptr %4, align 8, !tbaa !9
  %856 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %857 = load double, ptr %856, align 8
  %858 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %859 = load double, ptr %858, align 8
  %860 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %857, double %859, ptr noundef %855)
  %861 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %862 = extractvalue { double, double } %860, 0
  store double %862, ptr %861, align 8
  %863 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %864 = extractvalue { double, double } %860, 1
  store double %864, ptr %863, align 8
  %865 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %866 = load ptr, ptr %865, align 8, !tbaa !15
  %867 = load i64, ptr %13, align 8, !tbaa !13
  %868 = getelementptr inbounds ptr, ptr %866, i64 %867
  %869 = load ptr, ptr %868, align 8, !tbaa !9
  %870 = load i64, ptr %12, align 8, !tbaa !13
  %871 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %869, i64 %870
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %871, ptr align 8 %34, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  br label %872

872:                                              ; preds = %800
  %873 = load i64, ptr %13, align 8, !tbaa !13
  %874 = add nsw i64 %873, 1
  store i64 %874, ptr %13, align 8, !tbaa !13
  br label %795, !llvm.loop !42

875:                                              ; preds = %795
  br label %876

876:                                              ; preds = %875
  %877 = load i64, ptr %12, align 8, !tbaa !13
  %878 = add nsw i64 %877, 1
  store i64 %878, ptr %12, align 8, !tbaa !13
  br label %788, !llvm.loop !43

879:                                              ; preds = %788
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %880

880:                                              ; preds = %901, %879
  %881 = load i64, ptr %12, align 8, !tbaa !13
  %882 = load i64, ptr %7, align 8, !tbaa !13
  %883 = sub nsw i64 %882, 1
  %884 = icmp sle i64 %881, %883
  br i1 %884, label %885, label %904

885:                                              ; preds = %880
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #6
  %886 = load ptr, ptr %4, align 8, !tbaa !9
  %887 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %886)
  %888 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %887, double -1.000000e+00)
  %889 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %888)
  %890 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %891 = extractvalue { double, double } %889, 0
  store double %891, ptr %890, align 8
  %892 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %893 = extractvalue { double, double } %889, 1
  store double %893, ptr %892, align 8
  %894 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %895 = load ptr, ptr %894, align 8, !tbaa !15
  %896 = load i64, ptr %12, align 8, !tbaa !13
  %897 = getelementptr inbounds ptr, ptr %895, i64 %896
  %898 = load ptr, ptr %897, align 8, !tbaa !9
  %899 = load i64, ptr %12, align 8, !tbaa !13
  %900 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %898, i64 %899
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %900, ptr align 8 %36, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  br label %901

901:                                              ; preds = %885
  %902 = load i64, ptr %12, align 8, !tbaa !13
  %903 = add nsw i64 %902, 1
  store i64 %903, ptr %12, align 8, !tbaa !13
  br label %880, !llvm.loop !44

904:                                              ; preds = %880
  %905 = load i64, ptr %7, align 8, !tbaa !13
  %906 = load double, ptr %6, align 8, !tbaa !11
  %907 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testrtdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef %8, i64 noundef %905, double noundef %906, ptr noundef %20, ptr noundef %907)
  %908 = load i64, ptr %7, align 8, !tbaa !13
  %909 = load double, ptr %6, align 8, !tbaa !11
  %910 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL29testortfacunit_testctdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef %9, i64 noundef %908, double noundef %909, ptr noundef %21, ptr noundef %910)
  br label %911

911:                                              ; preds = %904
  %912 = load i64, ptr %7, align 8, !tbaa !13
  %913 = add nsw i64 %912, 1
  store i64 %913, ptr %7, align 8, !tbaa !13
  br label %620, !llvm.loop !45

914:                                              ; preds = %620
  %915 = load i8, ptr %14, align 1, !tbaa !5, !range !46, !noundef !47
  %916 = trunc i8 %915 to i1
  br i1 %916, label %938, label %917

917:                                              ; preds = %914
  %918 = load i8, ptr %15, align 1, !tbaa !5, !range !46, !noundef !47
  %919 = trunc i8 %918 to i1
  br i1 %919, label %938, label %920

920:                                              ; preds = %917
  %921 = load i8, ptr %16, align 1, !tbaa !5, !range !46, !noundef !47
  %922 = trunc i8 %921 to i1
  br i1 %922, label %938, label %923

923:                                              ; preds = %920
  %924 = load i8, ptr %17, align 1, !tbaa !5, !range !46, !noundef !47
  %925 = trunc i8 %924 to i1
  br i1 %925, label %938, label %926

926:                                              ; preds = %923
  %927 = load i8, ptr %18, align 1, !tbaa !5, !range !46, !noundef !47
  %928 = trunc i8 %927 to i1
  br i1 %928, label %938, label %929

929:                                              ; preds = %926
  %930 = load i8, ptr %19, align 1, !tbaa !5, !range !46, !noundef !47
  %931 = trunc i8 %930 to i1
  br i1 %931, label %938, label %932

932:                                              ; preds = %929
  %933 = load i8, ptr %20, align 1, !tbaa !5, !range !46, !noundef !47
  %934 = trunc i8 %933 to i1
  br i1 %934, label %938, label %935

935:                                              ; preds = %932
  %936 = load i8, ptr %21, align 1, !tbaa !5, !range !46, !noundef !47
  %937 = trunc i8 %936 to i1
  br label %938

938:                                              ; preds = %935, %932, %929, %926, %923, %920, %917, %914
  %939 = phi i1 [ true, %932 ], [ true, %929 ], [ true, %926 ], [ true, %923 ], [ true, %920 ], [ true, %917 ], [ true, %914 ], [ %937, %935 ]
  %940 = zext i1 %939 to i8
  store i8 %940, ptr %22, align 1, !tbaa !5
  %941 = load i8, ptr %3, align 1, !tbaa !5, !range !46, !noundef !47
  %942 = trunc i8 %941 to i1
  br i1 %942, label %1017, label %943

943:                                              ; preds = %938
  %944 = call i32 (ptr, ...) @printf(ptr noundef @.str.275)
  %945 = call i32 (ptr, ...) @printf(ptr noundef @.str.276)
  %946 = load i8, ptr %14, align 1, !tbaa !5, !range !46, !noundef !47
  %947 = trunc i8 %946 to i1
  br i1 %947, label %950, label %948

948:                                              ; preds = %943
  %949 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %952

950:                                              ; preds = %943
  %951 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %952

952:                                              ; preds = %950, %948
  %953 = call i32 (ptr, ...) @printf(ptr noundef @.str.277)
  %954 = load i8, ptr %15, align 1, !tbaa !5, !range !46, !noundef !47
  %955 = trunc i8 %954 to i1
  br i1 %955, label %958, label %956

956:                                              ; preds = %952
  %957 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %960

958:                                              ; preds = %952
  %959 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %960

960:                                              ; preds = %958, %956
  %961 = call i32 (ptr, ...) @printf(ptr noundef @.str.278)
  %962 = load i8, ptr %16, align 1, !tbaa !5, !range !46, !noundef !47
  %963 = trunc i8 %962 to i1
  br i1 %963, label %966, label %964

964:                                              ; preds = %960
  %965 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %968

966:                                              ; preds = %960
  %967 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %968

968:                                              ; preds = %966, %964
  %969 = call i32 (ptr, ...) @printf(ptr noundef @.str.279)
  %970 = load i8, ptr %17, align 1, !tbaa !5, !range !46, !noundef !47
  %971 = trunc i8 %970 to i1
  br i1 %971, label %974, label %972

972:                                              ; preds = %968
  %973 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %976

974:                                              ; preds = %968
  %975 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %976

976:                                              ; preds = %974, %972
  %977 = call i32 (ptr, ...) @printf(ptr noundef @.str.280)
  %978 = load i8, ptr %18, align 1, !tbaa !5, !range !46, !noundef !47
  %979 = trunc i8 %978 to i1
  br i1 %979, label %982, label %980

980:                                              ; preds = %976
  %981 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %984

982:                                              ; preds = %976
  %983 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %984

984:                                              ; preds = %982, %980
  %985 = call i32 (ptr, ...) @printf(ptr noundef @.str.281)
  %986 = load i8, ptr %19, align 1, !tbaa !5, !range !46, !noundef !47
  %987 = trunc i8 %986 to i1
  br i1 %987, label %990, label %988

988:                                              ; preds = %984
  %989 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %992

990:                                              ; preds = %984
  %991 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %992

992:                                              ; preds = %990, %988
  %993 = call i32 (ptr, ...) @printf(ptr noundef @.str.282)
  %994 = load i8, ptr %20, align 1, !tbaa !5, !range !46, !noundef !47
  %995 = trunc i8 %994 to i1
  br i1 %995, label %998, label %996

996:                                              ; preds = %992
  %997 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1000

998:                                              ; preds = %992
  %999 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1000

1000:                                             ; preds = %998, %996
  %1001 = call i32 (ptr, ...) @printf(ptr noundef @.str.283)
  %1002 = load i8, ptr %21, align 1, !tbaa !5, !range !46, !noundef !47
  %1003 = trunc i8 %1002 to i1
  br i1 %1003, label %1006, label %1004

1004:                                             ; preds = %1000
  %1005 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1008

1006:                                             ; preds = %1000
  %1007 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1008

1008:                                             ; preds = %1006, %1004
  %1009 = load i8, ptr %22, align 1, !tbaa !5, !range !46, !noundef !47
  %1010 = trunc i8 %1009 to i1
  br i1 %1010, label %1011, label %1013

1011:                                             ; preds = %1008
  %1012 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %1015

1013:                                             ; preds = %1008
  %1014 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %1015

1015:                                             ; preds = %1013, %1011
  %1016 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %1017

1017:                                             ; preds = %1015, %938
  %1018 = load i8, ptr %22, align 1, !tbaa !5, !range !46, !noundef !47
  %1019 = trunc i8 %1018 to i1
  %1020 = xor i1 %1019, true
  %1021 = zext i1 %1020 to i8
  store i8 %1021, ptr %24, align 1, !tbaa !5
  %1022 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1022)
  %1023 = load i8, ptr %24, align 1, !tbaa !5, !range !46, !noundef !47
  %1024 = trunc i8 %1023 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  ret i1 %1024
}

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{i64 0, i64 8, !11, i64 8, i64 8, !11}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!21, !12, i64 0}
!21 = !{!"_ZTSN11alglib_impl10ae_complexE", !12, i64 0, !12, i64 8}
!22 = !{!21, !12, i64 8}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !18}
!27 = distinct !{!27, !18}
!28 = distinct !{!28, !18}
!29 = distinct !{!29, !18}
!30 = distinct !{!30, !18}
!31 = distinct !{!31, !18}
!32 = distinct !{!32, !18}
!33 = distinct !{!33, !18}
!34 = distinct !{!34, !18}
!35 = distinct !{!35, !18}
!36 = distinct !{!36, !18}
!37 = distinct !{!37, !18}
!38 = distinct !{!38, !18}
!39 = distinct !{!39, !18}
!40 = distinct !{!40, !18}
!41 = distinct !{!41, !18}
!42 = distinct !{!42, !18}
!43 = distinct !{!43, !18}
!44 = distinct !{!44, !18}
!45 = distinct !{!45, !18}
!46 = !{i8 0, i8 2}
!47 = !{}


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::ae_complex" = type { double, double }

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.275 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.276 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.277 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.278 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.279 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.280 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.281 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.282 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.283 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

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

declare noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(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 void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr 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 i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z10testortfacbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #5 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %5 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca %"struct.alglib_impl::hqrndstate", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %3)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %4, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %5, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %14, i8 0, i64 24, i1 false)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %4, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %14, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef %1)
  store i8 0, ptr %6, align 1, !tbaa !5
  store i8 0, ptr %7, align 1, !tbaa !5
  store i8 0, ptr %8, align 1, !tbaa !5
  store i8 0, ptr %9, align 1, !tbaa !5
  store i8 0, ptr %10, align 1, !tbaa !5
  store i8 0, ptr %11, align 1, !tbaa !5
  store i8 0, ptr %12, align 1, !tbaa !5
  store i8 0, ptr %13, align 1, !tbaa !5
  %15 = call noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef %1)
  %.not475 = icmp slt i64 %15, 0
  br i1 %.not475, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %16 = getelementptr inbounds i8, ptr %4, i64 72
  %17 = getelementptr inbounds i8, ptr %5, i64 72
  br label %18

18:                                               ; preds = %.lr.ph, %200
  %.0476 = phi i64 [ 1, %.lr.ph ], [ %201, %200 ]
  %19 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %.0476, ptr noundef %1)
  %20 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %.0476, ptr noundef %1)
  %21 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %22 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %21, double noundef 5.000000e-01)
  %23 = add nsw i64 %20, 1
  %24 = add nsw i64 %19, 1
  %.0397 = select i1 %22, i64 %.0476, i64 %24
  %.0395 = select i1 %22, i64 %23, i64 %.0476
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0395, i64 noundef %.0397, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0395, i64 noundef %.0397, ptr noundef %1)
  %.not424.not454 = icmp sgt i64 %.0395, 0
  %.not439.not452 = icmp sgt i64 %.0397, 0
  %or.cond = and i1 %.not424.not454, %.not439.not452
  br i1 %or.cond, label %.preheader449.us, label %._crit_edge456

.preheader449.us:                                 ; preds = %18, %._crit_edge.us
  %.0399455.us = phi i64 [ %38, %._crit_edge.us ], [ 0, %18 ]
  br label %25

25:                                               ; preds = %.preheader449.us, %25
  %.0401453.us = phi i64 [ 0, %.preheader449.us ], [ %37, %25 ]
  %26 = load ptr, ptr %16, align 8, !tbaa !9
  %27 = getelementptr inbounds ptr, ptr %26, i64 %.0399455.us
  %28 = load ptr, ptr %27, align 8, !tbaa !10
  %29 = getelementptr inbounds double, ptr %28, i64 %.0401453.us
  store double 0.000000e+00, ptr %29, align 8, !tbaa !12
  %30 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %31 = extractvalue { double, double } %30, 0
  %32 = extractvalue { double, double } %30, 1
  %33 = load ptr, ptr %17, align 8, !tbaa !9
  %34 = getelementptr inbounds ptr, ptr %33, i64 %.0399455.us
  %35 = load ptr, ptr %34, align 8, !tbaa !10
  %36 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %35, i64 %.0401453.us
  store double %31, ptr %36, align 8, !tbaa !12
  %.sroa.421.0..sroa_idx.us = getelementptr inbounds i8, ptr %36, i64 8
  store double %32, ptr %.sroa.421.0..sroa_idx.us, align 8, !tbaa !12
  %37 = add nuw nsw i64 %.0401453.us, 1
  %exitcond.not = icmp eq i64 %37, %.0397
  br i1 %exitcond.not, label %._crit_edge.us, label %25, !llvm.loop !14

._crit_edge.us:                                   ; preds = %25
  %38 = add nuw nsw i64 %.0399455.us, 1
  %exitcond506.not = icmp eq i64 %38, %.0395
  br i1 %exitcond506.not, label %._crit_edge456, label %.preheader449.us, !llvm.loop !16

._crit_edge456:                                   ; preds = %._crit_edge.us, %18
  call void @_ZL29testortfacunit_testrqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZL29testortfacunit_testrlqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZL29testortfacunit_testcqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %8, ptr noundef %1)
  call void @_ZL29testortfacunit_testclqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %9, ptr noundef %1)
  call void @_ZL29testortfacunit_testrbdproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %10, ptr noundef %1)
  %.not438.not457 = icmp sgt i64 %.0397, 0
  %or.cond525 = and i1 %.not424.not454, %.not438.not457
  br i1 %or.cond525, label %.preheader448.us, label %._crit_edge461

.preheader448.us:                                 ; preds = %._crit_edge456, %._crit_edge.us462
  %.1400460.us = phi i64 [ %59, %._crit_edge.us462 ], [ 0, %._crit_edge456 ]
  br label %39

39:                                               ; preds = %.preheader448.us, %39
  %.1402458.us = phi i64 [ 0, %.preheader448.us ], [ %58, %39 ]
  %40 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %41 = call double @llvm.fmuladd.f64(double %40, double 2.000000e+00, double -1.000000e+00)
  %42 = load ptr, ptr %16, align 8, !tbaa !9
  %43 = getelementptr inbounds ptr, ptr %42, i64 %.1400460.us
  %44 = load ptr, ptr %43, align 8, !tbaa !10
  %45 = getelementptr inbounds double, ptr %44, i64 %.1402458.us
  store double %41, ptr %45, align 8, !tbaa !12
  %46 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %47 = call double @llvm.fmuladd.f64(double %46, double 2.000000e+00, double -1.000000e+00)
  %48 = load ptr, ptr %17, align 8, !tbaa !9
  %49 = getelementptr inbounds ptr, ptr %48, i64 %.1400460.us
  %50 = load ptr, ptr %49, align 8, !tbaa !10
  %51 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %50, i64 %.1402458.us
  store double %47, ptr %51, align 8, !tbaa !17
  %52 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %53 = call double @llvm.fmuladd.f64(double %52, double 2.000000e+00, double -1.000000e+00)
  %54 = load ptr, ptr %17, align 8, !tbaa !9
  %55 = getelementptr inbounds ptr, ptr %54, i64 %.1400460.us
  %56 = load ptr, ptr %55, align 8, !tbaa !10
  %57 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %56, i64 %.1402458.us, i32 1
  store double %53, ptr %57, align 8, !tbaa !19
  %58 = add nuw nsw i64 %.1402458.us, 1
  %exitcond507.not = icmp eq i64 %58, %.0397
  br i1 %exitcond507.not, label %._crit_edge.us462, label %39, !llvm.loop !20

._crit_edge.us462:                                ; preds = %39
  %59 = add nuw nsw i64 %.1400460.us, 1
  %exitcond508.not = icmp eq i64 %59, %.0395
  br i1 %exitcond508.not, label %._crit_edge461, label %.preheader448.us, !llvm.loop !21

._crit_edge461:                                   ; preds = %._crit_edge.us462, %._crit_edge456
  call void @_ZL29testortfacunit_testrqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZL29testortfacunit_testrlqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZL29testortfacunit_testcqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %8, ptr noundef %1)
  call void @_ZL29testortfacunit_testclqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %9, ptr noundef %1)
  call void @_ZL29testortfacunit_testrbdproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZL33testortfacunit_rmatrixfillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3FEE666666666666, ptr noundef %1)
  call void @_ZL33testortfacunit_cmatrixfillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3FEE666666666666, ptr noundef %1)
  call void @_ZL29testortfacunit_testrqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZL29testortfacunit_testrlqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZL29testortfacunit_testcqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %8, ptr noundef %1)
  call void @_ZL29testortfacunit_testclqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %9, ptr noundef %1)
  call void @_ZL29testortfacunit_testrbdproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0395, i64 noundef %.0397, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0476, i64 noundef %.0476, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0476, i64 noundef %.0476, ptr noundef %1)
  br label %.preheader447

.preheader447:                                    ; preds = %._crit_edge461, %73
  %.2464 = phi i64 [ 0, %._crit_edge461 ], [ %74, %73 ]
  br label %60

60:                                               ; preds = %.preheader447, %60
  %.2403463 = phi i64 [ 0, %.preheader447 ], [ %72, %60 ]
  %61 = load ptr, ptr %16, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %61, i64 %.2464
  %63 = load ptr, ptr %62, align 8, !tbaa !10
  %64 = getelementptr inbounds double, ptr %63, i64 %.2403463
  store double 0.000000e+00, ptr %64, align 8, !tbaa !12
  %65 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %66 = extractvalue { double, double } %65, 0
  %67 = extractvalue { double, double } %65, 1
  %68 = load ptr, ptr %17, align 8, !tbaa !9
  %69 = getelementptr inbounds ptr, ptr %68, i64 %.2464
  %70 = load ptr, ptr %69, align 8, !tbaa !10
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %70, i64 %.2403463
  store double %66, ptr %71, align 8, !tbaa !12
  %.sroa.419.0..sroa_idx = getelementptr inbounds i8, ptr %71, i64 8
  store double %67, ptr %.sroa.419.0..sroa_idx, align 8, !tbaa !12
  %72 = add nuw nsw i64 %.2403463, 1
  %exitcond509.not = icmp eq i64 %72, %.0476
  br i1 %exitcond509.not, label %73, label %60, !llvm.loop !22

73:                                               ; preds = %60
  %74 = add nuw nsw i64 %.2464, 1
  %exitcond510.not = icmp eq i64 %74, %.0476
  br i1 %exitcond510.not, label %75, label %.preheader447, !llvm.loop !23

75:                                               ; preds = %73
  call void @_ZL31testortfacunit_testrhessproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0476, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %11, ptr noundef %1)
  br label %.preheader446

.preheader446:                                    ; preds = %75, %96
  %.3466 = phi i64 [ 0, %75 ], [ %97, %96 ]
  br label %76

76:                                               ; preds = %.preheader446, %76
  %.3404465 = phi i64 [ 0, %.preheader446 ], [ %95, %76 ]
  %77 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %78 = call double @llvm.fmuladd.f64(double %77, double 2.000000e+00, double -1.000000e+00)
  %79 = load ptr, ptr %16, align 8, !tbaa !9
  %80 = getelementptr inbounds ptr, ptr %79, i64 %.3466
  %81 = load ptr, ptr %80, align 8, !tbaa !10
  %82 = getelementptr inbounds double, ptr %81, i64 %.3404465
  store double %78, ptr %82, align 8, !tbaa !12
  %83 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %84 = call double @llvm.fmuladd.f64(double %83, double 2.000000e+00, double -1.000000e+00)
  %85 = load ptr, ptr %17, align 8, !tbaa !9
  %86 = getelementptr inbounds ptr, ptr %85, i64 %.3466
  %87 = load ptr, ptr %86, align 8, !tbaa !10
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %87, i64 %.3404465
  store double %84, ptr %88, align 8, !tbaa !17
  %89 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %90 = call double @llvm.fmuladd.f64(double %89, double 2.000000e+00, double -1.000000e+00)
  %91 = load ptr, ptr %17, align 8, !tbaa !9
  %92 = getelementptr inbounds ptr, ptr %91, i64 %.3466
  %93 = load ptr, ptr %92, align 8, !tbaa !10
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %93, i64 %.3404465, i32 1
  store double %90, ptr %94, align 8, !tbaa !19
  %95 = add nuw nsw i64 %.3404465, 1
  %exitcond511.not = icmp eq i64 %95, %.0476
  br i1 %exitcond511.not, label %96, label %76, !llvm.loop !24

96:                                               ; preds = %76
  %97 = add nuw nsw i64 %.3466, 1
  %exitcond512.not = icmp eq i64 %97, %.0476
  br i1 %exitcond512.not, label %98, label %.preheader446, !llvm.loop !25

98:                                               ; preds = %96
  call void @_ZL31testortfacunit_testrhessproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0476, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %11, ptr noundef %1)
  call void @_ZL33testortfacunit_rmatrixfillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0476, i64 noundef %.0476, double noundef 0x3FEE666666666666, ptr noundef %1)
  call void @_ZL33testortfacunit_cmatrixfillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0476, i64 noundef %.0476, double noundef 0x3FEE666666666666, ptr noundef %1)
  call void @_ZL31testortfacunit_testrhessproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0476, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %11, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0476, i64 noundef %.0476, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0476, i64 noundef %.0476, ptr noundef %1)
  br label %.preheader445

.preheader445:                                    ; preds = %98, %112
  %.4468 = phi i64 [ 0, %98 ], [ %113, %112 ]
  br label %99

99:                                               ; preds = %.preheader445, %99
  %.4405467 = phi i64 [ 0, %.preheader445 ], [ %111, %99 ]
  %100 = load ptr, ptr %16, align 8, !tbaa !9
  %101 = getelementptr inbounds ptr, ptr %100, i64 %.4468
  %102 = load ptr, ptr %101, align 8, !tbaa !10
  %103 = getelementptr inbounds double, ptr %102, i64 %.4405467
  store double 0.000000e+00, ptr %103, align 8, !tbaa !12
  %104 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %105 = extractvalue { double, double } %104, 0
  %106 = extractvalue { double, double } %104, 1
  %107 = load ptr, ptr %17, align 8, !tbaa !9
  %108 = getelementptr inbounds ptr, ptr %107, i64 %.4468
  %109 = load ptr, ptr %108, align 8, !tbaa !10
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %109, i64 %.4405467
  store double %105, ptr %110, align 8, !tbaa !12
  %.sroa.417.0..sroa_idx = getelementptr inbounds i8, ptr %110, i64 8
  store double %106, ptr %.sroa.417.0..sroa_idx, align 8, !tbaa !12
  %111 = add nuw nsw i64 %.4405467, 1
  %exitcond513.not = icmp eq i64 %111, %.0476
  br i1 %exitcond513.not, label %112, label %99, !llvm.loop !26

112:                                              ; preds = %99
  %113 = add nuw nsw i64 %.4468, 1
  %exitcond514.not = icmp eq i64 %113, %.0476
  br i1 %exitcond514.not, label %114, label %.preheader445, !llvm.loop !27

114:                                              ; preds = %112
  call void @_ZL29testortfacunit_testrtdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0476, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %12, ptr noundef %1)
  call void @_ZL29testortfacunit_testctdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0476, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %13, ptr noundef %1)
  br label %.preheader444

.preheader444:                                    ; preds = %114, %154
  %.5470 = phi i64 [ 0, %114 ], [ %155, %154 ]
  br label %115

115:                                              ; preds = %.preheader444, %115
  %.5406469 = phi i64 [ %.5470, %.preheader444 ], [ %153, %115 ]
  %116 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %117 = call double @llvm.fmuladd.f64(double %116, double 2.000000e+00, double -1.000000e+00)
  %118 = load ptr, ptr %16, align 8, !tbaa !9
  %119 = getelementptr inbounds ptr, ptr %118, i64 %.5470
  %120 = load ptr, ptr %119, align 8, !tbaa !10
  %121 = getelementptr inbounds double, ptr %120, i64 %.5406469
  store double %117, ptr %121, align 8, !tbaa !12
  %122 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %123 = call double @llvm.fmuladd.f64(double %122, double 2.000000e+00, double -1.000000e+00)
  %124 = load ptr, ptr %17, align 8, !tbaa !9
  %125 = getelementptr inbounds ptr, ptr %124, i64 %.5470
  %126 = load ptr, ptr %125, align 8, !tbaa !10
  %127 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %126, i64 %.5406469
  store double %123, ptr %127, align 8, !tbaa !17
  %128 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %129 = call double @llvm.fmuladd.f64(double %128, double 2.000000e+00, double -1.000000e+00)
  %130 = load ptr, ptr %17, align 8, !tbaa !9
  %131 = getelementptr inbounds ptr, ptr %130, i64 %.5470
  %132 = load ptr, ptr %131, align 8, !tbaa !10
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %132, i64 %.5406469, i32 1
  store double %129, ptr %133, align 8, !tbaa !19
  %134 = load ptr, ptr %16, align 8, !tbaa !9
  %135 = getelementptr inbounds ptr, ptr %134, i64 %.5470
  %136 = load ptr, ptr %135, align 8, !tbaa !10
  %137 = getelementptr inbounds double, ptr %136, i64 %.5406469
  %138 = load double, ptr %137, align 8, !tbaa !12
  %139 = getelementptr inbounds ptr, ptr %134, i64 %.5406469
  %140 = load ptr, ptr %139, align 8, !tbaa !10
  %141 = getelementptr inbounds double, ptr %140, i64 %.5470
  store double %138, ptr %141, align 8, !tbaa !12
  %142 = load ptr, ptr %17, align 8, !tbaa !9
  %143 = getelementptr inbounds ptr, ptr %142, i64 %.5470
  %144 = load ptr, ptr %143, align 8, !tbaa !10
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %144, i64 %.5406469
  %.sroa.012.0.copyload = load double, ptr %145, align 8, !tbaa !12
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %145, i64 8
  %.sroa.213.0.copyload = load double, ptr %.sroa.213.0..sroa_idx, align 8, !tbaa !12
  %146 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %.sroa.012.0.copyload, double %.sroa.213.0.copyload, ptr noundef %1)
  %147 = extractvalue { double, double } %146, 0
  %148 = extractvalue { double, double } %146, 1
  %149 = load ptr, ptr %17, align 8, !tbaa !9
  %150 = getelementptr inbounds ptr, ptr %149, i64 %.5406469
  %151 = load ptr, ptr %150, align 8, !tbaa !10
  %152 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %151, i64 %.5470
  store double %147, ptr %152, align 8, !tbaa !12
  %.sroa.415.0..sroa_idx = getelementptr inbounds i8, ptr %152, i64 8
  store double %148, ptr %.sroa.415.0..sroa_idx, align 8, !tbaa !12
  %153 = add nuw nsw i64 %.5406469, 1
  %.not434.not = icmp ult i64 %153, %.0476
  br i1 %.not434.not, label %115, label %154, !llvm.loop !28

154:                                              ; preds = %115
  %155 = add nuw nsw i64 %.5470, 1
  %exitcond515.not = icmp eq i64 %155, %.0476
  br i1 %exitcond515.not, label %.preheader451, label %.preheader444, !llvm.loop !29

.preheader451:                                    ; preds = %154, %.preheader451
  %.6471 = phi i64 [ %165, %.preheader451 ], [ 0, %154 ]
  %156 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %157 = call double @llvm.fmuladd.f64(double %156, double 2.000000e+00, double -1.000000e+00)
  %158 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %157)
  %159 = extractvalue { double, double } %158, 0
  %160 = extractvalue { double, double } %158, 1
  %161 = load ptr, ptr %17, align 8, !tbaa !9
  %162 = getelementptr inbounds ptr, ptr %161, i64 %.6471
  %163 = load ptr, ptr %162, align 8, !tbaa !10
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %163, i64 %.6471
  store double %159, ptr %164, align 8, !tbaa !12
  %.sroa.411.0..sroa_idx = getelementptr inbounds i8, ptr %164, i64 8
  store double %160, ptr %.sroa.411.0..sroa_idx, align 8, !tbaa !12
  %165 = add nuw nsw i64 %.6471, 1
  %exitcond516.not = icmp eq i64 %165, %.0476
  br i1 %exitcond516.not, label %166, label %.preheader451, !llvm.loop !30

166:                                              ; preds = %.preheader451
  call void @_ZL29testortfacunit_testrtdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0476, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %12, ptr noundef %1)
  call void @_ZL29testortfacunit_testctdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0476, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %13, ptr noundef %1)
  call void @_ZL33testortfacunit_rmatrixfillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0476, i64 noundef %.0476, double noundef 0x3FEE666666666666, ptr noundef %1)
  call void @_ZL33testortfacunit_cmatrixfillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0476, i64 noundef %.0476, double noundef 0x3FEE666666666666, ptr noundef %1)
  br label %.preheader443

.preheader443:                                    ; preds = %166, %188
  %.7473 = phi i64 [ 0, %166 ], [ %189, %188 ]
  br label %167

167:                                              ; preds = %.preheader443, %167
  %.6407472 = phi i64 [ %.7473, %.preheader443 ], [ %187, %167 ]
  %168 = load ptr, ptr %16, align 8, !tbaa !9
  %169 = getelementptr inbounds ptr, ptr %168, i64 %.7473
  %170 = load ptr, ptr %169, align 8, !tbaa !10
  %171 = getelementptr inbounds double, ptr %170, i64 %.6407472
  %172 = load double, ptr %171, align 8, !tbaa !12
  %173 = getelementptr inbounds ptr, ptr %168, i64 %.6407472
  %174 = load ptr, ptr %173, align 8, !tbaa !10
  %175 = getelementptr inbounds double, ptr %174, i64 %.7473
  store double %172, ptr %175, align 8, !tbaa !12
  %176 = load ptr, ptr %17, align 8, !tbaa !9
  %177 = getelementptr inbounds ptr, ptr %176, i64 %.7473
  %178 = load ptr, ptr %177, align 8, !tbaa !10
  %179 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %178, i64 %.6407472
  %.sroa.06.0.copyload = load double, ptr %179, align 8, !tbaa !12
  %.sroa.27.0..sroa_idx = getelementptr inbounds i8, ptr %179, i64 8
  %.sroa.27.0.copyload = load double, ptr %.sroa.27.0..sroa_idx, align 8, !tbaa !12
  %180 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %.sroa.06.0.copyload, double %.sroa.27.0.copyload, ptr noundef %1)
  %181 = extractvalue { double, double } %180, 0
  %182 = extractvalue { double, double } %180, 1
  %183 = load ptr, ptr %17, align 8, !tbaa !9
  %184 = getelementptr inbounds ptr, ptr %183, i64 %.6407472
  %185 = load ptr, ptr %184, align 8, !tbaa !10
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %185, i64 %.7473
  store double %181, ptr %186, align 8, !tbaa !12
  %.sroa.49.0..sroa_idx = getelementptr inbounds i8, ptr %186, i64 8
  store double %182, ptr %.sroa.49.0..sroa_idx, align 8, !tbaa !12
  %187 = add nuw nsw i64 %.6407472, 1
  %.not433.not = icmp ult i64 %187, %.0476
  br i1 %.not433.not, label %167, label %188, !llvm.loop !31

188:                                              ; preds = %167
  %189 = add nuw nsw i64 %.7473, 1
  %exitcond517.not = icmp eq i64 %189, %.0476
  br i1 %exitcond517.not, label %.preheader450, label %.preheader443, !llvm.loop !32

.preheader450:                                    ; preds = %188, %.preheader450
  %.8474 = phi i64 [ %199, %.preheader450 ], [ 0, %188 ]
  %190 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %191 = call double @llvm.fmuladd.f64(double %190, double 2.000000e+00, double -1.000000e+00)
  %192 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %191)
  %193 = extractvalue { double, double } %192, 0
  %194 = extractvalue { double, double } %192, 1
  %195 = load ptr, ptr %17, align 8, !tbaa !9
  %196 = getelementptr inbounds ptr, ptr %195, i64 %.8474
  %197 = load ptr, ptr %196, align 8, !tbaa !10
  %198 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %197, i64 %.8474
  store double %193, ptr %198, align 8, !tbaa !12
  %.sroa.45.0..sroa_idx = getelementptr inbounds i8, ptr %198, i64 8
  store double %194, ptr %.sroa.45.0..sroa_idx, align 8, !tbaa !12
  %199 = add nuw nsw i64 %.8474, 1
  %exitcond518.not = icmp eq i64 %199, %.0476
  br i1 %exitcond518.not, label %200, label %.preheader450, !llvm.loop !33

200:                                              ; preds = %.preheader450
  call void @_ZL29testortfacunit_testrtdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0476, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %12, ptr noundef %1)
  call void @_ZL29testortfacunit_testctdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0476, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %13, ptr noundef %1)
  %201 = add nuw nsw i64 %.0476, 1
  %202 = call noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef %1)
  %203 = mul nsw i64 %202, 3
  %.not = icmp sgt i64 %.0476, %203
  br i1 %.not, label %._crit_edge, label %18, !llvm.loop !34

._crit_edge:                                      ; preds = %200, %2
  %204 = call noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef %1)
  %205 = call noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef %1)
  %.not416498 = icmp sgt i64 %204, %205
  br i1 %.not416498, label %._crit_edge502, label %.lr.ph501

.lr.ph501:                                        ; preds = %._crit_edge
  %206 = shl nsw i64 %204, 2
  %207 = getelementptr inbounds i8, ptr %4, i64 72
  %208 = getelementptr inbounds i8, ptr %5, i64 72
  br label %209

209:                                              ; preds = %.lr.ph501, %._crit_edge497
  %.1499 = phi i64 [ %206, %.lr.ph501 ], [ %309, %._crit_edge497 ]
  %210 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %.1499, ptr noundef %1)
  %211 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %.1499, ptr noundef %1)
  %212 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %213 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %212, double noundef 5.000000e-01)
  %214 = add nsw i64 %211, 1
  %215 = add nsw i64 %210, 1
  %.1398 = select i1 %213, i64 %.1499, i64 %215
  %.1396 = select i1 %213, i64 %214, i64 %.1499
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1396, i64 noundef %.1398, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1396, i64 noundef %.1398, ptr noundef %1)
  %.not417.not481 = icmp sgt i64 %.1396, 0
  %.not423.not477 = icmp sgt i64 %.1398, 0
  %or.cond526 = and i1 %.not417.not481, %.not423.not477
  br i1 %or.cond526, label %.preheader441.us, label %._crit_edge483

.preheader441.us:                                 ; preds = %209, %._crit_edge480.us
  %.9482.us = phi i64 [ %236, %._crit_edge480.us ], [ 0, %209 ]
  br label %216

216:                                              ; preds = %.preheader441.us, %216
  %.7408478.us = phi i64 [ 0, %.preheader441.us ], [ %235, %216 ]
  %217 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %218 = call double @llvm.fmuladd.f64(double %217, double 2.000000e+00, double -1.000000e+00)
  %219 = load ptr, ptr %207, align 8, !tbaa !9
  %220 = getelementptr inbounds ptr, ptr %219, i64 %.9482.us
  %221 = load ptr, ptr %220, align 8, !tbaa !10
  %222 = getelementptr inbounds double, ptr %221, i64 %.7408478.us
  store double %218, ptr %222, align 8, !tbaa !12
  %223 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %224 = call double @llvm.fmuladd.f64(double %223, double 2.000000e+00, double -1.000000e+00)
  %225 = load ptr, ptr %208, align 8, !tbaa !9
  %226 = getelementptr inbounds ptr, ptr %225, i64 %.9482.us
  %227 = load ptr, ptr %226, align 8, !tbaa !10
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %227, i64 %.7408478.us
  store double %224, ptr %228, align 8, !tbaa !17
  %229 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %230 = call double @llvm.fmuladd.f64(double %229, double 2.000000e+00, double -1.000000e+00)
  %231 = load ptr, ptr %208, align 8, !tbaa !9
  %232 = getelementptr inbounds ptr, ptr %231, i64 %.9482.us
  %233 = load ptr, ptr %232, align 8, !tbaa !10
  %234 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %233, i64 %.7408478.us, i32 1
  store double %230, ptr %234, align 8, !tbaa !19
  %235 = add nuw nsw i64 %.7408478.us, 1
  %exitcond519.not = icmp eq i64 %235, %.1398
  br i1 %exitcond519.not, label %._crit_edge480.us, label %216, !llvm.loop !35

._crit_edge480.us:                                ; preds = %216
  %236 = add nuw nsw i64 %.9482.us, 1
  %exitcond520.not = icmp eq i64 %236, %.1396
  br i1 %exitcond520.not, label %._crit_edge483, label %.preheader441.us, !llvm.loop !36

._crit_edge483:                                   ; preds = %._crit_edge480.us, %209
  call void @_ZL29testortfacunit_testrqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1396, i64 noundef %.1398, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZL29testortfacunit_testrlqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1396, i64 noundef %.1398, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZL29testortfacunit_testcqrproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1396, i64 noundef %.1398, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %8, ptr noundef %1)
  call void @_ZL29testortfacunit_testclqproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1396, i64 noundef %.1398, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %9, ptr noundef %1)
  call void @_ZL29testortfacunit_testrbdproblemPN11alglib_impl9ae_matrixElldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1396, i64 noundef %.1398, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1499, i64 noundef %.1499, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1499, i64 noundef %.1499, ptr noundef %1)
  %.not418.not488 = icmp sgt i64 %.1499, 0
  br i1 %.not418.not488, label %.preheader440.us, label %._crit_edge497.critedge

.preheader440.us:                                 ; preds = %._crit_edge483, %._crit_edge487.us
  %.10489.us = phi i64 [ %257, %._crit_edge487.us ], [ 0, %._crit_edge483 ]
  br label %237

237:                                              ; preds = %.preheader440.us, %237
  %.8409485.us = phi i64 [ 0, %.preheader440.us ], [ %256, %237 ]
  %238 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %239 = call double @llvm.fmuladd.f64(double %238, double 2.000000e+00, double -1.000000e+00)
  %240 = load ptr, ptr %207, align 8, !tbaa !9
  %241 = getelementptr inbounds ptr, ptr %240, i64 %.10489.us
  %242 = load ptr, ptr %241, align 8, !tbaa !10
  %243 = getelementptr inbounds double, ptr %242, i64 %.8409485.us
  store double %239, ptr %243, align 8, !tbaa !12
  %244 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %245 = call double @llvm.fmuladd.f64(double %244, double 2.000000e+00, double -1.000000e+00)
  %246 = load ptr, ptr %208, align 8, !tbaa !9
  %247 = getelementptr inbounds ptr, ptr %246, i64 %.10489.us
  %248 = load ptr, ptr %247, align 8, !tbaa !10
  %249 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %248, i64 %.8409485.us
  store double %245, ptr %249, align 8, !tbaa !17
  %250 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %251 = call double @llvm.fmuladd.f64(double %250, double 2.000000e+00, double -1.000000e+00)
  %252 = load ptr, ptr %208, align 8, !tbaa !9
  %253 = getelementptr inbounds ptr, ptr %252, i64 %.10489.us
  %254 = load ptr, ptr %253, align 8, !tbaa !10
  %255 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %254, i64 %.8409485.us, i32 1
  store double %251, ptr %255, align 8, !tbaa !19
  %256 = add nuw nsw i64 %.8409485.us, 1
  %exitcond521.not = icmp eq i64 %256, %.1499
  br i1 %exitcond521.not, label %._crit_edge487.us, label %237, !llvm.loop !37

._crit_edge487.us:                                ; preds = %237
  %257 = add nuw nsw i64 %.10489.us, 1
  %exitcond522.not = icmp eq i64 %257, %.1499
  br i1 %exitcond522.not, label %._crit_edge490.split.us, label %.preheader440.us, !llvm.loop !38

._crit_edge490.split.us:                          ; preds = %._crit_edge487.us
  call void @_ZL31testortfacunit_testrhessproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1499, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %11, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1499, i64 noundef %.1499, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1499, i64 noundef %.1499, ptr noundef %1)
  br i1 %.not418.not488, label %.preheader, label %._crit_edge497

.preheader442:                                    ; preds = %297
  br i1 %.not418.not488, label %.lr.ph496, label %._crit_edge497

.preheader:                                       ; preds = %._crit_edge490.split.us, %297
  %.11493 = phi i64 [ %298, %297 ], [ 0, %._crit_edge490.split.us ]
  br label %258

258:                                              ; preds = %.preheader, %258
  %.9410491 = phi i64 [ %.11493, %.preheader ], [ %296, %258 ]
  %259 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %260 = call double @llvm.fmuladd.f64(double %259, double 2.000000e+00, double -1.000000e+00)
  %261 = load ptr, ptr %207, align 8, !tbaa !9
  %262 = getelementptr inbounds ptr, ptr %261, i64 %.11493
  %263 = load ptr, ptr %262, align 8, !tbaa !10
  %264 = getelementptr inbounds double, ptr %263, i64 %.9410491
  store double %260, ptr %264, align 8, !tbaa !12
  %265 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %266 = call double @llvm.fmuladd.f64(double %265, double 2.000000e+00, double -1.000000e+00)
  %267 = load ptr, ptr %208, align 8, !tbaa !9
  %268 = getelementptr inbounds ptr, ptr %267, i64 %.11493
  %269 = load ptr, ptr %268, align 8, !tbaa !10
  %270 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %269, i64 %.9410491
  store double %266, ptr %270, align 8, !tbaa !17
  %271 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %272 = call double @llvm.fmuladd.f64(double %271, double 2.000000e+00, double -1.000000e+00)
  %273 = load ptr, ptr %208, align 8, !tbaa !9
  %274 = getelementptr inbounds ptr, ptr %273, i64 %.11493
  %275 = load ptr, ptr %274, align 8, !tbaa !10
  %276 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %275, i64 %.9410491, i32 1
  store double %272, ptr %276, align 8, !tbaa !19
  %277 = load ptr, ptr %207, align 8, !tbaa !9
  %278 = getelementptr inbounds ptr, ptr %277, i64 %.11493
  %279 = load ptr, ptr %278, align 8, !tbaa !10
  %280 = getelementptr inbounds double, ptr %279, i64 %.9410491
  %281 = load double, ptr %280, align 8, !tbaa !12
  %282 = getelementptr inbounds ptr, ptr %277, i64 %.9410491
  %283 = load ptr, ptr %282, align 8, !tbaa !10
  %284 = getelementptr inbounds double, ptr %283, i64 %.11493
  store double %281, ptr %284, align 8, !tbaa !12
  %285 = load ptr, ptr %208, align 8, !tbaa !9
  %286 = getelementptr inbounds ptr, ptr %285, i64 %.11493
  %287 = load ptr, ptr %286, align 8, !tbaa !10
  %288 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %287, i64 %.9410491
  %.sroa.01.0.copyload = load double, ptr %288, align 8, !tbaa !12
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %288, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !12
  %289 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %.sroa.01.0.copyload, double %.sroa.2.0.copyload, ptr noundef %1)
  %290 = extractvalue { double, double } %289, 0
  %291 = extractvalue { double, double } %289, 1
  %292 = load ptr, ptr %208, align 8, !tbaa !9
  %293 = getelementptr inbounds ptr, ptr %292, i64 %.9410491
  %294 = load ptr, ptr %293, align 8, !tbaa !10
  %295 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %294, i64 %.11493
  store double %290, ptr %295, align 8, !tbaa !12
  %.sroa.43.0..sroa_idx = getelementptr inbounds i8, ptr %295, i64 8
  store double %291, ptr %.sroa.43.0..sroa_idx, align 8, !tbaa !12
  %296 = add nuw nsw i64 %.9410491, 1
  %.not421.not = icmp slt i64 %296, %.1499
  br i1 %.not421.not, label %258, label %297, !llvm.loop !39

297:                                              ; preds = %258
  %298 = add nuw nsw i64 %.11493, 1
  %exitcond523.not = icmp eq i64 %298, %.1499
  br i1 %exitcond523.not, label %.preheader442, label %.preheader, !llvm.loop !40

.lr.ph496:                                        ; preds = %.preheader442, %.lr.ph496
  %.12495 = phi i64 [ %308, %.lr.ph496 ], [ 0, %.preheader442 ]
  %299 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %300 = call double @llvm.fmuladd.f64(double %299, double 2.000000e+00, double -1.000000e+00)
  %301 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %300)
  %302 = extractvalue { double, double } %301, 0
  %303 = extractvalue { double, double } %301, 1
  %304 = load ptr, ptr %208, align 8, !tbaa !9
  %305 = getelementptr inbounds ptr, ptr %304, i64 %.12495
  %306 = load ptr, ptr %305, align 8, !tbaa !10
  %307 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %306, i64 %.12495
  store double %302, ptr %307, align 8, !tbaa !12
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %307, i64 8
  store double %303, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !12
  %308 = add nuw nsw i64 %.12495, 1
  %exitcond524.not = icmp eq i64 %308, %.1499
  br i1 %exitcond524.not, label %._crit_edge497, label %.lr.ph496, !llvm.loop !41

._crit_edge497.critedge:                          ; preds = %._crit_edge483
  call void @_ZL31testortfacunit_testrhessproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1499, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %11, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1499, i64 noundef %.1499, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1499, i64 noundef %.1499, ptr noundef %1)
  br label %._crit_edge497

._crit_edge497:                                   ; preds = %.lr.ph496, %._crit_edge497.critedge, %._crit_edge490.split.us, %.preheader442
  call void @_ZL29testortfacunit_testrtdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1499, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %12, ptr noundef %1)
  call void @_ZL29testortfacunit_testctdproblemPN11alglib_impl9ae_matrixEldPbPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1499, double noundef 0x3D85FD7FE1796496, ptr noundef nonnull %13, ptr noundef %1)
  %309 = add nsw i64 %.1499, 1
  %310 = call noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef %1)
  %311 = shl nsw i64 %310, 2
  %.not416.not = icmp slt i64 %.1499, %311
  br i1 %.not416.not, label %209, label %._crit_edge502, !llvm.loop !42

._crit_edge502:                                   ; preds = %._crit_edge497, %._crit_edge
  %312 = load i8, ptr %6, align 1, !tbaa !5, !range !43, !noundef !44
  %313 = trunc nuw i8 %312 to i1
  br i1 %313, label %335, label %314

314:                                              ; preds = %._crit_edge502
  %315 = load i8, ptr %7, align 1, !tbaa !5, !range !43, !noundef !44
  %316 = trunc nuw i8 %315 to i1
  br i1 %316, label %335, label %317

317:                                              ; preds = %314
  %318 = load i8, ptr %8, align 1, !tbaa !5, !range !43, !noundef !44
  %319 = trunc nuw i8 %318 to i1
  br i1 %319, label %335, label %320

320:                                              ; preds = %317
  %321 = load i8, ptr %9, align 1, !tbaa !5, !range !43, !noundef !44
  %322 = trunc nuw i8 %321 to i1
  br i1 %322, label %335, label %323

323:                                              ; preds = %320
  %324 = load i8, ptr %10, align 1, !tbaa !5, !range !43, !noundef !44
  %325 = trunc nuw i8 %324 to i1
  br i1 %325, label %335, label %326

326:                                              ; preds = %323
  %327 = load i8, ptr %11, align 1, !tbaa !5, !range !43, !noundef !44
  %328 = trunc nuw i8 %327 to i1
  br i1 %328, label %335, label %329

329:                                              ; preds = %326
  %330 = load i8, ptr %12, align 1, !tbaa !5, !range !43, !noundef !44
  %331 = trunc nuw i8 %330 to i1
  br i1 %331, label %335, label %332

332:                                              ; preds = %329
  %333 = load i8, ptr %13, align 1, !tbaa !5, !range !43, !noundef !44
  %334 = trunc nuw i8 %333 to i1
  br label %335

335:                                              ; preds = %332, %329, %326, %323, %320, %317, %314, %._crit_edge502
  %336 = phi i1 [ true, %329 ], [ true, %326 ], [ true, %323 ], [ true, %320 ], [ true, %317 ], [ true, %314 ], [ true, %._crit_edge502 ], [ %334, %332 ]
  br i1 %0, label %373, label %337

337:                                              ; preds = %335
  %338 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.275)
  %339 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.276)
  %340 = load i8, ptr %6, align 1, !tbaa !5, !range !43, !noundef !44
  %341 = trunc nuw i8 %340 to i1
  %.str.7..str.6 = select i1 %341, ptr @.str.7, ptr @.str.6
  %342 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %343 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.277)
  %344 = load i8, ptr %7, align 1, !tbaa !5, !range !43, !noundef !44
  %345 = trunc nuw i8 %344 to i1
  %.str.7.sink527 = select i1 %345, ptr @.str.7, ptr @.str.6
  %346 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink527)
  %347 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.278)
  %348 = load i8, ptr %8, align 1, !tbaa !5, !range !43, !noundef !44
  %349 = trunc nuw i8 %348 to i1
  %.str.7.sink528 = select i1 %349, ptr @.str.7, ptr @.str.6
  %350 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink528)
  %351 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.279)
  %352 = load i8, ptr %9, align 1, !tbaa !5, !range !43, !noundef !44
  %353 = trunc nuw i8 %352 to i1
  %.str.7.sink529 = select i1 %353, ptr @.str.7, ptr @.str.6
  %354 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink529)
  %355 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.280)
  %356 = load i8, ptr %10, align 1, !tbaa !5, !range !43, !noundef !44
  %357 = trunc nuw i8 %356 to i1
  %.str.7.sink530 = select i1 %357, ptr @.str.7, ptr @.str.6
  %358 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink530)
  %359 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.281)
  %360 = load i8, ptr %11, align 1, !tbaa !5, !range !43, !noundef !44
  %361 = trunc nuw i8 %360 to i1
  %.str.7.sink531 = select i1 %361, ptr @.str.7, ptr @.str.6
  %362 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink531)
  %363 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.282)
  %364 = load i8, ptr %12, align 1, !tbaa !5, !range !43, !noundef !44
  %365 = trunc nuw i8 %364 to i1
  %.str.7.sink532 = select i1 %365, ptr @.str.7, ptr @.str.6
  %366 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink532)
  %367 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.283)
  %368 = load i8, ptr %13, align 1, !tbaa !5, !range !43, !noundef !44
  %369 = trunc nuw i8 %368 to i1
  %.str.7.sink533 = select i1 %369, ptr @.str.7, ptr @.str.6
  %370 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink533)
  %.str.2.sink = select i1 %336, ptr @.str.1, ptr @.str.2
  %371 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
  %372 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %373

373:                                              ; preds = %337, %335
  %374 = xor i1 %336, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  ret i1 %374
}

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !13, i64 0}
!18 = !{!"_ZTSN11alglib_impl10ae_complexE", !13, i64 0, !13, i64 8}
!19 = !{!18, !13, i64 8}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}
!30 = distinct !{!30, !15}
!31 = distinct !{!31, !15}
!32 = distinct !{!32, !15}
!33 = distinct !{!33, !15}
!34 = distinct !{!34, !15}
!35 = distinct !{!35, !15}
!36 = distinct !{!36, !15}
!37 = distinct !{!37, !15}
!38 = distinct !{!38, !15}
!39 = distinct !{!39, !15}
!40 = distinct !{!40, !15}
!41 = distinct !{!41, !15}
!42 = distinct !{!42, !15}
!43 = !{i8 0, i8 2}
!44 = !{}


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