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

@.str.368 = 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_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) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl10hmatrixevdEPNS_9ae_matrixEllbPNS_9ae_vectorES1_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) #3 {
  %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_matrixES1_PNS_8ae_stateEb(ptr noundef %16, ptr noundef %27, ptr noundef %28, i1 noundef zeroext true)
  store ptr %16, ptr %8, align 8, !tbaa !5
  %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.368, ptr noundef %43)
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = load i64, ptr %9, align 8, !tbaa !9
  %46 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %47 = trunc i8 %46 to i1
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9hmatrixtdEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef %44, i64 noundef %45, i1 noundef zeroext %47, ptr noundef %17, ptr noundef %48, ptr noundef %18, ptr noundef %49)
  %50 = load i64, ptr %10, align 8, !tbaa !9
  %51 = icmp eq i64 %50, 1
  br i1 %51, label %52, label %58

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

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

67:                                               ; preds = %58
  %68 = load i64, ptr %10, align 8, !tbaa !9
  %69 = icmp ne i64 %68, 0
  br i1 %69, label %70, label %239

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

79:                                               ; preds = %111, %70
  %80 = load i64, ptr %22, align 8, !tbaa !9
  %81 = load i64, ptr %9, align 8, !tbaa !9
  %82 = sub nsw i64 %81, 1
  %83 = icmp sle i64 %80, %82
  br i1 %83, label %84, label %114

84:                                               ; preds = %79
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %107, %84
  %86 = load i64, ptr %23, align 8, !tbaa !9
  %87 = load i64, ptr %9, align 8, !tbaa !9
  %88 = sub nsw i64 %87, 1
  %89 = icmp sle i64 %86, %88
  br i1 %89, label %90, label %110

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

107:                                              ; preds = %90
  %108 = load i64, ptr %23, align 8, !tbaa !9
  %109 = add nsw i64 %108, 1
  store i64 %109, ptr %23, align 8, !tbaa !9
  br label %85, !llvm.loop !20

110:                                              ; preds = %85
  br label %111

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

114:                                              ; preds = %79
  %115 = load i64, ptr %9, align 8, !tbaa !9
  %116 = load i64, ptr %9, align 8, !tbaa !9
  %117 = load i64, ptr %9, align 8, !tbaa !9
  %118 = load i64, ptr %9, align 8, !tbaa !9
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %115, i64 noundef %116, i64 noundef %117, 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 %118, ptr noundef %119)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %155, %114
  %121 = load i64, ptr %22, align 8, !tbaa !9
  %122 = load i64, ptr %9, align 8, !tbaa !9
  %123 = sub nsw i64 %122, 1
  %124 = icmp sle i64 %121, %123
  br i1 %124, label %125, label %158

125:                                              ; preds = %120
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %126

126:                                              ; preds = %151, %125
  %127 = load i64, ptr %23, align 8, !tbaa !9
  %128 = load i64, ptr %9, align 8, !tbaa !9
  %129 = sub nsw i64 %128, 1
  %130 = icmp sle i64 %127, %129
  br i1 %130, label %131, label %154

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

151:                                              ; preds = %131
  %152 = load i64, ptr %23, align 8, !tbaa !9
  %153 = add nsw i64 %152, 1
  store i64 %153, ptr %23, align 8, !tbaa !9
  br label %126, !llvm.loop !23

154:                                              ; preds = %126
  br label %155

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

158:                                              ; preds = %120
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %159

159:                                              ; preds = %191, %158
  %160 = load i64, ptr %22, align 8, !tbaa !9
  %161 = load i64, ptr %9, align 8, !tbaa !9
  %162 = sub nsw i64 %161, 1
  %163 = icmp sle i64 %160, %162
  br i1 %163, label %164, label %194

164:                                              ; preds = %159
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %165

165:                                              ; preds = %187, %164
  %166 = load i64, ptr %23, align 8, !tbaa !9
  %167 = load i64, ptr %9, align 8, !tbaa !9
  %168 = sub nsw i64 %167, 1
  %169 = icmp sle i64 %166, %168
  br i1 %169, label %170, label %190

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

187:                                              ; preds = %170
  %188 = load i64, ptr %23, align 8, !tbaa !9
  %189 = add nsw i64 %188, 1
  store i64 %189, ptr %23, align 8, !tbaa !9
  br label %165, !llvm.loop !26

190:                                              ; preds = %165
  br label %191

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

