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

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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%"struct.alglib_impl::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.190 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [48 x i8], align 1

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

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

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

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) #1

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

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

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

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

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 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_impl8ae_c_mulENS_10ae_complexES0_(double, double, double, double) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z9testhblasbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #5 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %7 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i8, align 1
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca %"struct.alglib_impl::ae_complex", align 8
  %23 = alloca %"struct.alglib_impl::ae_complex", 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 = alloca %"struct.alglib_impl::ae_complex", align 8
  %38 = alloca %"struct.alglib_impl::ae_complex", align 8
  %39 = zext i1 %0 to i8
  store i8 %39, ptr %3, align 1, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  %40 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %40, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 64, i1 false)
  %41 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %6, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %41, i1 noundef zeroext true)
  %42 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %7, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %42, i1 noundef zeroext true)
  %43 = 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 4, ptr noundef %43, i1 noundef zeroext true)
  %44 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %9, i64 noundef 0, i64 noundef 4, ptr noundef %44, i1 noundef zeroext true)
  %45 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %10, i64 noundef 0, i64 noundef 4, ptr noundef %45, i1 noundef zeroext true)
  %46 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %11, i64 noundef 0, i64 noundef 4, ptr noundef %46, i1 noundef zeroext true)
  %47 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %12, i64 noundef 0, i64 noundef 4, ptr noundef %47, i1 noundef zeroext true)
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  store i8 0, ptr %19, align 1, !tbaa !5
  store i64 10, ptr %14, align 8, !tbaa !13
  store double 5.000000e-13, ptr %21, align 8, !tbaa !11
  store i64 2, ptr %13, align 8, !tbaa !13
  br label %48

48:                                               ; preds = %483, %2
  %49 = load i64, ptr %13, align 8, !tbaa !13
  %50 = load i64, ptr %14, align 8, !tbaa !13
  %51 = icmp sle i64 %49, %50
  br i1 %51, label %52, label %486

52:                                               ; preds = %48
  %53 = load i64, ptr %13, align 8, !tbaa !13
  %54 = add nsw i64 %53, 1
  %55 = load i64, ptr %13, align 8, !tbaa !13
  %56 = add nsw i64 %55, 1
  %57 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %54, i64 noundef %56, ptr noundef %57)
  %58 = load i64, ptr %13, align 8, !tbaa !13
  %59 = add nsw i64 %58, 1
  %60 = load i64, ptr %13, align 8, !tbaa !13
  %61 = add nsw i64 %60, 1
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %7, i64 noundef %59, i64 noundef %61, ptr noundef %62)
  %63 = load i64, ptr %13, align 8, !tbaa !13
  %64 = add nsw i64 %63, 1
  %65 = load i64, ptr %13, align 8, !tbaa !13
  %66 = add nsw i64 %65, 1
  %67 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %64, i64 noundef %66, ptr noundef %67)
  %68 = load i64, ptr %13, align 8, !tbaa !13
  %69 = add nsw i64 %68, 1
  %70 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %69, ptr noundef %70)
  %71 = load i64, ptr %13, align 8, !tbaa !13
  %72 = add nsw i64 %71, 1
  %73 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %72, ptr noundef %73)
  %74 = load i64, ptr %13, align 8, !tbaa !13
  %75 = add nsw i64 %74, 1
  %76 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef %75, ptr noundef %76)
  %77 = load i64, ptr %13, align 8, !tbaa !13
  %78 = add nsw i64 %77, 1
  %79 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %78, ptr noundef %79)
  store i64 1, ptr %15, align 8, !tbaa !13
  br label %80

80:                                               ; preds = %161, %52
  %81 = load i64, ptr %15, align 8, !tbaa !13
  %82 = load i64, ptr %13, align 8, !tbaa !13
  %83 = icmp sle i64 %81, %82
  br i1 %83, label %84, label %164

84:                                               ; preds = %80
  %85 = load ptr, ptr %4, align 8, !tbaa !9
  %86 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %85)
  %87 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %86, double -1.000000e+00)
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %89 = load ptr, ptr %88, align 8, !tbaa !15
  %90 = load i64, ptr %15, align 8, !tbaa !13
  %91 = getelementptr inbounds ptr, ptr %89, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !9
  %93 = load i64, ptr %15, align 8, !tbaa !13
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %92, i64 %93
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %94, i32 0, i32 0
  store double %87, ptr %95, align 8, !tbaa !16
  %96 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %97 = load ptr, ptr %96, align 8, !tbaa !15
  %98 = load i64, ptr %15, align 8, !tbaa !13
  %99 = getelementptr inbounds ptr, ptr %97, i64 %98
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  %101 = load i64, ptr %15, align 8, !tbaa !13
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %100, i64 %101
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %102, i32 0, i32 1
  store double 0.000000e+00, ptr %103, align 8, !tbaa !18
  %104 = load i64, ptr %15, align 8, !tbaa !13
  %105 = add nsw i64 %104, 1
  store i64 %105, ptr %16, align 8, !tbaa !13
  br label %106

106:                                              ; preds = %157, %84
  %107 = load i64, ptr %16, align 8, !tbaa !13
  %108 = load i64, ptr %13, align 8, !tbaa !13
  %109 = icmp sle i64 %107, %108
  br i1 %109, label %110, label %160

110:                                              ; preds = %106
  %111 = load ptr, ptr %4, align 8, !tbaa !9
  %112 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %111)
  %113 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %112, double -1.000000e+00)
  %114 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %115 = load ptr, ptr %114, align 8, !tbaa !15
  %116 = load i64, ptr %15, align 8, !tbaa !13
  %117 = getelementptr inbounds ptr, ptr %115, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !9
  %119 = load i64, ptr %16, align 8, !tbaa !13
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %118, i64 %119
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %120, i32 0, i32 0
  store double %113, ptr %121, align 8, !tbaa !16
  %122 = load ptr, ptr %4, align 8, !tbaa !9
  %123 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %122)
  %124 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %123, double -1.000000e+00)
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %126 = load ptr, ptr %125, align 8, !tbaa !15
  %127 = load i64, ptr %15, align 8, !tbaa !13
  %128 = getelementptr inbounds ptr, ptr %126, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !9
  %130 = load i64, ptr %16, align 8, !tbaa !13
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %129, i64 %130
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %131, i32 0, i32 1
  store double %124, ptr %132, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %134 = load ptr, ptr %133, align 8, !tbaa !15
  %135 = load i64, ptr %15, align 8, !tbaa !13
  %136 = getelementptr inbounds ptr, ptr %134, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !9
  %138 = load i64, ptr %16, align 8, !tbaa !13
  %139 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %137, i64 %138
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %139, i64 16, i1 false), !tbaa.struct !19
  %140 = load ptr, ptr %4, align 8, !tbaa !9
  %141 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %142 = load double, ptr %141, align 8
  %143 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %144 = load double, ptr %143, align 8
  %145 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %142, double %144, ptr noundef %140)
  %146 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %147 = extractvalue { double, double } %145, 0
  store double %147, ptr %146, align 8
  %148 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %149 = extractvalue { double, double } %145, 1
  store double %149, ptr %148, align 8
  %150 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %151 = load ptr, ptr %150, align 8, !tbaa !15
  %152 = load i64, ptr %16, align 8, !tbaa !13
  %153 = getelementptr inbounds ptr, ptr %151, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !9
  %155 = load i64, ptr %15, align 8, !tbaa !13
  %156 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %154, i64 %155
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %156, ptr align 8 %25, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  br label %157

