; 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.370 = external hidden unnamed_addr constant [59 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_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_impl11hmatrixevdiEPNS_9ae_matrixEllbllPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i1 noundef zeroext %3, i64 noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #3 {
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i8, align 1
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.alglib_impl::ae_frame", align 8
  %20 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %21 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %22 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca %"struct.alglib_impl::ae_vector", align 8
  %25 = alloca %"struct.alglib_impl::ae_vector", align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca double, align 8
  %29 = alloca i64, align 8
  %30 = alloca i8, align 1
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i64 %1, ptr %11, align 8, !tbaa !9
  store i64 %2, ptr %12, align 8, !tbaa !9
  %31 = zext i1 %3 to i8
  store i8 %31, ptr %13, align 1, !tbaa !11
  store i64 %4, ptr %14, align 8, !tbaa !9
  store i64 %5, ptr %15, align 8, !tbaa !9
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, 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 80, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #4
  %32 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %32, ptr noundef %19)
  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)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 64, i1 false)
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef %20, ptr noundef %33, ptr noundef %34, i1 noundef zeroext true)
  store ptr %20, ptr %10, align 8, !tbaa !5
  %35 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %35)
  %36 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %36)
  %37 = load ptr, ptr %18, 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 %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 4, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %24, i64 noundef 0, i64 noundef 3, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %25, i64 noundef 0, i64 noundef 3, ptr noundef %41, i1 noundef zeroext true)
  %42 = load i64, ptr %12, align 8, !tbaa !9
  %43 = icmp eq i64 %42, 0
  br i1 %43, label %47, label %44

44:                                               ; preds = %9
  %45 = load i64, ptr %12, align 8, !tbaa !9
  %46 = icmp eq i64 %45, 1
  br label %47

47:                                               ; preds = %44, %9
  %48 = phi i1 [ true, %9 ], [ %46, %44 ]
  %49 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.370, ptr noundef %49)
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = load i64, ptr %11, align 8, !tbaa !9
  %52 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %53 = trunc i8 %52 to i1
  %54 = load ptr, ptr %16, align 8, !tbaa !5
  %55 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9hmatrixtdEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef %50, i64 noundef %51, i1 noundef zeroext %53, ptr noundef %23, ptr noundef %54, ptr noundef %24, ptr noundef %55)
  %56 = load i64, ptr %12, align 8, !tbaa !9
  %57 = icmp eq i64 %56, 1
  br i1 %57, label %58, label %64

58:                                               ; preds = %47
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = load i64, ptr %11, align 8, !tbaa !9
  %61 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %62 = trunc i8 %61 to i1
  %63 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl16hmatrixtdunpackqEPNS_9ae_matrixElbPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %59, i64 noundef %60, i1 noundef zeroext %62, ptr noundef %23, ptr noundef %21, ptr noundef %63)
  store i64 2, ptr %12, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %58, %47
  %65 = load ptr, ptr %16, align 8, !tbaa !5
  %66 = load i64, ptr %11, align 8, !tbaa !9
  %67 = load i64, ptr %12, align 8, !tbaa !9
  %68 = load i64, ptr %14, align 8, !tbaa !9
  %69 = load i64, ptr %15, align 8, !tbaa !9
  %70 = load ptr, ptr %18, align 8, !tbaa !5
  %71 = call noundef zeroext i1 @_ZN11alglib_impl13smatrixtdevdiEPNS_9ae_vectorES1_llllPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %65, ptr noundef %24, i64 noundef %66, i64 noundef %67, i64 noundef %68, i64 noundef %69, ptr noundef %22, ptr noundef %70)
  %72 = zext i1 %71 to i8
  store i8 %72, ptr %30, align 1, !tbaa !11
  %73 = load i64, ptr %15, align 8, !tbaa !9
  %74 = load i64, ptr %14, align 8, !tbaa !9
  %75 = sub nsw i64 %73, %74
  %76 = add nsw i64 %75, 1
  store i64 %76, ptr %29, align 8, !tbaa !9
  %77 = load i8, ptr %30, align 1, !tbaa !11, !range !13, !noundef !14
  %78 = trunc i8 %77 to i1
  br i1 %78, label %79, label %245

