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

@.str.200 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZN11alglib_implL30ablas_blas2minvendorkernelsizeE = external hidden global i64, align 8
@.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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9cmatrixmvEllPNS_9ae_matrixElllPNS_9ae_vectorElS3_lPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, ptr noundef %10) #1 {
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca %"struct.alglib_impl::ae_complex", align 8
  %25 = alloca i32, align 4
  %26 = alloca %"struct.alglib_impl::ae_complex", align 8
  %27 = alloca %"struct.alglib_impl::ae_complex", align 8
  %28 = alloca %"struct.alglib_impl::ae_complex", align 8
  %29 = alloca %"struct.alglib_impl::ae_complex", align 8
  %30 = alloca %"struct.alglib_impl::ae_complex", align 8
  %31 = alloca %"struct.alglib_impl::ae_complex", align 8
  store i64 %0, ptr %12, align 8, !tbaa !5
  store i64 %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !9
  store i64 %3, ptr %15, align 8, !tbaa !5
  store i64 %4, ptr %16, align 8, !tbaa !5
  store i64 %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !9
  store i64 %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !9
  store i64 %9, ptr %21, align 8, !tbaa !5
  store ptr %10, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #4
  %32 = load i64, ptr %12, align 8, !tbaa !5
  %33 = icmp eq i64 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %11
  store i32 1, ptr %25, align 4
  br label %268

35:                                               ; preds = %11
  %36 = load i64, ptr %13, align 8, !tbaa !5
  %37 = icmp eq i64 %36, 0
  br i1 %37, label %38, label %61

38:                                               ; preds = %35
  store i64 0, ptr %23, align 8, !tbaa !5
  br label %39

39:                                               ; preds = %57, %38
  %40 = load i64, ptr %23, align 8, !tbaa !5
  %41 = load i64, ptr %12, align 8, !tbaa !5
  %42 = sub nsw i64 %41, 1
  %43 = icmp sle i64 %40, %42
  br i1 %43, label %44, label %60

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #4
  %45 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %46 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %47 = extractvalue { double, double } %45, 0
  store double %47, ptr %46, align 8
  %48 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %49 = extractvalue { double, double } %45, 1
  store double %49, ptr %48, align 8
  %50 = load ptr, ptr %20, align 8, !tbaa !9
  %51 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %50, i32 0, i32 4
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = load i64, ptr %21, align 8, !tbaa !5
  %54 = load i64, ptr %23, align 8, !tbaa !5
  %55 = add nsw i64 %53, %54
  %56 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %52, i64 %55
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %56, ptr align 8 %26, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #4
  br label %57

57:                                               ; preds = %44
  %58 = load i64, ptr %23, align 8, !tbaa !5
  %59 = add nsw i64 %58, 1
  store i64 %59, ptr %23, align 8, !tbaa !5
  br label %39, !llvm.loop !15

60:                                               ; preds = %39
  store i32 1, ptr %25, align 4
  br label %268

61:                                               ; preds = %35
  %62 = load i64, ptr %12, align 8, !tbaa !5
  %63 = load i64, ptr @_ZN11alglib_implL30ablas_blas2minvendorkernelsizeE, align 8, !tbaa !5
  %64 = icmp sgt i64 %62, %63
  br i1 %64, label %65, label %84

65:                                               ; preds = %61
  %66 = load i64, ptr %13, align 8, !tbaa !5
  %67 = load i64, ptr @_ZN11alglib_implL30ablas_blas2minvendorkernelsizeE, align 8, !tbaa !5
  %68 = icmp sgt i64 %66, %67
  br i1 %68, label %69, label %84

