; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z9testxblasbPN11alglib_impl8ae_stateE)

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

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.344 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.345 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.346 = external hidden unnamed_addr constant [42 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

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(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_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #1

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

declare i32 @printf(ptr noundef, ...) #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) #1

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

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

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #1

; 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) #1

declare { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1

declare noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double, double, ptr noundef) #1

declare { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double, double, double, double) #1

declare { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef) #1

declare noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z9testxblasbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #5 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca double, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca %"struct.alglib_impl::ae_complex", align 8
  %19 = alloca %"struct.alglib_impl::ae_complex", align 8
  %20 = alloca double, align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca %"struct.alglib_impl::ae_vector", align 8
  %25 = alloca %"struct.alglib_impl::ae_vector", align 8
  %26 = alloca double, align 8
  %27 = alloca i8, align 1
  %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
  %36 = alloca %"struct.alglib_impl::ae_complex", align 8
  %37 = alloca %"struct.alglib_impl::ae_complex", align 8
  %38 = alloca %"struct.alglib_impl::ae_complex", align 8
  %39 = alloca %"struct.alglib_impl::ae_complex", align 8
  %40 = alloca %"struct.alglib_impl::ae_complex", align 8
  %41 = alloca %"struct.alglib_impl::ae_complex", align 8
  %42 = alloca %"struct.alglib_impl::ae_complex", align 8
  %43 = alloca %"struct.alglib_impl::ae_complex", align 8
  %44 = alloca %"struct.alglib_impl::ae_complex", align 8
  %45 = alloca %"struct.alglib_impl::ae_complex", align 8
  %46 = alloca %"struct.alglib_impl::ae_complex", align 8
  %47 = alloca %"struct.alglib_impl::ae_complex", align 8
  %48 = zext i1 %0 to i8
  store i8 %48, ptr %3, align 1, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  %49 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %49, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 64, i1 false)
  %50 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 3, ptr noundef %50, i1 noundef zeroext true)
  %51 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 3, ptr noundef %51, i1 noundef zeroext true)
  %52 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 4, ptr noundef %52, i1 noundef zeroext true)
  %53 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %24, i64 noundef 0, i64 noundef 4, ptr noundef %53, i1 noundef zeroext true)
  %54 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %25, i64 noundef 0, i64 noundef 3, ptr noundef %54, i1 noundef zeroext true)
  store i8 0, ptr %6, align 1, !tbaa !5
  store i8 0, ptr %7, align 1, !tbaa !5
  store i8 0, ptr %8, align 1, !tbaa !5
  store double 5.000000e-13, ptr %9, align 8, !tbaa !11
  store i64 1000, ptr %10, align 8, !tbaa !13
  store i64 10, ptr %11, align 8, !tbaa !13
  store i64 1, ptr %12, align 8, !tbaa !13
  br label %55

55:                                               ; preds = %266, %2
  %56 = load i64, ptr %12, align 8, !tbaa !13
  %57 = load i64, ptr %10, align 8, !tbaa !13
  %58 = icmp sle i64 %56, %57
  br i1 %58, label %59, label %269

59:                                               ; preds = %55
  store i64 1, ptr %14, align 8, !tbaa !13
  br label %60

60:                                               ; preds = %262, %59
  %61 = load i64, ptr %14, align 8, !tbaa !13
  %62 = load i64, ptr %11, align 8, !tbaa !13
  %63 = icmp sle i64 %61, %62
  br i1 %63, label %64, label %265

64:                                               ; preds = %60
  %65 = load i64, ptr %12, align 8, !tbaa !13
  %66 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %65, ptr noundef %66)
  %67 = load i64, ptr %12, align 8, !tbaa !13
  %68 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %67, ptr noundef %68)
  %69 = load i64, ptr %12, align 8, !tbaa !13
  %70 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef %69, ptr noundef %70)
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %71

71:                                               ; preds = %111, %64
  %72 = load i64, ptr %13, align 8, !tbaa !13
  %73 = load i64, ptr %12, align 8, !tbaa !13
  %74 = sub nsw i64 %73, 1
  %75 = icmp sle i64 %72, %74
  br i1 %75, label %76, label %114

76:                                               ; preds = %71
  %77 = load ptr, ptr %4, align 8, !tbaa !9
  %78 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %77)
  %79 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %78, double noundef 2.000000e-01)
  br i1 %79, label %80, label %88

80:                                               ; preds = %76
  %81 = load ptr, ptr %4, align 8, !tbaa !9
  %82 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %81)
  %83 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %82, double -1.000000e+00)
  %84 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !15
  %86 = load i64, ptr %13, align 8, !tbaa !13
  %87 = getelementptr inbounds double, ptr %85, i64 %86
  store double %83, ptr %87, align 8, !tbaa !11
  br label %93

88:                                               ; preds = %76
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !15
  %91 = load i64, ptr %13, align 8, !tbaa !13
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  store double 0.000000e+00, ptr %92, align 8, !tbaa !11
  br label %93

93:                                               ; preds = %88, %80
  %94 = load ptr, ptr %4, align 8, !tbaa !9
  %95 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %94)
  %96 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %95, double noundef 2.000000e-01)
  br i1 %96, label %97, label %105

97:                                               ; preds = %93
  %98 = load ptr, ptr %4, align 8, !tbaa !9
  %99 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %98)
  %100 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %99, double -1.000000e+00)
  %101 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %102 = load ptr, ptr %101, align 8, !tbaa !15
  %103 = load i64, ptr %13, align 8, !tbaa !13
  %104 = getelementptr inbounds double, ptr %102, i64 %103
  store double %100, ptr %104, align 8, !tbaa !11
  br label %110

105:                                              ; preds = %93
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %107 = load ptr, ptr %106, align 8, !tbaa !15
  %108 = load i64, ptr %13, align 8, !tbaa !13
  %109 = getelementptr inbounds double, ptr %107, i64 %108
  store double 0.000000e+00, ptr %109, align 8, !tbaa !11
  br label %110

110:                                              ; preds = %105, %97
  br label %111

111:                                              ; preds = %110
  %112 = load i64, ptr %13, align 8, !tbaa !13
  %113 = add nsw i64 %112, 1
  store i64 %113, ptr %13, align 8, !tbaa !13
  br label %71, !llvm.loop !16

114:                                              ; preds = %71
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !15
  %117 = getelementptr inbounds double, ptr %116, i64 0
  %118 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %119 = load ptr, ptr %118, align 8, !tbaa !15
  %120 = getelementptr inbounds double, ptr %119, i64 0
  %121 = load i64, ptr %12, align 8, !tbaa !13
  %122 = sub nsw i64 %121, 1
  %123 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %122)
  %124 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %117, i64 noundef 1, ptr noundef %120, i64 noundef 1, i64 noundef %123)
  store double %124, ptr %15, align 8, !tbaa !11
  %125 = load i64, ptr %12, align 8, !tbaa !13
  %126 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl4xdotEPNS_9ae_vectorES1_lS1_PdS2_PNS_8ae_stateE(ptr noundef %21, ptr noundef %22, i64 noundef %125, ptr noundef %25, ptr noundef %16, ptr noundef %17, ptr noundef %126)
  %127 = load i8, ptr %6, align 1, !tbaa !5, !range !18, !noundef !19
  %128 = trunc i8 %127 to i1
  br i1 %128, label %137, label %129

129:                                              ; preds = %114
  %130 = load double, ptr %15, align 8, !tbaa !11
  %131 = load double, ptr %16, align 8, !tbaa !11
  %132 = fsub double %130, %131
  %133 = load ptr, ptr %4, align 8, !tbaa !9
  %134 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %132, ptr noundef %133)
  %135 = load double, ptr %9, align 8, !tbaa !11
  %136 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %134, double noundef %135)
  br label %137

137:                                              ; preds = %129, %114
  %138 = phi i1 [ true, %114 ], [ %136, %129 ]
  %139 = zext i1 %138 to i8
  store i8 %139, ptr %6, align 1, !tbaa !5
  %140 = load i64, ptr %12, align 8, !tbaa !13
  %141 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %23, i64 noundef %140, ptr noundef %141)
  %142 = load i64, ptr %12, align 8, !tbaa !13
  %143 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %24, i64 noundef %142, ptr noundef %143)
  %144 = load i64, ptr %12, align 8, !tbaa !13
  %145 = mul nsw i64 2, %144
  %146 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef %145, ptr noundef %146)
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %147

147:                                              ; preds = %215, %137
  %148 = load i64, ptr %13, align 8, !tbaa !13
  %149 = load i64, ptr %12, align 8, !tbaa !13
  %150 = sub nsw i64 %149, 1
  %151 = icmp sle i64 %148, %150
  br i1 %151, label %152, label %218

152:                                              ; preds = %147
  %153 = load ptr, ptr %4, align 8, !tbaa !9
  %154 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %153)
  %155 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %154, double noundef 2.000000e-01)
  br i1 %155, label %156, label %173

156:                                              ; preds = %152
  %157 = load ptr, ptr %4, align 8, !tbaa !9
  %158 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %157)
  %159 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %158, double -1.000000e+00)
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !15
  %162 = load i64, ptr %13, align 8, !tbaa !13
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %161, i64 %162
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %163, i32 0, i32 0
  store double %159, ptr %164, align 8, !tbaa !20
  %165 = load ptr, ptr %4, align 8, !tbaa !9
  %166 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %165)
  %167 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %166, double -1.000000e+00)
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !15
  %170 = load i64, ptr %13, align 8, !tbaa !13
  %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 1
  store double %167, ptr %172, align 8, !tbaa !22
  br label %183

173:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  %174 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %175 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %176 = extractvalue { double, double } %174, 0
  store double %176, ptr %175, align 8
  %177 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %178 = extractvalue { double, double } %174, 1
  store double %178, ptr %177, align 8
  %179 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %180 = load ptr, ptr %179, align 8, !tbaa !15
  %181 = load i64, ptr %13, align 8, !tbaa !13
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %180, i64 %181
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %182, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  br label %183

183:                                              ; preds = %173, %156
  %184 = load ptr, ptr %4, align 8, !tbaa !9
  %185 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %184)
  %186 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %185, double noundef 2.000000e-01)
  br i1 %186, label %187, label %204

187:                                              ; preds = %183
  %188 = load ptr, ptr %4, align 8, !tbaa !9
  %189 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %188)
  %190 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %189, double -1.000000e+00)
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !15
  %193 = load i64, ptr %13, align 8, !tbaa !13
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %192, i64 %193
  %195 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %194, i32 0, i32 0
  store double %190, ptr %195, align 8, !tbaa !20
  %196 = load ptr, ptr %4, align 8, !tbaa !9
  %197 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %196)
  %198 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %197, double -1.000000e+00)
  %199 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %200 = load ptr, ptr %199, align 8, !tbaa !15
  %201 = load i64, ptr %13, align 8, !tbaa !13
  %202 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %200, i64 %201
  %203 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %202, i32 0, i32 1
  store double %198, ptr %203, align 8, !tbaa !22
  br label %214

204:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #6
  %205 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %206 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %207 = extractvalue { double, double } %205, 0
  store double %207, ptr %206, align 8
  %208 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %209 = extractvalue { double, double } %205, 1
  store double %209, ptr %208, align 8
  %210 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %211 = load ptr, ptr %210, align 8, !tbaa !15
  %212 = load i64, ptr %13, align 8, !tbaa !13
  %213 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %211, i64 %212
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %213, ptr align 8 %29, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  br label %214

214:                                              ; preds = %204, %187
  br label %215

215:                                              ; preds = %214
  %216 = load i64, ptr %13, align 8, !tbaa !13
  %217 = add nsw i64 %216, 1
  store i64 %217, ptr %13, align 8, !tbaa !13
  br label %147, !llvm.loop !24

218:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %220 = load ptr, ptr %219, align 8, !tbaa !15
  %221 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %220, i64 0
  %222 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %223 = load ptr, ptr %222, align 8, !tbaa !15
  %224 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %223, i64 0
  %225 = load i64, ptr %12, align 8, !tbaa !13
  %226 = sub nsw i64 %225, 1
  %227 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %226)
  %228 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %221, i64 noundef 1, ptr noundef @.str.191, ptr noundef %224, i64 noundef 1, ptr noundef @.str.191, i64 noundef %227)
  %229 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %230 = extractvalue { double, double } %228, 0
  store double %230, ptr %229, align 8
  %231 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %232 = extractvalue { double, double } %228, 1
  store double %232, ptr %231, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %30, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  %233 = load i64, ptr %12, align 8, !tbaa !13
  %234 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl5xcdotEPNS_9ae_vectorES1_lS1_PNS_10ae_complexEPdPNS_8ae_stateE(ptr noundef %23, ptr noundef %24, i64 noundef %233, ptr noundef %25, ptr noundef %19, ptr noundef %20, ptr noundef %234)
  %235 = load i8, ptr %6, align 1, !tbaa !5, !range !18, !noundef !19
  %236 = trunc i8 %235 to i1
  br i1 %236, label %259, label %237

237:                                              ; preds = %218
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %33, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !23
  %238 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %239 = load double, ptr %238, align 8
  %240 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %241 = load double, ptr %240, align 8
  %242 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %243 = load double, ptr %242, align 8
  %244 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %245 = load double, ptr %244, align 8
  %246 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %239, double %241, double %243, double %245)
  %247 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %248 = extractvalue { double, double } %246, 0
  store double %248, ptr %247, align 8
  %249 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %250 = extractvalue { double, double } %246, 1
  store double %250, ptr %249, align 8
  %251 = load ptr, ptr %4, align 8, !tbaa !9
  %252 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %253 = load double, ptr %252, align 8
  %254 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %255 = load double, ptr %254, align 8
  %256 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %253, double %255, ptr noundef %251)
  %257 = load double, ptr %9, align 8, !tbaa !11
  %258 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %256, double noundef %257)
  br label %259

259:                                              ; preds = %237, %218
  %260 = phi i1 [ true, %218 ], [ %258, %237 ]
  %261 = zext i1 %260 to i8
  store i8 %261, ptr %6, align 1, !tbaa !5
  br label %262

262:                                              ; preds = %259
  %263 = load i64, ptr %14, align 8, !tbaa !13
  %264 = add nsw i64 %263, 1
  store i64 %264, ptr %14, align 8, !tbaa !13
  br label %60, !llvm.loop !25

265:                                              ; preds = %60
  br label %266

266:                                              ; preds = %265
  %267 = load i64, ptr %12, align 8, !tbaa !13
  %268 = add nsw i64 %267, 1
  store i64 %268, ptr %12, align 8, !tbaa !13
  br label %55, !llvm.loop !26

269:                                              ; preds = %55
  store i64 50000, ptr %12, align 8, !tbaa !13
  %270 = load i64, ptr %12, align 8, !tbaa !13
  %271 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %270, ptr noundef %271)
  %272 = load i64, ptr %12, align 8, !tbaa !13
  %273 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %272, ptr noundef %273)
  %274 = load i64, ptr %12, align 8, !tbaa !13
  %275 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef %274, ptr noundef %275)
  store i64 0, ptr %14, align 8, !tbaa !13
  br label %276

276:                                              ; preds = %518, %269
  %277 = load i64, ptr %14, align 8, !tbaa !13
  %278 = load i64, ptr %11, align 8, !tbaa !13
  %279 = sub nsw i64 %278, 1
  %280 = icmp sle i64 %277, %279
  br i1 %280, label %281, label %521

281:                                              ; preds = %276
  %282 = load i64, ptr %12, align 8, !tbaa !13
  %283 = srem i64 %282, 2
  %284 = icmp eq i64 %283, 0
  %285 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %284, ptr noundef @.str.26, ptr noundef %285)
  %286 = load i64, ptr %14, align 8, !tbaa !13
  %287 = load ptr, ptr %4, align 8, !tbaa !9
  %288 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %286, i64 noundef 50, ptr noundef %287)
  %289 = sitofp i64 %288 to double
  %290 = load ptr, ptr %4, align 8, !tbaa !9
  %291 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %289, ptr noundef %290)
  store double %291, ptr %26, align 8, !tbaa !11
  %292 = load i64, ptr %14, align 8, !tbaa !13
  %293 = load i64, ptr %11, align 8, !tbaa !13
  %294 = sub nsw i64 %293, 1
  %295 = icmp eq i64 %292, %294
  br i1 %295, label %296, label %300

296:                                              ; preds = %281
  %297 = load i64, ptr %14, align 8, !tbaa !13
  %298 = icmp sgt i64 %297, 1
  br i1 %298, label %299, label %300

299:                                              ; preds = %296
  store double 1.000000e+300, ptr %26, align 8, !tbaa !11
  br label %300

300:                                              ; preds = %299, %296, %281
  %301 = load ptr, ptr %4, align 8, !tbaa !9
  %302 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %301)
  %303 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %302, double -1.000000e+00)
  %304 = load double, ptr %26, align 8, !tbaa !11
  %305 = fmul double %303, %304
  %306 = load ptr, ptr %4, align 8, !tbaa !9
  %307 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %306)
  %308 = fmul double 2.000000e+00, %307
  %309 = load ptr, ptr %4, align 8, !tbaa !9
  %310 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %308, ptr noundef %309)
  %311 = fmul double %305, %310
  %312 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %313 = load ptr, ptr %312, align 8, !tbaa !15
  %314 = getelementptr inbounds double, ptr %313, i64 0
  store double %311, ptr %314, align 8, !tbaa !11
  store i64 1, ptr %13, align 8, !tbaa !13
  br label %315

315:                                              ; preds = %329, %300
  %316 = load i64, ptr %13, align 8, !tbaa !13
  %317 = load i64, ptr %12, align 8, !tbaa !13
  %318 = sub nsw i64 %317, 1
  %319 = icmp sle i64 %316, %318
  br i1 %319, label %320, label %332

320:                                              ; preds = %315
  %321 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %322 = load ptr, ptr %321, align 8, !tbaa !15
  %323 = getelementptr inbounds double, ptr %322, i64 0
  %324 = load double, ptr %323, align 8, !tbaa !11
  %325 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %326 = load ptr, ptr %325, align 8, !tbaa !15
  %327 = load i64, ptr %13, align 8, !tbaa !13
  %328 = getelementptr inbounds double, ptr %326, i64 %327
  store double %324, ptr %328, align 8, !tbaa !11
  br label %329

329:                                              ; preds = %320
  %330 = load i64, ptr %13, align 8, !tbaa !13
  %331 = add nsw i64 %330, 1
  store i64 %331, ptr %13, align 8, !tbaa !13
  br label %315, !llvm.loop !27

332:                                              ; preds = %315
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %333

333:                                              ; preds = %344, %332
  %334 = load i64, ptr %13, align 8, !tbaa !13
  %335 = load i64, ptr %12, align 8, !tbaa !13
  %336 = sdiv i64 %335, 2
  %337 = sub nsw i64 %336, 1
  %338 = icmp sle i64 %334, %337
  br i1 %338, label %339, label %347

339:                                              ; preds = %333
  %340 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %341 = load ptr, ptr %340, align 8, !tbaa !15
  %342 = load i64, ptr %13, align 8, !tbaa !13
  %343 = getelementptr inbounds double, ptr %341, i64 %342
  store double 1.000000e+00, ptr %343, align 8, !tbaa !11
  br label %344

344:                                              ; preds = %339
  %345 = load i64, ptr %13, align 8, !tbaa !13
  %346 = add nsw i64 %345, 1
  store i64 %346, ptr %13, align 8, !tbaa !13
  br label %333, !llvm.loop !28

347:                                              ; preds = %333
  %348 = load i64, ptr %12, align 8, !tbaa !13
  %349 = sdiv i64 %348, 2
  store i64 %349, ptr %13, align 8, !tbaa !13
  br label %350

350:                                              ; preds = %360, %347
  %351 = load i64, ptr %13, align 8, !tbaa !13
  %352 = load i64, ptr %12, align 8, !tbaa !13
  %353 = sub nsw i64 %352, 2
  %354 = icmp sle i64 %351, %353
  br i1 %354, label %355, label %363

355:                                              ; preds = %350
  %356 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %357 = load ptr, ptr %356, align 8, !tbaa !15
  %358 = load i64, ptr %13, align 8, !tbaa !13
  %359 = getelementptr inbounds double, ptr %357, i64 %358
  store double -1.000000e+00, ptr %359, align 8, !tbaa !11
  br label %360

360:                                              ; preds = %355
  %361 = load i64, ptr %13, align 8, !tbaa !13
  %362 = add nsw i64 %361, 1
  store i64 %362, ptr %13, align 8, !tbaa !13
  br label %350, !llvm.loop !29

363:                                              ; preds = %350
  %364 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %365 = load ptr, ptr %364, align 8, !tbaa !15
  %366 = load i64, ptr %12, align 8, !tbaa !13
  %367 = sub nsw i64 %366, 1
  %368 = getelementptr inbounds double, ptr %365, i64 %367
  store double 0.000000e+00, ptr %368, align 8, !tbaa !11
  %369 = load i64, ptr %12, align 8, !tbaa !13
  %370 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl4xdotEPNS_9ae_vectorES1_lS1_PdS2_PNS_8ae_stateE(ptr noundef %21, ptr noundef %22, i64 noundef %369, ptr noundef %25, ptr noundef %16, ptr noundef %17, ptr noundef %370)
  %371 = load i8, ptr %7, align 1, !tbaa !5, !range !18, !noundef !19
  %372 = trunc i8 %371 to i1
  br i1 %372, label %376, label %373

373:                                              ; preds = %363
  %374 = load double, ptr %17, align 8, !tbaa !11
  %375 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %374, double noundef 0.000000e+00)
  br label %376

376:                                              ; preds = %373, %363
  %377 = phi i1 [ true, %363 ], [ %375, %373 ]
  %378 = zext i1 %377 to i8
  store i8 %378, ptr %7, align 1, !tbaa !5
  %379 = load i8, ptr %7, align 1, !tbaa !5, !range !18, !noundef !19
  %380 = trunc i8 %379 to i1
  br i1 %380, label %391, label %381

