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

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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::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.192 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.195 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [49 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 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 noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z16testcreflectionsbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #4 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %15 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %16 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %17 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %18 = alloca %"struct.alglib_impl::ae_complex", align 8
  %19 = alloca %"struct.alglib_impl::ae_complex", align 8
  %20 = alloca %"struct.alglib_impl::ae_complex", align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i8, align 1
  %28 = alloca double, align 8
  %29 = alloca i8, align 1
  %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 = alloca %"struct.alglib_impl::ae_complex", align 8
  %40 = alloca %"struct.alglib_impl::ae_complex", align 8
  %41 = alloca %"struct.alglib_impl::ae_complex", align 8
  %42 = alloca %"struct.alglib_impl::ae_complex", align 8
  %43 = alloca %"struct.alglib_impl::ae_complex", align 8
  %44 = alloca %"struct.alglib_impl::ae_complex", align 8
  %45 = alloca %"struct.alglib_impl::ae_complex", align 8
  %46 = alloca %"struct.alglib_impl::ae_complex", align 8
  %47 = alloca %"struct.alglib_impl::ae_complex", align 8
  %48 = alloca %"struct.alglib_impl::ae_complex", align 8
  %49 = alloca %"struct.alglib_impl::ae_complex", align 8
  %50 = alloca %"struct.alglib_impl::ae_complex", align 8
  %51 = alloca %"struct.alglib_impl::ae_complex", align 8
  %52 = alloca %"struct.alglib_impl::ae_complex", align 8
  %53 = alloca %"struct.alglib_impl::ae_complex", align 8
  %54 = alloca %"struct.alglib_impl::ae_complex", align 8
  %55 = alloca %"struct.alglib_impl::ae_complex", align 8
  %56 = alloca %"struct.alglib_impl::ae_complex", align 8
  %57 = alloca %"struct.alglib_impl::ae_complex", align 8
  %58 = alloca %"struct.alglib_impl::ae_complex", align 8
  %59 = alloca %"struct.alglib_impl::ae_complex", align 8
  %60 = alloca %"struct.alglib_impl::ae_complex", align 8
  %61 = alloca %"struct.alglib_impl::ae_complex", align 8
  %62 = alloca %"struct.alglib_impl::ae_complex", align 8
  %63 = alloca %"struct.alglib_impl::ae_complex", align 8
  %64 = alloca %"struct.alglib_impl::ae_complex", align 8
  %65 = alloca %"struct.alglib_impl::ae_complex", align 8
  %66 = alloca %"struct.alglib_impl::ae_complex", align 8
  %67 = alloca %"struct.alglib_impl::ae_complex", align 8
  %68 = alloca %"struct.alglib_impl::ae_complex", align 8
  %69 = alloca %"struct.alglib_impl::ae_complex", align 8
  %70 = alloca %"struct.alglib_impl::ae_complex", align 8
  %71 = alloca %"struct.alglib_impl::ae_complex", align 8
  %72 = alloca %"struct.alglib_impl::ae_complex", align 8
  %73 = alloca %"struct.alglib_impl::ae_complex", align 8
  %74 = alloca %"struct.alglib_impl::ae_complex", align 8
  %75 = alloca %"struct.alglib_impl::ae_complex", align 8
  %76 = alloca %"struct.alglib_impl::ae_complex", align 8
  %77 = alloca %"struct.alglib_impl::ae_complex", align 8
  %78 = alloca %"struct.alglib_impl::ae_complex", align 8
  %79 = alloca %"struct.alglib_impl::ae_complex", align 8
  %80 = alloca %"struct.alglib_impl::ae_complex", align 8
  %81 = alloca %"struct.alglib_impl::ae_complex", align 8
  %82 = alloca %"struct.alglib_impl::ae_complex", align 8
  %83 = alloca %"struct.alglib_impl::ae_complex", align 8
  %84 = alloca %"struct.alglib_impl::ae_complex", align 8
  %85 = alloca %"struct.alglib_impl::ae_complex", align 8
  %86 = alloca %"struct.alglib_impl::ae_complex", align 8
  %87 = alloca %"struct.alglib_impl::ae_complex", align 8
  %88 = alloca %"struct.alglib_impl::ae_complex", align 8
  %89 = alloca %"struct.alglib_impl::ae_complex", align 8
  %90 = alloca %"struct.alglib_impl::ae_complex", align 8
  %91 = alloca %"struct.alglib_impl::ae_complex", align 8
  %92 = alloca %"struct.alglib_impl::ae_complex", align 8
  %93 = zext i1 %0 to i8
  store i8 %93, 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 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, 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 64, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #6
  %94 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %94, ptr noundef %5)
  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)
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 80, i1 false)
  %95 = 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 %95, i1 noundef zeroext true)
  %96 = 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 %96, i1 noundef zeroext true)
  %97 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %13, i64 noundef 0, i64 noundef 4, ptr noundef %97, i1 noundef zeroext true)
  %98 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %14, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %98, i1 noundef zeroext true)
  %99 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %15, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %99, i1 noundef zeroext true)
  %100 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %100, i1 noundef zeroext true)
  %101 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %101, i1 noundef zeroext true)
  store double 5.000000e-13, ptr %28, align 8, !tbaa !11
  store i64 1000, ptr %26, align 8, !tbaa !13
  store double 0.000000e+00, ptr %22, align 8, !tbaa !11
  store double 0.000000e+00, ptr %23, align 8, !tbaa !11
  store double 0.000000e+00, ptr %24, align 8, !tbaa !11
  store i64 1, ptr %25, align 8, !tbaa !13
  br label %102

102:                                              ; preds = %1109, %2
  %103 = load i64, ptr %25, align 8, !tbaa !13
  %104 = load i64, ptr %26, align 8, !tbaa !13
  %105 = icmp sle i64 %103, %104
  br i1 %105, label %106, label %1112

106:                                              ; preds = %102
  %107 = load ptr, ptr %4, align 8, !tbaa !9
  %108 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %107)
  %109 = add nsw i64 1, %108
  store i64 %109, ptr %8, align 8, !tbaa !13
  %110 = load ptr, ptr %4, align 8, !tbaa !9
  %111 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %110)
  %112 = add nsw i64 1, %111
  store i64 %112, ptr %9, align 8, !tbaa !13
  %113 = load i64, ptr %9, align 8, !tbaa !13
  %114 = load i64, ptr %8, align 8, !tbaa !13
  %115 = load ptr, ptr %4, align 8, !tbaa !9
  %116 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %113, i64 noundef %114, ptr noundef %115)
  store i64 %116, ptr %10, align 8, !tbaa !13
  %117 = load i64, ptr %10, align 8, !tbaa !13
  %118 = add nsw i64 %117, 1
  %119 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef %118, ptr noundef %119)
  %120 = load i64, ptr %10, align 8, !tbaa !13
  %121 = add nsw i64 %120, 1
  %122 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %121, ptr noundef %122)
  %123 = load i64, ptr %10, align 8, !tbaa !13
  %124 = add nsw i64 %123, 1
  %125 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %124, ptr noundef %125)
  %126 = load i64, ptr %10, align 8, !tbaa !13
  %127 = add nsw i64 %126, 1
  %128 = load i64, ptr %10, align 8, !tbaa !13
  %129 = add nsw i64 %128, 1
  %130 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %14, i64 noundef %127, i64 noundef %129, ptr noundef %130)
  %131 = load i64, ptr %10, align 8, !tbaa !13
  %132 = add nsw i64 %131, 1
  %133 = load i64, ptr %10, align 8, !tbaa !13
  %134 = add nsw i64 %133, 1
  %135 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %15, i64 noundef %132, i64 noundef %134, ptr noundef %135)
  %136 = load i64, ptr %10, align 8, !tbaa !13
  %137 = add nsw i64 %136, 1
  %138 = load i64, ptr %10, align 8, !tbaa !13
  %139 = add nsw i64 %138, 1
  %140 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %16, i64 noundef %137, i64 noundef %139, ptr noundef %140)
  %141 = load i64, ptr %10, align 8, !tbaa !13
  %142 = add nsw i64 %141, 1
  %143 = load i64, ptr %10, align 8, !tbaa !13
  %144 = add nsw i64 %143, 1
  %145 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %17, i64 noundef %142, i64 noundef %144, ptr noundef %145)
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %146

146:                                              ; preds = %175, %106
  %147 = load i64, ptr %6, align 8, !tbaa !13
  %148 = load i64, ptr %8, align 8, !tbaa !13
  %149 = icmp sle i64 %147, %148
  br i1 %149, label %150, label %178

150:                                              ; preds = %146
  %151 = load ptr, ptr %4, align 8, !tbaa !9
  %152 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %151)
  %153 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %152, double -1.000000e+00)
  %154 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %155 = load ptr, ptr %154, align 8, !tbaa !15
  %156 = load i64, ptr %6, align 8, !tbaa !13
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %155, i64 %156
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %157, i32 0, i32 0
  store double %153, ptr %158, align 8, !tbaa !16
  %159 = load ptr, ptr %4, align 8, !tbaa !9
  %160 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %159)
  %161 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %160, double -1.000000e+00)
  %162 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %163 = load ptr, ptr %162, align 8, !tbaa !15
  %164 = load i64, ptr %6, align 8, !tbaa !13
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %163, i64 %164
  %166 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %165, i32 0, i32 1
  store double %161, ptr %166, align 8, !tbaa !18
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %168 = load ptr, ptr %167, align 8, !tbaa !15
  %169 = load i64, ptr %6, align 8, !tbaa !13
  %170 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %168, i64 %169
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !15
  %173 = load i64, ptr %6, align 8, !tbaa !13
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %172, i64 %173
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %174, ptr align 8 %170, i64 16, i1 false), !tbaa.struct !19
  br label %175

175:                                              ; preds = %150
  %176 = load i64, ptr %6, align 8, !tbaa !13
  %177 = add nsw i64 %176, 1
  store i64 %177, ptr %6, align 8, !tbaa !13
  br label %146, !llvm.loop !20

178:                                              ; preds = %146
  %179 = load i64, ptr %8, align 8, !tbaa !13
  %180 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl25complexgeneratereflectionEPNS_9ae_vectorElPNS_10ae_complexEPNS_8ae_stateE(ptr noundef %12, i64 noundef %179, ptr noundef %20, ptr noundef %180)
  %181 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %182 = load ptr, ptr %181, align 8, !tbaa !15
  %183 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %182, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %183, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  %184 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %185 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %186 = extractvalue { double, double } %184, 0
  store double %186, ptr %185, align 8
  %187 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %188 = extractvalue { double, double } %184, 1
  store double %188, ptr %187, align 8
  %189 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !15
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %190, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %191, ptr align 8 %30, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %192

192:                                              ; preds = %332, %178
  %193 = load i64, ptr %6, align 8, !tbaa !13
  %194 = load i64, ptr %8, align 8, !tbaa !13
  %195 = icmp sle i64 %193, %194
  br i1 %195, label %196, label %335

196:                                              ; preds = %192
  store i64 1, ptr %7, align 8, !tbaa !13
  br label %197

197:                                              ; preds = %328, %196
  %198 = load i64, ptr %7, align 8, !tbaa !13
  %199 = load i64, ptr %8, align 8, !tbaa !13
  %200 = icmp sle i64 %198, %199
  br i1 %200, label %201, label %331

201:                                              ; preds = %197
  %202 = load i64, ptr %6, align 8, !tbaa !13
  %203 = load i64, ptr %7, align 8, !tbaa !13
  %204 = icmp eq i64 %202, %203
  br i1 %204, label %205, label %266

205:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !19
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %207 = load ptr, ptr %206, align 8, !tbaa !15
  %208 = load i64, ptr %6, align 8, !tbaa !13
  %209 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %207, i64 %208
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %209, i64 16, i1 false), !tbaa.struct !19
  %210 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %211 = load double, ptr %210, align 8
  %212 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %213 = load double, ptr %212, align 8
  %214 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %215 = load double, ptr %214, align 8
  %216 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %217 = load double, ptr %216, align 8
  %218 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %211, double %213, double %215, double %217)
  %219 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %220 = extractvalue { double, double } %218, 0
  store double %220, ptr %219, align 8
  %221 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %222 = extractvalue { double, double } %218, 1
  store double %222, ptr %221, align 8
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !15
  %225 = load i64, ptr %7, align 8, !tbaa !13
  %226 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %224, i64 %225
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %37, ptr align 8 %226, i64 16, i1 false), !tbaa.struct !19
  %227 = load ptr, ptr %4, align 8, !tbaa !9
  %228 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %229 = load double, ptr %228, align 8
  %230 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %231 = load double, ptr %230, align 8
  %232 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %229, double %231, ptr noundef %227)
  %233 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %234 = extractvalue { double, double } %232, 0
  store double %234, ptr %233, align 8
  %235 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %236 = extractvalue { double, double } %232, 1
  store double %236, ptr %235, align 8
  %237 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %238 = load double, ptr %237, align 8
  %239 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %240 = load double, ptr %239, align 8
  %241 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %242 = load double, ptr %241, align 8
  %243 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %244 = load double, ptr %243, align 8
  %245 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %238, double %240, double %242, double %244)
  %246 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %247 = extractvalue { double, double } %245, 0
  store double %247, ptr %246, align 8
  %248 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %249 = extractvalue { double, double } %245, 1
  store double %249, ptr %248, align 8
  %250 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %251 = load double, ptr %250, align 8
  %252 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %253 = load double, ptr %252, align 8
  %254 = call { double, double } @_ZN11alglib_impl10ae_c_d_subEdNS_10ae_complexE(double noundef 1.000000e+00, double %251, double %253)
  %255 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %256 = extractvalue { double, double } %254, 0
  store double %256, ptr %255, align 8
  %257 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %258 = extractvalue { double, double } %254, 1
  store double %258, ptr %257, align 8
  %259 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %260 = load ptr, ptr %259, align 8, !tbaa !15
  %261 = load i64, ptr %6, align 8, !tbaa !13
  %262 = getelementptr inbounds ptr, ptr %260, i64 %261
  %263 = load ptr, ptr %262, align 8, !tbaa !9
  %264 = load i64, ptr %7, align 8, !tbaa !13
  %265 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %263, i64 %264
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %265, ptr align 8 %31, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  br label %327

266:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !19
  %267 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %268 = load ptr, ptr %267, align 8, !tbaa !15
  %269 = load i64, ptr %6, align 8, !tbaa !13
  %270 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %268, i64 %269
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %42, ptr align 8 %270, i64 16, i1 false), !tbaa.struct !19
  %271 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %272 = load double, ptr %271, align 8
  %273 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %274 = load double, ptr %273, align 8
  %275 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %276 = load double, ptr %275, align 8
  %277 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %278 = load double, ptr %277, align 8
  %279 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %272, double %274, double %276, double %278)
  %280 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %281 = extractvalue { double, double } %279, 0
  store double %281, ptr %280, align 8
  %282 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %283 = extractvalue { double, double } %279, 1
  store double %283, ptr %282, align 8
  %284 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %285 = load ptr, ptr %284, align 8, !tbaa !15
  %286 = load i64, ptr %7, align 8, !tbaa !13
  %287 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %285, i64 %286
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 8 %287, i64 16, i1 false), !tbaa.struct !19
  %288 = load ptr, ptr %4, align 8, !tbaa !9
  %289 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %290 = load double, ptr %289, align 8
  %291 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %292 = load double, ptr %291, align 8
  %293 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %290, double %292, ptr noundef %288)
  %294 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %295 = extractvalue { double, double } %293, 0
  store double %295, ptr %294, align 8
  %296 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %297 = extractvalue { double, double } %293, 1
  store double %297, ptr %296, align 8
  %298 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %299 = load double, ptr %298, align 8
  %300 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %301 = load double, ptr %300, align 8
  %302 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %303 = load double, ptr %302, align 8
  %304 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %305 = load double, ptr %304, align 8
  %306 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %299, double %301, double %303, double %305)
  %307 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %308 = extractvalue { double, double } %306, 0
  store double %308, ptr %307, align 8
  %309 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %310 = extractvalue { double, double } %306, 1
  store double %310, ptr %309, align 8
  %311 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %312 = load double, ptr %311, align 8
  %313 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %314 = load double, ptr %313, align 8
  %315 = call { double, double } @_ZN11alglib_impl8ae_c_negENS_10ae_complexE(double %312, double %314)
  %316 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %317 = extractvalue { double, double } %315, 0
  store double %317, ptr %316, align 8
  %318 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %319 = extractvalue { double, double } %315, 1
  store double %319, ptr %318, align 8
  %320 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %321 = load ptr, ptr %320, align 8, !tbaa !15
  %322 = load i64, ptr %6, align 8, !tbaa !13
  %323 = getelementptr inbounds ptr, ptr %321, i64 %322
  %324 = load ptr, ptr %323, align 8, !tbaa !9
  %325 = load i64, ptr %7, align 8, !tbaa !13
  %326 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %324, i64 %325
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %326, ptr align 8 %38, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #6
  br label %327

