; LLVM IR from Dimandragon/non-parametric-dsp :: 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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { 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.323 = external hidden unnamed_addr constant [32 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
declare dso_local void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl9hmatrixtdEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl16hmatrixtdunpackqEPKNS_9ae_matrixElbPKNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) #1

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

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl10hmatrixevdEPKNS_9ae_matrixEllbPNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i1 noundef zeroext %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #1 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.alglib_impl::ae_frame", align 8
  %16 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %20 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %21 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i8, align 1
  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
  %25 = zext i1 %3 to i8
  store i8 %25, ptr %11, align 1, !tbaa !11
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #4
  %26 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %26, ptr noundef %15)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 80, 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 %19, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 80, i1 false)
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef %16, ptr noundef %27, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %29)
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %30)
  %31 = 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 %31, i1 noundef zeroext true)
  %32 = 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 3, ptr noundef %32, i1 noundef zeroext true)
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %33, i1 noundef zeroext true)
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %34, i1 noundef zeroext true)
  %35 = 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 %35, i1 noundef zeroext true)
  %36 = load i64, ptr %10, align 8, !tbaa !9
  %37 = icmp eq i64 %36, 0
  br i1 %37, label %41, label %38

38:                                               ; preds = %7
  %39 = load i64, ptr %10, align 8, !tbaa !9
  %40 = icmp eq i64 %39, 1
  br label %41

41:                                               ; preds = %38, %7
  %42 = phi i1 [ true, %7 ], [ %40, %38 ]
  %43 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef @.str.323, ptr noundef %43)
  %44 = load i64, ptr %9, align 8, !tbaa !9
  %45 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %46 = trunc i8 %45 to i1
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9hmatrixtdEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef %16, i64 noundef %44, i1 noundef zeroext %46, ptr noundef %17, ptr noundef %47, ptr noundef %18, ptr noundef %48)
  %49 = load i64, ptr %10, align 8, !tbaa !9
  %50 = icmp eq i64 %49, 1
  br i1 %50, label %51, label %56

51:                                               ; preds = %41
  %52 = load i64, ptr %9, align 8, !tbaa !9
  %53 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %54 = trunc i8 %53 to i1
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl16hmatrixtdunpackqEPKNS_9ae_matrixElbPKNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef %16, i64 noundef %52, i1 noundef zeroext %54, ptr noundef %17, ptr noundef %21, ptr noundef %55)
  store i64 2, ptr %10, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %51, %41
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = load i64, ptr %9, align 8, !tbaa !9
  %59 = load i64, ptr %10, align 8, !tbaa !9
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  %61 = call noundef zeroext i1 @_ZN11alglib_impl12smatrixtdevdEPNS_9ae_vectorEPKS0_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %57, ptr noundef %18, i64 noundef %58, i64 noundef %59, ptr noundef %19, ptr noundef %60)
  %62 = zext i1 %61 to i8
  store i8 %62, ptr %24, align 1, !tbaa !11
  %63 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %237

65:                                               ; preds = %56
  %66 = load i64, ptr %10, align 8, !tbaa !9
  %67 = icmp ne i64 %66, 0
  br i1 %67, label %68, label %237

68:                                               ; preds = %65
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = load i64, ptr %9, align 8, !tbaa !9
  %71 = load i64, ptr %9, align 8, !tbaa !9
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %69, i64 noundef %70, i64 noundef %71, ptr noundef %72)
  %73 = load i64, ptr %9, align 8, !tbaa !9
  %74 = load i64, ptr %9, align 8, !tbaa !9
  %75 = mul nsw i64 2, %74
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %20, i64 noundef %73, i64 noundef %75, ptr noundef %76)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %77

77:                                               ; preds = %109, %68
  %78 = load i64, ptr %22, align 8, !tbaa !9
  %79 = load i64, ptr %9, align 8, !tbaa !9
  %80 = sub nsw i64 %79, 1
  %81 = icmp sle i64 %78, %80
  br i1 %81, label %82, label %112

82:                                               ; preds = %77
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %83

83:                                               ; preds = %105, %82
  %84 = load i64, ptr %23, align 8, !tbaa !9
  %85 = load i64, ptr %9, align 8, !tbaa !9
  %86 = sub nsw i64 %85, 1
  %87 = icmp sle i64 %84, %86
  br i1 %87, label %88, label %108

