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

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

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

@.str.200 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl18hmatrixrndmultiplyEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca %"struct.alglib_impl::ae_complex", align 8
  %9 = alloca %"struct.alglib_impl::ae_complex", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %15 = alloca %"struct.alglib_impl::ae_complex", align 8
  %16 = alloca %"struct.alglib_impl::ae_complex", align 8
  %17 = alloca %"struct.alglib_impl::ae_complex", align 8
  %18 = alloca %"struct.alglib_impl::ae_complex", align 8
  %19 = alloca %"struct.alglib_impl::ae_complex", align 8
  %20 = alloca %"struct.alglib_impl::ae_complex", align 8
  %21 = alloca %"struct.alglib_impl::ae_complex", align 8
  %22 = alloca %"struct.alglib_impl::ae_complex", align 8
  %23 = alloca %"struct.alglib_impl::ae_complex", align 8
  %24 = alloca %"struct.alglib_impl::ae_complex", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %25, ptr noundef %7)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 24, i1 false)
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %12, i64 noundef 0, i64 noundef 4, ptr noundef %26, i1 noundef zeroext true)
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %13, i64 noundef 0, i64 noundef 4, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %14, ptr noundef %28, i1 noundef zeroext true)
  %29 = load i64, ptr %5, align 8, !tbaa !9
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %29, ptr noundef %30)
  %31 = load i64, ptr %5, align 8, !tbaa !9
  %32 = add nsw i64 %31, 1
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %32, ptr noundef %33)
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %14, ptr noundef %34)
  store i64 2, ptr %10, align 8, !tbaa !9
  br label %35

35:                                               ; preds = %123, %3
  %36 = load i64, ptr %10, align 8, !tbaa !9
  %37 = load i64, ptr %5, align 8, !tbaa !9
  %38 = icmp sle i64 %36, %37
  br i1 %38, label %39, label %126

39:                                               ; preds = %35
  br label %40

40:                                               ; preds = %70, %39
  store i64 1, ptr %11, align 8, !tbaa !9
  br label %41

41:                                               ; preds = %53, %40
  %42 = load i64, ptr %11, align 8, !tbaa !9
  %43 = load i64, ptr %10, align 8, !tbaa !9
  %44 = icmp sle i64 %42, %43
  br i1 %44, label %45, label %56

45:                                               ; preds = %41
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %8, i32 0, i32 0
  %47 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %8, i32 0, i32 1
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl12hqrndnormal2EPNS_10hqrndstateEPdS2_PNS_8ae_stateE(ptr noundef %14, ptr noundef %46, ptr noundef %47, ptr noundef %48)
  %49 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !11
  %51 = load i64, ptr %11, align 8, !tbaa !9
  %52 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %50, i64 %51
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %52, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !12
  br label %53

53:                                               ; preds = %45
  %54 = load i64, ptr %11, align 8, !tbaa !9
  %55 = add nsw i64 %54, 1
  store i64 %55, ptr %11, align 8, !tbaa !9
  br label %41, !llvm.loop !15

56:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %57 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %58 = load ptr, ptr %57, align 8, !tbaa !11
  %59 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %58, i64 1
  %60 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !11
  %62 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %61, i64 1
  %63 = load i64, ptr %10, align 8, !tbaa !9
  %64 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %63)
  %65 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %59, i64 noundef 1, ptr noundef @.str.200, ptr noundef %62, i64 noundef 1, ptr noundef @.str.201, i64 noundef %64)
  %66 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %67 = extractvalue { double, double } %65, 0
  store double %67, ptr %66, align 8
  %68 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %69 = extractvalue { double, double } %65, 1
  store double %69, ptr %68, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  br label %70

70:                                               ; preds = %56
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !12
  %71 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %72 = load double, ptr %71, align 8
  %73 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %74 = load double, ptr %73, align 8
  %75 = call noundef zeroext i1 @_ZN11alglib_impl9ae_c_eq_dENS_10ae_complexEd(double %72, double %74, double noundef 0.000000e+00)
  br i1 %75, label %40, label %76, !llvm.loop !17