69:                                               ; preds = %65
  %70 = load i64, ptr %12, align 8, !tbaa !5
  %71 = load i64, ptr %13, align 8, !tbaa !5
  %72 = load ptr, ptr %14, align 8, !tbaa !9
  %73 = load i64, ptr %15, align 8, !tbaa !5
  %74 = load i64, ptr %16, align 8, !tbaa !5
  %75 = load i64, ptr %17, align 8, !tbaa !5
  %76 = load ptr, ptr %18, align 8, !tbaa !9
  %77 = load i64, ptr %19, align 8, !tbaa !5
  %78 = load ptr, ptr %20, align 8, !tbaa !9
  %79 = load i64, ptr %21, align 8, !tbaa !5
  %80 = load ptr, ptr %22, align 8, !tbaa !9
  %81 = call noundef zeroext i1 @_ZN11alglib_impl12cmatrixmvmklEllPNS_9ae_matrixElllPNS_9ae_vectorElS3_lPNS_8ae_stateE(i64 noundef %70, i64 noundef %71, ptr noundef %72, i64 noundef %73, i64 noundef %74, i64 noundef %75, ptr noundef %76, i64 noundef %77, ptr noundef %78, i64 noundef %79, ptr noundef %80)
  br i1 %81, label %82, label %83

82:                                               ; preds = %69
  store i32 1, ptr %25, align 4
  br label %268

83:                                               ; preds = %69
  br label %84

84:                                               ; preds = %83, %65, %61
  %85 = load i64, ptr %17, align 8, !tbaa !5
  %86 = icmp eq i64 %85, 0
  br i1 %86, label %87, label %131

87:                                               ; preds = %84
  store i64 0, ptr %23, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %127, %87
  %89 = load i64, ptr %23, align 8, !tbaa !5
  %90 = load i64, ptr %12, align 8, !tbaa !5
  %91 = sub nsw i64 %90, 1
  %92 = icmp sle i64 %89, %91
  br i1 %92, label %93, label %130

93:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #4
  %94 = load ptr, ptr %14, align 8, !tbaa !9
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %94, i32 0, i32 6
  %96 = load ptr, ptr %95, align 8, !tbaa !11
  %97 = load i64, ptr %15, align 8, !tbaa !5
  %98 = load i64, ptr %23, align 8, !tbaa !5
  %99 = add nsw i64 %97, %98
  %100 = getelementptr inbounds ptr, ptr %96, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !9
  %102 = load i64, ptr %16, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %101, i64 %102
  %104 = load ptr, ptr %18, align 8, !tbaa !9
  %105 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %104, i32 0, i32 4
  %106 = load ptr, ptr %105, align 8, !tbaa !11
  %107 = load i64, ptr %19, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %106, i64 %107
  %109 = load i64, ptr %16, align 8, !tbaa !5
  %110 = load i64, ptr %16, align 8, !tbaa !5
  %111 = load i64, ptr %13, align 8, !tbaa !5
  %112 = add nsw i64 %110, %111
  %113 = sub nsw i64 %112, 1
  %114 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %109, i64 noundef %113)
  %115 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %103, i64 noundef 1, ptr noundef @.str.200, ptr noundef %108, i64 noundef 1, ptr noundef @.str.200, i64 noundef %114)
  %116 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %117 = extractvalue { double, double } %115, 0
  store double %117, ptr %116, align 8
  %118 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %119 = extractvalue { double, double } %115, 1
  store double %119, ptr %118, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %27, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #4
  %120 = load ptr, ptr %20, align 8, !tbaa !9
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %120, i32 0, i32 4
  %122 = load ptr, ptr %121, align 8, !tbaa !11
  %123 = load i64, ptr %21, align 8, !tbaa !5
  %124 = load i64, ptr %23, align 8, !tbaa !5
  %125 = add nsw i64 %123, %124
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %122, i64 %125
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %126, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !12
  br label %127

127:                                              ; preds = %93
  %128 = load i64, ptr %23, align 8, !tbaa !5
  %129 = add nsw i64 %128, 1
  store i64 %129, ptr %23, align 8, !tbaa !5
  br label %88, !llvm.loop !17

130:                                              ; preds = %88
  store i32 1, ptr %25, align 4
  br label %268

131:                                              ; preds = %84
  %132 = load i64, ptr %17, align 8, !tbaa !5
  %133 = icmp eq i64 %132, 1
  br i1 %133, label %134, label %199

134:                                              ; preds = %131
  store i64 0, ptr %23, align 8, !tbaa !5
  br label %135

135:                                              ; preds = %153, %134
  %136 = load i64, ptr %23, align 8, !tbaa !5
  %137 = load i64, ptr %12, align 8, !tbaa !5
  %138 = sub nsw i64 %137, 1
  %139 = icmp sle i64 %136, %138
  br i1 %139, label %140, label %156

140:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #4
  %141 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %142 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %143 = extractvalue { double, double } %141, 0
  store double %143, ptr %142, align 8
  %144 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %145 = extractvalue { double, double } %141, 1
  store double %145, ptr %144, align 8
  %146 = load ptr, ptr %20, align 8, !tbaa !9
  %147 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %146, i32 0, i32 4
  %148 = load ptr, ptr %147, align 8, !tbaa !11
  %149 = load i64, ptr %21, align 8, !tbaa !5
  %150 = load i64, ptr %23, align 8, !tbaa !5
  %151 = add nsw i64 %149, %150
  %152 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %148, i64 %151
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %152, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #4
  br label %153

153:                                              ; preds = %140
  %154 = load i64, ptr %23, align 8, !tbaa !5
  %155 = add nsw i64 %154, 1
  store i64 %155, ptr %23, align 8, !tbaa !5
  br label %135, !llvm.loop !18

156:                                              ; preds = %135
  store i64 0, ptr %23, align 8, !tbaa !5
  br label %157

157:                                              ; preds = %195, %156
  %158 = load i64, ptr %23, align 8, !tbaa !5
  %159 = load i64, ptr %13, align 8, !tbaa !5
  %160 = sub nsw i64 %159, 1
  %161 = icmp sle i64 %158, %160
  br i1 %161, label %162, label %198

162:                                              ; preds = %157
  %163 = load ptr, ptr %18, align 8, !tbaa !9
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %163, i32 0, i32 4
  %165 = load ptr, ptr %164, align 8, !tbaa !11
  %166 = load i64, ptr %19, align 8, !tbaa !5
  %167 = load i64, ptr %23, align 8, !tbaa !5
  %168 = add nsw i64 %166, %167
  %169 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %165, i64 %168
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %169, i64 16, i1 false), !tbaa.struct !12
  %170 = load ptr, ptr %20, align 8, !tbaa !9
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %170, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !11
  %173 = load i64, ptr %21, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %172, i64 %173
  %175 = load ptr, ptr %14, align 8, !tbaa !9
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %175, i32 0, i32 6
  %177 = load ptr, ptr %176, align 8, !tbaa !11
  %178 = load i64, ptr %15, align 8, !tbaa !5
  %179 = load i64, ptr %23, align 8, !tbaa !5
  %180 = add nsw i64 %178, %179
  %181 = getelementptr inbounds ptr, ptr %177, i64 %180
  %182 = load ptr, ptr %181, align 8, !tbaa !9
  %183 = load i64, ptr %16, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %182, i64 %183
  %185 = load i64, ptr %21, align 8, !tbaa !5
  %186 = load i64, ptr %21, align 8, !tbaa !5
  %187 = load i64, ptr %12, align 8, !tbaa !5
  %188 = add nsw i64 %186, %187
  %189 = sub nsw i64 %188, 1
  %190 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %185, i64 noundef %189)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !12
  %191 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %192 = load double, ptr %191, align 8
  %193 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %194 = load double, ptr %193, align 8
  call void @_ZN11alglib_impl10ae_v_caddcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef %174, i64 noundef 1, ptr noundef %184, i64 noundef 1, ptr noundef @.str.200, i64 noundef %190, double %192, double %194)
  br label %195

195:                                              ; preds = %162
  %196 = load i64, ptr %23, align 8, !tbaa !5
  %197 = add nsw i64 %196, 1
  store i64 %197, ptr %23, align 8, !tbaa !5
  br label %157, !llvm.loop !19

198:                                              ; preds = %157
  store i32 1, ptr %25, align 4
  br label %268

199:                                              ; preds = %131
  %200 = load i64, ptr %17, align 8, !tbaa !5
  %201 = icmp eq i64 %200, 2
  br i1 %201, label %202, label %267

202:                                              ; preds = %199
  store i64 0, ptr %23, align 8, !tbaa !5
  br label %203

203:                                              ; preds = %221, %202
  %204 = load i64, ptr %23, align 8, !tbaa !5
  %205 = load i64, ptr %12, align 8, !tbaa !5
  %206 = sub nsw i64 %205, 1
  %207 = icmp sle i64 %204, %206
  br i1 %207, label %208, label %224

208:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #4
  %209 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %210 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %211 = extractvalue { double, double } %209, 0
  store double %211, ptr %210, align 8
  %212 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %213 = extractvalue { double, double } %209, 1
  store double %213, ptr %212, align 8
  %214 = load ptr, ptr %20, align 8, !tbaa !9
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %214, i32 0, i32 4
  %216 = load ptr, ptr %215, align 8, !tbaa !11
  %217 = load i64, ptr %21, align 8, !tbaa !5
  %218 = load i64, ptr %23, align 8, !tbaa !5
  %219 = add nsw i64 %217, %218
  %220 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %216, i64 %219
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %220, ptr align 8 %30, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #4
  br label %221

221:                                              ; preds = %208
  %222 = load i64, ptr %23, align 8, !tbaa !5
  %223 = add nsw i64 %222, 1
  store i64 %223, ptr %23, align 8, !tbaa !5
  br label %203, !llvm.loop !20

224:                                              ; preds = %203
  store i64 0, ptr %23, align 8, !tbaa !5
  br label %225

225:                                              ; preds = %263, %224
  %226 = load i64, ptr %23, align 8, !tbaa !5
  %227 = load i64, ptr %13, align 8, !tbaa !5
  %228 = sub nsw i64 %227, 1
  %229 = icmp sle i64 %226, %228
  br i1 %229, label %230, label %266

230:                                              ; preds = %225
  %231 = load ptr, ptr %18, align 8, !tbaa !9
  %232 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %231, i32 0, i32 4
  %233 = load ptr, ptr %232, align 8, !tbaa !11
  %234 = load i64, ptr %19, align 8, !tbaa !5
  %235 = load i64, ptr %23, align 8, !tbaa !5
  %236 = add nsw i64 %234, %235
  %237 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %233, i64 %236
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %237, i64 16, i1 false), !tbaa.struct !12
  %238 = load ptr, ptr %20, align 8, !tbaa !9
  %239 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %238, i32 0, i32 4
  %240 = load ptr, ptr %239, align 8, !tbaa !11
  %241 = load i64, ptr %21, align 8, !tbaa !5
  %242 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %240, i64 %241
  %243 = load ptr, ptr %14, align 8, !tbaa !9
  %244 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %243, i32 0, i32 6
  %245 = load ptr, ptr %244, align 8, !tbaa !11
  %246 = load i64, ptr %15, align 8, !tbaa !5
  %247 = load i64, ptr %23, align 8, !tbaa !5
  %248 = add nsw i64 %246, %247
  %249 = getelementptr inbounds ptr, ptr %245, i64 %248
  %250 = load ptr, ptr %249, align 8, !tbaa !9
  %251 = load i64, ptr %16, align 8, !tbaa !5
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %250, i64 %251
  %253 = load i64, ptr %21, align 8, !tbaa !5
  %254 = load i64, ptr %21, align 8, !tbaa !5
  %255 = load i64, ptr %12, align 8, !tbaa !5
  %256 = add nsw i64 %254, %255
  %257 = sub nsw i64 %256, 1
  %258 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %253, i64 noundef %257)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !12
  %259 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %260 = load double, ptr %259, align 8
  %261 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %262 = load double, ptr %261, align 8
  call void @_ZN11alglib_impl10ae_v_caddcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef %242, i64 noundef 1, ptr noundef %252, i64 noundef 1, ptr noundef @.str.201, i64 noundef %258, double %260, double %262)
  br label %263

263:                                              ; preds = %230
  %264 = load i64, ptr %23, align 8, !tbaa !5
  %265 = add nsw i64 %264, 1
  store i64 %265, ptr %23, align 8, !tbaa !5
  br label %225, !llvm.loop !21

266:                                              ; preds = %225
  store i32 1, ptr %25, align 4
  br label %268

267:                                              ; preds = %199
  store i32 0, ptr %25, align 4
  br label %268

268:                                              ; preds = %267, %266, %198, %130, %82, %60, %34
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  %269 = load i32, ptr %25, align 4
  switch i32 %269, label %271 [
    i32 0, label %270
    i32 1, label %270
  ]