79:                                               ; preds = %64
  %80 = load i64, ptr %12, align 8, !tbaa !9
  %81 = icmp ne i64 %80, 0
  br i1 %81, label %82, label %245

82:                                               ; preds = %79
  %83 = load i64, ptr %29, align 8, !tbaa !9
  %84 = sub nsw i64 %83, 1
  %85 = add nsw i64 %84, 1
  %86 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef %85, ptr noundef %86)
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  %88 = load i64, ptr %11, align 8, !tbaa !9
  %89 = sub nsw i64 %88, 1
  %90 = add nsw i64 %89, 1
  %91 = load i64, ptr %29, align 8, !tbaa !9
  %92 = sub nsw i64 %91, 1
  %93 = add nsw i64 %92, 1
  %94 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %87, i64 noundef %90, i64 noundef %93, ptr noundef %94)
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %241, %82
  %96 = load i64, ptr %26, align 8, !tbaa !9
  %97 = load i64, ptr %11, align 8, !tbaa !9
  %98 = sub nsw i64 %97, 1
  %99 = icmp sle i64 %96, %98
  br i1 %99, label %100, label %244

100:                                              ; preds = %95
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %101

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

106:                                              ; preds = %101
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !15
  %109 = load i64, ptr %27, align 8, !tbaa !9
  %110 = getelementptr inbounds double, ptr %108, i64 %109
  store double 0.000000e+00, ptr %110, align 8, !tbaa !16
  br label %111

111:                                              ; preds = %106
  %112 = load i64, ptr %27, align 8, !tbaa !9
  %113 = add nsw i64 %112, 1
  store i64 %113, ptr %27, align 8, !tbaa !9
  br label %101, !llvm.loop !18

114:                                              ; preds = %101
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %115

115:                                              ; preds = %143, %114
  %116 = load i64, ptr %27, align 8, !tbaa !9
  %117 = load i64, ptr %11, align 8, !tbaa !9
  %118 = sub nsw i64 %117, 1
  %119 = icmp sle i64 %116, %118
  br i1 %119, label %120, label %146

120:                                              ; preds = %115
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %122 = load ptr, ptr %121, align 8, !tbaa !15
  %123 = load i64, ptr %26, align 8, !tbaa !9
  %124 = getelementptr inbounds ptr, ptr %122, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = load i64, ptr %27, align 8, !tbaa !9
  %127 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %125, i64 %126
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %127, i32 0, i32 0
  %129 = load double, ptr %128, align 8, !tbaa !20
  store double %129, ptr %28, align 8, !tbaa !16
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !15
  %132 = getelementptr inbounds double, ptr %131, i64 0
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %134 = load ptr, ptr %133, align 8, !tbaa !15
  %135 = load i64, ptr %27, align 8, !tbaa !9
  %136 = getelementptr inbounds ptr, ptr %134, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = getelementptr inbounds double, ptr %137, i64 0
  %139 = load i64, ptr %29, align 8, !tbaa !9
  %140 = sub nsw i64 %139, 1
  %141 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %140)
  %142 = load double, ptr %28, align 8, !tbaa !16
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %132, i64 noundef 1, ptr noundef %138, i64 noundef 1, i64 noundef %141, double noundef %142)
  br label %143

143:                                              ; preds = %120
  %144 = load i64, ptr %27, align 8, !tbaa !9
  %145 = add nsw i64 %144, 1
  store i64 %145, ptr %27, align 8, !tbaa !9
  br label %115, !llvm.loop !22

146:                                              ; preds = %115
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %147

147:                                              ; preds = %167, %146
  %148 = load i64, ptr %27, align 8, !tbaa !9
  %149 = load i64, ptr %29, align 8, !tbaa !9
  %150 = sub nsw i64 %149, 1
  %151 = icmp sle i64 %148, %150
  br i1 %151, label %152, label %170