381:                                              ; preds = %376
  %382 = load double, ptr %17, align 8, !tbaa !11
  %383 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %384 = load ptr, ptr %383, align 8, !tbaa !15
  %385 = getelementptr inbounds double, ptr %384, i64 0
  %386 = load double, ptr %385, align 8, !tbaa !11
  %387 = load ptr, ptr %4, align 8, !tbaa !9
  %388 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %386, ptr noundef %387)
  %389 = fmul double 2.000000e-15, %388
  %390 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %382, double noundef %389)
  br label %391

391:                                              ; preds = %381, %376
  %392 = phi i1 [ true, %376 ], [ %390, %381 ]
  %393 = zext i1 %392 to i8
  store i8 %393, ptr %7, align 1, !tbaa !5
  %394 = load i8, ptr %7, align 1, !tbaa !5, !range !18, !noundef !19
  %395 = trunc i8 %394 to i1
  br i1 %395, label %407, label %396

396:                                              ; preds = %391
  %397 = load double, ptr %16, align 8, !tbaa !11
  %398 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %399 = load ptr, ptr %398, align 8, !tbaa !15
  %400 = getelementptr inbounds double, ptr %399, i64 0
  %401 = load double, ptr %400, align 8, !tbaa !11
  %402 = fsub double %397, %401
  %403 = load ptr, ptr %4, align 8, !tbaa !9
  %404 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %402, ptr noundef %403)
  %405 = load double, ptr %17, align 8, !tbaa !11
  %406 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %404, double noundef %405)
  br label %407

407:                                              ; preds = %396, %391
  %408 = phi i1 [ true, %391 ], [ %406, %396 ]
  %409 = zext i1 %408 to i8
  store i8 %409, ptr %7, align 1, !tbaa !5
  %410 = load i64, ptr %14, align 8, !tbaa !13
  %411 = load ptr, ptr %4, align 8, !tbaa !9
  %412 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %410, i64 noundef 50, ptr noundef %411)
  %413 = sitofp i64 %412 to double
  %414 = load ptr, ptr %4, align 8, !tbaa !9
  %415 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %413, ptr noundef %414)
  store double %415, ptr %26, align 8, !tbaa !11
  %416 = load i64, ptr %14, align 8, !tbaa !13
  %417 = load i64, ptr %11, align 8, !tbaa !13
  %418 = sub nsw i64 %417, 1
  %419 = icmp eq i64 %416, %418
  br i1 %419, label %420, label %424

420:                                              ; preds = %407
  %421 = load i64, ptr %14, align 8, !tbaa !13
  %422 = icmp sgt i64 %421, 1
  br i1 %422, label %423, label %424

423:                                              ; preds = %420
  store double 1.000000e+300, ptr %26, align 8, !tbaa !11
  br label %424

424:                                              ; preds = %423, %420, %407
  %425 = load ptr, ptr %4, align 8, !tbaa !9
  %426 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %425)
  %427 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %426, double -1.000000e+00)
  %428 = load double, ptr %26, align 8, !tbaa !11
  %429 = fmul double %427, %428
  %430 = load ptr, ptr %4, align 8, !tbaa !9
  %431 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %430)
  %432 = fmul double 2.000000e+00, %431
  %433 = load ptr, ptr %4, align 8, !tbaa !9
  %434 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %432, ptr noundef %433)
  %435 = fmul double %429, %434
  %436 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %437 = load ptr, ptr %436, align 8, !tbaa !15
  %438 = getelementptr inbounds double, ptr %437, i64 0
  store double %435, ptr %438, align 8, !tbaa !11
  store i64 1, ptr %13, align 8, !tbaa !13
  br label %439

439:                                              ; preds = %453, %424
  %440 = load i64, ptr %13, align 8, !tbaa !13
  %441 = load i64, ptr %12, align 8, !tbaa !13
  %442 = sub nsw i64 %441, 1
  %443 = icmp sle i64 %440, %442
  br i1 %443, label %444, label %456

444:                                              ; preds = %439
  %445 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %446 = load ptr, ptr %445, align 8, !tbaa !15
  %447 = getelementptr inbounds double, ptr %446, i64 0
  %448 = load double, ptr %447, align 8, !tbaa !11
  %449 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %450 = load ptr, ptr %449, align 8, !tbaa !15
  %451 = load i64, ptr %13, align 8, !tbaa !13
  %452 = getelementptr inbounds double, ptr %450, i64 %451
  store double %448, ptr %452, align 8, !tbaa !11
  br label %453

453:                                              ; preds = %444
  %454 = load i64, ptr %13, align 8, !tbaa !13
  %455 = add nsw i64 %454, 1
  store i64 %455, ptr %13, align 8, !tbaa !13
  br label %439, !llvm.loop !30

456:                                              ; preds = %439
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %457

457:                                              ; preds = %467, %456
  %458 = load i64, ptr %13, align 8, !tbaa !13
  %459 = load i64, ptr %12, align 8, !tbaa !13
  %460 = sub nsw i64 %459, 1
  %461 = icmp sle i64 %458, %460
  br i1 %461, label %462, label %470

462:                                              ; preds = %457
  %463 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %464 = load ptr, ptr %463, align 8, !tbaa !15
  %465 = load i64, ptr %13, align 8, !tbaa !13
  %466 = getelementptr inbounds double, ptr %464, i64 %465
  store double 1.000000e+00, ptr %466, align 8, !tbaa !11
  br label %467

467:                                              ; preds = %462
  %468 = load i64, ptr %13, align 8, !tbaa !13
  %469 = add nsw i64 %468, 1
  store i64 %469, ptr %13, align 8, !tbaa !13
  br label %457, !llvm.loop !31

470:                                              ; preds = %457
  %471 = load i64, ptr %12, align 8, !tbaa !13
  %472 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl4xdotEPNS_9ae_vectorES1_lS1_PdS2_PNS_8ae_stateE(ptr noundef %21, ptr noundef %22, i64 noundef %471, ptr noundef %25, ptr noundef %16, ptr noundef %17, ptr noundef %472)
  %473 = load i8, ptr %7, align 1, !tbaa !5, !range !18, !noundef !19
  %474 = trunc i8 %473 to i1
  br i1 %474, label %478, label %475

475:                                              ; preds = %470
  %476 = load double, ptr %17, align 8, !tbaa !11
  %477 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %476, double noundef 0.000000e+00)
  br label %478

478:                                              ; preds = %475, %470
  %479 = phi i1 [ true, %470 ], [ %477, %475 ]
  %480 = zext i1 %479 to i8
  store i8 %480, ptr %7, align 1, !tbaa !5
  %481 = load i8, ptr %7, align 1, !tbaa !5, !range !18, !noundef !19
  %482 = trunc i8 %481 to i1
  br i1 %482, label %496, label %483

483:                                              ; preds = %478
  %484 = load double, ptr %17, align 8, !tbaa !11
  %485 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %486 = load ptr, ptr %485, align 8, !tbaa !15
  %487 = getelementptr inbounds double, ptr %486, i64 0
  %488 = load double, ptr %487, align 8, !tbaa !11
  %489 = load ptr, ptr %4, align 8, !tbaa !9
  %490 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %488, ptr noundef %489)
  %491 = fmul double 2.000000e-15, %490
  %492 = load i64, ptr %12, align 8, !tbaa !13
  %493 = sitofp i64 %492 to double
  %494 = fmul double %491, %493
  %495 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %484, double noundef %494)
  br label %496

496:                                              ; preds = %483, %478
  %497 = phi i1 [ true, %478 ], [ %495, %483 ]
  %498 = zext i1 %497 to i8
  store i8 %498, ptr %7, align 1, !tbaa !5
  %499 = load i8, ptr %7, align 1, !tbaa !5, !range !18, !noundef !19
  %500 = trunc i8 %499 to i1
  br i1 %500, label %515, label %501

501:                                              ; preds = %496
  %502 = load double, ptr %16, align 8, !tbaa !11
  %503 = load i64, ptr %12, align 8, !tbaa !13
  %504 = sitofp i64 %503 to double
  %505 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %506 = load ptr, ptr %505, align 8, !tbaa !15
  %507 = getelementptr inbounds double, ptr %506, i64 0
  %508 = load double, ptr %507, align 8, !tbaa !11
  %509 = fneg double %504
  %510 = call double @llvm.fmuladd.f64(double %509, double %508, double %502)
  %511 = load ptr, ptr %4, align 8, !tbaa !9
  %512 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %510, ptr noundef %511)
  %513 = load double, ptr %17, align 8, !tbaa !11
  %514 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %512, double noundef %513)
  br label %515

515:                                              ; preds = %501, %496
  %516 = phi i1 [ true, %496 ], [ %514, %501 ]
  %517 = zext i1 %516 to i8
  store i8 %517, ptr %7, align 1, !tbaa !5
  br label %518

518:                                              ; preds = %515
  %519 = load i64, ptr %14, align 8, !tbaa !13
  %520 = add nsw i64 %519, 1
  store i64 %520, ptr %14, align 8, !tbaa !13
  br label %276, !llvm.loop !32

521:                                              ; preds = %276
  store i64 50000, ptr %12, align 8, !tbaa !13
  %522 = load i64, ptr %12, align 8, !tbaa !13
  %523 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %23, i64 noundef %522, ptr noundef %523)
  %524 = load i64, ptr %12, align 8, !tbaa !13
  %525 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %24, i64 noundef %524, ptr noundef %525)
  %526 = load i64, ptr %12, align 8, !tbaa !13
  %527 = mul nsw i64 2, %526
  %528 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef %527, ptr noundef %528)
  store i64 0, ptr %14, align 8, !tbaa !13
  br label %529

529:                                              ; preds = %853, %521
  %530 = load i64, ptr %14, align 8, !tbaa !13
  %531 = load i64, ptr %11, align 8, !tbaa !13
  %532 = sub nsw i64 %531, 1
  %533 = icmp sle i64 %530, %532
  br i1 %533, label %534, label %856

534:                                              ; preds = %529
  %535 = load i64, ptr %12, align 8, !tbaa !13
  %536 = srem i64 %535, 2
  %537 = icmp eq i64 %536, 0
  %538 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %537, ptr noundef @.str.26, ptr noundef %538)
  %539 = load i64, ptr %14, align 8, !tbaa !13
  %540 = load ptr, ptr %4, align 8, !tbaa !9
  %541 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %539, i64 noundef 50, ptr noundef %540)
  %542 = sitofp i64 %541 to double
  %543 = load ptr, ptr %4, align 8, !tbaa !9
  %544 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %542, ptr noundef %543)
  store double %544, ptr %26, align 8, !tbaa !11
  %545 = load i64, ptr %14, align 8, !tbaa !13
  %546 = load i64, ptr %11, align 8, !tbaa !13
  %547 = sub nsw i64 %546, 1
  %548 = icmp eq i64 %545, %547
  br i1 %548, label %549, label %553

549:                                              ; preds = %534
  %550 = load i64, ptr %14, align 8, !tbaa !13
  %551 = icmp sgt i64 %550, 1
  br i1 %551, label %552, label %553