270:                                              ; preds = %268, %268
  ret void

271:                                              ; preds = %268
  unreachable
}

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl12cmatrixmvmklEllPNS_9ae_matrixElllPNS_9ae_vectorElS3_lPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!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}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !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_complex" = type { double, double }

@.str.200 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZN11alglib_implL30ablas_blas2minvendorkernelsizeE = external hidden local_unnamed_addr global i64, align 8
@.str.201 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9cmatrixmvEllPNS_9ae_matrixElllPNS_9ae_vectorElS3_lPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, ptr noundef %10) local_unnamed_addr #0 {
  %12 = icmp eq i64 %0, 0
  br i1 %12, label %.loopexit, label %13

13:                                               ; preds = %11
  %14 = icmp eq i64 %1, 0
  br i1 %14, label %.preheader, label %24

.preheader:                                       ; preds = %13
  %.not.not104127 = icmp sgt i64 %0, 0
  br i1 %.not.not104127, label %.lr.ph129, label %.loopexit

.lr.ph129:                                        ; preds = %.preheader
  %15 = getelementptr inbounds i8, ptr %8, i64 56
  br label %16

16:                                               ; preds = %.lr.ph129, %16
  %.0128 = phi i64 [ 0, %.lr.ph129 ], [ %23, %16 ]
  %17 = tail call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %18 = extractvalue { double, double } %17, 0
  %19 = extractvalue { double, double } %17, 1
  %20 = load ptr, ptr %15, align 8, !tbaa !5
  %21 = getelementptr %"struct.alglib_impl::ae_complex", ptr %20, i64 %.0128
  %22 = getelementptr %"struct.alglib_impl::ae_complex", ptr %21, i64 %9
  store double %18, ptr %22, align 8, !tbaa !8
  %.sroa.49.0..sroa_idx = getelementptr inbounds i8, ptr %22, i64 8
  store double %19, ptr %.sroa.49.0..sroa_idx, align 8, !tbaa !8
  %23 = add nuw nsw i64 %.0128, 1
  %exitcond137.not = icmp eq i64 %23, %0
  br i1 %exitcond137.not, label %.loopexit, label %16, !llvm.loop !10

24:                                               ; preds = %13
  %25 = load i64, ptr @_ZN11alglib_implL30ablas_blas2minvendorkernelsizeE, align 8, !tbaa !12
  %26 = icmp slt i64 %25, %0
  %27 = icmp slt i64 %25, %1
  %or.cond = and i1 %26, %27
  br i1 %or.cond, label %28, label %30

28:                                               ; preds = %24
  %29 = tail call noundef zeroext i1 @_ZN11alglib_impl12cmatrixmvmklEllPNS_9ae_matrixElllPNS_9ae_vectorElS3_lPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, ptr noundef %10)
  br i1 %29, label %.loopexit, label %30

30:                                               ; preds = %28, %24
  switch i64 %5, label %.loopexit [
    i64 0, label %.preheader105
    i64 1, label %.preheader109
    i64 2, label %.preheader112
  ]

.preheader112:                                    ; preds = %30
  %.not.not113 = icmp sgt i64 %0, 0
  br i1 %.not.not113, label %.lr.ph, label %.preheader110

.lr.ph:                                           ; preds = %.preheader112
  %31 = getelementptr inbounds i8, ptr %8, i64 56
  br label %85

.preheader109:                                    ; preds = %30
  %.not.not101118 = icmp sgt i64 %0, 0
  br i1 %.not.not101118, label %.lr.ph120, label %.preheader107

.lr.ph120:                                        ; preds = %.preheader109
  %32 = getelementptr inbounds i8, ptr %8, i64 56
  br label %59

.preheader105:                                    ; preds = %30
  %.not.not103124 = icmp sgt i64 %0, 0
  br i1 %.not.not103124, label %.lr.ph126, label %.loopexit

.lr.ph126:                                        ; preds = %.preheader105
  %33 = getelementptr inbounds i8, ptr %2, i64 72
  %34 = getelementptr inbounds i8, ptr %6, i64 56
  %35 = add i64 %1, -1
  %36 = add i64 %35, %4
  %37 = getelementptr inbounds i8, ptr %8, i64 56
  br label %38