76:                                               ; preds = %70
  %77 = load i64, ptr %10, align 8, !tbaa !9
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl25complexgeneratereflectionEPNS_9ae_vectorElPNS_10ae_complexEPNS_8ae_stateE(ptr noundef %13, i64 noundef %77, ptr noundef %8, ptr noundef %78)
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %79 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %80 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %81 = extractvalue { double, double } %79, 0
  store double %81, ptr %80, align 8
  %82 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %83 = extractvalue { double, double } %79, 1
  store double %83, ptr %82, align 8
  %84 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %85, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %86, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !12
  %88 = load i64, ptr %5, align 8, !tbaa !9
  %89 = sub nsw i64 %88, 1
  %90 = load i64, ptr %5, align 8, !tbaa !9
  %91 = load i64, ptr %10, align 8, !tbaa !9
  %92 = sub nsw i64 %90, %91
  %93 = load i64, ptr %5, align 8, !tbaa !9
  %94 = sub nsw i64 %93, 1
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %97 = load double, ptr %96, align 8
  %98 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %99 = load double, ptr %98, align 8
  call void @_ZN11alglib_impl34complexapplyreflectionfromtherightEPNS_9ae_matrixENS_10ae_complexEPNS_9ae_vectorEllllS4_PNS_8ae_stateE(ptr noundef %87, double %97, double %99, ptr noundef %13, i64 noundef 0, i64 noundef %89, i64 noundef %92, i64 noundef %94, ptr noundef %12, ptr noundef %95)
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !12
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %103 = load double, ptr %102, align 8
  %104 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %105 = load double, ptr %104, align 8
  %106 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %103, double %105, ptr noundef %101)
  %107 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %108 = extractvalue { double, double } %106, 0
  store double %108, ptr %107, align 8
  %109 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %110 = extractvalue { double, double } %106, 1
  store double %110, ptr %109, align 8
  %111 = load i64, ptr %5, align 8, !tbaa !9
  %112 = load i64, ptr %10, align 8, !tbaa !9
  %113 = sub nsw i64 %111, %112
  %114 = load i64, ptr %5, align 8, !tbaa !9
  %115 = sub nsw i64 %114, 1
  %116 = load i64, ptr %5, align 8, !tbaa !9
  %117 = sub nsw i64 %116, 1
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %120 = load double, ptr %119, align 8
  %121 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %122 = load double, ptr %121, align 8
  call void @_ZN11alglib_impl33complexapplyreflectionfromtheleftEPNS_9ae_matrixENS_10ae_complexEPNS_9ae_vectorEllllS4_PNS_8ae_stateE(ptr noundef %100, double %120, double %122, ptr noundef %13, i64 noundef %113, i64 noundef %115, i64 noundef 0, i64 noundef %117, ptr noundef %12, ptr noundef %118)
  br label %123

123:                                              ; preds = %76
  %124 = load i64, ptr %10, align 8, !tbaa !9
  %125 = add nsw i64 %124, 1
  store i64 %125, ptr %10, align 8, !tbaa !9
  br label %35, !llvm.loop !18

126:                                              ; preds = %35
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %127

127:                                              ; preds = %177, %126
  %128 = load i64, ptr %11, align 8, !tbaa !9
  %129 = load i64, ptr %5, align 8, !tbaa !9
  %130 = sub nsw i64 %129, 1
  %131 = icmp sle i64 %128, %130
  br i1 %131, label %132, label %180