552:                                              ; preds = %549
  store double 1.000000e+300, ptr %26, align 8, !tbaa !11
  br label %553

553:                                              ; preds = %552, %549, %534
  %554 = load ptr, ptr %4, align 8, !tbaa !9
  %555 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %554)
  %556 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %555, double -1.000000e+00)
  %557 = load double, ptr %26, align 8, !tbaa !11
  %558 = fmul double %556, %557
  %559 = load ptr, ptr %4, align 8, !tbaa !9
  %560 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %559)
  %561 = fmul double 2.000000e+00, %560
  %562 = load ptr, ptr %4, align 8, !tbaa !9
  %563 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %561, ptr noundef %562)
  %564 = fmul double %558, %563
  %565 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %566 = load ptr, ptr %565, align 8, !tbaa !15
  %567 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %566, i64 0
  %568 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %567, i32 0, i32 0
  store double %564, ptr %568, align 8, !tbaa !20
  %569 = load ptr, ptr %4, align 8, !tbaa !9
  %570 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %569)
  %571 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %570, double -1.000000e+00)
  %572 = load double, ptr %26, align 8, !tbaa !11
  %573 = fmul double %571, %572
  %574 = load ptr, ptr %4, align 8, !tbaa !9
  %575 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %574)
  %576 = fmul double 2.000000e+00, %575
  %577 = load ptr, ptr %4, align 8, !tbaa !9
  %578 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %576, ptr noundef %577)
  %579 = fmul double %573, %578
  %580 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %581 = load ptr, ptr %580, align 8, !tbaa !15
  %582 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %581, i64 0
  %583 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %582, i32 0, i32 1
  store double %579, ptr %583, align 8, !tbaa !22
  store i64 1, ptr %13, align 8, !tbaa !13
  br label %584

584:                                              ; preds = %597, %553
  %585 = load i64, ptr %13, align 8, !tbaa !13
  %586 = load i64, ptr %12, align 8, !tbaa !13
  %587 = sub nsw i64 %586, 1
  %588 = icmp sle i64 %585, %587
  br i1 %588, label %589, label %600

589:                                              ; preds = %584
  %590 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %591 = load ptr, ptr %590, align 8, !tbaa !15
  %592 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %591, i64 0
  %593 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %594 = load ptr, ptr %593, align 8, !tbaa !15
  %595 = load i64, ptr %13, align 8, !tbaa !13
  %596 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %594, i64 %595
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %596, ptr align 8 %592, i64 16, i1 false), !tbaa.struct !23
  br label %597

597:                                              ; preds = %589
  %598 = load i64, ptr %13, align 8, !tbaa !13
  %599 = add nsw i64 %598, 1
  store i64 %599, ptr %13, align 8, !tbaa !13
  br label %584, !llvm.loop !33

600:                                              ; preds = %584
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %601

601:                                              ; preds = %617, %600
  %602 = load i64, ptr %13, align 8, !tbaa !13
  %603 = load i64, ptr %12, align 8, !tbaa !13
  %604 = sdiv i64 %603, 2
  %605 = sub nsw i64 %604, 1
  %606 = icmp sle i64 %602, %605
  br i1 %606, label %607, label %620

607:                                              ; preds = %601
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #6
  %608 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %609 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %610 = extractvalue { double, double } %608, 0
  store double %610, ptr %609, align 8
  %611 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %612 = extractvalue { double, double } %608, 1
  store double %612, ptr %611, align 8
  %613 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %614 = load ptr, ptr %613, align 8, !tbaa !15
  %615 = load i64, ptr %13, align 8, !tbaa !13
  %616 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %614, i64 %615
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %616, ptr align 8 %34, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  br label %617

617:                                              ; preds = %607
  %618 = load i64, ptr %13, align 8, !tbaa !13
  %619 = add nsw i64 %618, 1
  store i64 %619, ptr %13, align 8, !tbaa !13
  br label %601, !llvm.loop !34

620:                                              ; preds = %601
  %621 = load i64, ptr %12, align 8, !tbaa !13
  %622 = sdiv i64 %621, 2
  store i64 %622, ptr %13, align 8, !tbaa !13
  br label %623

623:                                              ; preds = %638, %620
  %624 = load i64, ptr %13, align 8, !tbaa !13
  %625 = load i64, ptr %12, align 8, !tbaa !13
  %626 = sub nsw i64 %625, 2
  %627 = icmp sle i64 %624, %626
  br i1 %627, label %628, label %641

628:                                              ; preds = %623
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #6
  %629 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef -1)
  %630 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %631 = extractvalue { double, double } %629, 0
  store double %631, ptr %630, align 8
  %632 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %633 = extractvalue { double, double } %629, 1
  store double %633, ptr %632, align 8
  %634 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %635 = load ptr, ptr %634, align 8, !tbaa !15
  %636 = load i64, ptr %13, align 8, !tbaa !13
  %637 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %635, i64 %636
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %637, ptr align 8 %35, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  br label %638

638:                                              ; preds = %628
  %639 = load i64, ptr %13, align 8, !tbaa !13
  %640 = add nsw i64 %639, 1
  store i64 %640, ptr %13, align 8, !tbaa !13
  br label %623, !llvm.loop !35

641:                                              ; preds = %623
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #6
  %642 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %643 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %644 = extractvalue { double, double } %642, 0
  store double %644, ptr %643, align 8
  %645 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %646 = extractvalue { double, double } %642, 1
  store double %646, ptr %645, align 8
  %647 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %648 = load ptr, ptr %647, align 8, !tbaa !15
  %649 = load i64, ptr %12, align 8, !tbaa !13
  %650 = sub nsw i64 %649, 1
  %651 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %648, i64 %650
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %651, ptr align 8 %36, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  %652 = load i64, ptr %12, align 8, !tbaa !13
  %653 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl5xcdotEPNS_9ae_vectorES1_lS1_PNS_10ae_complexEPdPNS_8ae_stateE(ptr noundef %23, ptr noundef %24, i64 noundef %652, ptr noundef %25, ptr noundef %19, ptr noundef %20, ptr noundef %653)
  %654 = load i8, ptr %7, align 1, !tbaa !5, !range !18, !noundef !19
  %655 = trunc i8 %654 to i1
  br i1 %655, label %659, label %656

656:                                              ; preds = %641
  %657 = load double, ptr %20, align 8, !tbaa !11
  %658 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %657, double noundef 0.000000e+00)
  br label %659

659:                                              ; preds = %656, %641
  %660 = phi i1 [ true, %641 ], [ %658, %656 ]
  %661 = zext i1 %660 to i8
  store i8 %661, ptr %7, align 1, !tbaa !5
  %662 = load i8, ptr %7, align 1, !tbaa !5, !range !18, !noundef !19
  %663 = trunc i8 %662 to i1
  br i1 %663, label %677, label %664

664:                                              ; preds = %659
  %665 = load double, ptr %20, align 8, !tbaa !11
  %666 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %667 = load ptr, ptr %666, align 8, !tbaa !15
  %668 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %667, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %37, ptr align 8 %668, i64 16, i1 false), !tbaa.struct !23
  %669 = load ptr, ptr %4, align 8, !tbaa !9
  %670 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %671 = load double, ptr %670, align 8
  %672 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %673 = load double, ptr %672, align 8
  %674 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %671, double %673, ptr noundef %669)
  %675 = fmul double 2.000000e-15, %674
  %676 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %665, double noundef %675)
  br label %677

677:                                              ; preds = %664, %659
  %678 = phi i1 [ true, %659 ], [ %676, %664 ]
  %679 = zext i1 %678 to i8
  store i8 %679, ptr %7, align 1, !tbaa !5
  %680 = load i8, ptr %7, align 1, !tbaa !5, !range !18, !noundef !19
  %681 = trunc i8 %680 to i1
  br i1 %681, label %707, label %682

682:                                              ; preds = %677
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !23
  %683 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %684 = load ptr, ptr %683, align 8, !tbaa !15
  %685 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %684, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %685, i64 16, i1 false), !tbaa.struct !23
  %686 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %687 = load double, ptr %686, align 8
  %688 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %689 = load double, ptr %688, align 8
  %690 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %691 = load double, ptr %690, align 8
  %692 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %693 = load double, ptr %692, align 8
  %694 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %687, double %689, double %691, double %693)
  %695 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %696 = extractvalue { double, double } %694, 0
  store double %696, ptr %695, align 8
  %697 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %698 = extractvalue { double, double } %694, 1
  store double %698, ptr %697, align 8
  %699 = load ptr, ptr %4, align 8, !tbaa !9
  %700 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %701 = load double, ptr %700, align 8
  %702 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %703 = load double, ptr %702, align 8
  %704 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %701, double %703, ptr noundef %699)
  %705 = load double, ptr %20, align 8, !tbaa !11
  %706 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %704, double noundef %705)
  br label %707

707:                                              ; preds = %682, %677
  %708 = phi i1 [ true, %677 ], [ %706, %682 ]
  %709 = zext i1 %708 to i8
  store i8 %709, ptr %7, align 1, !tbaa !5
  %710 = load i64, ptr %14, align 8, !tbaa !13
  %711 = load ptr, ptr %4, align 8, !tbaa !9
  %712 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %710, i64 noundef 50, ptr noundef %711)
  %713 = sitofp i64 %712 to double
  %714 = load ptr, ptr %4, align 8, !tbaa !9
  %715 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %713, ptr noundef %714)
  store double %715, ptr %26, align 8, !tbaa !11
  %716 = load i64, ptr %14, align 8, !tbaa !13
  %717 = load i64, ptr %11, align 8, !tbaa !13
  %718 = sub nsw i64 %717, 1
  %719 = icmp eq i64 %716, %718
  br i1 %719, label %720, label %724

720:                                              ; preds = %707
  %721 = load i64, ptr %14, align 8, !tbaa !13
  %722 = icmp sgt i64 %721, 1
  br i1 %722, label %723, label %724

723:                                              ; preds = %720
  store double 1.000000e+300, ptr %26, align 8, !tbaa !11
  br label %724

724:                                              ; preds = %723, %720, %707
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #6
  %725 = load ptr, ptr %4, align 8, !tbaa !9
  %726 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %725)
  %727 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %726, double -1.000000e+00)
  %728 = load double, ptr %26, align 8, !tbaa !11
  %729 = fmul double %727, %728
  %730 = load ptr, ptr %4, align 8, !tbaa !9
  %731 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %730)
  %732 = fmul double 2.000000e+00, %731
  %733 = load ptr, ptr %4, align 8, !tbaa !9
  %734 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %732, ptr noundef %733)
  %735 = fmul double %729, %734
  %736 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %735)
  %737 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %738 = extractvalue { double, double } %736, 0
  store double %738, ptr %737, align 8
  %739 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %740 = extractvalue { double, double } %736, 1
  store double %740, ptr %739, align 8
  %741 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %742 = load ptr, ptr %741, align 8, !tbaa !15
  %743 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %742, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %743, ptr align 8 %41, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #6
  store i64 1, ptr %13, align 8, !tbaa !13
  br label %744

