; 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.324 = 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 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_impl11hmatrixevdrEPKNS_9ae_matrixEllbddPlPNS_9ae_vectorEPS0_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) #1 {
  %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_matrixEPKS0_PNS_8ae_stateEb(ptr noundef %22, ptr noundef %34, ptr noundef %35, i1 noundef zeroext true)
  %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.324, ptr noundef %51)
  %52 = load i64, ptr %12, align 8, !tbaa !9
  %53 = load i8, ptr %14, align 1, !tbaa !11, !range !15, !noundef !16
  %54 = trunc i8 %53 to i1
  %55 = load ptr, ptr %18, align 8, !tbaa !5
  %56 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9hmatrixtdEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef %22, i64 noundef %52, i1 noundef zeroext %54, ptr noundef %25, ptr noundef %55, ptr noundef %26, ptr noundef %56)
  %57 = load i64, ptr %13, align 8, !tbaa !9
  %58 = icmp eq i64 %57, 1
  br i1 %58, label %59, label %64

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

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

76:                                               ; preds = %64
  %77 = load i64, ptr %13, align 8, !tbaa !9
  %78 = icmp ne i64 %77, 0
  br i1 %78, label %79, label %254

79:                                               ; preds = %76
  %80 = load ptr, ptr %17, align 8, !tbaa !5
  %81 = load i64, ptr %80, align 8, !tbaa !9
  %82 = icmp ne i64 %81, 0
  br i1 %82, label %83, label %254

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

98:                                               ; preds = %250, %83
  %99 = load i64, ptr %28, align 8, !tbaa !9
  %100 = load i64, ptr %12, align 8, !tbaa !9
  %101 = sub nsw i64 %100, 1
  %102 = icmp sle i64 %99, %101
  br i1 %102, label %103, label %253

103:                                              ; preds = %98
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %104

104:                                              ; preds = %115, %103
  %105 = load i64, ptr %29, align 8, !tbaa !9
  %106 = load ptr, ptr %17, align 8, !tbaa !5
  %107 = load i64, ptr %106, align 8, !tbaa !9
  %108 = sub nsw i64 %107, 1
  %109 = icmp sle i64 %105, %108
  br i1 %109, label %110, label %118

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

115:                                              ; preds = %110
  %116 = load i64, ptr %29, align 8, !tbaa !9
  %117 = add nsw i64 %116, 1
  store i64 %117, ptr %29, align 8, !tbaa !9
  br label %104, !llvm.loop !18

118:                                              ; preds = %104
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %119

119:                                              ; preds = %148, %118
  %120 = load i64, ptr %29, align 8, !tbaa !9
  %121 = load i64, ptr %12, align 8, !tbaa !9
  %122 = sub nsw i64 %121, 1
  %123 = icmp sle i64 %120, %122
  br i1 %123, label %124, label %151

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

148:                                              ; preds = %124
  %149 = load i64, ptr %29, align 8, !tbaa !9
  %150 = add nsw i64 %149, 1
  store i64 %150, ptr %29, align 8, !tbaa !9
  br label %119, !llvm.loop !22

151:                                              ; preds = %119
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %152

152:                                              ; preds = %173, %151
  %153 = load i64, ptr %29, align 8, !tbaa !9
  %154 = load ptr, ptr %17, align 8, !tbaa !5
  %155 = load i64, ptr %154, align 8, !tbaa !9
  %156 = sub nsw i64 %155, 1
  %157 = icmp sle i64 %153, %156
  br i1 %157, label %158, label %176

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

173:                                              ; preds = %158
  %174 = load i64, ptr %29, align 8, !tbaa !9
  %175 = add nsw i64 %174, 1
  store i64 %175, ptr %29, align 8, !tbaa !9
  br label %152, !llvm.loop !23

176:                                              ; preds = %152
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %177

177:                                              ; preds = %188, %176
  %178 = load i64, ptr %29, align 8, !tbaa !9
  %179 = load ptr, ptr %17, align 8, !tbaa !5
  %180 = load i64, ptr %179, align 8, !tbaa !9
  %181 = sub nsw i64 %180, 1
  %182 = icmp sle i64 %178, %181
  br i1 %182, label %183, label %191

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

188:                                              ; preds = %183
  %189 = load i64, ptr %29, align 8, !tbaa !9
  %190 = add nsw i64 %189, 1
  store i64 %190, ptr %29, align 8, !tbaa !9
  br label %177, !llvm.loop !24