88:                                               ; preds = %83
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %90 = load ptr, ptr %89, align 8, !tbaa !15
  %91 = load i64, ptr %22, align 8, !tbaa !9
  %92 = getelementptr inbounds ptr, ptr %90, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = load i64, ptr %23, align 8, !tbaa !9
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %93, i64 %94
  %96 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %95, i32 0, i32 0
  %97 = load double, ptr %96, align 8, !tbaa !16
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %99 = load ptr, ptr %98, align 8, !tbaa !15
  %100 = load i64, ptr %22, align 8, !tbaa !9
  %101 = getelementptr inbounds ptr, ptr %99, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = load i64, ptr %23, align 8, !tbaa !9
  %104 = getelementptr inbounds double, ptr %102, i64 %103
  store double %97, ptr %104, align 8, !tbaa !19
  br label %105

105:                                              ; preds = %88
  %106 = load i64, ptr %23, align 8, !tbaa !9
  %107 = add nsw i64 %106, 1
  store i64 %107, ptr %23, align 8, !tbaa !9
  br label %83, !llvm.loop !20

108:                                              ; preds = %83
  br label %109

109:                                              ; preds = %108
  %110 = load i64, ptr %22, align 8, !tbaa !9
  %111 = add nsw i64 %110, 1
  store i64 %111, ptr %22, align 8, !tbaa !9
  br label %77, !llvm.loop !22

112:                                              ; preds = %77
  %113 = load i64, ptr %9, align 8, !tbaa !9
  %114 = load i64, ptr %9, align 8, !tbaa !9
  %115 = load i64, ptr %9, align 8, !tbaa !9
  %116 = load i64, ptr %9, align 8, !tbaa !9
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef %113, i64 noundef %114, i64 noundef %115, double noundef 1.000000e+00, ptr noundef %20, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %19, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %20, i64 noundef 0, i64 noundef %116, ptr noundef %117)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %118

118:                                              ; preds = %153, %112
  %119 = load i64, ptr %22, align 8, !tbaa !9
  %120 = load i64, ptr %9, align 8, !tbaa !9
  %121 = sub nsw i64 %120, 1
  %122 = icmp sle i64 %119, %121
  br i1 %122, label %123, label %156

123:                                              ; preds = %118
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %149, %123
  %125 = load i64, ptr %23, align 8, !tbaa !9
  %126 = load i64, ptr %9, align 8, !tbaa !9
  %127 = sub nsw i64 %126, 1
  %128 = icmp sle i64 %125, %127
  br i1 %128, label %129, label %152

129:                                              ; preds = %124
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %131 = load ptr, ptr %130, align 8, !tbaa !15
  %132 = load i64, ptr %22, align 8, !tbaa !9
  %133 = getelementptr inbounds ptr, ptr %131, i64 %132
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  %135 = load i64, ptr %9, align 8, !tbaa !9
  %136 = load i64, ptr %23, align 8, !tbaa !9
  %137 = add nsw i64 %135, %136
  %138 = getelementptr inbounds double, ptr %134, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !19
  %140 = load ptr, ptr %13, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %140, i32 0, i32 6
  %142 = load ptr, ptr %141, align 8, !tbaa !15
  %143 = load i64, ptr %22, align 8, !tbaa !9
  %144 = getelementptr inbounds ptr, ptr %142, i64 %143
  %145 = load ptr, ptr %144, align 8, !tbaa !5
  %146 = load i64, ptr %23, align 8, !tbaa !9
  %147 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %145, i64 %146
  %148 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %147, i32 0, i32 0
  store double %139, ptr %148, align 8, !tbaa !16
  br label %149

149:                                              ; preds = %129
  %150 = load i64, ptr %23, align 8, !tbaa !9
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %23, align 8, !tbaa !9
  br label %124, !llvm.loop !23

152:                                              ; preds = %124
  br label %153

153:                                              ; preds = %152
  %154 = load i64, ptr %22, align 8, !tbaa !9
  %155 = add nsw i64 %154, 1
  store i64 %155, ptr %22, align 8, !tbaa !9
  br label %118, !llvm.loop !24

156:                                              ; preds = %118
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %157

157:                                              ; preds = %189, %156
  %158 = load i64, ptr %22, align 8, !tbaa !9
  %159 = load i64, ptr %9, align 8, !tbaa !9
  %160 = sub nsw i64 %159, 1
  %161 = icmp sle i64 %158, %160
  br i1 %161, label %162, label %192