132:                                              ; preds = %127
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %8, i32 0, i32 0
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %8, i32 0, i32 1
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl10hqrndunit2EPNS_10hqrndstateEPdS2_PNS_8ae_stateE(ptr noundef %14, ptr noundef %133, ptr noundef %134, ptr noundef %135)
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %136, i32 0, i32 6
  %138 = load ptr, ptr %137, align 8, !tbaa !11
  %139 = getelementptr inbounds ptr, ptr %138, i64 0
  %140 = load ptr, ptr %139, align 8, !tbaa !5
  %141 = load i64, ptr %11, align 8, !tbaa !9
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %140, i64 %141
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %143, i32 0, i32 2
  %145 = load i64, ptr %144, align 8, !tbaa !19
  %146 = load i64, ptr %5, align 8, !tbaa !9
  %147 = sub nsw i64 %146, 1
  %148 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %147)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !12
  %149 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %150 = load double, ptr %149, align 8
  %151 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %152 = load double, ptr %151, align 8
  call void @_ZN11alglib_impl10ae_v_cmulcEPNS_10ae_complexEllS0_(ptr noundef %142, i64 noundef %145, i64 noundef %148, double %150, double %152)
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !12
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %155 = load double, ptr %154, align 8
  %156 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %157 = load double, ptr %156, align 8
  %158 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %155, double %157, ptr noundef %153)
  %159 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %160 = extractvalue { double, double } %158, 0
  store double %160, ptr %159, align 8
  %161 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %162 = extractvalue { double, double } %158, 1
  store double %162, ptr %161, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %163, i32 0, i32 6
  %165 = load ptr, ptr %164, align 8, !tbaa !11
  %166 = load i64, ptr %11, align 8, !tbaa !9
  %167 = getelementptr inbounds ptr, ptr %165, i64 %166
  %168 = load ptr, ptr %167, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %168, i64 0
  %170 = load i64, ptr %5, align 8, !tbaa !9
  %171 = sub nsw i64 %170, 1
  %172 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %171)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !12
  %173 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %174 = load double, ptr %173, align 8
  %175 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %176 = load double, ptr %175, align 8
  call void @_ZN11alglib_impl10ae_v_cmulcEPNS_10ae_complexEllS0_(ptr noundef %169, i64 noundef 1, i64 noundef %172, double %174, double %176)
  br label %177

177:                                              ; preds = %132
  %178 = load i64, ptr %11, align 8, !tbaa !9
  %179 = add nsw i64 %178, 1
  store i64 %179, ptr %11, align 8, !tbaa !9
  br label %127, !llvm.loop !23

180:                                              ; preds = %127
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %181

181:                                              ; preds = %213, %180
  %182 = load i64, ptr %11, align 8, !tbaa !9
  %183 = load i64, ptr %5, align 8, !tbaa !9
  %184 = sub nsw i64 %183, 2
  %185 = icmp sle i64 %182, %184
  br i1 %185, label %186, label %216

186:                                              ; preds = %181
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %187, i32 0, i32 6
  %189 = load ptr, ptr %188, align 8, !tbaa !11
  %190 = load i64, ptr %11, align 8, !tbaa !9
  %191 = add nsw i64 %190, 1
  %192 = getelementptr inbounds ptr, ptr %189, i64 %191
  %193 = load ptr, ptr %192, align 8, !tbaa !5
  %194 = load i64, ptr %11, align 8, !tbaa !9
  %195 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %193, i64 %194
  %196 = load ptr, ptr %4, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %196, i32 0, i32 2
  %198 = load i64, ptr %197, align 8, !tbaa !19
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %199, i32 0, i32 6
  %201 = load ptr, ptr %200, align 8, !tbaa !11
  %202 = load i64, ptr %11, align 8, !tbaa !9
  %203 = getelementptr inbounds ptr, ptr %201, i64 %202
  %204 = load ptr, ptr %203, align 8, !tbaa !5
  %205 = load i64, ptr %11, align 8, !tbaa !9
  %206 = add nsw i64 %205, 1
  %207 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %204, i64 %206
  %208 = load i64, ptr %11, align 8, !tbaa !9
  %209 = add nsw i64 %208, 1
  %210 = load i64, ptr %5, align 8, !tbaa !9
  %211 = sub nsw i64 %210, 1
  %212 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %209, i64 noundef %211)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %195, i64 noundef %198, ptr noundef %207, i64 noundef 1, ptr noundef @.str.200, i64 noundef %212)
  br label %213

213:                                              ; preds = %186
  %214 = load i64, ptr %11, align 8, !tbaa !9
  %215 = add nsw i64 %214, 1
  store i64 %215, ptr %11, align 8, !tbaa !9
  br label %181, !llvm.loop !24

216:                                              ; preds = %181
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %217

217:                                              ; preds = %255, %216
  %218 = load i64, ptr %10, align 8, !tbaa !9
  %219 = load i64, ptr %5, align 8, !tbaa !9
  %220 = sub nsw i64 %219, 2
  %221 = icmp sle i64 %218, %220
  br i1 %221, label %222, label %258