157:                                              ; preds = %110
  %158 = load i64, ptr %16, align 8, !tbaa !13
  %159 = add nsw i64 %158, 1
  store i64 %159, ptr %16, align 8, !tbaa !13
  br label %106, !llvm.loop !20

160:                                              ; preds = %106
  br label %161

161:                                              ; preds = %160
  %162 = load i64, ptr %15, align 8, !tbaa !13
  %163 = add nsw i64 %162, 1
  store i64 %163, ptr %15, align 8, !tbaa !13
  br label %80, !llvm.loop !22

164:                                              ; preds = %80
  store i64 1, ptr %15, align 8, !tbaa !13
  br label %165

165:                                              ; preds = %191, %164
  %166 = load i64, ptr %15, align 8, !tbaa !13
  %167 = load i64, ptr %13, align 8, !tbaa !13
  %168 = icmp sle i64 %166, %167
  br i1 %168, label %169, label %194

169:                                              ; preds = %165
  store i64 1, ptr %16, align 8, !tbaa !13
  br label %170

170:                                              ; preds = %187, %169
  %171 = load i64, ptr %16, align 8, !tbaa !13
  %172 = load i64, ptr %13, align 8, !tbaa !13
  %173 = icmp sle i64 %171, %172
  br i1 %173, label %174, label %190

174:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  %175 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %176 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %177 = extractvalue { double, double } %175, 0
  store double %177, ptr %176, align 8
  %178 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %179 = extractvalue { double, double } %175, 1
  store double %179, ptr %178, align 8
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %7, i32 0, i32 6
  %181 = load ptr, ptr %180, align 8, !tbaa !15
  %182 = load i64, ptr %15, align 8, !tbaa !13
  %183 = getelementptr inbounds ptr, ptr %181, i64 %182
  %184 = load ptr, ptr %183, align 8, !tbaa !9
  %185 = load i64, ptr %16, align 8, !tbaa !13
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %184, i64 %185
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %186, ptr align 8 %27, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %187

187:                                              ; preds = %174
  %188 = load i64, ptr %16, align 8, !tbaa !13
  %189 = add nsw i64 %188, 1
  store i64 %189, ptr %16, align 8, !tbaa !13
  br label %170, !llvm.loop !23

190:                                              ; preds = %170
  br label %191

191:                                              ; preds = %190
  %192 = load i64, ptr %15, align 8, !tbaa !13
  %193 = add nsw i64 %192, 1
  store i64 %193, ptr %15, align 8, !tbaa !13
  br label %165, !llvm.loop !24

194:                                              ; preds = %165
  store i64 1, ptr %15, align 8, !tbaa !13
  br label %195

195:                                              ; preds = %224, %194
  %196 = load i64, ptr %15, align 8, !tbaa !13
  %197 = load i64, ptr %13, align 8, !tbaa !13
  %198 = icmp sle i64 %196, %197
  br i1 %198, label %199, label %227

199:                                              ; preds = %195
  %200 = load i64, ptr %15, align 8, !tbaa !13
  store i64 %200, ptr %16, align 8, !tbaa !13
  br label %201

201:                                              ; preds = %220, %199
  %202 = load i64, ptr %16, align 8, !tbaa !13
  %203 = load i64, ptr %13, align 8, !tbaa !13
  %204 = icmp sle i64 %202, %203
  br i1 %204, label %205, label %223

205:                                              ; preds = %201
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %207 = load ptr, ptr %206, align 8, !tbaa !15
  %208 = load i64, ptr %15, align 8, !tbaa !13
  %209 = getelementptr inbounds ptr, ptr %207, i64 %208
  %210 = load ptr, ptr %209, align 8, !tbaa !9
  %211 = load i64, ptr %16, align 8, !tbaa !13
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %210, i64 %211
  %213 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %7, i32 0, i32 6
  %214 = load ptr, ptr %213, align 8, !tbaa !15
  %215 = load i64, ptr %15, align 8, !tbaa !13
  %216 = getelementptr inbounds ptr, ptr %214, i64 %215
  %217 = load ptr, ptr %216, align 8, !tbaa !9
  %218 = load i64, ptr %16, align 8, !tbaa !13
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %217, i64 %218
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %219, ptr align 8 %212, i64 16, i1 false), !tbaa.struct !19
  br label %220

220:                                              ; preds = %205
  %221 = load i64, ptr %16, align 8, !tbaa !13
  %222 = add nsw i64 %221, 1
  store i64 %222, ptr %16, align 8, !tbaa !13
  br label %201, !llvm.loop !25

223:                                              ; preds = %201
  br label %224

224:                                              ; preds = %223
  %225 = load i64, ptr %15, align 8, !tbaa !13
  %226 = add nsw i64 %225, 1
  store i64 %226, ptr %15, align 8, !tbaa !13
  br label %195, !llvm.loop !26

227:                                              ; preds = %195
  store i64 1, ptr %15, align 8, !tbaa !13
  br label %228

228:                                              ; preds = %254, %227
  %229 = load i64, ptr %15, align 8, !tbaa !13
  %230 = load i64, ptr %13, align 8, !tbaa !13
  %231 = icmp sle i64 %229, %230
  br i1 %231, label %232, label %257

232:                                              ; preds = %228
  store i64 1, ptr %16, align 8, !tbaa !13
  br label %233

233:                                              ; preds = %250, %232
  %234 = load i64, ptr %16, align 8, !tbaa !13
  %235 = load i64, ptr %13, align 8, !tbaa !13
  %236 = icmp sle i64 %234, %235
  br i1 %236, label %237, label %253

237:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  %238 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %239 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %240 = extractvalue { double, double } %238, 0
  store double %240, ptr %239, align 8
  %241 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %242 = extractvalue { double, double } %238, 1
  store double %242, ptr %241, align 8
  %243 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %244 = load ptr, ptr %243, align 8, !tbaa !15
  %245 = load i64, ptr %15, align 8, !tbaa !13
  %246 = getelementptr inbounds ptr, ptr %244, i64 %245
  %247 = load ptr, ptr %246, align 8, !tbaa !9
  %248 = load i64, ptr %16, align 8, !tbaa !13
  %249 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %247, i64 %248
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %249, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  br label %250

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

253:                                              ; preds = %233
  br label %254

254:                                              ; preds = %253
  %255 = load i64, ptr %15, align 8, !tbaa !13
  %256 = add nsw i64 %255, 1
  store i64 %256, ptr %15, align 8, !tbaa !13
  br label %228, !llvm.loop !28

257:                                              ; preds = %228
  store i64 1, ptr %15, align 8, !tbaa !13
  br label %258

258:                                              ; preds = %286, %257
  %259 = load i64, ptr %15, align 8, !tbaa !13
  %260 = load i64, ptr %13, align 8, !tbaa !13
  %261 = icmp sle i64 %259, %260
  br i1 %261, label %262, label %289

262:                                              ; preds = %258
  store i64 1, ptr %16, align 8, !tbaa !13
  br label %263

263:                                              ; preds = %282, %262
  %264 = load i64, ptr %16, align 8, !tbaa !13
  %265 = load i64, ptr %15, align 8, !tbaa !13
  %266 = icmp sle i64 %264, %265
  br i1 %266, label %267, label %285

267:                                              ; preds = %263
  %268 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %269 = load ptr, ptr %268, align 8, !tbaa !15
  %270 = load i64, ptr %15, align 8, !tbaa !13
  %271 = getelementptr inbounds ptr, ptr %269, i64 %270
  %272 = load ptr, ptr %271, align 8, !tbaa !9
  %273 = load i64, ptr %16, align 8, !tbaa !13
  %274 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %272, i64 %273
  %275 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %276 = load ptr, ptr %275, align 8, !tbaa !15
  %277 = load i64, ptr %15, align 8, !tbaa !13
  %278 = getelementptr inbounds ptr, ptr %276, i64 %277
  %279 = load ptr, ptr %278, align 8, !tbaa !9
  %280 = load i64, ptr %16, align 8, !tbaa !13
  %281 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %279, i64 %280
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %281, ptr align 8 %274, i64 16, i1 false), !tbaa.struct !19
  br label %282

282:                                              ; preds = %267
  %283 = load i64, ptr %16, align 8, !tbaa !13
  %284 = add nsw i64 %283, 1
  store i64 %284, ptr %16, align 8, !tbaa !13
  br label %263, !llvm.loop !29

285:                                              ; preds = %263
  br label %286

286:                                              ; preds = %285
  %287 = load i64, ptr %15, align 8, !tbaa !13
  %288 = add nsw i64 %287, 1
  store i64 %288, ptr %15, align 8, !tbaa !13
  br label %258, !llvm.loop !30

289:                                              ; preds = %258
  store i64 1, ptr %17, align 8, !tbaa !13
  br label %290

290:                                              ; preds = %479, %289
  %291 = load i64, ptr %17, align 8, !tbaa !13
  %292 = load i64, ptr %13, align 8, !tbaa !13
  %293 = icmp sle i64 %291, %292
  br i1 %293, label %294, label %482

294:                                              ; preds = %290
  %295 = load i64, ptr %17, align 8, !tbaa !13
  store i64 %295, ptr %18, align 8, !tbaa !13
  br label %296

296:                                              ; preds = %475, %294
  %297 = load i64, ptr %18, align 8, !tbaa !13
  %298 = load i64, ptr %13, align 8, !tbaa !13
  %299 = icmp sle i64 %297, %298
  br i1 %299, label %300, label %478

300:                                              ; preds = %296
  store i64 1, ptr %15, align 8, !tbaa !13
  br label %301

301:                                              ; preds = %325, %300
  %302 = load i64, ptr %15, align 8, !tbaa !13
  %303 = load i64, ptr %18, align 8, !tbaa !13
  %304 = load i64, ptr %17, align 8, !tbaa !13
  %305 = sub nsw i64 %303, %304
  %306 = add nsw i64 %305, 1
  %307 = icmp sle i64 %302, %306
  br i1 %307, label %308, label %328

308:                                              ; preds = %301
  %309 = load ptr, ptr %4, align 8, !tbaa !9
  %310 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %309)
  %311 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %310, double -1.000000e+00)
  %312 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %313 = load ptr, ptr %312, align 8, !tbaa !15
  %314 = load i64, ptr %15, align 8, !tbaa !13
  %315 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %313, i64 %314
  %316 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %315, i32 0, i32 0
  store double %311, ptr %316, align 8, !tbaa !16
  %317 = load ptr, ptr %4, align 8, !tbaa !9
  %318 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %317)
  %319 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %318, double -1.000000e+00)
  %320 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %321 = load ptr, ptr %320, align 8, !tbaa !15
  %322 = load i64, ptr %15, align 8, !tbaa !13
  %323 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %321, i64 %322
  %324 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %323, i32 0, i32 1
  store double %319, ptr %324, align 8, !tbaa !18
  br label %325

325:                                              ; preds = %308
  %326 = load i64, ptr %15, align 8, !tbaa !13
  %327 = add nsw i64 %326, 1
  store i64 %327, ptr %15, align 8, !tbaa !13
  br label %301, !llvm.loop !31

328:                                              ; preds = %301
  %329 = load ptr, ptr %4, align 8, !tbaa !9
  %330 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %329)
  %331 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %330, double -1.000000e+00)
  %332 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %22, i32 0, i32 0
  store double %331, ptr %332, align 8, !tbaa !16
  %333 = load ptr, ptr %4, align 8, !tbaa !9
  %334 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %333)
  %335 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %334, double -1.000000e+00)
  %336 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %22, i32 0, i32 1
  store double %335, ptr %336, align 8, !tbaa !18
  %337 = load i64, ptr %17, align 8, !tbaa !13
  store i64 %337, ptr %15, align 8, !tbaa !13
  br label %338

338:                                              ; preds = %381, %328
  %339 = load i64, ptr %15, align 8, !tbaa !13
  %340 = load i64, ptr %18, align 8, !tbaa !13
  %341 = icmp sle i64 %339, %340
  br i1 %341, label %342, label %384