162:                                              ; preds = %157
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %163

163:                                              ; preds = %185, %162
  %164 = load i64, ptr %23, align 8, !tbaa !9
  %165 = load i64, ptr %9, align 8, !tbaa !9
  %166 = sub nsw i64 %165, 1
  %167 = icmp sle i64 %164, %166
  br i1 %167, label %168, label %188

168:                                              ; preds = %163
  %169 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %170 = load ptr, ptr %169, align 8, !tbaa !15
  %171 = load i64, ptr %22, align 8, !tbaa !9
  %172 = getelementptr inbounds ptr, ptr %170, i64 %171
  %173 = load ptr, ptr %172, align 8, !tbaa !5
  %174 = load i64, ptr %23, align 8, !tbaa !9
  %175 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %173, i64 %174
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %175, i32 0, i32 1
  %177 = load double, ptr %176, align 8, !tbaa !25
  %178 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %179 = load ptr, ptr %178, align 8, !tbaa !15
  %180 = load i64, ptr %22, align 8, !tbaa !9
  %181 = getelementptr inbounds ptr, ptr %179, i64 %180
  %182 = load ptr, ptr %181, align 8, !tbaa !5
  %183 = load i64, ptr %23, align 8, !tbaa !9
  %184 = getelementptr inbounds double, ptr %182, i64 %183
  store double %177, ptr %184, align 8, !tbaa !19
  br label %185

185:                                              ; preds = %168
  %186 = load i64, ptr %23, align 8, !tbaa !9
  %187 = add nsw i64 %186, 1
  store i64 %187, ptr %23, align 8, !tbaa !9
  br label %163, !llvm.loop !26

188:                                              ; preds = %163
  br label %189

189:                                              ; preds = %188
  %190 = load i64, ptr %22, align 8, !tbaa !9
  %191 = add nsw i64 %190, 1
  store i64 %191, ptr %22, align 8, !tbaa !9
  br label %157, !llvm.loop !27

192:                                              ; preds = %157
  %193 = load i64, ptr %9, align 8, !tbaa !9
  %194 = load i64, ptr %9, align 8, !tbaa !9
  %195 = load i64, ptr %9, align 8, !tbaa !9
  %196 = load i64, ptr %9, align 8, !tbaa !9
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef %193, i64 noundef %194, i64 noundef %195, double noundef 1.000000e+00, ptr noundef %20, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %19, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %20, i64 noundef 0, i64 noundef %196, ptr noundef %197)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %198

198:                                              ; preds = %233, %192
  %199 = load i64, ptr %22, align 8, !tbaa !9
  %200 = load i64, ptr %9, align 8, !tbaa !9
  %201 = sub nsw i64 %200, 1
  %202 = icmp sle i64 %199, %201
  br i1 %202, label %203, label %236

203:                                              ; preds = %198
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %204

204:                                              ; preds = %229, %203
  %205 = load i64, ptr %23, align 8, !tbaa !9
  %206 = load i64, ptr %9, align 8, !tbaa !9
  %207 = sub nsw i64 %206, 1
  %208 = icmp sle i64 %205, %207
  br i1 %208, label %209, label %232

209:                                              ; preds = %204
  %210 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %211 = load ptr, ptr %210, align 8, !tbaa !15
  %212 = load i64, ptr %22, align 8, !tbaa !9
  %213 = getelementptr inbounds ptr, ptr %211, i64 %212
  %214 = load ptr, ptr %213, align 8, !tbaa !5
  %215 = load i64, ptr %9, align 8, !tbaa !9
  %216 = load i64, ptr %23, align 8, !tbaa !9
  %217 = add nsw i64 %215, %216
  %218 = getelementptr inbounds double, ptr %214, i64 %217
  %219 = load double, ptr %218, align 8, !tbaa !19
  %220 = load ptr, ptr %13, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %220, i32 0, i32 6
  %222 = load ptr, ptr %221, align 8, !tbaa !15
  %223 = load i64, ptr %22, align 8, !tbaa !9
  %224 = getelementptr inbounds ptr, ptr %222, i64 %223
  %225 = load ptr, ptr %224, align 8, !tbaa !5
  %226 = load i64, ptr %23, align 8, !tbaa !9
  %227 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %225, i64 %226
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %227, i32 0, i32 1
  store double %219, ptr %228, align 8, !tbaa !25
  br label %229