38:                                               ; preds = %.lr.ph126, %38
  %.1125 = phi i64 [ 0, %.lr.ph126 ], [ %53, %38 ]
  %39 = load ptr, ptr %33, align 8, !tbaa !5
  %40 = getelementptr ptr, ptr %39, i64 %.1125
  %41 = getelementptr ptr, ptr %40, i64 %3
  %42 = load ptr, ptr %41, align 8, !tbaa !14
  %43 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %42, i64 %4
  %44 = load ptr, ptr %34, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %44, i64 %7
  %46 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %4, i64 noundef %36)
  %47 = tail call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %43, i64 noundef 1, ptr noundef nonnull @.str.200, ptr noundef %45, i64 noundef 1, ptr noundef nonnull @.str.200, i64 noundef %46)
  %48 = extractvalue { double, double } %47, 0
  %49 = extractvalue { double, double } %47, 1
  %50 = load ptr, ptr %37, align 8, !tbaa !5
  %51 = getelementptr %"struct.alglib_impl::ae_complex", ptr %50, i64 %.1125
  %52 = getelementptr %"struct.alglib_impl::ae_complex", ptr %51, i64 %9
  store double %48, ptr %52, align 8, !tbaa !8
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %52, i64 8
  store double %49, ptr %.sroa.8.0..sroa_idx, align 8, !tbaa !8
  %53 = add nuw nsw i64 %.1125, 1
  %exitcond136.not = icmp eq i64 %53, %0
  br i1 %exitcond136.not, label %.loopexit, label %38, !llvm.loop !16

.preheader107:                                    ; preds = %59, %.preheader109
  %.not.not102121 = icmp sgt i64 %1, 0
  br i1 %.not.not102121, label %.lr.ph123, label %.loopexit

.lr.ph123:                                        ; preds = %.preheader107
  %54 = getelementptr inbounds i8, ptr %6, i64 56
  %55 = getelementptr inbounds i8, ptr %8, i64 56
  %56 = getelementptr inbounds i8, ptr %2, i64 72
  %57 = add i64 %0, -1
  %58 = add i64 %57, %9
  br label %67

59:                                               ; preds = %.lr.ph120, %59
  %.2119 = phi i64 [ 0, %.lr.ph120 ], [ %66, %59 ]
  %60 = tail call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %61 = extractvalue { double, double } %60, 0
  %62 = extractvalue { double, double } %60, 1
  %63 = load ptr, ptr %32, align 8, !tbaa !5
  %64 = getelementptr %"struct.alglib_impl::ae_complex", ptr %63, i64 %.2119
  %65 = getelementptr %"struct.alglib_impl::ae_complex", ptr %64, i64 %9
  store double %61, ptr %65, align 8, !tbaa !8
  %.sroa.45.0..sroa_idx = getelementptr inbounds i8, ptr %65, i64 8
  store double %62, ptr %.sroa.45.0..sroa_idx, align 8, !tbaa !8
  %66 = add nuw nsw i64 %.2119, 1
  %exitcond134.not = icmp eq i64 %66, %0
  br i1 %exitcond134.not, label %.preheader107, label %59, !llvm.loop !17

67:                                               ; preds = %.lr.ph123, %67
  %.3122 = phi i64 [ 0, %.lr.ph123 ], [ %79, %67 ]
  %68 = load ptr, ptr %54, align 8, !tbaa !5
  %69 = getelementptr %"struct.alglib_impl::ae_complex", ptr %68, i64 %.3122
  %70 = getelementptr %"struct.alglib_impl::ae_complex", ptr %69, i64 %7
  %.sroa.010.0.copyload11 = load double, ptr %70, align 8, !tbaa !8
  %.sroa.8.0..sroa_idx13 = getelementptr inbounds i8, ptr %70, i64 8
  %.sroa.8.0.copyload14 = load double, ptr %.sroa.8.0..sroa_idx13, align 8, !tbaa !8
  %71 = load ptr, ptr %55, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %71, i64 %9
  %73 = load ptr, ptr %56, align 8, !tbaa !5
  %74 = getelementptr ptr, ptr %73, i64 %.3122
  %75 = getelementptr ptr, ptr %74, i64 %3
  %76 = load ptr, ptr %75, align 8, !tbaa !14
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %76, i64 %4
  %78 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %9, i64 noundef %58)
  tail call void @_ZN11alglib_impl10ae_v_caddcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef %72, i64 noundef 1, ptr noundef %77, i64 noundef 1, ptr noundef nonnull @.str.200, i64 noundef %78, double %.sroa.010.0.copyload11, double %.sroa.8.0.copyload14)
  %79 = add nuw nsw i64 %.3122, 1
  %exitcond135.not = icmp eq i64 %79, %1
  br i1 %exitcond135.not, label %.loopexit, label %67, !llvm.loop !18