342:                                              ; preds = %338
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #6
  %343 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %344 = load ptr, ptr %343, align 8, !tbaa !15
  %345 = load i64, ptr %15, align 8, !tbaa !13
  %346 = getelementptr inbounds ptr, ptr %344, i64 %345
  %347 = load ptr, ptr %346, align 8, !tbaa !9
  %348 = load i64, ptr %17, align 8, !tbaa !13
  %349 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %347, i64 %348
  %350 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %351 = load ptr, ptr %350, align 8, !tbaa !15
  %352 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %351, i64 1
  %353 = load i64, ptr %17, align 8, !tbaa !13
  %354 = load i64, ptr %18, align 8, !tbaa !13
  %355 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %353, i64 noundef %354)
  %356 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %349, i64 noundef 1, ptr noundef @.str.191, ptr noundef %352, i64 noundef 1, ptr noundef @.str.191, i64 noundef %355)
  %357 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %358 = extractvalue { double, double } %356, 0
  store double %358, ptr %357, align 8
  %359 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %360 = extractvalue { double, double } %356, 1
  store double %360, ptr %359, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %29, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !19
  %361 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %362 = load double, ptr %361, align 8
  %363 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %364 = load double, ptr %363, align 8
  %365 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %366 = load double, ptr %365, align 8
  %367 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %368 = load double, ptr %367, align 8
  %369 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %362, double %364, double %366, double %368)
  %370 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %371 = extractvalue { double, double } %369, 0
  store double %371, ptr %370, align 8
  %372 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %373 = extractvalue { double, double } %369, 1
  store double %373, ptr %372, align 8
  %374 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %375 = load ptr, ptr %374, align 8, !tbaa !15
  %376 = load i64, ptr %15, align 8, !tbaa !13
  %377 = load i64, ptr %17, align 8, !tbaa !13
  %378 = sub nsw i64 %376, %377
  %379 = add nsw i64 %378, 1
  %380 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %375, i64 %379
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %380, ptr align 8 %30, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  br label %381

381:                                              ; preds = %342
  %382 = load i64, ptr %15, align 8, !tbaa !13
  %383 = add nsw i64 %382, 1
  store i64 %383, ptr %15, align 8, !tbaa !13
  br label %338, !llvm.loop !32

384:                                              ; preds = %338
  %385 = load i64, ptr %17, align 8, !tbaa !13
  %386 = load i64, ptr %18, align 8, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %33, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !19
  %387 = load ptr, ptr %4, align 8, !tbaa !9
  %388 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %389 = load double, ptr %388, align 8
  %390 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %391 = load double, ptr %390, align 8
  call void @_ZN11alglib_impl29hermitianmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorENS_10ae_complexES3_PNS_8ae_stateE(ptr noundef %7, i1 noundef zeroext true, i64 noundef %385, i64 noundef %386, ptr noundef %9, double %389, double %391, ptr noundef %11, ptr noundef %387)
  %392 = load i64, ptr %17, align 8, !tbaa !13
  %393 = load i64, ptr %18, align 8, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !19
  %394 = load ptr, ptr %4, align 8, !tbaa !9
  %395 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %396 = load double, ptr %395, align 8
  %397 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %398 = load double, ptr %397, align 8
  call void @_ZN11alglib_impl29hermitianmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorENS_10ae_complexES3_PNS_8ae_stateE(ptr noundef %8, i1 noundef zeroext false, i64 noundef %392, i64 noundef %393, ptr noundef %9, double %396, double %398, ptr noundef %12, ptr noundef %394)
  %399 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %400 = load ptr, ptr %399, align 8, !tbaa !15
  %401 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %400, i64 1
  %402 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %403 = load ptr, ptr %402, align 8, !tbaa !15
  %404 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %403, i64 1
  %405 = load i64, ptr %18, align 8, !tbaa !13
  %406 = load i64, ptr %17, align 8, !tbaa !13
  %407 = sub nsw i64 %405, %406
  %408 = add nsw i64 %407, 1
  %409 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %408)
  call void @_ZN11alglib_impl9ae_v_csubEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %401, i64 noundef 1, ptr noundef %404, i64 noundef 1, ptr noundef @.str.191, i64 noundef %409)
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #6
  %410 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %411 = load ptr, ptr %410, align 8, !tbaa !15
  %412 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %411, i64 1
  %413 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %414 = load ptr, ptr %413, align 8, !tbaa !15
  %415 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %414, i64 1
  %416 = load i64, ptr %18, align 8, !tbaa !13
  %417 = load i64, ptr %17, align 8, !tbaa !13
  %418 = sub nsw i64 %416, %417
  %419 = add nsw i64 %418, 1
  %420 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %419)
  %421 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %412, i64 noundef 1, ptr noundef @.str.191, ptr noundef %415, i64 noundef 1, ptr noundef @.str.190, i64 noundef %420)
  %422 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %423 = extractvalue { double, double } %421, 0
  store double %423, ptr %422, align 8
  %424 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %425 = extractvalue { double, double } %421, 1
  store double %425, ptr %424, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %35, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  %426 = load double, ptr %20, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !19
  %427 = load ptr, ptr %4, align 8, !tbaa !9
  %428 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %429 = load double, ptr %428, align 8
  %430 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %431 = load double, ptr %430, align 8
  %432 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %429, double %431, ptr noundef %427)
  %433 = load ptr, ptr %4, align 8, !tbaa !9
  %434 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %432, ptr noundef %433)
  %435 = load ptr, ptr %4, align 8, !tbaa !9
  %436 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %426, double noundef %434, ptr noundef %435)
  store double %436, ptr %20, align 8, !tbaa !11
  %437 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %438 = load ptr, ptr %437, align 8, !tbaa !15
  %439 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %438, i64 1
  %440 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %441 = load ptr, ptr %440, align 8, !tbaa !15
  %442 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %441, i64 1
  %443 = load i64, ptr %18, align 8, !tbaa !13
  %444 = load i64, ptr %17, align 8, !tbaa !13
  %445 = sub nsw i64 %443, %444
  %446 = add nsw i64 %445, 1
  %447 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %446)
  call void @_ZN11alglib_impl9ae_v_csubEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %439, i64 noundef 1, ptr noundef %442, i64 noundef 1, ptr noundef @.str.191, i64 noundef %447)
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #6
  %448 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %449 = load ptr, ptr %448, align 8, !tbaa !15
  %450 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %449, i64 1
  %451 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %452 = load ptr, ptr %451, align 8, !tbaa !15
  %453 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %452, i64 1
  %454 = load i64, ptr %18, align 8, !tbaa !13
  %455 = load i64, ptr %17, align 8, !tbaa !13
  %456 = sub nsw i64 %454, %455
  %457 = add nsw i64 %456, 1
  %458 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %457)
  %459 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %450, i64 noundef 1, ptr noundef @.str.191, ptr noundef %453, i64 noundef 1, ptr noundef @.str.190, i64 noundef %458)
  %460 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %461 = extractvalue { double, double } %459, 0
  store double %461, ptr %460, align 8
  %462 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %463 = extractvalue { double, double } %459, 1
  store double %463, ptr %462, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %37, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #6
  %464 = load double, ptr %20, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !19
  %465 = load ptr, ptr %4, align 8, !tbaa !9
  %466 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %467 = load double, ptr %466, align 8
  %468 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %469 = load double, ptr %468, align 8
  %470 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %467, double %469, ptr noundef %465)
  %471 = load ptr, ptr %4, align 8, !tbaa !9
  %472 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %470, ptr noundef %471)
  %473 = load ptr, ptr %4, align 8, !tbaa !9
  %474 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %464, double noundef %472, ptr noundef %473)
  store double %474, ptr %20, align 8, !tbaa !11
  br label %475