327:                                              ; preds = %266, %205
  br label %328

328:                                              ; preds = %327
  %329 = load i64, ptr %7, align 8, !tbaa !13
  %330 = add nsw i64 %329, 1
  store i64 %330, ptr %7, align 8, !tbaa !13
  br label %197, !llvm.loop !22

331:                                              ; preds = %197
  br label %332

332:                                              ; preds = %331
  %333 = load i64, ptr %6, align 8, !tbaa !13
  %334 = add nsw i64 %333, 1
  store i64 %334, ptr %6, align 8, !tbaa !13
  br label %192, !llvm.loop !23

335:                                              ; preds = %192
  store double 0.000000e+00, ptr %21, align 8, !tbaa !11
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %336

336:                                              ; preds = %395, %335
  %337 = load i64, ptr %6, align 8, !tbaa !13
  %338 = load i64, ptr %8, align 8, !tbaa !13
  %339 = icmp sle i64 %337, %338
  br i1 %339, label %340, label %398

340:                                              ; preds = %336
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #6
  %341 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %342 = load ptr, ptr %341, align 8, !tbaa !15
  %343 = getelementptr inbounds ptr, ptr %342, i64 1
  %344 = load ptr, ptr %343, align 8, !tbaa !9
  %345 = load i64, ptr %6, align 8, !tbaa !13
  %346 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %344, i64 %345
  %347 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 2
  %348 = load i64, ptr %347, align 8, !tbaa !24
  %349 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %350 = load ptr, ptr %349, align 8, !tbaa !15
  %351 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %350, i64 1
  %352 = load i64, ptr %8, align 8, !tbaa !13
  %353 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %352)
  %354 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %346, i64 noundef %348, ptr noundef @.str.190, ptr noundef %351, i64 noundef 1, ptr noundef @.str.191, i64 noundef %353)
  %355 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %356 = extractvalue { double, double } %354, 0
  store double %356, ptr %355, align 8
  %357 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %358 = extractvalue { double, double } %354, 1
  store double %358, ptr %357, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %45, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #6
  %359 = load i64, ptr %6, align 8, !tbaa !13
  %360 = icmp eq i64 %359, 1
  br i1 %360, label %361, label %384

361:                                              ; preds = %340
  %362 = load double, ptr %21, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %47, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %48, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !19
  %363 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %364 = load double, ptr %363, align 8
  %365 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %366 = load double, ptr %365, align 8
  %367 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %368 = load double, ptr %367, align 8
  %369 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %370 = load double, ptr %369, align 8
  %371 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %364, double %366, double %368, double %370)
  %372 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %373 = extractvalue { double, double } %371, 0
  store double %373, ptr %372, align 8
  %374 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %375 = extractvalue { double, double } %371, 1
  store double %375, ptr %374, align 8
  %376 = load ptr, ptr %4, align 8, !tbaa !9
  %377 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %378 = load double, ptr %377, align 8
  %379 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %380 = load double, ptr %379, align 8
  %381 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %378, double %380, ptr noundef %376)
  %382 = load ptr, ptr %4, align 8, !tbaa !9
  %383 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %362, double noundef %381, ptr noundef %382)
  store double %383, ptr %21, align 8, !tbaa !11
  br label %394

384:                                              ; preds = %340
  %385 = load double, ptr %21, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %49, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !19
  %386 = load ptr, ptr %4, align 8, !tbaa !9
  %387 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %388 = load double, ptr %387, align 8
  %389 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %390 = load double, ptr %389, align 8
  %391 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %388, double %390, ptr noundef %386)
  %392 = load ptr, ptr %4, align 8, !tbaa !9
  %393 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %385, double noundef %391, ptr noundef %392)
  store double %393, ptr %21, align 8, !tbaa !11
  br label %394

394:                                              ; preds = %384, %361
  br label %395

395:                                              ; preds = %394
  %396 = load i64, ptr %6, align 8, !tbaa !13
  %397 = add nsw i64 %396, 1
  store i64 %397, ptr %6, align 8, !tbaa !13
  br label %336, !llvm.loop !27

398:                                              ; preds = %336
  %399 = load double, ptr %21, align 8, !tbaa !11
  %400 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %19, i32 0, i32 1
  %401 = load double, ptr %400, align 8, !tbaa !18
  %402 = load ptr, ptr %4, align 8, !tbaa !9
  %403 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %401, ptr noundef %402)
  %404 = load ptr, ptr %4, align 8, !tbaa !9
  %405 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %399, double noundef %403, ptr noundef %404)
  store double %405, ptr %21, align 8, !tbaa !11
  %406 = load double, ptr %24, align 8, !tbaa !11
  %407 = load double, ptr %21, align 8, !tbaa !11
  %408 = load ptr, ptr %4, align 8, !tbaa !9
  %409 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %406, double noundef %407, ptr noundef %408)
  store double %409, ptr %24, align 8, !tbaa !11
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %410

410:                                              ; preds = %439, %398
  %411 = load i64, ptr %6, align 8, !tbaa !13
  %412 = load i64, ptr %9, align 8, !tbaa !13
  %413 = icmp sle i64 %411, %412
  br i1 %413, label %414, label %442

414:                                              ; preds = %410
  %415 = load ptr, ptr %4, align 8, !tbaa !9
  %416 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %415)
  %417 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %416, double -1.000000e+00)
  %418 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %419 = load ptr, ptr %418, align 8, !tbaa !15
  %420 = load i64, ptr %6, align 8, !tbaa !13
  %421 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %419, i64 %420
  %422 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %421, i32 0, i32 0
  store double %417, ptr %422, align 8, !tbaa !16
  %423 = load ptr, ptr %4, align 8, !tbaa !9
  %424 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %423)
  %425 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %424, double -1.000000e+00)
  %426 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %427 = load ptr, ptr %426, align 8, !tbaa !15
  %428 = load i64, ptr %6, align 8, !tbaa !13
  %429 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %427, i64 %428
  %430 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %429, i32 0, i32 1
  store double %425, ptr %430, align 8, !tbaa !18
  %431 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %432 = load ptr, ptr %431, align 8, !tbaa !15
  %433 = load i64, ptr %6, align 8, !tbaa !13
  %434 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %432, i64 %433
  %435 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %436 = load ptr, ptr %435, align 8, !tbaa !15
  %437 = load i64, ptr %6, align 8, !tbaa !13
  %438 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %436, i64 %437
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %438, ptr align 8 %434, i64 16, i1 false), !tbaa.struct !19
  br label %439

439:                                              ; preds = %414
  %440 = load i64, ptr %6, align 8, !tbaa !13
  %441 = add nsw i64 %440, 1
  store i64 %441, ptr %6, align 8, !tbaa !13
  br label %410, !llvm.loop !28

442:                                              ; preds = %410
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %443

443:                                              ; preds = %493, %442
  %444 = load i64, ptr %6, align 8, !tbaa !13
  %445 = load i64, ptr %9, align 8, !tbaa !13
  %446 = icmp sle i64 %444, %445
  br i1 %446, label %447, label %496

447:                                              ; preds = %443
  store i64 1, ptr %7, align 8, !tbaa !13
  br label %448

448:                                              ; preds = %489, %447
  %449 = load i64, ptr %7, align 8, !tbaa !13
  %450 = load i64, ptr %8, align 8, !tbaa !13
  %451 = icmp sle i64 %449, %450
  br i1 %451, label %452, label %492

452:                                              ; preds = %448
  %453 = load ptr, ptr %4, align 8, !tbaa !9
  %454 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %453)
  %455 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %454, double -1.000000e+00)
  %456 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %457 = load ptr, ptr %456, align 8, !tbaa !15
  %458 = load i64, ptr %6, align 8, !tbaa !13
  %459 = getelementptr inbounds ptr, ptr %457, i64 %458
  %460 = load ptr, ptr %459, align 8, !tbaa !9
  %461 = load i64, ptr %7, align 8, !tbaa !13
  %462 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %460, i64 %461
  %463 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %462, i32 0, i32 0
  store double %455, ptr %463, align 8, !tbaa !16
  %464 = load ptr, ptr %4, align 8, !tbaa !9
  %465 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %464)
  %466 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %465, double -1.000000e+00)
  %467 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %468 = load ptr, ptr %467, align 8, !tbaa !15
  %469 = load i64, ptr %6, align 8, !tbaa !13
  %470 = getelementptr inbounds ptr, ptr %468, i64 %469
  %471 = load ptr, ptr %470, align 8, !tbaa !9
  %472 = load i64, ptr %7, align 8, !tbaa !13
  %473 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %471, i64 %472
  %474 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %473, i32 0, i32 1
  store double %466, ptr %474, align 8, !tbaa !18
  %475 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %476 = load ptr, ptr %475, align 8, !tbaa !15
  %477 = load i64, ptr %6, align 8, !tbaa !13
  %478 = getelementptr inbounds ptr, ptr %476, i64 %477
  %479 = load ptr, ptr %478, align 8, !tbaa !9
  %480 = load i64, ptr %7, align 8, !tbaa !13
  %481 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %479, i64 %480
  %482 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %483 = load ptr, ptr %482, align 8, !tbaa !15
  %484 = load i64, ptr %6, align 8, !tbaa !13
  %485 = getelementptr inbounds ptr, ptr %483, i64 %484
  %486 = load ptr, ptr %485, align 8, !tbaa !9
  %487 = load i64, ptr %7, align 8, !tbaa !13
  %488 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %486, i64 %487
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %488, ptr align 8 %481, i64 16, i1 false), !tbaa.struct !19
  br label %489

489:                                              ; preds = %452
  %490 = load i64, ptr %7, align 8, !tbaa !13
  %491 = add nsw i64 %490, 1
  store i64 %491, ptr %7, align 8, !tbaa !13
  br label %448, !llvm.loop !29

492:                                              ; preds = %448
  br label %493

493:                                              ; preds = %492
  %494 = load i64, ptr %6, align 8, !tbaa !13
  %495 = add nsw i64 %494, 1
  store i64 %495, ptr %6, align 8, !tbaa !13
  br label %443, !llvm.loop !30

496:                                              ; preds = %443
  %497 = load i64, ptr %9, align 8, !tbaa !13
  %498 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl25complexgeneratereflectionEPNS_9ae_vectorElPNS_10ae_complexEPNS_8ae_stateE(ptr noundef %12, i64 noundef %497, ptr noundef %20, ptr noundef %498)
  %499 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %500 = load ptr, ptr %499, align 8, !tbaa !15
  %501 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %500, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %501, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #6
  %502 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %503 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %504 = extractvalue { double, double } %502, 0
  store double %504, ptr %503, align 8
  %505 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %506 = extractvalue { double, double } %502, 1
  store double %506, ptr %505, align 8
  %507 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %508 = load ptr, ptr %507, align 8, !tbaa !15
  %509 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %508, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %509, ptr align 8 %50, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %51, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !19
  %510 = load i64, ptr %9, align 8, !tbaa !13
  %511 = load i64, ptr %8, align 8, !tbaa !13
  %512 = load ptr, ptr %4, align 8, !tbaa !9
  %513 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %514 = load double, ptr %513, align 8
  %515 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %516 = load double, ptr %515, align 8
  call void @_ZN11alglib_impl33complexapplyreflectionfromtheleftEPNS_9ae_matrixENS_10ae_complexEPNS_9ae_vectorEllllS4_PNS_8ae_stateE(ptr noundef %16, double %514, double %516, ptr noundef %12, i64 noundef 1, i64 noundef %510, i64 noundef 1, i64 noundef %511, ptr noundef %13, ptr noundef %512)
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %517

517:                                              ; preds = %657, %496
  %518 = load i64, ptr %6, align 8, !tbaa !13
  %519 = load i64, ptr %9, align 8, !tbaa !13
  %520 = icmp sle i64 %518, %519
  br i1 %520, label %521, label %660

521:                                              ; preds = %517
  store i64 1, ptr %7, align 8, !tbaa !13
  br label %522

522:                                              ; preds = %653, %521
  %523 = load i64, ptr %7, align 8, !tbaa !13
  %524 = load i64, ptr %9, align 8, !tbaa !13
  %525 = icmp sle i64 %523, %524
  br i1 %525, label %526, label %656

526:                                              ; preds = %522
  %527 = load i64, ptr %6, align 8, !tbaa !13
  %528 = load i64, ptr %7, align 8, !tbaa !13
  %529 = icmp eq i64 %527, %528
  br i1 %529, label %530, label %591

530:                                              ; preds = %526
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !19
  %531 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %532 = load ptr, ptr %531, align 8, !tbaa !15
  %533 = load i64, ptr %6, align 8, !tbaa !13
  %534 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %532, i64 %533
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %56, ptr align 8 %534, i64 16, i1 false), !tbaa.struct !19
  %535 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %536 = load double, ptr %535, align 8
  %537 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %538 = load double, ptr %537, align 8
  %539 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %540 = load double, ptr %539, align 8
  %541 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %542 = load double, ptr %541, align 8
  %543 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %536, double %538, double %540, double %542)
  %544 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %545 = extractvalue { double, double } %543, 0
  store double %545, ptr %544, align 8
  %546 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %547 = extractvalue { double, double } %543, 1
  store double %547, ptr %546, align 8
  %548 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %549 = load ptr, ptr %548, align 8, !tbaa !15
  %550 = load i64, ptr %7, align 8, !tbaa !13
  %551 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %549, i64 %550
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %58, ptr align 8 %551, i64 16, i1 false), !tbaa.struct !19
  %552 = load ptr, ptr %4, align 8, !tbaa !9
  %553 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %554 = load double, ptr %553, align 8
  %555 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %556 = load double, ptr %555, align 8
  %557 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %554, double %556, ptr noundef %552)
  %558 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 0
  %559 = extractvalue { double, double } %557, 0
  store double %559, ptr %558, align 8
  %560 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 1
  %561 = extractvalue { double, double } %557, 1
  store double %561, ptr %560, align 8
  %562 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %563 = load double, ptr %562, align 8
  %564 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %565 = load double, ptr %564, align 8
  %566 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 0
  %567 = load double, ptr %566, align 8
  %568 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 1
  %569 = load double, ptr %568, align 8
  %570 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %563, double %565, double %567, double %569)
  %571 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %572 = extractvalue { double, double } %570, 0
  store double %572, ptr %571, align 8
  %573 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %574 = extractvalue { double, double } %570, 1
  store double %574, ptr %573, align 8
  %575 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %576 = load double, ptr %575, align 8
  %577 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %578 = load double, ptr %577, align 8
  %579 = call { double, double } @_ZN11alglib_impl10ae_c_d_subEdNS_10ae_complexE(double noundef 1.000000e+00, double %576, double %578)
  %580 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %581 = extractvalue { double, double } %579, 0
  store double %581, ptr %580, align 8
  %582 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %583 = extractvalue { double, double } %579, 1
  store double %583, ptr %582, align 8
  %584 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %585 = load ptr, ptr %584, align 8, !tbaa !15
  %586 = load i64, ptr %6, align 8, !tbaa !13
  %587 = getelementptr inbounds ptr, ptr %585, i64 %586
  %588 = load ptr, ptr %587, align 8, !tbaa !9
  %589 = load i64, ptr %7, align 8, !tbaa !13
  %590 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %588, i64 %589
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %590, ptr align 8 %52, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #6
  br label %652

