; 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.323 = external hidden unnamed_addr constant [27 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: 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) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16cmatrixqrunpackqEPNS_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) #3 {
  %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
  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
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %41, 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)
  %42 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %42)
  %43 = 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 %43, i1 noundef zeroext true)
  %44 = 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 %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 %18, 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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, 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 %22, 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 %23, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %48, i1 noundef zeroext true)
  %49 = load i64, ptr %12, align 8, !tbaa !9
  %50 = load i64, ptr %9, align 8, !tbaa !9
  %51 = icmp sle i64 %49, %50
  %52 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %51, ptr noundef @.str.323, ptr noundef %52)
  %53 = load i64, ptr %9, align 8, !tbaa !9
  %54 = icmp sle i64 %53, 0
  br i1 %54, label %58, label %55

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

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

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

100:                                              ; preds = %148, %60
  %101 = load i64, ptr %27, align 8, !tbaa !9
  %102 = load i64, ptr %9, align 8, !tbaa !9
  %103 = sub nsw i64 %102, 1
  %104 = icmp sle i64 %101, %103
  br i1 %104, label %105, label %151

105:                                              ; preds = %100
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %106

106:                                              ; preds = %144, %105
  %107 = load i64, ptr %28, align 8, !tbaa !9
  %108 = load i64, ptr %12, align 8, !tbaa !9
  %109 = sub nsw i64 %108, 1
  %110 = icmp sle i64 %107, %109
  br i1 %110, label %111, label %147

111:                                              ; preds = %106
  %112 = load i64, ptr %27, align 8, !tbaa !9
  %113 = load i64, ptr %28, align 8, !tbaa !9
  %114 = icmp eq i64 %112, %113
  br i1 %114, label %115, label %129

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

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

143:                                              ; preds = %129, %115
  br label %144

144:                                              ; preds = %143
  %145 = load i64, ptr %28, align 8, !tbaa !9
  %146 = add nsw i64 %145, 1
  store i64 %146, ptr %28, align 8, !tbaa !9
  br label %106, !llvm.loop !15

147:                                              ; preds = %106
  br label %148

148:                                              ; preds = %147
  %149 = load i64, ptr %27, align 8, !tbaa !9
  %150 = add nsw i64 %149, 1
  store i64 %150, ptr %27, align 8, !tbaa !9
  br label %100, !llvm.loop !17

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

160:                                              ; preds = %320, %151
  %161 = load i64, ptr %24, align 8, !tbaa !9
  %162 = icmp sge i64 %161, 0
  br i1 %162, label %163, label %325

163:                                              ; preds = %160
  %164 = load i64, ptr %9, align 8, !tbaa !9
  %165 = load i64, ptr %24, align 8, !tbaa !9
  %166 = sub nsw i64 %164, %165
  store i64 %166, ptr %26, align 8, !tbaa !9
  %167 = load i64, ptr %25, align 8, !tbaa !9
  %168 = icmp sgt i64 %167, 0
  br i1 %168, label %169, label %320

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

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

267:                                              ; preds = %169
  %268 = load i64, ptr %25, align 8, !tbaa !9
  %269 = sub nsw i64 %268, 1
  store i64 %269, ptr %27, align 8, !tbaa !9
  br label %270

270:                                              ; preds = %315, %267
  %271 = load i64, ptr %27, align 8, !tbaa !9
  %272 = icmp sge i64 %271, 0
  br i1 %272, label %273, label %318

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

315:                                              ; preds = %273
  %316 = load i64, ptr %27, align 8, !tbaa !9
  %317 = add nsw i64 %316, -1
  store i64 %317, ptr %27, align 8, !tbaa !9
  br label %270, !llvm.loop !22

318:                                              ; preds = %270
  br label %319

319:                                              ; preds = %318, %191
  br label %320

320:                                              ; preds = %319, %163
  %321 = load i64, ptr %24, align 8, !tbaa !9
  %322 = load i64, ptr %29, align 8, !tbaa !9
  %323 = sub nsw i64 %321, %322
  store i64 %323, ptr %24, align 8, !tbaa !9
  %324 = load i64, ptr %29, align 8, !tbaa !9
  store i64 %324, ptr %25, align 8, !tbaa !9
  br label %160, !llvm.loop !23

325:                                              ; preds = %160
  %326 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %326)
  store i32 0, ptr %30, align 4
  br label %327

327:                                              ; preds = %325, %58
  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
  %328 = load i32, ptr %30, align 4
  switch i32 %328, label %330 [
    i32 0, label %329
    i32 1, label %329
  ]