229:                                              ; preds = %209
  %230 = load i64, ptr %23, align 8, !tbaa !9
  %231 = add nsw i64 %230, 1
  store i64 %231, ptr %23, align 8, !tbaa !9
  br label %204, !llvm.loop !28

232:                                              ; preds = %204
  br label %233

233:                                              ; preds = %232
  %234 = load i64, ptr %22, align 8, !tbaa !9
  %235 = add nsw i64 %234, 1
  store i64 %235, ptr %22, align 8, !tbaa !9
  br label %198, !llvm.loop !29

236:                                              ; preds = %198
  br label %237

237:                                              ; preds = %236, %65, %56
  %238 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %238)
  %239 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %240 = trunc i8 %239 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  ret i1 %240
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl12smatrixtdevdEPNS_9ae_vectorEPKS0_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #1

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

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #3

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #3

declare void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #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: write) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTSN11alglib_impl10ae_complexE", !18, i64 0, !18, i64 8}
!18 = !{!"double", !7, i64 0}
!19 = !{!18, !18, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}
!25 = !{!17, !18, i64 8}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}
!29 = distinct !{!29, !21}


; 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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { 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.323 = external hidden unnamed_addr constant [32 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl9hmatrixtdEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl16hmatrixtdunpackqEPKNS_9ae_matrixElbPKNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl10hmatrixevdEPKNS_9ae_matrixEllbPNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i1 noundef zeroext %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #1 {
  %8 = alloca %"struct.alglib_impl::ae_frame", align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", 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 80, 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(80) %9, i8 0, i64 80, 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_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %9, ptr noundef %0, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %4)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %5)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 4, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, 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 3, 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 3, 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 eq i64 %2, 1
  %16 = icmp ult i64 %2, 2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.323, ptr noundef %6)
  call void @_ZN11alglib_impl9hmatrixtdEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %1, i1 noundef zeroext %3, ptr noundef nonnull %10, ptr noundef %4, ptr noundef nonnull %11, ptr noundef %6)
  br i1 %15, label %17, label %18

17:                                               ; preds = %7
  call void @_ZN11alglib_impl16hmatrixtdunpackqEPKNS_9ae_matrixElbPKNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %1, i1 noundef zeroext %3, ptr noundef nonnull %10, ptr noundef nonnull %14, ptr noundef %6)
  br label %18

18:                                               ; preds = %17, %7
  %.0 = phi i64 [ 2, %17 ], [ %2, %7 ]
  %19 = call noundef zeroext i1 @_ZN11alglib_impl12smatrixtdevdEPNS_9ae_vectorEPKS0_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %4, ptr noundef nonnull %11, i64 noundef %1, i64 noundef %.0, ptr noundef nonnull %12, ptr noundef %6)
  %20 = icmp ne i64 %.0, 0
  %or.cond = and i1 %19, %20
  br i1 %or.cond, label %21, label %.loopexit

21:                                               ; preds = %18
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %1, i64 noundef %1, ptr noundef %6)
  %22 = shl nsw i64 %1, 1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %1, i64 noundef %22, ptr noundef %6)
  %.not.not111 = icmp sgt i64 %1, 0
  br i1 %.not.not111, label %.preheader108.lr.ph, label %._crit_edge113.thread

._crit_edge113.thread:                            ; preds = %21
  call void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %1, i64 noundef %1, double noundef 1.000000e+00, ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %13, i64 noundef 0, i64 noundef %1, ptr noundef %6)
  br label %._crit_edge123.thread

.preheader108.lr.ph:                              ; preds = %21
  %23 = getelementptr inbounds i8, ptr %14, i64 72
  %24 = getelementptr inbounds i8, ptr %13, i64 72
  %25 = add nsw i64 %1, -1
  %xtraiter = and i64 %1, 1
  %26 = icmp eq i64 %25, 0
  %unroll_iter = and i64 %1, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader108.us

.preheader108.us:                                 ; preds = %._crit_edge.us, %.preheader108.lr.ph
  %.091112.us = phi i64 [ 0, %.preheader108.lr.ph ], [ %56, %._crit_edge.us ]
  br i1 %26, label %._crit_edge.us.unr-lcssa, label %.preheader108.us.new

