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

46:                                               ; preds = %10
  %47 = load i64, ptr %13, align 8, !tbaa !9
  %48 = icmp eq i64 %47, 1
  br label %49

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

60:                                               ; preds = %49
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = load i64, ptr %12, align 8, !tbaa !9
  %63 = load i8, ptr %14, align 1, !tbaa !11, !range !15, !noundef !16
  %64 = trunc i8 %63 to i1
  %65 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl16hmatrixtdunpackqEPNS_9ae_matrixElbPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %61, i64 noundef %62, i1 noundef zeroext %64, ptr noundef %25, ptr noundef %23, ptr noundef %65)
  store i64 2, ptr %13, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %60, %49
  %67 = load ptr, ptr %18, align 8, !tbaa !5
  %68 = load i64, ptr %12, align 8, !tbaa !9
  %69 = load i64, ptr %13, align 8, !tbaa !9
  %70 = load double, ptr %15, align 8, !tbaa !13
  %71 = load double, ptr %16, align 8, !tbaa !13
  %72 = load ptr, ptr %17, align 8, !tbaa !5
  %73 = load ptr, ptr %20, align 8, !tbaa !5
  %74 = call noundef zeroext i1 @_ZN11alglib_impl13smatrixtdevdrEPNS_9ae_vectorES1_llddPlPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %67, ptr noundef %26, i64 noundef %68, i64 noundef %69, double noundef %70, double noundef %71, ptr noundef %72, ptr noundef %24, ptr noundef %73)
  %75 = zext i1 %74 to i8
  store i8 %75, ptr %31, align 1, !tbaa !11
  %76 = load i8, ptr %31, align 1, !tbaa !11, !range !15, !noundef !16
  %77 = trunc i8 %76 to i1
  br i1 %77, label %78, label %256

78:                                               ; preds = %66
  %79 = load i64, ptr %13, align 8, !tbaa !9
  %80 = icmp ne i64 %79, 0
  br i1 %80, label %81, label %256

81:                                               ; preds = %78
  %82 = load ptr, ptr %17, align 8, !tbaa !5
  %83 = load i64, ptr %82, align 8, !tbaa !9
  %84 = icmp ne i64 %83, 0
  br i1 %84, label %85, label %256

85:                                               ; preds = %81
  %86 = load ptr, ptr %17, align 8, !tbaa !5
  %87 = load i64, ptr %86, align 8, !tbaa !9
  %88 = sub nsw i64 %87, 1
  %89 = add nsw i64 %88, 1
  %90 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %27, i64 noundef %89, ptr noundef %90)
  %91 = load ptr, ptr %19, align 8, !tbaa !5
  %92 = load i64, ptr %12, align 8, !tbaa !9
  %93 = sub nsw i64 %92, 1
  %94 = add nsw i64 %93, 1
  %95 = load ptr, ptr %17, align 8, !tbaa !5
  %96 = load i64, ptr %95, align 8, !tbaa !9
  %97 = sub nsw i64 %96, 1
  %98 = add nsw i64 %97, 1
  %99 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %91, i64 noundef %94, i64 noundef %98, ptr noundef %99)
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %100

100:                                              ; preds = %252, %85
  %101 = load i64, ptr %28, align 8, !tbaa !9
  %102 = load i64, ptr %12, align 8, !tbaa !9
  %103 = sub nsw i64 %102, 1
  %104 = icmp sle i64 %101, %103
  br i1 %104, label %105, label %255

105:                                              ; preds = %100
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %106

106:                                              ; preds = %117, %105
  %107 = load i64, ptr %29, align 8, !tbaa !9
  %108 = load ptr, ptr %17, align 8, !tbaa !5
  %109 = load i64, ptr %108, align 8, !tbaa !9
  %110 = sub nsw i64 %109, 1
  %111 = icmp sle i64 %107, %110
  br i1 %111, label %112, label %120

112:                                              ; preds = %106
  %113 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %114 = load ptr, ptr %113, align 8, !tbaa !17
  %115 = load i64, ptr %29, align 8, !tbaa !9
  %116 = getelementptr inbounds double, ptr %114, i64 %115
  store double 0.000000e+00, ptr %116, align 8, !tbaa !13
  br label %117