591:                                              ; preds = %526
  call void @llvm.lifetime.start.p0(i64 16, ptr %59) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %62, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !19
  %592 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %593 = load ptr, ptr %592, align 8, !tbaa !15
  %594 = load i64, ptr %6, align 8, !tbaa !13
  %595 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %593, i64 %594
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %63, ptr align 8 %595, i64 16, i1 false), !tbaa.struct !19
  %596 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %597 = load double, ptr %596, align 8
  %598 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %599 = load double, ptr %598, align 8
  %600 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %601 = load double, ptr %600, align 8
  %602 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %603 = load double, ptr %602, align 8
  %604 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %597, double %599, double %601, double %603)
  %605 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %606 = extractvalue { double, double } %604, 0
  store double %606, ptr %605, align 8
  %607 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %608 = extractvalue { double, double } %604, 1
  store double %608, ptr %607, align 8
  %609 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %610 = load ptr, ptr %609, align 8, !tbaa !15
  %611 = load i64, ptr %7, align 8, !tbaa !13
  %612 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %610, i64 %611
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %65, ptr align 8 %612, i64 16, i1 false), !tbaa.struct !19
  %613 = load ptr, ptr %4, align 8, !tbaa !9
  %614 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 0
  %615 = load double, ptr %614, align 8
  %616 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 1
  %617 = load double, ptr %616, align 8
  %618 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %615, double %617, ptr noundef %613)
  %619 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %620 = extractvalue { double, double } %618, 0
  store double %620, ptr %619, align 8
  %621 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %622 = extractvalue { double, double } %618, 1
  store double %622, ptr %621, align 8
  %623 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %624 = load double, ptr %623, align 8
  %625 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %626 = load double, ptr %625, align 8
  %627 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %628 = load double, ptr %627, align 8
  %629 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %630 = load double, ptr %629, align 8
  %631 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %624, double %626, double %628, double %630)
  %632 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 0
  %633 = extractvalue { double, double } %631, 0
  store double %633, ptr %632, align 8
  %634 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 1
  %635 = extractvalue { double, double } %631, 1
  store double %635, ptr %634, align 8
  %636 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 0
  %637 = load double, ptr %636, align 8
  %638 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 1
  %639 = load double, ptr %638, align 8
  %640 = call { double, double } @_ZN11alglib_impl8ae_c_negENS_10ae_complexE(double %637, double %639)
  %641 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 0
  %642 = extractvalue { double, double } %640, 0
  store double %642, ptr %641, align 8
  %643 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 1
  %644 = extractvalue { double, double } %640, 1
  store double %644, ptr %643, align 8
  %645 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %646 = load ptr, ptr %645, align 8, !tbaa !15
  %647 = load i64, ptr %6, align 8, !tbaa !13
  %648 = getelementptr inbounds ptr, ptr %646, i64 %647
  %649 = load ptr, ptr %648, align 8, !tbaa !9
  %650 = load i64, ptr %7, align 8, !tbaa !13
  %651 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %649, i64 %650
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %651, ptr align 8 %59, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #6
  br label %652

652:                                              ; preds = %591, %530
  br label %653

653:                                              ; preds = %652
  %654 = load i64, ptr %7, align 8, !tbaa !13
  %655 = add nsw i64 %654, 1
  store i64 %655, ptr %7, align 8, !tbaa !13
  br label %522, !llvm.loop !31

656:                                              ; preds = %522
  br label %657

657:                                              ; preds = %656
  %658 = load i64, ptr %6, align 8, !tbaa !13
  %659 = add nsw i64 %658, 1
  store i64 %659, ptr %6, align 8, !tbaa !13
  br label %517, !llvm.loop !32

660:                                              ; preds = %517
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %661

661:                                              ; preds = %703, %660
  %662 = load i64, ptr %6, align 8, !tbaa !13
  %663 = load i64, ptr %9, align 8, !tbaa !13
  %664 = icmp sle i64 %662, %663
  br i1 %664, label %665, label %706

665:                                              ; preds = %661
  store i64 1, ptr %7, align 8, !tbaa !13
  br label %666

666:                                              ; preds = %699, %665
  %667 = load i64, ptr %7, align 8, !tbaa !13
  %668 = load i64, ptr %8, align 8, !tbaa !13
  %669 = icmp sle i64 %667, %668
  br i1 %669, label %670, label %702

670:                                              ; preds = %666
  call void @llvm.lifetime.start.p0(i64 16, ptr %66) #6
  %671 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %672 = load ptr, ptr %671, align 8, !tbaa !15
  %673 = load i64, ptr %6, align 8, !tbaa !13
  %674 = getelementptr inbounds ptr, ptr %672, i64 %673
  %675 = load ptr, ptr %674, align 8, !tbaa !9
  %676 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %675, i64 1
  %677 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %678 = load ptr, ptr %677, align 8, !tbaa !15
  %679 = getelementptr inbounds ptr, ptr %678, i64 1
  %680 = load ptr, ptr %679, align 8, !tbaa !9
  %681 = load i64, ptr %7, align 8, !tbaa !13
  %682 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %680, i64 %681
  %683 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 2
  %684 = load i64, ptr %683, align 8, !tbaa !24
  %685 = load i64, ptr %9, align 8, !tbaa !13
  %686 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %685)
  %687 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %676, i64 noundef 1, ptr noundef @.str.191, ptr noundef %682, i64 noundef %684, ptr noundef @.str.191, i64 noundef %686)
  %688 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 0
  %689 = extractvalue { double, double } %687, 0
  store double %689, ptr %688, align 8
  %690 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 1
  %691 = extractvalue { double, double } %687, 1
  store double %691, ptr %690, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %66, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %66) #6
  %692 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %693 = load ptr, ptr %692, align 8, !tbaa !15
  %694 = load i64, ptr %6, align 8, !tbaa !13
  %695 = getelementptr inbounds ptr, ptr %693, i64 %694
  %696 = load ptr, ptr %695, align 8, !tbaa !9
  %697 = load i64, ptr %7, align 8, !tbaa !13
  %698 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %696, i64 %697
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %698, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !19
  br label %699

699:                                              ; preds = %670
  %700 = load i64, ptr %7, align 8, !tbaa !13
  %701 = add nsw i64 %700, 1
  store i64 %701, ptr %7, align 8, !tbaa !13
  br label %666, !llvm.loop !33

702:                                              ; preds = %666
  br label %703

703:                                              ; preds = %702
  %704 = load i64, ptr %6, align 8, !tbaa !13
  %705 = add nsw i64 %704, 1
  store i64 %705, ptr %6, align 8, !tbaa !13
  br label %661, !llvm.loop !34

706:                                              ; preds = %661
  store double 0.000000e+00, ptr %21, align 8, !tbaa !11
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %707

707:                                              ; preds = %757, %706
  %708 = load i64, ptr %6, align 8, !tbaa !13
  %709 = load i64, ptr %9, align 8, !tbaa !13
  %710 = icmp sle i64 %708, %709
  br i1 %710, label %711, label %760

711:                                              ; preds = %707
  store i64 1, ptr %7, align 8, !tbaa !13
  br label %712

712:                                              ; preds = %753, %711
  %713 = load i64, ptr %7, align 8, !tbaa !13
  %714 = load i64, ptr %8, align 8, !tbaa !13
  %715 = icmp sle i64 %713, %714
  br i1 %715, label %716, label %756

716:                                              ; preds = %712
  %717 = load double, ptr %21, align 8, !tbaa !11
  %718 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %719 = load ptr, ptr %718, align 8, !tbaa !15
  %720 = load i64, ptr %6, align 8, !tbaa !13
  %721 = getelementptr inbounds ptr, ptr %719, i64 %720
  %722 = load ptr, ptr %721, align 8, !tbaa !9
  %723 = load i64, ptr %7, align 8, !tbaa !13
  %724 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %722, i64 %723
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %68, ptr align 8 %724, i64 16, i1 false), !tbaa.struct !19
  %725 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %726 = load ptr, ptr %725, align 8, !tbaa !15
  %727 = load i64, ptr %6, align 8, !tbaa !13
  %728 = getelementptr inbounds ptr, ptr %726, i64 %727
  %729 = load ptr, ptr %728, align 8, !tbaa !9
  %730 = load i64, ptr %7, align 8, !tbaa !13
  %731 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %729, i64 %730
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %69, ptr align 8 %731, i64 16, i1 false), !tbaa.struct !19
  %732 = getelementptr inbounds { double, double }, ptr %68, i32 0, i32 0
  %733 = load double, ptr %732, align 8
  %734 = getelementptr inbounds { double, double }, ptr %68, i32 0, i32 1
  %735 = load double, ptr %734, align 8
  %736 = getelementptr inbounds { double, double }, ptr %69, i32 0, i32 0
  %737 = load double, ptr %736, align 8
  %738 = getelementptr inbounds { double, double }, ptr %69, i32 0, i32 1
  %739 = load double, ptr %738, align 8
  %740 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %733, double %735, double %737, double %739)
  %741 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %742 = extractvalue { double, double } %740, 0
  store double %742, ptr %741, align 8
  %743 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %744 = extractvalue { double, double } %740, 1
  store double %744, ptr %743, align 8
  %745 = load ptr, ptr %4, align 8, !tbaa !9
  %746 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %747 = load double, ptr %746, align 8
  %748 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %749 = load double, ptr %748, align 8
  %750 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %747, double %749, ptr noundef %745)
  %751 = load ptr, ptr %4, align 8, !tbaa !9
  %752 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %717, double noundef %750, ptr noundef %751)
  store double %752, ptr %21, align 8, !tbaa !11
  br label %753

753:                                              ; preds = %716
  %754 = load i64, ptr %7, align 8, !tbaa !13
  %755 = add nsw i64 %754, 1
  store i64 %755, ptr %7, align 8, !tbaa !13
  br label %712, !llvm.loop !35

756:                                              ; preds = %712
  br label %757

757:                                              ; preds = %756
  %758 = load i64, ptr %6, align 8, !tbaa !13
  %759 = add nsw i64 %758, 1
  store i64 %759, ptr %6, align 8, !tbaa !13
  br label %707, !llvm.loop !36

760:                                              ; preds = %707
  %761 = load double, ptr %23, align 8, !tbaa !11
  %762 = load double, ptr %21, align 8, !tbaa !11
  %763 = load ptr, ptr %4, align 8, !tbaa !9
  %764 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %761, double noundef %762, ptr noundef %763)
  store double %764, ptr %23, align 8, !tbaa !11
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %765

765:                                              ; preds = %790, %760
  %766 = load i64, ptr %6, align 8, !tbaa !13
  %767 = load i64, ptr %8, align 8, !tbaa !13
  %768 = icmp sle i64 %766, %767
  br i1 %768, label %769, label %793

769:                                              ; preds = %765
  call void @llvm.lifetime.start.p0(i64 16, ptr %70) #6
  %770 = load ptr, ptr %4, align 8, !tbaa !9
  %771 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %770)
  %772 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %771, double -1.000000e+00)
  %773 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %772)
  %774 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 0
  %775 = extractvalue { double, double } %773, 0
  store double %775, ptr %774, align 8
  %776 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 1
  %777 = extractvalue { double, double } %773, 1
  store double %777, ptr %776, align 8
  %778 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %779 = load ptr, ptr %778, align 8, !tbaa !15
  %780 = load i64, ptr %6, align 8, !tbaa !13
  %781 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %779, i64 %780
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %781, ptr align 8 %70, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %70) #6
  %782 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %783 = load ptr, ptr %782, align 8, !tbaa !15
  %784 = load i64, ptr %6, align 8, !tbaa !13
  %785 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %783, i64 %784
  %786 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %787 = load ptr, ptr %786, align 8, !tbaa !15
  %788 = load i64, ptr %6, align 8, !tbaa !13
  %789 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %787, i64 %788
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %789, ptr align 8 %785, i64 16, i1 false), !tbaa.struct !19
  br label %790

790:                                              ; preds = %769
  %791 = load i64, ptr %6, align 8, !tbaa !13
  %792 = add nsw i64 %791, 1
  store i64 %792, ptr %6, align 8, !tbaa !13
  br label %765, !llvm.loop !37

793:                                              ; preds = %765
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %794

794:                                              ; preds = %837, %793
  %795 = load i64, ptr %6, align 8, !tbaa !13
  %796 = load i64, ptr %9, align 8, !tbaa !13
  %797 = icmp sle i64 %795, %796
  br i1 %797, label %798, label %840

798:                                              ; preds = %794
  store i64 1, ptr %7, align 8, !tbaa !13
  br label %799

799:                                              ; preds = %833, %798
  %800 = load i64, ptr %7, align 8, !tbaa !13
  %801 = load i64, ptr %8, align 8, !tbaa !13
  %802 = icmp sle i64 %800, %801
  br i1 %802, label %803, label %836

803:                                              ; preds = %799
  call void @llvm.lifetime.start.p0(i64 16, ptr %71) #6
  %804 = load ptr, ptr %4, align 8, !tbaa !9
  %805 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %804)
  %806 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %805, double -1.000000e+00)
  %807 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %806)
  %808 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 0
  %809 = extractvalue { double, double } %807, 0
  store double %809, ptr %808, align 8
  %810 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 1
  %811 = extractvalue { double, double } %807, 1
  store double %811, ptr %810, align 8
  %812 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %813 = load ptr, ptr %812, align 8, !tbaa !15
  %814 = load i64, ptr %6, align 8, !tbaa !13
  %815 = getelementptr inbounds ptr, ptr %813, i64 %814
  %816 = load ptr, ptr %815, align 8, !tbaa !9
  %817 = load i64, ptr %7, align 8, !tbaa !13
  %818 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %816, i64 %817
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %818, ptr align 8 %71, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #6
  %819 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %820 = load ptr, ptr %819, align 8, !tbaa !15
  %821 = load i64, ptr %6, align 8, !tbaa !13
  %822 = getelementptr inbounds ptr, ptr %820, i64 %821
  %823 = load ptr, ptr %822, align 8, !tbaa !9
  %824 = load i64, ptr %7, align 8, !tbaa !13
  %825 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %823, i64 %824
  %826 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %827 = load ptr, ptr %826, align 8, !tbaa !15
  %828 = load i64, ptr %6, align 8, !tbaa !13
  %829 = getelementptr inbounds ptr, ptr %827, i64 %828
  %830 = load ptr, ptr %829, align 8, !tbaa !9
  %831 = load i64, ptr %7, align 8, !tbaa !13
  %832 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %830, i64 %831
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %832, ptr align 8 %825, i64 16, i1 false), !tbaa.struct !19
  br label %833

