; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (linalg)

; 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_complex" = type { double, double }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

@.str.200 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.332 = external hidden unnamed_addr constant [17 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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9hmatrixtdEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #4 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.alglib_impl::ae_frame", align 8
  %16 = alloca i64, align 8
  %17 = alloca %"struct.alglib_impl::ae_complex", 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_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca i32, align 4
  %24 = alloca %"struct.alglib_impl::ae_complex", align 8
  %25 = alloca %"struct.alglib_impl::ae_complex", align 8
  %26 = alloca %"struct.alglib_impl::ae_complex", align 8
  %27 = alloca %"struct.alglib_impl::ae_complex", align 8
  %28 = alloca %"struct.alglib_impl::ae_complex", align 8
  %29 = alloca %"struct.alglib_impl::ae_complex", align 8
  %30 = alloca %"struct.alglib_impl::ae_complex", align 8
  %31 = alloca %"struct.alglib_impl::ae_complex", align 8
  %32 = alloca %"struct.alglib_impl::ae_complex", align 8
  %33 = alloca %"struct.alglib_impl::ae_complex", align 8
  %34 = alloca %"struct.alglib_impl::ae_complex", align 8
  %35 = alloca %"struct.alglib_impl::ae_complex", align 8
  %36 = alloca %"struct.alglib_impl::ae_complex", align 8
  %37 = alloca %"struct.alglib_impl::ae_complex", align 8
  %38 = alloca %"struct.alglib_impl::ae_complex", align 8
  %39 = 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
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  %52 = zext i1 %2 to i8
  store i8 %52, ptr %10, align 1, !tbaa !11
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #5
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %53, ptr noundef %15)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %54)
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %55)
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %56)
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 4, ptr noundef %57, i1 noundef zeroext true)
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 4, ptr noundef %58, i1 noundef zeroext true)
  %59 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 4, ptr noundef %59, i1 noundef zeroext true)
  %60 = load i64, ptr %9, align 8, !tbaa !9
  %61 = icmp sle i64 %60, 0
  br i1 %61, label %62, label %64

62:                                               ; preds = %7
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %63)
  store i32 1, ptr %23, align 4
  br label %863

64:                                               ; preds = %7
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %65

65:                                               ; preds = %83, %64
  %66 = load i64, ptr %16, align 8, !tbaa !9
  %67 = load i64, ptr %9, align 8, !tbaa !9
  %68 = sub nsw i64 %67, 1
  %69 = icmp sle i64 %66, %68
  br i1 %69, label %70, label %86

70:                                               ; preds = %65
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %71, i32 0, i32 6
  %73 = load ptr, ptr %72, align 8, !tbaa !13
  %74 = load i64, ptr %16, align 8, !tbaa !9
  %75 = getelementptr inbounds ptr, ptr %73, i64 %74
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = load i64, ptr %16, align 8, !tbaa !9
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %76, i64 %77
  %79 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %78, i32 0, i32 1
  %80 = load double, ptr %79, align 8, !tbaa !14
  %81 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %80, double noundef 0.000000e+00)
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %81, ptr noundef @.str.332, ptr noundef %82)
  br label %83

83:                                               ; preds = %70
  %84 = load i64, ptr %16, align 8, !tbaa !9
  %85 = add nsw i64 %84, 1
  store i64 %85, ptr %16, align 8, !tbaa !9
  br label %65, !llvm.loop !17

86:                                               ; preds = %65
  %87 = load i64, ptr %9, align 8, !tbaa !9
  %88 = icmp sgt i64 %87, 1
  br i1 %88, label %89, label %100

89:                                               ; preds = %86
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = load i64, ptr %9, align 8, !tbaa !9
  %92 = sub nsw i64 %91, 2
  %93 = add nsw i64 %92, 1
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %90, i64 noundef %93, ptr noundef %94)
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = load i64, ptr %9, align 8, !tbaa !9
  %97 = sub nsw i64 %96, 2
  %98 = add nsw i64 %97, 1
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %95, i64 noundef %98, ptr noundef %99)
  br label %100

100:                                              ; preds = %89, %86
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = load i64, ptr %9, align 8, !tbaa !9
  %103 = sub nsw i64 %102, 1
  %104 = add nsw i64 %103, 1
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %101, i64 noundef %104, ptr noundef %105)
  %106 = load i64, ptr %9, align 8, !tbaa !9
  %107 = sub nsw i64 %106, 1
  %108 = add nsw i64 %107, 1
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %108, ptr noundef %109)
  %110 = load i64, ptr %9, align 8, !tbaa !9
  %111 = sub nsw i64 %110, 1
  %112 = add nsw i64 %111, 1
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %112, ptr noundef %113)
  %114 = load i64, ptr %9, align 8, !tbaa !9
  %115 = sub nsw i64 %114, 1
  %116 = add nsw i64 %115, 1
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %116, ptr noundef %117)
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = load i64, ptr %9, align 8, !tbaa !9
  %120 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %121 = trunc i8 %120 to i1
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  %126 = call noundef zeroext i1 @_ZN11alglib_impl12hmatrixtdmklEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef %118, i64 noundef %119, i1 noundef zeroext %121, ptr noundef %122, ptr noundef %123, ptr noundef %124, ptr noundef %125)
  br i1 %126, label %127, label %129

127:                                              ; preds = %100
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %128)
  store i32 1, ptr %23, align 4
  br label %863

129:                                              ; preds = %100
  %130 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %131 = trunc i8 %130 to i1
  br i1 %131, label %132, label %487

132:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %133, i32 0, i32 6
  %135 = load ptr, ptr %134, align 8, !tbaa !13
  %136 = load i64, ptr %9, align 8, !tbaa !9
  %137 = sub nsw i64 %136, 1
  %138 = getelementptr inbounds ptr, ptr %135, i64 %137
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = load i64, ptr %9, align 8, !tbaa !9
  %141 = sub nsw i64 %140, 1
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %139, i64 %141
  %143 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %142, i32 0, i32 0
  %144 = load double, ptr %143, align 8, !tbaa !21
  %145 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %144)
  %146 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %147 = extractvalue { double, double } %145, 0
  store double %147, ptr %146, align 8
  %148 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %149 = extractvalue { double, double } %145, 1
  store double %149, ptr %148, align 8
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %150, i32 0, i32 6
  %152 = load ptr, ptr %151, align 8, !tbaa !13
  %153 = load i64, ptr %9, align 8, !tbaa !9
  %154 = sub nsw i64 %153, 1
  %155 = getelementptr inbounds ptr, ptr %152, i64 %154
  %156 = load ptr, ptr %155, align 8, !tbaa !5
  %157 = load i64, ptr %9, align 8, !tbaa !9
  %158 = sub nsw i64 %157, 1
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %156, i64 %158
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %159, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  %160 = load i64, ptr %9, align 8, !tbaa !9
  %161 = sub nsw i64 %160, 2
  store i64 %161, ptr %16, align 8, !tbaa !9
  br label %162

162:                                              ; preds = %471, %132
  %163 = load i64, ptr %16, align 8, !tbaa !9
  %164 = icmp sge i64 %163, 0
  br i1 %164, label %165, label %474

165:                                              ; preds = %162
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %166, i32 0, i32 6
  %168 = load ptr, ptr %167, align 8, !tbaa !13
  %169 = load i64, ptr %16, align 8, !tbaa !9
  %170 = getelementptr inbounds ptr, ptr %168, i64 %169
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = load i64, ptr %16, align 8, !tbaa !9
  %173 = add nsw i64 %172, 1
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %171, i64 %173
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %174, i64 16, i1 false), !tbaa.struct !22
  %175 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %176 = load ptr, ptr %175, align 8, !tbaa !13
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %176, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %177, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !22
  %178 = load i64, ptr %16, align 8, !tbaa !9
  %179 = icmp sge i64 %178, 1
  br i1 %179, label %180, label %198

180:                                              ; preds = %165
  %181 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %182 = load ptr, ptr %181, align 8, !tbaa !13
  %183 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %182, i64 2
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %184, i32 0, i32 6
  %186 = load ptr, ptr %185, align 8, !tbaa !13
  %187 = getelementptr inbounds ptr, ptr %186, i64 0
  %188 = load ptr, ptr %187, align 8, !tbaa !5
  %189 = load i64, ptr %16, align 8, !tbaa !9
  %190 = add nsw i64 %189, 1
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %188, i64 %190
  %192 = load ptr, ptr %8, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %192, i32 0, i32 2
  %194 = load i64, ptr %193, align 8, !tbaa !24
  %195 = load i64, ptr %16, align 8, !tbaa !9
  %196 = add nsw i64 %195, 1
  %197 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 2, i64 noundef %196)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %183, i64 noundef 1, ptr noundef %191, i64 noundef %194, ptr noundef @.str.200, i64 noundef %197)
  br label %198

198:                                              ; preds = %180, %165
  %199 = load i64, ptr %16, align 8, !tbaa !9
  %200 = add nsw i64 %199, 1
  %201 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl25complexgeneratereflectionEPNS_9ae_vectorElPNS_10ae_complexEPNS_8ae_stateE(ptr noundef %20, i64 noundef %200, ptr noundef %18, ptr noundef %201)
  %202 = load i64, ptr %16, align 8, !tbaa !9
  %203 = icmp sge i64 %202, 1
  br i1 %203, label %204, label %222

204:                                              ; preds = %198
  %205 = load ptr, ptr %8, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %205, i32 0, i32 6
  %207 = load ptr, ptr %206, align 8, !tbaa !13
  %208 = getelementptr inbounds ptr, ptr %207, i64 0
  %209 = load ptr, ptr %208, align 8, !tbaa !5
  %210 = load i64, ptr %16, align 8, !tbaa !9
  %211 = add nsw i64 %210, 1
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %209, i64 %211
  %213 = load ptr, ptr %8, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %213, i32 0, i32 2
  %215 = load i64, ptr %214, align 8, !tbaa !24
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %217 = load ptr, ptr %216, align 8, !tbaa !13
  %218 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %217, i64 2
  %219 = load i64, ptr %16, align 8, !tbaa !9
  %220 = sub nsw i64 %219, 1
  %221 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %220)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %212, i64 noundef %215, ptr noundef %218, i64 noundef 1, ptr noundef @.str.200, i64 noundef %221)
  br label %222