.preheader108.us.new:                             ; preds = %.preheader108.us, %.preheader108.us.new
  %.090110.us = phi i64 [ %46, %.preheader108.us.new ], [ 0, %.preheader108.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader108.us.new ], [ 0, %.preheader108.us ]
  %27 = load ptr, ptr %23, align 8, !tbaa !5
  %28 = getelementptr inbounds ptr, ptr %27, i64 %.091112.us
  %29 = load ptr, ptr %28, align 8, !tbaa !8
  %30 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %29, i64 %.090110.us
  %31 = load double, ptr %30, align 8, !tbaa !10
  %32 = load ptr, ptr %24, align 8, !tbaa !5
  %33 = getelementptr inbounds ptr, ptr %32, i64 %.091112.us
  %34 = load ptr, ptr %33, align 8, !tbaa !8
  %35 = getelementptr inbounds double, ptr %34, i64 %.090110.us
  store double %31, ptr %35, align 8, !tbaa !13
  %36 = or disjoint i64 %.090110.us, 1
  %37 = load ptr, ptr %23, align 8, !tbaa !5
  %38 = getelementptr inbounds ptr, ptr %37, i64 %.091112.us
  %39 = load ptr, ptr %38, align 8, !tbaa !8
  %40 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %39, i64 %36
  %41 = load double, ptr %40, align 8, !tbaa !10
  %42 = load ptr, ptr %24, align 8, !tbaa !5
  %43 = getelementptr inbounds ptr, ptr %42, i64 %.091112.us
  %44 = load ptr, ptr %43, align 8, !tbaa !8
  %45 = getelementptr inbounds double, ptr %44, i64 %36
  store double %41, ptr %45, align 8, !tbaa !13
  %46 = add nuw nsw i64 %.090110.us, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.preheader108.us.new, !llvm.loop !14

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader108.us.new, %.preheader108.us
  %.090110.us.unr = phi i64 [ 0, %.preheader108.us ], [ %46, %.preheader108.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %47 = load ptr, ptr %23, align 8, !tbaa !5
  %48 = getelementptr inbounds ptr, ptr %47, i64 %.091112.us
  %49 = load ptr, ptr %48, align 8, !tbaa !8
  %50 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %49, i64 %.090110.us.unr
  %51 = load double, ptr %50, align 8, !tbaa !10
  %52 = load ptr, ptr %24, align 8, !tbaa !5
  %53 = getelementptr inbounds ptr, ptr %52, i64 %.091112.us
  %54 = load ptr, ptr %53, align 8, !tbaa !8
  %55 = getelementptr inbounds double, ptr %54, i64 %.090110.us.unr
  store double %51, ptr %55, align 8, !tbaa !13
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %56 = add nuw nsw i64 %.091112.us, 1
  %exitcond130.not = icmp eq i64 %56, %1
  br i1 %exitcond130.not, label %._crit_edge113, label %.preheader108.us, !llvm.loop !16

._crit_edge113:                                   ; preds = %._crit_edge.us
  call void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %1, i64 noundef %1, double noundef 1.000000e+00, ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %13, i64 noundef 0, i64 noundef %1, ptr noundef %6)
  br i1 %.not.not111, label %.preheader107.lr.ph, label %._crit_edge123.thread

.preheader107.lr.ph:                              ; preds = %._crit_edge113
  %57 = getelementptr inbounds i8, ptr %13, i64 72
  %58 = getelementptr inbounds i8, ptr %5, i64 72
  %xtraiter138 = and i64 %1, 1
  %59 = icmp eq i64 %25, 0
  %unroll_iter140 = and i64 %1, 9223372036854775806
  %lcmp.mod139.not = icmp eq i64 %xtraiter138, 0
  br label %.preheader107.us

.preheader107.us:                                 ; preds = %._crit_edge.us118, %.preheader107.lr.ph
  %.192117.us = phi i64 [ 0, %.preheader107.lr.ph ], [ %92, %._crit_edge.us118 ]
  br i1 %59, label %._crit_edge.us118.unr-lcssa, label %.preheader107.us.new