744:                                              ; preds = %757, %724
  %745 = load i64, ptr %13, align 8, !tbaa !13
  %746 = load i64, ptr %12, align 8, !tbaa !13
  %747 = sub nsw i64 %746, 1
  %748 = icmp sle i64 %745, %747
  br i1 %748, label %749, label %760

749:                                              ; preds = %744
  %750 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %751 = load ptr, ptr %750, align 8, !tbaa !15
  %752 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %751, i64 0
  %753 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %754 = load ptr, ptr %753, align 8, !tbaa !15
  %755 = load i64, ptr %13, align 8, !tbaa !13
  %756 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %754, i64 %755
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %756, ptr align 8 %752, i64 16, i1 false), !tbaa.struct !23
  br label %757

757:                                              ; preds = %749
  %758 = load i64, ptr %13, align 8, !tbaa !13
  %759 = add nsw i64 %758, 1
  store i64 %759, ptr %13, align 8, !tbaa !13
  br label %744, !llvm.loop !36

760:                                              ; preds = %744
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %761

761:                                              ; preds = %776, %760
  %762 = load i64, ptr %13, align 8, !tbaa !13
  %763 = load i64, ptr %12, align 8, !tbaa !13
  %764 = sub nsw i64 %763, 1
  %765 = icmp sle i64 %762, %764
  br i1 %765, label %766, label %779

766:                                              ; preds = %761
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #6
  %767 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %768 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %769 = extractvalue { double, double } %767, 0
  store double %769, ptr %768, align 8
  %770 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %771 = extractvalue { double, double } %767, 1
  store double %771, ptr %770, align 8
  %772 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %773 = load ptr, ptr %772, align 8, !tbaa !15
  %774 = load i64, ptr %13, align 8, !tbaa !13
  %775 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %773, i64 %774
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %775, ptr align 8 %42, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #6
  br label %776

776:                                              ; preds = %766
  %777 = load i64, ptr %13, align 8, !tbaa !13
  %778 = add nsw i64 %777, 1
  store i64 %778, ptr %13, align 8, !tbaa !13
  br label %761, !llvm.loop !37

779:                                              ; preds = %761
  %780 = load i64, ptr %12, align 8, !tbaa !13
  %781 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl5xcdotEPNS_9ae_vectorES1_lS1_PNS_10ae_complexEPdPNS_8ae_stateE(ptr noundef %23, ptr noundef %24, i64 noundef %780, ptr noundef %25, ptr noundef %19, ptr noundef %20, ptr noundef %781)
  %782 = load i8, ptr %7, align 1, !tbaa !5, !range !18, !noundef !19
  %783 = trunc i8 %782 to i1
  br i1 %783, label %787, label %784

784:                                              ; preds = %779
  %785 = load double, ptr %20, align 8, !tbaa !11
  %786 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %785, double noundef 0.000000e+00)
  br label %787

787:                                              ; preds = %784, %779
  %788 = phi i1 [ true, %779 ], [ %786, %784 ]
  %789 = zext i1 %788 to i8
  store i8 %789, ptr %7, align 1, !tbaa !5
  %790 = load i8, ptr %7, align 1, !tbaa !5, !range !18, !noundef !19
  %791 = trunc i8 %790 to i1
  br i1 %791, label %808, label %792

792:                                              ; preds = %787
  %793 = load double, ptr %20, align 8, !tbaa !11
  %794 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %795 = load ptr, ptr %794, align 8, !tbaa !15
  %796 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %795, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 %796, i64 16, i1 false), !tbaa.struct !23
  %797 = load ptr, ptr %4, align 8, !tbaa !9
  %798 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %799 = load double, ptr %798, align 8
  %800 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %801 = load double, ptr %800, align 8
  %802 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %799, double %801, ptr noundef %797)
  %803 = fmul double 2.000000e-15, %802
  %804 = load i64, ptr %12, align 8, !tbaa !13
  %805 = sitofp i64 %804 to double
  %806 = fmul double %803, %805
  %807 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %793, double noundef %806)
  br label %808

808:                                              ; preds = %792, %787
  %809 = phi i1 [ true, %787 ], [ %807, %792 ]
  %810 = zext i1 %809 to i8
  store i8 %810, ptr %7, align 1, !tbaa !5
  %811 = load i8, ptr %7, align 1, !tbaa !5, !range !18, !noundef !19
  %812 = trunc i8 %811 to i1
  br i1 %812, label %850, label %813

813:                                              ; preds = %808
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !23
  %814 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %815 = load ptr, ptr %814, align 8, !tbaa !15
  %816 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %815, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %47, ptr align 8 %816, i64 16, i1 false), !tbaa.struct !23
  %817 = load i64, ptr %12, align 8, !tbaa !13
  %818 = sitofp i64 %817 to double
  %819 = fmul double 1.000000e+00, %818
  %820 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %821 = load double, ptr %820, align 8
  %822 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %823 = load double, ptr %822, align 8
  %824 = call { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double %821, double %823, double noundef %819)
  %825 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %826 = extractvalue { double, double } %824, 0
  store double %826, ptr %825, align 8
  %827 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %828 = extractvalue { double, double } %824, 1
  store double %828, ptr %827, align 8
  %829 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %830 = load double, ptr %829, align 8
  %831 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %832 = load double, ptr %831, align 8
  %833 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %834 = load double, ptr %833, align 8
  %835 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %836 = load double, ptr %835, align 8
  %837 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %830, double %832, double %834, double %836)
  %838 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %839 = extractvalue { double, double } %837, 0
  store double %839, ptr %838, align 8
  %840 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %841 = extractvalue { double, double } %837, 1
  store double %841, ptr %840, align 8
  %842 = load ptr, ptr %4, align 8, !tbaa !9
  %843 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %844 = load double, ptr %843, align 8
  %845 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %846 = load double, ptr %845, align 8
  %847 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %844, double %846, ptr noundef %842)
  %848 = load double, ptr %20, align 8, !tbaa !11
  %849 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %847, double noundef %848)
  br label %850

850:                                              ; preds = %813, %808
  %851 = phi i1 [ true, %808 ], [ %849, %813 ]
  %852 = zext i1 %851 to i8
  store i8 %852, ptr %7, align 1, !tbaa !5
  br label %853

853:                                              ; preds = %850
  %854 = load i64, ptr %14, align 8, !tbaa !13
  %855 = add nsw i64 %854, 1
  store i64 %855, ptr %14, align 8, !tbaa !13
  br label %529, !llvm.loop !38

856:                                              ; preds = %529
  %857 = load i8, ptr %6, align 1, !tbaa !5, !range !18, !noundef !19
  %858 = trunc i8 %857 to i1
  br i1 %858, label %862, label %859

859:                                              ; preds = %856
  %860 = load i8, ptr %7, align 1, !tbaa !5, !range !18, !noundef !19
  %861 = trunc i8 %860 to i1
  br label %862

862:                                              ; preds = %859, %856
  %863 = phi i1 [ true, %856 ], [ %861, %859 ]
  %864 = zext i1 %863 to i8
  store i8 %864, ptr %8, align 1, !tbaa !5
  %865 = load i8, ptr %3, align 1, !tbaa !5, !range !18, !noundef !19
  %866 = trunc i8 %865 to i1
  br i1 %866, label %893, label %867

867:                                              ; preds = %862
  %868 = call i32 (ptr, ...) @printf(ptr noundef @.str.344)
  %869 = call i32 (ptr, ...) @printf(ptr noundef @.str.345)
  %870 = load i8, ptr %6, align 1, !tbaa !5, !range !18, !noundef !19
  %871 = trunc i8 %870 to i1
  br i1 %871, label %872, label %874

872:                                              ; preds = %867
  %873 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %876

874:                                              ; preds = %867
  %875 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %876

876:                                              ; preds = %874, %872
  %877 = call i32 (ptr, ...) @printf(ptr noundef @.str.346)
  %878 = load i8, ptr %7, align 1, !tbaa !5, !range !18, !noundef !19
  %879 = trunc i8 %878 to i1
  br i1 %879, label %880, label %882

880:                                              ; preds = %876
  %881 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %884

882:                                              ; preds = %876
  %883 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %884

884:                                              ; preds = %882, %880
  %885 = load i8, ptr %8, align 1, !tbaa !5, !range !18, !noundef !19
  %886 = trunc i8 %885 to i1
  br i1 %886, label %887, label %889

887:                                              ; preds = %884
  %888 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %891

889:                                              ; preds = %884
  %890 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %891

891:                                              ; preds = %889, %887
  %892 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %893

893:                                              ; preds = %891, %862
  %894 = load i8, ptr %8, align 1, !tbaa !5, !range !18, !noundef !19
  %895 = trunc i8 %894 to i1
  %896 = xor i1 %895, true
  %897 = zext i1 %896 to i8
  store i8 %897, ptr %27, align 1, !tbaa !5
  %898 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %898)
  %899 = load i8, ptr %27, align 1, !tbaa !5, !range !18, !noundef !19
  %900 = trunc i8 %899 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  ret i1 %900
}

declare void @_ZN11alglib_impl4xdotEPNS_9ae_vectorES1_lS1_PdS2_PNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl5xcdotEPNS_9ae_vectorES1_lS1_PNS_10ae_complexEPdPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

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


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

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.344 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.345 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.346 = external hidden unnamed_addr constant [42 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

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(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_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) local_unnamed_addr #1

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

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

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress 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) #5

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

declare { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

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

declare { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double, double, double, double) local_unnamed_addr #1

declare { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z9testxblasbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #6 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca %"struct.alglib_impl::ae_complex", align 8
  %7 = alloca double, align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", 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 %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #7
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %3)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, 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_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 4, ptr noundef %1, 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 %1, i1 noundef zeroext true)
  %13 = getelementptr inbounds i8, ptr %8, i64 56
  %14 = getelementptr inbounds i8, ptr %9, i64 56
  %15 = getelementptr inbounds i8, ptr %10, i64 56
  %16 = getelementptr inbounds i8, ptr %11, i64 56
  %.sroa.237.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  br label %.preheader287

.preheader287:                                    ; preds = %2, %104
  %.0293 = phi i1 [ false, %2 ], [ %102, %104 ]
  %.0264292 = phi i64 [ 1, %2 ], [ %105, %104 ]
  %17 = add nsw i64 %.0264292, -1
  %18 = shl nuw nsw i64 %.0264292, 1
  br label %19

19:                                               ; preds = %.preheader287, %101
  %.1291 = phi i1 [ %.0293, %.preheader287 ], [ %102, %101 ]
  %.0267290 = phi i64 [ 1, %.preheader287 ], [ %103, %101 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0264292, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0264292, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.0264292, ptr noundef %1)
  br label %20

20:                                               ; preds = %19, %34
  %.0265288 = phi i64 [ 0, %19 ], [ %37, %34 ]
  %21 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %22 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %21, double noundef 2.000000e-01)
  br i1 %22, label %23, label %26

23:                                               ; preds = %20
  %24 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %25 = call double @llvm.fmuladd.f64(double %24, double 2.000000e+00, double -1.000000e+00)
  br label %26

