; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (solvers)

; 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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { 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_complex" = type { double, double }
%"struct.alglib_impl::polynomialsolverreport" = type { double }

@.str.55 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [51 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
define dso_local void @_ZN11alglib_impl15polynomialsolveEPNS_9ae_vectorElS1_PNS_22polynomialsolverreportEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.alglib_impl::ae_frame", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", 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_matrix", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i8, align 1
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca %"struct.alglib_impl::ae_complex", align 8
  %24 = alloca %"struct.alglib_impl::ae_complex", align 8
  %25 = alloca %"struct.alglib_impl::ae_complex", align 8
  %26 = alloca %"struct.alglib_impl::ae_complex", align 8
  %27 = alloca %"struct.alglib_impl::ae_complex", align 8
  %28 = alloca %"struct.alglib_impl::ae_complex", align 8
  %29 = alloca %"struct.alglib_impl::ae_complex", align 8
  %30 = alloca %"struct.alglib_impl::ae_complex", align 8
  %31 = alloca %"struct.alglib_impl::ae_complex", align 8
  %32 = alloca %"struct.alglib_impl::ae_complex", align 8
  %33 = alloca %"struct.alglib_impl::ae_complex", align 8
  %34 = alloca %"struct.alglib_impl::ae_complex", align 8
  %35 = alloca %"struct.alglib_impl::ae_complex", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %36, ptr noundef %11)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %12, ptr noundef %37, ptr noundef %38, i1 noundef zeroext true)
  store ptr %12, ptr %6, align 8, !tbaa !5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %39)
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl29_polynomialsolverreport_clearEPv(ptr noundef %40)
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %13, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %41, i1 noundef zeroext true)
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %14, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %42, i1 noundef zeroext true)
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %15, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %43, i1 noundef zeroext true)
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 3, ptr noundef %44, i1 noundef zeroext true)
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 3, ptr noundef %45, i1 noundef zeroext true)
  %46 = load i64, ptr %7, align 8, !tbaa !9
  %47 = icmp sgt i64 %46, 0
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %47, ptr noundef @.str.55, ptr noundef %48)
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 0
  %51 = load i64, ptr %50, align 8, !tbaa !11
  %52 = load i64, ptr %7, align 8, !tbaa !9
  %53 = add nsw i64 %52, 1
  %54 = icmp sge i64 %51, %53
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %54, ptr noundef @.str.56, ptr noundef %55)
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = load i64, ptr %7, align 8, !tbaa !9
  %58 = add nsw i64 %57, 1
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %56, i64 noundef %58, ptr noundef %59)
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %60, ptr noundef @.str.57, ptr noundef %61)
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %62, i32 0, i32 4
  %64 = load ptr, ptr %63, align 8, !tbaa !15
  %65 = load i64, ptr %7, align 8, !tbaa !9
  %66 = getelementptr inbounds double, ptr %64, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !16
  %68 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %67, double noundef 0.000000e+00)
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %68, ptr noundef @.str.58, ptr noundef %69)
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = load i64, ptr %7, align 8, !tbaa !9
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %70, i64 noundef %71, ptr noundef %72)
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %87, %5
  %74 = load i64, ptr %21, align 8, !tbaa !9
  %75 = load i64, ptr %7, align 8, !tbaa !9
  %76 = icmp slt i64 %74, %75
  br i1 %76, label %77, label %85

77:                                               ; preds = %73
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !15
  %81 = load i64, ptr %21, align 8, !tbaa !9
  %82 = getelementptr inbounds double, ptr %80, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !16
  %84 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %83, double noundef 0.000000e+00)
  br label %85

85:                                               ; preds = %77, %73
  %86 = phi i1 [ false, %73 ], [ %84, %77 ]
  br i1 %86, label %87, label %90

87:                                               ; preds = %85
  %88 = load i64, ptr %21, align 8, !tbaa !9
  %89 = add nsw i64 %88, 1
  store i64 %89, ptr %21, align 8, !tbaa !9
  br label %73, !llvm.loop !18

90:                                               ; preds = %85
  %91 = load i64, ptr %7, align 8, !tbaa !9
  %92 = load i64, ptr %21, align 8, !tbaa !9
  %93 = sub nsw i64 %91, %92
  store i64 %93, ptr %22, align 8, !tbaa !9
  %94 = load i64, ptr %21, align 8, !tbaa !9
  store i64 %94, ptr %18, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %120, %90
  %96 = load i64, ptr %18, align 8, !tbaa !9
  %97 = load i64, ptr %7, align 8, !tbaa !9
  %98 = icmp sle i64 %96, %97
  br i1 %98, label %99, label %123

99:                                               ; preds = %95
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %100, i32 0, i32 4
  %102 = load ptr, ptr %101, align 8, !tbaa !15
  %103 = load i64, ptr %18, align 8, !tbaa !9
  %104 = getelementptr inbounds double, ptr %102, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !16
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %106, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !15
  %109 = load i64, ptr %7, align 8, !tbaa !9
  %110 = getelementptr inbounds double, ptr %108, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !16
  %112 = fdiv double %105, %111
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %113, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !15
  %116 = load i64, ptr %18, align 8, !tbaa !9
  %117 = load i64, ptr %21, align 8, !tbaa !9
  %118 = sub nsw i64 %116, %117
  %119 = getelementptr inbounds double, ptr %115, i64 %118
  store double %112, ptr %119, align 8, !tbaa !16
  br label %120

120:                                              ; preds = %99
  %121 = load i64, ptr %18, align 8, !tbaa !9
  %122 = add nsw i64 %121, 1
  store i64 %122, ptr %18, align 8, !tbaa !9
  br label %95, !llvm.loop !20

123:                                              ; preds = %95
  %124 = load i64, ptr %22, align 8, !tbaa !9
  %125 = icmp sgt i64 %124, 0
  br i1 %125, label %126, label %242