152:                                              ; preds = %147
  %153 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %154 = load ptr, ptr %153, align 8, !tbaa !15
  %155 = load i64, ptr %27, align 8, !tbaa !9
  %156 = getelementptr inbounds double, ptr %154, i64 %155
  %157 = load double, ptr %156, align 8, !tbaa !16
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %158, i32 0, i32 6
  %160 = load ptr, ptr %159, align 8, !tbaa !15
  %161 = load i64, ptr %26, align 8, !tbaa !9
  %162 = getelementptr inbounds ptr, ptr %160, i64 %161
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  %164 = load i64, ptr %27, align 8, !tbaa !9
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %163, i64 %164
  %166 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %165, i32 0, i32 0
  store double %157, ptr %166, align 8, !tbaa !20
  br label %167

167:                                              ; preds = %152
  %168 = load i64, ptr %27, align 8, !tbaa !9
  %169 = add nsw i64 %168, 1
  store i64 %169, ptr %27, align 8, !tbaa !9
  br label %147, !llvm.loop !23

170:                                              ; preds = %147
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %171

171:                                              ; preds = %181, %170
  %172 = load i64, ptr %27, align 8, !tbaa !9
  %173 = load i64, ptr %29, align 8, !tbaa !9
  %174 = sub nsw i64 %173, 1
  %175 = icmp sle i64 %172, %174
  br i1 %175, label %176, label %184

176:                                              ; preds = %171
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !15
  %179 = load i64, ptr %27, align 8, !tbaa !9
  %180 = getelementptr inbounds double, ptr %178, i64 %179
  store double 0.000000e+00, ptr %180, align 8, !tbaa !16
  br label %181

181:                                              ; preds = %176
  %182 = load i64, ptr %27, align 8, !tbaa !9
  %183 = add nsw i64 %182, 1
  store i64 %183, ptr %27, align 8, !tbaa !9
  br label %171, !llvm.loop !24

184:                                              ; preds = %171
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %185

185:                                              ; preds = %213, %184
  %186 = load i64, ptr %27, align 8, !tbaa !9
  %187 = load i64, ptr %11, align 8, !tbaa !9
  %188 = sub nsw i64 %187, 1
  %189 = icmp sle i64 %186, %188
  br i1 %189, label %190, label %216

190:                                              ; preds = %185
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %192 = load ptr, ptr %191, align 8, !tbaa !15
  %193 = load i64, ptr %26, align 8, !tbaa !9
  %194 = getelementptr inbounds ptr, ptr %192, i64 %193
  %195 = load ptr, ptr %194, align 8, !tbaa !5
  %196 = load i64, ptr %27, align 8, !tbaa !9
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %195, i64 %196
  %198 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %197, i32 0, i32 1
  %199 = load double, ptr %198, align 8, !tbaa !25
  store double %199, ptr %28, align 8, !tbaa !16
  %200 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %201 = load ptr, ptr %200, align 8, !tbaa !15
  %202 = getelementptr inbounds double, ptr %201, i64 0
  %203 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %204 = load ptr, ptr %203, align 8, !tbaa !15
  %205 = load i64, ptr %27, align 8, !tbaa !9
  %206 = getelementptr inbounds ptr, ptr %204, i64 %205
  %207 = load ptr, ptr %206, align 8, !tbaa !5
  %208 = getelementptr inbounds double, ptr %207, i64 0
  %209 = load i64, ptr %29, align 8, !tbaa !9
  %210 = sub nsw i64 %209, 1
  %211 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %210)
  %212 = load double, ptr %28, align 8, !tbaa !16
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %202, i64 noundef 1, ptr noundef %208, i64 noundef 1, i64 noundef %211, double noundef %212)
  br label %213

213:                                              ; preds = %190
  %214 = load i64, ptr %27, align 8, !tbaa !9
  %215 = add nsw i64 %214, 1
  store i64 %215, ptr %27, align 8, !tbaa !9
  br label %185, !llvm.loop !26

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

217:                                              ; preds = %237, %216
  %218 = load i64, ptr %27, align 8, !tbaa !9
  %219 = load i64, ptr %29, align 8, !tbaa !9
  %220 = sub nsw i64 %219, 1
  %221 = icmp sle i64 %218, %220
  br i1 %221, label %222, label %240