222:                                              ; preds = %204, %198
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !13
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %224, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %225, i64 16, i1 false), !tbaa.struct !22
  %226 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %17, i32 0, i32 0
  %227 = load double, ptr %226, align 8, !tbaa !21
  %228 = load ptr, ptr %13, align 8, !tbaa !5
  %229 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %228, i32 0, i32 4
  %230 = load ptr, ptr %229, align 8, !tbaa !13
  %231 = load i64, ptr %16, align 8, !tbaa !9
  %232 = getelementptr inbounds double, ptr %230, i64 %231
  store double %227, ptr %232, align 8, !tbaa !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !22
  %233 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %234 = load double, ptr %233, align 8
  %235 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %236 = load double, ptr %235, align 8
  %237 = call noundef zeroext i1 @_ZN11alglib_impl10ae_c_neq_dENS_10ae_complexEd(double %234, double %236, double noundef 0.000000e+00)
  br i1 %237, label %238, label %403

238:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %239 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %240 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %241 = extractvalue { double, double } %239, 0
  store double %241, ptr %240, align 8
  %242 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %243 = extractvalue { double, double } %239, 1
  store double %243, ptr %242, align 8
  %244 = load ptr, ptr %8, align 8, !tbaa !5
  %245 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %244, i32 0, i32 6
  %246 = load ptr, ptr %245, align 8, !tbaa !13
  %247 = load i64, ptr %16, align 8, !tbaa !9
  %248 = getelementptr inbounds ptr, ptr %246, i64 %247
  %249 = load ptr, ptr %248, align 8, !tbaa !5
  %250 = load i64, ptr %16, align 8, !tbaa !9
  %251 = add nsw i64 %250, 1
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %249, i64 %251
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %252, ptr align 8 %26, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  %253 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %254 = load ptr, ptr %253, align 8, !tbaa !13
  %255 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %254, i64 1
  %256 = load ptr, ptr %8, align 8, !tbaa !5
  %257 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %256, i32 0, i32 6
  %258 = load ptr, ptr %257, align 8, !tbaa !13
  %259 = getelementptr inbounds ptr, ptr %258, i64 0
  %260 = load ptr, ptr %259, align 8, !tbaa !5
  %261 = load i64, ptr %16, align 8, !tbaa !9
  %262 = add nsw i64 %261, 1
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %260, i64 %262
  %264 = load ptr, ptr %8, align 8, !tbaa !5
  %265 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %264, i32 0, i32 2
  %266 = load i64, ptr %265, align 8, !tbaa !24
  %267 = load i64, ptr %16, align 8, !tbaa !9
  %268 = add nsw i64 %267, 1
  %269 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %268)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %255, i64 noundef 1, ptr noundef %263, i64 noundef %266, ptr noundef @.str.200, i64 noundef %269)
  %270 = load ptr, ptr %8, align 8, !tbaa !5
  %271 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %272 = trunc i8 %271 to i1
  %273 = load i64, ptr %16, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !22
  %274 = load ptr, ptr %14, align 8, !tbaa !5
  %275 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %276 = load double, ptr %275, align 8
  %277 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %278 = load double, ptr %277, align 8
  call void @_ZN11alglib_impl29hermitianmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorENS_10ae_complexES3_PNS_8ae_stateE(ptr noundef %270, i1 noundef zeroext %272, i64 noundef 0, i64 noundef %273, ptr noundef %20, double %276, double %278, ptr noundef %21, ptr noundef %274)
  %279 = load ptr, ptr %11, align 8, !tbaa !5
  %280 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %279, i32 0, i32 4
  %281 = load ptr, ptr %280, align 8, !tbaa !13
  %282 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %281, i64 0
  %283 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %284 = load ptr, ptr %283, align 8, !tbaa !13
  %285 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %284, i64 1
  %286 = load i64, ptr %16, align 8, !tbaa !9
  %287 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %286)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %282, i64 noundef 1, ptr noundef %285, i64 noundef 1, ptr noundef @.str.200, i64 noundef %287)
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  %288 = load ptr, ptr %11, align 8, !tbaa !5
  %289 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %288, i32 0, i32 4
  %290 = load ptr, ptr %289, align 8, !tbaa !13
  %291 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %290, i64 0
  %292 = load ptr, ptr %8, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %292, i32 0, i32 6
  %294 = load ptr, ptr %293, align 8, !tbaa !13
  %295 = getelementptr inbounds ptr, ptr %294, i64 0
  %296 = load ptr, ptr %295, align 8, !tbaa !5
  %297 = load i64, ptr %16, align 8, !tbaa !9
  %298 = add nsw i64 %297, 1
  %299 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %296, i64 %298
  %300 = load ptr, ptr %8, align 8, !tbaa !5
  %301 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %300, i32 0, i32 2
  %302 = load i64, ptr %301, align 8, !tbaa !24
  %303 = load i64, ptr %16, align 8, !tbaa !9
  %304 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %303)
  %305 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %291, i64 noundef 1, ptr noundef @.str.201, ptr noundef %299, i64 noundef %302, ptr noundef @.str.200, i64 noundef %304)
  %306 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %307 = extractvalue { double, double } %305, 0
  store double %307, ptr %306, align 8
  %308 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %309 = extractvalue { double, double } %305, 1
  store double %309, ptr %308, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !22
  %310 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %311 = load double, ptr %310, align 8
  %312 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %313 = load double, ptr %312, align 8
  %314 = call { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double %311, double %313, double noundef 5.000000e-01)
  %315 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %316 = extractvalue { double, double } %314, 0
  store double %316, ptr %315, align 8
  %317 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %318 = extractvalue { double, double } %314, 1
  store double %318, ptr %317, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %33, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !22
  %319 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %320 = load double, ptr %319, align 8
  %321 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %322 = load double, ptr %321, align 8
  %323 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %324 = load double, ptr %323, align 8
  %325 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %326 = load double, ptr %325, align 8
  %327 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %320, double %322, double %324, double %326)
  %328 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %329 = extractvalue { double, double } %327, 0
  store double %329, ptr %328, align 8
  %330 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %331 = extractvalue { double, double } %327, 1
  store double %331, ptr %330, align 8
  %332 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %333 = load double, ptr %332, align 8
  %334 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %335 = load double, ptr %334, align 8
  %336 = call { double, double } @_ZN11alglib_impl8ae_c_negENS_10ae_complexE(double %333, double %335)
  %337 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %338 = extractvalue { double, double } %336, 0
  store double %338, ptr %337, align 8
  %339 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %340 = extractvalue { double, double } %336, 1
  store double %340, ptr %339, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %29, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #5
  %341 = load ptr, ptr %11, align 8, !tbaa !5
  %342 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %341, i32 0, i32 4
  %343 = load ptr, ptr %342, align 8, !tbaa !13
  %344 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %343, i64 0
  %345 = load ptr, ptr %8, align 8, !tbaa !5
  %346 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %345, i32 0, i32 6
  %347 = load ptr, ptr %346, align 8, !tbaa !13
  %348 = getelementptr inbounds ptr, ptr %347, i64 0
  %349 = load ptr, ptr %348, align 8, !tbaa !5
  %350 = load i64, ptr %16, align 8, !tbaa !9
  %351 = add nsw i64 %350, 1
  %352 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %349, i64 %351
  %353 = load ptr, ptr %8, align 8, !tbaa !5
  %354 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %353, i32 0, i32 2
  %355 = load i64, ptr %354, align 8, !tbaa !24
  %356 = load i64, ptr %16, align 8, !tbaa !9
  %357 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %356)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !22
  %358 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %359 = load double, ptr %358, align 8
  %360 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %361 = load double, ptr %360, align 8
  call void @_ZN11alglib_impl10ae_v_caddcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef %344, i64 noundef 1, ptr noundef %352, i64 noundef %355, ptr noundef @.str.200, i64 noundef %357, double %359, double %361)
  %362 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %363 = load ptr, ptr %362, align 8, !tbaa !13
  %364 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %363, i64 1
  %365 = load ptr, ptr %8, align 8, !tbaa !5
  %366 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %365, i32 0, i32 6
  %367 = load ptr, ptr %366, align 8, !tbaa !13
  %368 = getelementptr inbounds ptr, ptr %367, i64 0
  %369 = load ptr, ptr %368, align 8, !tbaa !5
  %370 = load i64, ptr %16, align 8, !tbaa !9
  %371 = add nsw i64 %370, 1
  %372 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %369, i64 %371
  %373 = load ptr, ptr %8, align 8, !tbaa !5
  %374 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %373, i32 0, i32 2
  %375 = load i64, ptr %374, align 8, !tbaa !24
  %376 = load i64, ptr %16, align 8, !tbaa !9
  %377 = add nsw i64 %376, 1
  %378 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %377)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %364, i64 noundef 1, ptr noundef %372, i64 noundef %375, ptr noundef @.str.200, i64 noundef %378)
  %379 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %380 = load ptr, ptr %379, align 8, !tbaa !13
  %381 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %380, i64 1
  %382 = load ptr, ptr %11, align 8, !tbaa !5
  %383 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %382, i32 0, i32 4
  %384 = load ptr, ptr %383, align 8, !tbaa !13
  %385 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %384, i64 0
  %386 = load i64, ptr %16, align 8, !tbaa !9
  %387 = add nsw i64 %386, 1
  %388 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %387)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %381, i64 noundef 1, ptr noundef %385, i64 noundef 1, ptr noundef @.str.200, i64 noundef %388)
  %389 = load ptr, ptr %8, align 8, !tbaa !5
  %390 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %391 = trunc i8 %390 to i1
  %392 = load i64, ptr %16, align 8, !tbaa !9
  %393 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef -1)
  %394 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %395 = extractvalue { double, double } %393, 0
  store double %395, ptr %394, align 8
  %396 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %397 = extractvalue { double, double } %393, 1
  store double %397, ptr %396, align 8
  %398 = load ptr, ptr %14, align 8, !tbaa !5
  %399 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %400 = load double, ptr %399, align 8
  %401 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %402 = load double, ptr %401, align 8
  call void @_ZN11alglib_impl20hermitianrank2updateEPNS_9ae_matrixEbllPNS_9ae_vectorES3_S3_NS_10ae_complexEPNS_8ae_stateE(ptr noundef %389, i1 noundef zeroext %391, i64 noundef 0, i64 noundef %392, ptr noundef %20, ptr noundef %22, ptr noundef %21, double %400, double %402, ptr noundef %398)
  br label %427

403:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #5
  %404 = load ptr, ptr %8, align 8, !tbaa !5
  %405 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %404, i32 0, i32 6
  %406 = load ptr, ptr %405, align 8, !tbaa !13
  %407 = load i64, ptr %16, align 8, !tbaa !9
  %408 = getelementptr inbounds ptr, ptr %406, i64 %407
  %409 = load ptr, ptr %408, align 8, !tbaa !5
  %410 = load i64, ptr %16, align 8, !tbaa !9
  %411 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %409, i64 %410
  %412 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %411, i32 0, i32 0
  %413 = load double, ptr %412, align 8, !tbaa !21
  %414 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %413)
  %415 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %416 = extractvalue { double, double } %414, 0
  store double %416, ptr %415, align 8
  %417 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %418 = extractvalue { double, double } %414, 1
  store double %418, ptr %417, align 8
  %419 = load ptr, ptr %8, align 8, !tbaa !5
  %420 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %419, i32 0, i32 6
  %421 = load ptr, ptr %420, align 8, !tbaa !13
  %422 = load i64, ptr %16, align 8, !tbaa !9
  %423 = getelementptr inbounds ptr, ptr %421, i64 %422
  %424 = load ptr, ptr %423, align 8, !tbaa !5
  %425 = load i64, ptr %16, align 8, !tbaa !9
  %426 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %424, i64 %425
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %426, ptr align 8 %36, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #5
  br label %427

427:                                              ; preds = %403, %238
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #5
  %428 = load ptr, ptr %13, align 8, !tbaa !5
  %429 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %428, i32 0, i32 4
  %430 = load ptr, ptr %429, align 8, !tbaa !13
  %431 = load i64, ptr %16, align 8, !tbaa !9
  %432 = getelementptr inbounds double, ptr %430, i64 %431
  %433 = load double, ptr %432, align 8, !tbaa !23
  %434 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %433)
  %435 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %436 = extractvalue { double, double } %434, 0
  store double %436, ptr %435, align 8
  %437 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %438 = extractvalue { double, double } %434, 1
  store double %438, ptr %437, align 8
  %439 = load ptr, ptr %8, align 8, !tbaa !5
  %440 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %439, i32 0, i32 6
  %441 = load ptr, ptr %440, align 8, !tbaa !13
  %442 = load i64, ptr %16, align 8, !tbaa !9
  %443 = getelementptr inbounds ptr, ptr %441, i64 %442
  %444 = load ptr, ptr %443, align 8, !tbaa !5
  %445 = load i64, ptr %16, align 8, !tbaa !9
  %446 = add nsw i64 %445, 1
  %447 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %444, i64 %446
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %447, ptr align 8 %37, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #5
  %448 = load ptr, ptr %8, align 8, !tbaa !5
  %449 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %448, i32 0, i32 6
  %450 = load ptr, ptr %449, align 8, !tbaa !13
  %451 = load i64, ptr %16, align 8, !tbaa !9
  %452 = add nsw i64 %451, 1
  %453 = getelementptr inbounds ptr, ptr %450, i64 %452
  %454 = load ptr, ptr %453, align 8, !tbaa !5
  %455 = load i64, ptr %16, align 8, !tbaa !9
  %456 = add nsw i64 %455, 1
  %457 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %454, i64 %456
  %458 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %457, i32 0, i32 0
  %459 = load double, ptr %458, align 8, !tbaa !21
  %460 = load ptr, ptr %12, align 8, !tbaa !5
  %461 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %460, i32 0, i32 4
  %462 = load ptr, ptr %461, align 8, !tbaa !13
  %463 = load i64, ptr %16, align 8, !tbaa !9
  %464 = add nsw i64 %463, 1
  %465 = getelementptr inbounds double, ptr %462, i64 %464
  store double %459, ptr %465, align 8, !tbaa !23
  %466 = load ptr, ptr %11, align 8, !tbaa !5
  %467 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %466, i32 0, i32 4
  %468 = load ptr, ptr %467, align 8, !tbaa !13
  %469 = load i64, ptr %16, align 8, !tbaa !9
  %470 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %468, i64 %469
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %470, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !22
  br label %471

471:                                              ; preds = %427
  %472 = load i64, ptr %16, align 8, !tbaa !9
  %473 = add nsw i64 %472, -1
  store i64 %473, ptr %16, align 8, !tbaa !9
  br label %162, !llvm.loop !27

474:                                              ; preds = %162
  %475 = load ptr, ptr %8, align 8, !tbaa !5
  %476 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %475, i32 0, i32 6
  %477 = load ptr, ptr %476, align 8, !tbaa !13
  %478 = getelementptr inbounds ptr, ptr %477, i64 0
  %479 = load ptr, ptr %478, align 8, !tbaa !5
  %480 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %479, i64 0
  %481 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %480, i32 0, i32 0
  %482 = load double, ptr %481, align 8, !tbaa !21
  %483 = load ptr, ptr %12, align 8, !tbaa !5
  %484 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %483, i32 0, i32 4
  %485 = load ptr, ptr %484, align 8, !tbaa !13
  %486 = getelementptr inbounds double, ptr %485, i64 0
  store double %482, ptr %486, align 8, !tbaa !23
  br label %861

487:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #5
  %488 = load ptr, ptr %8, align 8, !tbaa !5
  %489 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %488, i32 0, i32 6
  %490 = load ptr, ptr %489, align 8, !tbaa !13
  %491 = getelementptr inbounds ptr, ptr %490, i64 0
  %492 = load ptr, ptr %491, align 8, !tbaa !5
  %493 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %492, i64 0
  %494 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %493, i32 0, i32 0
  %495 = load double, ptr %494, align 8, !tbaa !21
  %496 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %495)
  %497 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %498 = extractvalue { double, double } %496, 0
  store double %498, ptr %497, align 8
  %499 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %500 = extractvalue { double, double } %496, 1
  store double %500, ptr %499, align 8
  %501 = load ptr, ptr %8, align 8, !tbaa !5
  %502 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %501, i32 0, i32 6
  %503 = load ptr, ptr %502, align 8, !tbaa !13
  %504 = getelementptr inbounds ptr, ptr %503, i64 0
  %505 = load ptr, ptr %504, align 8, !tbaa !5
  %506 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %505, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %506, ptr align 8 %38, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #5
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %507

507:                                              ; preds = %839, %487
  %508 = load i64, ptr %16, align 8, !tbaa !9
  %509 = load i64, ptr %9, align 8, !tbaa !9
  %510 = sub nsw i64 %509, 2
  %511 = icmp sle i64 %508, %510
  br i1 %511, label %512, label %842

512:                                              ; preds = %507
  %513 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %514 = load ptr, ptr %513, align 8, !tbaa !13
  %515 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %514, i64 1
  %516 = load ptr, ptr %8, align 8, !tbaa !5
  %517 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %516, i32 0, i32 6
  %518 = load ptr, ptr %517, align 8, !tbaa !13
  %519 = load i64, ptr %16, align 8, !tbaa !9
  %520 = add nsw i64 %519, 1
  %521 = getelementptr inbounds ptr, ptr %518, i64 %520
  %522 = load ptr, ptr %521, align 8, !tbaa !5
  %523 = load i64, ptr %16, align 8, !tbaa !9
  %524 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %522, i64 %523
  %525 = load ptr, ptr %8, align 8, !tbaa !5
  %526 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %525, i32 0, i32 2
  %527 = load i64, ptr %526, align 8, !tbaa !24
  %528 = load i64, ptr %9, align 8, !tbaa !9
  %529 = load i64, ptr %16, align 8, !tbaa !9
  %530 = sub nsw i64 %528, %529
  %531 = sub nsw i64 %530, 1
  %532 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %531)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %515, i64 noundef 1, ptr noundef %524, i64 noundef %527, ptr noundef @.str.200, i64 noundef %532)
  %533 = load i64, ptr %9, align 8, !tbaa !9
  %534 = load i64, ptr %16, align 8, !tbaa !9
  %535 = sub nsw i64 %533, %534
  %536 = sub nsw i64 %535, 1
  %537 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl25complexgeneratereflectionEPNS_9ae_vectorElPNS_10ae_complexEPNS_8ae_stateE(ptr noundef %20, i64 noundef %536, ptr noundef %18, ptr noundef %537)
  %538 = load ptr, ptr %8, align 8, !tbaa !5
  %539 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %538, i32 0, i32 6
  %540 = load ptr, ptr %539, align 8, !tbaa !13
  %541 = load i64, ptr %16, align 8, !tbaa !9
  %542 = add nsw i64 %541, 1
  %543 = getelementptr inbounds ptr, ptr %540, i64 %542
  %544 = load ptr, ptr %543, align 8, !tbaa !5
  %545 = load i64, ptr %16, align 8, !tbaa !9
  %546 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %544, i64 %545
  %547 = load ptr, ptr %8, align 8, !tbaa !5
  %548 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %547, i32 0, i32 2
  %549 = load i64, ptr %548, align 8, !tbaa !24
  %550 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %551 = load ptr, ptr %550, align 8, !tbaa !13
  %552 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %551, i64 1
  %553 = load i64, ptr %16, align 8, !tbaa !9
  %554 = add nsw i64 %553, 1
  %555 = load i64, ptr %9, align 8, !tbaa !9
  %556 = sub nsw i64 %555, 1
  %557 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %554, i64 noundef %556)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %546, i64 noundef %549, ptr noundef %552, i64 noundef 1, ptr noundef @.str.200, i64 noundef %557)
  %558 = load ptr, ptr %8, align 8, !tbaa !5
  %559 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %558, i32 0, i32 6
  %560 = load ptr, ptr %559, align 8, !tbaa !13
  %561 = load i64, ptr %16, align 8, !tbaa !9
  %562 = add nsw i64 %561, 1
  %563 = getelementptr inbounds ptr, ptr %560, i64 %562
  %564 = load ptr, ptr %563, align 8, !tbaa !5
  %565 = load i64, ptr %16, align 8, !tbaa !9
  %566 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %564, i64 %565
  %567 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %566, i32 0, i32 0
  %568 = load double, ptr %567, align 8, !tbaa !21
  %569 = load ptr, ptr %13, align 8, !tbaa !5
  %570 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %569, i32 0, i32 4
  %571 = load ptr, ptr %570, align 8, !tbaa !13
  %572 = load i64, ptr %16, align 8, !tbaa !9
  %573 = getelementptr inbounds double, ptr %571, i64 %572
  store double %568, ptr %573, align 8, !tbaa !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !22
  %574 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %575 = load double, ptr %574, align 8
  %576 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %577 = load double, ptr %576, align 8
  %578 = call noundef zeroext i1 @_ZN11alglib_impl10ae_c_neq_dENS_10ae_complexEd(double %575, double %577, double noundef 0.000000e+00)
  br i1 %578, label %579, label %770