.preheader107.us.new:                             ; preds = %.preheader107.us, %.preheader107.us.new
  %.1115.us = phi i64 [ %81, %.preheader107.us.new ], [ 0, %.preheader107.us ]
  %niter141 = phi i64 [ %niter141.next.1, %.preheader107.us.new ], [ 0, %.preheader107.us ]
  %60 = load ptr, ptr %57, align 8, !tbaa !5
  %61 = getelementptr inbounds ptr, ptr %60, i64 %.192117.us
  %62 = load ptr, ptr %61, align 8, !tbaa !8
  %63 = getelementptr double, ptr %62, i64 %.1115.us
  %64 = getelementptr double, ptr %63, i64 %1
  %65 = load double, ptr %64, align 8, !tbaa !13
  %66 = load ptr, ptr %58, align 8, !tbaa !5
  %67 = getelementptr inbounds ptr, ptr %66, i64 %.192117.us
  %68 = load ptr, ptr %67, align 8, !tbaa !8
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %68, i64 %.1115.us
  store double %65, ptr %69, align 8, !tbaa !10
  %70 = or disjoint i64 %.1115.us, 1
  %71 = load ptr, ptr %57, align 8, !tbaa !5
  %72 = getelementptr inbounds ptr, ptr %71, i64 %.192117.us
  %73 = load ptr, ptr %72, align 8, !tbaa !8
  %74 = getelementptr double, ptr %73, i64 %70
  %75 = getelementptr double, ptr %74, i64 %1
  %76 = load double, ptr %75, align 8, !tbaa !13
  %77 = load ptr, ptr %58, align 8, !tbaa !5
  %78 = getelementptr inbounds ptr, ptr %77, i64 %.192117.us
  %79 = load ptr, ptr %78, align 8, !tbaa !8
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %79, i64 %70
  store double %76, ptr %80, align 8, !tbaa !10
  %81 = add nuw nsw i64 %.1115.us, 2
  %niter141.next.1 = add i64 %niter141, 2
  %niter141.ncmp.1 = icmp eq i64 %niter141.next.1, %unroll_iter140
  br i1 %niter141.ncmp.1, label %._crit_edge.us118.unr-lcssa, label %.preheader107.us.new, !llvm.loop !17

._crit_edge.us118.unr-lcssa:                      ; preds = %.preheader107.us.new, %.preheader107.us
  %.1115.us.unr = phi i64 [ 0, %.preheader107.us ], [ %81, %.preheader107.us.new ]
  br i1 %lcmp.mod139.not, label %._crit_edge.us118, label %._crit_edge.us118.epilog-lcssa

._crit_edge.us118.epilog-lcssa:                   ; preds = %._crit_edge.us118.unr-lcssa
  %82 = load ptr, ptr %57, align 8, !tbaa !5
  %83 = getelementptr inbounds ptr, ptr %82, i64 %.192117.us
  %84 = load ptr, ptr %83, align 8, !tbaa !8
  %85 = getelementptr double, ptr %84, i64 %.1115.us.unr
  %86 = getelementptr double, ptr %85, i64 %1
  %87 = load double, ptr %86, align 8, !tbaa !13
  %88 = load ptr, ptr %58, align 8, !tbaa !5
  %89 = getelementptr inbounds ptr, ptr %88, i64 %.192117.us
  %90 = load ptr, ptr %89, align 8, !tbaa !8
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %90, i64 %.1115.us.unr
  store double %87, ptr %91, align 8, !tbaa !10
  br label %._crit_edge.us118

._crit_edge.us118:                                ; preds = %._crit_edge.us118.unr-lcssa, %._crit_edge.us118.epilog-lcssa
  %92 = add nuw nsw i64 %.192117.us, 1
  %exitcond132.not = icmp eq i64 %92, %1
  br i1 %exitcond132.not, label %.preheader106, label %.preheader107.us, !llvm.loop !18

.preheader106:                                    ; preds = %._crit_edge.us118
  br i1 %.not.not111, label %.preheader105.lr.ph, label %._crit_edge123.thread

.preheader105.lr.ph:                              ; preds = %.preheader106
  %93 = getelementptr inbounds i8, ptr %14, i64 72
  %94 = getelementptr inbounds i8, ptr %13, i64 72
  %xtraiter143 = and i64 %1, 1
  %95 = icmp eq i64 %25, 0
  %unroll_iter145 = and i64 %1, 9223372036854775806
  %lcmp.mod144.not = icmp eq i64 %xtraiter143, 0
  br label %.preheader105.us

.preheader105.us:                                 ; preds = %._crit_edge.us124, %.preheader105.lr.ph
  %.293122.us = phi i64 [ 0, %.preheader105.lr.ph ], [ %125, %._crit_edge.us124 ]
  br i1 %95, label %._crit_edge.us124.unr-lcssa, label %.preheader105.us.new