117:                                              ; preds = %112
  %118 = load i64, ptr %29, align 8, !tbaa !9
  %119 = add nsw i64 %118, 1
  store i64 %119, ptr %29, align 8, !tbaa !9
  br label %106, !llvm.loop !18

120:                                              ; preds = %106
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %121

121:                                              ; preds = %150, %120
  %122 = load i64, ptr %29, align 8, !tbaa !9
  %123 = load i64, ptr %12, align 8, !tbaa !9
  %124 = sub nsw i64 %123, 1
  %125 = icmp sle i64 %122, %124
  br i1 %125, label %126, label %153

126:                                              ; preds = %121
  %127 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 6
  %128 = load ptr, ptr %127, align 8, !tbaa !17
  %129 = load i64, ptr %28, align 8, !tbaa !9
  %130 = getelementptr inbounds ptr, ptr %128, i64 %129
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = load i64, ptr %29, align 8, !tbaa !9
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %131, i64 %132
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %133, i32 0, i32 0
  %135 = load double, ptr %134, align 8, !tbaa !20
  store double %135, ptr %30, align 8, !tbaa !13
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !17
  %138 = getelementptr inbounds double, ptr %137, i64 0
  %139 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 6
  %140 = load ptr, ptr %139, align 8, !tbaa !17
  %141 = load i64, ptr %29, align 8, !tbaa !9
  %142 = getelementptr inbounds ptr, ptr %140, i64 %141
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  %144 = getelementptr inbounds double, ptr %143, i64 0
  %145 = load ptr, ptr %17, align 8, !tbaa !5
  %146 = load i64, ptr %145, align 8, !tbaa !9
  %147 = sub nsw i64 %146, 1
  %148 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %147)
  %149 = load double, ptr %30, align 8, !tbaa !13
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %138, i64 noundef 1, ptr noundef %144, i64 noundef 1, i64 noundef %148, double noundef %149)
  br label %150

150:                                              ; preds = %126
  %151 = load i64, ptr %29, align 8, !tbaa !9
  %152 = add nsw i64 %151, 1
  store i64 %152, ptr %29, align 8, !tbaa !9
  br label %121, !llvm.loop !22

153:                                              ; preds = %121
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %154

154:                                              ; preds = %175, %153
  %155 = load i64, ptr %29, align 8, !tbaa !9
  %156 = load ptr, ptr %17, align 8, !tbaa !5
  %157 = load i64, ptr %156, align 8, !tbaa !9
  %158 = sub nsw i64 %157, 1
  %159 = icmp sle i64 %155, %158
  br i1 %159, label %160, label %178

160:                                              ; preds = %154
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %162 = load ptr, ptr %161, align 8, !tbaa !17
  %163 = load i64, ptr %29, align 8, !tbaa !9
  %164 = getelementptr inbounds double, ptr %162, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !13
  %166 = load ptr, ptr %19, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %166, i32 0, i32 6
  %168 = load ptr, ptr %167, align 8, !tbaa !17
  %169 = load i64, ptr %28, align 8, !tbaa !9
  %170 = getelementptr inbounds ptr, ptr %168, i64 %169
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = load i64, ptr %29, align 8, !tbaa !9
  %173 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %171, i64 %172
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %173, i32 0, i32 0
  store double %165, ptr %174, align 8, !tbaa !20
  br label %175

175:                                              ; preds = %160
  %176 = load i64, ptr %29, align 8, !tbaa !9
  %177 = add nsw i64 %176, 1
  store i64 %177, ptr %29, align 8, !tbaa !9
  br label %154, !llvm.loop !23

178:                                              ; preds = %154
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %179

179:                                              ; preds = %190, %178
  %180 = load i64, ptr %29, align 8, !tbaa !9
  %181 = load ptr, ptr %17, align 8, !tbaa !5
  %182 = load i64, ptr %181, align 8, !tbaa !9
  %183 = sub nsw i64 %182, 1
  %184 = icmp sle i64 %180, %183
  br i1 %184, label %185, label %193

185:                                              ; preds = %179
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %187 = load ptr, ptr %186, align 8, !tbaa !17
  %188 = load i64, ptr %29, align 8, !tbaa !9
  %189 = getelementptr inbounds double, ptr %187, i64 %188
  store double 0.000000e+00, ptr %189, align 8, !tbaa !13
  br label %190