833:                                              ; preds = %803
  %834 = load i64, ptr %7, align 8, !tbaa !13
  %835 = add nsw i64 %834, 1
  store i64 %835, ptr %7, align 8, !tbaa !13
  br label %799, !llvm.loop !38

836:                                              ; preds = %799
  br label %837

837:                                              ; preds = %836
  %838 = load i64, ptr %6, align 8, !tbaa !13
  %839 = add nsw i64 %838, 1
  store i64 %839, ptr %6, align 8, !tbaa !13
  br label %794, !llvm.loop !39

840:                                              ; preds = %794
  %841 = load i64, ptr %8, align 8, !tbaa !13
  %842 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl25complexgeneratereflectionEPNS_9ae_vectorElPNS_10ae_complexEPNS_8ae_stateE(ptr noundef %12, i64 noundef %841, ptr noundef %20, ptr noundef %842)
  %843 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %844 = load ptr, ptr %843, align 8, !tbaa !15
  %845 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %844, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %845, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %72) #6
  %846 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %847 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 0
  %848 = extractvalue { double, double } %846, 0
  store double %848, ptr %847, align 8
  %849 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 1
  %850 = extractvalue { double, double } %846, 1
  store double %850, ptr %849, align 8
  %851 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %852 = load ptr, ptr %851, align 8, !tbaa !15
  %853 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %852, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %853, ptr align 8 %72, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %72) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %73, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !19
  %854 = load i64, ptr %9, align 8, !tbaa !13
  %855 = load i64, ptr %8, align 8, !tbaa !13
  %856 = load ptr, ptr %4, align 8, !tbaa !9
  %857 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 0
  %858 = load double, ptr %857, align 8
  %859 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 1
  %860 = load double, ptr %859, align 8
  call void @_ZN11alglib_impl34complexapplyreflectionfromtherightEPNS_9ae_matrixENS_10ae_complexEPNS_9ae_vectorEllllS4_PNS_8ae_stateE(ptr noundef %16, double %858, double %860, ptr noundef %12, i64 noundef 1, i64 noundef %854, i64 noundef 1, i64 noundef %855, ptr noundef %13, ptr noundef %856)
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %861

861:                                              ; preds = %1001, %840
  %862 = load i64, ptr %6, align 8, !tbaa !13
  %863 = load i64, ptr %8, align 8, !tbaa !13
  %864 = icmp sle i64 %862, %863
  br i1 %864, label %865, label %1004

865:                                              ; preds = %861
  store i64 1, ptr %7, align 8, !tbaa !13
  br label %866

866:                                              ; preds = %997, %865
  %867 = load i64, ptr %7, align 8, !tbaa !13
  %868 = load i64, ptr %8, align 8, !tbaa !13
  %869 = icmp sle i64 %867, %868
  br i1 %869, label %870, label %1000

870:                                              ; preds = %866
  %871 = load i64, ptr %6, align 8, !tbaa !13
  %872 = load i64, ptr %7, align 8, !tbaa !13
  %873 = icmp eq i64 %871, %872
  br i1 %873, label %874, label %935

874:                                              ; preds = %870
  call void @llvm.lifetime.start.p0(i64 16, ptr %74) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %77, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !19
  %875 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %876 = load ptr, ptr %875, align 8, !tbaa !15
  %877 = load i64, ptr %6, align 8, !tbaa !13
  %878 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %876, i64 %877
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %78, ptr align 8 %878, i64 16, i1 false), !tbaa.struct !19
  %879 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %880 = load double, ptr %879, align 8
  %881 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %882 = load double, ptr %881, align 8
  %883 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 0
  %884 = load double, ptr %883, align 8
  %885 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 1
  %886 = load double, ptr %885, align 8
  %887 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %880, double %882, double %884, double %886)
  %888 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 0
  %889 = extractvalue { double, double } %887, 0
  store double %889, ptr %888, align 8
  %890 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 1
  %891 = extractvalue { double, double } %887, 1
  store double %891, ptr %890, align 8
  %892 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %893 = load ptr, ptr %892, align 8, !tbaa !15
  %894 = load i64, ptr %7, align 8, !tbaa !13
  %895 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %893, i64 %894
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %80, ptr align 8 %895, i64 16, i1 false), !tbaa.struct !19
  %896 = load ptr, ptr %4, align 8, !tbaa !9
  %897 = getelementptr inbounds { double, double }, ptr %80, i32 0, i32 0
  %898 = load double, ptr %897, align 8
  %899 = getelementptr inbounds { double, double }, ptr %80, i32 0, i32 1
  %900 = load double, ptr %899, align 8
  %901 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %898, double %900, ptr noundef %896)
  %902 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 0
  %903 = extractvalue { double, double } %901, 0
  store double %903, ptr %902, align 8
  %904 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 1
  %905 = extractvalue { double, double } %901, 1
  store double %905, ptr %904, align 8
  %906 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 0
  %907 = load double, ptr %906, align 8
  %908 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 1
  %909 = load double, ptr %908, align 8
  %910 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 0
  %911 = load double, ptr %910, align 8
  %912 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 1
  %913 = load double, ptr %912, align 8
  %914 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %907, double %909, double %911, double %913)
  %915 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 0
  %916 = extractvalue { double, double } %914, 0
  store double %916, ptr %915, align 8
  %917 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 1
  %918 = extractvalue { double, double } %914, 1
  store double %918, ptr %917, align 8
  %919 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 0
  %920 = load double, ptr %919, align 8
  %921 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 1
  %922 = load double, ptr %921, align 8
  %923 = call { double, double } @_ZN11alglib_impl10ae_c_d_subEdNS_10ae_complexE(double noundef 1.000000e+00, double %920, double %922)
  %924 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 0
  %925 = extractvalue { double, double } %923, 0
  store double %925, ptr %924, align 8
  %926 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 1
  %927 = extractvalue { double, double } %923, 1
  store double %927, ptr %926, align 8
  %928 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %929 = load ptr, ptr %928, align 8, !tbaa !15
  %930 = load i64, ptr %6, align 8, !tbaa !13
  %931 = getelementptr inbounds ptr, ptr %929, i64 %930
  %932 = load ptr, ptr %931, align 8, !tbaa !9
  %933 = load i64, ptr %7, align 8, !tbaa !13
  %934 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %932, i64 %933
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %934, ptr align 8 %74, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %74) #6
  br label %996

935:                                              ; preds = %870
  call void @llvm.lifetime.start.p0(i64 16, ptr %81) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %84, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !19
  %936 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %937 = load ptr, ptr %936, align 8, !tbaa !15
  %938 = load i64, ptr %6, align 8, !tbaa !13
  %939 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %937, i64 %938
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %85, ptr align 8 %939, i64 16, i1 false), !tbaa.struct !19
  %940 = getelementptr inbounds { double, double }, ptr %84, i32 0, i32 0
  %941 = load double, ptr %940, align 8
  %942 = getelementptr inbounds { double, double }, ptr %84, i32 0, i32 1
  %943 = load double, ptr %942, align 8
  %944 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 0
  %945 = load double, ptr %944, align 8
  %946 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 1
  %947 = load double, ptr %946, align 8
  %948 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %941, double %943, double %945, double %947)
  %949 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 0
  %950 = extractvalue { double, double } %948, 0
  store double %950, ptr %949, align 8
  %951 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 1
  %952 = extractvalue { double, double } %948, 1
  store double %952, ptr %951, align 8
  %953 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %954 = load ptr, ptr %953, align 8, !tbaa !15
  %955 = load i64, ptr %7, align 8, !tbaa !13
  %956 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %954, i64 %955
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %87, ptr align 8 %956, i64 16, i1 false), !tbaa.struct !19
  %957 = load ptr, ptr %4, align 8, !tbaa !9
  %958 = getelementptr inbounds { double, double }, ptr %87, i32 0, i32 0
  %959 = load double, ptr %958, align 8
  %960 = getelementptr inbounds { double, double }, ptr %87, i32 0, i32 1
  %961 = load double, ptr %960, align 8
  %962 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %959, double %961, ptr noundef %957)
  %963 = getelementptr inbounds { double, double }, ptr %86, i32 0, i32 0
  %964 = extractvalue { double, double } %962, 0
  store double %964, ptr %963, align 8
  %965 = getelementptr inbounds { double, double }, ptr %86, i32 0, i32 1
  %966 = extractvalue { double, double } %962, 1
  store double %966, ptr %965, align 8
  %967 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 0
  %968 = load double, ptr %967, align 8
  %969 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 1
  %970 = load double, ptr %969, align 8
  %971 = getelementptr inbounds { double, double }, ptr %86, i32 0, i32 0
  %972 = load double, ptr %971, align 8
  %973 = getelementptr inbounds { double, double }, ptr %86, i32 0, i32 1
  %974 = load double, ptr %973, align 8
  %975 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %968, double %970, double %972, double %974)
  %976 = getelementptr inbounds { double, double }, ptr %82, i32 0, i32 0
  %977 = extractvalue { double, double } %975, 0
  store double %977, ptr %976, align 8
  %978 = getelementptr inbounds { double, double }, ptr %82, i32 0, i32 1
  %979 = extractvalue { double, double } %975, 1
  store double %979, ptr %978, align 8
  %980 = getelementptr inbounds { double, double }, ptr %82, i32 0, i32 0
  %981 = load double, ptr %980, align 8
  %982 = getelementptr inbounds { double, double }, ptr %82, i32 0, i32 1
  %983 = load double, ptr %982, align 8
  %984 = call { double, double } @_ZN11alglib_impl8ae_c_negENS_10ae_complexE(double %981, double %983)
  %985 = getelementptr inbounds { double, double }, ptr %81, i32 0, i32 0
  %986 = extractvalue { double, double } %984, 0
  store double %986, ptr %985, align 8
  %987 = getelementptr inbounds { double, double }, ptr %81, i32 0, i32 1
  %988 = extractvalue { double, double } %984, 1
  store double %988, ptr %987, align 8
  %989 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %990 = load ptr, ptr %989, align 8, !tbaa !15
  %991 = load i64, ptr %6, align 8, !tbaa !13
  %992 = getelementptr inbounds ptr, ptr %990, i64 %991
  %993 = load ptr, ptr %992, align 8, !tbaa !9
  %994 = load i64, ptr %7, align 8, !tbaa !13
  %995 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %993, i64 %994
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %995, ptr align 8 %81, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %81) #6
  br label %996

996:                                              ; preds = %935, %874
  br label %997

997:                                              ; preds = %996
  %998 = load i64, ptr %7, align 8, !tbaa !13
  %999 = add nsw i64 %998, 1
  store i64 %999, ptr %7, align 8, !tbaa !13
  br label %866, !llvm.loop !40

1000:                                             ; preds = %866
  br label %1001

1001:                                             ; preds = %1000
  %1002 = load i64, ptr %6, align 8, !tbaa !13
  %1003 = add nsw i64 %1002, 1
  store i64 %1003, ptr %6, align 8, !tbaa !13
  br label %861, !llvm.loop !41

1004:                                             ; preds = %861
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %1005

1005:                                             ; preds = %1047, %1004
  %1006 = load i64, ptr %6, align 8, !tbaa !13
  %1007 = load i64, ptr %9, align 8, !tbaa !13
  %1008 = icmp sle i64 %1006, %1007
  br i1 %1008, label %1009, label %1050

1009:                                             ; preds = %1005
  store i64 1, ptr %7, align 8, !tbaa !13
  br label %1010

1010:                                             ; preds = %1043, %1009
  %1011 = load i64, ptr %7, align 8, !tbaa !13
  %1012 = load i64, ptr %8, align 8, !tbaa !13
  %1013 = icmp sle i64 %1011, %1012
  br i1 %1013, label %1014, label %1046

1014:                                             ; preds = %1010
  call void @llvm.lifetime.start.p0(i64 16, ptr %88) #6
  %1015 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %1016 = load ptr, ptr %1015, align 8, !tbaa !15
  %1017 = load i64, ptr %6, align 8, !tbaa !13
  %1018 = getelementptr inbounds ptr, ptr %1016, i64 %1017
  %1019 = load ptr, ptr %1018, align 8, !tbaa !9
  %1020 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %1019, i64 1
  %1021 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %1022 = load ptr, ptr %1021, align 8, !tbaa !15
  %1023 = getelementptr inbounds ptr, ptr %1022, i64 1
  %1024 = load ptr, ptr %1023, align 8, !tbaa !9
  %1025 = load i64, ptr %7, align 8, !tbaa !13
  %1026 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %1024, i64 %1025
  %1027 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 2
  %1028 = load i64, ptr %1027, align 8, !tbaa !24
  %1029 = load i64, ptr %8, align 8, !tbaa !13
  %1030 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %1029)
  %1031 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %1020, i64 noundef 1, ptr noundef @.str.191, ptr noundef %1026, i64 noundef %1028, ptr noundef @.str.191, i64 noundef %1030)
  %1032 = getelementptr inbounds { double, double }, ptr %88, i32 0, i32 0
  %1033 = extractvalue { double, double } %1031, 0
  store double %1033, ptr %1032, align 8
  %1034 = getelementptr inbounds { double, double }, ptr %88, i32 0, i32 1
  %1035 = extractvalue { double, double } %1031, 1
  store double %1035, ptr %1034, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %88, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %88) #6
  %1036 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %1037 = load ptr, ptr %1036, align 8, !tbaa !15
  %1038 = load i64, ptr %6, align 8, !tbaa !13
  %1039 = getelementptr inbounds ptr, ptr %1037, i64 %1038
  %1040 = load ptr, ptr %1039, align 8, !tbaa !9
  %1041 = load i64, ptr %7, align 8, !tbaa !13
  %1042 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %1040, i64 %1041
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %1042, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !19
  br label %1043

1043:                                             ; preds = %1014
  %1044 = load i64, ptr %7, align 8, !tbaa !13
  %1045 = add nsw i64 %1044, 1
  store i64 %1045, ptr %7, align 8, !tbaa !13
  br label %1010, !llvm.loop !42

1046:                                             ; preds = %1010
  br label %1047

1047:                                             ; preds = %1046
  %1048 = load i64, ptr %6, align 8, !tbaa !13
  %1049 = add nsw i64 %1048, 1
  store i64 %1049, ptr %6, align 8, !tbaa !13
  br label %1005, !llvm.loop !43

1050:                                             ; preds = %1005
  store double 0.000000e+00, ptr %21, align 8, !tbaa !11
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %1051

1051:                                             ; preds = %1101, %1050
  %1052 = load i64, ptr %6, align 8, !tbaa !13
  %1053 = load i64, ptr %9, align 8, !tbaa !13
  %1054 = icmp sle i64 %1052, %1053
  br i1 %1054, label %1055, label %1104

1055:                                             ; preds = %1051
  store i64 1, ptr %7, align 8, !tbaa !13
  br label %1056

1056:                                             ; preds = %1097, %1055
  %1057 = load i64, ptr %7, align 8, !tbaa !13
  %1058 = load i64, ptr %8, align 8, !tbaa !13
  %1059 = icmp sle i64 %1057, %1058
  br i1 %1059, label %1060, label %1100