222:                                              ; preds = %217
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !15
  %225 = load i64, ptr %27, align 8, !tbaa !9
  %226 = getelementptr inbounds double, ptr %224, i64 %225
  %227 = load double, ptr %226, align 8, !tbaa !16
  %228 = load ptr, ptr %17, align 8, !tbaa !5
  %229 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %228, i32 0, i32 6
  %230 = load ptr, ptr %229, align 8, !tbaa !15
  %231 = load i64, ptr %26, align 8, !tbaa !9
  %232 = getelementptr inbounds ptr, ptr %230, i64 %231
  %233 = load ptr, ptr %232, align 8, !tbaa !5
  %234 = load i64, ptr %27, align 8, !tbaa !9
  %235 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %233, i64 %234
  %236 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %235, i32 0, i32 1
  store double %227, ptr %236, align 8, !tbaa !25
  br label %237

237:                                              ; preds = %222
  %238 = load i64, ptr %27, align 8, !tbaa !9
  %239 = add nsw i64 %238, 1
  store i64 %239, ptr %27, align 8, !tbaa !9
  br label %217, !llvm.loop !27

240:                                              ; preds = %217
  br label %241

241:                                              ; preds = %240
  %242 = load i64, ptr %26, align 8, !tbaa !9
  %243 = add nsw i64 %242, 1
  store i64 %243, ptr %26, align 8, !tbaa !9
  br label %95, !llvm.loop !28

244:                                              ; preds = %95
  br label %245

245:                                              ; preds = %244, %79, %64
  %246 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %246)
  %247 = load i8, ptr %30, align 1, !tbaa !11, !range !13, !noundef !14
  %248 = trunc i8 %247 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 80, 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 32, ptr %19) #4
  ret i1 %248
}

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare void @_ZN11alglib_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, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !17, i64 0}
!21 = !{!"_ZTSN11alglib_impl10ae_complexE", !17, i64 0, !17, i64 8}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = !{!21, !17, i64 8}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !19}


; 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.370 = external hidden unnamed_addr constant [59 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_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_impl11hmatrixevdiEPNS_9ae_matrixEllbllPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i1 noundef zeroext %3, i64 noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #3 {
  %10 = alloca %"struct.alglib_impl::ae_frame", align 8
  %11 = alloca %"struct.alglib_impl::ae_matrix", 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_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 80, 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 64, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %8, ptr noundef nonnull %10)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %11, i8 0, i64 80, 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(64) %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %16, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef nonnull %11, ptr noundef %0, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %6)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %7)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %8, 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 %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 4, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  %17 = icmp eq i64 %2, 1
  %18 = icmp ult i64 %2, 2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.370, ptr noundef %8)
  call void @_ZN11alglib_impl9hmatrixtdEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, i1 noundef zeroext %3, ptr noundef nonnull %14, ptr noundef %6, ptr noundef nonnull %15, ptr noundef %8)
  br i1 %17, label %19, label %20

19:                                               ; preds = %9
  call void @_ZN11alglib_impl16hmatrixtdunpackqEPNS_9ae_matrixElbPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, i1 noundef zeroext %3, ptr noundef nonnull %14, ptr noundef nonnull %12, ptr noundef %8)
  br label %20

20:                                               ; preds = %19, %9
  %.0 = phi i64 [ 2, %19 ], [ %2, %9 ]
  %21 = call noundef zeroext i1 @_ZN11alglib_impl13smatrixtdevdiEPNS_9ae_vectorES1_llllPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %6, ptr noundef nonnull %15, i64 noundef %1, i64 noundef %.0, i64 noundef %4, i64 noundef %5, ptr noundef nonnull %13, ptr noundef %8)
  %22 = sub i64 %5, %4
  %23 = icmp ne i64 %.0, 0
  %or.cond = and i1 %21, %23
  br i1 %or.cond, label %24, label %.loopexit

24:                                               ; preds = %20
  %25 = add nsw i64 %22, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %25, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %7, i64 noundef %1, i64 noundef %25, ptr noundef %8)
  %.not.not114 = icmp sgt i64 %1, 0
  br i1 %.not.not114, label %.preheader96.lr.ph, label %.loopexit