222:                                              ; preds = %217
  %223 = load i64, ptr %10, align 8, !tbaa !9
  %224 = add nsw i64 %223, 1
  store i64 %224, ptr %11, align 8, !tbaa !9
  br label %225

225:                                              ; preds = %251, %222
  %226 = load i64, ptr %11, align 8, !tbaa !9
  %227 = load i64, ptr %5, align 8, !tbaa !9
  %228 = sub nsw i64 %227, 1
  %229 = icmp sle i64 %226, %228
  br i1 %229, label %230, label %254

230:                                              ; preds = %225
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %231, i32 0, i32 6
  %233 = load ptr, ptr %232, align 8, !tbaa !11
  %234 = load i64, ptr %11, align 8, !tbaa !9
  %235 = getelementptr inbounds ptr, ptr %233, i64 %234
  %236 = load ptr, ptr %235, align 8, !tbaa !5
  %237 = load i64, ptr %10, align 8, !tbaa !9
  %238 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %236, i64 %237
  %239 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %238, i32 0, i32 1
  %240 = load double, ptr %239, align 8, !tbaa !25
  %241 = fneg double %240
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %242, i32 0, i32 6
  %244 = load ptr, ptr %243, align 8, !tbaa !11
  %245 = load i64, ptr %11, align 8, !tbaa !9
  %246 = getelementptr inbounds ptr, ptr %244, i64 %245
  %247 = load ptr, ptr %246, align 8, !tbaa !5
  %248 = load i64, ptr %10, align 8, !tbaa !9
  %249 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %247, i64 %248
  %250 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %249, i32 0, i32 1
  store double %241, ptr %250, align 8, !tbaa !25
  br label %251

251:                                              ; preds = %230
  %252 = load i64, ptr %11, align 8, !tbaa !9
  %253 = add nsw i64 %252, 1
  store i64 %253, ptr %11, align 8, !tbaa !9
  br label %225, !llvm.loop !27

254:                                              ; preds = %225
  br label %255

255:                                              ; preds = %254
  %256 = load i64, ptr %10, align 8, !tbaa !9
  %257 = add nsw i64 %256, 1
  store i64 %257, ptr %10, align 8, !tbaa !9
  br label %217, !llvm.loop !28

258:                                              ; preds = %217
  %259 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %259)
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  ret void
}

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #4

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl9ae_c_eq_dENS_10ae_complexEd(double, double, double noundef) #4

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

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

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

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

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

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

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

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

@.str.200 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl18hmatrixrndmultiplyEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2) local_unnamed_addr #3 {
  %4 = alloca %"struct.alglib_impl::ae_frame", align 8
  %5 = alloca %"struct.alglib_impl::ae_complex", align 8
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::hqrndstate", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %2, ptr noundef nonnull %4)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %8, i8 0, i64 24, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 4, ptr noundef %2, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 4, ptr noundef %2, i1 noundef zeroext true)
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %8, ptr noundef %2, i1 noundef zeroext true)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %1, ptr noundef %2)
  %9 = add nsw i64 %1, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %9, ptr noundef %2)
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef %2)
  %.not106 = icmp slt i64 %1, 2
  br i1 %.not106, label %..preheader101_crit_edge, label %.preheader102.lr.ph

..preheader101_crit_edge:                         ; preds = %3
  %.pre = add i64 %1, -1
  br label %.preheader101

.preheader102.lr.ph:                              ; preds = %3
  %10 = getelementptr inbounds i8, ptr %5, i64 8
  %11 = getelementptr inbounds i8, ptr %7, i64 56
  %12 = add nsw i64 %1, -1
  %13 = add nuw i64 %1, 1
  br label %.preheader102

.preheader102:                                    ; preds = %.preheader102.lr.ph, %29
  %indvars.iv = phi i64 [ 3, %.preheader102.lr.ph ], [ %indvars.iv.next, %29 ]
  %.0107 = phi i64 [ 2, %.preheader102.lr.ph ], [ %39, %29 ]
  br label %17