.preheader105.us.new:                             ; preds = %.preheader105.us, %.preheader105.us.new
  %.2120.us = phi i64 [ %115, %.preheader105.us.new ], [ 0, %.preheader105.us ]
  %niter146 = phi i64 [ %niter146.next.1, %.preheader105.us.new ], [ 0, %.preheader105.us ]
  %96 = load ptr, ptr %93, align 8, !tbaa !5
  %97 = getelementptr inbounds ptr, ptr %96, i64 %.293122.us
  %98 = load ptr, ptr %97, align 8, !tbaa !8
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %98, i64 %.2120.us, i32 1
  %100 = load double, ptr %99, align 8, !tbaa !19
  %101 = load ptr, ptr %94, align 8, !tbaa !5
  %102 = getelementptr inbounds ptr, ptr %101, i64 %.293122.us
  %103 = load ptr, ptr %102, align 8, !tbaa !8
  %104 = getelementptr inbounds double, ptr %103, i64 %.2120.us
  store double %100, ptr %104, align 8, !tbaa !13
  %105 = or disjoint i64 %.2120.us, 1
  %106 = load ptr, ptr %93, align 8, !tbaa !5
  %107 = getelementptr inbounds ptr, ptr %106, i64 %.293122.us
  %108 = load ptr, ptr %107, align 8, !tbaa !8
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %108, i64 %105, i32 1
  %110 = load double, ptr %109, align 8, !tbaa !19
  %111 = load ptr, ptr %94, align 8, !tbaa !5
  %112 = getelementptr inbounds ptr, ptr %111, i64 %.293122.us
  %113 = load ptr, ptr %112, align 8, !tbaa !8
  %114 = getelementptr inbounds double, ptr %113, i64 %105
  store double %110, ptr %114, align 8, !tbaa !13
  %115 = add nuw nsw i64 %.2120.us, 2
  %niter146.next.1 = add i64 %niter146, 2
  %niter146.ncmp.1 = icmp eq i64 %niter146.next.1, %unroll_iter145
  br i1 %niter146.ncmp.1, label %._crit_edge.us124.unr-lcssa, label %.preheader105.us.new, !llvm.loop !20

._crit_edge.us124.unr-lcssa:                      ; preds = %.preheader105.us.new, %.preheader105.us
  %.2120.us.unr = phi i64 [ 0, %.preheader105.us ], [ %115, %.preheader105.us.new ]
  br i1 %lcmp.mod144.not, label %._crit_edge.us124, label %._crit_edge.us124.epilog-lcssa

._crit_edge.us124.epilog-lcssa:                   ; preds = %._crit_edge.us124.unr-lcssa
  %116 = load ptr, ptr %93, align 8, !tbaa !5
  %117 = getelementptr inbounds ptr, ptr %116, i64 %.293122.us
  %118 = load ptr, ptr %117, align 8, !tbaa !8
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %118, i64 %.2120.us.unr, i32 1
  %120 = load double, ptr %119, align 8, !tbaa !19
  %121 = load ptr, ptr %94, align 8, !tbaa !5
  %122 = getelementptr inbounds ptr, ptr %121, i64 %.293122.us
  %123 = load ptr, ptr %122, align 8, !tbaa !8
  %124 = getelementptr inbounds double, ptr %123, i64 %.2120.us.unr
  store double %120, ptr %124, align 8, !tbaa !13
  br label %._crit_edge.us124

._crit_edge.us124:                                ; preds = %._crit_edge.us124.unr-lcssa, %._crit_edge.us124.epilog-lcssa
  %125 = add nuw nsw i64 %.293122.us, 1
  %exitcond134.not = icmp eq i64 %125, %1
  br i1 %exitcond134.not, label %._crit_edge123, label %.preheader105.us, !llvm.loop !21

._crit_edge123.thread:                            ; preds = %.preheader106, %._crit_edge113.thread, %._crit_edge113
  call void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %1, i64 noundef %1, double noundef 1.000000e+00, ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %13, i64 noundef 0, i64 noundef %1, ptr noundef %6)
  br label %.loopexit