1060:                                             ; preds = %1056
  %1061 = load double, ptr %21, align 8, !tbaa !11
  %1062 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %1063 = load ptr, ptr %1062, align 8, !tbaa !15
  %1064 = load i64, ptr %6, align 8, !tbaa !13
  %1065 = getelementptr inbounds ptr, ptr %1063, i64 %1064
  %1066 = load ptr, ptr %1065, align 8, !tbaa !9
  %1067 = load i64, ptr %7, align 8, !tbaa !13
  %1068 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %1066, i64 %1067
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %90, ptr align 8 %1068, i64 16, i1 false), !tbaa.struct !19
  %1069 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %1070 = load ptr, ptr %1069, align 8, !tbaa !15
  %1071 = load i64, ptr %6, align 8, !tbaa !13
  %1072 = getelementptr inbounds ptr, ptr %1070, i64 %1071
  %1073 = load ptr, ptr %1072, align 8, !tbaa !9
  %1074 = load i64, ptr %7, align 8, !tbaa !13
  %1075 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %1073, i64 %1074
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %91, ptr align 8 %1075, i64 16, i1 false), !tbaa.struct !19
  %1076 = getelementptr inbounds { double, double }, ptr %90, i32 0, i32 0
  %1077 = load double, ptr %1076, align 8
  %1078 = getelementptr inbounds { double, double }, ptr %90, i32 0, i32 1
  %1079 = load double, ptr %1078, align 8
  %1080 = getelementptr inbounds { double, double }, ptr %91, i32 0, i32 0
  %1081 = load double, ptr %1080, align 8
  %1082 = getelementptr inbounds { double, double }, ptr %91, i32 0, i32 1
  %1083 = load double, ptr %1082, align 8
  %1084 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %1077, double %1079, double %1081, double %1083)
  %1085 = getelementptr inbounds { double, double }, ptr %89, i32 0, i32 0
  %1086 = extractvalue { double, double } %1084, 0
  store double %1086, ptr %1085, align 8
  %1087 = getelementptr inbounds { double, double }, ptr %89, i32 0, i32 1
  %1088 = extractvalue { double, double } %1084, 1
  store double %1088, ptr %1087, align 8
  %1089 = load ptr, ptr %4, align 8, !tbaa !9
  %1090 = getelementptr inbounds { double, double }, ptr %89, i32 0, i32 0
  %1091 = load double, ptr %1090, align 8
  %1092 = getelementptr inbounds { double, double }, ptr %89, i32 0, i32 1
  %1093 = load double, ptr %1092, align 8
  %1094 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %1091, double %1093, ptr noundef %1089)
  %1095 = load ptr, ptr %4, align 8, !tbaa !9
  %1096 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1061, double noundef %1094, ptr noundef %1095)
  store double %1096, ptr %21, align 8, !tbaa !11
  br label %1097

1097:                                             ; preds = %1060
  %1098 = load i64, ptr %7, align 8, !tbaa !13
  %1099 = add nsw i64 %1098, 1
  store i64 %1099, ptr %7, align 8, !tbaa !13
  br label %1056, !llvm.loop !44

1100:                                             ; preds = %1056
  br label %1101

1101:                                             ; preds = %1100
  %1102 = load i64, ptr %6, align 8, !tbaa !13
  %1103 = add nsw i64 %1102, 1
  store i64 %1103, ptr %6, align 8, !tbaa !13
  br label %1051, !llvm.loop !45

1104:                                             ; preds = %1051
  %1105 = load double, ptr %22, align 8, !tbaa !11
  %1106 = load double, ptr %21, align 8, !tbaa !11
  %1107 = load ptr, ptr %4, align 8, !tbaa !9
  %1108 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1105, double noundef %1106, ptr noundef %1107)
  store double %1108, ptr %22, align 8, !tbaa !11
  br label %1109

1109:                                             ; preds = %1104
  %1110 = load i64, ptr %25, align 8, !tbaa !13
  %1111 = add nsw i64 %1110, 1
  store i64 %1111, ptr %25, align 8, !tbaa !13
  br label %102, !llvm.loop !46

1112:                                             ; preds = %102
  %1113 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef 11, ptr noundef %1113)
  %1114 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef 11, ptr noundef %1114)
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %1115

1115:                                             ; preds = %1132, %1112
  %1116 = load i64, ptr %6, align 8, !tbaa !13
  %1117 = icmp sle i64 %1116, 10
  br i1 %1117, label %1118, label %1135

1118:                                             ; preds = %1115
  call void @llvm.lifetime.start.p0(i64 16, ptr %92) #6
  %1119 = load ptr, ptr %4, align 8, !tbaa !9
  %1120 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1119)
  %1121 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %1120, double -1.000000e+00)
  %1122 = fmul double 0x7DCE94C85C298C4D, %1121
  %1123 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %1122)
  %1124 = getelementptr inbounds { double, double }, ptr %92, i32 0, i32 0
  %1125 = extractvalue { double, double } %1123, 0
  store double %1125, ptr %1124, align 8
  %1126 = getelementptr inbounds { double, double }, ptr %92, i32 0, i32 1
  %1127 = extractvalue { double, double } %1123, 1
  store double %1127, ptr %1126, align 8
  %1128 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %1129 = load ptr, ptr %1128, align 8, !tbaa !15
  %1130 = load i64, ptr %6, align 8, !tbaa !13
  %1131 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %1129, i64 %1130
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %1131, ptr align 8 %92, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %92) #6
  br label %1132

1132:                                             ; preds = %1118
  %1133 = load i64, ptr %6, align 8, !tbaa !13
  %1134 = add nsw i64 %1133, 1
  store i64 %1134, ptr %6, align 8, !tbaa !13
  br label %1115, !llvm.loop !47

1135:                                             ; preds = %1115
  %1136 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl25complexgeneratereflectionEPNS_9ae_vectorElPNS_10ae_complexEPNS_8ae_stateE(ptr noundef %12, i64 noundef 10, ptr noundef %20, ptr noundef %1136)
  %1137 = load double, ptr %24, align 8, !tbaa !11
  %1138 = load double, ptr %28, align 8, !tbaa !11
  %1139 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1137, double noundef %1138)
  br i1 %1139, label %1148, label %1140

1140:                                             ; preds = %1135
  %1141 = load double, ptr %23, align 8, !tbaa !11
  %1142 = load double, ptr %28, align 8, !tbaa !11
  %1143 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1141, double noundef %1142)
  br i1 %1143, label %1148, label %1144

1144:                                             ; preds = %1140
  %1145 = load double, ptr %22, align 8, !tbaa !11
  %1146 = load double, ptr %28, align 8, !tbaa !11
  %1147 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1145, double noundef %1146)
  br label %1148

1148:                                             ; preds = %1144, %1140, %1135
  %1149 = phi i1 [ true, %1140 ], [ true, %1135 ], [ %1147, %1144 ]
  %1150 = zext i1 %1149 to i8
  store i8 %1150, ptr %27, align 1, !tbaa !5
  %1151 = load i8, ptr %3, align 1, !tbaa !5, !range !48, !noundef !49
  %1152 = trunc i8 %1151 to i1
  br i1 %1152, label %1172, label %1153

1153:                                             ; preds = %1148
  %1154 = call i32 (ptr, ...) @printf(ptr noundef @.str.192)
  %1155 = load double, ptr %24, align 8, !tbaa !11
  %1156 = call i32 (ptr, ...) @printf(ptr noundef @.str.193, double noundef %1155)
  %1157 = load double, ptr %23, align 8, !tbaa !11
  %1158 = call i32 (ptr, ...) @printf(ptr noundef @.str.194, double noundef %1157)
  %1159 = load double, ptr %22, align 8, !tbaa !11
  %1160 = call i32 (ptr, ...) @printf(ptr noundef @.str.195, double noundef %1159)
  %1161 = load double, ptr %28, align 8, !tbaa !11
  %1162 = call i32 (ptr, ...) @printf(ptr noundef @.str.196, double noundef %1161)
  %1163 = call i32 (ptr, ...) @printf(ptr noundef @.str.197)
  %1164 = load i8, ptr %27, align 1, !tbaa !5, !range !48, !noundef !49
  %1165 = trunc i8 %1164 to i1
  br i1 %1165, label %1166, label %1168

1166:                                             ; preds = %1153
  %1167 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %1170

1168:                                             ; preds = %1153
  %1169 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %1170

1170:                                             ; preds = %1168, %1166
  %1171 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %1172

1172:                                             ; preds = %1170, %1148
  %1173 = load i8, ptr %27, align 1, !tbaa !5, !range !48, !noundef !49
  %1174 = trunc i8 %1173 to i1
  %1175 = xor i1 %1174, true
  %1176 = zext i1 %1175 to i8
  store i8 %1176, ptr %29, align 1, !tbaa !5
  %1177 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1177)
  %1178 = load i8, ptr %29, align 1, !tbaa !5, !range !48, !noundef !49
  %1179 = trunc i8 %1178 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 64, 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 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, 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 %1179
}

; 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) #5

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

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

declare { double, double } @_ZN11alglib_impl10ae_c_d_subEdNS_10ae_complexE(double noundef, double, double) #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_impl8ae_c_negENS_10ae_complexE(double, double) #1

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!25, !14, i64 16}
!25 = !{!"_ZTSN11alglib_impl9ae_matrixE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !6, i64 32, !26, i64 40, !7, i64 72}
!26 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!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 = distinct !{!36, !21}
!37 = distinct !{!37, !21}
!38 = distinct !{!38, !21}
!39 = distinct !{!39, !21}
!40 = distinct !{!40, !21}
!41 = distinct !{!41, !21}
!42 = distinct !{!42, !21}
!43 = distinct !{!43, !21}
!44 = distinct !{!44, !21}
!45 = distinct !{!45, !21}
!46 = distinct !{!46, !21}
!47 = distinct !{!47, !21}
!48 = !{i8 0, i8 2}
!49 = !{}


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::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.192 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.195 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [49 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

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 noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #1

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

declare noundef 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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z16testcreflectionsbPN11alglib_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_vector", align 8
  %5 = alloca %"struct.alglib_impl::ae_vector", align 8
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %10 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %11 = alloca %"struct.alglib_impl::ae_complex", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %3)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %4, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %5, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %7, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %8, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %9, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %10, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %4, 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 %5, 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 %6, 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 %7, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  %12 = getelementptr inbounds i8, ptr %4, i64 56
  %13 = getelementptr inbounds i8, ptr %5, i64 56
  %.sroa.2101.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  %14 = getelementptr inbounds i8, ptr %7, i64 72
  %15 = getelementptr inbounds i8, ptr %7, i64 16
  %16 = getelementptr inbounds i8, ptr %8, i64 72
  %17 = getelementptr inbounds i8, ptr %9, i64 72
  %18 = getelementptr inbounds i8, ptr %8, i64 16
  %19 = getelementptr inbounds i8, ptr %10, i64 72
  br label %20

20:                                               ; preds = %2, %._crit_edge517
  %.0396522 = phi double [ 0.000000e+00, %2 ], [ %351, %._crit_edge517 ]
  %.0397521 = phi double [ 0.000000e+00, %2 ], [ %237, %._crit_edge517 ]
  %.0398520 = phi double [ 0.000000e+00, %2 ], [ %119, %._crit_edge517 ]
  %.0399519 = phi i64 [ 1, %2 ], [ %352, %._crit_edge517 ]
  %21 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %1)
  %22 = add nsw i64 %21, 1
  %23 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %1)
  %24 = add nsw i64 %23, 1
  %25 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %24, i64 noundef %22, ptr noundef %1)
  %26 = add nsw i64 %25, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %26, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %26, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %26, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %26, i64 noundef %26, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %26, i64 noundef %26, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %26, i64 noundef %26, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %26, i64 noundef %26, ptr noundef %1)
  %.not438 = icmp slt i64 %21, 0
  br i1 %.not438, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %20
  %27 = add nuw i64 %21, 1
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.0439 = phi i64 [ %40, %.lr.ph ], [ 1, %.lr.ph.preheader ]
  %28 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %29 = call double @llvm.fmuladd.f64(double %28, double 2.000000e+00, double -1.000000e+00)
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %30, i64 %.0439
  store double %29, ptr %31, align 8, !tbaa !8
  %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 %12, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %34, i64 %.0439, i32 1
  store double %33, ptr %35, align 8, !tbaa !11
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %36, i64 %.0439
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %38, i64 %.0439
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(16) %37, i64 16, i1 false), !tbaa.struct !12
  %40 = add nuw i64 %.0439, 1
  %exitcond = icmp eq i64 %.0439, %27
  br i1 %exitcond, label %._crit_edge, label %.lr.ph, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph, %20
  call void @_ZN11alglib_impl25complexgeneratereflectionEPNS_9ae_vectorElPNS_10ae_complexEPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %22, ptr noundef nonnull %11, ptr noundef %1)
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  %.sroa.0149.0.copyload = load double, ptr %42, align 8, !tbaa !13
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %41, i64 24
  %.sroa.6.0.copyload = load double, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !13
  %43 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %44 = extractvalue { double, double } %43, 0
  %45 = extractvalue { double, double } %43, 1
  %46 = load ptr, ptr %13, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  store double %44, ptr %47, align 8, !tbaa !13
  %.sroa.4123.0..sroa_idx = getelementptr inbounds i8, ptr %46, i64 24
  store double %45, ptr %.sroa.4123.0..sroa_idx, align 8, !tbaa !13
  br i1 %.not438, label %._crit_edge450, label %.preheader430.preheader

.preheader430.preheader:                          ; preds = %._crit_edge
  %48 = add nuw i64 %21, 2
  br label %.preheader430

.preheader437:                                    ; preds = %._crit_edge443
  br i1 %.not438, label %._crit_edge450, label %49

49:                                               ; preds = %.preheader437
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  %54 = load i64, ptr %15, align 8, !tbaa !18
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %57 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %22)
  %58 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef nonnull %53, i64 noundef %54, ptr noundef nonnull @.str.190, ptr noundef nonnull %56, i64 noundef 1, ptr noundef nonnull @.str.191, i64 noundef %57)
  %59 = extractvalue { double, double } %58, 1
  %60 = extractvalue { double, double } %58, 0
  %61 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %60, double %59, double %.sroa.0149.0.copyload, double %.sroa.6.0.copyload)
  %62 = extractvalue { double, double } %61, 0
  %63 = extractvalue { double, double } %61, 1
  %64 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %62, double %63, ptr noundef %1)
  %65 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef 0.000000e+00, double noundef %64, ptr noundef %1)
  %exitcond530.peel = icmp eq i64 %21, 0
  br i1 %exitcond530.peel, label %._crit_edge450, label %.lr.ph449.peel.next

.lr.ph449.peel.next:                              ; preds = %49
  %66 = add nuw i64 %21, 1
  br label %102

.preheader430:                                    ; preds = %.preheader430.preheader, %._crit_edge443
  %.1445 = phi i64 [ %101, %._crit_edge443 ], [ 1, %.preheader430.preheader ]
  br label %67

67:                                               ; preds = %.preheader430, %93
  %.0381441 = phi i64 [ 1, %.preheader430 ], [ %100, %93 ]
  %68 = icmp eq i64 %.1445, %.0381441
  %.sroa.0114.0.copyload = load double, ptr %11, align 8, !tbaa !13
  %.sroa.2115.0.copyload = load double, ptr %.sroa.2101.0..sroa_idx, align 8, !tbaa !13
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %69, i64 %.1445
  %.sroa.0112.0.copyload = load double, ptr %70, align 8, !tbaa !13
  %.sroa.2113.0..sroa_idx = getelementptr inbounds i8, ptr %70, i64 8
  %.sroa.2113.0.copyload = load double, ptr %.sroa.2113.0..sroa_idx, align 8, !tbaa !13
  %71 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %.sroa.0114.0.copyload, double %.sroa.2115.0.copyload, double %.sroa.0112.0.copyload, double %.sroa.2113.0.copyload)
  %72 = extractvalue { double, double } %71, 0
  %73 = extractvalue { double, double } %71, 1
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  br i1 %68, label %75, label %84

