; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src (linalg)

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

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

@.str.325 = 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl11hmatrixevdiEPKNS_9ae_matrixEllbllPNS_9ae_vectorEPS0_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) #1 {
  %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_matrixEPKS0_PNS_8ae_stateEb(ptr noundef %20, ptr noundef %33, ptr noundef %34, i1 noundef zeroext true)
  %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.325, ptr noundef %49)
  %50 = load i64, ptr %11, align 8, !tbaa !9
  %51 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %52 = trunc i8 %51 to i1
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9hmatrixtdEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef %20, i64 noundef %50, i1 noundef zeroext %52, ptr noundef %23, ptr noundef %53, ptr noundef %24, ptr noundef %54)
  %55 = load i64, ptr %12, align 8, !tbaa !9
  %56 = icmp eq i64 %55, 1
  br i1 %56, label %57, label %62

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

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

77:                                               ; preds = %62
  %78 = load i64, ptr %12, align 8, !tbaa !9
  %79 = icmp ne i64 %78, 0
  br i1 %79, label %80, label %243

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

93:                                               ; preds = %239, %80
  %94 = load i64, ptr %26, align 8, !tbaa !9
  %95 = load i64, ptr %11, align 8, !tbaa !9
  %96 = sub nsw i64 %95, 1
  %97 = icmp sle i64 %94, %96
  br i1 %97, label %98, label %242

98:                                               ; preds = %93
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %99

99:                                               ; preds = %109, %98
  %100 = load i64, ptr %27, align 8, !tbaa !9
  %101 = load i64, ptr %29, align 8, !tbaa !9
  %102 = sub nsw i64 %101, 1
  %103 = icmp sle i64 %100, %102
  br i1 %103, label %104, label %112

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

109:                                              ; preds = %104
  %110 = load i64, ptr %27, align 8, !tbaa !9
  %111 = add nsw i64 %110, 1
  store i64 %111, ptr %27, align 8, !tbaa !9
  br label %99, !llvm.loop !18

112:                                              ; preds = %99
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %113

113:                                              ; preds = %141, %112
  %114 = load i64, ptr %27, align 8, !tbaa !9
  %115 = load i64, ptr %11, align 8, !tbaa !9
  %116 = sub nsw i64 %115, 1
  %117 = icmp sle i64 %114, %116
  br i1 %117, label %118, label %144

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

141:                                              ; preds = %118
  %142 = load i64, ptr %27, align 8, !tbaa !9
  %143 = add nsw i64 %142, 1
  store i64 %143, ptr %27, align 8, !tbaa !9
  br label %113, !llvm.loop !22

144:                                              ; preds = %113
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %145

145:                                              ; preds = %165, %144
  %146 = load i64, ptr %27, align 8, !tbaa !9
  %147 = load i64, ptr %29, align 8, !tbaa !9
  %148 = sub nsw i64 %147, 1
  %149 = icmp sle i64 %146, %148
  br i1 %149, label %150, label %168

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

165:                                              ; preds = %150
  %166 = load i64, ptr %27, align 8, !tbaa !9
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr %27, align 8, !tbaa !9
  br label %145, !llvm.loop !23

168:                                              ; preds = %145
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %169

169:                                              ; preds = %179, %168
  %170 = load i64, ptr %27, align 8, !tbaa !9
  %171 = load i64, ptr %29, align 8, !tbaa !9
  %172 = sub nsw i64 %171, 1
  %173 = icmp sle i64 %170, %172
  br i1 %173, label %174, label %182

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

179:                                              ; preds = %174
  %180 = load i64, ptr %27, align 8, !tbaa !9
  %181 = add nsw i64 %180, 1
  store i64 %181, ptr %27, align 8, !tbaa !9
  br label %169, !llvm.loop !24

182:                                              ; preds = %169
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %183

183:                                              ; preds = %211, %182
  %184 = load i64, ptr %27, align 8, !tbaa !9
  %185 = load i64, ptr %11, align 8, !tbaa !9
  %186 = sub nsw i64 %185, 1
  %187 = icmp sle i64 %184, %186
  br i1 %187, label %188, label %214

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

211:                                              ; preds = %188
  %212 = load i64, ptr %27, align 8, !tbaa !9
  %213 = add nsw i64 %212, 1
  store i64 %213, ptr %27, align 8, !tbaa !9
  br label %183, !llvm.loop !26

214:                                              ; preds = %183
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %215

215:                                              ; preds = %235, %214
  %216 = load i64, ptr %27, align 8, !tbaa !9
  %217 = load i64, ptr %29, align 8, !tbaa !9
  %218 = sub nsw i64 %217, 1
  %219 = icmp sle i64 %216, %218
  br i1 %219, label %220, label %238

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

235:                                              ; preds = %220
  %236 = load i64, ptr %27, align 8, !tbaa !9
  %237 = add nsw i64 %236, 1
  store i64 %237, ptr %27, align 8, !tbaa !9
  br label %215, !llvm.loop !27

238:                                              ; preds = %215
  br label %239

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

242:                                              ; preds = %93
  br label %243