475:                                              ; preds = %384
  %476 = load i64, ptr %18, align 8, !tbaa !13
  %477 = add nsw i64 %476, 1
  store i64 %477, ptr %18, align 8, !tbaa !13
  br label %296, !llvm.loop !33

478:                                              ; preds = %296
  br label %479

479:                                              ; preds = %478
  %480 = load i64, ptr %17, align 8, !tbaa !13
  %481 = add nsw i64 %480, 1
  store i64 %481, ptr %17, align 8, !tbaa !13
  br label %290, !llvm.loop !34

482:                                              ; preds = %290
  br label %483

483:                                              ; preds = %482
  %484 = load i64, ptr %13, align 8, !tbaa !13
  %485 = add nsw i64 %484, 1
  store i64 %485, ptr %13, align 8, !tbaa !13
  br label %48, !llvm.loop !35

486:                                              ; preds = %48
  %487 = load double, ptr %20, align 8, !tbaa !11
  %488 = load double, ptr %21, align 8, !tbaa !11
  %489 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %487, double noundef %488)
  %490 = zext i1 %489 to i8
  store i8 %490, ptr %19, align 1, !tbaa !5
  %491 = load i8, ptr %3, align 1, !tbaa !5, !range !36, !noundef !37
  %492 = trunc i8 %491 to i1
  br i1 %492, label %507, label %493

493:                                              ; preds = %486
  %494 = call i32 (ptr, ...) @printf(ptr noundef @.str.272)
  %495 = load double, ptr %20, align 8, !tbaa !11
  %496 = call i32 (ptr, ...) @printf(ptr noundef @.str.273, double noundef %495)
  %497 = load double, ptr %21, align 8, !tbaa !11
  %498 = call i32 (ptr, ...) @printf(ptr noundef @.str.196, double noundef %497)
  %499 = load i8, ptr %19, align 1, !tbaa !5, !range !36, !noundef !37
  %500 = trunc i8 %499 to i1
  br i1 %500, label %501, label %503

501:                                              ; preds = %493
  %502 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %505

503:                                              ; preds = %493
  %504 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %505

505:                                              ; preds = %503, %501
  %506 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %507

507:                                              ; preds = %505, %486
  %508 = load i8, ptr %19, align 1, !tbaa !5, !range !36, !noundef !37
  %509 = trunc i8 %508 to i1
  %510 = xor i1 %509, true
  %511 = zext i1 %510 to i8
  store i8 %511, ptr %24, align 1, !tbaa !5
  %512 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %512)
  %513 = load i8, ptr %24, align 1, !tbaa !5, !range !36, !noundef !37
  %514 = trunc i8 %513 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  ret i1 %514
}

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

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

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

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

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


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%"struct.alglib_impl::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.190 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [48 x i8], align 1

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress 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) #5

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

declare { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double, double, double, double) 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_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z9testhblasbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #6 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %5 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %6 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #7
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %3)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %4, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %5, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %6, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %4, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  %11 = getelementptr inbounds i8, ptr %4, i64 72
  %12 = getelementptr inbounds i8, ptr %5, i64 72
  %13 = getelementptr inbounds i8, ptr %6, i64 72
  %14 = getelementptr inbounds i8, ptr %7, i64 56
  %15 = getelementptr inbounds i8, ptr %8, i64 56
  %16 = getelementptr inbounds i8, ptr %9, i64 56
  %17 = getelementptr inbounds i8, ptr %10, i64 56
  br label %18

.loopexit203:                                     ; preds = %184
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %indvars.iv.next242 = add nuw nsw i64 %indvars.iv241, 1
  %exitcond253.not = icmp eq i64 %indvars.iv.next242, 13
  br i1 %exitcond253.not, label %186, label %18, !llvm.loop !5

18:                                               ; preds = %2, %.loopexit203
  %indvars.iv241 = phi i64 [ 4, %2 ], [ %indvars.iv.next242, %.loopexit203 ]
  %indvars.iv = phi i64 [ 3, %2 ], [ %indvars.iv.next, %.loopexit203 ]
  %.0232 = phi i64 [ 2, %2 ], [ %19, %.loopexit203 ]
  %.0180231 = phi double [ 0.000000e+00, %2 ], [ %182, %.loopexit203 ]
  %19 = add nuw nsw i64 %.0232, 1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %19, i64 noundef %19, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %19, i64 noundef %19, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %19, i64 noundef %19, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %19, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %19, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %19, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %19, ptr noundef %1)
  br label %20

.loopexit:                                        ; preds = %.lr.ph, %20
  %exitcond.not = icmp eq i64 %31, %indvars.iv
  br i1 %exitcond.not, label %.preheader201, label %20, !llvm.loop !7