579:                                              ; preds = %512
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #5
  %580 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %581 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %582 = extractvalue { double, double } %580, 0
  store double %582, ptr %581, align 8
  %583 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %584 = extractvalue { double, double } %580, 1
  store double %584, ptr %583, align 8
  %585 = load ptr, ptr %8, align 8, !tbaa !5
  %586 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %585, i32 0, i32 6
  %587 = load ptr, ptr %586, align 8, !tbaa !13
  %588 = load i64, ptr %16, align 8, !tbaa !9
  %589 = add nsw i64 %588, 1
  %590 = getelementptr inbounds ptr, ptr %587, i64 %589
  %591 = load ptr, ptr %590, align 8, !tbaa !5
  %592 = load i64, ptr %16, align 8, !tbaa !9
  %593 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %591, i64 %592
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %593, ptr align 8 %40, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #5
  %594 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %595 = load ptr, ptr %594, align 8, !tbaa !13
  %596 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %595, i64 1
  %597 = load ptr, ptr %8, align 8, !tbaa !5
  %598 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %597, i32 0, i32 6
  %599 = load ptr, ptr %598, align 8, !tbaa !13
  %600 = load i64, ptr %16, align 8, !tbaa !9
  %601 = add nsw i64 %600, 1
  %602 = getelementptr inbounds ptr, ptr %599, i64 %601
  %603 = load ptr, ptr %602, align 8, !tbaa !5
  %604 = load i64, ptr %16, align 8, !tbaa !9
  %605 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %603, i64 %604
  %606 = load ptr, ptr %8, align 8, !tbaa !5
  %607 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %606, i32 0, i32 2
  %608 = load i64, ptr %607, align 8, !tbaa !24
  %609 = load i64, ptr %9, align 8, !tbaa !9
  %610 = load i64, ptr %16, align 8, !tbaa !9
  %611 = sub nsw i64 %609, %610
  %612 = sub nsw i64 %611, 1
  %613 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %612)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %596, i64 noundef 1, ptr noundef %605, i64 noundef %608, ptr noundef @.str.200, i64 noundef %613)
  %614 = load ptr, ptr %8, align 8, !tbaa !5
  %615 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %616 = trunc i8 %615 to i1
  %617 = load i64, ptr %16, align 8, !tbaa !9
  %618 = add nsw i64 %617, 1
  %619 = load i64, ptr %9, align 8, !tbaa !9
  %620 = sub nsw i64 %619, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !22
  %621 = load ptr, ptr %14, align 8, !tbaa !5
  %622 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %623 = load double, ptr %622, align 8
  %624 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %625 = load double, ptr %624, align 8
  call void @_ZN11alglib_impl29hermitianmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorENS_10ae_complexES3_PNS_8ae_stateE(ptr noundef %614, i1 noundef zeroext %616, i64 noundef %618, i64 noundef %620, ptr noundef %20, double %623, double %625, ptr noundef %21, ptr noundef %621)
  %626 = load ptr, ptr %11, align 8, !tbaa !5
  %627 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %626, i32 0, i32 4
  %628 = load ptr, ptr %627, align 8, !tbaa !13
  %629 = load i64, ptr %16, align 8, !tbaa !9
  %630 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %628, i64 %629
  %631 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %632 = load ptr, ptr %631, align 8, !tbaa !13
  %633 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %632, i64 1
  %634 = load i64, ptr %16, align 8, !tbaa !9
  %635 = load i64, ptr %9, align 8, !tbaa !9
  %636 = sub nsw i64 %635, 2
  %637 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %634, i64 noundef %636)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %630, i64 noundef 1, ptr noundef %633, i64 noundef 1, ptr noundef @.str.200, i64 noundef %637)
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #5
  %638 = load ptr, ptr %11, align 8, !tbaa !5
  %639 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %638, i32 0, i32 4
  %640 = load ptr, ptr %639, align 8, !tbaa !13
  %641 = load i64, ptr %16, align 8, !tbaa !9
  %642 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %640, i64 %641
  %643 = load ptr, ptr %8, align 8, !tbaa !5
  %644 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %643, i32 0, i32 6
  %645 = load ptr, ptr %644, align 8, !tbaa !13
  %646 = load i64, ptr %16, align 8, !tbaa !9
  %647 = add nsw i64 %646, 1
  %648 = getelementptr inbounds ptr, ptr %645, i64 %647
  %649 = load ptr, ptr %648, align 8, !tbaa !5
  %650 = load i64, ptr %16, align 8, !tbaa !9
  %651 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %649, i64 %650
  %652 = load ptr, ptr %8, align 8, !tbaa !5
  %653 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %652, i32 0, i32 2
  %654 = load i64, ptr %653, align 8, !tbaa !24
  %655 = load i64, ptr %16, align 8, !tbaa !9
  %656 = load i64, ptr %9, align 8, !tbaa !9
  %657 = sub nsw i64 %656, 2
  %658 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %655, i64 noundef %657)
  %659 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %642, i64 noundef 1, ptr noundef @.str.201, ptr noundef %651, i64 noundef %654, ptr noundef @.str.200, i64 noundef %658)
  %660 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %661 = extractvalue { double, double } %659, 0
  store double %661, ptr %660, align 8
  %662 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %663 = extractvalue { double, double } %659, 1
  store double %663, ptr %662, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %42, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %46, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !22
  %664 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %665 = load double, ptr %664, align 8
  %666 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %667 = load double, ptr %666, align 8
  %668 = call { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double %665, double %667, double noundef 5.000000e-01)
  %669 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %670 = extractvalue { double, double } %668, 0
  store double %670, ptr %669, align 8
  %671 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %672 = extractvalue { double, double } %668, 1
  store double %672, ptr %671, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %47, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !22
  %673 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %674 = load double, ptr %673, align 8
  %675 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %676 = load double, ptr %675, align 8
  %677 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %678 = load double, ptr %677, align 8
  %679 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %680 = load double, ptr %679, align 8
  %681 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %674, double %676, double %678, double %680)
  %682 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %683 = extractvalue { double, double } %681, 0
  store double %683, ptr %682, align 8
  %684 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %685 = extractvalue { double, double } %681, 1
  store double %685, ptr %684, align 8
  %686 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %687 = load double, ptr %686, align 8
  %688 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %689 = load double, ptr %688, align 8
  %690 = call { double, double } @_ZN11alglib_impl8ae_c_negENS_10ae_complexE(double %687, double %689)
  %691 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %692 = extractvalue { double, double } %690, 0
  store double %692, ptr %691, align 8
  %693 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %694 = extractvalue { double, double } %690, 1
  store double %694, ptr %693, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %43, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #5
  %695 = load ptr, ptr %11, align 8, !tbaa !5
  %696 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %695, i32 0, i32 4
  %697 = load ptr, ptr %696, align 8, !tbaa !13
  %698 = load i64, ptr %16, align 8, !tbaa !9
  %699 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %697, i64 %698
  %700 = load ptr, ptr %8, align 8, !tbaa !5
  %701 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %700, i32 0, i32 6
  %702 = load ptr, ptr %701, align 8, !tbaa !13
  %703 = load i64, ptr %16, align 8, !tbaa !9
  %704 = add nsw i64 %703, 1
  %705 = getelementptr inbounds ptr, ptr %702, i64 %704
  %706 = load ptr, ptr %705, align 8, !tbaa !5
  %707 = load i64, ptr %16, align 8, !tbaa !9
  %708 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %706, i64 %707
  %709 = load ptr, ptr %8, align 8, !tbaa !5
  %710 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %709, i32 0, i32 2
  %711 = load i64, ptr %710, align 8, !tbaa !24
  %712 = load i64, ptr %16, align 8, !tbaa !9
  %713 = load i64, ptr %9, align 8, !tbaa !9
  %714 = sub nsw i64 %713, 2
  %715 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %712, i64 noundef %714)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %48, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !22
  %716 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %717 = load double, ptr %716, align 8
  %718 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %719 = load double, ptr %718, align 8
  call void @_ZN11alglib_impl10ae_v_caddcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef %699, i64 noundef 1, ptr noundef %708, i64 noundef %711, ptr noundef @.str.200, i64 noundef %715, double %717, double %719)
  %720 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %721 = load ptr, ptr %720, align 8, !tbaa !13
  %722 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %721, i64 1
  %723 = load ptr, ptr %8, align 8, !tbaa !5
  %724 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %723, i32 0, i32 6
  %725 = load ptr, ptr %724, align 8, !tbaa !13
  %726 = load i64, ptr %16, align 8, !tbaa !9
  %727 = add nsw i64 %726, 1
  %728 = getelementptr inbounds ptr, ptr %725, i64 %727
  %729 = load ptr, ptr %728, align 8, !tbaa !5
  %730 = load i64, ptr %16, align 8, !tbaa !9
  %731 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %729, i64 %730
  %732 = load ptr, ptr %8, align 8, !tbaa !5
  %733 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %732, i32 0, i32 2
  %734 = load i64, ptr %733, align 8, !tbaa !24
  %735 = load i64, ptr %9, align 8, !tbaa !9
  %736 = load i64, ptr %16, align 8, !tbaa !9
  %737 = sub nsw i64 %735, %736
  %738 = sub nsw i64 %737, 1
  %739 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %738)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %722, i64 noundef 1, ptr noundef %731, i64 noundef %734, ptr noundef @.str.200, i64 noundef %739)
  %740 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %741 = load ptr, ptr %740, align 8, !tbaa !13
  %742 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %741, i64 1
  %743 = load ptr, ptr %11, align 8, !tbaa !5
  %744 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %743, i32 0, i32 4
  %745 = load ptr, ptr %744, align 8, !tbaa !13
  %746 = load i64, ptr %16, align 8, !tbaa !9
  %747 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %745, i64 %746
  %748 = load i64, ptr %9, align 8, !tbaa !9
  %749 = load i64, ptr %16, align 8, !tbaa !9
  %750 = sub nsw i64 %748, %749
  %751 = sub nsw i64 %750, 1
  %752 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %751)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %742, i64 noundef 1, ptr noundef %747, i64 noundef 1, ptr noundef @.str.200, i64 noundef %752)
  %753 = load ptr, ptr %8, align 8, !tbaa !5
  %754 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %755 = trunc i8 %754 to i1
  %756 = load i64, ptr %16, align 8, !tbaa !9
  %757 = add nsw i64 %756, 1
  %758 = load i64, ptr %9, align 8, !tbaa !9
  %759 = sub nsw i64 %758, 1
  %760 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef -1)
  %761 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %762 = extractvalue { double, double } %760, 0
  store double %762, ptr %761, align 8
  %763 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %764 = extractvalue { double, double } %760, 1
  store double %764, ptr %763, align 8
  %765 = load ptr, ptr %14, align 8, !tbaa !5
  %766 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %767 = load double, ptr %766, align 8
  %768 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %769 = load double, ptr %768, align 8
  call void @_ZN11alglib_impl20hermitianrank2updateEPNS_9ae_matrixEbllPNS_9ae_vectorES3_S3_NS_10ae_complexEPNS_8ae_stateE(ptr noundef %753, i1 noundef zeroext %755, i64 noundef %757, i64 noundef %759, ptr noundef %20, ptr noundef %21, ptr noundef %22, double %767, double %769, ptr noundef %765)
  br label %798