243:                                              ; preds = %242, %77, %62
  %244 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %244)
  %245 = load i8, ptr %30, align 1, !tbaa !11, !range !13, !noundef !14
  %246 = trunc i8 %245 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 %246
}

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

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

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

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

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #3

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

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

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !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.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_complex" = type { double, double }

@.str.325 = 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl11hmatrixevdiEPKNS_9ae_matrixEllbllPNS_9ae_vectorEPS0_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 #1 {
  %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_matrixEPKS0_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.325, 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_impl16hmatrixtdunpackqEPKNS_9ae_matrixElbPKNS_9ae_vectorEPS0_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_vectorEPKS0_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.not112 = icmp sgt i64 %1, 0
  br i1 %.not.not112, label %.preheader94.lr.ph, label %.loopexit

.preheader94.lr.ph:                               ; preds = %24
  %.not95 = 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
  %xtraiter121 = and i64 %31, 1
  %33 = icmp eq i64 %5, %4
  %unroll_iter124 = and i64 %31, -2
  %lcmp.mod123.not = icmp eq i64 %xtraiter121, 0
  %xtraiter126 = and i64 %31, 3
  %34 = icmp ult i64 %22, 3
  %unroll_iter129 = and i64 %31, -4
  %lcmp.mod128.not = icmp eq i64 %xtraiter126, 0
  %xtraiter131 = and i64 %31, 1
  %35 = icmp eq i64 %5, %4
  %unroll_iter134 = and i64 %31, -2
  %lcmp.mod133.not = icmp eq i64 %xtraiter131, 0
  br label %.preheader94

.preheader94:                                     ; preds = %.preheader94.lr.ph, %._crit_edge
  %.080113 = phi i64 [ 0, %.preheader94.lr.ph ], [ %134, %._crit_edge ]
  br i1 %.not95, label %.lr.ph99.preheader, label %.lr.ph.preheader

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

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

.lr.ph.epil:                                      ; preds = %.lr.ph99.preheader.loopexit.unr-lcssa, %.lr.ph.epil
  %.08196.epil = phi i64 [ %38, %.lr.ph.epil ], [ %.08196.unr, %.lr.ph99.preheader.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.lr.ph99.preheader.loopexit.unr-lcssa ]
  %36 = load ptr, ptr %26, align 8, !tbaa !5
  %37 = getelementptr inbounds double, ptr %36, i64 %.08196.epil
  store double 0.000000e+00, ptr %37, align 8, !tbaa !8
  %38 = add nuw i64 %.08196.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.ph99.preheader, label %.lr.ph.epil, !llvm.loop !10

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

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.08196 = 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 %.08196
  store double 0.000000e+00, ptr %40, align 8, !tbaa !8
  %41 = or disjoint i64 %.08196, 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 %.08196, 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 %.08196, 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 %.08196, 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.ph99.preheader.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !12

.preheader92:                                     ; preds = %.lr.ph99
  br i1 %.not95, label %.lr.ph108.preheader, label %.lr.ph102.preheader

.lr.ph102.preheader:                              ; preds = %.preheader92
  br i1 %33, label %.preheader91.unr-lcssa, label %.lr.ph102

.lr.ph99:                                         ; preds = %.lr.ph99.preheader, %.lr.ph99
  %.198 = phi i64 [ %61, %.lr.ph99 ], [ 0, %.lr.ph99.preheader ]
  %51 = load ptr, ptr %27, align 8, !tbaa !5
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.080113
  %53 = load ptr, ptr %52, align 8, !tbaa !14
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %53, i64 %.198
  %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 %.198
  %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 %.198, 1
  %exitcond115.not = icmp eq i64 %61, %1
  br i1 %exitcond115.not, label %.preheader92, label %.lr.ph99, !llvm.loop !18

.preheader91.unr-lcssa:                           ; preds = %.lr.ph102, %.lr.ph102.preheader
  %.2101.unr = phi i64 [ 0, %.lr.ph102.preheader ], [ %87, %.lr.ph102 ]
  br i1 %lcmp.mod123.not, label %.preheader91, label %.lr.ph102.epil

.lr.ph102.epil:                                   ; preds = %.preheader91.unr-lcssa
  %62 = load ptr, ptr %26, align 8, !tbaa !5
  %63 = getelementptr inbounds double, ptr %62, i64 %.2101.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 %.080113
  %67 = load ptr, ptr %66, align 8, !tbaa !14
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %67, i64 %.2101.unr
  store double %64, ptr %68, align 8, !tbaa !16
  br label %.preheader91

.preheader91:                                     ; preds = %.preheader91.unr-lcssa, %.lr.ph102.epil
  br i1 %.not95, label %.lr.ph108.preheader, label %.lr.ph105.preheader

.lr.ph105.preheader:                              ; preds = %.preheader91
  br i1 %34, label %.lr.ph108.preheader.loopexit.unr-lcssa, label %.lr.ph105