194:                                              ; preds = %159
  %195 = load i64, ptr %9, align 8, !tbaa !9
  %196 = load i64, ptr %9, align 8, !tbaa !9
  %197 = load i64, ptr %9, align 8, !tbaa !9
  %198 = load i64, ptr %9, align 8, !tbaa !9
  %199 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %195, i64 noundef %196, i64 noundef %197, 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 %198, ptr noundef %199)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %200

200:                                              ; preds = %235, %194
  %201 = load i64, ptr %22, align 8, !tbaa !9
  %202 = load i64, ptr %9, align 8, !tbaa !9
  %203 = sub nsw i64 %202, 1
  %204 = icmp sle i64 %201, %203
  br i1 %204, label %205, label %238

205:                                              ; preds = %200
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %206

206:                                              ; preds = %231, %205
  %207 = load i64, ptr %23, align 8, !tbaa !9
  %208 = load i64, ptr %9, align 8, !tbaa !9
  %209 = sub nsw i64 %208, 1
  %210 = icmp sle i64 %207, %209
  br i1 %210, label %211, label %234

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

231:                                              ; preds = %211
  %232 = load i64, ptr %23, align 8, !tbaa !9
  %233 = add nsw i64 %232, 1
  store i64 %233, ptr %23, align 8, !tbaa !9
  br label %206, !llvm.loop !28

234:                                              ; preds = %206
  br label %235

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

238:                                              ; preds = %200
  br label %239

239:                                              ; preds = %238, %67, %58
  %240 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %240)
  %241 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %242 = trunc i8 %241 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 %242
}

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

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

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_complex" = type { double, double }

@.str.368 = 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_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 #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl10hmatrixevdEPNS_9ae_matrixEllbPNS_9ae_vectorES1_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 #3 {
  %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_matrixES1_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.368, 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_impl16hmatrixtdunpackqEPNS_9ae_matrixElbPNS_9ae_vectorES1_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
  %.096 = phi i64 [ 2, %17 ], [ %2, %7 ]
  %19 = call noundef zeroext i1 @_ZN11alglib_impl12smatrixtdevdEPNS_9ae_vectorES1_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %4, ptr noundef nonnull %11, i64 noundef %1, i64 noundef %.096, ptr noundef nonnull %12, ptr noundef %6)
  %20 = icmp ne i64 %.096, 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.not113 = icmp sgt i64 %1, 0
  br i1 %.not.not113, label %.preheader110.lr.ph, label %._crit_edge115.thread

._crit_edge115.thread:                            ; preds = %21
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_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_edge125.thread

.preheader110.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 %.preheader110.us

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