126:                                              ; preds = %123
  %127 = load i64, ptr %22, align 8, !tbaa !9
  %128 = load i64, ptr %22, align 8, !tbaa !9
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %13, i64 noundef %127, i64 noundef %128, ptr noundef %129)
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %130

130:                                              ; preds = %153, %126
  %131 = load i64, ptr %18, align 8, !tbaa !9
  %132 = load i64, ptr %22, align 8, !tbaa !9
  %133 = sub nsw i64 %132, 1
  %134 = icmp sle i64 %131, %133
  br i1 %134, label %135, label %156

135:                                              ; preds = %130
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %136

136:                                              ; preds = %149, %135
  %137 = load i64, ptr %19, align 8, !tbaa !9
  %138 = load i64, ptr %22, align 8, !tbaa !9
  %139 = sub nsw i64 %138, 1
  %140 = icmp sle i64 %137, %139
  br i1 %140, label %141, label %152

141:                                              ; preds = %136
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %143 = load ptr, ptr %142, align 8, !tbaa !15
  %144 = load i64, ptr %18, align 8, !tbaa !9
  %145 = getelementptr inbounds ptr, ptr %143, i64 %144
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = load i64, ptr %19, align 8, !tbaa !9
  %148 = getelementptr inbounds double, ptr %146, i64 %147
  store double 0.000000e+00, ptr %148, align 8, !tbaa !16
  br label %149

149:                                              ; preds = %141
  %150 = load i64, ptr %19, align 8, !tbaa !9
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %19, align 8, !tbaa !9
  br label %136, !llvm.loop !21

152:                                              ; preds = %136
  br label %153

153:                                              ; preds = %152
  %154 = load i64, ptr %18, align 8, !tbaa !9
  %155 = add nsw i64 %154, 1
  store i64 %155, ptr %18, align 8, !tbaa !9
  br label %130, !llvm.loop !22

156:                                              ; preds = %130
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %157, i32 0, i32 4
  %159 = load ptr, ptr %158, align 8, !tbaa !15
  %160 = getelementptr inbounds double, ptr %159, i64 0
  %161 = load double, ptr %160, align 8, !tbaa !16
  %162 = fneg double %161
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %164 = load ptr, ptr %163, align 8, !tbaa !15
  %165 = getelementptr inbounds ptr, ptr %164, i64 0
  %166 = load ptr, ptr %165, align 8, !tbaa !5
  %167 = load i64, ptr %22, align 8, !tbaa !9
  %168 = sub nsw i64 %167, 1
  %169 = getelementptr inbounds double, ptr %166, i64 %168
  store double %162, ptr %169, align 8, !tbaa !16
  store i64 1, ptr %18, align 8, !tbaa !9
  br label %170

170:                                              ; preds = %199, %156
  %171 = load i64, ptr %18, align 8, !tbaa !9
  %172 = load i64, ptr %22, align 8, !tbaa !9
  %173 = sub nsw i64 %172, 1
  %174 = icmp sle i64 %171, %173
  br i1 %174, label %175, label %202

175:                                              ; preds = %170
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %177 = load ptr, ptr %176, align 8, !tbaa !15
  %178 = load i64, ptr %18, align 8, !tbaa !9
  %179 = getelementptr inbounds ptr, ptr %177, i64 %178
  %180 = load ptr, ptr %179, align 8, !tbaa !5
  %181 = load i64, ptr %18, align 8, !tbaa !9
  %182 = sub nsw i64 %181, 1
  %183 = getelementptr inbounds double, ptr %180, i64 %182
  store double 1.000000e+00, ptr %183, align 8, !tbaa !16
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %184, i32 0, i32 4
  %186 = load ptr, ptr %185, align 8, !tbaa !15
  %187 = load i64, ptr %18, align 8, !tbaa !9
  %188 = getelementptr inbounds double, ptr %186, i64 %187
  %189 = load double, ptr %188, align 8, !tbaa !16
  %190 = fneg double %189
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %192 = load ptr, ptr %191, align 8, !tbaa !15
  %193 = load i64, ptr %18, align 8, !tbaa !9
  %194 = getelementptr inbounds ptr, ptr %192, i64 %193
  %195 = load ptr, ptr %194, align 8, !tbaa !5
  %196 = load i64, ptr %22, align 8, !tbaa !9
  %197 = sub nsw i64 %196, 1
  %198 = getelementptr inbounds double, ptr %195, i64 %197
  store double %190, ptr %198, align 8, !tbaa !16
  br label %199

199:                                              ; preds = %175
  %200 = load i64, ptr %18, align 8, !tbaa !9
  %201 = add nsw i64 %200, 1
  store i64 %201, ptr %18, align 8, !tbaa !9
  br label %170, !llvm.loop !23

202:                                              ; preds = %170
  %203 = load i64, ptr %22, align 8, !tbaa !9
  %204 = load ptr, ptr %10, align 8, !tbaa !5
  %205 = call noundef zeroext i1 @_ZN11alglib_impl10rmatrixevdEPNS_9ae_matrixEllPNS_9ae_vectorES3_S1_S1_PNS_8ae_stateE(ptr noundef %13, i64 noundef %203, i64 noundef 0, ptr noundef %16, ptr noundef %17, ptr noundef %14, ptr noundef %15, ptr noundef %204)
  %206 = zext i1 %205 to i8
  store i8 %206, ptr %20, align 1, !tbaa !24
  %207 = load i8, ptr %20, align 1, !tbaa !24, !range !25, !noundef !26
  %208 = trunc i8 %207 to i1
  %209 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %208, ptr noundef @.str.59, ptr noundef %209)
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %210

210:                                              ; preds = %238, %202
  %211 = load i64, ptr %18, align 8, !tbaa !9
  %212 = load i64, ptr %22, align 8, !tbaa !9
  %213 = sub nsw i64 %212, 1
  %214 = icmp sle i64 %211, %213
  br i1 %214, label %215, label %241