190:                                              ; preds = %185
  %191 = load i64, ptr %29, align 8, !tbaa !9
  %192 = add nsw i64 %191, 1
  store i64 %192, ptr %29, align 8, !tbaa !9
  br label %179, !llvm.loop !24

193:                                              ; preds = %179
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %194

194:                                              ; preds = %223, %193
  %195 = load i64, ptr %29, align 8, !tbaa !9
  %196 = load i64, ptr %12, align 8, !tbaa !9
  %197 = sub nsw i64 %196, 1
  %198 = icmp sle i64 %195, %197
  br i1 %198, label %199, label %226

199:                                              ; preds = %194
  %200 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 6
  %201 = load ptr, ptr %200, align 8, !tbaa !17
  %202 = load i64, ptr %28, align 8, !tbaa !9
  %203 = getelementptr inbounds ptr, ptr %201, i64 %202
  %204 = load ptr, ptr %203, align 8, !tbaa !5
  %205 = load i64, ptr %29, align 8, !tbaa !9
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %204, i64 %205
  %207 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %206, i32 0, i32 1
  %208 = load double, ptr %207, align 8, !tbaa !25
  store double %208, ptr %30, align 8, !tbaa !13
  %209 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %210 = load ptr, ptr %209, align 8, !tbaa !17
  %211 = getelementptr inbounds double, ptr %210, i64 0
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 6
  %213 = load ptr, ptr %212, align 8, !tbaa !17
  %214 = load i64, ptr %29, align 8, !tbaa !9
  %215 = getelementptr inbounds ptr, ptr %213, i64 %214
  %216 = load ptr, ptr %215, align 8, !tbaa !5
  %217 = getelementptr inbounds double, ptr %216, i64 0
  %218 = load ptr, ptr %17, align 8, !tbaa !5
  %219 = load i64, ptr %218, align 8, !tbaa !9
  %220 = sub nsw i64 %219, 1
  %221 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %220)
  %222 = load double, ptr %30, align 8, !tbaa !13
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %211, i64 noundef 1, ptr noundef %217, i64 noundef 1, i64 noundef %221, double noundef %222)
  br label %223

223:                                              ; preds = %199
  %224 = load i64, ptr %29, align 8, !tbaa !9
  %225 = add nsw i64 %224, 1
  store i64 %225, ptr %29, align 8, !tbaa !9
  br label %194, !llvm.loop !26

226:                                              ; preds = %194
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %227

227:                                              ; preds = %248, %226
  %228 = load i64, ptr %29, align 8, !tbaa !9
  %229 = load ptr, ptr %17, align 8, !tbaa !5
  %230 = load i64, ptr %229, align 8, !tbaa !9
  %231 = sub nsw i64 %230, 1
  %232 = icmp sle i64 %228, %231
  br i1 %232, label %233, label %251

233:                                              ; preds = %227
  %234 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %235 = load ptr, ptr %234, align 8, !tbaa !17
  %236 = load i64, ptr %29, align 8, !tbaa !9
  %237 = getelementptr inbounds double, ptr %235, i64 %236
  %238 = load double, ptr %237, align 8, !tbaa !13
  %239 = load ptr, ptr %19, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %239, i32 0, i32 6
  %241 = load ptr, ptr %240, align 8, !tbaa !17
  %242 = load i64, ptr %28, align 8, !tbaa !9
  %243 = getelementptr inbounds ptr, ptr %241, i64 %242
  %244 = load ptr, ptr %243, align 8, !tbaa !5
  %245 = load i64, ptr %29, align 8, !tbaa !9
  %246 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %244, i64 %245
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %246, i32 0, i32 1
  store double %238, ptr %247, align 8, !tbaa !25
  br label %248

248:                                              ; preds = %233
  %249 = load i64, ptr %29, align 8, !tbaa !9
  %250 = add nsw i64 %249, 1
  store i64 %250, ptr %29, align 8, !tbaa !9
  br label %227, !llvm.loop !27

251:                                              ; preds = %227
  br label %252