191:                                              ; preds = %177
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %192

192:                                              ; preds = %221, %191
  %193 = load i64, ptr %29, align 8, !tbaa !9
  %194 = load i64, ptr %12, align 8, !tbaa !9
  %195 = sub nsw i64 %194, 1
  %196 = icmp sle i64 %193, %195
  br i1 %196, label %197, label %224

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

221:                                              ; preds = %197
  %222 = load i64, ptr %29, align 8, !tbaa !9
  %223 = add nsw i64 %222, 1
  store i64 %223, ptr %29, align 8, !tbaa !9
  br label %192, !llvm.loop !26

224:                                              ; preds = %192
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %225

225:                                              ; preds = %246, %224
  %226 = load i64, ptr %29, align 8, !tbaa !9
  %227 = load ptr, ptr %17, align 8, !tbaa !5
  %228 = load i64, ptr %227, align 8, !tbaa !9
  %229 = sub nsw i64 %228, 1
  %230 = icmp sle i64 %226, %229
  br i1 %230, label %231, label %249

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

246:                                              ; preds = %231
  %247 = load i64, ptr %29, align 8, !tbaa !9
  %248 = add nsw i64 %247, 1
  store i64 %248, ptr %29, align 8, !tbaa !9
  br label %225, !llvm.loop !27

249:                                              ; preds = %225
  br label %250

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

253:                                              ; preds = %98
  br label %254

254:                                              ; preds = %253, %79, %76, %64
  %255 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %255)
  %256 = load i8, ptr %31, align 1, !tbaa !11, !range !15, !noundef !16
  %257 = trunc i8 %256 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 %257
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl13smatrixtdevdrEPNS_9ae_vectorEPKS0_llddPlPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, double noundef, ptr 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 = !{!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.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.324 = 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 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_impl11hmatrixevdrEPKNS_9ae_matrixEllbddPlPNS_9ae_vectorEPS0_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 #1 {
  %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_matrixEPKS0_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.324, 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_impl16hmatrixtdunpackqEPKNS_9ae_matrixElbPKNS_9ae_vectorEPS0_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
  %.0 = phi i64 [ 2, %20 ], [ %2, %10 ]
  %22 = call noundef zeroext i1 @_ZN11alglib_impl13smatrixtdevdrEPNS_9ae_vectorEPKS0_llddPlPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %7, ptr noundef nonnull %16, i64 noundef %1, i64 noundef %.0, double noundef %4, double noundef %5, ptr noundef nonnull %6, ptr noundef nonnull %14, ptr noundef %9)
  %23 = icmp ne i64 %.0, 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)
  %.not86.not115 = icmp sgt i64 %1, 0
  br i1 %.not86.not115, label %.preheader97.lr.ph, label %.loopexit

.preheader97.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 %.preheader97

.preheader97:                                     ; preds = %.preheader97.lr.ph, %._crit_edge
  %32 = phi i64 [ %.pre, %.preheader97.lr.ph ], [ %.pre124, %._crit_edge ]
  %.082116 = phi i64 [ 0, %.preheader97.lr.ph ], [ %139, %._crit_edge ]
  %.not87.not98 = icmp sgt i64 %32, 0
  br i1 %.not87.not98, label %.lr.ph.preheader, label %.lr.ph102.preheader

.lr.ph.preheader:                                 ; preds = %.preheader97
  %xtraiter = and i64 %32, 3
  %33 = icmp ult i64 %32, 4
  br i1 %33, label %.lr.ph102.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.ph102.preheader.loopexit.unr-lcssa:           ; preds = %.lr.ph, %.lr.ph.preheader
  %.08199.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.ph102.preheader, label %.lr.ph.epil

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

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

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.08199 = 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 %.08199
  store double 0.000000e+00, ptr %38, align 8, !tbaa !10
  %39 = or disjoint i64 %.08199, 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 %.08199, 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 %.08199, 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 %.08199, 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.ph102.preheader.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !14

.preheader95:                                     ; preds = %.lr.ph102
  %.pre123 = load i64, ptr %6, align 8, !tbaa !5
  %.not89.not103 = icmp sgt i64 %.pre123, 0
  br i1 %.not89.not103, label %.lr.ph105.preheader, label %.lr.ph111.preheader