20:                                               ; preds = %18, %.loopexit
  %.0172210 = phi i64 [ 1, %18 ], [ %31, %.loopexit ]
  %21 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %22 = call double @llvm.fmuladd.f64(double %21, double 2.000000e+00, double -1.000000e+00)
  %23 = load ptr, ptr %11, align 8, !tbaa !8
  %24 = getelementptr inbounds ptr, ptr %23, i64 %.0172210
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %25, i64 %.0172210
  store double %22, ptr %26, align 8, !tbaa !13
  %27 = load ptr, ptr %11, align 8, !tbaa !8
  %28 = getelementptr inbounds ptr, ptr %27, i64 %.0172210
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %29, i64 %.0172210, i32 1
  store double 0.000000e+00, ptr %30, align 8, !tbaa !16
  %31 = add nuw nsw i64 %.0172210, 1
  %.not196208.not = icmp ult i64 %.0172210, %.0232
  br i1 %.not196208.not, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %20, %.lr.ph
  %.0173209 = phi i64 [ %55, %.lr.ph ], [ %31, %20 ]
  %32 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %33 = call double @llvm.fmuladd.f64(double %32, double 2.000000e+00, double -1.000000e+00)
  %34 = load ptr, ptr %11, align 8, !tbaa !8
  %35 = getelementptr inbounds ptr, ptr %34, i64 %.0172210
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %36, i64 %.0173209
  store double %33, ptr %37, align 8, !tbaa !13
  %38 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %39 = call double @llvm.fmuladd.f64(double %38, double 2.000000e+00, double -1.000000e+00)
  %40 = load ptr, ptr %11, align 8, !tbaa !8
  %41 = getelementptr inbounds ptr, ptr %40, i64 %.0172210
  %42 = load ptr, ptr %41, align 8, !tbaa !11
  %43 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %42, i64 %.0173209, i32 1
  store double %39, ptr %43, align 8, !tbaa !16
  %44 = load ptr, ptr %11, align 8, !tbaa !8
  %45 = getelementptr inbounds ptr, ptr %44, i64 %.0172210
  %46 = load ptr, ptr %45, align 8, !tbaa !11
  %47 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %46, i64 %.0173209
  %.sroa.022.0.copyload = load double, ptr %47, align 8, !tbaa !17
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %47, i64 8
  %.sroa.223.0.copyload = load double, ptr %.sroa.223.0..sroa_idx, align 8, !tbaa !17
  %48 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %.sroa.022.0.copyload, double %.sroa.223.0.copyload, ptr noundef %1)
  %49 = extractvalue { double, double } %48, 0
  %50 = extractvalue { double, double } %48, 1
  %51 = load ptr, ptr %11, align 8, !tbaa !8
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.0173209
  %53 = load ptr, ptr %52, align 8, !tbaa !11
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %53, i64 %.0172210
  store double %49, ptr %54, align 8, !tbaa !17
  %.sroa.425.0..sroa_idx = getelementptr inbounds i8, ptr %54, i64 8
  store double %50, ptr %.sroa.425.0..sroa_idx, align 8, !tbaa !17
  %55 = add nuw nsw i64 %.0173209, 1
  %.not196.not = icmp ult i64 %.0173209, %.0232
  br i1 %.not196.not, label %.lr.ph, label %.loopexit, !llvm.loop !18

.preheader201:                                    ; preds = %.loopexit, %65
  %.1212 = phi i64 [ %66, %65 ], [ 1, %.loopexit ]
  br label %56

56:                                               ; preds = %.preheader201, %56
  %.1174211 = phi i64 [ 1, %.preheader201 ], [ %64, %56 ]
  %57 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %58 = extractvalue { double, double } %57, 0
  %59 = extractvalue { double, double } %57, 1
  %60 = load ptr, ptr %12, align 8, !tbaa !8
  %61 = getelementptr inbounds ptr, ptr %60, i64 %.1212
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %62, i64 %.1174211
  store double %58, ptr %63, align 8, !tbaa !17
  %.sroa.421.0..sroa_idx = getelementptr inbounds i8, ptr %63, i64 8
  store double %59, ptr %.sroa.421.0..sroa_idx, align 8, !tbaa !17
  %64 = add nuw nsw i64 %.1174211, 1
  %exitcond233.not = icmp eq i64 %64, %indvars.iv
  br i1 %exitcond233.not, label %65, label %56, !llvm.loop !19

65:                                               ; preds = %56
  %66 = add nuw nsw i64 %.1212, 1
  %exitcond234.not = icmp eq i64 %66, %indvars.iv
  br i1 %exitcond234.not, label %.preheader200, label %.preheader201, !llvm.loop !20

.preheader200:                                    ; preds = %65, %77
  %.2214 = phi i64 [ %78, %77 ], [ 1, %65 ]
  br label %67

67:                                               ; preds = %.preheader200, %67
  %.2175213 = phi i64 [ %.2214, %.preheader200 ], [ %76, %67 ]
  %68 = load ptr, ptr %11, align 8, !tbaa !8
  %69 = getelementptr inbounds ptr, ptr %68, i64 %.2214
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %70, i64 %.2175213
  %72 = load ptr, ptr %12, align 8, !tbaa !8
  %73 = getelementptr inbounds ptr, ptr %72, i64 %.2214
  %74 = load ptr, ptr %73, align 8, !tbaa !11
  %75 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %74, i64 %.2175213
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef nonnull align 8 dereferenceable(16) %71, i64 16, i1 false), !tbaa.struct !21
  %76 = add nuw nsw i64 %.2175213, 1
  %.not194.not = icmp ult i64 %.2175213, %.0232
  br i1 %.not194.not, label %67, label %77, !llvm.loop !22

77:                                               ; preds = %67
  %78 = add nuw nsw i64 %.2214, 1
  %exitcond235.not = icmp eq i64 %78, %indvars.iv
  br i1 %exitcond235.not, label %.preheader199, label %.preheader200, !llvm.loop !23

.preheader199:                                    ; preds = %77, %88
  %.3216 = phi i64 [ %89, %88 ], [ 1, %77 ]
  br label %79

79:                                               ; preds = %.preheader199, %79
  %.3176215 = phi i64 [ 1, %.preheader199 ], [ %87, %79 ]
  %80 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %81 = extractvalue { double, double } %80, 0
  %82 = extractvalue { double, double } %80, 1
  %83 = load ptr, ptr %13, align 8, !tbaa !8
  %84 = getelementptr inbounds ptr, ptr %83, i64 %.3216
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %85, i64 %.3176215
  store double %81, ptr %86, align 8, !tbaa !17
  %.sroa.419.0..sroa_idx = getelementptr inbounds i8, ptr %86, i64 8
  store double %82, ptr %.sroa.419.0..sroa_idx, align 8, !tbaa !17
  %87 = add nuw nsw i64 %.3176215, 1
  %exitcond236.not = icmp eq i64 %87, %indvars.iv
  br i1 %exitcond236.not, label %88, label %79, !llvm.loop !24