215:                                              ; preds = %210
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %217 = load ptr, ptr %216, align 8, !tbaa !15
  %218 = load i64, ptr %18, align 8, !tbaa !9
  %219 = getelementptr inbounds double, ptr %217, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !16
  %221 = load ptr, ptr %8, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %221, i32 0, i32 4
  %223 = load ptr, ptr %222, align 8, !tbaa !15
  %224 = load i64, ptr %18, align 8, !tbaa !9
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %223, i64 %224
  %226 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %225, i32 0, i32 0
  store double %220, ptr %226, align 8, !tbaa !27
  %227 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %228 = load ptr, ptr %227, align 8, !tbaa !15
  %229 = load i64, ptr %18, align 8, !tbaa !9
  %230 = getelementptr inbounds double, ptr %228, i64 %229
  %231 = load double, ptr %230, align 8, !tbaa !16
  %232 = load ptr, ptr %8, align 8, !tbaa !5
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %232, i32 0, i32 4
  %234 = load ptr, ptr %233, align 8, !tbaa !15
  %235 = load i64, ptr %18, align 8, !tbaa !9
  %236 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %234, i64 %235
  %237 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %236, i32 0, i32 1
  store double %231, ptr %237, align 8, !tbaa !29
  br label %238

238:                                              ; preds = %215
  %239 = load i64, ptr %18, align 8, !tbaa !9
  %240 = add nsw i64 %239, 1
  store i64 %240, ptr %18, align 8, !tbaa !9
  br label %210, !llvm.loop !30

241:                                              ; preds = %210
  br label %242

242:                                              ; preds = %241, %123
  %243 = load i64, ptr %22, align 8, !tbaa !9
  store i64 %243, ptr %18, align 8, !tbaa !9
  br label %244

244:                                              ; preds = %260, %242
  %245 = load i64, ptr %18, align 8, !tbaa !9
  %246 = load i64, ptr %7, align 8, !tbaa !9
  %247 = sub nsw i64 %246, 1
  %248 = icmp sle i64 %245, %247
  br i1 %248, label %249, label %263

249:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %250 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %251 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %252 = extractvalue { double, double } %250, 0
  store double %252, ptr %251, align 8
  %253 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %254 = extractvalue { double, double } %250, 1
  store double %254, ptr %253, align 8
  %255 = load ptr, ptr %8, align 8, !tbaa !5
  %256 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %255, i32 0, i32 4
  %257 = load ptr, ptr %256, align 8, !tbaa !15
  %258 = load i64, ptr %18, align 8, !tbaa !9
  %259 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %257, i64 %258
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %259, ptr align 8 %25, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  br label %260

260:                                              ; preds = %249
  %261 = load i64, ptr %18, align 8, !tbaa !9
  %262 = add nsw i64 %261, 1
  store i64 %262, ptr %18, align 8, !tbaa !9
  br label %244, !llvm.loop !32

263:                                              ; preds = %244
  %264 = load ptr, ptr %9, align 8, !tbaa !5
  %265 = getelementptr inbounds %"struct.alglib_impl::polynomialsolverreport", ptr %264, i32 0, i32 0
  store double 0.000000e+00, ptr %265, align 8, !tbaa !33
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %266

266:                                              ; preds = %350, %263
  %267 = load i64, ptr %18, align 8, !tbaa !9
  %268 = load i64, ptr %22, align 8, !tbaa !9
  %269 = sub nsw i64 %268, 1
  %270 = icmp sle i64 %267, %269
  br i1 %270, label %271, label %353

271:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %272 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %273 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %274 = extractvalue { double, double } %272, 0
  store double %274, ptr %273, align 8
  %275 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %276 = extractvalue { double, double } %272, 1
  store double %276, ptr %275, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %26, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  %277 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %278 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %279 = extractvalue { double, double } %277, 0
  store double %279, ptr %278, align 8
  %280 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %281 = extractvalue { double, double } %277, 1
  store double %281, ptr %280, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %27, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %282

282:                                              ; preds = %333, %271
  %283 = load i64, ptr %19, align 8, !tbaa !9
  %284 = load i64, ptr %22, align 8, !tbaa !9
  %285 = icmp sle i64 %283, %284
  br i1 %285, label %286, label %336

286:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !31
  %287 = load ptr, ptr %6, align 8, !tbaa !5
  %288 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %287, i32 0, i32 4
  %289 = load ptr, ptr %288, align 8, !tbaa !15
  %290 = load i64, ptr %19, align 8, !tbaa !9
  %291 = getelementptr inbounds double, ptr %289, i64 %290
  %292 = load double, ptr %291, align 8, !tbaa !16
  %293 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %294 = load double, ptr %293, align 8
  %295 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %296 = load double, ptr %295, align 8
  %297 = call { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double %294, double %296, double noundef %292)
  %298 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %299 = extractvalue { double, double } %297, 0
  store double %299, ptr %298, align 8
  %300 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %301 = extractvalue { double, double } %297, 1
  store double %301, ptr %300, align 8
  %302 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %303 = load double, ptr %302, align 8
  %304 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %305 = load double, ptr %304, align 8
  %306 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %307 = load double, ptr %306, align 8
  %308 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %309 = load double, ptr %308, align 8
  %310 = call { double, double } @_ZN11alglib_impl8ae_c_addENS_10ae_complexES0_(double %303, double %305, double %307, double %309)
  %311 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %312 = extractvalue { double, double } %310, 0
  store double %312, ptr %311, align 8
  %313 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %314 = extractvalue { double, double } %310, 1
  store double %314, ptr %313, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %33, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !31
  %315 = load ptr, ptr %8, align 8, !tbaa !5
  %316 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %315, i32 0, i32 4
  %317 = load ptr, ptr %316, align 8, !tbaa !15
  %318 = load i64, ptr %18, align 8, !tbaa !9
  %319 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %317, i64 %318
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %319, i64 16, i1 false), !tbaa.struct !31
  %320 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %321 = load double, ptr %320, align 8
  %322 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %323 = load double, ptr %322, align 8
  %324 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %325 = load double, ptr %324, align 8
  %326 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %327 = load double, ptr %326, align 8
  %328 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %321, double %323, double %325, double %327)
  %329 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %330 = extractvalue { double, double } %328, 0
  store double %330, ptr %329, align 8
  %331 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %332 = extractvalue { double, double } %328, 1
  store double %332, ptr %331, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %32, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #5
  br label %333