770:                                              ; preds = %512
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #5
  %771 = load ptr, ptr %8, align 8, !tbaa !5
  %772 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %771, i32 0, i32 6
  %773 = load ptr, ptr %772, align 8, !tbaa !13
  %774 = load i64, ptr %16, align 8, !tbaa !9
  %775 = add nsw i64 %774, 1
  %776 = getelementptr inbounds ptr, ptr %773, i64 %775
  %777 = load ptr, ptr %776, align 8, !tbaa !5
  %778 = load i64, ptr %16, align 8, !tbaa !9
  %779 = add nsw i64 %778, 1
  %780 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %777, i64 %779
  %781 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %780, i32 0, i32 0
  %782 = load double, ptr %781, align 8, !tbaa !21
  %783 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %782)
  %784 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %785 = extractvalue { double, double } %783, 0
  store double %785, ptr %784, align 8
  %786 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %787 = extractvalue { double, double } %783, 1
  store double %787, ptr %786, align 8
  %788 = load ptr, ptr %8, align 8, !tbaa !5
  %789 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %788, i32 0, i32 6
  %790 = load ptr, ptr %789, align 8, !tbaa !13
  %791 = load i64, ptr %16, align 8, !tbaa !9
  %792 = add nsw i64 %791, 1
  %793 = getelementptr inbounds ptr, ptr %790, i64 %792
  %794 = load ptr, ptr %793, align 8, !tbaa !5
  %795 = load i64, ptr %16, align 8, !tbaa !9
  %796 = add nsw i64 %795, 1
  %797 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %794, i64 %796
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %797, ptr align 8 %50, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #5
  br label %798

798:                                              ; preds = %770, %579
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #5
  %799 = load ptr, ptr %13, align 8, !tbaa !5
  %800 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %799, i32 0, i32 4
  %801 = load ptr, ptr %800, align 8, !tbaa !13
  %802 = load i64, ptr %16, align 8, !tbaa !9
  %803 = getelementptr inbounds double, ptr %801, i64 %802
  %804 = load double, ptr %803, align 8, !tbaa !23
  %805 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %804)
  %806 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %807 = extractvalue { double, double } %805, 0
  store double %807, ptr %806, align 8
  %808 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %809 = extractvalue { double, double } %805, 1
  store double %809, ptr %808, align 8
  %810 = load ptr, ptr %8, align 8, !tbaa !5
  %811 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %810, i32 0, i32 6
  %812 = load ptr, ptr %811, align 8, !tbaa !13
  %813 = load i64, ptr %16, align 8, !tbaa !9
  %814 = add nsw i64 %813, 1
  %815 = getelementptr inbounds ptr, ptr %812, i64 %814
  %816 = load ptr, ptr %815, align 8, !tbaa !5
  %817 = load i64, ptr %16, align 8, !tbaa !9
  %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 %51, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #5
  %819 = load ptr, ptr %8, align 8, !tbaa !5
  %820 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %819, i32 0, i32 6
  %821 = load ptr, ptr %820, align 8, !tbaa !13
  %822 = load i64, ptr %16, align 8, !tbaa !9
  %823 = getelementptr inbounds ptr, ptr %821, i64 %822
  %824 = load ptr, ptr %823, align 8, !tbaa !5
  %825 = load i64, ptr %16, align 8, !tbaa !9
  %826 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %824, i64 %825
  %827 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %826, i32 0, i32 0
  %828 = load double, ptr %827, align 8, !tbaa !21
  %829 = load ptr, ptr %12, align 8, !tbaa !5
  %830 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %829, i32 0, i32 4
  %831 = load ptr, ptr %830, align 8, !tbaa !13
  %832 = load i64, ptr %16, align 8, !tbaa !9
  %833 = getelementptr inbounds double, ptr %831, i64 %832
  store double %828, ptr %833, align 8, !tbaa !23
  %834 = load ptr, ptr %11, align 8, !tbaa !5
  %835 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %834, i32 0, i32 4
  %836 = load ptr, ptr %835, align 8, !tbaa !13
  %837 = load i64, ptr %16, align 8, !tbaa !9
  %838 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %836, i64 %837
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %838, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !22
  br label %839

839:                                              ; preds = %798
  %840 = load i64, ptr %16, align 8, !tbaa !9
  %841 = add nsw i64 %840, 1
  store i64 %841, ptr %16, align 8, !tbaa !9
  br label %507, !llvm.loop !28

842:                                              ; preds = %507
  %843 = load ptr, ptr %8, align 8, !tbaa !5
  %844 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %843, i32 0, i32 6
  %845 = load ptr, ptr %844, align 8, !tbaa !13
  %846 = load i64, ptr %9, align 8, !tbaa !9
  %847 = sub nsw i64 %846, 1
  %848 = getelementptr inbounds ptr, ptr %845, i64 %847
  %849 = load ptr, ptr %848, align 8, !tbaa !5
  %850 = load i64, ptr %9, align 8, !tbaa !9
  %851 = sub nsw i64 %850, 1
  %852 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %849, i64 %851
  %853 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %852, i32 0, i32 0
  %854 = load double, ptr %853, align 8, !tbaa !21
  %855 = load ptr, ptr %12, align 8, !tbaa !5
  %856 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %855, i32 0, i32 4
  %857 = load ptr, ptr %856, align 8, !tbaa !13
  %858 = load i64, ptr %9, align 8, !tbaa !9
  %859 = sub nsw i64 %858, 1
  %860 = getelementptr inbounds double, ptr %857, i64 %859
  store double %854, ptr %860, align 8, !tbaa !23
  br label %861

861:                                              ; preds = %842, %474
  %862 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %862)
  store i32 0, ptr %23, align 4
  br label %863

863:                                              ; preds = %861, %127, %62
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  %864 = load i32, ptr %23, align 4
  switch i32 %864, label %866 [
    i32 0, label %865
    i32 1, label %865
  ]

865:                                              ; preds = %863, %863
  ret void

866:                                              ; preds = %863
  unreachable
}

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) #2

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

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

declare void @_ZN11alglib_impl10ae_v_caddcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, double, double) #2

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

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) #2

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

declare { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double, double, double, double) #2

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

declare noundef zeroext i1 @_ZN11alglib_impl12hmatrixtdmklEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

declare { double, double } @_ZN11alglib_impl8ae_c_negENS_10ae_complexE(double, double) #2

declare { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double, double, double noundef) #2

declare void @_ZN11alglib_impl20hermitianrank2updateEPNS_9ae_matrixEbllPNS_9ae_vectorES3_S3_NS_10ae_complexEPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, double, double, ptr noundef) #2

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

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

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


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

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