88:                                               ; preds = %79
  %89 = add nuw nsw i64 %.3216, 1
  %exitcond237.not = icmp eq i64 %89, %indvars.iv
  br i1 %exitcond237.not, label %.preheader198, label %.preheader199, !llvm.loop !25

.preheader198:                                    ; preds = %88, %120
  %indvar = phi i64 [ %indvar.next, %120 ], [ 0, %88 ]
  %indvars.iv238 = phi i64 [ %indvars.iv.next239, %120 ], [ 2, %88 ]
  %.4218 = phi i64 [ %121, %120 ], [ 1, %88 ]
  %90 = icmp eq i64 %indvar, 0
  br i1 %90, label %.unr-lcssa, label %.preheader198.new

.preheader198.new:                                ; preds = %.preheader198
  %91 = add i64 %indvar, 1
  %unroll_iter = and i64 %91, -2
  br label %92

92:                                               ; preds = %92, %.preheader198.new
  %.4177217 = phi i64 [ 1, %.preheader198.new ], [ %110, %92 ]
  %niter = phi i64 [ 0, %.preheader198.new ], [ %niter.next.1, %92 ]
  %93 = load ptr, ptr %11, align 8, !tbaa !8
  %94 = getelementptr inbounds ptr, ptr %93, i64 %.4218
  %95 = load ptr, ptr %94, align 8, !tbaa !11
  %96 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %95, i64 %.4177217
  %97 = load ptr, ptr %13, align 8, !tbaa !8
  %98 = getelementptr inbounds ptr, ptr %97, i64 %.4218
  %99 = load ptr, ptr %98, align 8, !tbaa !11
  %100 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %99, i64 %.4177217
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %100, ptr noundef nonnull align 8 dereferenceable(16) %96, i64 16, i1 false), !tbaa.struct !21
  %101 = add nuw nsw i64 %.4177217, 1
  %102 = load ptr, ptr %11, align 8, !tbaa !8
  %103 = getelementptr inbounds ptr, ptr %102, i64 %.4218
  %104 = load ptr, ptr %103, align 8, !tbaa !11
  %105 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %104, i64 %101
  %106 = load ptr, ptr %13, align 8, !tbaa !8
  %107 = getelementptr inbounds ptr, ptr %106, i64 %.4218
  %108 = load ptr, ptr %107, align 8, !tbaa !11
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %108, i64 %101
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %109, ptr noundef nonnull align 8 dereferenceable(16) %105, i64 16, i1 false), !tbaa.struct !21
  %110 = add nuw nsw i64 %.4177217, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.unr-lcssa, label %92, !llvm.loop !26

.unr-lcssa:                                       ; preds = %92, %.preheader198
  %.4177217.unr = phi i64 [ 1, %.preheader198 ], [ %110, %92 ]
  %111 = and i64 %indvar, 1
  %lcmp.mod.not.not = icmp eq i64 %111, 0
  br i1 %lcmp.mod.not.not, label %.epilog-lcssa, label %120

.epilog-lcssa:                                    ; preds = %.unr-lcssa
  %112 = load ptr, ptr %11, align 8, !tbaa !8
  %113 = getelementptr inbounds ptr, ptr %112, i64 %.4218
  %114 = load ptr, ptr %113, align 8, !tbaa !11
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %114, i64 %.4177217.unr
  %116 = load ptr, ptr %13, align 8, !tbaa !8
  %117 = getelementptr inbounds ptr, ptr %116, i64 %.4218
  %118 = load ptr, ptr %117, align 8, !tbaa !11
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %118, i64 %.4177217.unr
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %119, ptr noundef nonnull align 8 dereferenceable(16) %115, i64 16, i1 false), !tbaa.struct !21
  br label %120

120:                                              ; preds = %.unr-lcssa, %.epilog-lcssa
  %121 = add nuw nsw i64 %.4218, 1
  %indvars.iv.next239 = add nuw nsw i64 %indvars.iv238, 1
  %exitcond243.not = icmp eq i64 %indvars.iv.next239, %indvars.iv241
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond243.not, label %.preheader197, label %.preheader198, !llvm.loop !27

.preheader197:                                    ; preds = %120, %184
  %indvars.iv247 = phi i64 [ %indvars.iv.next248, %184 ], [ 2, %120 ]
  %.0178230 = phi i64 [ %185, %184 ], [ 1, %120 ]
  %.1181229 = phi double [ %182, %184 ], [ %.0180231, %120 ]
  br label %.lr.ph221.preheader

.lr.ph221.preheader:                              ; preds = %._crit_edge226, %.preheader197
  %indvars.iv249 = phi i64 [ %indvars.iv247, %.preheader197 ], [ %indvars.iv.next250, %._crit_edge226 ]
  %indvars.iv244 = phi i64 [ 2, %.preheader197 ], [ %indvars.iv.next245, %._crit_edge226 ]
  %.0179228 = phi i64 [ %.0178230, %.preheader197 ], [ %183, %._crit_edge226 ]
  %.2182227 = phi double [ %.1181229, %.preheader197 ], [ %182, %._crit_edge226 ]
  %122 = sub nuw nsw i64 %.0179228, %.0178230
  %123 = add nuw nsw i64 %122, 1
  br label %.lr.ph221

.lr.ph221:                                        ; preds = %.lr.ph221.preheader, %.lr.ph221
  %.5220 = phi i64 [ %132, %.lr.ph221 ], [ 1, %.lr.ph221.preheader ]
  %124 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %125 = call double @llvm.fmuladd.f64(double %124, double 2.000000e+00, double -1.000000e+00)
  %126 = load ptr, ptr %14, align 8, !tbaa !8
  %127 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %126, i64 %.5220
  store double %125, ptr %127, align 8, !tbaa !13
  %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 %14, align 8, !tbaa !8
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %130, i64 %.5220, i32 1
  store double %129, ptr %131, align 8, !tbaa !16
  %132 = add nuw nsw i64 %.5220, 1
  %exitcond246 = icmp eq i64 %132, %indvars.iv244
  br i1 %exitcond246, label %._crit_edge, label %.lr.ph221, !llvm.loop !28

._crit_edge:                                      ; preds = %.lr.ph221
  %133 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %134 = call double @llvm.fmuladd.f64(double %133, double 2.000000e+00, double -1.000000e+00)
  %135 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %136 = call double @llvm.fmuladd.f64(double %135, double 2.000000e+00, double -1.000000e+00)
  %.not191222 = icmp ugt i64 %.0178230, %.0179228
  br i1 %.not191222, label %._crit_edge226, label %.lr.ph225