333:                                              ; preds = %286
  %334 = load i64, ptr %19, align 8, !tbaa !9
  %335 = add nsw i64 %334, 1
  store i64 %335, ptr %19, align 8, !tbaa !9
  br label %282, !llvm.loop !35

336:                                              ; preds = %282
  %337 = load ptr, ptr %9, align 8, !tbaa !5
  %338 = getelementptr inbounds %"struct.alglib_impl::polynomialsolverreport", ptr %337, i32 0, i32 0
  %339 = load double, ptr %338, align 8, !tbaa !33
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !31
  %340 = load ptr, ptr %10, align 8, !tbaa !5
  %341 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %342 = load double, ptr %341, align 8
  %343 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %344 = load double, ptr %343, align 8
  %345 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %342, double %344, ptr noundef %340)
  %346 = load ptr, ptr %10, align 8, !tbaa !5
  %347 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %339, double noundef %345, ptr noundef %346)
  %348 = load ptr, ptr %9, align 8, !tbaa !5
  %349 = getelementptr inbounds %"struct.alglib_impl::polynomialsolverreport", ptr %348, i32 0, i32 0
  store double %347, ptr %349, align 8, !tbaa !33
  br label %350

350:                                              ; preds = %336
  %351 = load i64, ptr %18, align 8, !tbaa !9
  %352 = add nsw i64 %351, 1
  store i64 %352, ptr %18, align 8, !tbaa !9
  br label %266, !llvm.loop !36

353:                                              ; preds = %266
  %354 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %354)
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  ret void
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, 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_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 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 noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef) #2

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

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl29_polynomialsolverreport_clearEPv(ptr noundef) #3

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

declare { double, double } @_ZN11alglib_impl8ae_c_addENS_10ae_complexES0_(double, double, double, double) #2

declare { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double, double, double noundef) #2

declare { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double, double, double, double) #2

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double, double, 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}
!24 = !{!13, !13, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!28, !17, i64 0}
!28 = !{!"_ZTSN11alglib_impl10ae_complexE", !17, i64 0, !17, i64 8}
!29 = !{!28, !17, i64 8}
!30 = distinct !{!30, !19}
!31 = !{i64 0, i64 8, !16, i64 8, i64 8, !16}
!32 = distinct !{!32, !19}
!33 = !{!34, !17, i64 0}
!34 = !{!"_ZTSN11alglib_impl22polynomialsolverreportE", !17, i64 0}
!35 = distinct !{!35, !19}
!36 = distinct !{!36, !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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { 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_complex" = type { double, double }

@.str.55 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [51 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
define dso_local void @_ZN11alglib_impl15polynomialsolveEPNS_9ae_vectorElS1_PNS_22polynomialsolverreportEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #3 {
  %6 = alloca %"struct.alglib_impl::ae_frame", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %10 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %4, ptr noundef nonnull %6)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %8, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %9, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %10, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %7, ptr noundef %0, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %2)
  call void @_ZN11alglib_impl29_polynomialsolverreport_clearEPv(ptr noundef %3)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  %13 = icmp sgt i64 %1, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.55, ptr noundef %4)
  %14 = load i64, ptr %7, align 8, !tbaa !5
  %15 = add i64 %1, 1
  %16 = icmp sgt i64 %14, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.56, ptr noundef %4)
  %17 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %15, ptr noundef %4)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.57, ptr noundef %4)
  %18 = getelementptr inbounds i8, ptr %7, i64 56
  %19 = load ptr, ptr %18, align 8, !tbaa !13
  %20 = getelementptr inbounds double, ptr %19, i64 %1
  %21 = load double, ptr %20, align 8, !tbaa !14
  %22 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %21, double noundef 0.000000e+00)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.58, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %1, ptr noundef %4)
  br i1 %13, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %5, %27
  %.0124140 = phi i64 [ %28, %27 ], [ 0, %5 ]
  %23 = load ptr, ptr %18, align 8, !tbaa !13
  %24 = getelementptr inbounds double, ptr %23, i64 %.0124140
  %25 = load double, ptr %24, align 8, !tbaa !14
  %26 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %25, double noundef 0.000000e+00)
  br i1 %26, label %27, label %.critedge

27:                                               ; preds = %.lr.ph
  %28 = add nuw nsw i64 %.0124140, 1
  %exitcond.not = icmp eq i64 %28, %1
  br i1 %exitcond.not, label %.lr.ph145.preheader, label %.lr.ph, !llvm.loop !16

.critedge:                                        ; preds = %.lr.ph, %5
  %.0124.lcssa = phi i64 [ 0, %5 ], [ %.0124140, %.lr.ph ]
  %29 = sub i64 %1, %.0124.lcssa
  %.not143 = icmp sgt i64 %.0124.lcssa, %1
  br i1 %.not143, label %._crit_edge, label %.lr.ph145.preheader

.lr.ph145.preheader:                              ; preds = %27, %.critedge
  %30 = phi i64 [ %29, %.critedge ], [ 0, %27 ]
  %.0124.lcssa195 = phi i64 [ %.0124.lcssa, %.critedge ], [ %1, %27 ]
  %31 = add i64 %.0124.lcssa195, %1
  %32 = and i64 %31, 1
  %lcmp.mod.not.not = icmp eq i64 %32, 0
  br i1 %lcmp.mod.not.not, label %.lr.ph145.prol, label %.lr.ph145.prol.loopexit