252:                                              ; preds = %251
  %253 = load i64, ptr %28, align 8, !tbaa !9
  %254 = add nsw i64 %253, 1
  store i64 %254, ptr %28, align 8, !tbaa !9
  br label %100, !llvm.loop !28

255:                                              ; preds = %100
  br label %256

256:                                              ; preds = %255, %81, %78, %66
  %257 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %257)
  %258 = load i8, ptr %31, align 1, !tbaa !11, !range !15, !noundef !16
  %259 = trunc i8 %258 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 64, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #4
  ret i1 %259
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl13smatrixtdevdrEPNS_9ae_vectorES1_llddPlPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, double noundef, ptr 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 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !14, i64 0}
!21 = !{!"_ZTSN11alglib_impl10ae_complexE", !14, i64 0, !14, i64 8}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = !{!21, !14, 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.369 = external hidden unnamed_addr constant [60 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_impl11hmatrixevdrEPNS_9ae_matrixEllbddPlPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i1 noundef zeroext %3, double noundef %4, double noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) local_unnamed_addr #3 {
  %11 = alloca %"struct.alglib_impl::ae_frame", align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %14 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %9, ptr noundef nonnull %11)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %12, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %13, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %14, i8 0, i64 80, i1 false)
  call void @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 @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %17, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef nonnull %12, ptr noundef %0, ptr noundef %9, i1 noundef zeroext true)
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %7)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %8)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 4, ptr noundef %9, 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 %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 3, ptr noundef %9, i1 noundef zeroext true)
  %18 = icmp eq i64 %2, 1
  %19 = icmp ult i64 %2, 2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.369, ptr noundef %9)
  call void @_ZN11alglib_impl9hmatrixtdEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %1, i1 noundef zeroext %3, ptr noundef nonnull %15, ptr noundef %7, ptr noundef nonnull %16, ptr noundef %9)
  br i1 %18, label %20, label %21

20:                                               ; preds = %10
  call void @_ZN11alglib_impl16hmatrixtdunpackqEPNS_9ae_matrixElbPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %1, i1 noundef zeroext %3, ptr noundef nonnull %15, ptr noundef nonnull %13, ptr noundef %9)
  br label %21

21:                                               ; preds = %20, %10
  %.084 = phi i64 [ 2, %20 ], [ %2, %10 ]
  %22 = call noundef zeroext i1 @_ZN11alglib_impl13smatrixtdevdrEPNS_9ae_vectorES1_llddPlPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %7, ptr noundef nonnull %16, i64 noundef %1, i64 noundef %.084, double noundef %4, double noundef %5, ptr noundef nonnull %6, ptr noundef nonnull %14, ptr noundef %9)
  %23 = icmp ne i64 %.084, 0
  %or.cond = and i1 %22, %23
  br i1 %or.cond, label %24, label %.loopexit

24:                                               ; preds = %21
  %25 = load i64, ptr %6, align 8, !tbaa !5
  %.not = icmp eq i64 %25, 0
  br i1 %.not, label %.loopexit, label %26

26:                                               ; preds = %24
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %25, ptr noundef %9)
  %27 = load i64, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %1, i64 noundef %27, ptr noundef %9)
  %.not88.not117 = icmp sgt i64 %1, 0
  br i1 %.not88.not117, label %.preheader99.lr.ph, label %.loopexit

.preheader99.lr.ph:                               ; preds = %26
  %28 = getelementptr inbounds i8, ptr %17, i64 56
  %29 = getelementptr inbounds i8, ptr %13, i64 72
  %30 = getelementptr inbounds i8, ptr %14, i64 72
  %31 = getelementptr inbounds i8, ptr %8, i64 72
  %.pre = load i64, ptr %6, align 8, !tbaa !5
  br label %.preheader99

.preheader99:                                     ; preds = %.preheader99.lr.ph, %._crit_edge
  %32 = phi i64 [ %.pre, %.preheader99.lr.ph ], [ %.pre126, %._crit_edge ]
  %.083118 = phi i64 [ 0, %.preheader99.lr.ph ], [ %139, %._crit_edge ]
  %.not89.not100 = icmp sgt i64 %32, 0
  br i1 %.not89.not100, label %.lr.ph.preheader, label %.lr.ph104.preheader

.lr.ph.preheader:                                 ; preds = %.preheader99
  %xtraiter = and i64 %32, 3
  %33 = icmp ult i64 %32, 4
  br i1 %33, label %.lr.ph104.preheader.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %32, 9223372036854775804
  br label %.lr.ph

.lr.ph104.preheader.loopexit.unr-lcssa:           ; preds = %.lr.ph, %.lr.ph.preheader
  %.0101.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %48, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph104.preheader, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.lr.ph104.preheader.loopexit.unr-lcssa, %.lr.ph.epil
  %.0101.epil = phi i64 [ %36, %.lr.ph.epil ], [ %.0101.unr, %.lr.ph104.preheader.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.lr.ph104.preheader.loopexit.unr-lcssa ]
  %34 = load ptr, ptr %28, align 8, !tbaa !9
  %35 = getelementptr inbounds double, ptr %34, i64 %.0101.epil
  store double 0.000000e+00, ptr %35, align 8, !tbaa !10
  %36 = add nuw nsw i64 %.0101.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.ph104.preheader, label %.lr.ph.epil, !llvm.loop !12

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

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.0101 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %48, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %37 = load ptr, ptr %28, align 8, !tbaa !9
  %38 = getelementptr inbounds double, ptr %37, i64 %.0101
  store double 0.000000e+00, ptr %38, align 8, !tbaa !10
  %39 = or disjoint i64 %.0101, 1
  %40 = load ptr, ptr %28, align 8, !tbaa !9
  %41 = getelementptr inbounds double, ptr %40, i64 %39
  store double 0.000000e+00, ptr %41, align 8, !tbaa !10
  %42 = or disjoint i64 %.0101, 2
  %43 = load ptr, ptr %28, align 8, !tbaa !9
  %44 = getelementptr inbounds double, ptr %43, i64 %42
  store double 0.000000e+00, ptr %44, align 8, !tbaa !10
  %45 = or disjoint i64 %.0101, 3
  %46 = load ptr, ptr %28, align 8, !tbaa !9
  %47 = getelementptr inbounds double, ptr %46, i64 %45
  store double 0.000000e+00, ptr %47, align 8, !tbaa !10
  %48 = add nuw nsw i64 %.0101, 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.ph104.preheader.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !14

.preheader97:                                     ; preds = %.lr.ph104
  %.pre125 = load i64, ptr %6, align 8, !tbaa !5
  %.not91.not105 = icmp sgt i64 %.pre125, 0
  br i1 %.not91.not105, label %.lr.ph107.preheader, label %.lr.ph113.preheader

.lr.ph107.preheader:                              ; preds = %.preheader97
  %xtraiter127 = and i64 %.pre125, 1
  %49 = icmp eq i64 %.pre125, 1
  br i1 %49, label %.preheader96.unr-lcssa, label %.lr.ph107.preheader.new

.lr.ph107.preheader.new:                          ; preds = %.lr.ph107.preheader
  %unroll_iter130 = and i64 %.pre125, 9223372036854775806
  br label %.lr.ph107

.lr.ph104:                                        ; preds = %.lr.ph104.preheader, %.lr.ph104
  %.1103 = phi i64 [ %62, %.lr.ph104 ], [ 0, %.lr.ph104.preheader ]
  %50 = load ptr, ptr %29, align 8, !tbaa !9
  %51 = getelementptr inbounds ptr, ptr %50, i64 %.083118
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %52, i64 %.1103
  %54 = load double, ptr %53, align 8, !tbaa !18
  %55 = load ptr, ptr %28, align 8, !tbaa !9
  %56 = load ptr, ptr %30, align 8, !tbaa !9
  %57 = getelementptr inbounds ptr, ptr %56, i64 %.1103
  %58 = load ptr, ptr %57, align 8, !tbaa !16
  %59 = load i64, ptr %6, align 8, !tbaa !5
  %60 = add nsw i64 %59, -1
  %61 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %60)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %55, i64 noundef 1, ptr noundef %58, i64 noundef 1, i64 noundef %61, double noundef %54)
  %62 = add nuw nsw i64 %.1103, 1
  %exitcond119.not = icmp eq i64 %62, %1
  br i1 %exitcond119.not, label %.preheader97, label %.lr.ph104, !llvm.loop !20

.preheader96.unr-lcssa:                           ; preds = %.lr.ph107, %.lr.ph107.preheader
  %.2106.unr = phi i64 [ 0, %.lr.ph107.preheader ], [ %89, %.lr.ph107 ]
  %lcmp.mod129.not = icmp eq i64 %xtraiter127, 0
  br i1 %lcmp.mod129.not, label %.preheader96, label %.lr.ph107.epil

.lr.ph107.epil:                                   ; preds = %.preheader96.unr-lcssa
  %63 = load ptr, ptr %28, align 8, !tbaa !9
  %64 = getelementptr inbounds double, ptr %63, i64 %.2106.unr
  %65 = load double, ptr %64, align 8, !tbaa !10
  %66 = load ptr, ptr %31, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %66, i64 %.083118
  %68 = load ptr, ptr %67, align 8, !tbaa !16
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %68, i64 %.2106.unr
  store double %65, ptr %69, align 8, !tbaa !18
  br label %.preheader96

.preheader96:                                     ; preds = %.preheader96.unr-lcssa, %.lr.ph107.epil
  br i1 %.not91.not105, label %.lr.ph110.preheader, label %.lr.ph113.preheader

.lr.ph110.preheader:                              ; preds = %.preheader96
  %xtraiter132 = and i64 %.pre125, 3
  %70 = icmp ult i64 %.pre125, 4
  br i1 %70, label %.lr.ph113.preheader.loopexit.unr-lcssa, label %.lr.ph110.preheader.new

.lr.ph110.preheader.new:                          ; preds = %.lr.ph110.preheader
  %unroll_iter135 = and i64 %.pre125, 9223372036854775804
  br label %.lr.ph110

.lr.ph113.preheader.loopexit.unr-lcssa:           ; preds = %.lr.ph110, %.lr.ph110.preheader
  %.3109.unr = phi i64 [ 0, %.lr.ph110.preheader ], [ %101, %.lr.ph110 ]
  %lcmp.mod134.not = icmp eq i64 %xtraiter132, 0
  br i1 %lcmp.mod134.not, label %.lr.ph113.preheader, label %.lr.ph110.epil

.lr.ph110.epil:                                   ; preds = %.lr.ph113.preheader.loopexit.unr-lcssa, %.lr.ph110.epil
  %.3109.epil = phi i64 [ %73, %.lr.ph110.epil ], [ %.3109.unr, %.lr.ph113.preheader.loopexit.unr-lcssa ]
  %epil.iter133 = phi i64 [ %epil.iter133.next, %.lr.ph110.epil ], [ 0, %.lr.ph113.preheader.loopexit.unr-lcssa ]
  %71 = load ptr, ptr %28, align 8, !tbaa !9
  %72 = getelementptr inbounds double, ptr %71, i64 %.3109.epil
  store double 0.000000e+00, ptr %72, align 8, !tbaa !10
  %73 = add nuw nsw i64 %.3109.epil, 1
  %epil.iter133.next = add i64 %epil.iter133, 1
  %epil.iter133.cmp.not = icmp eq i64 %epil.iter133.next, %xtraiter132
  br i1 %epil.iter133.cmp.not, label %.lr.ph113.preheader, label %.lr.ph110.epil, !llvm.loop !21

.lr.ph113.preheader:                              ; preds = %.lr.ph113.preheader.loopexit.unr-lcssa, %.lr.ph110.epil, %.preheader97, %.preheader96
  br label %.lr.ph113

.lr.ph107:                                        ; preds = %.lr.ph107, %.lr.ph107.preheader.new
  %.2106 = phi i64 [ 0, %.lr.ph107.preheader.new ], [ %89, %.lr.ph107 ]
  %niter131 = phi i64 [ 0, %.lr.ph107.preheader.new ], [ %niter131.next.1, %.lr.ph107 ]
  %74 = load ptr, ptr %28, align 8, !tbaa !9
  %75 = getelementptr inbounds double, ptr %74, i64 %.2106
  %76 = load double, ptr %75, align 8, !tbaa !10
  %77 = load ptr, ptr %31, align 8, !tbaa !9
  %78 = getelementptr inbounds ptr, ptr %77, i64 %.083118
  %79 = load ptr, ptr %78, align 8, !tbaa !16
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %79, i64 %.2106
  store double %76, ptr %80, align 8, !tbaa !18
  %81 = or disjoint i64 %.2106, 1
  %82 = load ptr, ptr %28, align 8, !tbaa !9
  %83 = getelementptr inbounds double, ptr %82, i64 %81
  %84 = load double, ptr %83, align 8, !tbaa !10
  %85 = load ptr, ptr %31, align 8, !tbaa !9
  %86 = getelementptr inbounds ptr, ptr %85, i64 %.083118
  %87 = load ptr, ptr %86, align 8, !tbaa !16
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %87, i64 %81
  store double %84, ptr %88, align 8, !tbaa !18
  %89 = add nuw nsw i64 %.2106, 2
  %niter131.next.1 = add i64 %niter131, 2
  %niter131.ncmp.1 = icmp eq i64 %niter131.next.1, %unroll_iter130
  br i1 %niter131.ncmp.1, label %.preheader96.unr-lcssa, label %.lr.ph107, !llvm.loop !22

.lr.ph110:                                        ; preds = %.lr.ph110, %.lr.ph110.preheader.new
  %.3109 = phi i64 [ 0, %.lr.ph110.preheader.new ], [ %101, %.lr.ph110 ]
  %niter136 = phi i64 [ 0, %.lr.ph110.preheader.new ], [ %niter136.next.3, %.lr.ph110 ]
  %90 = load ptr, ptr %28, align 8, !tbaa !9
  %91 = getelementptr inbounds double, ptr %90, i64 %.3109
  store double 0.000000e+00, ptr %91, align 8, !tbaa !10
  %92 = or disjoint i64 %.3109, 1
  %93 = load ptr, ptr %28, align 8, !tbaa !9
  %94 = getelementptr inbounds double, ptr %93, i64 %92
  store double 0.000000e+00, ptr %94, align 8, !tbaa !10
  %95 = or disjoint i64 %.3109, 2
  %96 = load ptr, ptr %28, align 8, !tbaa !9
  %97 = getelementptr inbounds double, ptr %96, i64 %95
  store double 0.000000e+00, ptr %97, align 8, !tbaa !10
  %98 = or disjoint i64 %.3109, 3
  %99 = load ptr, ptr %28, align 8, !tbaa !9
  %100 = getelementptr inbounds double, ptr %99, i64 %98
  store double 0.000000e+00, ptr %100, align 8, !tbaa !10
  %101 = add nuw nsw i64 %.3109, 4
  %niter136.next.3 = add i64 %niter136, 4
  %niter136.ncmp.3 = icmp eq i64 %niter136.next.3, %unroll_iter135
  br i1 %niter136.ncmp.3, label %.lr.ph113.preheader.loopexit.unr-lcssa, label %.lr.ph110, !llvm.loop !23

.preheader:                                       ; preds = %.lr.ph113
  %.pre126 = load i64, ptr %6, align 8, !tbaa !5
  %.not94.not114 = icmp sgt i64 %.pre126, 0
  br i1 %.not94.not114, label %.lr.ph116.preheader, label %._crit_edge

.lr.ph116.preheader:                              ; preds = %.preheader
  %xtraiter137 = and i64 %.pre126, 1
  %102 = icmp eq i64 %.pre126, 1
  br i1 %102, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph116.preheader.new

.lr.ph116.preheader.new:                          ; preds = %.lr.ph116.preheader
  %unroll_iter140 = and i64 %.pre126, 9223372036854775806
  br label %.lr.ph116