.preheader101:                                    ; preds = %29, %..preheader101_crit_edge
  %.pre-phi = phi i64 [ %.pre, %..preheader101_crit_edge ], [ %12, %29 ]
  %.not95.not108 = icmp sgt i64 %1, 0
  br i1 %.not95.not108, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader101
  %14 = getelementptr inbounds i8, ptr %5, i64 8
  %15 = getelementptr inbounds i8, ptr %0, i64 72
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  br label %42

17:                                               ; preds = %.backedge, %.preheader102
  %.089105 = phi i64 [ 1, %.preheader102 ], [ %.089105.be, %.backedge ]
  call void @_ZN11alglib_impl12hqrndnormal2EPNS_10hqrndstateEPdS2_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %5, ptr noundef nonnull %10, ptr noundef %2)
  %18 = load ptr, ptr %11, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %18, i64 %.089105
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !8
  %20 = add nuw i64 %.089105, 1
  %exitcond.not = icmp eq i64 %20, %indvars.iv
  br i1 %exitcond.not, label %21, label %.backedge

.backedge:                                        ; preds = %17, %21
  %.089105.be = phi i64 [ %20, %17 ], [ 1, %21 ]
  br label %17, !llvm.loop !11

21:                                               ; preds = %17
  %22 = load ptr, ptr %11, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  %24 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %.0107)
  %25 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef nonnull %23, i64 noundef 1, ptr noundef nonnull @.str.200, ptr noundef nonnull %23, i64 noundef 1, ptr noundef nonnull @.str.201, i64 noundef %24)
  %26 = extractvalue { double, double } %25, 0
  %27 = extractvalue { double, double } %25, 1
  %28 = call noundef zeroext i1 @_ZN11alglib_impl9ae_c_eq_dENS_10ae_complexEd(double %26, double %27, double noundef 0.000000e+00)
  br i1 %28, label %.backedge, label %29

29:                                               ; preds = %21
  call void @_ZN11alglib_impl25complexgeneratereflectionEPNS_9ae_vectorElPNS_10ae_complexEPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0107, ptr noundef nonnull %5, ptr noundef %2)
  %30 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %31 = extractvalue { double, double } %30, 0
  %32 = extractvalue { double, double } %30, 1
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  store double %31, ptr %34, align 8, !tbaa !9
  %.sroa.413.0..sroa_idx = getelementptr inbounds i8, ptr %33, i64 24
  store double %32, ptr %.sroa.413.0..sroa_idx, align 8, !tbaa !9
  %.sroa.010.0.copyload = load double, ptr %5, align 8, !tbaa !9
  %.sroa.211.0.copyload = load double, ptr %10, align 8, !tbaa !9
  %35 = sub nsw i64 %1, %.0107
  call void @_ZN11alglib_impl34complexapplyreflectionfromtherightEPNS_9ae_matrixENS_10ae_complexEPNS_9ae_vectorEllllS4_PNS_8ae_stateE(ptr noundef %0, double %.sroa.010.0.copyload, double %.sroa.211.0.copyload, ptr noundef nonnull %7, i64 noundef 0, i64 noundef %12, i64 noundef %35, i64 noundef %12, ptr noundef nonnull %6, ptr noundef %2)
  %.sroa.06.0.copyload = load double, ptr %5, align 8, !tbaa !9
  %.sroa.27.0.copyload = load double, ptr %10, align 8, !tbaa !9
  %36 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %.sroa.06.0.copyload, double %.sroa.27.0.copyload, ptr noundef %2)
  %37 = extractvalue { double, double } %36, 0
  %38 = extractvalue { double, double } %36, 1
  call void @_ZN11alglib_impl33complexapplyreflectionfromtheleftEPNS_9ae_matrixENS_10ae_complexEPNS_9ae_vectorEllllS4_PNS_8ae_stateE(ptr noundef %0, double %37, double %38, ptr noundef nonnull %7, i64 noundef %35, i64 noundef %12, i64 noundef 0, i64 noundef %12, ptr noundef nonnull %6, ptr noundef %2)
  %39 = add nuw nsw i64 %.0107, 1
  %indvars.iv.next = add nuw i64 %indvars.iv, 1
  %exitcond120.not = icmp eq i64 %indvars.iv, %13
  br i1 %exitcond120.not, label %.preheader101, label %.preheader102, !llvm.loop !13