.lr.ph145.prol:                                   ; preds = %.lr.ph145.preheader
  %33 = load ptr, ptr %18, align 8, !tbaa !13
  %34 = getelementptr inbounds double, ptr %33, i64 %.0124.lcssa195
  %35 = load double, ptr %34, align 8, !tbaa !14
  %36 = getelementptr inbounds double, ptr %33, i64 %1
  %37 = load double, ptr %36, align 8, !tbaa !14
  %38 = fdiv double %35, %37
  store double %38, ptr %33, align 8, !tbaa !14
  %39 = add i64 %.0124.lcssa195, 1
  br label %.lr.ph145.prol.loopexit

.lr.ph145.prol.loopexit:                          ; preds = %.lr.ph145.prol, %.lr.ph145.preheader
  %.0144.unr = phi i64 [ %.0124.lcssa195, %.lr.ph145.preheader ], [ %39, %.lr.ph145.prol ]
  %40 = icmp eq i64 %.0124.lcssa195, %1
  br i1 %40, label %._crit_edge, label %.lr.ph145

.lr.ph145:                                        ; preds = %.lr.ph145.prol.loopexit, %.lr.ph145
  %.0144 = phi i64 [ %58, %.lr.ph145 ], [ %.0144.unr, %.lr.ph145.prol.loopexit ]
  %41 = load ptr, ptr %18, align 8, !tbaa !13
  %42 = getelementptr inbounds double, ptr %41, i64 %.0144
  %43 = load double, ptr %42, align 8, !tbaa !14
  %44 = getelementptr inbounds double, ptr %41, i64 %1
  %45 = load double, ptr %44, align 8, !tbaa !14
  %46 = fdiv double %43, %45
  %47 = sub nuw nsw i64 %.0144, %.0124.lcssa195
  %48 = getelementptr inbounds double, ptr %41, i64 %47
  store double %46, ptr %48, align 8, !tbaa !14
  %49 = add i64 %.0144, 1
  %50 = load ptr, ptr %18, align 8, !tbaa !13
  %51 = getelementptr inbounds double, ptr %50, i64 %49
  %52 = load double, ptr %51, align 8, !tbaa !14
  %53 = getelementptr inbounds double, ptr %50, i64 %1
  %54 = load double, ptr %53, align 8, !tbaa !14
  %55 = fdiv double %52, %54
  %56 = sub nuw nsw i64 %49, %.0124.lcssa195
  %57 = getelementptr inbounds double, ptr %50, i64 %56
  store double %55, ptr %57, align 8, !tbaa !14
  %58 = add i64 %.0144, 2
  %exitcond186.not.1 = icmp eq i64 %49, %1
  br i1 %exitcond186.not.1, label %._crit_edge, label %.lr.ph145, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph145.prol.loopexit, %.lr.ph145, %.critedge
  %59 = phi i64 [ %29, %.critedge ], [ %30, %.lr.ph145 ], [ %30, %.lr.ph145.prol.loopexit ]
  %.0124.lcssa196 = phi i64 [ %.0124.lcssa, %.critedge ], [ %.0124.lcssa195, %.lr.ph145 ], [ %.0124.lcssa195, %.lr.ph145.prol.loopexit ]
  %60 = icmp sgt i64 %59, 0
  br i1 %60, label %.split.us, label %.loopexit