75:                                               ; preds = %67
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %74, i64 %.1445
  %.sroa.0108.0.copyload = load double, ptr %76, align 8, !tbaa !13
  %.sroa.2109.0..sroa_idx = getelementptr inbounds i8, ptr %76, i64 8
  %.sroa.2109.0.copyload = load double, ptr %.sroa.2109.0..sroa_idx, align 8, !tbaa !13
  %77 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %.sroa.0108.0.copyload, double %.sroa.2109.0.copyload, ptr noundef %1)
  %78 = extractvalue { double, double } %77, 0
  %79 = extractvalue { double, double } %77, 1
  %80 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %72, double %73, double %78, double %79)
  %81 = extractvalue { double, double } %80, 0
  %82 = extractvalue { double, double } %80, 1
  %83 = call { double, double } @_ZN11alglib_impl10ae_c_d_subEdNS_10ae_complexE(double noundef 1.000000e+00, double %81, double %82)
  br label %93

84:                                               ; preds = %67
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %74, i64 %.0381441
  %.sroa.094.0.copyload = load double, ptr %85, align 8, !tbaa !13
  %.sroa.295.0..sroa_idx = getelementptr inbounds i8, ptr %85, i64 8
  %.sroa.295.0.copyload = load double, ptr %.sroa.295.0..sroa_idx, align 8, !tbaa !13
  %86 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %.sroa.094.0.copyload, double %.sroa.295.0.copyload, ptr noundef %1)
  %87 = extractvalue { double, double } %86, 0
  %88 = extractvalue { double, double } %86, 1
  %89 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %72, double %73, double %87, double %88)
  %90 = extractvalue { double, double } %89, 0
  %91 = extractvalue { double, double } %89, 1
  %92 = call { double, double } @_ZN11alglib_impl8ae_c_negENS_10ae_complexE(double %90, double %91)
  br label %93

93:                                               ; preds = %75, %84
  %.sink = phi { double, double } [ %83, %75 ], [ %92, %84 ]
  %.1445.sink = phi i64 [ %.1445, %75 ], [ %.0381441, %84 ]
  %94 = extractvalue { double, double } %.sink, 0
  %95 = extractvalue { double, double } %.sink, 1
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = getelementptr inbounds ptr, ptr %96, i64 %.1445
  %98 = load ptr, ptr %97, align 8, !tbaa !16
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %98, i64 %.1445.sink
  store double %94, ptr %99, align 8, !tbaa !13
  %.sroa.4121.0..sroa_idx = getelementptr inbounds i8, ptr %99, i64 8
  store double %95, ptr %.sroa.4121.0..sroa_idx, align 8, !tbaa !13
  %100 = add nuw i64 %.0381441, 1
  %exitcond528 = icmp eq i64 %100, %48
  br i1 %exitcond528, label %._crit_edge443, label %67, !llvm.loop !23

._crit_edge443:                                   ; preds = %93
  %101 = add nuw i64 %.1445, 1
  %exitcond529 = icmp eq i64 %101, %48
  br i1 %exitcond529, label %.preheader437, label %.preheader430, !llvm.loop !24

102:                                              ; preds = %.lr.ph449.peel.next, %102
  %.2448 = phi i64 [ %116, %102 ], [ 2, %.lr.ph449.peel.next ]
  %.0390447 = phi double [ %115, %102 ], [ %65, %.lr.ph449.peel.next ]
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %103, i64 8
  %105 = load ptr, ptr %104, align 8, !tbaa !16
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %105, i64 %.2448
  %107 = load i64, ptr %15, align 8, !tbaa !18
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %108, i64 16
  %110 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %22)
  %111 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef nonnull %106, i64 noundef %107, ptr noundef nonnull @.str.190, ptr noundef nonnull %109, i64 noundef 1, ptr noundef nonnull @.str.191, i64 noundef %110)
  %112 = extractvalue { double, double } %111, 1
  %113 = extractvalue { double, double } %111, 0
  %114 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %113, double %112, ptr noundef %1)
  %115 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0390447, double noundef %114, ptr noundef %1)
  %116 = add nuw i64 %.2448, 1
  %exitcond530 = icmp eq i64 %.2448, %66
  br i1 %exitcond530, label %._crit_edge450, label %102, !llvm.loop !25

._crit_edge450:                                   ; preds = %102, %._crit_edge, %49, %.preheader437
  %.0390.lcssa = phi double [ 0.000000e+00, %.preheader437 ], [ %65, %49 ], [ 0.000000e+00, %._crit_edge ], [ %115, %102 ]
  %117 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.sroa.6.0.copyload, ptr noundef %1)
  %118 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0390.lcssa, double noundef %117, ptr noundef %1)
  %119 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0398520, double noundef %118, ptr noundef %1)
  %.not404451 = icmp slt i64 %23, 0
  br i1 %.not404451, label %._crit_edge461, label %.lr.ph454.preheader

.lr.ph454.preheader:                              ; preds = %._crit_edge450
  %120 = add nuw i64 %23, 1
  br label %.lr.ph454

.preheader436:                                    ; preds = %.lr.ph454
  br i1 %.not404451, label %._crit_edge461, label %.preheader429.lr.ph

.preheader429.lr.ph:                              ; preds = %.preheader436
  %121 = add nuw i64 %21, 1
  %122 = add nuw i64 %23, 1
  br label %.preheader429

.lr.ph454:                                        ; preds = %.lr.ph454.preheader, %.lr.ph454
  %.3452 = phi i64 [ %135, %.lr.ph454 ], [ 1, %.lr.ph454.preheader ]
  %123 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %124 = call double @llvm.fmuladd.f64(double %123, double 2.000000e+00, double -1.000000e+00)
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %125, i64 %.3452
  store double %124, ptr %126, align 8, !tbaa !8
  %127 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %128 = call double @llvm.fmuladd.f64(double %127, double 2.000000e+00, double -1.000000e+00)
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %129, i64 %.3452, i32 1
  store double %128, ptr %130, align 8, !tbaa !11
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %131, i64 %.3452
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %133, i64 %.3452
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %134, ptr noundef nonnull align 8 dereferenceable(16) %132, i64 16, i1 false), !tbaa.struct !12
  %135 = add nuw i64 %.3452, 1
  %exitcond532 = icmp eq i64 %.3452, %120
  br i1 %exitcond532, label %.preheader436, label %.lr.ph454, !llvm.loop !27

.preheader429:                                    ; preds = %.preheader429.lr.ph, %._crit_edge458
  %.4460 = phi i64 [ 1, %.preheader429.lr.ph ], [ %157, %._crit_edge458 ]
  br i1 %.not438, label %._crit_edge458, label %.lr.ph457

.lr.ph457:                                        ; preds = %.preheader429, %.lr.ph457
  %.1382456 = phi i64 [ %156, %.lr.ph457 ], [ 1, %.preheader429 ]
  %136 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %137 = call double @llvm.fmuladd.f64(double %136, double 2.000000e+00, double -1.000000e+00)
  %138 = load ptr, ptr %16, align 8, !tbaa !5
  %139 = getelementptr inbounds ptr, ptr %138, i64 %.4460
  %140 = load ptr, ptr %139, align 8, !tbaa !16
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %140, i64 %.1382456
  store double %137, ptr %141, align 8, !tbaa !8
  %142 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %143 = call double @llvm.fmuladd.f64(double %142, double 2.000000e+00, double -1.000000e+00)
  %144 = load ptr, ptr %16, align 8, !tbaa !5
  %145 = getelementptr inbounds ptr, ptr %144, i64 %.4460
  %146 = load ptr, ptr %145, align 8, !tbaa !16
  %147 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %146, i64 %.1382456, i32 1
  store double %143, ptr %147, align 8, !tbaa !11
  %148 = load ptr, ptr %16, align 8, !tbaa !5
  %149 = getelementptr inbounds ptr, ptr %148, i64 %.4460
  %150 = load ptr, ptr %149, align 8, !tbaa !16
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %150, i64 %.1382456
  %152 = load ptr, ptr %17, align 8, !tbaa !5
  %153 = getelementptr inbounds ptr, ptr %152, i64 %.4460
  %154 = load ptr, ptr %153, align 8, !tbaa !16
  %155 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %154, i64 %.1382456
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %155, ptr noundef nonnull align 8 dereferenceable(16) %151, i64 16, i1 false), !tbaa.struct !12
  %156 = add nuw i64 %.1382456, 1
  %exitcond533 = icmp eq i64 %.1382456, %121
  br i1 %exitcond533, label %._crit_edge458, label %.lr.ph457, !llvm.loop !28

._crit_edge458:                                   ; preds = %.lr.ph457, %.preheader429
  %157 = add nuw i64 %.4460, 1
  %exitcond534 = icmp eq i64 %.4460, %122
  br i1 %exitcond534, label %._crit_edge461, label %.preheader429, !llvm.loop !29

._crit_edge461:                                   ; preds = %._crit_edge458, %._crit_edge450, %.preheader436
  call void @_ZN11alglib_impl25complexgeneratereflectionEPNS_9ae_vectorElPNS_10ae_complexEPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %24, ptr noundef nonnull %11, ptr noundef %1)
  %158 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %159 = extractvalue { double, double } %158, 0
  %160 = extractvalue { double, double } %158, 1
  %161 = load ptr, ptr %13, align 8, !tbaa !5
  %162 = getelementptr inbounds i8, ptr %161, i64 16
  store double %159, ptr %162, align 8, !tbaa !13
  %.sroa.483.0..sroa_idx = getelementptr inbounds i8, ptr %161, i64 24
  store double %160, ptr %.sroa.483.0..sroa_idx, align 8, !tbaa !13
  %.sroa.080.0.copyload = load double, ptr %11, align 8, !tbaa !13
  %.sroa.281.0.copyload = load double, ptr %.sroa.2101.0..sroa_idx, align 8, !tbaa !13
  call void @_ZN11alglib_impl33complexapplyreflectionfromtheleftEPNS_9ae_matrixENS_10ae_complexEPNS_9ae_vectorEllllS4_PNS_8ae_stateE(ptr noundef nonnull %9, double %.sroa.080.0.copyload, double %.sroa.281.0.copyload, ptr noundef nonnull %5, i64 noundef 1, i64 noundef %24, i64 noundef 1, i64 noundef %22, ptr noundef nonnull %6, ptr noundef %1)
  br i1 %.not404451, label %._crit_edge483, label %.preheader428.preheader

.preheader428.preheader:                          ; preds = %._crit_edge461
  %163 = add nuw i64 %23, 2
  br label %.preheader428

.preheader435:                                    ; preds = %._crit_edge465
  br i1 %.not404451, label %._crit_edge483, label %.preheader427.lr.ph

.preheader427.lr.ph:                              ; preds = %.preheader435
  %164 = add nuw i64 %21, 1
  %165 = add nuw i64 %23, 1
  br label %.preheader427

.preheader428:                                    ; preds = %.preheader428.preheader, %._crit_edge465
  %.5467 = phi i64 [ %200, %._crit_edge465 ], [ 1, %.preheader428.preheader ]
  br label %166

166:                                              ; preds = %.preheader428, %192
  %.2383463 = phi i64 [ 1, %.preheader428 ], [ %199, %192 ]
  %167 = icmp eq i64 %.5467, %.2383463
  %.sroa.072.0.copyload = load double, ptr %11, align 8, !tbaa !13
  %.sroa.273.0.copyload = load double, ptr %.sroa.2101.0..sroa_idx, align 8, !tbaa !13
  %168 = load ptr, ptr %13, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %168, i64 %.5467
  %.sroa.070.0.copyload = load double, ptr %169, align 8, !tbaa !13
  %.sroa.271.0..sroa_idx = getelementptr inbounds i8, ptr %169, i64 8
  %.sroa.271.0.copyload = load double, ptr %.sroa.271.0..sroa_idx, align 8, !tbaa !13
  %170 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %.sroa.072.0.copyload, double %.sroa.273.0.copyload, double %.sroa.070.0.copyload, double %.sroa.271.0.copyload)
  %171 = extractvalue { double, double } %170, 0
  %172 = extractvalue { double, double } %170, 1
  %173 = load ptr, ptr %13, align 8, !tbaa !5
  br i1 %167, label %174, label %183

174:                                              ; preds = %166
  %175 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %173, i64 %.5467
  %.sroa.066.0.copyload = load double, ptr %175, align 8, !tbaa !13
  %.sroa.267.0..sroa_idx = getelementptr inbounds i8, ptr %175, i64 8
  %.sroa.267.0.copyload = load double, ptr %.sroa.267.0..sroa_idx, align 8, !tbaa !13
  %176 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %.sroa.066.0.copyload, double %.sroa.267.0.copyload, ptr noundef %1)
  %177 = extractvalue { double, double } %176, 0
  %178 = extractvalue { double, double } %176, 1
  %179 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %171, double %172, double %177, double %178)
  %180 = extractvalue { double, double } %179, 0
  %181 = extractvalue { double, double } %179, 1
  %182 = call { double, double } @_ZN11alglib_impl10ae_c_d_subEdNS_10ae_complexE(double noundef 1.000000e+00, double %180, double %181)
  br label %192

183:                                              ; preds = %166
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %173, i64 %.2383463
  %.sroa.052.0.copyload = load double, ptr %184, align 8, !tbaa !13
  %.sroa.253.0..sroa_idx = getelementptr inbounds i8, ptr %184, i64 8
  %.sroa.253.0.copyload = load double, ptr %.sroa.253.0..sroa_idx, align 8, !tbaa !13
  %185 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %.sroa.052.0.copyload, double %.sroa.253.0.copyload, ptr noundef %1)
  %186 = extractvalue { double, double } %185, 0
  %187 = extractvalue { double, double } %185, 1
  %188 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %171, double %172, double %186, double %187)
  %189 = extractvalue { double, double } %188, 0
  %190 = extractvalue { double, double } %188, 1
  %191 = call { double, double } @_ZN11alglib_impl8ae_c_negENS_10ae_complexE(double %189, double %190)
  br label %192

192:                                              ; preds = %174, %183
  %.sink572 = phi { double, double } [ %182, %174 ], [ %191, %183 ]
  %.5467.sink = phi i64 [ %.5467, %174 ], [ %.2383463, %183 ]
  %193 = extractvalue { double, double } %.sink572, 0
  %194 = extractvalue { double, double } %.sink572, 1
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  %196 = getelementptr inbounds ptr, ptr %195, i64 %.5467
  %197 = load ptr, ptr %196, align 8, !tbaa !16
  %198 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %197, i64 %.5467.sink
  store double %193, ptr %198, align 8, !tbaa !13
  %.sroa.479.0..sroa_idx = getelementptr inbounds i8, ptr %198, i64 8
  store double %194, ptr %.sroa.479.0..sroa_idx, align 8, !tbaa !13
  %199 = add nuw i64 %.2383463, 1
  %exitcond535 = icmp eq i64 %199, %163
  br i1 %exitcond535, label %._crit_edge465, label %166, !llvm.loop !30

._crit_edge465:                                   ; preds = %192
  %200 = add nuw i64 %.5467, 1
  %exitcond536 = icmp eq i64 %200, %163
  br i1 %exitcond536, label %.preheader435, label %.preheader428, !llvm.loop !31

.preheader434:                                    ; preds = %._crit_edge471
  br i1 %.not404451, label %._crit_edge483, label %.preheader426.lr.ph

.preheader426.lr.ph:                              ; preds = %.preheader434
  %201 = add nuw i64 %21, 1
  %202 = add nuw i64 %23, 1
  br label %.preheader426

.preheader427:                                    ; preds = %.preheader427.lr.ph, %._crit_edge471
  %.6473 = phi i64 [ 1, %.preheader427.lr.ph ], [ %221, %._crit_edge471 ]
  br i1 %.not438, label %._crit_edge471, label %.lr.ph470