.preheader100:                                    ; preds = %42
  br i1 %.not106, label %._crit_edge, label %.lr.ph112

.lr.ph112:                                        ; preds = %.preheader100
  %40 = getelementptr inbounds i8, ptr %0, i64 72
  %41 = getelementptr inbounds i8, ptr %0, i64 16
  br label %58

42:                                               ; preds = %.lr.ph, %42
  %.190109 = phi i64 [ 0, %.lr.ph ], [ %55, %42 ]
  call void @_ZN11alglib_impl10hqrndunit2EPNS_10hqrndstateEPdS2_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %5, ptr noundef nonnull %14, ptr noundef %2)
  %43 = load ptr, ptr %15, align 8, !tbaa !5
  %44 = load ptr, ptr %43, align 8, !tbaa !14
  %45 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %44, i64 %.190109
  %46 = load i64, ptr %16, align 8, !tbaa !16
  %47 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.pre-phi)
  %.sroa.04.0.copyload = load double, ptr %5, align 8, !tbaa !9
  %.sroa.25.0.copyload = load double, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl10ae_v_cmulcEPNS_10ae_complexEllS0_(ptr noundef %45, i64 noundef %46, i64 noundef %47, double %.sroa.04.0.copyload, double %.sroa.25.0.copyload)
  %.sroa.01.0.copyload = load double, ptr %5, align 8, !tbaa !9
  %.sroa.22.0.copyload = load double, ptr %14, align 8, !tbaa !9
  %48 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %.sroa.01.0.copyload, double %.sroa.22.0.copyload, ptr noundef %2)
  %49 = extractvalue { double, double } %48, 0
  %50 = extractvalue { double, double } %48, 1
  store double %49, ptr %5, align 8, !tbaa !9
  store double %50, ptr %14, align 8, !tbaa !9
  %51 = load ptr, ptr %15, align 8, !tbaa !5
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.190109
  %53 = load ptr, ptr %52, align 8, !tbaa !14
  %54 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.pre-phi)
  %.sroa.0.0.copyload = load double, ptr %5, align 8, !tbaa !9
  %.sroa.2.0.copyload = load double, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl10ae_v_cmulcEPNS_10ae_complexEllS0_(ptr noundef %53, i64 noundef 1, i64 noundef %54, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %55 = add nuw nsw i64 %.190109, 1
  %exitcond121.not = icmp eq i64 %55, %1
  br i1 %exitcond121.not, label %.preheader100, label %42, !llvm.loop !21

.preheader:                                       ; preds = %58
  br i1 %.not106, label %._crit_edge, label %.lr.ph119

.lr.ph119:                                        ; preds = %.preheader
  %56 = getelementptr inbounds i8, ptr %0, i64 72
  %xtraiter = and i64 %.pre-phi, 1
  %57 = icmp eq i64 %.pre-phi, 1
  br i1 %57, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph119.new

.lr.ph119.new:                                    ; preds = %.lr.ph119
  %unroll_iter = and i64 %.pre-phi, -2
  br label %.lr.ph116.preheader

58:                                               ; preds = %.lr.ph112, %58
  %.2111 = phi i64 [ 0, %.lr.ph112 ], [ %60, %58 ]
  %59 = load ptr, ptr %40, align 8, !tbaa !5
  %60 = add nuw nsw i64 %.2111, 1
  %61 = getelementptr inbounds ptr, ptr %59, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !14
  %63 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %62, i64 %.2111
  %64 = load i64, ptr %41, align 8, !tbaa !16
  %65 = getelementptr inbounds ptr, ptr %59, i64 %.2111
  %66 = load ptr, ptr %65, align 8, !tbaa !14
  %67 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %66, i64 %60
  %68 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %60, i64 noundef %.pre-phi)
  call void @_ZN11alglib_impl10ae_v_cmoveEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %63, i64 noundef %64, ptr noundef nonnull %67, i64 noundef 1, ptr noundef nonnull @.str.200, i64 noundef %68)
  %exitcond122.not = icmp eq i64 %60, %.pre-phi
  br i1 %exitcond122.not, label %.preheader, label %58, !llvm.loop !22