26:                                               ; preds = %20, %23
  %.sink = phi double [ %25, %23 ], [ 0.000000e+00, %20 ]
  %27 = load ptr, ptr %13, align 8, !tbaa !5
  %28 = getelementptr inbounds double, ptr %27, i64 %.0265288
  store double %.sink, ptr %28, align 8, !tbaa !8
  %29 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %30 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %29, double noundef 2.000000e-01)
  br i1 %30, label %31, label %34

31:                                               ; preds = %26
  %32 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %33 = call double @llvm.fmuladd.f64(double %32, double 2.000000e+00, double -1.000000e+00)
  br label %34

34:                                               ; preds = %26, %31
  %.sink330 = phi double [ %33, %31 ], [ 0.000000e+00, %26 ]
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  %36 = getelementptr inbounds double, ptr %35, i64 %.0265288
  store double %.sink330, ptr %36, align 8, !tbaa !8
  %37 = add nuw nsw i64 %.0265288, 1
  %exitcond.not = icmp eq i64 %37, %.0264292
  br i1 %exitcond.not, label %38, label %20, !llvm.loop !10

38:                                               ; preds = %34
  %39 = load ptr, ptr %13, align 8, !tbaa !5
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  %41 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %17)
  %42 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %39, i64 noundef 1, ptr noundef %40, i64 noundef 1, i64 noundef %41)
  call void @_ZN11alglib_impl4xdotEPNS_9ae_vectorES1_lS1_PdS2_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.0264292, ptr noundef nonnull %12, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %1)
  br i1 %.1291, label %48, label %43

43:                                               ; preds = %38
  %44 = load double, ptr %4, align 8, !tbaa !8
  %45 = fsub double %42, %44
  %46 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %45, ptr noundef %1)
  %47 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %46, double noundef 5.000000e-13)
  br label %48

48:                                               ; preds = %43, %38
  %49 = phi i1 [ true, %38 ], [ %47, %43 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.0264292, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %.0264292, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %18, ptr noundef %1)
  br label %50

50:                                               ; preds = %48, %86
  %.1266289 = phi i64 [ 0, %48 ], [ %87, %86 ]
  %51 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %52 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %51, double noundef 2.000000e-01)
  br i1 %52, label %53, label %62

53:                                               ; preds = %50
  %54 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %55 = call double @llvm.fmuladd.f64(double %54, double 2.000000e+00, double -1.000000e+00)
  %56 = load ptr, ptr %15, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %56, i64 %.1266289
  store double %55, ptr %57, align 8, !tbaa !12
  %58 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %59 = call double @llvm.fmuladd.f64(double %58, double 2.000000e+00, double -1.000000e+00)
  %60 = load ptr, ptr %15, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %60, i64 %.1266289, i32 1
  store double %59, ptr %61, align 8, !tbaa !14
  br label %68

62:                                               ; preds = %50
  %63 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %64 = extractvalue { double, double } %63, 0
  %65 = extractvalue { double, double } %63, 1
  %66 = load ptr, ptr %15, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %66, i64 %.1266289
  store double %64, ptr %67, align 8, !tbaa !8
  %.sroa.447.0..sroa_idx = getelementptr inbounds i8, ptr %67, i64 8
  store double %65, ptr %.sroa.447.0..sroa_idx, align 8, !tbaa !8
  br label %68

68:                                               ; preds = %62, %53
  %69 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %70 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %69, double noundef 2.000000e-01)
  br i1 %70, label %71, label %80

71:                                               ; preds = %68
  %72 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %73 = call double @llvm.fmuladd.f64(double %72, double 2.000000e+00, double -1.000000e+00)
  %74 = load ptr, ptr %16, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %74, i64 %.1266289
  store double %73, ptr %75, align 8, !tbaa !12
  %76 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %77 = call double @llvm.fmuladd.f64(double %76, double 2.000000e+00, double -1.000000e+00)
  %78 = load ptr, ptr %16, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %78, i64 %.1266289, i32 1
  store double %77, ptr %79, align 8, !tbaa !14
  br label %86

80:                                               ; preds = %68
  %81 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %82 = extractvalue { double, double } %81, 0
  %83 = extractvalue { double, double } %81, 1
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %84, i64 %.1266289
  store double %82, ptr %85, align 8, !tbaa !8
  %.sroa.445.0..sroa_idx = getelementptr inbounds i8, ptr %85, i64 8
  store double %83, ptr %.sroa.445.0..sroa_idx, align 8, !tbaa !8
  br label %86

86:                                               ; preds = %71, %80
  %87 = add nuw nsw i64 %.1266289, 1
  %exitcond311.not = icmp eq i64 %87, %.0264292
  br i1 %exitcond311.not, label %88, label %50, !llvm.loop !15

88:                                               ; preds = %86
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %17)
  %92 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %89, i64 noundef 1, ptr noundef nonnull @.str.191, ptr noundef %90, i64 noundef 1, ptr noundef nonnull @.str.191, i64 noundef %91)
  call void @_ZN11alglib_impl5xcdotEPNS_9ae_vectorES1_lS1_PNS_10ae_complexEPdPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %11, i64 noundef %.0264292, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %1)
  br i1 %49, label %101, label %93

93:                                               ; preds = %88
  %94 = extractvalue { double, double } %92, 1
  %95 = extractvalue { double, double } %92, 0
  %.sroa.036.0.copyload = load double, ptr %6, align 8, !tbaa !8
  %.sroa.237.0.copyload = load double, ptr %.sroa.237.0..sroa_idx, align 8, !tbaa !8
  %96 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %95, double %94, double %.sroa.036.0.copyload, double %.sroa.237.0.copyload)
  %97 = extractvalue { double, double } %96, 0
  %98 = extractvalue { double, double } %96, 1
  %99 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %97, double %98, ptr noundef %1)
  %100 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %99, double noundef 5.000000e-13)
  br label %101

101:                                              ; preds = %93, %88
  %102 = phi i1 [ true, %88 ], [ %100, %93 ]
  %103 = add nuw nsw i64 %.0267290, 1
  %exitcond312.not = icmp eq i64 %103, 11
  br i1 %exitcond312.not, label %104, label %19, !llvm.loop !16

104:                                              ; preds = %101
  %105 = add nuw nsw i64 %.0264292, 1
  %exitcond313.not = icmp eq i64 %105, 1001
  br i1 %exitcond313.not, label %106, label %.preheader287, !llvm.loop !17

106:                                              ; preds = %104
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef 50000, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef 50000, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef 50000, ptr noundef %1)
  br label %107

107:                                              ; preds = %106, %.critedge275
  %.0262300 = phi i1 [ false, %106 ], [ %246, %.critedge275 ]
  %.1268299 = phi i64 [ 0, %106 ], [ %247, %.critedge275 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext true, ptr noundef nonnull @.str.26, ptr noundef %1)
  %108 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %.1268299, i64 noundef 50, ptr noundef %1)
  %109 = sitofp i64 %108 to double
  %110 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %109, ptr noundef %1)
  %111 = icmp eq i64 %.1268299, 9
  %spec.store.select = select i1 %111, double 1.000000e+300, double %110
  %112 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %113 = call double @llvm.fmuladd.f64(double %112, double 2.000000e+00, double -1.000000e+00)
  %114 = fmul double %spec.store.select, %113
  %115 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %116 = fmul double %115, 2.000000e+00
  %117 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %116, ptr noundef %1)
  %118 = fmul double %114, %117
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  store double %118, ptr %119, align 8, !tbaa !8
  br label %120

120:                                              ; preds = %133, %107
  %.2294 = phi i64 [ 1, %107 ], [ %137, %133 ]
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = load double, ptr %121, align 8, !tbaa !8
  %123 = getelementptr inbounds double, ptr %121, i64 %.2294
  store double %122, ptr %123, align 8, !tbaa !8
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = load double, ptr %124, align 8, !tbaa !8
  %126 = getelementptr inbounds double, ptr %124, i64 %.2294
  %127 = getelementptr inbounds i8, ptr %126, i64 8
  store double %125, ptr %127, align 8, !tbaa !8
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  %129 = load double, ptr %128, align 8, !tbaa !8
  %130 = getelementptr inbounds double, ptr %128, i64 %.2294
  %131 = getelementptr inbounds i8, ptr %130, i64 16
  store double %129, ptr %131, align 8, !tbaa !8
  %132 = add nuw nsw i64 %.2294, 3
  %exitcond314.not.2 = icmp eq i64 %132, 50000
  br i1 %exitcond314.not.2, label %.preheader286, label %133, !llvm.loop !18

133:                                              ; preds = %120
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = load double, ptr %134, align 8, !tbaa !8
  %136 = getelementptr inbounds double, ptr %134, i64 %132
  store double %135, ptr %136, align 8, !tbaa !8
  %137 = add nuw nsw i64 %.2294, 4
  br label %120

.preheader286:                                    ; preds = %120, %.preheader286
  %.3295 = phi i64 [ %152, %.preheader286 ], [ 0, %120 ]
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = getelementptr inbounds double, ptr %138, i64 %.3295
  store double 1.000000e+00, ptr %139, align 8, !tbaa !8
  %140 = load ptr, ptr %13, align 8, !tbaa !5
  %141 = getelementptr inbounds double, ptr %140, i64 %.3295
  %142 = getelementptr inbounds i8, ptr %141, i64 8
  store double 1.000000e+00, ptr %142, align 8, !tbaa !8
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  %144 = getelementptr inbounds double, ptr %143, i64 %.3295
  %145 = getelementptr inbounds i8, ptr %144, i64 16
  store double 1.000000e+00, ptr %145, align 8, !tbaa !8
  %146 = load ptr, ptr %13, align 8, !tbaa !5
  %147 = getelementptr inbounds double, ptr %146, i64 %.3295
  %148 = getelementptr inbounds i8, ptr %147, i64 24
  store double 1.000000e+00, ptr %148, align 8, !tbaa !8
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = getelementptr inbounds double, ptr %149, i64 %.3295
  %151 = getelementptr inbounds i8, ptr %150, i64 32
  store double 1.000000e+00, ptr %151, align 8, !tbaa !8
  %152 = add nuw nsw i64 %.3295, 5
  %exitcond315.not.4 = icmp eq i64 %152, 25000
  br i1 %exitcond315.not.4, label %.preheader285, label %.preheader286, !llvm.loop !19

.preheader285:                                    ; preds = %.preheader286, %.preheader285
  %.4296 = phi i64 [ %161, %.preheader285 ], [ 25000, %.preheader286 ]
  %153 = load ptr, ptr %13, align 8, !tbaa !5
  %154 = getelementptr inbounds double, ptr %153, i64 %.4296
  store double -1.000000e+00, ptr %154, align 8, !tbaa !8
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = getelementptr inbounds double, ptr %155, i64 %.4296
  %157 = getelementptr inbounds i8, ptr %156, i64 8
  store double -1.000000e+00, ptr %157, align 8, !tbaa !8
  %158 = load ptr, ptr %13, align 8, !tbaa !5
  %159 = getelementptr inbounds double, ptr %158, i64 %.4296
  %160 = getelementptr inbounds i8, ptr %159, i64 16
  store double -1.000000e+00, ptr %160, align 8, !tbaa !8
  %161 = add nuw nsw i64 %.4296, 3
  %exitcond316.not.2 = icmp eq i64 %161, 49999
  br i1 %exitcond316.not.2, label %162, label %.preheader285, !llvm.loop !20

162:                                              ; preds = %.preheader285
  %163 = load ptr, ptr %13, align 8, !tbaa !5
  %164 = getelementptr inbounds i8, ptr %163, i64 399992
  store double 0.000000e+00, ptr %164, align 8, !tbaa !8
  call void @_ZN11alglib_impl4xdotEPNS_9ae_vectorES1_lS1_PdS2_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef 50000, ptr noundef nonnull %12, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %1)
  br i1 %.0262300, label %.critedge272, label %165

165:                                              ; preds = %162
  %166 = load double, ptr %5, align 8, !tbaa !8
  %167 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %166, double noundef 0.000000e+00)
  br i1 %167, label %.critedge272, label %.critedge

.critedge:                                        ; preds = %165
  %168 = load double, ptr %5, align 8, !tbaa !8
  %169 = load ptr, ptr %14, align 8, !tbaa !5
  %170 = load double, ptr %169, align 8, !tbaa !8
  %171 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %170, ptr noundef %1)
  %172 = fmul double %171, 2.000000e-15
  %173 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %168, double noundef %172)
  br i1 %173, label %.critedge272, label %174

174:                                              ; preds = %.critedge
  %175 = load double, ptr %4, align 8, !tbaa !8
  %176 = load ptr, ptr %14, align 8, !tbaa !5
  %177 = load double, ptr %176, align 8, !tbaa !8
  %178 = fsub double %175, %177
  %179 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %178, ptr noundef %1)
  %180 = load double, ptr %5, align 8, !tbaa !8
  %181 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %179, double noundef %180)
  br label %.critedge272

.critedge272:                                     ; preds = %165, %162, %174, %.critedge
  %182 = phi i1 [ true, %.critedge ], [ %181, %174 ], [ true, %162 ], [ true, %165 ]
  %183 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %.1268299, i64 noundef 50, ptr noundef %1)
  %184 = sitofp i64 %183 to double
  %185 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %184, ptr noundef %1)
  %spec.store.select8 = select i1 %111, double 1.000000e+300, double %185
  %186 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %187 = call double @llvm.fmuladd.f64(double %186, double 2.000000e+00, double -1.000000e+00)
  %188 = fmul double %spec.store.select8, %187
  %189 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %190 = fmul double %189, 2.000000e+00
  %191 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %190, ptr noundef %1)
  %192 = fmul double %188, %191
  %193 = load ptr, ptr %14, align 8, !tbaa !5
  store double %192, ptr %193, align 8, !tbaa !8
  br label %194

194:                                              ; preds = %207, %.critedge272
  %.5297 = phi i64 [ 1, %.critedge272 ], [ %211, %207 ]
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  %196 = load double, ptr %195, align 8, !tbaa !8
  %197 = getelementptr inbounds double, ptr %195, i64 %.5297
  store double %196, ptr %197, align 8, !tbaa !8
  %198 = load ptr, ptr %14, align 8, !tbaa !5
  %199 = load double, ptr %198, align 8, !tbaa !8
  %200 = getelementptr inbounds double, ptr %198, i64 %.5297
  %201 = getelementptr inbounds i8, ptr %200, i64 8
  store double %199, ptr %201, align 8, !tbaa !8
  %202 = load ptr, ptr %14, align 8, !tbaa !5
  %203 = load double, ptr %202, align 8, !tbaa !8
  %204 = getelementptr inbounds double, ptr %202, i64 %.5297
  %205 = getelementptr inbounds i8, ptr %204, i64 16
  store double %203, ptr %205, align 8, !tbaa !8
  %206 = add nuw nsw i64 %.5297, 3
  %exitcond317.not.2 = icmp eq i64 %206, 50000
  br i1 %exitcond317.not.2, label %.preheader284, label %207, !llvm.loop !21

207:                                              ; preds = %194
  %208 = load ptr, ptr %14, align 8, !tbaa !5
  %209 = load double, ptr %208, align 8, !tbaa !8
  %210 = getelementptr inbounds double, ptr %208, i64 %206
  store double %209, ptr %210, align 8, !tbaa !8
  %211 = add nuw nsw i64 %.5297, 4
  br label %194

.preheader284:                                    ; preds = %194, %.preheader284
  %.6298 = phi i64 [ %226, %.preheader284 ], [ 0, %194 ]
  %212 = load ptr, ptr %13, align 8, !tbaa !5
  %213 = getelementptr inbounds double, ptr %212, i64 %.6298
  store double 1.000000e+00, ptr %213, align 8, !tbaa !8
  %214 = load ptr, ptr %13, align 8, !tbaa !5
  %215 = getelementptr inbounds double, ptr %214, i64 %.6298
  %216 = getelementptr inbounds i8, ptr %215, i64 8
  store double 1.000000e+00, ptr %216, align 8, !tbaa !8
  %217 = load ptr, ptr %13, align 8, !tbaa !5
  %218 = getelementptr inbounds double, ptr %217, i64 %.6298
  %219 = getelementptr inbounds i8, ptr %218, i64 16
  store double 1.000000e+00, ptr %219, align 8, !tbaa !8
  %220 = load ptr, ptr %13, align 8, !tbaa !5
  %221 = getelementptr inbounds double, ptr %220, i64 %.6298
  %222 = getelementptr inbounds i8, ptr %221, i64 24
  store double 1.000000e+00, ptr %222, align 8, !tbaa !8
  %223 = load ptr, ptr %13, align 8, !tbaa !5
  %224 = getelementptr inbounds double, ptr %223, i64 %.6298
  %225 = getelementptr inbounds i8, ptr %224, i64 32
  store double 1.000000e+00, ptr %225, align 8, !tbaa !8
  %226 = add nuw nsw i64 %.6298, 5
  %exitcond318.not.4 = icmp eq i64 %226, 50000
  br i1 %exitcond318.not.4, label %227, label %.preheader284, !llvm.loop !22

227:                                              ; preds = %.preheader284
  call void @_ZN11alglib_impl4xdotEPNS_9ae_vectorES1_lS1_PdS2_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef 50000, ptr noundef nonnull %12, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %1)
  br i1 %182, label %.critedge275, label %228

228:                                              ; preds = %227
  %229 = load double, ptr %5, align 8, !tbaa !8
  %230 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %229, double noundef 0.000000e+00)
  br i1 %230, label %.critedge275, label %.critedge274

.critedge274:                                     ; preds = %228
  %231 = load double, ptr %5, align 8, !tbaa !8
  %232 = load ptr, ptr %14, align 8, !tbaa !5
  %233 = load double, ptr %232, align 8, !tbaa !8
  %234 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %233, ptr noundef %1)
  %235 = fmul double %234, 2.000000e-15
  %236 = fmul double %235, 5.000000e+04
  %237 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %231, double noundef %236)
  br i1 %237, label %.critedge275, label %238

238:                                              ; preds = %.critedge274
  %239 = load double, ptr %4, align 8, !tbaa !8
  %240 = load ptr, ptr %14, align 8, !tbaa !5
  %241 = load double, ptr %240, align 8, !tbaa !8
  %242 = call double @llvm.fmuladd.f64(double %241, double -5.000000e+04, double %239)
  %243 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %242, ptr noundef %1)
  %244 = load double, ptr %5, align 8, !tbaa !8
  %245 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %243, double noundef %244)
  br label %.critedge275

.critedge275:                                     ; preds = %228, %227, %238, %.critedge274
  %246 = phi i1 [ true, %.critedge274 ], [ %245, %238 ], [ true, %227 ], [ true, %228 ]
  %247 = add nuw nsw i64 %.1268299, 1
  %exitcond319.not = icmp eq i64 %247, 10
  br i1 %exitcond319.not, label %248, label %107, !llvm.loop !23

248:                                              ; preds = %.critedge275
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef 50000, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef 50000, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef 100000, ptr noundef %1)
  br label %249

249:                                              ; preds = %248, %.critedge281
  %.1263307 = phi i1 [ %246, %248 ], [ %363, %.critedge281 ]
  %.2269306 = phi i64 [ 0, %248 ], [ %364, %.critedge281 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext true, ptr noundef nonnull @.str.26, ptr noundef %1)
  %250 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %.2269306, i64 noundef 50, ptr noundef %1)
  %251 = sitofp i64 %250 to double
  %252 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %251, ptr noundef %1)
  %253 = icmp eq i64 %.2269306, 9
  %spec.store.select9 = select i1 %253, double 1.000000e+300, double %252
  %254 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %255 = call double @llvm.fmuladd.f64(double %254, double 2.000000e+00, double -1.000000e+00)
  %256 = fmul double %spec.store.select9, %255
  %257 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %258 = fmul double %257, 2.000000e+00
  %259 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %258, ptr noundef %1)
  %260 = fmul double %256, %259
  %261 = load ptr, ptr %16, align 8, !tbaa !5
  store double %260, ptr %261, align 8, !tbaa !12
  %262 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %263 = call double @llvm.fmuladd.f64(double %262, double 2.000000e+00, double -1.000000e+00)
  %264 = fmul double %spec.store.select9, %263
  %265 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %266 = fmul double %265, 2.000000e+00
  %267 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %266, ptr noundef %1)
  %268 = fmul double %264, %267
  %269 = load ptr, ptr %16, align 8, !tbaa !5
  %270 = getelementptr inbounds i8, ptr %269, i64 8
  store double %268, ptr %270, align 8, !tbaa !14
  br label %271

271:                                              ; preds = %275, %249
  %.7301 = phi i64 [ 1, %249 ], [ %278, %275 ]
  %272 = load ptr, ptr %16, align 8, !tbaa !5
  %273 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %272, i64 %.7301
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %273, ptr noundef nonnull align 8 dereferenceable(16) %272, i64 16, i1 false), !tbaa.struct !24
  %274 = add nuw nsw i64 %.7301, 1
  %exitcond320.not = icmp eq i64 %274, 50000
  br i1 %exitcond320.not, label %.preheader283, label %275, !llvm.loop !25

275:                                              ; preds = %271
  %276 = load ptr, ptr %16, align 8, !tbaa !5
  %277 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %276, i64 %274
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %277, ptr noundef nonnull align 8 dereferenceable(16) %276, i64 16, i1 false), !tbaa.struct !24
  %278 = add nuw nsw i64 %.7301, 2
  br label %271

.preheader283:                                    ; preds = %271, %.preheader283
  %.8302 = phi i64 [ %284, %.preheader283 ], [ 0, %271 ]
  %279 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %280 = extractvalue { double, double } %279, 0
  %281 = extractvalue { double, double } %279, 1
  %282 = load ptr, ptr %15, align 8, !tbaa !5
  %283 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %282, i64 %.8302
  store double %280, ptr %283, align 8, !tbaa !8
  %.sroa.435.0..sroa_idx = getelementptr inbounds i8, ptr %283, i64 8
  store double %281, ptr %.sroa.435.0..sroa_idx, align 8, !tbaa !8
  %284 = add nuw nsw i64 %.8302, 1
  %exitcond321.not = icmp eq i64 %284, 25000
  br i1 %exitcond321.not, label %.preheader282, label %.preheader283, !llvm.loop !26