.preheader110:                                    ; preds = %85, %.preheader112
  %.not.not100115 = icmp sgt i64 %1, 0
  br i1 %.not.not100115, label %.lr.ph117, label %.loopexit

.lr.ph117:                                        ; preds = %.preheader110
  %80 = getelementptr inbounds i8, ptr %6, i64 56
  %81 = getelementptr inbounds i8, ptr %8, i64 56
  %82 = getelementptr inbounds i8, ptr %2, i64 72
  %83 = add i64 %0, -1
  %84 = add i64 %83, %9
  br label %93

85:                                               ; preds = %.lr.ph, %85
  %.4114 = phi i64 [ 0, %.lr.ph ], [ %92, %85 ]
  %86 = tail call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %87 = extractvalue { double, double } %86, 0
  %88 = extractvalue { double, double } %86, 1
  %89 = load ptr, ptr %31, align 8, !tbaa !5
  %90 = getelementptr %"struct.alglib_impl::ae_complex", ptr %89, i64 %.4114
  %91 = getelementptr %"struct.alglib_impl::ae_complex", ptr %90, i64 %9
  store double %87, ptr %91, align 8, !tbaa !8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %91, i64 8
  store double %88, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !8
  %92 = add nuw nsw i64 %.4114, 1
  %exitcond.not = icmp eq i64 %92, %0
  br i1 %exitcond.not, label %.preheader110, label %85, !llvm.loop !19

93:                                               ; preds = %.lr.ph117, %93
  %.5116 = phi i64 [ 0, %.lr.ph117 ], [ %105, %93 ]
  %94 = load ptr, ptr %80, align 8, !tbaa !5
  %95 = getelementptr %"struct.alglib_impl::ae_complex", ptr %94, i64 %.5116
  %96 = getelementptr %"struct.alglib_impl::ae_complex", ptr %95, i64 %7
  %.sroa.010.0.copyload12 = load double, ptr %96, align 8, !tbaa !8
  %.sroa.8.0..sroa_idx15 = getelementptr inbounds i8, ptr %96, i64 8
  %.sroa.8.0.copyload16 = load double, ptr %.sroa.8.0..sroa_idx15, align 8, !tbaa !8
  %97 = load ptr, ptr %81, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %97, i64 %9
  %99 = load ptr, ptr %82, align 8, !tbaa !5
  %100 = getelementptr ptr, ptr %99, i64 %.5116
  %101 = getelementptr ptr, ptr %100, i64 %3
  %102 = load ptr, ptr %101, align 8, !tbaa !14
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %102, i64 %4
  %104 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %9, i64 noundef %84)
  tail call void @_ZN11alglib_impl10ae_v_caddcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef %98, i64 noundef 1, ptr noundef %103, i64 noundef 1, ptr noundef nonnull @.str.201, i64 noundef %104, double %.sroa.010.0.copyload12, double %.sroa.8.0.copyload16)
  %105 = add nuw nsw i64 %.5116, 1
  %exitcond133.not = icmp eq i64 %105, %1
  br i1 %exitcond133.not, label %.loopexit, label %93, !llvm.loop !20

.loopexit:                                        ; preds = %93, %67, %38, %16, %.preheader110, %.preheader107, %.preheader105, %.preheader, %30, %28, %11
  ret void
}

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

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

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

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

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

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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 = !{!"double", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !6, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !6, i64 0}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass