; 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_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 }
%"struct.alglib_impl::ae_complex" = type { double, double }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11cmatrixcopyEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11cmatrixgemmElllNS_10ae_complexEPNS_9ae_matrixElllS2_lllS0_S2_llPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, double, double, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, double, double, ptr noundef, i64 noundef, i64 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_impl16cmatrixlqunpackqEPNS_9ae_matrixEllPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.alglib_impl::ae_frame", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %22 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %23 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i32, align 4
  %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
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store i64 %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i64 %4, ptr %12, align 8, !tbaa !9
  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 64, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %42, ptr noundef %15)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 80, i1 false)
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %43)
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 4, ptr noundef %44, i1 noundef zeroext true)
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 4, ptr noundef %45, i1 noundef zeroext true)
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 4, ptr noundef %46, i1 noundef zeroext true)
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %47, i1 noundef zeroext true)
  %48 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %48, i1 noundef zeroext true)
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %49, i1 noundef zeroext true)
  %50 = load i64, ptr %9, align 8, !tbaa !9
  %51 = icmp sle i64 %50, 0
  br i1 %51, label %55, label %52

52:                                               ; preds = %7
  %53 = load i64, ptr %10, align 8, !tbaa !9
  %54 = icmp sle i64 %53, 0
  br i1 %54, label %55, label %57

55:                                               ; preds = %52, %7
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %56)
  store i32 1, ptr %30, align 4
  br label %332

57:                                               ; preds = %52
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = call noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef %58)
  %60 = sdiv i64 %59, 2
  store i64 %60, ptr %29, align 8, !tbaa !9
  %61 = load i64, ptr %9, align 8, !tbaa !9
  %62 = load i64, ptr %10, align 8, !tbaa !9
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  %64 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %61, i64 noundef %62, ptr noundef %63)
  store i64 %64, ptr %19, align 8, !tbaa !9
  %65 = load i64, ptr %19, align 8, !tbaa !9
  %66 = load i64, ptr %12, align 8, !tbaa !9
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %65, i64 noundef %66, ptr noundef %67)
  store i64 %68, ptr %20, align 8, !tbaa !9
  %69 = load i64, ptr %9, align 8, !tbaa !9
  %70 = load i64, ptr %10, align 8, !tbaa !9
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %69, i64 noundef %70, ptr noundef %71)
  %73 = add nsw i64 %72, 1
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %73, ptr noundef %74)
  %75 = load i64, ptr %9, align 8, !tbaa !9
  %76 = load i64, ptr %10, align 8, !tbaa !9
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %75, i64 noundef %76, ptr noundef %77)
  %79 = add nsw i64 %78, 1
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %79, ptr noundef %80)
  %81 = load i64, ptr %19, align 8, !tbaa !9
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %81, ptr noundef %82)
  %83 = load i64, ptr %29, align 8, !tbaa !9
  %84 = load i64, ptr %10, align 8, !tbaa !9
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %21, i64 noundef %83, i64 noundef %84, ptr noundef %85)
  %86 = load i64, ptr %29, align 8, !tbaa !9
  %87 = load i64, ptr %29, align 8, !tbaa !9
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %22, i64 noundef %86, i64 noundef %87, ptr noundef %88)
  %89 = load i64, ptr %12, align 8, !tbaa !9
  %90 = load i64, ptr %29, align 8, !tbaa !9
  %91 = mul nsw i64 2, %90
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %23, i64 noundef %89, i64 noundef %91, ptr noundef %92)
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = load i64, ptr %12, align 8, !tbaa !9
  %95 = load i64, ptr %10, align 8, !tbaa !9
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %93, i64 noundef %94, i64 noundef %95, ptr noundef %96)
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %145, %57
  %98 = load i64, ptr %27, align 8, !tbaa !9
  %99 = load i64, ptr %12, align 8, !tbaa !9
  %100 = sub nsw i64 %99, 1
  %101 = icmp sle i64 %98, %100
  br i1 %101, label %102, label %148

102:                                              ; preds = %97
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %103

103:                                              ; preds = %141, %102
  %104 = load i64, ptr %28, align 8, !tbaa !9
  %105 = load i64, ptr %10, align 8, !tbaa !9
  %106 = sub nsw i64 %105, 1
  %107 = icmp sle i64 %104, %106
  br i1 %107, label %108, label %144

108:                                              ; preds = %103
  %109 = load i64, ptr %27, align 8, !tbaa !9
  %110 = load i64, ptr %28, align 8, !tbaa !9
  %111 = icmp eq i64 %109, %110
  br i1 %111, label %112, label %126

112:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #5
  %113 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %114 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %115 = extractvalue { double, double } %113, 0
  store double %115, ptr %114, align 8
  %116 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %117 = extractvalue { double, double } %113, 1
  store double %117, ptr %116, align 8
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %118, i32 0, i32 6
  %120 = load ptr, ptr %119, align 8, !tbaa !11
  %121 = load i64, ptr %27, align 8, !tbaa !9
  %122 = getelementptr inbounds ptr, ptr %120, i64 %121
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = load i64, ptr %28, align 8, !tbaa !9
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %123, i64 %124
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %125, ptr align 8 %31, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  br label %140

126:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #5
  %127 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %128 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %129 = extractvalue { double, double } %127, 0
  store double %129, ptr %128, align 8
  %130 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %131 = extractvalue { double, double } %127, 1
  store double %131, ptr %130, align 8
  %132 = load ptr, ptr %13, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %132, i32 0, i32 6
  %134 = load ptr, ptr %133, align 8, !tbaa !11
  %135 = load i64, ptr %27, align 8, !tbaa !9
  %136 = getelementptr inbounds ptr, ptr %134, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = load i64, ptr %28, align 8, !tbaa !9
  %139 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %137, i64 %138
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %139, ptr align 8 %32, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #5
  br label %140

140:                                              ; preds = %126, %112
  br label %141

141:                                              ; preds = %140
  %142 = load i64, ptr %28, align 8, !tbaa !9
  %143 = add nsw i64 %142, 1
  store i64 %143, ptr %28, align 8, !tbaa !9
  br label %103, !llvm.loop !15

144:                                              ; preds = %103
  br label %145

145:                                              ; preds = %144
  %146 = load i64, ptr %27, align 8, !tbaa !9
  %147 = add nsw i64 %146, 1
  store i64 %147, ptr %27, align 8, !tbaa !9
  br label %97, !llvm.loop !17

148:                                              ; preds = %97
  %149 = load i64, ptr %29, align 8, !tbaa !9
  %150 = load i64, ptr %20, align 8, !tbaa !9
  %151 = load i64, ptr %29, align 8, !tbaa !9
  %152 = sdiv i64 %150, %151
  %153 = mul nsw i64 %149, %152
  store i64 %153, ptr %24, align 8, !tbaa !9
  %154 = load i64, ptr %20, align 8, !tbaa !9
  %155 = load i64, ptr %24, align 8, !tbaa !9
  %156 = sub nsw i64 %154, %155
  store i64 %156, ptr %25, align 8, !tbaa !9
  br label %157

157:                                              ; preds = %325, %148
  %158 = load i64, ptr %24, align 8, !tbaa !9
  %159 = icmp sge i64 %158, 0
  br i1 %159, label %160, label %330

160:                                              ; preds = %157
  %161 = load i64, ptr %10, align 8, !tbaa !9
  %162 = load i64, ptr %24, align 8, !tbaa !9
  %163 = sub nsw i64 %161, %162
  store i64 %163, ptr %26, align 8, !tbaa !9
  %164 = load i64, ptr %25, align 8, !tbaa !9
  %165 = icmp sgt i64 %164, 0
  br i1 %165, label %166, label %325

166:                                              ; preds = %160
  %167 = load i64, ptr %25, align 8, !tbaa !9
  %168 = load i64, ptr %26, align 8, !tbaa !9
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = load i64, ptr %24, align 8, !tbaa !9
  %171 = load i64, ptr %24, align 8, !tbaa !9
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11cmatrixcopyEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %167, i64 noundef %168, ptr noundef %169, i64 noundef %170, i64 noundef %171, ptr noundef %21, i64 noundef 0, i64 noundef 0, ptr noundef %172)
  %173 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %174 = load ptr, ptr %173, align 8, !tbaa !11
  %175 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %174, i64 0
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %176, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !11
  %179 = load i64, ptr %24, align 8, !tbaa !9
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %178, i64 %179
  %181 = load i64, ptr %25, align 8, !tbaa !9
  %182 = sub nsw i64 %181, 1
  %183 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %182)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %175, i64 noundef 1, ptr noundef %180, i64 noundef 1, ptr noundef @.str.200, i64 noundef %183)
  %184 = load i64, ptr %12, align 8, !tbaa !9
  %185 = load i64, ptr %29, align 8, !tbaa !9
  %186 = mul nsw i64 2, %185
  %187 = icmp sge i64 %184, %186
  br i1 %187, label %188, label %264

188:                                              ; preds = %166
  %189 = load i64, ptr %26, align 8, !tbaa !9
  %190 = load i64, ptr %25, align 8, !tbaa !9
  %191 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL28ortfac_cmatrixblockreflectorEPNS_9ae_matrixEPNS_9ae_vectorEbllS1_S3_PNS_8ae_stateE(ptr noundef %21, ptr noundef %18, i1 noundef zeroext false, i64 noundef %189, i64 noundef %190, ptr noundef %22, ptr noundef %16, ptr noundef %191)
  %192 = load i64, ptr %12, align 8, !tbaa !9
  %193 = load i64, ptr %25, align 8, !tbaa !9
  %194 = load i64, ptr %26, align 8, !tbaa !9
  %195 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %196 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %197 = extractvalue { double, double } %195, 0
  store double %197, ptr %196, align 8
  %198 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %199 = extractvalue { double, double } %195, 1
  store double %199, ptr %198, align 8
  %200 = load ptr, ptr %13, align 8, !tbaa !5
  %201 = load i64, ptr %24, align 8, !tbaa !9
  %202 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 0.000000e+00)
  %203 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %204 = extractvalue { double, double } %202, 0
  store double %204, ptr %203, align 8
  %205 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %206 = extractvalue { double, double } %202, 1
  store double %206, ptr %205, align 8
  %207 = load ptr, ptr %14, align 8, !tbaa !5
  %208 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %209 = load double, ptr %208, align 8
  %210 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %211 = load double, ptr %210, align 8
  %212 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %213 = load double, ptr %212, align 8
  %214 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %215 = load double, ptr %214, align 8
  call void @_ZN11alglib_impl11cmatrixgemmElllNS_10ae_complexEPNS_9ae_matrixElllS2_lllS0_S2_llPNS_8ae_stateE(i64 noundef %192, i64 noundef %193, i64 noundef %194, double %209, double %211, ptr noundef %200, i64 noundef 0, i64 noundef %201, i64 noundef 0, ptr noundef %21, i64 noundef 0, i64 noundef 0, i64 noundef 2, double %213, double %215, ptr noundef %23, i64 noundef 0, i64 noundef 0, ptr noundef %207)
  %216 = load i64, ptr %12, align 8, !tbaa !9
  %217 = load i64, ptr %25, align 8, !tbaa !9
  %218 = load i64, ptr %25, align 8, !tbaa !9
  %219 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %220 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %221 = extractvalue { double, double } %219, 0
  store double %221, ptr %220, align 8
  %222 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %223 = extractvalue { double, double } %219, 1
  store double %223, ptr %222, align 8
  %224 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 0.000000e+00)
  %225 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %226 = extractvalue { double, double } %224, 0
  store double %226, ptr %225, align 8
  %227 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %228 = extractvalue { double, double } %224, 1
  store double %228, ptr %227, align 8
  %229 = load i64, ptr %25, align 8, !tbaa !9
  %230 = load ptr, ptr %14, align 8, !tbaa !5
  %231 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %232 = load double, ptr %231, align 8
  %233 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %234 = load double, ptr %233, align 8
  %235 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %236 = load double, ptr %235, align 8
  %237 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %238 = load double, ptr %237, align 8
  call void @_ZN11alglib_impl11cmatrixgemmElllNS_10ae_complexEPNS_9ae_matrixElllS2_lllS0_S2_llPNS_8ae_stateE(i64 noundef %216, i64 noundef %217, i64 noundef %218, double %232, double %234, ptr noundef %23, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %22, i64 noundef 0, i64 noundef 0, i64 noundef 2, double %236, double %238, ptr noundef %23, i64 noundef 0, i64 noundef %229, ptr noundef %230)
  %239 = load i64, ptr %12, align 8, !tbaa !9
  %240 = load i64, ptr %26, align 8, !tbaa !9
  %241 = load i64, ptr %25, align 8, !tbaa !9
  %242 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %243 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %244 = extractvalue { double, double } %242, 0
  store double %244, ptr %243, align 8
  %245 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %246 = extractvalue { double, double } %242, 1
  store double %246, ptr %245, align 8
  %247 = load i64, ptr %25, align 8, !tbaa !9
  %248 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %249 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %250 = extractvalue { double, double } %248, 0
  store double %250, ptr %249, align 8
  %251 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %252 = extractvalue { double, double } %248, 1
  store double %252, ptr %251, align 8
  %253 = load ptr, ptr %13, align 8, !tbaa !5
  %254 = load i64, ptr %24, align 8, !tbaa !9
  %255 = load ptr, ptr %14, align 8, !tbaa !5
  %256 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %257 = load double, ptr %256, align 8
  %258 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %259 = load double, ptr %258, align 8
  %260 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %261 = load double, ptr %260, align 8
  %262 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %263 = load double, ptr %262, align 8
  call void @_ZN11alglib_impl11cmatrixgemmElllNS_10ae_complexEPNS_9ae_matrixElllS2_lllS0_S2_llPNS_8ae_stateE(i64 noundef %239, i64 noundef %240, i64 noundef %241, double %257, double %259, ptr noundef %23, i64 noundef 0, i64 noundef %247, i64 noundef 0, ptr noundef %21, i64 noundef 0, i64 noundef 0, i64 noundef 0, double %261, double %263, ptr noundef %253, i64 noundef 0, i64 noundef %254, ptr noundef %255)
  br label %324

264:                                              ; preds = %166
  %265 = load i64, ptr %25, align 8, !tbaa !9
  %266 = sub nsw i64 %265, 1
  store i64 %266, ptr %27, align 8, !tbaa !9
  br label %267

267:                                              ; preds = %320, %264
  %268 = load i64, ptr %27, align 8, !tbaa !9
  %269 = icmp sge i64 %268, 0
  br i1 %269, label %270, label %323

270:                                              ; preds = %267
  %271 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %272 = load ptr, ptr %271, align 8, !tbaa !11
  %273 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %272, i64 1
  %274 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %275 = load ptr, ptr %274, align 8, !tbaa !11
  %276 = load i64, ptr %27, align 8, !tbaa !9
  %277 = getelementptr inbounds ptr, ptr %275, i64 %276
  %278 = load ptr, ptr %277, align 8, !tbaa !5
  %279 = load i64, ptr %27, align 8, !tbaa !9
  %280 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %278, i64 %279
  %281 = load i64, ptr %26, align 8, !tbaa !9
  %282 = load i64, ptr %27, align 8, !tbaa !9
  %283 = sub nsw i64 %281, %282
  %284 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %283)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %273, i64 noundef 1, ptr noundef %280, i64 noundef 1, ptr noundef @.str.201, i64 noundef %284)
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #5
  %285 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %286 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %287 = extractvalue { double, double } %285, 0
  store double %287, ptr %286, align 8
  %288 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %289 = extractvalue { double, double } %285, 1
  store double %289, ptr %288, align 8
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %291 = load ptr, ptr %290, align 8, !tbaa !11
  %292 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %291, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %292, ptr align 8 %39, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #5
  %293 = load ptr, ptr %13, align 8, !tbaa !5
  %294 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %295 = load ptr, ptr %294, align 8, !tbaa !11
  %296 = load i64, ptr %27, align 8, !tbaa !9
  %297 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %295, i64 %296
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %297, i64 16, i1 false), !tbaa.struct !12
  %298 = load ptr, ptr %14, align 8, !tbaa !5
  %299 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %300 = load double, ptr %299, align 8
  %301 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %302 = load double, ptr %301, align 8
  %303 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %300, double %302, ptr noundef %298)
  %304 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %305 = extractvalue { double, double } %303, 0
  store double %305, ptr %304, align 8
  %306 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %307 = extractvalue { double, double } %303, 1
  store double %307, ptr %306, align 8
  %308 = load i64, ptr %12, align 8, !tbaa !9
  %309 = sub nsw i64 %308, 1
  %310 = load i64, ptr %24, align 8, !tbaa !9
  %311 = load i64, ptr %27, align 8, !tbaa !9
  %312 = add nsw i64 %310, %311
  %313 = load i64, ptr %10, align 8, !tbaa !9
  %314 = sub nsw i64 %313, 1
  %315 = load ptr, ptr %14, align 8, !tbaa !5
  %316 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %317 = load double, ptr %316, align 8
  %318 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %319 = load double, ptr %318, align 8
  call void @_ZN11alglib_impl34complexapplyreflectionfromtherightEPNS_9ae_matrixENS_10ae_complexEPNS_9ae_vectorEllllS4_PNS_8ae_stateE(ptr noundef %293, double %317, double %319, ptr noundef %17, i64 noundef 0, i64 noundef %309, i64 noundef %312, i64 noundef %314, ptr noundef %16, ptr noundef %315)
  br label %320

320:                                              ; preds = %270
  %321 = load i64, ptr %27, align 8, !tbaa !9
  %322 = add nsw i64 %321, -1
  store i64 %322, ptr %27, align 8, !tbaa !9
  br label %267, !llvm.loop !18

323:                                              ; preds = %267
  br label %324

324:                                              ; preds = %323, %188
  br label %325

325:                                              ; preds = %324, %160
  %326 = load i64, ptr %24, align 8, !tbaa !9
  %327 = load i64, ptr %29, align 8, !tbaa !9
  %328 = sub nsw i64 %326, %327
  store i64 %328, ptr %24, align 8, !tbaa !9
  %329 = load i64, ptr %29, align 8, !tbaa !9
  store i64 %329, ptr %25, align 8, !tbaa !9
  br label %157, !llvm.loop !19

330:                                              ; preds = %157
  %331 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %331)
  store i32 0, ptr %30, align 4
  br label %332

332:                                              ; preds = %330, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  %333 = load i32, ptr %30, align 4
  switch i32 %333, label %335 [
    i32 0, label %334
    i32 1, label %334
  ]

334:                                              ; preds = %332, %332
  ret void

335:                                              ; preds = %332
  unreachable
}

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #4

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #4

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

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

declare noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef) #4

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

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #4

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL28ortfac_cmatrixblockreflectorEPNS_9ae_matrixEPNS_9ae_vectorEbllS1_S3_PNS_8ae_stateE(ptr noundef, ptr noundef, i1 noundef zeroext, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 = !{!7, !7, i64 0}
!12 = !{i64 0, i64 8, !13, i64 8, i64 8, !13}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.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 }
%"struct.alglib_impl::ae_complex" = type { double, double }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11cmatrixcopyEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11cmatrixgemmElllNS_10ae_complexEPNS_9ae_matrixElllS2_lllS0_S2_llPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, double, double, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, double, double, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16cmatrixlqunpackqEPNS_9ae_matrixEllPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr nocapture noundef readonly %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #2 {
  %8 = alloca %"struct.alglib_impl::ae_frame", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %14 = alloca %"struct.alglib_impl::ae_matrix", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #4
  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) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @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(80) %12, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %13, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %14, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %5)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, 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 %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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %6, i1 noundef zeroext true)
  %15 = icmp slt i64 %1, 1
  %16 = icmp slt i64 %2, 1
  %or.cond = or i1 %15, %16
  br i1 %or.cond, label %._crit_edge, label %17

17:                                               ; preds = %7
  %18 = call noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef %6)
  %19 = sdiv i64 %18, 2
  %20 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef %2, ptr noundef %6)
  %21 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %20, i64 noundef %4, ptr noundef %6)
  %22 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef %2, ptr noundef %6)
  %23 = add nsw i64 %22, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %23, ptr noundef %6)
  %24 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef %2, ptr noundef %6)
  %25 = add nsw i64 %24, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %25, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %20, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %19, i64 noundef %2, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %19, i64 noundef %19, ptr noundef %6)
  %26 = shl nsw i64 %19, 1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %4, i64 noundef %26, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %4, i64 noundef %2, ptr noundef %6)
  %.not.not145 = icmp sgt i64 %4, 0
  br i1 %.not.not145, label %.preheader142.us.preheader, label %._crit_edge147

.preheader142.us.preheader:                       ; preds = %17
  %27 = getelementptr inbounds i8, ptr %5, i64 72
  br label %.preheader142.us

.preheader142.us:                                 ; preds = %.preheader142.us.preheader, %._crit_edge.us
  %.0135146.us = phi i64 [ %38, %._crit_edge.us ], [ 0, %.preheader142.us.preheader ]
  br label %28

28:                                               ; preds = %.preheader142.us, %28
  %.0136144.us = phi i64 [ 0, %.preheader142.us ], [ %37, %28 ]
  %29 = icmp eq i64 %.0135146.us, %.0136144.us
  %. = zext i1 %29 to i64
  %30 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef %.)
  %31 = extractvalue { double, double } %30, 0
  %32 = extractvalue { double, double } %30, 1
  %33 = load ptr, ptr %27, align 8, !tbaa !5
  %34 = getelementptr inbounds ptr, ptr %33, i64 %.0135146.us
  %35 = load ptr, ptr %34, align 8, !tbaa !8
  %36 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %35, i64 %.0136144.us
  store double %31, ptr %36, align 8, !tbaa !10
  %.sroa.420.0..sroa_idx.us = getelementptr inbounds i8, ptr %36, i64 8
  store double %32, ptr %.sroa.420.0..sroa_idx.us, align 8, !tbaa !10
  %37 = add nuw nsw i64 %.0136144.us, 1
  %exitcond.not = icmp eq i64 %37, %2
  br i1 %exitcond.not, label %._crit_edge.us, label %28, !llvm.loop !12

._crit_edge.us:                                   ; preds = %28
  %38 = add nuw nsw i64 %.0135146.us, 1
  %exitcond155.not = icmp eq i64 %38, %4
  br i1 %exitcond155.not, label %._crit_edge147, label %.preheader142.us, !llvm.loop !14

._crit_edge147:                                   ; preds = %._crit_edge.us, %17
  %39 = add nsw i64 %4, -1
  %40 = srem i64 %21, %19
  %41 = sub nsw i64 %21, %40
  %42 = icmp sgt i64 %41, -1
  br i1 %42, label %.lr.ph152, label %._crit_edge

.lr.ph152:                                        ; preds = %._crit_edge147
  %43 = getelementptr inbounds i8, ptr %11, i64 56
  %44 = getelementptr inbounds i8, ptr %3, i64 56
  %.not = icmp sgt i64 %26, %4
  %45 = getelementptr inbounds i8, ptr %10, i64 56
  %46 = getelementptr inbounds i8, ptr %12, i64 72
  %47 = add nsw i64 %2, -1
  br i1 %.not, label %.lr.ph152.split.us, label %.lr.ph152.split.preheader

.lr.ph152.split.preheader:                        ; preds = %.lr.ph152
  %48 = icmp sgt i64 %40, 0
  br i1 %48, label %49, label %74

49:                                               ; preds = %.lr.ph152.split.preheader
  %50 = sub nsw i64 %2, %41
  call void @_ZN11alglib_impl11cmatrixcopyEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %40, i64 noundef %50, ptr noundef %0, i64 noundef %41, i64 noundef %41, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  %51 = load ptr, ptr %43, align 8, !tbaa !5
  %52 = load ptr, ptr %44, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %52, i64 %41
  %54 = add nsw i64 %40, -1
  %55 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %54)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %51, i64 noundef 1, ptr noundef %53, i64 noundef 1, ptr noundef nonnull @.str.200, i64 noundef %55)
  call void @_ZN11alglib_implL28ortfac_cmatrixblockreflectorEPNS_9ae_matrixEPNS_9ae_vectorEbllS1_S3_PNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef nonnull %11, i1 noundef zeroext false, i64 noundef %50, i64 noundef %40, ptr noundef nonnull %13, ptr noundef nonnull %9, ptr noundef %6)
  %56 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %57 = extractvalue { double, double } %56, 0
  %58 = extractvalue { double, double } %56, 1
  %59 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 0.000000e+00)
  %60 = extractvalue { double, double } %59, 0
  %61 = extractvalue { double, double } %59, 1
  call void @_ZN11alglib_impl11cmatrixgemmElllNS_10ae_complexEPNS_9ae_matrixElllS2_lllS0_S2_llPNS_8ae_stateE(i64 noundef %4, i64 noundef %40, i64 noundef %50, double %57, double %58, ptr noundef %5, i64 noundef 0, i64 noundef %41, i64 noundef 0, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 2, double %60, double %61, ptr noundef nonnull %14, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  %62 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %63 = extractvalue { double, double } %62, 0
  %64 = extractvalue { double, double } %62, 1
  %65 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 0.000000e+00)
  %66 = extractvalue { double, double } %65, 0
  %67 = extractvalue { double, double } %65, 1
  call void @_ZN11alglib_impl11cmatrixgemmElllNS_10ae_complexEPNS_9ae_matrixElllS2_lllS0_S2_llPNS_8ae_stateE(i64 noundef %4, i64 noundef %40, i64 noundef %40, double %63, double %64, ptr noundef nonnull %14, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 2, double %66, double %67, ptr noundef nonnull %14, i64 noundef 0, i64 noundef %40, ptr noundef %6)
  %68 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %69 = extractvalue { double, double } %68, 0
  %70 = extractvalue { double, double } %68, 1
  %71 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %72 = extractvalue { double, double } %71, 0
  %73 = extractvalue { double, double } %71, 1
  call void @_ZN11alglib_impl11cmatrixgemmElllNS_10ae_complexEPNS_9ae_matrixElllS2_lllS0_S2_llPNS_8ae_stateE(i64 noundef %4, i64 noundef %50, i64 noundef %40, double %69, double %70, ptr noundef nonnull %14, i64 noundef 0, i64 noundef %40, i64 noundef 0, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, double %72, double %73, ptr noundef %5, i64 noundef 0, i64 noundef %41, ptr noundef %6)
  br label %74

74:                                               ; preds = %49, %.lr.ph152.split.preheader
  %75 = sub nsw i64 %41, %19
  %76 = icmp sgt i64 %75, -1
  br i1 %76, label %.lr.ph152.split.peel.next, label %._crit_edge

.lr.ph152.split.peel.next:                        ; preds = %74
  %77 = icmp sgt i64 %18, 1
  %78 = add nsw i64 %19, -1
  br label %.lr.ph152.split

.lr.ph152.split.us:                               ; preds = %.lr.ph152, %.loopexit.us
  %.0150.us = phi i64 [ %86, %.loopexit.us ], [ %41, %.lr.ph152 ]
  %.0134149.us = phi i64 [ %19, %.loopexit.us ], [ %40, %.lr.ph152 ]
  %79 = sub nsw i64 %2, %.0150.us
  %80 = icmp sgt i64 %.0134149.us, 0
  br i1 %80, label %.lr.ph.us.preheader, label %.loopexit.us

.lr.ph.us.preheader:                              ; preds = %.lr.ph152.split.us
  call void @_ZN11alglib_impl11cmatrixcopyEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %.0134149.us, i64 noundef %79, ptr noundef %0, i64 noundef %.0150.us, i64 noundef %.0150.us, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  %81 = load ptr, ptr %43, align 8, !tbaa !5
  %82 = load ptr, ptr %44, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %82, i64 %.0150.us
  %84 = add nsw i64 %.0134149.us, -1
  %85 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %84)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %81, i64 noundef 1, ptr noundef %83, i64 noundef 1, ptr noundef nonnull @.str.200, i64 noundef %85)
  br label %.lr.ph.us

.loopexit.us:                                     ; preds = %.lr.ph.us, %.lr.ph152.split.us
  %86 = sub nsw i64 %.0150.us, %19
  %87 = icmp sgt i64 %86, -1
  br i1 %87, label %.lr.ph152.split.us, label %._crit_edge, !llvm.loop !15

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %.lr.ph.us
  %.1148.us = phi i64 [ %107, %.lr.ph.us ], [ %84, %.lr.ph.us.preheader ]
  %88 = load ptr, ptr %45, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 16
  %90 = load ptr, ptr %46, align 8, !tbaa !5
  %91 = getelementptr inbounds ptr, ptr %90, i64 %.1148.us
  %92 = load ptr, ptr %91, align 8, !tbaa !8
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %92, i64 %.1148.us
  %94 = sub nsw i64 %79, %.1148.us
  %95 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %94)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef nonnull %89, i64 noundef 1, ptr noundef %93, i64 noundef 1, ptr noundef nonnull @.str.201, i64 noundef %95)
  %96 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %97 = extractvalue { double, double } %96, 0
  %98 = extractvalue { double, double } %96, 1
  %99 = load ptr, ptr %45, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %99, i64 16
  store double %97, ptr %100, align 8, !tbaa !10
  %.sroa.4.0..sroa_idx.us = getelementptr inbounds i8, ptr %99, i64 24
  store double %98, ptr %.sroa.4.0..sroa_idx.us, align 8, !tbaa !10
  %101 = load ptr, ptr %43, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %101, i64 %.1148.us
  %.sroa.0.0.copyload.us = load double, ptr %102, align 8, !tbaa !10
  %.sroa.2.0..sroa_idx.us = getelementptr inbounds i8, ptr %102, i64 8
  %.sroa.2.0.copyload.us = load double, ptr %.sroa.2.0..sroa_idx.us, align 8, !tbaa !10
  %103 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %.sroa.0.0.copyload.us, double %.sroa.2.0.copyload.us, ptr noundef %6)
  %104 = extractvalue { double, double } %103, 0
  %105 = extractvalue { double, double } %103, 1
  %106 = add nuw nsw i64 %.1148.us, %.0150.us
  call void @_ZN11alglib_impl34complexapplyreflectionfromtherightEPNS_9ae_matrixENS_10ae_complexEPNS_9ae_vectorEllllS4_PNS_8ae_stateE(ptr noundef %5, double %104, double %105, ptr noundef nonnull %10, i64 noundef 0, i64 noundef %39, i64 noundef %106, i64 noundef %47, ptr noundef nonnull %9, ptr noundef %6)
  %107 = add nsw i64 %.1148.us, -1
  %.not166 = icmp eq i64 %.1148.us, 0
  br i1 %.not166, label %.loopexit.us, label %.lr.ph.us, !llvm.loop !16

.lr.ph152.split:                                  ; preds = %.lr.ph152.split.peel.next, %132
  %.0150 = phi i64 [ %133, %132 ], [ %75, %.lr.ph152.split.peel.next ]
  br i1 %77, label %108, label %132

108:                                              ; preds = %.lr.ph152.split
  %109 = sub nsw i64 %2, %.0150
  call void @_ZN11alglib_impl11cmatrixcopyEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %19, i64 noundef %109, ptr noundef %0, i64 noundef %.0150, i64 noundef %.0150, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  %110 = load ptr, ptr %43, align 8, !tbaa !5
  %111 = load ptr, ptr %44, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %111, i64 %.0150
  %113 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %78)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %110, i64 noundef 1, ptr noundef %112, i64 noundef 1, ptr noundef nonnull @.str.200, i64 noundef %113)
  call void @_ZN11alglib_implL28ortfac_cmatrixblockreflectorEPNS_9ae_matrixEPNS_9ae_vectorEbllS1_S3_PNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef nonnull %11, i1 noundef zeroext false, i64 noundef %109, i64 noundef %19, ptr noundef nonnull %13, ptr noundef nonnull %9, ptr noundef %6)
  %114 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %115 = extractvalue { double, double } %114, 0
  %116 = extractvalue { double, double } %114, 1
  %117 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 0.000000e+00)
  %118 = extractvalue { double, double } %117, 0
  %119 = extractvalue { double, double } %117, 1
  call void @_ZN11alglib_impl11cmatrixgemmElllNS_10ae_complexEPNS_9ae_matrixElllS2_lllS0_S2_llPNS_8ae_stateE(i64 noundef %4, i64 noundef %19, i64 noundef %109, double %115, double %116, ptr noundef %5, i64 noundef 0, i64 noundef %.0150, i64 noundef 0, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 2, double %118, double %119, ptr noundef nonnull %14, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  %120 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %121 = extractvalue { double, double } %120, 0
  %122 = extractvalue { double, double } %120, 1
  %123 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 0.000000e+00)
  %124 = extractvalue { double, double } %123, 0
  %125 = extractvalue { double, double } %123, 1
  call void @_ZN11alglib_impl11cmatrixgemmElllNS_10ae_complexEPNS_9ae_matrixElllS2_lllS0_S2_llPNS_8ae_stateE(i64 noundef %4, i64 noundef %19, i64 noundef %19, double %121, double %122, ptr noundef nonnull %14, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 2, double %124, double %125, ptr noundef nonnull %14, i64 noundef 0, i64 noundef %19, ptr noundef %6)
  %126 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %127 = extractvalue { double, double } %126, 0
  %128 = extractvalue { double, double } %126, 1
  %129 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %130 = extractvalue { double, double } %129, 0
  %131 = extractvalue { double, double } %129, 1
  call void @_ZN11alglib_impl11cmatrixgemmElllNS_10ae_complexEPNS_9ae_matrixElllS2_lllS0_S2_llPNS_8ae_stateE(i64 noundef %4, i64 noundef %109, i64 noundef %19, double %127, double %128, ptr noundef nonnull %14, i64 noundef 0, i64 noundef %19, i64 noundef 0, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, double %130, double %131, ptr noundef %5, i64 noundef 0, i64 noundef %.0150, ptr noundef %6)
  br label %132

132:                                              ; preds = %108, %.lr.ph152.split
  %133 = sub nsw i64 %.0150, %19
  %134 = icmp sgt i64 %133, -1
  br i1 %134, label %.lr.ph152.split, label %._crit_edge, !llvm.loop !17

._crit_edge:                                      ; preds = %132, %.loopexit.us, %._crit_edge147, %74, %7
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  ret void
}

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

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

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

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

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

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL28ortfac_cmatrixblockreflectorEPNS_9ae_matrixEPNS_9ae_vectorEbllS1_S3_PNS_8ae_stateE(ptr noundef, ptr noundef, i1 noundef zeroext, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !11, i64 0}
!11 = !{!"double", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13, !18}
!18 = !{!"llvm.loop.peeled.count", i32 1}


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