.lr.ph470:                                        ; preds = %.preheader427, %.lr.ph470
  %.3384469 = phi i64 [ %220, %.lr.ph470 ], [ 1, %.preheader427 ]
  %203 = load ptr, ptr %14, align 8, !tbaa !5
  %204 = getelementptr inbounds ptr, ptr %203, i64 %.6473
  %205 = load ptr, ptr %204, align 8, !tbaa !16
  %206 = getelementptr inbounds i8, ptr %205, i64 16
  %207 = load ptr, ptr %16, align 8, !tbaa !5
  %208 = getelementptr inbounds i8, ptr %207, i64 8
  %209 = load ptr, ptr %208, align 8, !tbaa !16
  %210 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %209, i64 %.3384469
  %211 = load i64, ptr %18, align 8, !tbaa !18
  %212 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %24)
  %213 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef nonnull %206, i64 noundef 1, ptr noundef nonnull @.str.191, ptr noundef nonnull %210, i64 noundef %211, ptr noundef nonnull @.str.191, i64 noundef %212)
  %214 = extractvalue { double, double } %213, 0
  %215 = extractvalue { double, double } %213, 1
  %216 = load ptr, ptr %19, align 8, !tbaa !5
  %217 = getelementptr inbounds ptr, ptr %216, i64 %.6473
  %218 = load ptr, ptr %217, align 8, !tbaa !16
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %218, i64 %.3384469
  store double %214, ptr %219, align 8, !tbaa !13
  %.sroa.9.0..sroa_idx = getelementptr inbounds i8, ptr %219, i64 8
  store double %215, ptr %.sroa.9.0..sroa_idx, align 8, !tbaa !13
  %220 = add nuw i64 %.3384469, 1
  %exitcond537 = icmp eq i64 %.3384469, %164
  br i1 %exitcond537, label %._crit_edge471, label %.lr.ph470, !llvm.loop !32

._crit_edge471:                                   ; preds = %.lr.ph470, %.preheader427
  %221 = add nuw i64 %.6473, 1
  %exitcond538 = icmp eq i64 %.6473, %165
  br i1 %exitcond538, label %.preheader434, label %.preheader427, !llvm.loop !33

.preheader426:                                    ; preds = %.preheader426.lr.ph, %._crit_edge478
  %.7482 = phi i64 [ 1, %.preheader426.lr.ph ], [ %236, %._crit_edge478 ]
  %.2392481 = phi double [ 0.000000e+00, %.preheader426.lr.ph ], [ %.3393.lcssa, %._crit_edge478 ]
  br i1 %.not438, label %._crit_edge478, label %.lr.ph477

.lr.ph477:                                        ; preds = %.preheader426, %.lr.ph477
  %.4385476 = phi i64 [ %235, %.lr.ph477 ], [ 1, %.preheader426 ]
  %.3393475 = phi double [ %234, %.lr.ph477 ], [ %.2392481, %.preheader426 ]
  %222 = load ptr, ptr %17, align 8, !tbaa !5
  %223 = getelementptr inbounds ptr, ptr %222, i64 %.7482
  %224 = load ptr, ptr %223, align 8, !tbaa !16
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %224, i64 %.4385476
  %.sroa.046.0.copyload = load double, ptr %225, align 8, !tbaa !13
  %.sroa.247.0..sroa_idx = getelementptr inbounds i8, ptr %225, i64 8
  %.sroa.247.0.copyload = load double, ptr %.sroa.247.0..sroa_idx, align 8, !tbaa !13
  %226 = load ptr, ptr %19, align 8, !tbaa !5
  %227 = getelementptr inbounds ptr, ptr %226, i64 %.7482
  %228 = load ptr, ptr %227, align 8, !tbaa !16
  %229 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %228, i64 %.4385476
  %.sroa.044.0.copyload = load double, ptr %229, align 8, !tbaa !13
  %.sroa.245.0..sroa_idx = getelementptr inbounds i8, ptr %229, i64 8
  %.sroa.245.0.copyload = load double, ptr %.sroa.245.0..sroa_idx, align 8, !tbaa !13
  %230 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %.sroa.046.0.copyload, double %.sroa.247.0.copyload, double %.sroa.044.0.copyload, double %.sroa.245.0.copyload)
  %231 = extractvalue { double, double } %230, 0
  %232 = extractvalue { double, double } %230, 1
  %233 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %231, double %232, ptr noundef %1)
  %234 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.3393475, double noundef %233, ptr noundef %1)
  %235 = add nuw i64 %.4385476, 1
  %exitcond539 = icmp eq i64 %.4385476, %201
  br i1 %exitcond539, label %._crit_edge478, label %.lr.ph477, !llvm.loop !34

._crit_edge478:                                   ; preds = %.lr.ph477, %.preheader426
  %.3393.lcssa = phi double [ %.2392481, %.preheader426 ], [ %234, %.lr.ph477 ]
  %236 = add nuw i64 %.7482, 1
  %exitcond540 = icmp eq i64 %.7482, %202
  br i1 %exitcond540, label %._crit_edge483, label %.preheader426, !llvm.loop !35

._crit_edge483:                                   ; preds = %._crit_edge478, %._crit_edge461, %.preheader435, %.preheader434
  %.2392.lcssa = phi double [ 0.000000e+00, %.preheader434 ], [ 0.000000e+00, %.preheader435 ], [ 0.000000e+00, %._crit_edge461 ], [ %.3393.lcssa, %._crit_edge478 ]
  %237 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0397521, double noundef %.2392.lcssa, ptr noundef %1)
  br i1 %.not438, label %.preheader433, label %.lr.ph488.preheader

.lr.ph488.preheader:                              ; preds = %._crit_edge483
  %238 = add nuw i64 %21, 1
  br label %.lr.ph488

.preheader433:                                    ; preds = %.lr.ph488, %._crit_edge483
  br i1 %.not404451, label %._crit_edge495, label %.preheader425.lr.ph

.preheader425.lr.ph:                              ; preds = %.preheader433
  %239 = add nuw i64 %21, 1
  %240 = add nuw i64 %23, 1
  br label %.preheader425

.lr.ph488:                                        ; preds = %.lr.ph488.preheader, %.lr.ph488
  %.8486 = phi i64 [ %252, %.lr.ph488 ], [ 1, %.lr.ph488.preheader ]
  %241 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %242 = call double @llvm.fmuladd.f64(double %241, double 2.000000e+00, double -1.000000e+00)
  %243 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %242)
  %244 = extractvalue { double, double } %243, 0
  %245 = extractvalue { double, double } %243, 1
  %246 = load ptr, ptr %12, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %246, i64 %.8486
  store double %244, ptr %247, align 8, !tbaa !13
  %.sroa.443.0..sroa_idx = getelementptr inbounds i8, ptr %247, i64 8
  store double %245, ptr %.sroa.443.0..sroa_idx, align 8, !tbaa !13
  %248 = load ptr, ptr %12, align 8, !tbaa !5
  %249 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %248, i64 %.8486
  %250 = load ptr, ptr %13, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %250, i64 %.8486
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %251, ptr noundef nonnull align 8 dereferenceable(16) %249, i64 16, i1 false), !tbaa.struct !12
  %252 = add nuw i64 %.8486, 1
  %exitcond541 = icmp eq i64 %.8486, %238
  br i1 %exitcond541, label %.preheader433, label %.lr.ph488, !llvm.loop !36

.preheader425:                                    ; preds = %.preheader425.lr.ph, %._crit_edge492
  %.9494 = phi i64 [ 1, %.preheader425.lr.ph ], [ %271, %._crit_edge492 ]
  br i1 %.not438, label %._crit_edge492, label %.lr.ph491

.lr.ph491:                                        ; preds = %.preheader425, %.lr.ph491
  %.5386490 = phi i64 [ %270, %.lr.ph491 ], [ 1, %.preheader425 ]
  %253 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %254 = call double @llvm.fmuladd.f64(double %253, double 2.000000e+00, double -1.000000e+00)
  %255 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %254)
  %256 = extractvalue { double, double } %255, 0
  %257 = extractvalue { double, double } %255, 1
  %258 = load ptr, ptr %16, align 8, !tbaa !5
  %259 = getelementptr inbounds ptr, ptr %258, i64 %.9494
  %260 = load ptr, ptr %259, align 8, !tbaa !16
  %261 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %260, i64 %.5386490
  store double %256, ptr %261, align 8, !tbaa !13
  %.sroa.441.0..sroa_idx = getelementptr inbounds i8, ptr %261, i64 8
  store double %257, ptr %.sroa.441.0..sroa_idx, align 8, !tbaa !13
  %262 = load ptr, ptr %16, align 8, !tbaa !5
  %263 = getelementptr inbounds ptr, ptr %262, i64 %.9494
  %264 = load ptr, ptr %263, align 8, !tbaa !16
  %265 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %264, i64 %.5386490
  %266 = load ptr, ptr %17, align 8, !tbaa !5
  %267 = getelementptr inbounds ptr, ptr %266, i64 %.9494
  %268 = load ptr, ptr %267, align 8, !tbaa !16
  %269 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %268, i64 %.5386490
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %269, ptr noundef nonnull align 8 dereferenceable(16) %265, i64 16, i1 false), !tbaa.struct !12
  %270 = add nuw i64 %.5386490, 1
  %exitcond542 = icmp eq i64 %.5386490, %239
  br i1 %exitcond542, label %._crit_edge492, label %.lr.ph491, !llvm.loop !37

._crit_edge492:                                   ; preds = %.lr.ph491, %.preheader425
  %271 = add nuw i64 %.9494, 1
  %exitcond543 = icmp eq i64 %.9494, %240
  br i1 %exitcond543, label %._crit_edge495, label %.preheader425, !llvm.loop !38

._crit_edge495:                                   ; preds = %._crit_edge492, %.preheader433
  call void @_ZN11alglib_impl25complexgeneratereflectionEPNS_9ae_vectorElPNS_10ae_complexEPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %22, ptr noundef nonnull %11, ptr noundef %1)
  %272 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %273 = extractvalue { double, double } %272, 0
  %274 = extractvalue { double, double } %272, 1
  %275 = load ptr, ptr %13, align 8, !tbaa !5
  %276 = getelementptr inbounds i8, ptr %275, i64 16
  store double %273, ptr %276, align 8, !tbaa !13
  %.sroa.439.0..sroa_idx = getelementptr inbounds i8, ptr %275, i64 24
  store double %274, ptr %.sroa.439.0..sroa_idx, align 8, !tbaa !13
  %.sroa.036.0.copyload = load double, ptr %11, align 8, !tbaa !13
  %.sroa.237.0.copyload = load double, ptr %.sroa.2101.0..sroa_idx, align 8, !tbaa !13
  call void @_ZN11alglib_impl34complexapplyreflectionfromtherightEPNS_9ae_matrixENS_10ae_complexEPNS_9ae_vectorEllllS4_PNS_8ae_stateE(ptr noundef nonnull %9, double %.sroa.036.0.copyload, double %.sroa.237.0.copyload, ptr noundef nonnull %5, i64 noundef 1, i64 noundef %24, i64 noundef 1, i64 noundef %22, ptr noundef nonnull %6, ptr noundef %1)
  br i1 %.not438, label %.preheader432, label %.preheader424.preheader

.preheader424.preheader:                          ; preds = %._crit_edge495
  %277 = add nuw i64 %21, 2
  br label %.preheader424

.preheader432:                                    ; preds = %._crit_edge499, %._crit_edge495
  br i1 %.not404451, label %._crit_edge517, label %.preheader423.lr.ph

.preheader423.lr.ph:                              ; preds = %.preheader432
  %278 = add nuw i64 %21, 1
  %279 = add nuw i64 %23, 1
  br label %.preheader423

.preheader424:                                    ; preds = %.preheader424.preheader, %._crit_edge499
  %.10501 = phi i64 [ %314, %._crit_edge499 ], [ 1, %.preheader424.preheader ]
  br label %280

280:                                              ; preds = %.preheader424, %306
  %.6387497 = phi i64 [ 1, %.preheader424 ], [ %313, %306 ]
  %281 = icmp eq i64 %.10501, %.6387497
  %.sroa.028.0.copyload = load double, ptr %11, align 8, !tbaa !13
  %.sroa.229.0.copyload = load double, ptr %.sroa.2101.0..sroa_idx, align 8, !tbaa !13
  %282 = load ptr, ptr %13, align 8, !tbaa !5
  %283 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %282, i64 %.10501
  %.sroa.026.0.copyload = load double, ptr %283, align 8, !tbaa !13
  %.sroa.227.0..sroa_idx = getelementptr inbounds i8, ptr %283, i64 8
  %.sroa.227.0.copyload = load double, ptr %.sroa.227.0..sroa_idx, align 8, !tbaa !13
  %284 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %.sroa.028.0.copyload, double %.sroa.229.0.copyload, double %.sroa.026.0.copyload, double %.sroa.227.0.copyload)
  %285 = extractvalue { double, double } %284, 0
  %286 = extractvalue { double, double } %284, 1
  %287 = load ptr, ptr %13, align 8, !tbaa !5
  br i1 %281, label %288, label %297

288:                                              ; preds = %280
  %289 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %287, i64 %.10501
  %.sroa.022.0.copyload = load double, ptr %289, align 8, !tbaa !13
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %289, i64 8
  %.sroa.223.0.copyload = load double, ptr %.sroa.223.0..sroa_idx, align 8, !tbaa !13
  %290 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %.sroa.022.0.copyload, double %.sroa.223.0.copyload, ptr noundef %1)
  %291 = extractvalue { double, double } %290, 0
  %292 = extractvalue { double, double } %290, 1
  %293 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %285, double %286, double %291, double %292)
  %294 = extractvalue { double, double } %293, 0
  %295 = extractvalue { double, double } %293, 1
  %296 = call { double, double } @_ZN11alglib_impl10ae_c_d_subEdNS_10ae_complexE(double noundef 1.000000e+00, double %294, double %295)
  br label %306

297:                                              ; preds = %280
  %298 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %287, i64 %.6387497
  %.sroa.08.0.copyload = load double, ptr %298, align 8, !tbaa !13
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %298, i64 8
  %.sroa.29.0.copyload = load double, ptr %.sroa.29.0..sroa_idx, align 8, !tbaa !13
  %299 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %.sroa.08.0.copyload, double %.sroa.29.0.copyload, ptr noundef %1)
  %300 = extractvalue { double, double } %299, 0
  %301 = extractvalue { double, double } %299, 1
  %302 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %285, double %286, double %300, double %301)
  %303 = extractvalue { double, double } %302, 0
  %304 = extractvalue { double, double } %302, 1
  %305 = call { double, double } @_ZN11alglib_impl8ae_c_negENS_10ae_complexE(double %303, double %304)
  br label %306

306:                                              ; preds = %288, %297
  %.sink581 = phi { double, double } [ %296, %288 ], [ %305, %297 ]
  %.10501.sink = phi i64 [ %.10501, %288 ], [ %.6387497, %297 ]
  %307 = extractvalue { double, double } %.sink581, 0
  %308 = extractvalue { double, double } %.sink581, 1
  %309 = load ptr, ptr %14, align 8, !tbaa !5
  %310 = getelementptr inbounds ptr, ptr %309, i64 %.10501
  %311 = load ptr, ptr %310, align 8, !tbaa !16
  %312 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %311, i64 %.10501.sink
  store double %307, ptr %312, align 8, !tbaa !13
  %.sroa.435.0..sroa_idx = getelementptr inbounds i8, ptr %312, i64 8
  store double %308, ptr %.sroa.435.0..sroa_idx, align 8, !tbaa !13
  %313 = add nuw i64 %.6387497, 1
  %exitcond544 = icmp eq i64 %313, %277
  br i1 %exitcond544, label %._crit_edge499, label %280, !llvm.loop !39