._crit_edge123:                                   ; preds = %._crit_edge.us124
  call void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %1, i64 noundef %1, double noundef 1.000000e+00, ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %13, i64 noundef 0, i64 noundef %1, ptr noundef %6)
  br i1 %.not.not111, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %._crit_edge123
  %126 = getelementptr inbounds i8, ptr %13, i64 72
  %127 = getelementptr inbounds i8, ptr %5, i64 72
  %xtraiter148 = and i64 %1, 1
  %128 = icmp eq i64 %25, 0
  %unroll_iter150 = and i64 %1, 9223372036854775806
  %lcmp.mod149.not = icmp eq i64 %xtraiter148, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge.us129, %.preheader.lr.ph
  %.394128.us = phi i64 [ 0, %.preheader.lr.ph ], [ %161, %._crit_edge.us129 ]
  br i1 %128, label %._crit_edge.us129.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.3126.us = phi i64 [ %150, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter151 = phi i64 [ %niter151.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %129 = load ptr, ptr %126, align 8, !tbaa !5
  %130 = getelementptr inbounds ptr, ptr %129, i64 %.394128.us
  %131 = load ptr, ptr %130, align 8, !tbaa !8
  %132 = getelementptr double, ptr %131, i64 %.3126.us
  %133 = getelementptr double, ptr %132, i64 %1
  %134 = load double, ptr %133, align 8, !tbaa !13
  %135 = load ptr, ptr %127, align 8, !tbaa !5
  %136 = getelementptr inbounds ptr, ptr %135, i64 %.394128.us
  %137 = load ptr, ptr %136, align 8, !tbaa !8
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %137, i64 %.3126.us, i32 1
  store double %134, ptr %138, align 8, !tbaa !19
  %139 = or disjoint i64 %.3126.us, 1
  %140 = load ptr, ptr %126, align 8, !tbaa !5
  %141 = getelementptr inbounds ptr, ptr %140, i64 %.394128.us
  %142 = load ptr, ptr %141, align 8, !tbaa !8
  %143 = getelementptr double, ptr %142, i64 %139
  %144 = getelementptr double, ptr %143, i64 %1
  %145 = load double, ptr %144, align 8, !tbaa !13
  %146 = load ptr, ptr %127, align 8, !tbaa !5
  %147 = getelementptr inbounds ptr, ptr %146, i64 %.394128.us
  %148 = load ptr, ptr %147, align 8, !tbaa !8
  %149 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %148, i64 %139, i32 1
  store double %145, ptr %149, align 8, !tbaa !19
  %150 = add nuw nsw i64 %.3126.us, 2
  %niter151.next.1 = add i64 %niter151, 2
  %niter151.ncmp.1 = icmp eq i64 %niter151.next.1, %unroll_iter150
  br i1 %niter151.ncmp.1, label %._crit_edge.us129.unr-lcssa, label %.preheader.us.new, !llvm.loop !22

._crit_edge.us129.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.3126.us.unr = phi i64 [ 0, %.preheader.us ], [ %150, %.preheader.us.new ]
  br i1 %lcmp.mod149.not, label %._crit_edge.us129, label %._crit_edge.us129.epilog-lcssa

._crit_edge.us129.epilog-lcssa:                   ; preds = %._crit_edge.us129.unr-lcssa
  %151 = load ptr, ptr %126, align 8, !tbaa !5
  %152 = getelementptr inbounds ptr, ptr %151, i64 %.394128.us
  %153 = load ptr, ptr %152, align 8, !tbaa !8
  %154 = getelementptr double, ptr %153, i64 %.3126.us.unr
  %155 = getelementptr double, ptr %154, i64 %1
  %156 = load double, ptr %155, align 8, !tbaa !13
  %157 = load ptr, ptr %127, align 8, !tbaa !5
  %158 = getelementptr inbounds ptr, ptr %157, i64 %.394128.us
  %159 = load ptr, ptr %158, align 8, !tbaa !8
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %159, i64 %.3126.us.unr, i32 1
  store double %156, ptr %160, align 8, !tbaa !19
  br label %._crit_edge.us129

._crit_edge.us129:                                ; preds = %._crit_edge.us129.unr-lcssa, %._crit_edge.us129.epilog-lcssa
  %161 = add nuw nsw i64 %.394128.us, 1
  %exitcond136.not = icmp eq i64 %161, %1
  br i1 %exitcond136.not, label %.loopexit, label %.preheader.us, !llvm.loop !23

.loopexit:                                        ; preds = %._crit_edge.us129, %._crit_edge123.thread, %._crit_edge123, %18
  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 80, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  ret i1 %19
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl12smatrixtdevdEPNS_9ae_vectorEPKS0_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #3

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #3

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

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

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

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


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