.preheader110.us.new:                             ; preds = %.preheader110.us, %.preheader110.us.new
  %.0112.us = phi i64 [ %46, %.preheader110.us.new ], [ 0, %.preheader110.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader110.us.new ], [ 0, %.preheader110.us ]
  %27 = load ptr, ptr %23, align 8, !tbaa !5
  %28 = getelementptr inbounds ptr, ptr %27, i64 %.092114.us
  %29 = load ptr, ptr %28, align 8, !tbaa !8
  %30 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %29, i64 %.0112.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 %.092114.us
  %34 = load ptr, ptr %33, align 8, !tbaa !8
  %35 = getelementptr inbounds double, ptr %34, i64 %.0112.us
  store double %31, ptr %35, align 8, !tbaa !13
  %36 = or disjoint i64 %.0112.us, 1
  %37 = load ptr, ptr %23, align 8, !tbaa !5
  %38 = getelementptr inbounds ptr, ptr %37, i64 %.092114.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 %.092114.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 %.0112.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 %.preheader110.us.new, !llvm.loop !14

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader110.us.new, %.preheader110.us
  %.0112.us.unr = phi i64 [ 0, %.preheader110.us ], [ %46, %.preheader110.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 %.092114.us
  %49 = load ptr, ptr %48, align 8, !tbaa !8
  %50 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %49, i64 %.0112.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 %.092114.us
  %54 = load ptr, ptr %53, align 8, !tbaa !8
  %55 = getelementptr inbounds double, ptr %54, i64 %.0112.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 %.092114.us, 1
  %exitcond132.not = icmp eq i64 %56, %1
  br i1 %exitcond132.not, label %._crit_edge115, label %.preheader110.us, !llvm.loop !16

._crit_edge115:                                   ; preds = %._crit_edge.us
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_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.not113, label %.preheader109.lr.ph, label %._crit_edge125.thread

.preheader109.lr.ph:                              ; preds = %._crit_edge115
  %57 = getelementptr inbounds i8, ptr %13, i64 72
  %58 = getelementptr inbounds i8, ptr %5, i64 72
  %xtraiter140 = and i64 %1, 1
  %59 = icmp eq i64 %25, 0
  %unroll_iter142 = and i64 %1, 9223372036854775806
  %lcmp.mod141.not = icmp eq i64 %xtraiter140, 0
  br label %.preheader109.us

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

.preheader109.us.new:                             ; preds = %.preheader109.us, %.preheader109.us.new
  %.1117.us = phi i64 [ %81, %.preheader109.us.new ], [ 0, %.preheader109.us ]
  %niter143 = phi i64 [ %niter143.next.1, %.preheader109.us.new ], [ 0, %.preheader109.us ]
  %60 = load ptr, ptr %57, align 8, !tbaa !5
  %61 = getelementptr inbounds ptr, ptr %60, i64 %.193119.us
  %62 = load ptr, ptr %61, align 8, !tbaa !8
  %63 = getelementptr double, ptr %62, i64 %.1117.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 %.193119.us
  %68 = load ptr, ptr %67, align 8, !tbaa !8
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %68, i64 %.1117.us
  store double %65, ptr %69, align 8, !tbaa !10
  %70 = or disjoint i64 %.1117.us, 1
  %71 = load ptr, ptr %57, align 8, !tbaa !5
  %72 = getelementptr inbounds ptr, ptr %71, i64 %.193119.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 %.193119.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 %.1117.us, 2
  %niter143.next.1 = add i64 %niter143, 2
  %niter143.ncmp.1 = icmp eq i64 %niter143.next.1, %unroll_iter142
  br i1 %niter143.ncmp.1, label %._crit_edge.us120.unr-lcssa, label %.preheader109.us.new, !llvm.loop !17

._crit_edge.us120.unr-lcssa:                      ; preds = %.preheader109.us.new, %.preheader109.us
  %.1117.us.unr = phi i64 [ 0, %.preheader109.us ], [ %81, %.preheader109.us.new ]
  br i1 %lcmp.mod141.not, label %._crit_edge.us120, label %._crit_edge.us120.epilog-lcssa

._crit_edge.us120.epilog-lcssa:                   ; preds = %._crit_edge.us120.unr-lcssa
  %82 = load ptr, ptr %57, align 8, !tbaa !5
  %83 = getelementptr inbounds ptr, ptr %82, i64 %.193119.us
  %84 = load ptr, ptr %83, align 8, !tbaa !8
  %85 = getelementptr double, ptr %84, i64 %.1117.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 %.193119.us
  %90 = load ptr, ptr %89, align 8, !tbaa !8
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %90, i64 %.1117.us.unr
  store double %87, ptr %91, align 8, !tbaa !10
  br label %._crit_edge.us120

._crit_edge.us120:                                ; preds = %._crit_edge.us120.unr-lcssa, %._crit_edge.us120.epilog-lcssa
  %92 = add nuw nsw i64 %.193119.us, 1
  %exitcond134.not = icmp eq i64 %92, %1
  br i1 %exitcond134.not, label %.preheader108, label %.preheader109.us, !llvm.loop !18

.preheader108:                                    ; preds = %._crit_edge.us120
  br i1 %.not.not113, label %.preheader107.lr.ph, label %._crit_edge125.thread

.preheader107.lr.ph:                              ; preds = %.preheader108
  %93 = getelementptr inbounds i8, ptr %14, i64 72
  %94 = getelementptr inbounds i8, ptr %13, i64 72
  %xtraiter145 = and i64 %1, 1
  %95 = icmp eq i64 %25, 0
  %unroll_iter147 = and i64 %1, 9223372036854775806
  %lcmp.mod146.not = icmp eq i64 %xtraiter145, 0
  br label %.preheader107.us

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

.preheader107.us.new:                             ; preds = %.preheader107.us, %.preheader107.us.new
  %.2122.us = phi i64 [ %115, %.preheader107.us.new ], [ 0, %.preheader107.us ]
  %niter148 = phi i64 [ %niter148.next.1, %.preheader107.us.new ], [ 0, %.preheader107.us ]
  %96 = load ptr, ptr %93, align 8, !tbaa !5
  %97 = getelementptr inbounds ptr, ptr %96, i64 %.294124.us
  %98 = load ptr, ptr %97, align 8, !tbaa !8
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %98, i64 %.2122.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 %.294124.us
  %103 = load ptr, ptr %102, align 8, !tbaa !8
  %104 = getelementptr inbounds double, ptr %103, i64 %.2122.us
  store double %100, ptr %104, align 8, !tbaa !13
  %105 = or disjoint i64 %.2122.us, 1
  %106 = load ptr, ptr %93, align 8, !tbaa !5
  %107 = getelementptr inbounds ptr, ptr %106, i64 %.294124.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 %.294124.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 %.2122.us, 2
  %niter148.next.1 = add i64 %niter148, 2
  %niter148.ncmp.1 = icmp eq i64 %niter148.next.1, %unroll_iter147
  br i1 %niter148.ncmp.1, label %._crit_edge.us126.unr-lcssa, label %.preheader107.us.new, !llvm.loop !20

._crit_edge.us126.unr-lcssa:                      ; preds = %.preheader107.us.new, %.preheader107.us
  %.2122.us.unr = phi i64 [ 0, %.preheader107.us ], [ %115, %.preheader107.us.new ]
  br i1 %lcmp.mod146.not, label %._crit_edge.us126, label %._crit_edge.us126.epilog-lcssa

._crit_edge.us126.epilog-lcssa:                   ; preds = %._crit_edge.us126.unr-lcssa
  %116 = load ptr, ptr %93, align 8, !tbaa !5
  %117 = getelementptr inbounds ptr, ptr %116, i64 %.294124.us
  %118 = load ptr, ptr %117, align 8, !tbaa !8
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %118, i64 %.2122.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 %.294124.us
  %123 = load ptr, ptr %122, align 8, !tbaa !8
  %124 = getelementptr inbounds double, ptr %123, i64 %.2122.us.unr
  store double %120, ptr %124, align 8, !tbaa !13
  br label %._crit_edge.us126

._crit_edge.us126:                                ; preds = %._crit_edge.us126.unr-lcssa, %._crit_edge.us126.epilog-lcssa
  %125 = add nuw nsw i64 %.294124.us, 1
  %exitcond136.not = icmp eq i64 %125, %1
  br i1 %exitcond136.not, label %._crit_edge125, label %.preheader107.us, !llvm.loop !21

._crit_edge125.thread:                            ; preds = %.preheader108, %._crit_edge115.thread, %._crit_edge115
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_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_edge125:                                   ; preds = %._crit_edge.us126
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_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.not113, label %.preheader.lr.ph, label %.loopexit

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

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

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.3128.us = phi i64 [ %150, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter153 = phi i64 [ %niter153.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %129 = load ptr, ptr %126, align 8, !tbaa !5
  %130 = getelementptr inbounds ptr, ptr %129, i64 %.395130.us
  %131 = load ptr, ptr %130, align 8, !tbaa !8
  %132 = getelementptr double, ptr %131, i64 %.3128.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 %.395130.us
  %137 = load ptr, ptr %136, align 8, !tbaa !8
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %137, i64 %.3128.us, i32 1
  store double %134, ptr %138, align 8, !tbaa !19
  %139 = or disjoint i64 %.3128.us, 1
  %140 = load ptr, ptr %126, align 8, !tbaa !5
  %141 = getelementptr inbounds ptr, ptr %140, i64 %.395130.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 %.395130.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 %.3128.us, 2
  %niter153.next.1 = add i64 %niter153, 2
  %niter153.ncmp.1 = icmp eq i64 %niter153.next.1, %unroll_iter152
  br i1 %niter153.ncmp.1, label %._crit_edge.us131.unr-lcssa, label %.preheader.us.new, !llvm.loop !22

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

._crit_edge.us131.epilog-lcssa:                   ; preds = %._crit_edge.us131.unr-lcssa
  %151 = load ptr, ptr %126, align 8, !tbaa !5
  %152 = getelementptr inbounds ptr, ptr %151, i64 %.395130.us
  %153 = load ptr, ptr %152, align 8, !tbaa !8
  %154 = getelementptr double, ptr %153, i64 %.3128.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 %.395130.us
  %159 = load ptr, ptr %158, align 8, !tbaa !8
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %159, i64 %.3128.us.unr, i32 1
  store double %156, ptr %160, align 8, !tbaa !19
  br label %._crit_edge.us131

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

.loopexit:                                        ; preds = %._crit_edge.us131, %._crit_edge125.thread, %._crit_edge125, %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_vectorES1_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !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