.lr.ph105.preheader:                              ; preds = %.preheader95
  %xtraiter125 = and i64 %.pre123, 1
  %49 = icmp eq i64 %.pre123, 1
  br i1 %49, label %.preheader94.unr-lcssa, label %.lr.ph105.preheader.new

.lr.ph105.preheader.new:                          ; preds = %.lr.ph105.preheader
  %unroll_iter128 = and i64 %.pre123, 9223372036854775806
  br label %.lr.ph105

.lr.ph102:                                        ; preds = %.lr.ph102.preheader, %.lr.ph102
  %.1101 = phi i64 [ %62, %.lr.ph102 ], [ 0, %.lr.ph102.preheader ]
  %50 = load ptr, ptr %29, align 8, !tbaa !9
  %51 = getelementptr inbounds ptr, ptr %50, i64 %.082116
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %52, i64 %.1101
  %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 %.1101
  %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 %.1101, 1
  %exitcond117.not = icmp eq i64 %62, %1
  br i1 %exitcond117.not, label %.preheader95, label %.lr.ph102, !llvm.loop !20

.preheader94.unr-lcssa:                           ; preds = %.lr.ph105, %.lr.ph105.preheader
  %.2104.unr = phi i64 [ 0, %.lr.ph105.preheader ], [ %89, %.lr.ph105 ]
  %lcmp.mod127.not = icmp eq i64 %xtraiter125, 0
  br i1 %lcmp.mod127.not, label %.preheader94, label %.lr.ph105.epil

.lr.ph105.epil:                                   ; preds = %.preheader94.unr-lcssa
  %63 = load ptr, ptr %28, align 8, !tbaa !9
  %64 = getelementptr inbounds double, ptr %63, i64 %.2104.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 %.082116
  %68 = load ptr, ptr %67, align 8, !tbaa !16
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %68, i64 %.2104.unr
  store double %65, ptr %69, align 8, !tbaa !18
  br label %.preheader94

.preheader94:                                     ; preds = %.preheader94.unr-lcssa, %.lr.ph105.epil
  br i1 %.not89.not103, label %.lr.ph108.preheader, label %.lr.ph111.preheader

.lr.ph108.preheader:                              ; preds = %.preheader94
  %xtraiter130 = and i64 %.pre123, 3
  %70 = icmp ult i64 %.pre123, 4
  br i1 %70, label %.lr.ph111.preheader.loopexit.unr-lcssa, label %.lr.ph108.preheader.new

.lr.ph108.preheader.new:                          ; preds = %.lr.ph108.preheader
  %unroll_iter133 = and i64 %.pre123, 9223372036854775804
  br label %.lr.ph108

.lr.ph111.preheader.loopexit.unr-lcssa:           ; preds = %.lr.ph108, %.lr.ph108.preheader
  %.3107.unr = phi i64 [ 0, %.lr.ph108.preheader ], [ %101, %.lr.ph108 ]
  %lcmp.mod132.not = icmp eq i64 %xtraiter130, 0
  br i1 %lcmp.mod132.not, label %.lr.ph111.preheader, label %.lr.ph108.epil

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

.lr.ph111.preheader:                              ; preds = %.lr.ph111.preheader.loopexit.unr-lcssa, %.lr.ph108.epil, %.preheader95, %.preheader94
  br label %.lr.ph111

.lr.ph105:                                        ; preds = %.lr.ph105, %.lr.ph105.preheader.new
  %.2104 = phi i64 [ 0, %.lr.ph105.preheader.new ], [ %89, %.lr.ph105 ]
  %niter129 = phi i64 [ 0, %.lr.ph105.preheader.new ], [ %niter129.next.1, %.lr.ph105 ]
  %74 = load ptr, ptr %28, align 8, !tbaa !9
  %75 = getelementptr inbounds double, ptr %74, i64 %.2104
  %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 %.082116
  %79 = load ptr, ptr %78, align 8, !tbaa !16
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %79, i64 %.2104
  store double %76, ptr %80, align 8, !tbaa !18
  %81 = or disjoint i64 %.2104, 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 %.082116
  %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 %.2104, 2
  %niter129.next.1 = add i64 %niter129, 2
  %niter129.ncmp.1 = icmp eq i64 %niter129.next.1, %unroll_iter128
  br i1 %niter129.ncmp.1, label %.preheader94.unr-lcssa, label %.lr.ph105, !llvm.loop !22