.preheader96.lr.ph:                               ; preds = %24
  %.not97 = icmp slt i64 %22, 0
  %26 = getelementptr inbounds i8, ptr %16, i64 56
  %27 = getelementptr inbounds i8, ptr %12, i64 72
  %28 = getelementptr inbounds i8, ptr %13, i64 72
  %29 = getelementptr inbounds i8, ptr %7, i64 72
  %30 = add i64 %5, 1
  %31 = sub i64 %30, %4
  %xtraiter = and i64 %31, 3
  %32 = icmp ult i64 %22, 3
  %unroll_iter = and i64 %31, -4
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %xtraiter123 = and i64 %31, 1
  %33 = icmp eq i64 %5, %4
  %unroll_iter126 = and i64 %31, -2
  %lcmp.mod125.not = icmp eq i64 %xtraiter123, 0
  %xtraiter128 = and i64 %31, 3
  %34 = icmp ult i64 %22, 3
  %unroll_iter131 = and i64 %31, -4
  %lcmp.mod130.not = icmp eq i64 %xtraiter128, 0
  %xtraiter133 = and i64 %31, 1
  %35 = icmp eq i64 %5, %4
  %unroll_iter136 = and i64 %31, -2
  %lcmp.mod135.not = icmp eq i64 %xtraiter133, 0
  br label %.preheader96

.preheader96:                                     ; preds = %.preheader96.lr.ph, %._crit_edge
  %.083115 = phi i64 [ 0, %.preheader96.lr.ph ], [ %134, %._crit_edge ]
  br i1 %.not97, label %.lr.ph101.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader96
  br i1 %32, label %.lr.ph101.preheader.loopexit.unr-lcssa, label %.lr.ph

.lr.ph101.preheader.loopexit.unr-lcssa:           ; preds = %.lr.ph, %.lr.ph.preheader
  %.08298.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %50, %.lr.ph ]
  br i1 %lcmp.mod.not, label %.lr.ph101.preheader, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.lr.ph101.preheader.loopexit.unr-lcssa, %.lr.ph.epil
  %.08298.epil = phi i64 [ %38, %.lr.ph.epil ], [ %.08298.unr, %.lr.ph101.preheader.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.lr.ph101.preheader.loopexit.unr-lcssa ]
  %36 = load ptr, ptr %26, align 8, !tbaa !5
  %37 = getelementptr inbounds double, ptr %36, i64 %.08298.epil
  store double 0.000000e+00, ptr %37, align 8, !tbaa !8
  %38 = add nuw i64 %.08298.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.lr.ph101.preheader, label %.lr.ph.epil, !llvm.loop !10

.lr.ph101.preheader:                              ; preds = %.lr.ph101.preheader.loopexit.unr-lcssa, %.lr.ph.epil, %.preheader96
  br label %.lr.ph101

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.08298 = phi i64 [ %50, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %39 = load ptr, ptr %26, align 8, !tbaa !5
  %40 = getelementptr inbounds double, ptr %39, i64 %.08298
  store double 0.000000e+00, ptr %40, align 8, !tbaa !8
  %41 = or disjoint i64 %.08298, 1
  %42 = load ptr, ptr %26, align 8, !tbaa !5
  %43 = getelementptr inbounds double, ptr %42, i64 %41
  store double 0.000000e+00, ptr %43, align 8, !tbaa !8
  %44 = or disjoint i64 %.08298, 2
  %45 = load ptr, ptr %26, align 8, !tbaa !5
  %46 = getelementptr inbounds double, ptr %45, i64 %44
  store double 0.000000e+00, ptr %46, align 8, !tbaa !8
  %47 = or disjoint i64 %.08298, 3
  %48 = load ptr, ptr %26, align 8, !tbaa !5
  %49 = getelementptr inbounds double, ptr %48, i64 %47
  store double 0.000000e+00, ptr %49, align 8, !tbaa !8
  %50 = add nuw i64 %.08298, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.lr.ph101.preheader.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !12

.preheader94:                                     ; preds = %.lr.ph101
  br i1 %.not97, label %.lr.ph110.preheader, label %.lr.ph104.preheader

.lr.ph104.preheader:                              ; preds = %.preheader94
  br i1 %33, label %.preheader93.unr-lcssa, label %.lr.ph104

.lr.ph101:                                        ; preds = %.lr.ph101.preheader, %.lr.ph101
  %.1100 = phi i64 [ %61, %.lr.ph101 ], [ 0, %.lr.ph101.preheader ]
  %51 = load ptr, ptr %27, align 8, !tbaa !5
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.083115
  %53 = load ptr, ptr %52, align 8, !tbaa !14
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %53, i64 %.1100
  %55 = load double, ptr %54, align 8, !tbaa !16
  %56 = load ptr, ptr %26, align 8, !tbaa !5
  %57 = load ptr, ptr %28, align 8, !tbaa !5
  %58 = getelementptr inbounds ptr, ptr %57, i64 %.1100
  %59 = load ptr, ptr %58, align 8, !tbaa !14
  %60 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %22)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %56, i64 noundef 1, ptr noundef %59, i64 noundef 1, i64 noundef %60, double noundef %55)
  %61 = add nuw nsw i64 %.1100, 1
  %exitcond117.not = icmp eq i64 %61, %1
  br i1 %exitcond117.not, label %.preheader94, label %.lr.ph101, !llvm.loop !18

.preheader93.unr-lcssa:                           ; preds = %.lr.ph104, %.lr.ph104.preheader
  %.2103.unr = phi i64 [ 0, %.lr.ph104.preheader ], [ %87, %.lr.ph104 ]
  br i1 %lcmp.mod125.not, label %.preheader93, label %.lr.ph104.epil

.lr.ph104.epil:                                   ; preds = %.preheader93.unr-lcssa
  %62 = load ptr, ptr %26, align 8, !tbaa !5
  %63 = getelementptr inbounds double, ptr %62, i64 %.2103.unr
  %64 = load double, ptr %63, align 8, !tbaa !8
  %65 = load ptr, ptr %29, align 8, !tbaa !5
  %66 = getelementptr inbounds ptr, ptr %65, i64 %.083115
  %67 = load ptr, ptr %66, align 8, !tbaa !14
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %67, i64 %.2103.unr
  store double %64, ptr %68, align 8, !tbaa !16
  br label %.preheader93

.preheader93:                                     ; preds = %.preheader93.unr-lcssa, %.lr.ph104.epil
  br i1 %.not97, label %.lr.ph110.preheader, label %.lr.ph107.preheader

.lr.ph107.preheader:                              ; preds = %.preheader93
  br i1 %34, label %.lr.ph110.preheader.loopexit.unr-lcssa, label %.lr.ph107

.lr.ph110.preheader.loopexit.unr-lcssa:           ; preds = %.lr.ph107, %.lr.ph107.preheader
  %.3106.unr = phi i64 [ 0, %.lr.ph107.preheader ], [ %99, %.lr.ph107 ]
  br i1 %lcmp.mod130.not, label %.lr.ph110.preheader, label %.lr.ph107.epil

.lr.ph107.epil:                                   ; preds = %.lr.ph110.preheader.loopexit.unr-lcssa, %.lr.ph107.epil
  %.3106.epil = phi i64 [ %71, %.lr.ph107.epil ], [ %.3106.unr, %.lr.ph110.preheader.loopexit.unr-lcssa ]
  %epil.iter129 = phi i64 [ %epil.iter129.next, %.lr.ph107.epil ], [ 0, %.lr.ph110.preheader.loopexit.unr-lcssa ]
  %69 = load ptr, ptr %26, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i64 %.3106.epil
  store double 0.000000e+00, ptr %70, align 8, !tbaa !8
  %71 = add nuw i64 %.3106.epil, 1
  %epil.iter129.next = add i64 %epil.iter129, 1
  %epil.iter129.cmp.not = icmp eq i64 %epil.iter129.next, %xtraiter128
  br i1 %epil.iter129.cmp.not, label %.lr.ph110.preheader, label %.lr.ph107.epil, !llvm.loop !19

.lr.ph110.preheader:                              ; preds = %.lr.ph110.preheader.loopexit.unr-lcssa, %.lr.ph107.epil, %.preheader94, %.preheader93
  br label %.lr.ph110

.lr.ph104:                                        ; preds = %.lr.ph104.preheader, %.lr.ph104
  %.2103 = phi i64 [ %87, %.lr.ph104 ], [ 0, %.lr.ph104.preheader ]
  %niter127 = phi i64 [ %niter127.next.1, %.lr.ph104 ], [ 0, %.lr.ph104.preheader ]
  %72 = load ptr, ptr %26, align 8, !tbaa !5
  %73 = getelementptr inbounds double, ptr %72, i64 %.2103
  %74 = load double, ptr %73, align 8, !tbaa !8
  %75 = load ptr, ptr %29, align 8, !tbaa !5
  %76 = getelementptr inbounds ptr, ptr %75, i64 %.083115
  %77 = load ptr, ptr %76, align 8, !tbaa !14
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %77, i64 %.2103
  store double %74, ptr %78, align 8, !tbaa !16
  %79 = or disjoint i64 %.2103, 1
  %80 = load ptr, ptr %26, align 8, !tbaa !5
  %81 = getelementptr inbounds double, ptr %80, i64 %79
  %82 = load double, ptr %81, align 8, !tbaa !8
  %83 = load ptr, ptr %29, align 8, !tbaa !5
  %84 = getelementptr inbounds ptr, ptr %83, i64 %.083115
  %85 = load ptr, ptr %84, align 8, !tbaa !14
  %86 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %85, i64 %79
  store double %82, ptr %86, align 8, !tbaa !16
  %87 = add nuw i64 %.2103, 2
  %niter127.next.1 = add i64 %niter127, 2
  %niter127.ncmp.1 = icmp eq i64 %niter127.next.1, %unroll_iter126
  br i1 %niter127.ncmp.1, label %.preheader93.unr-lcssa, label %.lr.ph104, !llvm.loop !20

.lr.ph107:                                        ; preds = %.lr.ph107.preheader, %.lr.ph107
  %.3106 = phi i64 [ %99, %.lr.ph107 ], [ 0, %.lr.ph107.preheader ]
  %niter132 = phi i64 [ %niter132.next.3, %.lr.ph107 ], [ 0, %.lr.ph107.preheader ]
  %88 = load ptr, ptr %26, align 8, !tbaa !5
  %89 = getelementptr inbounds double, ptr %88, i64 %.3106
  store double 0.000000e+00, ptr %89, align 8, !tbaa !8
  %90 = or disjoint i64 %.3106, 1
  %91 = load ptr, ptr %26, align 8, !tbaa !5
  %92 = getelementptr inbounds double, ptr %91, i64 %90
  store double 0.000000e+00, ptr %92, align 8, !tbaa !8
  %93 = or disjoint i64 %.3106, 2
  %94 = load ptr, ptr %26, align 8, !tbaa !5
  %95 = getelementptr inbounds double, ptr %94, i64 %93
  store double 0.000000e+00, ptr %95, align 8, !tbaa !8
  %96 = or disjoint i64 %.3106, 3
  %97 = load ptr, ptr %26, align 8, !tbaa !5
  %98 = getelementptr inbounds double, ptr %97, i64 %96
  store double 0.000000e+00, ptr %98, align 8, !tbaa !8
  %99 = add nuw i64 %.3106, 4
  %niter132.next.3 = add i64 %niter132, 4
  %niter132.ncmp.3 = icmp eq i64 %niter132.next.3, %unroll_iter131
  br i1 %niter132.ncmp.3, label %.lr.ph110.preheader.loopexit.unr-lcssa, label %.lr.ph107, !llvm.loop !21

.preheader:                                       ; preds = %.lr.ph110
  br i1 %.not97, label %._crit_edge, label %.lr.ph113.preheader

.lr.ph113.preheader:                              ; preds = %.preheader
  br i1 %35, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph113