.lr.ph108.preheader.loopexit.unr-lcssa:           ; preds = %.lr.ph105, %.lr.ph105.preheader
  %.3104.unr = phi i64 [ 0, %.lr.ph105.preheader ], [ %99, %.lr.ph105 ]
  br i1 %lcmp.mod128.not, label %.lr.ph108.preheader, label %.lr.ph105.epil

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

.lr.ph108.preheader:                              ; preds = %.lr.ph108.preheader.loopexit.unr-lcssa, %.lr.ph105.epil, %.preheader92, %.preheader91
  br label %.lr.ph108

.lr.ph102:                                        ; preds = %.lr.ph102.preheader, %.lr.ph102
  %.2101 = phi i64 [ %87, %.lr.ph102 ], [ 0, %.lr.ph102.preheader ]
  %niter125 = phi i64 [ %niter125.next.1, %.lr.ph102 ], [ 0, %.lr.ph102.preheader ]
  %72 = load ptr, ptr %26, align 8, !tbaa !5
  %73 = getelementptr inbounds double, ptr %72, i64 %.2101
  %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 %.080113
  %77 = load ptr, ptr %76, align 8, !tbaa !14
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %77, i64 %.2101
  store double %74, ptr %78, align 8, !tbaa !16
  %79 = or disjoint i64 %.2101, 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 %.080113
  %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 %.2101, 2
  %niter125.next.1 = add i64 %niter125, 2
  %niter125.ncmp.1 = icmp eq i64 %niter125.next.1, %unroll_iter124
  br i1 %niter125.ncmp.1, label %.preheader91.unr-lcssa, label %.lr.ph102, !llvm.loop !20

.lr.ph105:                                        ; preds = %.lr.ph105.preheader, %.lr.ph105
  %.3104 = phi i64 [ %99, %.lr.ph105 ], [ 0, %.lr.ph105.preheader ]
  %niter130 = phi i64 [ %niter130.next.3, %.lr.ph105 ], [ 0, %.lr.ph105.preheader ]
  %88 = load ptr, ptr %26, align 8, !tbaa !5
  %89 = getelementptr inbounds double, ptr %88, i64 %.3104
  store double 0.000000e+00, ptr %89, align 8, !tbaa !8
  %90 = or disjoint i64 %.3104, 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 %.3104, 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 %.3104, 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 %.3104, 4
  %niter130.next.3 = add i64 %niter130, 4
  %niter130.ncmp.3 = icmp eq i64 %niter130.next.3, %unroll_iter129
  br i1 %niter130.ncmp.3, label %.lr.ph108.preheader.loopexit.unr-lcssa, label %.lr.ph105, !llvm.loop !21

.preheader:                                       ; preds = %.lr.ph108
  br i1 %.not95, label %._crit_edge, label %.lr.ph111.preheader

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

.lr.ph108:                                        ; preds = %.lr.ph108.preheader, %.lr.ph108
  %.4107 = phi i64 [ %110, %.lr.ph108 ], [ 0, %.lr.ph108.preheader ]
  %100 = load ptr, ptr %27, align 8, !tbaa !5
  %101 = getelementptr inbounds ptr, ptr %100, i64 %.080113
  %102 = load ptr, ptr %101, align 8, !tbaa !14
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %102, i64 %.4107, 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 %.4107
  %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 %.4107, 1
  %exitcond118.not = icmp eq i64 %110, %1
  br i1 %exitcond118.not, label %.preheader, label %.lr.ph108, !llvm.loop !23

.lr.ph111:                                        ; preds = %.lr.ph111.preheader, %.lr.ph111
  %.5110 = phi i64 [ %126, %.lr.ph111 ], [ 0, %.lr.ph111.preheader ]
  %niter135 = phi i64 [ %niter135.next.1, %.lr.ph111 ], [ 0, %.lr.ph111.preheader ]
  %111 = load ptr, ptr %26, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %111, i64 %.5110
  %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 %.080113
  %116 = load ptr, ptr %115, align 8, !tbaa !14
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %116, i64 %.5110, i32 1
  store double %113, ptr %117, align 8, !tbaa !22
  %118 = or disjoint i64 %.5110, 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 %.080113
  %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 %.5110, 2
  %niter135.next.1 = add i64 %niter135, 2
  %niter135.ncmp.1 = icmp eq i64 %niter135.next.1, %unroll_iter134
  br i1 %niter135.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph111, !llvm.loop !24

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

.lr.ph111.epil:                                   ; preds = %._crit_edge.loopexit.unr-lcssa
  %127 = load ptr, ptr %26, align 8, !tbaa !5
  %128 = getelementptr inbounds double, ptr %127, i64 %.5110.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 %.080113
  %132 = load ptr, ptr %131, align 8, !tbaa !14
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %132, i64 %.5110.unr, i32 1
  store double %129, ptr %133, align 8, !tbaa !22
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph111.epil, %._crit_edge.loopexit.unr-lcssa, %.preheader
  %134 = add nuw nsw i64 %.080113, 1
  %exitcond120.not = icmp eq i64 %134, %1
  br i1 %exitcond120.not, label %.loopexit, label %.preheader94, !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_vectorEPKS0_llllPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #3

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

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

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #3

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

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

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

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