@.str.200 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.332 = external hidden unnamed_addr constant [17 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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9hmatrixtdEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #4 {
  %8 = alloca %"struct.alglib_impl::ae_frame", align 8
  %9 = alloca %"struct.alglib_impl::ae_complex", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %6, ptr noundef nonnull %8)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %3)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %4)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %5)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 4, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 4, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 4, ptr noundef %6, i1 noundef zeroext true)
  %13 = icmp slt i64 %1, 1
  br i1 %13, label %327, label %.preheader

.preheader:                                       ; preds = %7
  %14 = getelementptr inbounds i8, ptr %0, i64 72
  br label %15

15:                                               ; preds = %.preheader, %15
  %.0285 = phi i64 [ 0, %.preheader ], [ %22, %15 ]
  %16 = load ptr, ptr %14, align 8, !tbaa !5
  %17 = getelementptr inbounds ptr, ptr %16, i64 %.0285
  %18 = load ptr, ptr %17, align 8, !tbaa !8
  %19 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %18, i64 %.0285, i32 1
  %20 = load double, ptr %19, align 8, !tbaa !10
  %21 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %20, double noundef 0.000000e+00)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.332, ptr noundef %6)
  %22 = add nuw nsw i64 %.0285, 1
  %exitcond.not = icmp eq i64 %22, %1
  br i1 %exitcond.not, label %23, label %15, !llvm.loop !13

23:                                               ; preds = %15
  %24 = add nsw i64 %1, -1
  %.not = icmp eq i64 %1, 1
  br i1 %.not, label %26, label %25

25:                                               ; preds = %23
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %3, i64 noundef %24, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %5, i64 noundef %24, ptr noundef %6)
  br label %26

26:                                               ; preds = %25, %23
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %4, i64 noundef %1, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %1, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %1, ptr noundef %6)
  %27 = call noundef zeroext i1 @_ZN11alglib_impl12hmatrixtdmklEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6)
  br i1 %27, label %327, label %28

28:                                               ; preds = %26
  %29 = load ptr, ptr %14, align 8, !tbaa !5
  br i1 %2, label %30, label %178

30:                                               ; preds = %28
  %31 = getelementptr inbounds ptr, ptr %29, i64 %24
  %32 = load ptr, ptr %31, align 8, !tbaa !8
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %32, i64 %24
  %34 = load double, ptr %33, align 8, !tbaa !15
  %35 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %34)
  %36 = extractvalue { double, double } %35, 0
  %37 = extractvalue { double, double } %35, 1
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  %39 = getelementptr inbounds ptr, ptr %38, i64 %24
  %40 = load ptr, ptr %39, align 8, !tbaa !8
  %41 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %40, i64 %24
  store double %36, ptr %41, align 8, !tbaa !16
  %.sroa.453.0..sroa_idx = getelementptr inbounds i8, ptr %41, i64 8
  store double %37, ptr %.sroa.453.0..sroa_idx, align 8, !tbaa !16
  br i1 %.not, label %._crit_edge291, label %.lr.ph290

.lr.ph290:                                        ; preds = %30
  %42 = add nsw i64 %1, -2
  %43 = getelementptr inbounds i8, ptr %10, i64 56
  %44 = getelementptr inbounds i8, ptr %0, i64 16
  %45 = getelementptr inbounds i8, ptr %5, i64 56
  %.sroa.251.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %46 = getelementptr inbounds i8, ptr %3, i64 56
  %47 = getelementptr inbounds i8, ptr %11, i64 56
  %48 = getelementptr inbounds i8, ptr %12, i64 56
  %49 = getelementptr inbounds i8, ptr %4, i64 56
  br label %50

50:                                               ; preds = %.lr.ph290, %151
  %.1288 = phi i64 [ %42, %.lr.ph290 ], [ %171, %151 ]
  %51 = load ptr, ptr %14, align 8, !tbaa !5
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.1288
  %53 = load ptr, ptr %52, align 8, !tbaa !8
  %54 = add nuw nsw i64 %.1288, 1
  %55 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %53, i64 %54
  %56 = load ptr, ptr %43, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  %58 = load <2 x double>, ptr %55, align 8, !tbaa !16
  store <2 x double> %58, ptr %57, align 8, !tbaa !16
  %.not284 = icmp eq i64 %.1288, 0
  br i1 %.not284, label %.critedge, label %59

59:                                               ; preds = %50
  %60 = load ptr, ptr %43, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 32
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  %63 = load ptr, ptr %62, align 8, !tbaa !8
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %63, i64 %54
  %65 = load i64, ptr %44, align 8, !tbaa !17
  %66 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 2, i64 noundef %54)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef nonnull %61, i64 noundef 1, ptr noundef nonnull %64, i64 noundef %65, ptr noundef nonnull @.str.200, i64 noundef %66)
  call void @_ZN11alglib_impl25complexgeneratereflectionEPNS_9ae_vectorElPNS_10ae_complexEPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %54, ptr noundef nonnull %9, ptr noundef %6)
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = load ptr, ptr %67, align 8, !tbaa !8
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %68, i64 %54
  %70 = load i64, ptr %44, align 8, !tbaa !17
  %71 = load ptr, ptr %43, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 32
  %73 = add nsw i64 %.1288, -1
  %74 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %73)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef nonnull %69, i64 noundef %70, ptr noundef nonnull %72, i64 noundef 1, ptr noundef nonnull @.str.200, i64 noundef %74)
  br label %75

.critedge:                                        ; preds = %50
  call void @_ZN11alglib_impl25complexgeneratereflectionEPNS_9ae_vectorElPNS_10ae_complexEPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %54, ptr noundef nonnull %9, ptr noundef %6)
  br label %75

75:                                               ; preds = %.critedge, %59
  %76 = load ptr, ptr %43, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 16
  %.sroa.055.0.copyload57 = load double, ptr %77, align 8, !tbaa !16
  %78 = load ptr, ptr %45, align 8, !tbaa !5
  %79 = getelementptr inbounds double, ptr %78, i64 %.1288
  store double %.sroa.055.0.copyload57, ptr %79, align 8, !tbaa !16
  %.sroa.050.0.copyload = load double, ptr %9, align 8, !tbaa !16
  %.sroa.251.0.copyload = load double, ptr %.sroa.251.0..sroa_idx, align 8, !tbaa !16
  %80 = call noundef zeroext i1 @_ZN11alglib_impl10ae_c_neq_dENS_10ae_complexEd(double %.sroa.050.0.copyload, double %.sroa.251.0.copyload, double noundef 0.000000e+00)
  br i1 %80, label %81, label %138

81:                                               ; preds = %75
  %82 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %83 = extractvalue { double, double } %82, 0
  %84 = extractvalue { double, double } %82, 1
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = getelementptr inbounds ptr, ptr %85, i64 %.1288
  %87 = load ptr, ptr %86, align 8, !tbaa !8
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %87, i64 %54
  store double %83, ptr %88, align 8, !tbaa !16
  %.sroa.449.0..sroa_idx = getelementptr inbounds i8, ptr %88, i64 8
  store double %84, ptr %.sroa.449.0..sroa_idx, align 8, !tbaa !16
  %89 = load ptr, ptr %43, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 16
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = load ptr, ptr %91, align 8, !tbaa !8
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %92, i64 %54
  %94 = load i64, ptr %44, align 8, !tbaa !17
  %95 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %54)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef nonnull %90, i64 noundef 1, ptr noundef nonnull %93, i64 noundef %94, ptr noundef nonnull @.str.200, i64 noundef %95)
  %.sroa.046.0.copyload = load double, ptr %9, align 8, !tbaa !16
  %.sroa.247.0.copyload = load double, ptr %.sroa.251.0..sroa_idx, align 8, !tbaa !16
  call void @_ZN11alglib_impl29hermitianmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorENS_10ae_complexES3_PNS_8ae_stateE(ptr noundef nonnull %0, i1 noundef zeroext true, i64 noundef 0, i64 noundef %.1288, ptr noundef nonnull %10, double %.sroa.046.0.copyload, double %.sroa.247.0.copyload, ptr noundef nonnull %11, ptr noundef %6)
  %96 = load ptr, ptr %46, align 8, !tbaa !5
  %97 = load ptr, ptr %47, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %97, i64 16
  %99 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.1288)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %96, i64 noundef 1, ptr noundef nonnull %98, i64 noundef 1, ptr noundef nonnull @.str.200, i64 noundef %99)
  %100 = load ptr, ptr %46, align 8, !tbaa !5
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = load ptr, ptr %101, align 8, !tbaa !8
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %102, i64 %54
  %104 = load i64, ptr %44, align 8, !tbaa !17
  %105 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.1288)
  %106 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %100, i64 noundef 1, ptr noundef nonnull @.str.201, ptr noundef nonnull %103, i64 noundef %104, ptr noundef nonnull @.str.200, i64 noundef %105)
  %107 = extractvalue { double, double } %106, 0
  %108 = extractvalue { double, double } %106, 1
  %.sroa.036.0.copyload = load double, ptr %9, align 8, !tbaa !16
  %.sroa.237.0.copyload = load double, ptr %.sroa.251.0..sroa_idx, align 8, !tbaa !16
  %109 = call { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double %.sroa.036.0.copyload, double %.sroa.237.0.copyload, double noundef 5.000000e-01)
  %110 = extractvalue { double, double } %109, 0
  %111 = extractvalue { double, double } %109, 1
  %112 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %110, double %111, double %107, double %108)
  %113 = extractvalue { double, double } %112, 0
  %114 = extractvalue { double, double } %112, 1
  %115 = call { double, double } @_ZN11alglib_impl8ae_c_negENS_10ae_complexE(double %113, double %114)
  %116 = extractvalue { double, double } %115, 0
  %117 = extractvalue { double, double } %115, 1
  %118 = load ptr, ptr %46, align 8, !tbaa !5
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = load ptr, ptr %119, align 8, !tbaa !8
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %120, i64 %54
  %122 = load i64, ptr %44, align 8, !tbaa !17
  %123 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.1288)
  call void @_ZN11alglib_impl10ae_v_caddcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef %118, i64 noundef 1, ptr noundef nonnull %121, i64 noundef %122, ptr noundef nonnull @.str.200, i64 noundef %123, double %116, double %117)
  %124 = load ptr, ptr %43, align 8, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %124, i64 16
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = load ptr, ptr %126, align 8, !tbaa !8
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %127, i64 %54
  %129 = load i64, ptr %44, align 8, !tbaa !17
  %130 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %54)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef nonnull %125, i64 noundef 1, ptr noundef nonnull %128, i64 noundef %129, ptr noundef nonnull @.str.200, i64 noundef %130)
  %131 = load ptr, ptr %48, align 8, !tbaa !5
  %132 = getelementptr inbounds i8, ptr %131, i64 16
  %133 = load ptr, ptr %46, align 8, !tbaa !5
  %134 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %54)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef nonnull %132, i64 noundef 1, ptr noundef %133, i64 noundef 1, ptr noundef nonnull @.str.200, i64 noundef %134)
  %135 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef -1)
  %136 = extractvalue { double, double } %135, 0
  %137 = extractvalue { double, double } %135, 1
  call void @_ZN11alglib_impl20hermitianrank2updateEPNS_9ae_matrixEbllPNS_9ae_vectorES3_S3_NS_10ae_complexEPNS_8ae_stateE(ptr noundef nonnull %0, i1 noundef zeroext true, i64 noundef 0, i64 noundef %.1288, ptr noundef nonnull %10, ptr noundef nonnull %12, ptr noundef nonnull %11, double %136, double %137, ptr noundef %6)
  br label %151

138:                                              ; preds = %75
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = getelementptr inbounds ptr, ptr %139, i64 %.1288
  %141 = load ptr, ptr %140, align 8, !tbaa !8
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %141, i64 %.1288
  %143 = load double, ptr %142, align 8, !tbaa !15
  %144 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %143)
  %145 = extractvalue { double, double } %144, 0
  %146 = extractvalue { double, double } %144, 1
  %147 = load ptr, ptr %14, align 8, !tbaa !5
  %148 = getelementptr inbounds ptr, ptr %147, i64 %.1288
  %149 = load ptr, ptr %148, align 8, !tbaa !8
  %150 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %149, i64 %.1288
  store double %145, ptr %150, align 8, !tbaa !16
  %.sroa.429.0..sroa_idx = getelementptr inbounds i8, ptr %150, i64 8
  store double %146, ptr %.sroa.429.0..sroa_idx, align 8, !tbaa !16
  br label %151

151:                                              ; preds = %138, %81
  %152 = load ptr, ptr %45, align 8, !tbaa !5
  %153 = getelementptr inbounds double, ptr %152, i64 %.1288
  %154 = load double, ptr %153, align 8, !tbaa !16
  %155 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %154)
  %156 = extractvalue { double, double } %155, 0
  %157 = extractvalue { double, double } %155, 1
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = getelementptr inbounds ptr, ptr %158, i64 %.1288
  %160 = load ptr, ptr %159, align 8, !tbaa !8
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %160, i64 %54
  store double %156, ptr %161, align 8, !tbaa !16
  %.sroa.427.0..sroa_idx = getelementptr inbounds i8, ptr %161, i64 8
  store double %157, ptr %.sroa.427.0..sroa_idx, align 8, !tbaa !16
  %162 = load ptr, ptr %14, align 8, !tbaa !5
  %163 = getelementptr inbounds ptr, ptr %162, i64 %54
  %164 = load ptr, ptr %163, align 8, !tbaa !8
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %164, i64 %54
  %166 = load double, ptr %165, align 8, !tbaa !15
  %167 = load ptr, ptr %49, align 8, !tbaa !5
  %168 = getelementptr inbounds double, ptr %167, i64 %54
  store double %166, ptr %168, align 8, !tbaa !16
  %169 = load ptr, ptr %46, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %169, i64 %.1288
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %170, ptr noundef nonnull align 8 dereferenceable(16) %9, i64 16, i1 false), !tbaa.struct !22
  %171 = add nsw i64 %.1288, -1
  %172 = icmp sgt i64 %.1288, 0
  br i1 %172, label %50, label %._crit_edge291, !llvm.loop !23

._crit_edge291:                                   ; preds = %151, %30
  %173 = load ptr, ptr %14, align 8, !tbaa !5
  %174 = load ptr, ptr %173, align 8, !tbaa !8
  %175 = load double, ptr %174, align 8, !tbaa !15
  %176 = getelementptr inbounds i8, ptr %4, i64 56
  %177 = load ptr, ptr %176, align 8, !tbaa !5
  store double %175, ptr %177, align 8, !tbaa !16
  br label %327

178:                                              ; preds = %28
  %179 = load ptr, ptr %29, align 8, !tbaa !8
  %180 = load double, ptr %179, align 8, !tbaa !15
  %181 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %180)
  %182 = extractvalue { double, double } %181, 0
  %183 = extractvalue { double, double } %181, 1
  %184 = load ptr, ptr %14, align 8, !tbaa !5
  %185 = load ptr, ptr %184, align 8, !tbaa !8
  store double %182, ptr %185, align 8, !tbaa !16
  %.sroa.425.0..sroa_idx = getelementptr inbounds i8, ptr %185, i64 8
  store double %183, ptr %.sroa.425.0..sroa_idx, align 8, !tbaa !16
  %186 = add nsw i64 %1, -2
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %178
  %187 = getelementptr inbounds i8, ptr %10, i64 56
  %188 = getelementptr inbounds i8, ptr %0, i64 16
  %189 = getelementptr inbounds i8, ptr %5, i64 56
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %190 = getelementptr inbounds i8, ptr %3, i64 56
  %191 = getelementptr inbounds i8, ptr %11, i64 56
  %192 = getelementptr inbounds i8, ptr %4, i64 56
  %smax = call i64 @llvm.smax.i64(i64 %186, i64 0)
  br label %193

193:                                              ; preds = %.lr.ph, %299
  %.2287 = phi i64 [ 0, %.lr.ph ], [ %197, %299 ]
  %194 = load ptr, ptr %187, align 8, !tbaa !5
  %195 = getelementptr inbounds i8, ptr %194, i64 16
  %196 = load ptr, ptr %14, align 8, !tbaa !5
  %197 = add nuw nsw i64 %.2287, 1
  %198 = getelementptr inbounds ptr, ptr %196, i64 %197
  %199 = load ptr, ptr %198, align 8, !tbaa !8
  %200 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %199, i64 %.2287
  %201 = load i64, ptr %188, align 8, !tbaa !17
  %202 = xor i64 %.2287, -1
  %203 = add nsw i64 %202, %1
  %204 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %203)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef nonnull %195, i64 noundef 1, ptr noundef %200, i64 noundef %201, ptr noundef nonnull @.str.200, i64 noundef %204)
  call void @_ZN11alglib_impl25complexgeneratereflectionEPNS_9ae_vectorElPNS_10ae_complexEPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %203, ptr noundef nonnull %9, ptr noundef %6)
  %205 = load ptr, ptr %14, align 8, !tbaa !5
  %206 = getelementptr inbounds ptr, ptr %205, i64 %197
  %207 = load ptr, ptr %206, align 8, !tbaa !8
  %208 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %207, i64 %.2287
  %209 = load i64, ptr %188, align 8, !tbaa !17
  %210 = load ptr, ptr %187, align 8, !tbaa !5
  %211 = getelementptr inbounds i8, ptr %210, i64 16
  %212 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %197, i64 noundef %24)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %208, i64 noundef %209, ptr noundef nonnull %211, i64 noundef 1, ptr noundef nonnull @.str.200, i64 noundef %212)
  %213 = load ptr, ptr %14, align 8, !tbaa !5
  %214 = getelementptr inbounds ptr, ptr %213, i64 %197
  %215 = load ptr, ptr %214, align 8, !tbaa !8
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %215, i64 %.2287
  %217 = load double, ptr %216, align 8, !tbaa !15
  %218 = load ptr, ptr %189, align 8, !tbaa !5
  %219 = getelementptr inbounds double, ptr %218, i64 %.2287
  store double %217, ptr %219, align 8, !tbaa !16
  %.sroa.022.0.copyload = load double, ptr %9, align 8, !tbaa !16
  %.sroa.223.0.copyload = load double, ptr %.sroa.223.0..sroa_idx, align 8, !tbaa !16
  %220 = call noundef zeroext i1 @_ZN11alglib_impl10ae_c_neq_dENS_10ae_complexEd(double %.sroa.022.0.copyload, double %.sroa.223.0.copyload, double noundef 0.000000e+00)
  br i1 %220, label %221, label %286

221:                                              ; preds = %193
  %222 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %223 = extractvalue { double, double } %222, 0
  %224 = extractvalue { double, double } %222, 1
  %225 = load ptr, ptr %14, align 8, !tbaa !5
  %226 = getelementptr inbounds ptr, ptr %225, i64 %197
  %227 = load ptr, ptr %226, align 8, !tbaa !8
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %227, i64 %.2287
  store double %223, ptr %228, align 8, !tbaa !16
  %.sroa.421.0..sroa_idx = getelementptr inbounds i8, ptr %228, i64 8
  store double %224, ptr %.sroa.421.0..sroa_idx, align 8, !tbaa !16
  %229 = load ptr, ptr %187, align 8, !tbaa !5
  %230 = getelementptr inbounds i8, ptr %229, i64 16
  %231 = load ptr, ptr %14, align 8, !tbaa !5
  %232 = getelementptr inbounds ptr, ptr %231, i64 %197
  %233 = load ptr, ptr %232, align 8, !tbaa !8
  %234 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %233, i64 %.2287
  %235 = load i64, ptr %188, align 8, !tbaa !17
  %236 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %203)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef nonnull %230, i64 noundef 1, ptr noundef %234, i64 noundef %235, ptr noundef nonnull @.str.200, i64 noundef %236)
  %.sroa.018.0.copyload = load double, ptr %9, align 8, !tbaa !16
  %.sroa.219.0.copyload = load double, ptr %.sroa.223.0..sroa_idx, align 8, !tbaa !16
  call void @_ZN11alglib_impl29hermitianmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorENS_10ae_complexES3_PNS_8ae_stateE(ptr noundef nonnull %0, i1 noundef zeroext false, i64 noundef %197, i64 noundef %24, ptr noundef nonnull %10, double %.sroa.018.0.copyload, double %.sroa.219.0.copyload, ptr noundef nonnull %11, ptr noundef %6)
  %237 = load ptr, ptr %190, align 8, !tbaa !5
  %238 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %237, i64 %.2287
  %239 = load ptr, ptr %191, align 8, !tbaa !5
  %240 = getelementptr inbounds i8, ptr %239, i64 16
  %241 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.2287, i64 noundef %186)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %238, i64 noundef 1, ptr noundef nonnull %240, i64 noundef 1, ptr noundef nonnull @.str.200, i64 noundef %241)
  %242 = load ptr, ptr %190, align 8, !tbaa !5
  %243 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %242, i64 %.2287
  %244 = load ptr, ptr %14, align 8, !tbaa !5
  %245 = getelementptr inbounds ptr, ptr %244, i64 %197
  %246 = load ptr, ptr %245, align 8, !tbaa !8
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %246, i64 %.2287
  %248 = load i64, ptr %188, align 8, !tbaa !17
  %249 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.2287, i64 noundef %186)
  %250 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %243, i64 noundef 1, ptr noundef nonnull @.str.201, ptr noundef %247, i64 noundef %248, ptr noundef nonnull @.str.200, i64 noundef %249)
  %251 = extractvalue { double, double } %250, 0
  %252 = extractvalue { double, double } %250, 1
  %.sroa.08.0.copyload = load double, ptr %9, align 8, !tbaa !16
  %.sroa.29.0.copyload = load double, ptr %.sroa.223.0..sroa_idx, align 8, !tbaa !16
  %253 = call { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double %.sroa.08.0.copyload, double %.sroa.29.0.copyload, double noundef 5.000000e-01)
  %254 = extractvalue { double, double } %253, 0
  %255 = extractvalue { double, double } %253, 1
  %256 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %254, double %255, double %251, double %252)
  %257 = extractvalue { double, double } %256, 0
  %258 = extractvalue { double, double } %256, 1
  %259 = call { double, double } @_ZN11alglib_impl8ae_c_negENS_10ae_complexE(double %257, double %258)
  %260 = extractvalue { double, double } %259, 0
  %261 = extractvalue { double, double } %259, 1
  %262 = load ptr, ptr %190, align 8, !tbaa !5
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %262, i64 %.2287
  %264 = load ptr, ptr %14, align 8, !tbaa !5
  %265 = getelementptr inbounds ptr, ptr %264, i64 %197
  %266 = load ptr, ptr %265, align 8, !tbaa !8
  %267 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %266, i64 %.2287
  %268 = load i64, ptr %188, align 8, !tbaa !17
  %269 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.2287, i64 noundef %186)
  call void @_ZN11alglib_impl10ae_v_caddcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef %263, i64 noundef 1, ptr noundef %267, i64 noundef %268, ptr noundef nonnull @.str.200, i64 noundef %269, double %260, double %261)
  %270 = load ptr, ptr %187, align 8, !tbaa !5
  %271 = getelementptr inbounds i8, ptr %270, i64 16
  %272 = load ptr, ptr %14, align 8, !tbaa !5
  %273 = getelementptr inbounds ptr, ptr %272, i64 %197
  %274 = load ptr, ptr %273, align 8, !tbaa !8
  %275 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %274, i64 %.2287
  %276 = load i64, ptr %188, align 8, !tbaa !17
  %277 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %203)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef nonnull %271, i64 noundef 1, ptr noundef %275, i64 noundef %276, ptr noundef nonnull @.str.200, i64 noundef %277)
  %278 = load ptr, ptr %191, align 8, !tbaa !5
  %279 = getelementptr inbounds i8, ptr %278, i64 16
  %280 = load ptr, ptr %190, align 8, !tbaa !5
  %281 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %280, i64 %.2287
  %282 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %203)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef nonnull %279, i64 noundef 1, ptr noundef %281, i64 noundef 1, ptr noundef nonnull @.str.200, i64 noundef %282)
  %283 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef -1)
  %284 = extractvalue { double, double } %283, 0
  %285 = extractvalue { double, double } %283, 1
  call void @_ZN11alglib_impl20hermitianrank2updateEPNS_9ae_matrixEbllPNS_9ae_vectorES3_S3_NS_10ae_complexEPNS_8ae_stateE(ptr noundef nonnull %0, i1 noundef zeroext false, i64 noundef %197, i64 noundef %24, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, double %284, double %285, ptr noundef %6)
  br label %299

286:                                              ; preds = %193
  %287 = load ptr, ptr %14, align 8, !tbaa !5
  %288 = getelementptr inbounds ptr, ptr %287, i64 %197
  %289 = load ptr, ptr %288, align 8, !tbaa !8
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %289, i64 %197
  %291 = load double, ptr %290, align 8, !tbaa !15
  %292 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %291)
  %293 = extractvalue { double, double } %292, 0
  %294 = extractvalue { double, double } %292, 1
  %295 = load ptr, ptr %14, align 8, !tbaa !5
  %296 = getelementptr inbounds ptr, ptr %295, i64 %197
  %297 = load ptr, ptr %296, align 8, !tbaa !8
  %298 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %297, i64 %197
  store double %293, ptr %298, align 8, !tbaa !16
  %.sroa.42.0..sroa_idx = getelementptr inbounds i8, ptr %298, i64 8
  store double %294, ptr %.sroa.42.0..sroa_idx, align 8, !tbaa !16
  br label %299

299:                                              ; preds = %286, %221
  %300 = load ptr, ptr %189, align 8, !tbaa !5
  %301 = getelementptr inbounds double, ptr %300, i64 %.2287
  %302 = load double, ptr %301, align 8, !tbaa !16
  %303 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %302)
  %304 = extractvalue { double, double } %303, 0
  %305 = extractvalue { double, double } %303, 1
  %306 = load ptr, ptr %14, align 8, !tbaa !5
  %307 = getelementptr inbounds ptr, ptr %306, i64 %197
  %308 = load ptr, ptr %307, align 8, !tbaa !8
  %309 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %308, i64 %.2287
  store double %304, ptr %309, align 8, !tbaa !16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %309, i64 8
  store double %305, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !16
  %310 = load ptr, ptr %14, align 8, !tbaa !5
  %311 = getelementptr inbounds ptr, ptr %310, i64 %.2287
  %312 = load ptr, ptr %311, align 8, !tbaa !8
  %313 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %312, i64 %.2287
  %314 = load double, ptr %313, align 8, !tbaa !15
  %315 = load ptr, ptr %192, align 8, !tbaa !5
  %316 = getelementptr inbounds double, ptr %315, i64 %.2287
  store double %314, ptr %316, align 8, !tbaa !16
  %317 = load ptr, ptr %190, align 8, !tbaa !5
  %318 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %317, i64 %.2287
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %318, ptr noundef nonnull align 8 dereferenceable(16) %9, i64 16, i1 false), !tbaa.struct !22
  %exitcond293.not = icmp eq i64 %.2287, %smax
  br i1 %exitcond293.not, label %._crit_edge, label %193, !llvm.loop !24

._crit_edge:                                      ; preds = %299, %178
  %319 = load ptr, ptr %14, align 8, !tbaa !5
  %320 = getelementptr inbounds ptr, ptr %319, i64 %24
  %321 = load ptr, ptr %320, align 8, !tbaa !8
  %322 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %321, i64 %24
  %323 = load double, ptr %322, align 8, !tbaa !15
  %324 = getelementptr inbounds i8, ptr %4, i64 56
  %325 = load ptr, ptr %324, align 8, !tbaa !5
  %326 = getelementptr inbounds double, ptr %325, i64 %24
  store double %323, ptr %326, align 8, !tbaa !16
  br label %327

327:                                              ; preds = %._crit_edge291, %._crit_edge, %26, %7
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  ret void
}

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #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 #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl10ae_v_caddcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, double, double) local_unnamed_addr #2

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

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 #2

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

declare { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double, double, double, double) local_unnamed_addr #2

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

declare noundef zeroext i1 @_ZN11alglib_impl12hmatrixtdmklEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare { double, double } @_ZN11alglib_impl8ae_c_negENS_10ae_complexE(double, double) local_unnamed_addr #2

declare { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double, double, double noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl20hermitianrank2updateEPNS_9ae_matrixEbllPNS_9ae_vectorES3_S3_NS_10ae_complexEPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, double, double, ptr noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 nosync nounwind speculatable willreturn memory(none) }
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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !12, i64 8}
!11 = !{!"_ZTSN11alglib_impl10ae_complexE", !12, i64 0, !12, i64 8}
!12 = !{!"double", !6, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!11, !12, i64 0}
!16 = !{!12, !12, i64 0}
!17 = !{!18, !19, i64 16}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !19, i64 0, !19, i64 8, !19, i64 16, !19, i64 24, !20, i64 32, !21, i64 40, !6, i64 72}
!19 = !{!"long", !6, i64 0}
!20 = !{!"bool", !6, i64 0}
!21 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!22 = !{i64 0, i64 8, !16, i64 8, i64 8, !16}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}


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