.preheader282:                                    ; preds = %.preheader283, %.preheader282
  %.9303 = phi i64 [ %290, %.preheader282 ], [ 25000, %.preheader283 ]
  %285 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef -1)
  %286 = extractvalue { double, double } %285, 0
  %287 = extractvalue { double, double } %285, 1
  %288 = load ptr, ptr %15, align 8, !tbaa !5
  %289 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %288, i64 %.9303
  store double %286, ptr %289, align 8, !tbaa !8
  %.sroa.433.0..sroa_idx = getelementptr inbounds i8, ptr %289, i64 8
  store double %287, ptr %.sroa.433.0..sroa_idx, align 8, !tbaa !8
  %290 = add nuw nsw i64 %.9303, 1
  %exitcond322.not = icmp eq i64 %290, 49999
  br i1 %exitcond322.not, label %291, label %.preheader282, !llvm.loop !27

291:                                              ; preds = %.preheader282
  %292 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %293 = extractvalue { double, double } %292, 0
  %294 = extractvalue { double, double } %292, 1
  %295 = load ptr, ptr %15, align 8, !tbaa !5
  %296 = getelementptr inbounds i8, ptr %295, i64 799984
  store double %293, ptr %296, align 8, !tbaa !8
  %.sroa.431.0..sroa_idx = getelementptr inbounds i8, ptr %295, i64 799992
  store double %294, ptr %.sroa.431.0..sroa_idx, align 8, !tbaa !8
  call void @_ZN11alglib_impl5xcdotEPNS_9ae_vectorES1_lS1_PNS_10ae_complexEPdPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %11, i64 noundef 50000, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %1)
  br i1 %.1263307, label %.critedge278, label %297

297:                                              ; preds = %291
  %298 = load double, ptr %7, align 8, !tbaa !8
  %299 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %298, double noundef 0.000000e+00)
  br i1 %299, label %.critedge278, label %.critedge277

.critedge277:                                     ; preds = %297
  %300 = load double, ptr %7, align 8, !tbaa !8
  %301 = load ptr, ptr %16, align 8, !tbaa !5
  %.sroa.028.0.copyload = load double, ptr %301, align 8, !tbaa !8
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %301, i64 8
  %.sroa.229.0.copyload = load double, ptr %.sroa.229.0..sroa_idx, align 8, !tbaa !8
  %302 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %.sroa.028.0.copyload, double %.sroa.229.0.copyload, ptr noundef %1)
  %303 = fmul double %302, 2.000000e-15
  %304 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %300, double noundef %303)
  br i1 %304, label %.critedge278, label %305

305:                                              ; preds = %.critedge277
  %.sroa.024.0.copyload = load double, ptr %6, align 8, !tbaa !8
  %.sroa.225.0.copyload = load double, ptr %.sroa.237.0..sroa_idx, align 8, !tbaa !8
  %306 = load ptr, ptr %16, align 8, !tbaa !5
  %.sroa.022.0.copyload = load double, ptr %306, align 8, !tbaa !8
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %306, i64 8
  %.sroa.223.0.copyload = load double, ptr %.sroa.223.0..sroa_idx, align 8, !tbaa !8
  %307 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %.sroa.024.0.copyload, double %.sroa.225.0.copyload, double %.sroa.022.0.copyload, double %.sroa.223.0.copyload)
  %308 = extractvalue { double, double } %307, 0
  %309 = extractvalue { double, double } %307, 1
  %310 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %308, double %309, ptr noundef %1)
  %311 = load double, ptr %7, align 8, !tbaa !8
  %312 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %310, double noundef %311)
  br label %.critedge278

.critedge278:                                     ; preds = %297, %291, %305, %.critedge277
  %313 = phi i1 [ true, %.critedge277 ], [ %312, %305 ], [ true, %291 ], [ true, %297 ]
  %314 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %.2269306, i64 noundef 50, ptr noundef %1)
  %315 = sitofp i64 %314 to double
  %316 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %315, ptr noundef %1)
  %spec.store.select10 = select i1 %253, double 1.000000e+300, double %316
  %317 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %318 = call double @llvm.fmuladd.f64(double %317, double 2.000000e+00, double -1.000000e+00)
  %319 = fmul double %spec.store.select10, %318
  %320 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %321 = fmul double %320, 2.000000e+00
  %322 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %321, ptr noundef %1)
  %323 = fmul double %319, %322
  %324 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %323)
  %325 = extractvalue { double, double } %324, 0
  %326 = extractvalue { double, double } %324, 1
  %327 = load ptr, ptr %16, align 8, !tbaa !5
  store double %325, ptr %327, align 8, !tbaa !8
  %.sroa.421.0..sroa_idx = getelementptr inbounds i8, ptr %327, i64 8
  store double %326, ptr %.sroa.421.0..sroa_idx, align 8, !tbaa !8
  br label %328

328:                                              ; preds = %332, %.critedge278
  %.10304 = phi i64 [ 1, %.critedge278 ], [ %335, %332 ]
  %329 = load ptr, ptr %16, align 8, !tbaa !5
  %330 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %329, i64 %.10304
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %330, ptr noundef nonnull align 8 dereferenceable(16) %329, i64 16, i1 false), !tbaa.struct !24
  %331 = add nuw nsw i64 %.10304, 1
  %exitcond323.not = icmp eq i64 %331, 50000
  br i1 %exitcond323.not, label %.preheader, label %332, !llvm.loop !28

332:                                              ; preds = %328
  %333 = load ptr, ptr %16, align 8, !tbaa !5
  %334 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %333, i64 %331
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %334, ptr noundef nonnull align 8 dereferenceable(16) %333, i64 16, i1 false), !tbaa.struct !24
  %335 = add nuw nsw i64 %.10304, 2
  br label %328

.preheader:                                       ; preds = %328, %.preheader
  %.11305 = phi i64 [ %341, %.preheader ], [ 0, %328 ]
  %336 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %337 = extractvalue { double, double } %336, 0
  %338 = extractvalue { double, double } %336, 1
  %339 = load ptr, ptr %15, align 8, !tbaa !5
  %340 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %339, i64 %.11305
  store double %337, ptr %340, align 8, !tbaa !8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %340, i64 8
  store double %338, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !8
  %341 = add nuw nsw i64 %.11305, 1
  %exitcond324.not = icmp eq i64 %341, 50000
  br i1 %exitcond324.not, label %342, label %.preheader, !llvm.loop !29

342:                                              ; preds = %.preheader
  call void @_ZN11alglib_impl5xcdotEPNS_9ae_vectorES1_lS1_PNS_10ae_complexEPdPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %11, i64 noundef 50000, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %1)
  br i1 %313, label %.critedge281, label %343

343:                                              ; preds = %342
  %344 = load double, ptr %7, align 8, !tbaa !8
  %345 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %344, double noundef 0.000000e+00)
  br i1 %345, label %.critedge281, label %.critedge280

.critedge280:                                     ; preds = %343
  %346 = load double, ptr %7, align 8, !tbaa !8
  %347 = load ptr, ptr %16, align 8, !tbaa !5
  %.sroa.017.0.copyload = load double, ptr %347, align 8, !tbaa !8
  %.sroa.218.0..sroa_idx = getelementptr inbounds i8, ptr %347, i64 8
  %.sroa.218.0.copyload = load double, ptr %.sroa.218.0..sroa_idx, align 8, !tbaa !8
  %348 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %.sroa.017.0.copyload, double %.sroa.218.0.copyload, ptr noundef %1)
  %349 = fmul double %348, 2.000000e-15
  %350 = fmul double %349, 5.000000e+04
  %351 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %346, double noundef %350)
  br i1 %351, label %.critedge281, label %352

352:                                              ; preds = %.critedge280
  %.sroa.013.0.copyload = load double, ptr %6, align 8, !tbaa !8
  %.sroa.214.0.copyload = load double, ptr %.sroa.237.0..sroa_idx, align 8, !tbaa !8
  %353 = load ptr, ptr %16, align 8, !tbaa !5
  %.sroa.0.0.copyload = load double, ptr %353, align 8, !tbaa !8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %353, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !8
  %354 = call { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double %.sroa.0.0.copyload, double %.sroa.2.0.copyload, double noundef 5.000000e+04)
  %355 = extractvalue { double, double } %354, 0
  %356 = extractvalue { double, double } %354, 1
  %357 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %.sroa.013.0.copyload, double %.sroa.214.0.copyload, double %355, double %356)
  %358 = extractvalue { double, double } %357, 0
  %359 = extractvalue { double, double } %357, 1
  %360 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %358, double %359, ptr noundef %1)
  %361 = load double, ptr %7, align 8, !tbaa !8
  %362 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %360, double noundef %361)
  br label %.critedge281

.critedge281:                                     ; preds = %343, %342, %352, %.critedge280
  %363 = phi i1 [ true, %.critedge280 ], [ %362, %352 ], [ true, %342 ], [ true, %343 ]
  %364 = add nuw nsw i64 %.2269306, 1
  %exitcond325.not = icmp eq i64 %364, 10
  br i1 %exitcond325.not, label %365, label %249, !llvm.loop !30

365:                                              ; preds = %.critedge281
  br i1 %0, label %377, label %366

366:                                              ; preds = %365
  %367 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.344)
  %368 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.345)
  %.str.7..str.6 = select i1 %102, ptr @.str.7, ptr @.str.6
  %369 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %370 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.346)
  br i1 %363, label %.thread, label %372

.thread:                                          ; preds = %366
  %371 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %374

372:                                              ; preds = %366
  %373 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %spec.select = select i1 %102, ptr @.str.1, ptr @.str.2
  br label %374

374:                                              ; preds = %372, %.thread
  %.str.2.sink = phi ptr [ @.str.1, %.thread ], [ %spec.select, %372 ]
  %375 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
  %376 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %377

377:                                              ; preds = %374, %365
  %378 = or i1 %102, %363
  %379 = xor i1 %378, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  ret i1 %379
}

declare void @_ZN11alglib_impl4xdotEPNS_9ae_vectorES1_lS1_PdS2_PNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl5xcdotEPNS_9ae_vectorES1_lS1_PNS_10ae_complexEPdPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nofree nounwind "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !9, i64 0}
!13 = !{!"_ZTSN11alglib_impl10ae_complexE", !9, i64 0, !9, i64 8}
!14 = !{!13, !9, i64 8}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}
!23 = distinct !{!23, !11}
!24 = !{i64 0, i64 8, !8, i64 8, i64 8, !8}
!25 = distinct !{!25, !11}
!26 = distinct !{!26, !11}
!27 = distinct !{!27, !11}
!28 = distinct !{!28, !11}
!29 = distinct !{!29, !11}
!30 = distinct !{!30, !11}


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