.lr.ph225:                                        ; preds = %._crit_edge, %.lr.ph225
  %.6223 = phi i64 [ %154, %.lr.ph225 ], [ %.0178230, %._crit_edge ]
  %137 = load ptr, ptr %11, align 8, !tbaa !8
  %138 = getelementptr inbounds ptr, ptr %137, i64 %.6223
  %139 = load ptr, ptr %138, align 8, !tbaa !11
  %140 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %139, i64 %.0178230
  %141 = load ptr, ptr %14, align 8, !tbaa !8
  %142 = getelementptr inbounds i8, ptr %141, i64 16
  %143 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.0178230, i64 noundef %.0179228)
  %144 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef nonnull %140, i64 noundef 1, ptr noundef nonnull @.str.191, ptr noundef nonnull %142, i64 noundef 1, ptr noundef nonnull @.str.191, i64 noundef %143)
  %145 = extractvalue { double, double } %144, 0
  %146 = extractvalue { double, double } %144, 1
  %147 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %134, double %136, double %145, double %146)
  %148 = extractvalue { double, double } %147, 0
  %149 = extractvalue { double, double } %147, 1
  %150 = load ptr, ptr %15, align 8, !tbaa !8
  %151 = sub nuw nsw i64 %.6223, %.0178230
  %152 = getelementptr %"struct.alglib_impl::ae_complex", ptr %150, i64 %151
  %153 = getelementptr i8, ptr %152, i64 16
  store double %148, ptr %153, align 8, !tbaa !17
  %.sroa.415.0..sroa_idx = getelementptr i8, ptr %152, i64 24
  store double %149, ptr %.sroa.415.0..sroa_idx, align 8, !tbaa !17
  %154 = add nuw nsw i64 %.6223, 1
  %exitcond251.not = icmp eq i64 %154, %indvars.iv249
  br i1 %exitcond251.not, label %._crit_edge226, label %.lr.ph225, !llvm.loop !29

._crit_edge226:                                   ; preds = %.lr.ph225, %._crit_edge
  call void @_ZN11alglib_impl29hermitianmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorENS_10ae_complexES3_PNS_8ae_stateE(ptr noundef nonnull %5, i1 noundef zeroext true, i64 noundef %.0178230, i64 noundef %.0179228, ptr noundef nonnull %7, double %134, double %136, ptr noundef nonnull %9, ptr noundef %1)
  call void @_ZN11alglib_impl29hermitianmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorENS_10ae_complexES3_PNS_8ae_stateE(ptr noundef nonnull %6, i1 noundef zeroext false, i64 noundef %.0178230, i64 noundef %.0179228, ptr noundef nonnull %7, double %134, double %136, ptr noundef nonnull %10, ptr noundef %1)
  %155 = load ptr, ptr %16, align 8, !tbaa !8
  %156 = getelementptr inbounds i8, ptr %155, i64 16
  %157 = load ptr, ptr %15, align 8, !tbaa !8
  %158 = getelementptr inbounds i8, ptr %157, i64 16
  %159 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %123)
  call void @_ZN11alglib_impl9ae_v_csubEPNS_10ae_complexElPKS0_lPKcl(ptr noundef nonnull %156, i64 noundef 1, ptr noundef nonnull %158, i64 noundef 1, ptr noundef nonnull @.str.191, i64 noundef %159)
  %160 = load ptr, ptr %16, align 8, !tbaa !8
  %161 = getelementptr inbounds i8, ptr %160, i64 16
  %162 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %123)
  %163 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef nonnull %161, i64 noundef 1, ptr noundef nonnull @.str.191, ptr noundef nonnull %161, i64 noundef 1, ptr noundef nonnull @.str.190, i64 noundef %162)
  %164 = extractvalue { double, double } %163, 0
  %165 = extractvalue { double, double } %163, 1
  %166 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %164, double %165, ptr noundef %1)
  %167 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %166, ptr noundef %1)
  %168 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.2182227, double noundef %167, ptr noundef %1)
  %169 = load ptr, ptr %17, align 8, !tbaa !8
  %170 = getelementptr inbounds i8, ptr %169, i64 16
  %171 = load ptr, ptr %15, align 8, !tbaa !8
  %172 = getelementptr inbounds i8, ptr %171, i64 16
  %173 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %123)
  call void @_ZN11alglib_impl9ae_v_csubEPNS_10ae_complexElPKS0_lPKcl(ptr noundef nonnull %170, i64 noundef 1, ptr noundef nonnull %172, i64 noundef 1, ptr noundef nonnull @.str.191, i64 noundef %173)
  %174 = load ptr, ptr %17, align 8, !tbaa !8
  %175 = getelementptr inbounds i8, ptr %174, i64 16
  %176 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %123)
  %177 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef nonnull %175, i64 noundef 1, ptr noundef nonnull @.str.191, ptr noundef nonnull %175, i64 noundef 1, ptr noundef nonnull @.str.190, i64 noundef %176)
  %178 = extractvalue { double, double } %177, 0
  %179 = extractvalue { double, double } %177, 1
  %180 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %178, double %179, ptr noundef %1)
  %181 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %180, ptr noundef %1)
  %182 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %168, double noundef %181, ptr noundef %1)
  %183 = add nuw nsw i64 %.0179228, 1
  %.not189.not = icmp ult i64 %.0179228, %.0232
  %indvars.iv.next245 = add nuw nsw i64 %indvars.iv244, 1
  %indvars.iv.next250 = add nuw nsw i64 %indvars.iv249, 1
  br i1 %.not189.not, label %.lr.ph221.preheader, label %184, !llvm.loop !30

184:                                              ; preds = %._crit_edge226
  %185 = add nuw nsw i64 %.0178230, 1
  %indvars.iv.next248 = add nuw nsw i64 %indvars.iv247, 1
  %exitcond252.not = icmp eq i64 %indvars.iv.next248, %indvars.iv241
  br i1 %exitcond252.not, label %.loopexit203, label %.preheader197, !llvm.loop !31

186:                                              ; preds = %.loopexit203
  %187 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %182, double noundef 5.000000e-13)
  br i1 %0, label %194, label %188

188:                                              ; preds = %186
  %189 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.272)
  %190 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.273, double noundef %182)
  %191 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.196, double noundef 5.000000e-13)
  %.str.1..str.2 = select i1 %187, ptr @.str.1, ptr @.str.2
  %192 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2)
  %193 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %194

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

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

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

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

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

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


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