._crit_edge499:                                   ; preds = %306
  %314 = add nuw i64 %.10501, 1
  %exitcond545 = icmp eq i64 %314, %277
  br i1 %exitcond545, label %.preheader432, label %.preheader424, !llvm.loop !40

.preheader431:                                    ; preds = %._crit_edge505
  br i1 %.not404451, label %._crit_edge517, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader431
  %315 = add nuw i64 %21, 1
  %316 = add nuw i64 %23, 1
  br label %.preheader

.preheader423:                                    ; preds = %.preheader423.lr.ph, %._crit_edge505
  %.11507 = phi i64 [ 1, %.preheader423.lr.ph ], [ %335, %._crit_edge505 ]
  br i1 %.not438, label %._crit_edge505, label %.lr.ph504

.lr.ph504:                                        ; preds = %.preheader423, %.lr.ph504
  %.7388503 = phi i64 [ %334, %.lr.ph504 ], [ 1, %.preheader423 ]
  %317 = load ptr, ptr %16, align 8, !tbaa !5
  %318 = getelementptr inbounds ptr, ptr %317, i64 %.11507
  %319 = load ptr, ptr %318, align 8, !tbaa !16
  %320 = getelementptr inbounds i8, ptr %319, i64 16
  %321 = load ptr, ptr %14, align 8, !tbaa !5
  %322 = getelementptr inbounds i8, ptr %321, i64 8
  %323 = load ptr, ptr %322, align 8, !tbaa !16
  %324 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %323, i64 %.7388503
  %325 = load i64, ptr %15, align 8, !tbaa !18
  %326 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %22)
  %327 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef nonnull %320, i64 noundef 1, ptr noundef nonnull @.str.191, ptr noundef nonnull %324, i64 noundef %325, ptr noundef nonnull @.str.191, i64 noundef %326)
  %328 = extractvalue { double, double } %327, 0
  %329 = extractvalue { double, double } %327, 1
  %330 = load ptr, ptr %19, align 8, !tbaa !5
  %331 = getelementptr inbounds ptr, ptr %330, i64 %.11507
  %332 = load ptr, ptr %331, align 8, !tbaa !16
  %333 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %332, i64 %.7388503
  store double %328, ptr %333, align 8, !tbaa !13
  %.sroa.9.0..sroa_idx158 = getelementptr inbounds i8, ptr %333, i64 8
  store double %329, ptr %.sroa.9.0..sroa_idx158, align 8, !tbaa !13
  %334 = add nuw i64 %.7388503, 1
  %exitcond546 = icmp eq i64 %.7388503, %278
  br i1 %exitcond546, label %._crit_edge505, label %.lr.ph504, !llvm.loop !41

._crit_edge505:                                   ; preds = %.lr.ph504, %.preheader423
  %335 = add nuw i64 %.11507, 1
  %exitcond547 = icmp eq i64 %.11507, %279
  br i1 %exitcond547, label %.preheader431, label %.preheader423, !llvm.loop !42

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge512
  %.12516 = phi i64 [ 1, %.preheader.lr.ph ], [ %350, %._crit_edge512 ]
  %.4394515 = phi double [ 0.000000e+00, %.preheader.lr.ph ], [ %.5395.lcssa, %._crit_edge512 ]
  br i1 %.not438, label %._crit_edge512, label %.lr.ph511

.lr.ph511:                                        ; preds = %.preheader, %.lr.ph511
  %.8389510 = phi i64 [ %349, %.lr.ph511 ], [ 1, %.preheader ]
  %.5395509 = phi double [ %348, %.lr.ph511 ], [ %.4394515, %.preheader ]
  %336 = load ptr, ptr %17, align 8, !tbaa !5
  %337 = getelementptr inbounds ptr, ptr %336, i64 %.12516
  %338 = load ptr, ptr %337, align 8, !tbaa !16
  %339 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %338, i64 %.8389510
  %.sroa.02.0.copyload = load double, ptr %339, align 8, !tbaa !13
  %.sroa.23.0..sroa_idx = getelementptr inbounds i8, ptr %339, i64 8
  %.sroa.23.0.copyload = load double, ptr %.sroa.23.0..sroa_idx, align 8, !tbaa !13
  %340 = load ptr, ptr %19, align 8, !tbaa !5
  %341 = getelementptr inbounds ptr, ptr %340, i64 %.12516
  %342 = load ptr, ptr %341, align 8, !tbaa !16
  %343 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %342, i64 %.8389510
  %.sroa.01.0.copyload = load double, ptr %343, align 8, !tbaa !13
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %343, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !13
  %344 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %.sroa.02.0.copyload, double %.sroa.23.0.copyload, double %.sroa.01.0.copyload, double %.sroa.2.0.copyload)
  %345 = extractvalue { double, double } %344, 0
  %346 = extractvalue { double, double } %344, 1
  %347 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %345, double %346, ptr noundef %1)
  %348 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.5395509, double noundef %347, ptr noundef %1)
  %349 = add nuw i64 %.8389510, 1
  %exitcond548 = icmp eq i64 %.8389510, %315
  br i1 %exitcond548, label %._crit_edge512, label %.lr.ph511, !llvm.loop !43

._crit_edge512:                                   ; preds = %.lr.ph511, %.preheader
  %.5395.lcssa = phi double [ %.4394515, %.preheader ], [ %348, %.lr.ph511 ]
  %350 = add nuw i64 %.12516, 1
  %exitcond549 = icmp eq i64 %.12516, %316
  br i1 %exitcond549, label %._crit_edge517, label %.preheader, !llvm.loop !44

._crit_edge517:                                   ; preds = %._crit_edge512, %.preheader432, %.preheader431
  %.4394.lcssa = phi double [ 0.000000e+00, %.preheader431 ], [ 0.000000e+00, %.preheader432 ], [ %.5395.lcssa, %._crit_edge512 ]
  %351 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0396522, double noundef %.4394.lcssa, ptr noundef %1)
  %352 = add nuw nsw i64 %.0399519, 1
  %exitcond550.not = icmp eq i64 %352, 1001
  br i1 %exitcond550.not, label %353, label %20, !llvm.loop !45

353:                                              ; preds = %._crit_edge517
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef 11, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef 11, ptr noundef %1)
  %354 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %355 = call double @llvm.fmuladd.f64(double %354, double 2.000000e+00, double -1.000000e+00)
  %356 = fmul double %355, 0x7DCE94C85C298C4D
  %357 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %356)
  %358 = extractvalue { double, double } %357, 0
  %359 = extractvalue { double, double } %357, 1
  %360 = load ptr, ptr %13, align 8, !tbaa !5
  %361 = getelementptr inbounds i8, ptr %360, i64 16
  store double %358, ptr %361, align 8, !tbaa !13
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %360, i64 24
  store double %359, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !13
  %362 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %363 = call double @llvm.fmuladd.f64(double %362, double 2.000000e+00, double -1.000000e+00)
  %364 = fmul double %363, 0x7DCE94C85C298C4D
  %365 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %364)
  %366 = extractvalue { double, double } %365, 0
  %367 = extractvalue { double, double } %365, 1
  %368 = load ptr, ptr %13, align 8, !tbaa !5
  %369 = getelementptr inbounds i8, ptr %368, i64 32
  store double %366, ptr %369, align 8, !tbaa !13
  %.sroa.4.0..sroa_idx.1 = getelementptr inbounds i8, ptr %368, i64 40
  store double %367, ptr %.sroa.4.0..sroa_idx.1, align 8, !tbaa !13
  %370 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %371 = call double @llvm.fmuladd.f64(double %370, double 2.000000e+00, double -1.000000e+00)
  %372 = fmul double %371, 0x7DCE94C85C298C4D
  %373 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %372)
  %374 = extractvalue { double, double } %373, 0
  %375 = extractvalue { double, double } %373, 1
  %376 = load ptr, ptr %13, align 8, !tbaa !5
  %377 = getelementptr inbounds i8, ptr %376, i64 48
  store double %374, ptr %377, align 8, !tbaa !13
  %.sroa.4.0..sroa_idx.2 = getelementptr inbounds i8, ptr %376, i64 56
  store double %375, ptr %.sroa.4.0..sroa_idx.2, align 8, !tbaa !13
  %378 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %379 = call double @llvm.fmuladd.f64(double %378, double 2.000000e+00, double -1.000000e+00)
  %380 = fmul double %379, 0x7DCE94C85C298C4D
  %381 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %380)
  %382 = extractvalue { double, double } %381, 0
  %383 = extractvalue { double, double } %381, 1
  %384 = load ptr, ptr %13, align 8, !tbaa !5
  %385 = getelementptr inbounds i8, ptr %384, i64 64
  store double %382, ptr %385, align 8, !tbaa !13
  %.sroa.4.0..sroa_idx.3 = getelementptr inbounds i8, ptr %384, i64 72
  store double %383, ptr %.sroa.4.0..sroa_idx.3, align 8, !tbaa !13
  %386 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %387 = call double @llvm.fmuladd.f64(double %386, double 2.000000e+00, double -1.000000e+00)
  %388 = fmul double %387, 0x7DCE94C85C298C4D
  %389 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %388)
  %390 = extractvalue { double, double } %389, 0
  %391 = extractvalue { double, double } %389, 1
  %392 = load ptr, ptr %13, align 8, !tbaa !5
  %393 = getelementptr inbounds i8, ptr %392, i64 80
  store double %390, ptr %393, align 8, !tbaa !13
  %.sroa.4.0..sroa_idx.4 = getelementptr inbounds i8, ptr %392, i64 88
  store double %391, ptr %.sroa.4.0..sroa_idx.4, align 8, !tbaa !13
  %394 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %395 = call double @llvm.fmuladd.f64(double %394, double 2.000000e+00, double -1.000000e+00)
  %396 = fmul double %395, 0x7DCE94C85C298C4D
  %397 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %396)
  %398 = extractvalue { double, double } %397, 0
  %399 = extractvalue { double, double } %397, 1
  %400 = load ptr, ptr %13, align 8, !tbaa !5
  %401 = getelementptr inbounds i8, ptr %400, i64 96
  store double %398, ptr %401, align 8, !tbaa !13
  %.sroa.4.0..sroa_idx.5 = getelementptr inbounds i8, ptr %400, i64 104
  store double %399, ptr %.sroa.4.0..sroa_idx.5, align 8, !tbaa !13
  %402 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %403 = call double @llvm.fmuladd.f64(double %402, double 2.000000e+00, double -1.000000e+00)
  %404 = fmul double %403, 0x7DCE94C85C298C4D
  %405 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %404)
  %406 = extractvalue { double, double } %405, 0
  %407 = extractvalue { double, double } %405, 1
  %408 = load ptr, ptr %13, align 8, !tbaa !5
  %409 = getelementptr inbounds i8, ptr %408, i64 112
  store double %406, ptr %409, align 8, !tbaa !13
  %.sroa.4.0..sroa_idx.6 = getelementptr inbounds i8, ptr %408, i64 120
  store double %407, ptr %.sroa.4.0..sroa_idx.6, align 8, !tbaa !13
  %410 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %411 = call double @llvm.fmuladd.f64(double %410, double 2.000000e+00, double -1.000000e+00)
  %412 = fmul double %411, 0x7DCE94C85C298C4D
  %413 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %412)
  %414 = extractvalue { double, double } %413, 0
  %415 = extractvalue { double, double } %413, 1
  %416 = load ptr, ptr %13, align 8, !tbaa !5
  %417 = getelementptr inbounds i8, ptr %416, i64 128
  store double %414, ptr %417, align 8, !tbaa !13
  %.sroa.4.0..sroa_idx.7 = getelementptr inbounds i8, ptr %416, i64 136
  store double %415, ptr %.sroa.4.0..sroa_idx.7, align 8, !tbaa !13
  %418 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %419 = call double @llvm.fmuladd.f64(double %418, double 2.000000e+00, double -1.000000e+00)
  %420 = fmul double %419, 0x7DCE94C85C298C4D
  %421 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %420)
  %422 = extractvalue { double, double } %421, 0
  %423 = extractvalue { double, double } %421, 1
  %424 = load ptr, ptr %13, align 8, !tbaa !5
  %425 = getelementptr inbounds i8, ptr %424, i64 144
  store double %422, ptr %425, align 8, !tbaa !13
  %.sroa.4.0..sroa_idx.8 = getelementptr inbounds i8, ptr %424, i64 152
  store double %423, ptr %.sroa.4.0..sroa_idx.8, align 8, !tbaa !13
  %426 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %427 = call double @llvm.fmuladd.f64(double %426, double 2.000000e+00, double -1.000000e+00)
  %428 = fmul double %427, 0x7DCE94C85C298C4D
  %429 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %428)
  %430 = extractvalue { double, double } %429, 0
  %431 = extractvalue { double, double } %429, 1
  %432 = load ptr, ptr %13, align 8, !tbaa !5
  %433 = getelementptr inbounds i8, ptr %432, i64 160
  store double %430, ptr %433, align 8, !tbaa !13
  %.sroa.4.0..sroa_idx.9 = getelementptr inbounds i8, ptr %432, i64 168
  store double %431, ptr %.sroa.4.0..sroa_idx.9, align 8, !tbaa !13
  call void @_ZN11alglib_impl25complexgeneratereflectionEPNS_9ae_vectorElPNS_10ae_complexEPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef 10, ptr noundef nonnull %11, ptr noundef %1)
  %434 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %119, double noundef 5.000000e-13)
  br i1 %434, label %439, label %435

435:                                              ; preds = %353
  %436 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %237, double noundef 5.000000e-13)
  br i1 %436, label %439, label %437

437:                                              ; preds = %435
  %438 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %351, double noundef 5.000000e-13)
  br label %439

439:                                              ; preds = %437, %435, %353
  %440 = phi i1 [ true, %435 ], [ true, %353 ], [ %438, %437 ]
  br i1 %0, label %450, label %441

441:                                              ; preds = %439
  %442 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.192)
  %443 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.193, double noundef %119)
  %444 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.194, double noundef %237)
  %445 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.195, double noundef %351)
  %446 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.196, double noundef 5.000000e-13)
  %447 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.197)
  %.str.1..str.2 = select i1 %440, ptr @.str.1, ptr @.str.2
  %448 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2)
  %449 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %450

450:                                              ; preds = %441, %439
  %451 = xor i1 %440, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  ret i1 %451
}

; 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) #6

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

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

declare { double, double } @_ZN11alglib_impl10ae_c_d_subEdNS_10ae_complexE(double noundef, double, double) 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_impl8ae_c_negENS_10ae_complexE(double, double) local_unnamed_addr #1

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTSN11alglib_impl10ae_complexE", !10, i64 0, !10, i64 8}
!10 = !{!"double", !6, i64 0}
!11 = !{!9, !10, i64 8}
!12 = !{i64 0, i64 8, !13, i64 8, i64 8, !13}
!13 = !{!10, !10, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !6, i64 0}
!18 = !{!19, !20, i64 16}
!19 = !{!"_ZTSN11alglib_impl9ae_matrixE", !20, i64 0, !20, i64 8, !20, i64 16, !20, i64 24, !21, i64 32, !22, i64 40, !6, i64 72}
!20 = !{!"long", !6, i64 0}
!21 = !{!"bool", !6, i64 0}
!22 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15, !26}
!26 = !{!"llvm.loop.peeled.count", i32 1}
!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 = distinct !{!43, !15}
!44 = distinct !{!44, !15}
!45 = distinct !{!45, !15}


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