.split.us:                                        ; preds = %._crit_edge
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %59, i64 noundef %59, ptr noundef %4)
  %61 = getelementptr inbounds i8, ptr %8, i64 72
  %62 = add nsw i64 %59, -1
  %xtraiter200 = and i64 %59, 3
  %63 = icmp ult i64 %59, 4
  %unroll_iter = and i64 %59, 9223372036854775804
  %lcmp.mod201.not = icmp eq i64 %xtraiter200, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge149.us, %.split.us
  %.1150.us = phi i64 [ 0, %.split.us ], [ %89, %._crit_edge149.us ]
  br i1 %63, label %._crit_edge149.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.0122147.us = phi i64 [ %83, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %64 = load ptr, ptr %61, align 8, !tbaa !13
  %65 = getelementptr inbounds ptr, ptr %64, i64 %.1150.us
  %66 = load ptr, ptr %65, align 8, !tbaa !19
  %67 = getelementptr inbounds double, ptr %66, i64 %.0122147.us
  store double 0.000000e+00, ptr %67, align 8, !tbaa !14
  %68 = or disjoint i64 %.0122147.us, 1
  %69 = load ptr, ptr %61, align 8, !tbaa !13
  %70 = getelementptr inbounds ptr, ptr %69, i64 %.1150.us
  %71 = load ptr, ptr %70, align 8, !tbaa !19
  %72 = getelementptr inbounds double, ptr %71, i64 %68
  store double 0.000000e+00, ptr %72, align 8, !tbaa !14
  %73 = or disjoint i64 %.0122147.us, 2
  %74 = load ptr, ptr %61, align 8, !tbaa !13
  %75 = getelementptr inbounds ptr, ptr %74, i64 %.1150.us
  %76 = load ptr, ptr %75, align 8, !tbaa !19
  %77 = getelementptr inbounds double, ptr %76, i64 %73
  store double 0.000000e+00, ptr %77, align 8, !tbaa !14
  %78 = or disjoint i64 %.0122147.us, 3
  %79 = load ptr, ptr %61, align 8, !tbaa !13
  %80 = getelementptr inbounds ptr, ptr %79, i64 %.1150.us
  %81 = load ptr, ptr %80, align 8, !tbaa !19
  %82 = getelementptr inbounds double, ptr %81, i64 %78
  store double 0.000000e+00, ptr %82, align 8, !tbaa !14
  %83 = add nuw nsw i64 %.0122147.us, 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 %._crit_edge149.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !20

._crit_edge149.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.0122147.us.unr = phi i64 [ 0, %.preheader.us ], [ %83, %.preheader.us.new ]
  br i1 %lcmp.mod201.not, label %._crit_edge149.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge149.us.unr-lcssa, %.epil.preheader
  %.0122147.us.epil = phi i64 [ %88, %.epil.preheader ], [ %.0122147.us.unr, %._crit_edge149.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge149.us.unr-lcssa ]
  %84 = load ptr, ptr %61, align 8, !tbaa !13
  %85 = getelementptr inbounds ptr, ptr %84, i64 %.1150.us
  %86 = load ptr, ptr %85, align 8, !tbaa !19
  %87 = getelementptr inbounds double, ptr %86, i64 %.0122147.us.epil
  store double 0.000000e+00, ptr %87, align 8, !tbaa !14
  %88 = add nuw nsw i64 %.0122147.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter200
  br i1 %epil.iter.cmp.not, label %._crit_edge149.us, label %.epil.preheader, !llvm.loop !21

._crit_edge149.us:                                ; preds = %.epil.preheader, %._crit_edge149.us.unr-lcssa
  %89 = add nuw nsw i64 %.1150.us, 1
  %exitcond188.not = icmp eq i64 %89, %59
  br i1 %exitcond188.not, label %.split152.us, label %.preheader.us, !llvm.loop !23

.split152.us:                                     ; preds = %._crit_edge149.us
  %90 = add nsw i64 %59, -1
  %91 = load ptr, ptr %18, align 8, !tbaa !13
  %92 = load double, ptr %91, align 8, !tbaa !14
  %93 = fneg double %92
  %94 = load ptr, ptr %61, align 8, !tbaa !13
  %95 = load ptr, ptr %94, align 8, !tbaa !19
  %96 = getelementptr inbounds double, ptr %95, i64 %90
  store double %93, ptr %96, align 8, !tbaa !14
  %.not131.not153.not = icmp eq i64 %59, 1
  br i1 %.not131.not153.not, label %.lr.ph161, label %.lr.ph156.preheader

.lr.ph156.preheader:                              ; preds = %.split152.us
  %xtraiter202 = and i64 %62, 1
  %97 = icmp eq i64 %59, 2
  br i1 %97, label %.lr.ph161.loopexit.unr-lcssa, label %.lr.ph156.preheader.new

.lr.ph156.preheader.new:                          ; preds = %.lr.ph156.preheader
  %unroll_iter205 = and i64 %62, -2
  br label %.lr.ph156

.lr.ph156:                                        ; preds = %.lr.ph156, %.lr.ph156.preheader.new
  %.2154 = phi i64 [ 1, %.lr.ph156.preheader.new ], [ %125, %.lr.ph156 ]
  %niter206 = phi i64 [ 0, %.lr.ph156.preheader.new ], [ %niter206.next.1, %.lr.ph156 ]
  %98 = load ptr, ptr %61, align 8, !tbaa !13
  %99 = getelementptr inbounds ptr, ptr %98, i64 %.2154
  %100 = load ptr, ptr %99, align 8, !tbaa !19
  %101 = getelementptr double, ptr %100, i64 %.2154
  %102 = getelementptr i8, ptr %101, i64 -8
  store double 1.000000e+00, ptr %102, align 8, !tbaa !14
  %103 = load ptr, ptr %18, align 8, !tbaa !13
  %104 = getelementptr inbounds double, ptr %103, i64 %.2154
  %105 = load double, ptr %104, align 8, !tbaa !14
  %106 = fneg double %105
  %107 = load ptr, ptr %61, align 8, !tbaa !13
  %108 = getelementptr inbounds ptr, ptr %107, i64 %.2154
  %109 = load ptr, ptr %108, align 8, !tbaa !19
  %110 = getelementptr inbounds double, ptr %109, i64 %90
  store double %106, ptr %110, align 8, !tbaa !14
  %111 = add nuw nsw i64 %.2154, 1
  %112 = load ptr, ptr %61, align 8, !tbaa !13
  %113 = getelementptr inbounds ptr, ptr %112, i64 %111
  %114 = load ptr, ptr %113, align 8, !tbaa !19
  %115 = getelementptr double, ptr %114, i64 %111
  %116 = getelementptr i8, ptr %115, i64 -8
  store double 1.000000e+00, ptr %116, align 8, !tbaa !14
  %117 = load ptr, ptr %18, align 8, !tbaa !13
  %118 = getelementptr inbounds double, ptr %117, i64 %111
  %119 = load double, ptr %118, align 8, !tbaa !14
  %120 = fneg double %119
  %121 = load ptr, ptr %61, align 8, !tbaa !13
  %122 = getelementptr inbounds ptr, ptr %121, i64 %111
  %123 = load ptr, ptr %122, align 8, !tbaa !19
  %124 = getelementptr inbounds double, ptr %123, i64 %90
  store double %120, ptr %124, align 8, !tbaa !14
  %125 = add nuw nsw i64 %.2154, 2
  %niter206.next.1 = add i64 %niter206, 2
  %niter206.ncmp.1 = icmp eq i64 %niter206.next.1, %unroll_iter205
  br i1 %niter206.ncmp.1, label %.lr.ph161.loopexit.unr-lcssa, label %.lr.ph156, !llvm.loop !24

.lr.ph161.loopexit.unr-lcssa:                     ; preds = %.lr.ph156, %.lr.ph156.preheader
  %.2154.unr = phi i64 [ 1, %.lr.ph156.preheader ], [ %125, %.lr.ph156 ]
  %lcmp.mod204.not = icmp eq i64 %xtraiter202, 0
  br i1 %lcmp.mod204.not, label %.lr.ph161, label %.lr.ph156.epil

.lr.ph156.epil:                                   ; preds = %.lr.ph161.loopexit.unr-lcssa
  %126 = load ptr, ptr %61, align 8, !tbaa !13
  %127 = getelementptr inbounds ptr, ptr %126, i64 %.2154.unr
  %128 = load ptr, ptr %127, align 8, !tbaa !19
  %129 = getelementptr double, ptr %128, i64 %.2154.unr
  %130 = getelementptr i8, ptr %129, i64 -8
  store double 1.000000e+00, ptr %130, align 8, !tbaa !14
  %131 = load ptr, ptr %18, align 8, !tbaa !13
  %132 = getelementptr inbounds double, ptr %131, i64 %.2154.unr
  %133 = load double, ptr %132, align 8, !tbaa !14
  %134 = fneg double %133
  %135 = load ptr, ptr %61, align 8, !tbaa !13
  %136 = getelementptr inbounds ptr, ptr %135, i64 %.2154.unr
  %137 = load ptr, ptr %136, align 8, !tbaa !19
  %138 = getelementptr inbounds double, ptr %137, i64 %90
  store double %134, ptr %138, align 8, !tbaa !14
  br label %.lr.ph161

.lr.ph161:                                        ; preds = %.lr.ph156.epil, %.lr.ph161.loopexit.unr-lcssa, %.split152.us
  %139 = call noundef zeroext i1 @_ZN11alglib_impl10rmatrixevdEPNS_9ae_matrixEllPNS_9ae_vectorES3_S1_S1_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %59, i64 noundef 0, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %4)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %139, ptr noundef nonnull @.str.59, ptr noundef %4)
  %140 = getelementptr inbounds i8, ptr %11, i64 56
  %141 = getelementptr inbounds i8, ptr %2, i64 56
  %142 = getelementptr inbounds i8, ptr %12, i64 56
  %smax = call i64 @llvm.smax.i64(i64 %59, i64 1)
  %xtraiter208 = and i64 %smax, 1
  %143 = icmp eq i64 %59, 1
  br i1 %143, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph161.new