.loopexit:                                        ; preds = %.lr.ph116
  %69 = add nuw nsw i64 %.1118, 2
  br label %.lr.ph116.1

.lr.ph116.1:                                      ; preds = %.lr.ph116.1, %.loopexit
  %.3115.1 = phi i64 [ %76, %.lr.ph116.1 ], [ %69, %.loopexit ]
  %70 = load ptr, ptr %56, align 8, !tbaa !5
  %71 = getelementptr inbounds ptr, ptr %70, i64 %.3115.1
  %72 = load ptr, ptr %71, align 8, !tbaa !14
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %72, i64 %77, i32 1
  %74 = load double, ptr %73, align 8, !tbaa !23
  %75 = fneg double %74
  store double %75, ptr %73, align 8, !tbaa !23
  %76 = add nuw nsw i64 %.3115.1, 1
  %.not98.not.1 = icmp slt i64 %76, %1
  br i1 %.not98.not.1, label %.lr.ph116.1, label %.loopexit.1, !llvm.loop !25

.loopexit.1:                                      ; preds = %.lr.ph116.1
  %niter.next.1 = add nuw i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph116.preheader, !llvm.loop !26

.lr.ph116.preheader:                              ; preds = %.loopexit.1, %.lr.ph119.new
  %.1118 = phi i64 [ 0, %.lr.ph119.new ], [ %69, %.loopexit.1 ]
  %niter = phi i64 [ 0, %.lr.ph119.new ], [ %niter.next.1, %.loopexit.1 ]
  %77 = or disjoint i64 %.1118, 1
  br label %.lr.ph116

.lr.ph116:                                        ; preds = %.lr.ph116.preheader, %.lr.ph116
  %.3115 = phi i64 [ %84, %.lr.ph116 ], [ %77, %.lr.ph116.preheader ]
  %78 = load ptr, ptr %56, align 8, !tbaa !5
  %79 = getelementptr inbounds ptr, ptr %78, i64 %.3115
  %80 = load ptr, ptr %79, align 8, !tbaa !14
  %81 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %80, i64 %.1118, i32 1
  %82 = load double, ptr %81, align 8, !tbaa !23
  %83 = fneg double %82
  store double %83, ptr %81, align 8, !tbaa !23
  %84 = add nuw nsw i64 %.3115, 1
  %.not98.not = icmp slt i64 %84, %1
  br i1 %.not98.not, label %.lr.ph116, label %.loopexit, !llvm.loop !25

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.loopexit.1, %.lr.ph119
  %.1118.unr = phi i64 [ 0, %.lr.ph119 ], [ %69, %.loopexit.1 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph116.preheader.epil

.lr.ph116.preheader.epil:                         ; preds = %._crit_edge.loopexit.unr-lcssa
  %85 = add nuw nsw i64 %.1118.unr, 1
  br label %.lr.ph116.epil

.lr.ph116.epil:                                   ; preds = %.lr.ph116.epil, %.lr.ph116.preheader.epil
  %.3115.epil = phi i64 [ %92, %.lr.ph116.epil ], [ %85, %.lr.ph116.preheader.epil ]
  %86 = load ptr, ptr %56, align 8, !tbaa !5
  %87 = getelementptr inbounds ptr, ptr %86, i64 %.3115.epil
  %88 = load ptr, ptr %87, align 8, !tbaa !14
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %88, i64 %.1118.unr, i32 1
  %90 = load double, ptr %89, align 8, !tbaa !23
  %91 = fneg double %90
  store double %91, ptr %89, align 8, !tbaa !23
  %92 = add nuw nsw i64 %.3115.epil, 1
  %.not98.not.epil = icmp slt i64 %92, %1
  br i1 %.not98.not.epil, label %.lr.ph116.epil, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph116.epil, %.preheader101, %.preheader100, %.preheader
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %2)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  ret void
}

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #4

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

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

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

declare void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #4

declare void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN11alglib_impl10hqrndunit2EPNS_10hqrndstateEPdS2_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN11alglib_impl12hqrndnormal2EPNS_10hqrndstateEPdS2_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN11alglib_impl9ae_c_eq_dENS_10ae_complexEd(double, double, double noundef) local_unnamed_addr #4

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

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

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

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

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

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

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

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


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