329:                                              ; preds = %327, %327
  ret void

330:                                              ; preds = %327
  unreachable
}

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

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr 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_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #2

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

declare noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef) #2

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

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #2

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

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

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

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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!19, !10, i64 16}
!19 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !20, i64 32, !21, i64 40, !7, i64 72}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !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.323 = external hidden unnamed_addr constant [27 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 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 #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16cmatrixqrunpackqEPNS_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 #3 {
  %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 sle i64 %4, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.323, ptr noundef %6)
  %16 = icmp slt i64 %1, 1
  %17 = icmp slt i64 %2, 1
  %or.cond = or i1 %16, %17
  br i1 %or.cond, label %._crit_edge, label %18

18:                                               ; preds = %7
  %19 = call noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef %6)
  %20 = sdiv i64 %19, 2
  %21 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef %2, ptr noundef %6)
  %22 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %21, i64 noundef %4, ptr noundef %6)
  %23 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef %2, ptr noundef %6)
  %24 = add nsw i64 %23, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %24, ptr noundef %6)
  %25 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef %2, ptr noundef %6)
  %26 = add nsw i64 %25, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %26, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %21, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %1, i64 noundef %20, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %20, i64 noundef %20, ptr noundef %6)
  %27 = shl nsw i64 %20, 1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %27, i64 noundef %4, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %1, i64 noundef %4, ptr noundef %6)
  %.not142.not144 = icmp sgt i64 %4, 0
  %28 = getelementptr inbounds i8, ptr %5, i64 72
  br i1 %.not142.not144, label %.preheader143.us, label %.split148.us

.preheader143.us:                                 ; preds = %18, %._crit_edge.us
  %.0135146.us = phi i64 [ %39, %._crit_edge.us ], [ 0, %18 ]
  br label %29

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

._crit_edge.us:                                   ; preds = %29
  %39 = add nuw nsw i64 %.0135146.us, 1
  %exitcond156.not = icmp eq i64 %39, %1
  br i1 %exitcond156.not, label %.split148.us, label %.preheader143.us, !llvm.loop !14

.split148.us:                                     ; preds = %._crit_edge.us, %18
  %40 = add nsw i64 %1, -1
  %41 = srem i64 %22, %20
  %42 = sub nsw i64 %22, %41
  %43 = icmp sgt i64 %42, -1
  br i1 %43, label %.lr.ph153, label %._crit_edge

.lr.ph153:                                        ; preds = %.split148.us
  %44 = getelementptr inbounds i8, ptr %11, i64 56
  %45 = getelementptr inbounds i8, ptr %3, i64 56
  %.not = icmp sgt i64 %27, %4
  %46 = getelementptr inbounds i8, ptr %10, i64 56
  %47 = getelementptr inbounds i8, ptr %12, i64 72
  %48 = getelementptr inbounds i8, ptr %12, i64 16
  %49 = add nsw i64 %4, -1
  br i1 %.not, label %.lr.ph153.split.us, label %.lr.ph153.split.preheader

.lr.ph153.split.preheader:                        ; preds = %.lr.ph153
  %50 = icmp sgt i64 %41, 0
  br i1 %50, label %51, label %76

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

76:                                               ; preds = %51, %.lr.ph153.split.preheader
  %77 = sub nsw i64 %42, %20
  %78 = icmp sgt i64 %77, -1
  br i1 %78, label %.lr.ph153.split.peel.next, label %._crit_edge

.lr.ph153.split.peel.next:                        ; preds = %76
  %79 = icmp sgt i64 %19, 1
  %80 = add nsw i64 %20, -1
  br label %.lr.ph153.split

.lr.ph153.split.us:                               ; preds = %.lr.ph153, %.loopexit.us
  %.0151.us = phi i64 [ %88, %.loopexit.us ], [ %42, %.lr.ph153 ]
  %.0134150.us = phi i64 [ %20, %.loopexit.us ], [ %41, %.lr.ph153 ]
  %81 = sub nsw i64 %1, %.0151.us
  %82 = icmp sgt i64 %.0134150.us, 0
  br i1 %82, label %.lr.ph.us.preheader, label %.loopexit.us

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