.lr.ph110:                                        ; preds = %.lr.ph110.preheader, %.lr.ph110
  %.4109 = phi i64 [ %110, %.lr.ph110 ], [ 0, %.lr.ph110.preheader ]
  %100 = load ptr, ptr %27, align 8, !tbaa !5
  %101 = getelementptr inbounds ptr, ptr %100, i64 %.083115
  %102 = load ptr, ptr %101, align 8, !tbaa !14
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %102, i64 %.4109, i32 1
  %104 = load double, ptr %103, align 8, !tbaa !22
  %105 = load ptr, ptr %26, align 8, !tbaa !5
  %106 = load ptr, ptr %28, align 8, !tbaa !5
  %107 = getelementptr inbounds ptr, ptr %106, i64 %.4109
  %108 = load ptr, ptr %107, align 8, !tbaa !14
  %109 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %22)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %105, i64 noundef 1, ptr noundef %108, i64 noundef 1, i64 noundef %109, double noundef %104)
  %110 = add nuw nsw i64 %.4109, 1
  %exitcond120.not = icmp eq i64 %110, %1
  br i1 %exitcond120.not, label %.preheader, label %.lr.ph110, !llvm.loop !23

.lr.ph113:                                        ; preds = %.lr.ph113.preheader, %.lr.ph113
  %.5112 = phi i64 [ %126, %.lr.ph113 ], [ 0, %.lr.ph113.preheader ]
  %niter137 = phi i64 [ %niter137.next.1, %.lr.ph113 ], [ 0, %.lr.ph113.preheader ]
  %111 = load ptr, ptr %26, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %111, i64 %.5112
  %113 = load double, ptr %112, align 8, !tbaa !8
  %114 = load ptr, ptr %29, align 8, !tbaa !5
  %115 = getelementptr inbounds ptr, ptr %114, i64 %.083115
  %116 = load ptr, ptr %115, align 8, !tbaa !14
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %116, i64 %.5112, i32 1
  store double %113, ptr %117, align 8, !tbaa !22
  %118 = or disjoint i64 %.5112, 1
  %119 = load ptr, ptr %26, align 8, !tbaa !5
  %120 = getelementptr inbounds double, ptr %119, i64 %118
  %121 = load double, ptr %120, align 8, !tbaa !8
  %122 = load ptr, ptr %29, align 8, !tbaa !5
  %123 = getelementptr inbounds ptr, ptr %122, i64 %.083115
  %124 = load ptr, ptr %123, align 8, !tbaa !14
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %124, i64 %118, i32 1
  store double %121, ptr %125, align 8, !tbaa !22
  %126 = add nuw i64 %.5112, 2
  %niter137.next.1 = add i64 %niter137, 2
  %niter137.ncmp.1 = icmp eq i64 %niter137.next.1, %unroll_iter136
  br i1 %niter137.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph113, !llvm.loop !24

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph113, %.lr.ph113.preheader
  %.5112.unr = phi i64 [ 0, %.lr.ph113.preheader ], [ %126, %.lr.ph113 ]
  br i1 %lcmp.mod135.not, label %._crit_edge, label %.lr.ph113.epil

.lr.ph113.epil:                                   ; preds = %._crit_edge.loopexit.unr-lcssa
  %127 = load ptr, ptr %26, align 8, !tbaa !5
  %128 = getelementptr inbounds double, ptr %127, i64 %.5112.unr
  %129 = load double, ptr %128, align 8, !tbaa !8
  %130 = load ptr, ptr %29, align 8, !tbaa !5
  %131 = getelementptr inbounds ptr, ptr %130, i64 %.083115
  %132 = load ptr, ptr %131, align 8, !tbaa !14
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %132, i64 %.5112.unr, i32 1
  store double %129, ptr %133, align 8, !tbaa !22
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph113.epil, %._crit_edge.loopexit.unr-lcssa, %.preheader
  %134 = add nuw nsw i64 %.083115, 1
  %exitcond122.not = icmp eq i64 %134, %1
  br i1 %exitcond122.not, label %.loopexit, label %.preheader96, !llvm.loop !25

.loopexit:                                        ; preds = %._crit_edge, %24, %20
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 64, 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 80, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  ret i1 %21
}

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_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 = !{!"double", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.unroll.disable"}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !6, i64 0}
!16 = !{!17, !9, i64 0}
!17 = !{!"_ZTSN11alglib_impl10ae_complexE", !9, i64 0, !9, i64 8}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = !{!17, !9, i64 8}
!23 = distinct !{!23, !13}
!24 = distinct !{!24, !13}
!25 = distinct !{!25, !13}


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