.lr.ph161.new:                                    ; preds = %.lr.ph161
  %unroll_iter211 = and i64 %smax, 9223372036854775806
  br label %144

144:                                              ; preds = %144, %.lr.ph161.new
  %.3159 = phi i64 [ 0, %.lr.ph161.new ], [ %166, %144 ]
  %niter212 = phi i64 [ 0, %.lr.ph161.new ], [ %niter212.next.1, %144 ]
  %145 = load ptr, ptr %140, align 8, !tbaa !13
  %146 = getelementptr inbounds double, ptr %145, i64 %.3159
  %147 = load double, ptr %146, align 8, !tbaa !14
  %148 = load ptr, ptr %141, align 8, !tbaa !13
  %149 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %148, i64 %.3159
  store double %147, ptr %149, align 8, !tbaa !25
  %150 = load ptr, ptr %142, align 8, !tbaa !13
  %151 = getelementptr inbounds double, ptr %150, i64 %.3159
  %152 = load double, ptr %151, align 8, !tbaa !14
  %153 = load ptr, ptr %141, align 8, !tbaa !13
  %154 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %153, i64 %.3159, i32 1
  store double %152, ptr %154, align 8, !tbaa !27
  %155 = or disjoint i64 %.3159, 1
  %156 = load ptr, ptr %140, align 8, !tbaa !13
  %157 = getelementptr inbounds double, ptr %156, i64 %155
  %158 = load double, ptr %157, align 8, !tbaa !14
  %159 = load ptr, ptr %141, align 8, !tbaa !13
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %159, i64 %155
  store double %158, ptr %160, align 8, !tbaa !25
  %161 = load ptr, ptr %142, align 8, !tbaa !13
  %162 = getelementptr inbounds double, ptr %161, i64 %155
  %163 = load double, ptr %162, align 8, !tbaa !14
  %164 = load ptr, ptr %141, align 8, !tbaa !13
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %164, i64 %155, i32 1
  store double %163, ptr %165, align 8, !tbaa !27
  %166 = add nuw nsw i64 %.3159, 2
  %niter212.next.1 = add i64 %niter212, 2
  %niter212.ncmp.1 = icmp eq i64 %niter212.next.1, %unroll_iter211
  br i1 %niter212.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %144, !llvm.loop !28

.loopexit.loopexit.unr-lcssa:                     ; preds = %144, %.lr.ph161
  %.3159.unr = phi i64 [ 0, %.lr.ph161 ], [ %166, %144 ]
  %lcmp.mod210.not = icmp eq i64 %xtraiter208, 0
  br i1 %lcmp.mod210.not, label %.loopexit, label %.loopexit.loopexit.epilog-lcssa

.loopexit.loopexit.epilog-lcssa:                  ; preds = %.loopexit.loopexit.unr-lcssa
  %167 = load ptr, ptr %140, align 8, !tbaa !13
  %168 = getelementptr inbounds double, ptr %167, i64 %.3159.unr
  %169 = load double, ptr %168, align 8, !tbaa !14
  %170 = load ptr, ptr %141, align 8, !tbaa !13
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %170, i64 %.3159.unr
  store double %169, ptr %171, align 8, !tbaa !25
  %172 = load ptr, ptr %142, align 8, !tbaa !13
  %173 = getelementptr inbounds double, ptr %172, i64 %.3159.unr
  %174 = load double, ptr %173, align 8, !tbaa !14
  %175 = load ptr, ptr %141, align 8, !tbaa !13
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %175, i64 %.3159.unr, i32 1
  store double %174, ptr %176, align 8, !tbaa !27
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit.epilog-lcssa, %.loopexit.loopexit.unr-lcssa, %._crit_edge
  %.not133.not162 = icmp sgt i64 %.0124.lcssa196, 0
  br i1 %.not133.not162, label %.lr.ph165, label %._crit_edge166

.lr.ph165:                                        ; preds = %.loopexit
  %177 = getelementptr inbounds i8, ptr %2, i64 56
  br label %178

178:                                              ; preds = %.lr.ph165, %178
  %.4163 = phi i64 [ %59, %.lr.ph165 ], [ %184, %178 ]
  %179 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %180 = extractvalue { double, double } %179, 0
  %181 = extractvalue { double, double } %179, 1
  %182 = load ptr, ptr %177, align 8, !tbaa !13
  %183 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %182, i64 %.4163
  store double %180, ptr %183, align 8, !tbaa !14
  %.sroa.419.0..sroa_idx = getelementptr inbounds i8, ptr %183, i64 8
  store double %181, ptr %.sroa.419.0..sroa_idx, align 8, !tbaa !14
  %184 = add nsw i64 %.4163, 1
  %.not133.not = icmp slt i64 %184, %1
  br i1 %.not133.not, label %178, label %._crit_edge166, !llvm.loop !29

._crit_edge166:                                   ; preds = %178, %.loopexit
  store double 0.000000e+00, ptr %3, align 8, !tbaa !30
  br i1 %60, label %.lr.ph182, label %._crit_edge183

.lr.ph182:                                        ; preds = %._crit_edge166
  %185 = getelementptr inbounds i8, ptr %2, i64 56
  %186 = sub i64 %15, %.0124.lcssa196
  br label %.lr.ph175.preheader

.lr.ph175.preheader:                              ; preds = %._crit_edge176, %.lr.ph182
  %.5180 = phi i64 [ 0, %.lr.ph182 ], [ %203, %._crit_edge176 ]
  %187 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %188 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %.sroa.021.0168 = extractvalue { double, double } %187, 0
  %.sroa.622.0167 = extractvalue { double, double } %187, 1
  br label %.lr.ph175

.lr.ph175:                                        ; preds = %.lr.ph175.preheader, %.lr.ph175
  %.sroa.021.0173 = phi double [ %.sroa.021.0, %.lr.ph175 ], [ %.sroa.021.0168, %.lr.ph175.preheader ]
  %.sroa.622.0172 = phi double [ %.sroa.622.0, %.lr.ph175 ], [ %.sroa.622.0167, %.lr.ph175.preheader ]
  %.1123171 = phi i64 [ %199, %.lr.ph175 ], [ 0, %.lr.ph175.preheader ]
  %.pn170 = phi { double, double } [ %198, %.lr.ph175 ], [ %188, %.lr.ph175.preheader ]
  %.sroa.6.0 = extractvalue { double, double } %.pn170, 1
  %.sroa.020.0 = extractvalue { double, double } %.pn170, 0
  %189 = load ptr, ptr %18, align 8, !tbaa !13
  %190 = getelementptr inbounds double, ptr %189, i64 %.1123171
  %191 = load double, ptr %190, align 8, !tbaa !14
  %192 = call { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double %.sroa.020.0, double %.sroa.6.0, double noundef %191)
  %193 = extractvalue { double, double } %192, 0
  %194 = extractvalue { double, double } %192, 1
  %195 = call { double, double } @_ZN11alglib_impl8ae_c_addENS_10ae_complexES0_(double %.sroa.021.0173, double %.sroa.622.0172, double %193, double %194)
  %196 = load ptr, ptr %185, align 8, !tbaa !13
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %196, i64 %.5180
  %.sroa.01.0.copyload = load double, ptr %197, align 8, !tbaa !14
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %197, i64 8
  %.sroa.22.0.copyload = load double, ptr %.sroa.22.0..sroa_idx, align 8, !tbaa !14
  %198 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %.sroa.020.0, double %.sroa.6.0, double %.sroa.01.0.copyload, double %.sroa.22.0.copyload)
  %199 = add nuw i64 %.1123171, 1
  %.sroa.622.0 = extractvalue { double, double } %195, 1
  %.sroa.021.0 = extractvalue { double, double } %195, 0
  %exitcond191.not = icmp eq i64 %199, %186
  br i1 %exitcond191.not, label %._crit_edge176, label %.lr.ph175, !llvm.loop !32

._crit_edge176:                                   ; preds = %.lr.ph175
  %200 = load double, ptr %3, align 8, !tbaa !30
  %201 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %.sroa.021.0, double %.sroa.622.0, ptr noundef %4)
  %202 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %200, double noundef %201, ptr noundef %4)
  store double %202, ptr %3, align 8, !tbaa !30
  %203 = add nuw nsw i64 %.5180, 1
  %exitcond192.not = icmp eq i64 %203, %59
  br i1 %exitcond192.not, label %._crit_edge183, label %.lr.ph175.preheader, !llvm.loop !33

._crit_edge183:                                   ; preds = %._crit_edge176, %._crit_edge166
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  ret void
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, 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_impl14ae_frame_leaveEPNS_8ae_stateE(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

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_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) local_unnamed_addr #2

declare { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef) local_unnamed_addr #2

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

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl29_polynomialsolverreport_clearEPv(ptr noundef) local_unnamed_addr #3

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

declare { double, double } @_ZN11alglib_impl8ae_c_addENS_10ae_complexES0_(double, double, double, double) local_unnamed_addr #2

declare { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double, double, double noundef) local_unnamed_addr #2

declare { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double, double, double, double) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double, double, ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #4

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!12, !12, i64 0}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = !{!26, !15, i64 0}
!26 = !{!"_ZTSN11alglib_impl10ae_complexE", !15, i64 0, !15, i64 8}
!27 = !{!26, !15, i64 8}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}
!30 = !{!31, !15, i64 0}
!31 = !{!"_ZTSN11alglib_impl22polynomialsolverreportE", !15, i64 0}
!32 = distinct !{!32, !17}
!33 = distinct !{!33, !17}


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