.lr.ph108:                                        ; preds = %.lr.ph108, %.lr.ph108.preheader.new
  %.3107 = phi i64 [ 0, %.lr.ph108.preheader.new ], [ %101, %.lr.ph108 ]
  %niter134 = phi i64 [ 0, %.lr.ph108.preheader.new ], [ %niter134.next.3, %.lr.ph108 ]
  %90 = load ptr, ptr %28, align 8, !tbaa !9
  %91 = getelementptr inbounds double, ptr %90, i64 %.3107
  store double 0.000000e+00, ptr %91, align 8, !tbaa !10
  %92 = or disjoint i64 %.3107, 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 %.3107, 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 %.3107, 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 %.3107, 4
  %niter134.next.3 = add i64 %niter134, 4
  %niter134.ncmp.3 = icmp eq i64 %niter134.next.3, %unroll_iter133
  br i1 %niter134.ncmp.3, label %.lr.ph111.preheader.loopexit.unr-lcssa, label %.lr.ph108, !llvm.loop !23

.preheader:                                       ; preds = %.lr.ph111
  %.pre124 = load i64, ptr %6, align 8, !tbaa !5
  %.not92.not112 = icmp sgt i64 %.pre124, 0
  br i1 %.not92.not112, label %.lr.ph114.preheader, label %._crit_edge

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

.lr.ph114.preheader.new:                          ; preds = %.lr.ph114.preheader
  %unroll_iter138 = and i64 %.pre124, 9223372036854775806
  br label %.lr.ph114

.lr.ph111:                                        ; preds = %.lr.ph111.preheader, %.lr.ph111
  %.4110 = phi i64 [ %115, %.lr.ph111 ], [ 0, %.lr.ph111.preheader ]
  %103 = load ptr, ptr %29, align 8, !tbaa !9
  %104 = getelementptr inbounds ptr, ptr %103, i64 %.082116
  %105 = load ptr, ptr %104, align 8, !tbaa !16
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %105, i64 %.4110, 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 %.4110
  %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 %.4110, 1
  %exitcond120.not = icmp eq i64 %115, %1
  br i1 %exitcond120.not, label %.preheader, label %.lr.ph111, !llvm.loop !25

.lr.ph114:                                        ; preds = %.lr.ph114, %.lr.ph114.preheader.new
  %.5113 = phi i64 [ 0, %.lr.ph114.preheader.new ], [ %131, %.lr.ph114 ]
  %niter139 = phi i64 [ 0, %.lr.ph114.preheader.new ], [ %niter139.next.1, %.lr.ph114 ]
  %116 = load ptr, ptr %28, align 8, !tbaa !9
  %117 = getelementptr inbounds double, ptr %116, i64 %.5113
  %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 %.082116
  %121 = load ptr, ptr %120, align 8, !tbaa !16
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %121, i64 %.5113, i32 1
  store double %118, ptr %122, align 8, !tbaa !24
  %123 = or disjoint i64 %.5113, 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 %.082116
  %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 %.5113, 2
  %niter139.next.1 = add i64 %niter139, 2
  %niter139.ncmp.1 = icmp eq i64 %niter139.next.1, %unroll_iter138
  br i1 %niter139.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph114, !llvm.loop !26

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph114, %.lr.ph114.preheader
  %.5113.unr = phi i64 [ 0, %.lr.ph114.preheader ], [ %131, %.lr.ph114 ]
  %lcmp.mod137.not = icmp eq i64 %xtraiter135, 0
  br i1 %lcmp.mod137.not, label %._crit_edge, label %.lr.ph114.epil

.lr.ph114.epil:                                   ; preds = %._crit_edge.loopexit.unr-lcssa
  %132 = load ptr, ptr %28, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %132, i64 %.5113.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 %.082116
  %137 = load ptr, ptr %136, align 8, !tbaa !16
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %137, i64 %.5113.unr, i32 1
  store double %134, ptr %138, align 8, !tbaa !24
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph114.epil, %._crit_edge.loopexit.unr-lcssa, %.preheader
  %139 = add nuw nsw i64 %.082116, 1
  %exitcond122.not = icmp eq i64 %139, %1
  br i1 %exitcond122.not, label %.loopexit, label %.preheader97, !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_vectorEPKS0_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 #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 = !{!"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