.lr.ph113:                                        ; preds = %.lr.ph113.preheader, %.lr.ph113
  %.4112 = phi i64 [ %115, %.lr.ph113 ], [ 0, %.lr.ph113.preheader ]
  %103 = load ptr, ptr %29, align 8, !tbaa !9
  %104 = getelementptr inbounds ptr, ptr %103, i64 %.083118
  %105 = load ptr, ptr %104, align 8, !tbaa !16
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %105, i64 %.4112, i32 1
  %107 = load double, ptr %106, align 8, !tbaa !24
  %108 = load ptr, ptr %28, align 8, !tbaa !9
  %109 = load ptr, ptr %30, align 8, !tbaa !9
  %110 = getelementptr inbounds ptr, ptr %109, i64 %.4112
  %111 = load ptr, ptr %110, align 8, !tbaa !16
  %112 = load i64, ptr %6, align 8, !tbaa !5
  %113 = add nsw i64 %112, -1
  %114 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %113)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %108, i64 noundef 1, ptr noundef %111, i64 noundef 1, i64 noundef %114, double noundef %107)
  %115 = add nuw nsw i64 %.4112, 1
  %exitcond122.not = icmp eq i64 %115, %1
  br i1 %exitcond122.not, label %.preheader, label %.lr.ph113, !llvm.loop !25

.lr.ph116:                                        ; preds = %.lr.ph116, %.lr.ph116.preheader.new
  %.5115 = phi i64 [ 0, %.lr.ph116.preheader.new ], [ %131, %.lr.ph116 ]
  %niter141 = phi i64 [ 0, %.lr.ph116.preheader.new ], [ %niter141.next.1, %.lr.ph116 ]
  %116 = load ptr, ptr %28, align 8, !tbaa !9
  %117 = getelementptr inbounds double, ptr %116, i64 %.5115
  %118 = load double, ptr %117, align 8, !tbaa !10
  %119 = load ptr, ptr %31, align 8, !tbaa !9
  %120 = getelementptr inbounds ptr, ptr %119, i64 %.083118
  %121 = load ptr, ptr %120, align 8, !tbaa !16
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %121, i64 %.5115, i32 1
  store double %118, ptr %122, align 8, !tbaa !24
  %123 = or disjoint i64 %.5115, 1
  %124 = load ptr, ptr %28, align 8, !tbaa !9
  %125 = getelementptr inbounds double, ptr %124, i64 %123
  %126 = load double, ptr %125, align 8, !tbaa !10
  %127 = load ptr, ptr %31, align 8, !tbaa !9
  %128 = getelementptr inbounds ptr, ptr %127, i64 %.083118
  %129 = load ptr, ptr %128, align 8, !tbaa !16
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %129, i64 %123, i32 1
  store double %126, ptr %130, align 8, !tbaa !24
  %131 = add nuw nsw i64 %.5115, 2
  %niter141.next.1 = add i64 %niter141, 2
  %niter141.ncmp.1 = icmp eq i64 %niter141.next.1, %unroll_iter140
  br i1 %niter141.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph116, !llvm.loop !26

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph116, %.lr.ph116.preheader
  %.5115.unr = phi i64 [ 0, %.lr.ph116.preheader ], [ %131, %.lr.ph116 ]
  %lcmp.mod139.not = icmp eq i64 %xtraiter137, 0
  br i1 %lcmp.mod139.not, label %._crit_edge, label %.lr.ph116.epil

.lr.ph116.epil:                                   ; preds = %._crit_edge.loopexit.unr-lcssa
  %132 = load ptr, ptr %28, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %132, i64 %.5115.unr
  %134 = load double, ptr %133, align 8, !tbaa !10
  %135 = load ptr, ptr %31, align 8, !tbaa !9
  %136 = getelementptr inbounds ptr, ptr %135, i64 %.083118
  %137 = load ptr, ptr %136, align 8, !tbaa !16
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %137, i64 %.5115.unr, i32 1
  store double %134, ptr %138, align 8, !tbaa !24
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph116.epil, %._crit_edge.loopexit.unr-lcssa, %.preheader
  %139 = add nuw nsw i64 %.083118, 1
  %exitcond124.not = icmp eq i64 %139, %1
  br i1 %exitcond124.not, label %.loopexit, label %.preheader99, !llvm.loop !27

.loopexit:                                        ; preds = %._crit_edge, %26, %24, %21
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %9)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #4
  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 80, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #4
  ret i1 %22
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl13smatrixtdevdrEPNS_9ae_vectorES1_llddPlPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, double noundef, ptr 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!19, !11, i64 0}
!19 = !{!"_ZTSN11alglib_impl10ae_complexE", !11, i64 0, !11, i64 8}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = !{!19, !11, i64 8}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}


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