.loopexit.us:                                     ; preds = %.lr.ph.us, %.lr.ph153.split.us
  %88 = sub nsw i64 %.0151.us, %20
  %89 = icmp sgt i64 %88, -1
  br i1 %89, label %.lr.ph153.split.us, label %._crit_edge, !llvm.loop !15

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %.lr.ph.us
  %.1149.us = phi i64 [ %107, %.lr.ph.us ], [ %86, %.lr.ph.us.preheader ]
  %90 = load ptr, ptr %46, align 8, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %90, i64 16
  %92 = load ptr, ptr %47, align 8, !tbaa !5
  %93 = getelementptr inbounds ptr, ptr %92, i64 %.1149.us
  %94 = load ptr, ptr %93, align 8, !tbaa !8
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %94, i64 %.1149.us
  %96 = load i64, ptr %48, align 8, !tbaa !16
  %97 = sub nsw i64 %81, %.1149.us
  %98 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %97)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef nonnull %91, i64 noundef 1, ptr noundef %95, i64 noundef %96, ptr noundef nonnull @.str.200, i64 noundef %98)
  %99 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %100 = extractvalue { double, double } %99, 0
  %101 = extractvalue { double, double } %99, 1
  %102 = load ptr, ptr %46, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %102, i64 16
  store double %100, ptr %103, align 8, !tbaa !10
  %.sroa.4.0..sroa_idx.us = getelementptr inbounds i8, ptr %102, i64 24
  store double %101, ptr %.sroa.4.0..sroa_idx.us, align 8, !tbaa !10
  %104 = load ptr, ptr %44, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %104, i64 %.1149.us
  %.sroa.0.0.copyload.us = load double, ptr %105, align 8, !tbaa !10
  %.sroa.2.0..sroa_idx.us = getelementptr inbounds i8, ptr %105, i64 8
  %.sroa.2.0.copyload.us = load double, ptr %.sroa.2.0..sroa_idx.us, align 8, !tbaa !10
  %106 = add nuw nsw i64 %.1149.us, %.0151.us
  call void @_ZN11alglib_impl33complexapplyreflectionfromtheleftEPNS_9ae_matrixENS_10ae_complexEPNS_9ae_vectorEllllS4_PNS_8ae_stateE(ptr noundef %5, double %.sroa.0.0.copyload.us, double %.sroa.2.0.copyload.us, ptr noundef nonnull %10, i64 noundef %106, i64 noundef %40, i64 noundef 0, i64 noundef %49, ptr noundef nonnull %9, ptr noundef %6)
  %107 = add nsw i64 %.1149.us, -1
  %.not167 = icmp eq i64 %.1149.us, 0
  br i1 %.not167, label %.loopexit.us, label %.lr.ph.us, !llvm.loop !21

.lr.ph153.split:                                  ; preds = %.lr.ph153.split.peel.next, %132
  %.0151 = phi i64 [ %133, %132 ], [ %77, %.lr.ph153.split.peel.next ]
  br i1 %79, label %108, label %132

108:                                              ; preds = %.lr.ph153.split
  %109 = sub nsw i64 %1, %.0151
  call void @_ZN11alglib_impl11cmatrixcopyEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %109, i64 noundef %20, ptr noundef %0, i64 noundef %.0151, i64 noundef %.0151, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  %110 = load ptr, ptr %44, align 8, !tbaa !5
  %111 = load ptr, ptr %45, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %111, i64 %.0151
  %113 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %80)
  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 true, i64 noundef %109, i64 noundef %20, 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 %20, i64 noundef %4, i64 noundef %109, double %115, double %116, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 2, ptr noundef %5, i64 noundef %.0151, i64 noundef 0, i64 noundef 0, 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 %20, i64 noundef %4, i64 noundef %20, double %121, double %122, ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %14, i64 noundef 0, i64 noundef 0, i64 noundef 0, double %124, double %125, ptr noundef nonnull %14, i64 noundef %20, i64 noundef 0, 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 %109, i64 noundef %4, i64 noundef %20, double %127, double %128, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %14, i64 noundef %20, i64 noundef 0, i64 noundef 0, double %130, double %131, ptr noundef %5, i64 noundef %.0151, i64 noundef 0, ptr noundef %6)
  br label %132

132:                                              ; preds = %108, %.lr.ph153.split
  %133 = sub nsw i64 %.0151, %20
  %134 = icmp sgt i64 %133, -1
  br i1 %134, label %.lr.ph153.split, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %132, %.loopexit.us, %.split148.us, %76, %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 #2

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr 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_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

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

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

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

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #2

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

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

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

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 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 #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 = !{!17, !18, i64 16}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !19, i64 32, !20, i64 40, !6, i64 72}
!18 = !{!"long", !6, i64 0}
!19 = !{!"bool", !6, i64 0}
!20 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13, !23}
!23 = !{!"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