; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/tests/test_c.ll (Z8testcorrbPN11alglib_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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::ae_complex" = type { double, double }

@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.735 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.970 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.971 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.972 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.973 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.974 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.975 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.976 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.977 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.978 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.979 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.980 = external hidden unnamed_addr constant [43 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 i32 @printf(ptr noundef, ...) #1

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

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

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

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

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_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) #3

declare void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr 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 noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

declare void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

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

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

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr 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 noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double, double, ptr noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z8testcorrbPN11alglib_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 i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, 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
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca i64, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca i64, align 8
  %22 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  %26 = alloca i8, align 1
  %27 = alloca %"struct.alglib_impl::ae_complex", align 8
  %28 = alloca %"struct.alglib_impl::ae_complex", align 8
  %29 = alloca %"struct.alglib_impl::ae_complex", align 8
  %30 = alloca %"struct.alglib_impl::ae_complex", align 8
  %31 = alloca %"struct.alglib_impl::ae_complex", align 8
  %32 = alloca %"struct.alglib_impl::ae_complex", align 8
  %33 = zext i1 %0 to i8
  store i8 %33, 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 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #6
  %34 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %34, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 24, i1 false)
  %35 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %9, i64 noundef 0, i64 noundef 3, ptr noundef %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %10, i64 noundef 0, i64 noundef 3, ptr noundef %36, i1 noundef zeroext true)
  %37 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %11, i64 noundef 0, i64 noundef 3, ptr noundef %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %12, i64 noundef 0, i64 noundef 3, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %13, i64 noundef 0, i64 noundef 4, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %14, i64 noundef 0, i64 noundef 4, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %15, i64 noundef 0, i64 noundef 4, ptr noundef %41, i1 noundef zeroext true)
  %42 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 4, ptr noundef %42, i1 noundef zeroext true)
  %43 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %22, ptr noundef %43, i1 noundef zeroext true)
  %44 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %22, ptr noundef %44)
  store i64 32, ptr %17, align 8, !tbaa !11
  %45 = load i64, ptr %17, align 8, !tbaa !11
  %46 = sitofp i64 %45 to double
  %47 = load ptr, ptr %4, align 8, !tbaa !9
  %48 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef %46, double noundef 1.500000e+00, ptr noundef %47)
  %49 = fmul double 1.000000e+05, %48
  %50 = fmul double %49, 5.000000e-16
  store double %50, ptr %20, align 8, !tbaa !13
  store i8 0, ptr %23, align 1, !tbaa !5
  store i8 0, ptr %24, align 1, !tbaa !5
  store i8 0, ptr %25, align 1, !tbaa !5
  store double 0.000000e+00, ptr %18, align 8, !tbaa !13
  store double 0.000000e+00, ptr %19, align 8, !tbaa !13
  store i64 1, ptr %6, align 8, !tbaa !11
  br label %51

51:                                               ; preds = %445, %2
  %52 = load i64, ptr %6, align 8, !tbaa !11
  %53 = load i64, ptr %17, align 8, !tbaa !11
  %54 = icmp sle i64 %52, %53
  br i1 %54, label %55, label %448

55:                                               ; preds = %51
  store i64 1, ptr %7, align 8, !tbaa !11
  br label %56

56:                                               ; preds = %441, %55
  %57 = load i64, ptr %7, align 8, !tbaa !11
  %58 = load i64, ptr %17, align 8, !tbaa !11
  %59 = icmp sle i64 %57, %58
  br i1 %59, label %60, label %444

60:                                               ; preds = %56
  %61 = load i64, ptr %6, align 8, !tbaa !11
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %61, ptr noundef %62)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %63

63:                                               ; preds = %85, %60
  %64 = load i64, ptr %8, align 8, !tbaa !11
  %65 = load i64, ptr %6, align 8, !tbaa !11
  %66 = sub nsw i64 %65, 1
  %67 = icmp sle i64 %64, %66
  br i1 %67, label %68, label %88

68:                                               ; preds = %63
  %69 = load ptr, ptr %4, align 8, !tbaa !9
  %70 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %69)
  %71 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %70, double -1.000000e+00)
  %72 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %73 = load ptr, ptr %72, align 8, !tbaa !15
  %74 = load i64, ptr %8, align 8, !tbaa !11
  %75 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %73, i64 %74
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %75, i32 0, i32 0
  store double %71, ptr %76, align 8, !tbaa !16
  %77 = load ptr, ptr %4, align 8, !tbaa !9
  %78 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %77)
  %79 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %78, double -1.000000e+00)
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !15
  %82 = load i64, ptr %8, align 8, !tbaa !11
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %81, i64 %82
  %84 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %83, i32 0, i32 1
  store double %79, ptr %84, align 8, !tbaa !18
  br label %85

85:                                               ; preds = %68
  %86 = load i64, ptr %8, align 8, !tbaa !11
  %87 = add nsw i64 %86, 1
  store i64 %87, ptr %8, align 8, !tbaa !11
  br label %63, !llvm.loop !19

88:                                               ; preds = %63
  %89 = load i64, ptr %7, align 8, !tbaa !11
  %90 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %89, ptr noundef %90)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %91

91:                                               ; preds = %113, %88
  %92 = load i64, ptr %8, align 8, !tbaa !11
  %93 = load i64, ptr %7, align 8, !tbaa !11
  %94 = sub nsw i64 %93, 1
  %95 = icmp sle i64 %92, %94
  br i1 %95, label %96, label %116

96:                                               ; preds = %91
  %97 = load ptr, ptr %4, align 8, !tbaa !9
  %98 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %97)
  %99 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %98, double -1.000000e+00)
  %100 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %101 = load ptr, ptr %100, align 8, !tbaa !15
  %102 = load i64, ptr %8, align 8, !tbaa !11
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %101, i64 %102
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %103, i32 0, i32 0
  store double %99, ptr %104, align 8, !tbaa !16
  %105 = load ptr, ptr %4, align 8, !tbaa !9
  %106 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %105)
  %107 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %106, double -1.000000e+00)
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !15
  %110 = load i64, ptr %8, align 8, !tbaa !11
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %109, i64 %110
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %111, i32 0, i32 1
  store double %107, ptr %112, align 8, !tbaa !18
  br label %113

113:                                              ; preds = %96
  %114 = load i64, ptr %8, align 8, !tbaa !11
  %115 = add nsw i64 %114, 1
  store i64 %115, ptr %8, align 8, !tbaa !11
  br label %91, !llvm.loop !21

116:                                              ; preds = %91
  %117 = load i64, ptr %7, align 8, !tbaa !11
  %118 = load i64, ptr %6, align 8, !tbaa !11
  %119 = add nsw i64 %117, %118
  %120 = sub nsw i64 %119, 1
  %121 = mul nsw i64 2, %120
  %122 = add nsw i64 %121, 5
  %123 = load ptr, ptr %4, align 8, !tbaa !9
  %124 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %22, i64 noundef %122, ptr noundef %123)
  store i64 %124, ptr %21, align 8, !tbaa !11
  %125 = load i64, ptr %21, align 8, !tbaa !11
  %126 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %15, i64 noundef %125, ptr noundef %126)
  %127 = load ptr, ptr %4, align 8, !tbaa !9
  %128 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %22, ptr noundef %127)
  %129 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %128, double noundef 0.000000e+00)
  br i1 %129, label %130, label %141

130:                                              ; preds = %116
  %131 = load i64, ptr %6, align 8, !tbaa !11
  %132 = load i64, ptr %7, align 8, !tbaa !11
  %133 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl7corrc1dEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %13, i64 noundef %131, ptr noundef %14, i64 noundef %132, ptr noundef %15, ptr noundef %133)
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 0
  %135 = load i64, ptr %134, align 8, !tbaa !22
  %136 = load i64, ptr %7, align 8, !tbaa !11
  %137 = load i64, ptr %6, align 8, !tbaa !11
  %138 = add nsw i64 %136, %137
  %139 = sub nsw i64 %138, 1
  %140 = icmp ne i64 %135, %139
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %23, i1 noundef zeroext %140, ptr noundef @.str.19, i32 noundef 125822, ptr noundef @.str.970)
  br label %155

141:                                              ; preds = %116
  %142 = load i64, ptr %6, align 8, !tbaa !11
  %143 = load i64, ptr %7, align 8, !tbaa !11
  %144 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl10corrc1dbufEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %13, i64 noundef %142, ptr noundef %14, i64 noundef %143, ptr noundef %15, ptr noundef %144)
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 0
  %146 = load i64, ptr %145, align 8, !tbaa !22
  %147 = load i64, ptr %7, align 8, !tbaa !11
  %148 = load i64, ptr %6, align 8, !tbaa !11
  %149 = add nsw i64 %147, %148
  %150 = sub nsw i64 %149, 1
  %151 = load i64, ptr %21, align 8, !tbaa !11
  %152 = load ptr, ptr %4, align 8, !tbaa !9
  %153 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %150, i64 noundef %151, ptr noundef %152)
  %154 = icmp ne i64 %146, %153
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %23, i1 noundef zeroext %154, ptr noundef @.str.19, i32 noundef 125827, ptr noundef @.str.971)
  br label %155

155:                                              ; preds = %141, %130
  %156 = load i64, ptr %6, align 8, !tbaa !11
  %157 = load i64, ptr %7, align 8, !tbaa !11
  %158 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testcorrunit_refcorrc1dPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %13, i64 noundef %156, ptr noundef %14, i64 noundef %157, ptr noundef %16, ptr noundef %158)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %159

159:                                              ; preds = %197, %155
  %160 = load i64, ptr %8, align 8, !tbaa !11
  %161 = load i64, ptr %6, align 8, !tbaa !11
  %162 = load i64, ptr %7, align 8, !tbaa !11
  %163 = add nsw i64 %161, %162
  %164 = sub nsw i64 %163, 2
  %165 = icmp sle i64 %160, %164
  br i1 %165, label %166, label %200

166:                                              ; preds = %159
  %167 = load double, ptr %18, align 8, !tbaa !13
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !15
  %170 = load i64, ptr %8, align 8, !tbaa !11
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %169, i64 %170
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %171, i64 16, i1 false), !tbaa.struct !25
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !15
  %174 = load i64, ptr %8, align 8, !tbaa !11
  %175 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %173, i64 %174
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %175, i64 16, i1 false), !tbaa.struct !25
  %176 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %177 = load double, ptr %176, align 8
  %178 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %179 = load double, ptr %178, align 8
  %180 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %181 = load double, ptr %180, align 8
  %182 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %183 = load double, ptr %182, align 8
  %184 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %177, double %179, double %181, double %183)
  %185 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %186 = extractvalue { double, double } %184, 0
  store double %186, ptr %185, align 8
  %187 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %188 = extractvalue { double, double } %184, 1
  store double %188, ptr %187, align 8
  %189 = load ptr, ptr %4, align 8, !tbaa !9
  %190 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %191 = load double, ptr %190, align 8
  %192 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %193 = load double, ptr %192, align 8
  %194 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %191, double %193, ptr noundef %189)
  %195 = load ptr, ptr %4, align 8, !tbaa !9
  %196 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %167, double noundef %194, ptr noundef %195)
  store double %196, ptr %18, align 8, !tbaa !13
  br label %197

197:                                              ; preds = %166
  %198 = load i64, ptr %8, align 8, !tbaa !11
  %199 = add nsw i64 %198, 1
  store i64 %199, ptr %8, align 8, !tbaa !11
  br label %159, !llvm.loop !26

200:                                              ; preds = %159
  %201 = load i64, ptr %6, align 8, !tbaa !11
  %202 = mul nsw i64 2, %201
  %203 = add nsw i64 %202, 5
  %204 = load ptr, ptr %4, align 8, !tbaa !9
  %205 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %22, i64 noundef %203, ptr noundef %204)
  store i64 %205, ptr %21, align 8, !tbaa !11
  %206 = load i64, ptr %21, align 8, !tbaa !11
  %207 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %15, i64 noundef %206, ptr noundef %207)
  %208 = load ptr, ptr %4, align 8, !tbaa !9
  %209 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %22, ptr noundef %208)
  %210 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %209, double noundef 0.000000e+00)
  br i1 %210, label %211, label %219

211:                                              ; preds = %200
  %212 = load i64, ptr %6, align 8, !tbaa !11
  %213 = load i64, ptr %7, align 8, !tbaa !11
  %214 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl15corrc1dcircularEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %13, i64 noundef %212, ptr noundef %14, i64 noundef %213, ptr noundef %15, ptr noundef %214)
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 0
  %216 = load i64, ptr %215, align 8, !tbaa !22
  %217 = load i64, ptr %6, align 8, !tbaa !11
  %218 = icmp ne i64 %216, %217
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %23, i1 noundef zeroext %218, ptr noundef @.str.19, i32 noundef 125839, ptr noundef @.str.972)
  br label %230

219:                                              ; preds = %200
  %220 = load i64, ptr %6, align 8, !tbaa !11
  %221 = load i64, ptr %7, align 8, !tbaa !11
  %222 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18corrc1dcircularbufEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %13, i64 noundef %220, ptr noundef %14, i64 noundef %221, ptr noundef %15, ptr noundef %222)
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 0
  %224 = load i64, ptr %223, align 8, !tbaa !22
  %225 = load i64, ptr %6, align 8, !tbaa !11
  %226 = load i64, ptr %21, align 8, !tbaa !11
  %227 = load ptr, ptr %4, align 8, !tbaa !9
  %228 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %225, i64 noundef %226, ptr noundef %227)
  %229 = icmp ne i64 %224, %228
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %23, i1 noundef zeroext %229, ptr noundef @.str.19, i32 noundef 125844, ptr noundef @.str.973)
  br label %230

230:                                              ; preds = %219, %211
  %231 = load i64, ptr %6, align 8, !tbaa !11
  %232 = load i64, ptr %7, align 8, !tbaa !11
  %233 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testcorrunit_refcorrc1dcircularPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %13, i64 noundef %231, ptr noundef %14, i64 noundef %232, ptr noundef %16, ptr noundef %233)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %234

234:                                              ; preds = %270, %230
  %235 = load i64, ptr %8, align 8, !tbaa !11
  %236 = load i64, ptr %6, align 8, !tbaa !11
  %237 = sub nsw i64 %236, 1
  %238 = icmp sle i64 %235, %237
  br i1 %238, label %239, label %273

239:                                              ; preds = %234
  %240 = load double, ptr %18, align 8, !tbaa !13
  %241 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %242 = load ptr, ptr %241, align 8, !tbaa !15
  %243 = load i64, ptr %8, align 8, !tbaa !11
  %244 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %242, i64 %243
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 8 %244, i64 16, i1 false), !tbaa.struct !25
  %245 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %246 = load ptr, ptr %245, align 8, !tbaa !15
  %247 = load i64, ptr %8, align 8, !tbaa !11
  %248 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %246, i64 %247
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 %248, i64 16, i1 false), !tbaa.struct !25
  %249 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %250 = load double, ptr %249, align 8
  %251 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %252 = load double, ptr %251, align 8
  %253 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %254 = load double, ptr %253, align 8
  %255 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %256 = load double, ptr %255, align 8
  %257 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %250, double %252, double %254, double %256)
  %258 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %259 = extractvalue { double, double } %257, 0
  store double %259, ptr %258, align 8
  %260 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %261 = extractvalue { double, double } %257, 1
  store double %261, ptr %260, align 8
  %262 = load ptr, ptr %4, align 8, !tbaa !9
  %263 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %264 = load double, ptr %263, align 8
  %265 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %266 = load double, ptr %265, align 8
  %267 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %264, double %266, ptr noundef %262)
  %268 = load ptr, ptr %4, align 8, !tbaa !9
  %269 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %240, double noundef %267, ptr noundef %268)
  store double %269, ptr %18, align 8, !tbaa !13
  br label %270

270:                                              ; preds = %239
  %271 = load i64, ptr %8, align 8, !tbaa !11
  %272 = add nsw i64 %271, 1
  store i64 %272, ptr %8, align 8, !tbaa !11
  br label %234, !llvm.loop !27

273:                                              ; preds = %234
  %274 = load i64, ptr %6, align 8, !tbaa !11
  %275 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %274, ptr noundef %275)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %276

276:                                              ; preds = %289, %273
  %277 = load i64, ptr %8, align 8, !tbaa !11
  %278 = load i64, ptr %6, align 8, !tbaa !11
  %279 = sub nsw i64 %278, 1
  %280 = icmp sle i64 %277, %279
  br i1 %280, label %281, label %292

281:                                              ; preds = %276
  %282 = load ptr, ptr %4, align 8, !tbaa !9
  %283 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %282)
  %284 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %283, double -1.000000e+00)
  %285 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %286 = load ptr, ptr %285, align 8, !tbaa !15
  %287 = load i64, ptr %8, align 8, !tbaa !11
  %288 = getelementptr inbounds double, ptr %286, i64 %287
  store double %284, ptr %288, align 8, !tbaa !13
  br label %289

289:                                              ; preds = %281
  %290 = load i64, ptr %8, align 8, !tbaa !11
  %291 = add nsw i64 %290, 1
  store i64 %291, ptr %8, align 8, !tbaa !11
  br label %276, !llvm.loop !28

292:                                              ; preds = %276
  %293 = load i64, ptr %7, align 8, !tbaa !11
  %294 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %293, ptr noundef %294)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %295

295:                                              ; preds = %308, %292
  %296 = load i64, ptr %8, align 8, !tbaa !11
  %297 = load i64, ptr %7, align 8, !tbaa !11
  %298 = sub nsw i64 %297, 1
  %299 = icmp sle i64 %296, %298
  br i1 %299, label %300, label %311

300:                                              ; preds = %295
  %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 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %305 = load ptr, ptr %304, align 8, !tbaa !15
  %306 = load i64, ptr %8, align 8, !tbaa !11
  %307 = getelementptr inbounds double, ptr %305, i64 %306
  store double %303, ptr %307, align 8, !tbaa !13
  br label %308

308:                                              ; preds = %300
  %309 = load i64, ptr %8, align 8, !tbaa !11
  %310 = add nsw i64 %309, 1
  store i64 %310, ptr %8, align 8, !tbaa !11
  br label %295, !llvm.loop !29

311:                                              ; preds = %295
  %312 = load i64, ptr %6, align 8, !tbaa !11
  %313 = load i64, ptr %7, align 8, !tbaa !11
  %314 = add nsw i64 %312, %313
  %315 = sub nsw i64 %314, 1
  %316 = mul nsw i64 2, %315
  %317 = add nsw i64 %316, 5
  %318 = load ptr, ptr %4, align 8, !tbaa !9
  %319 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %22, i64 noundef %317, ptr noundef %318)
  store i64 %319, ptr %21, align 8, !tbaa !11
  %320 = load i64, ptr %21, align 8, !tbaa !11
  %321 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef %320, ptr noundef %321)
  %322 = load ptr, ptr %4, align 8, !tbaa !9
  %323 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %22, ptr noundef %322)
  %324 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %323, double noundef 0.000000e+00)
  br i1 %324, label %325, label %336

325:                                              ; preds = %311
  %326 = load i64, ptr %6, align 8, !tbaa !11
  %327 = load i64, ptr %7, align 8, !tbaa !11
  %328 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl7corrr1dEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %9, i64 noundef %326, ptr noundef %10, i64 noundef %327, ptr noundef %11, ptr noundef %328)
  %329 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 0
  %330 = load i64, ptr %329, align 8, !tbaa !22
  %331 = load i64, ptr %6, align 8, !tbaa !11
  %332 = load i64, ptr %7, align 8, !tbaa !11
  %333 = add nsw i64 %331, %332
  %334 = sub nsw i64 %333, 1
  %335 = icmp ne i64 %330, %334
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %24, i1 noundef zeroext %335, ptr noundef @.str.19, i32 noundef 125870, ptr noundef @.str.974)
  br label %350

336:                                              ; preds = %311
  %337 = load i64, ptr %6, align 8, !tbaa !11
  %338 = load i64, ptr %7, align 8, !tbaa !11
  %339 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl10corrr1dbufEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %9, i64 noundef %337, ptr noundef %10, i64 noundef %338, ptr noundef %11, ptr noundef %339)
  %340 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 0
  %341 = load i64, ptr %340, align 8, !tbaa !22
  %342 = load i64, ptr %6, align 8, !tbaa !11
  %343 = load i64, ptr %7, align 8, !tbaa !11
  %344 = add nsw i64 %342, %343
  %345 = sub nsw i64 %344, 1
  %346 = load i64, ptr %21, align 8, !tbaa !11
  %347 = load ptr, ptr %4, align 8, !tbaa !9
  %348 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %345, i64 noundef %346, ptr noundef %347)
  %349 = icmp ne i64 %341, %348
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %24, i1 noundef zeroext %349, ptr noundef @.str.19, i32 noundef 125875, ptr noundef @.str.975)
  br label %350

350:                                              ; preds = %336, %325
  %351 = load i64, ptr %6, align 8, !tbaa !11
  %352 = load i64, ptr %7, align 8, !tbaa !11
  %353 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testcorrunit_refcorrr1dPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %9, i64 noundef %351, ptr noundef %10, i64 noundef %352, ptr noundef %12, ptr noundef %353)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %354

354:                                              ; preds = %378, %350
  %355 = load i64, ptr %8, align 8, !tbaa !11
  %356 = load i64, ptr %6, align 8, !tbaa !11
  %357 = load i64, ptr %7, align 8, !tbaa !11
  %358 = add nsw i64 %356, %357
  %359 = sub nsw i64 %358, 2
  %360 = icmp sle i64 %355, %359
  br i1 %360, label %361, label %381

361:                                              ; preds = %354
  %362 = load double, ptr %19, align 8, !tbaa !13
  %363 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %364 = load ptr, ptr %363, align 8, !tbaa !15
  %365 = load i64, ptr %8, align 8, !tbaa !11
  %366 = getelementptr inbounds double, ptr %364, i64 %365
  %367 = load double, ptr %366, align 8, !tbaa !13
  %368 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %369 = load ptr, ptr %368, align 8, !tbaa !15
  %370 = load i64, ptr %8, align 8, !tbaa !11
  %371 = getelementptr inbounds double, ptr %369, i64 %370
  %372 = load double, ptr %371, align 8, !tbaa !13
  %373 = fsub double %367, %372
  %374 = load ptr, ptr %4, align 8, !tbaa !9
  %375 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %373, ptr noundef %374)
  %376 = load ptr, ptr %4, align 8, !tbaa !9
  %377 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %362, double noundef %375, ptr noundef %376)
  store double %377, ptr %19, align 8, !tbaa !13
  br label %378

378:                                              ; preds = %361
  %379 = load i64, ptr %8, align 8, !tbaa !11
  %380 = add nsw i64 %379, 1
  store i64 %380, ptr %8, align 8, !tbaa !11
  br label %354, !llvm.loop !30

381:                                              ; preds = %354
  %382 = load i64, ptr %6, align 8, !tbaa !11
  %383 = mul nsw i64 2, %382
  %384 = add nsw i64 %383, 5
  %385 = load ptr, ptr %4, align 8, !tbaa !9
  %386 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %22, i64 noundef %384, ptr noundef %385)
  store i64 %386, ptr %21, align 8, !tbaa !11
  %387 = load i64, ptr %21, align 8, !tbaa !11
  %388 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef %387, ptr noundef %388)
  %389 = load ptr, ptr %4, align 8, !tbaa !9
  %390 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %22, ptr noundef %389)
  %391 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %390, double noundef 0.000000e+00)
  br i1 %391, label %392, label %400

392:                                              ; preds = %381
  %393 = load i64, ptr %6, align 8, !tbaa !11
  %394 = load i64, ptr %7, align 8, !tbaa !11
  %395 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl15corrr1dcircularEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %9, i64 noundef %393, ptr noundef %10, i64 noundef %394, ptr noundef %11, ptr noundef %395)
  %396 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 0
  %397 = load i64, ptr %396, align 8, !tbaa !22
  %398 = load i64, ptr %6, align 8, !tbaa !11
  %399 = icmp ne i64 %397, %398
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %24, i1 noundef zeroext %399, ptr noundef @.str.19, i32 noundef 125887, ptr noundef @.str.976)
  br label %411

400:                                              ; preds = %381
  %401 = load i64, ptr %6, align 8, !tbaa !11
  %402 = load i64, ptr %7, align 8, !tbaa !11
  %403 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18corrr1dcircularbufEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %9, i64 noundef %401, ptr noundef %10, i64 noundef %402, ptr noundef %11, ptr noundef %403)
  %404 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 0
  %405 = load i64, ptr %404, align 8, !tbaa !22
  %406 = load i64, ptr %6, align 8, !tbaa !11
  %407 = load i64, ptr %21, align 8, !tbaa !11
  %408 = load ptr, ptr %4, align 8, !tbaa !9
  %409 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %406, i64 noundef %407, ptr noundef %408)
  %410 = icmp ne i64 %405, %409
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %24, i1 noundef zeroext %410, ptr noundef @.str.19, i32 noundef 125892, ptr noundef @.str.977)
  br label %411

411:                                              ; preds = %400, %392
  %412 = load i64, ptr %6, align 8, !tbaa !11
  %413 = load i64, ptr %7, align 8, !tbaa !11
  %414 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testcorrunit_refcorrr1dcircularPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %9, i64 noundef %412, ptr noundef %10, i64 noundef %413, ptr noundef %12, ptr noundef %414)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %415

415:                                              ; preds = %437, %411
  %416 = load i64, ptr %8, align 8, !tbaa !11
  %417 = load i64, ptr %6, align 8, !tbaa !11
  %418 = sub nsw i64 %417, 1
  %419 = icmp sle i64 %416, %418
  br i1 %419, label %420, label %440

420:                                              ; preds = %415
  %421 = load double, ptr %19, align 8, !tbaa !13
  %422 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %423 = load ptr, ptr %422, align 8, !tbaa !15
  %424 = load i64, ptr %8, align 8, !tbaa !11
  %425 = getelementptr inbounds double, ptr %423, i64 %424
  %426 = load double, ptr %425, align 8, !tbaa !13
  %427 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %428 = load ptr, ptr %427, align 8, !tbaa !15
  %429 = load i64, ptr %8, align 8, !tbaa !11
  %430 = getelementptr inbounds double, ptr %428, i64 %429
  %431 = load double, ptr %430, align 8, !tbaa !13
  %432 = fsub double %426, %431
  %433 = load ptr, ptr %4, align 8, !tbaa !9
  %434 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %432, ptr noundef %433)
  %435 = load ptr, ptr %4, align 8, !tbaa !9
  %436 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %421, double noundef %434, ptr noundef %435)
  store double %436, ptr %19, align 8, !tbaa !13
  br label %437

437:                                              ; preds = %420
  %438 = load i64, ptr %8, align 8, !tbaa !11
  %439 = add nsw i64 %438, 1
  store i64 %439, ptr %8, align 8, !tbaa !11
  br label %415, !llvm.loop !31

440:                                              ; preds = %415
  br label %441

441:                                              ; preds = %440
  %442 = load i64, ptr %7, align 8, !tbaa !11
  %443 = add nsw i64 %442, 1
  store i64 %443, ptr %7, align 8, !tbaa !11
  br label %56, !llvm.loop !32

444:                                              ; preds = %56
  br label %445

445:                                              ; preds = %444
  %446 = load i64, ptr %6, align 8, !tbaa !11
  %447 = add nsw i64 %446, 1
  store i64 %447, ptr %6, align 8, !tbaa !11
  br label %51, !llvm.loop !33

448:                                              ; preds = %51
  %449 = load i8, ptr %23, align 1, !tbaa !5, !range !34, !noundef !35
  %450 = trunc i8 %449 to i1
  br i1 %450, label %455, label %451

451:                                              ; preds = %448
  %452 = load double, ptr %18, align 8, !tbaa !13
  %453 = load double, ptr %20, align 8, !tbaa !13
  %454 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %452, double noundef %453)
  br label %455

455:                                              ; preds = %451, %448
  %456 = phi i1 [ true, %448 ], [ %454, %451 ]
  %457 = zext i1 %456 to i8
  store i8 %457, ptr %23, align 1, !tbaa !5
  %458 = load i8, ptr %24, align 1, !tbaa !5, !range !34, !noundef !35
  %459 = trunc i8 %458 to i1
  br i1 %459, label %464, label %460

460:                                              ; preds = %455
  %461 = load double, ptr %19, align 8, !tbaa !13
  %462 = load double, ptr %20, align 8, !tbaa !13
  %463 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %461, double noundef %462)
  br label %464

464:                                              ; preds = %460, %455
  %465 = phi i1 [ true, %455 ], [ %463, %460 ]
  %466 = zext i1 %465 to i8
  store i8 %466, ptr %24, align 1, !tbaa !5
  %467 = load i8, ptr %23, align 1, !tbaa !5, !range !34, !noundef !35
  %468 = trunc i8 %467 to i1
  br i1 %468, label %472, label %469

469:                                              ; preds = %464
  %470 = load i8, ptr %24, align 1, !tbaa !5, !range !34, !noundef !35
  %471 = trunc i8 %470 to i1
  br label %472

472:                                              ; preds = %469, %464
  %473 = phi i1 [ true, %464 ], [ %471, %469 ]
  %474 = zext i1 %473 to i8
  store i8 %474, ptr %25, align 1, !tbaa !5
  %475 = load i8, ptr %3, align 1, !tbaa !5, !range !34, !noundef !35
  %476 = trunc i8 %475 to i1
  br i1 %476, label %510, label %477

477:                                              ; preds = %472
  %478 = call i32 (ptr, ...) @printf(ptr noundef @.str.978)
  %479 = call i32 (ptr, ...) @printf(ptr noundef @.str.735)
  %480 = load i8, ptr %25, align 1, !tbaa !5, !range !34, !noundef !35
  %481 = trunc i8 %480 to i1
  br i1 %481, label %482, label %484

482:                                              ; preds = %477
  %483 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %486

484:                                              ; preds = %477
  %485 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %486

486:                                              ; preds = %484, %482
  %487 = call i32 (ptr, ...) @printf(ptr noundef @.str.979)
  %488 = load i8, ptr %23, align 1, !tbaa !5, !range !34, !noundef !35
  %489 = trunc i8 %488 to i1
  br i1 %489, label %490, label %492

490:                                              ; preds = %486
  %491 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %494

492:                                              ; preds = %486
  %493 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %494

494:                                              ; preds = %492, %490
  %495 = call i32 (ptr, ...) @printf(ptr noundef @.str.980)
  %496 = load i8, ptr %24, align 1, !tbaa !5, !range !34, !noundef !35
  %497 = trunc i8 %496 to i1
  br i1 %497, label %498, label %500

498:                                              ; preds = %494
  %499 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %502

500:                                              ; preds = %494
  %501 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %502

502:                                              ; preds = %500, %498
  %503 = load i8, ptr %25, align 1, !tbaa !5, !range !34, !noundef !35
  %504 = trunc i8 %503 to i1
  br i1 %504, label %505, label %507

505:                                              ; preds = %502
  %506 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  br label %509

507:                                              ; preds = %502
  %508 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  br label %509

509:                                              ; preds = %507, %505
  br label %510

510:                                              ; preds = %509, %472
  %511 = load i8, ptr %25, align 1, !tbaa !5, !range !34, !noundef !35
  %512 = trunc i8 %511 to i1
  %513 = xor i1 %512, true
  %514 = zext i1 %513 to i8
  store i8 %514, ptr %26, align 1, !tbaa !5
  %515 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %515)
  %516 = load i8, ptr %26, align 1, !tbaa !5, !range !34, !noundef !35
  %517 = trunc i8 %516 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  ret i1 %517
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23testcorrunit_refcorrc1dPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #5

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL31testcorrunit_refcorrc1dcircularPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #5

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23testcorrunit_refcorrr1dPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #5

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL31testcorrunit_refcorrr1dcircularPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #5

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 nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !14, i64 0}
!17 = !{!"_ZTSN11alglib_impl10ae_complexE", !14, i64 0, !14, i64 8}
!18 = !{!17, !14, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!23, !12, i64 0}
!23 = !{!"_ZTSN11alglib_impl9ae_vectorE", !12, i64 0, !12, i64 8, !6, i64 16, !24, i64 24, !7, i64 56}
!24 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!25 = !{i64 0, i64 8, !13, i64 8, i64 8, !13}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}
!30 = distinct !{!30, !20}
!31 = distinct !{!31, !20}
!32 = distinct !{!32, !20}
!33 = distinct !{!33, !20}
!34 = !{i8 0, i8 2}
!35 = !{}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.735 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.970 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.971 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.972 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.973 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.974 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.975 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.976 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.977 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.978 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.979 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.980 = external hidden unnamed_addr constant [43 x i8], align 1

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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

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

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

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

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

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

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

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

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

declare noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

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

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

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

declare noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z8testcorrbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #5 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca %"struct.alglib_impl::ae_vector", align 8
  %5 = alloca %"struct.alglib_impl::ae_vector", align 8
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", 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::hqrndstate", align 8
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #6
  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) %4, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %5, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(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(24) %12, i8 0, i64 24, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %4, 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 %5, 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 %6, 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 %7, 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 %8, 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 %9, 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 %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_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %12, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef %1)
  %15 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef 3.200000e+01, double noundef 1.500000e+00, ptr noundef %1)
  %16 = fmul double %15, 1.000000e+05
  store i8 0, ptr %13, align 1, !tbaa !5
  store i8 0, ptr %14, align 1, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %8, i64 56
  %18 = getelementptr inbounds i8, ptr %9, i64 56
  %19 = getelementptr inbounds i8, ptr %10, i64 56
  %20 = getelementptr inbounds i8, ptr %11, i64 56
  %21 = getelementptr inbounds i8, ptr %4, i64 56
  %22 = getelementptr inbounds i8, ptr %5, i64 56
  %23 = getelementptr inbounds i8, ptr %6, i64 56
  %24 = getelementptr inbounds i8, ptr %7, i64 56
  br label %.preheader

.preheader:                                       ; preds = %2, %155
  %indvars.iv237 = phi i64 [ 33, %2 ], [ %indvars.iv.next238, %155 ]
  %.0225 = phi i64 [ 1, %2 ], [ %156, %155 ]
  %.0184224 = phi double [ 0.000000e+00, %2 ], [ %94, %155 ]
  %.0188223 = phi double [ 0.000000e+00, %2 ], [ %151, %155 ]
  %25 = shl nuw nsw i64 %.0225, 1
  %26 = add nuw nsw i64 %25, 5
  br label %27

27:                                               ; preds = %.preheader, %153
  %indvars.iv = phi i64 [ %.0225, %.preheader ], [ %indvars.iv.next, %153 ]
  %.0182222 = phi i64 [ 1, %.preheader ], [ %154, %153 ]
  %.1185221 = phi double [ %.0184224, %.preheader ], [ %94, %153 ]
  %.1189220 = phi double [ %.0188223, %.preheader ], [ %151, %153 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0225, ptr noundef %1)
  br label %28

28:                                               ; preds = %27, %28
  %.0183201 = phi i64 [ 0, %27 ], [ %37, %28 ]
  %29 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %30 = call double @llvm.fmuladd.f64(double %29, double 2.000000e+00, double -1.000000e+00)
  %31 = load ptr, ptr %17, align 8, !tbaa !9
  %32 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %31, i64 %.0183201
  store double %30, ptr %32, align 8, !tbaa !10
  %33 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %34 = call double @llvm.fmuladd.f64(double %33, double 2.000000e+00, double -1.000000e+00)
  %35 = load ptr, ptr %17, align 8, !tbaa !9
  %36 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %35, i64 %.0183201, i32 1
  store double %34, ptr %36, align 8, !tbaa !13
  %37 = add nuw nsw i64 %.0183201, 1
  %exitcond.not = icmp eq i64 %37, %.0225
  br i1 %exitcond.not, label %38, label %28, !llvm.loop !14

38:                                               ; preds = %28
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0182222, ptr noundef %1)
  br label %39

39:                                               ; preds = %38, %39
  %.1202 = phi i64 [ 0, %38 ], [ %48, %39 ]
  %40 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %41 = call double @llvm.fmuladd.f64(double %40, double 2.000000e+00, double -1.000000e+00)
  %42 = load ptr, ptr %18, align 8, !tbaa !9
  %43 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %42, i64 %.1202
  store double %41, ptr %43, align 8, !tbaa !10
  %44 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %45 = call double @llvm.fmuladd.f64(double %44, double 2.000000e+00, double -1.000000e+00)
  %46 = load ptr, ptr %18, align 8, !tbaa !9
  %47 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %46, i64 %.1202, i32 1
  store double %45, ptr %47, align 8, !tbaa !13
  %48 = add nuw nsw i64 %.1202, 1
  %exitcond230.not = icmp eq i64 %48, %.0182222
  br i1 %exitcond230.not, label %49, label %39, !llvm.loop !16

49:                                               ; preds = %39
  %50 = add nuw nsw i64 %.0182222, %.0225
  %51 = add nsw i64 %50, -1
  %52 = shl nsw i64 %51, 1
  %53 = add nuw nsw i64 %52, 5
  %54 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %53, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %54, ptr noundef %1)
  %55 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef %1)
  %56 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %55, double noundef 0.000000e+00)
  br i1 %56, label %57, label %60

57:                                               ; preds = %49
  call void @_ZN11alglib_impl7corrc1dEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0225, ptr noundef nonnull %9, i64 noundef %.0182222, ptr noundef nonnull %10, ptr noundef %1)
  %58 = load i64, ptr %10, align 8, !tbaa !17
  %59 = icmp ne i64 %58, %51
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %13, i1 noundef zeroext %59, ptr noundef nonnull @.str.19, i32 noundef 125822, ptr noundef nonnull @.str.970)
  br label %.lr.ph.preheader

60:                                               ; preds = %49
  call void @_ZN11alglib_impl10corrc1dbufEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0225, ptr noundef nonnull %9, i64 noundef %.0182222, ptr noundef nonnull %10, ptr noundef %1)
  %61 = load i64, ptr %10, align 8, !tbaa !17
  %62 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %51, i64 noundef %54, ptr noundef %1)
  %63 = icmp ne i64 %61, %62
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %13, i1 noundef zeroext %63, ptr noundef nonnull @.str.19, i32 noundef 125827, ptr noundef nonnull @.str.971)
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %57, %60
  call void @_ZL23testcorrunit_refcorrc1dPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0225, ptr noundef nonnull %9, i64 noundef %.0182222, ptr noundef nonnull %11, ptr noundef %1)
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.2205 = phi i64 [ %73, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %.2186204 = phi double [ %72, %.lr.ph ], [ %.1185221, %.lr.ph.preheader ]
  %64 = load ptr, ptr %19, align 8, !tbaa !9
  %65 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %64, i64 %.2205
  %.sroa.07.0.copyload = load double, ptr %65, align 8, !tbaa !22
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %65, i64 8
  %.sroa.28.0.copyload = load double, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !22
  %66 = load ptr, ptr %20, align 8, !tbaa !9
  %67 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %66, i64 %.2205
  %.sroa.05.0.copyload = load double, ptr %67, align 8, !tbaa !22
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %67, i64 8
  %.sroa.26.0.copyload = load double, ptr %.sroa.26.0..sroa_idx, align 8, !tbaa !22
  %68 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %.sroa.07.0.copyload, double %.sroa.28.0.copyload, double %.sroa.05.0.copyload, double %.sroa.26.0.copyload)
  %69 = extractvalue { double, double } %68, 0
  %70 = extractvalue { double, double } %68, 1
  %71 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %69, double %70, ptr noundef %1)
  %72 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.2186204, double noundef %71, ptr noundef %1)
  %73 = add nuw nsw i64 %.2205, 1
  %exitcond231.not = icmp eq i64 %73, %indvars.iv
  br i1 %exitcond231.not, label %._crit_edge, label %.lr.ph, !llvm.loop !23

._crit_edge:                                      ; preds = %.lr.ph
  %74 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %26, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %74, ptr noundef %1)
  %75 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef %1)
  %76 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %75, double noundef 0.000000e+00)
  br i1 %76, label %77, label %80

77:                                               ; preds = %._crit_edge
  call void @_ZN11alglib_impl15corrc1dcircularEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0225, ptr noundef nonnull %9, i64 noundef %.0182222, ptr noundef nonnull %10, ptr noundef %1)
  %78 = load i64, ptr %10, align 8, !tbaa !17
  %79 = icmp ne i64 %78, %.0225
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %13, i1 noundef zeroext %79, ptr noundef nonnull @.str.19, i32 noundef 125839, ptr noundef nonnull @.str.972)
  br label %84

80:                                               ; preds = %._crit_edge
  call void @_ZN11alglib_impl18corrc1dcircularbufEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0225, ptr noundef nonnull %9, i64 noundef %.0182222, ptr noundef nonnull %10, ptr noundef %1)
  %81 = load i64, ptr %10, align 8, !tbaa !17
  %82 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %.0225, i64 noundef %74, ptr noundef %1)
  %83 = icmp ne i64 %81, %82
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %13, i1 noundef zeroext %83, ptr noundef nonnull @.str.19, i32 noundef 125844, ptr noundef nonnull @.str.973)
  br label %84

84:                                               ; preds = %80, %77
  call void @_ZL31testcorrunit_refcorrc1dcircularPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0225, ptr noundef nonnull %9, i64 noundef %.0182222, ptr noundef nonnull %11, ptr noundef %1)
  br label %85

85:                                               ; preds = %84, %85
  %.3208 = phi i64 [ 0, %84 ], [ %95, %85 ]
  %.3187207 = phi double [ %72, %84 ], [ %94, %85 ]
  %86 = load ptr, ptr %19, align 8, !tbaa !9
  %87 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %86, i64 %.3208
  %.sroa.01.0.copyload = load double, ptr %87, align 8, !tbaa !22
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %87, i64 8
  %.sroa.22.0.copyload = load double, ptr %.sroa.22.0..sroa_idx, align 8, !tbaa !22
  %88 = load ptr, ptr %20, align 8, !tbaa !9
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %88, i64 %.3208
  %.sroa.0.0.copyload = load double, ptr %89, align 8, !tbaa !22
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %89, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !22
  %90 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %.sroa.01.0.copyload, double %.sroa.22.0.copyload, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %91 = extractvalue { double, double } %90, 0
  %92 = extractvalue { double, double } %90, 1
  %93 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %91, double %92, ptr noundef %1)
  %94 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.3187207, double noundef %93, ptr noundef %1)
  %95 = add nuw nsw i64 %.3208, 1
  %exitcond232.not = icmp eq i64 %95, %.0225
  br i1 %exitcond232.not, label %96, label %85, !llvm.loop !24

96:                                               ; preds = %85
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0225, ptr noundef %1)
  br label %97

97:                                               ; preds = %96, %97
  %.4209 = phi i64 [ 0, %96 ], [ %102, %97 ]
  %98 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %99 = call double @llvm.fmuladd.f64(double %98, double 2.000000e+00, double -1.000000e+00)
  %100 = load ptr, ptr %21, align 8, !tbaa !9
  %101 = getelementptr inbounds double, ptr %100, i64 %.4209
  store double %99, ptr %101, align 8, !tbaa !22
  %102 = add nuw nsw i64 %.4209, 1
  %exitcond233.not = icmp eq i64 %102, %.0225
  br i1 %exitcond233.not, label %103, label %97, !llvm.loop !25

103:                                              ; preds = %97
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0182222, ptr noundef %1)
  br label %104

104:                                              ; preds = %103, %104
  %.5210 = phi i64 [ 0, %103 ], [ %109, %104 ]
  %105 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %106 = call double @llvm.fmuladd.f64(double %105, double 2.000000e+00, double -1.000000e+00)
  %107 = load ptr, ptr %22, align 8, !tbaa !9
  %108 = getelementptr inbounds double, ptr %107, i64 %.5210
  store double %106, ptr %108, align 8, !tbaa !22
  %109 = add nuw nsw i64 %.5210, 1
  %exitcond234.not = icmp eq i64 %109, %.0182222
  br i1 %exitcond234.not, label %110, label %104, !llvm.loop !26

110:                                              ; preds = %104
  %111 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %53, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %111, ptr noundef %1)
  %112 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef %1)
  %113 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %112, double noundef 0.000000e+00)
  br i1 %113, label %114, label %117

114:                                              ; preds = %110
  call void @_ZN11alglib_impl7corrr1dEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0225, ptr noundef nonnull %5, i64 noundef %.0182222, ptr noundef nonnull %6, ptr noundef %1)
  %115 = load i64, ptr %6, align 8, !tbaa !17
  %116 = icmp ne i64 %115, %51
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %14, i1 noundef zeroext %116, ptr noundef nonnull @.str.19, i32 noundef 125870, ptr noundef nonnull @.str.974)
  br label %.lr.ph215.preheader

117:                                              ; preds = %110
  call void @_ZN11alglib_impl10corrr1dbufEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0225, ptr noundef nonnull %5, i64 noundef %.0182222, ptr noundef nonnull %6, ptr noundef %1)
  %118 = load i64, ptr %6, align 8, !tbaa !17
  %119 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %51, i64 noundef %111, ptr noundef %1)
  %120 = icmp ne i64 %118, %119
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %14, i1 noundef zeroext %120, ptr noundef nonnull @.str.19, i32 noundef 125875, ptr noundef nonnull @.str.975)
  br label %.lr.ph215.preheader

.lr.ph215.preheader:                              ; preds = %114, %117
  call void @_ZL23testcorrunit_refcorrr1dPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0225, ptr noundef nonnull %5, i64 noundef %.0182222, ptr noundef nonnull %7, ptr noundef %1)
  br label %.lr.ph215

.lr.ph215:                                        ; preds = %.lr.ph215.preheader, %.lr.ph215
  %.6213 = phi i64 [ %130, %.lr.ph215 ], [ 0, %.lr.ph215.preheader ]
  %.2190212 = phi double [ %129, %.lr.ph215 ], [ %.1189220, %.lr.ph215.preheader ]
  %121 = load ptr, ptr %23, align 8, !tbaa !9
  %122 = getelementptr inbounds double, ptr %121, i64 %.6213
  %123 = load double, ptr %122, align 8, !tbaa !22
  %124 = load ptr, ptr %24, align 8, !tbaa !9
  %125 = getelementptr inbounds double, ptr %124, i64 %.6213
  %126 = load double, ptr %125, align 8, !tbaa !22
  %127 = fsub double %123, %126
  %128 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %127, ptr noundef %1)
  %129 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.2190212, double noundef %128, ptr noundef %1)
  %130 = add nuw nsw i64 %.6213, 1
  %exitcond235.not = icmp eq i64 %130, %indvars.iv
  br i1 %exitcond235.not, label %._crit_edge216, label %.lr.ph215, !llvm.loop !27

._crit_edge216:                                   ; preds = %.lr.ph215
  %131 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %26, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %131, ptr noundef %1)
  %132 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef %1)
  %133 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %132, double noundef 0.000000e+00)
  br i1 %133, label %134, label %137

134:                                              ; preds = %._crit_edge216
  call void @_ZN11alglib_impl15corrr1dcircularEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0225, ptr noundef nonnull %5, i64 noundef %.0182222, ptr noundef nonnull %6, ptr noundef %1)
  %135 = load i64, ptr %6, align 8, !tbaa !17
  %136 = icmp ne i64 %135, %.0225
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %14, i1 noundef zeroext %136, ptr noundef nonnull @.str.19, i32 noundef 125887, ptr noundef nonnull @.str.976)
  br label %141

137:                                              ; preds = %._crit_edge216
  call void @_ZN11alglib_impl18corrr1dcircularbufEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0225, ptr noundef nonnull %5, i64 noundef %.0182222, ptr noundef nonnull %6, ptr noundef %1)
  %138 = load i64, ptr %6, align 8, !tbaa !17
  %139 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %.0225, i64 noundef %131, ptr noundef %1)
  %140 = icmp ne i64 %138, %139
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %14, i1 noundef zeroext %140, ptr noundef nonnull @.str.19, i32 noundef 125892, ptr noundef nonnull @.str.977)
  br label %141

141:                                              ; preds = %137, %134
  call void @_ZL31testcorrunit_refcorrr1dcircularPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0225, ptr noundef nonnull %5, i64 noundef %.0182222, ptr noundef nonnull %7, ptr noundef %1)
  br label %142

142:                                              ; preds = %141, %142
  %.7219 = phi i64 [ 0, %141 ], [ %152, %142 ]
  %.3191218 = phi double [ %129, %141 ], [ %151, %142 ]
  %143 = load ptr, ptr %23, align 8, !tbaa !9
  %144 = getelementptr inbounds double, ptr %143, i64 %.7219
  %145 = load double, ptr %144, align 8, !tbaa !22
  %146 = load ptr, ptr %24, align 8, !tbaa !9
  %147 = getelementptr inbounds double, ptr %146, i64 %.7219
  %148 = load double, ptr %147, align 8, !tbaa !22
  %149 = fsub double %145, %148
  %150 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %149, ptr noundef %1)
  %151 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.3191218, double noundef %150, ptr noundef %1)
  %152 = add nuw nsw i64 %.7219, 1
  %exitcond236.not = icmp eq i64 %152, %.0225
  br i1 %exitcond236.not, label %153, label %142, !llvm.loop !28

153:                                              ; preds = %142
  %154 = add nuw nsw i64 %.0182222, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond239.not = icmp eq i64 %indvars.iv.next, %indvars.iv237
  br i1 %exitcond239.not, label %155, label %27, !llvm.loop !29

155:                                              ; preds = %153
  %156 = add nuw nsw i64 %.0225, 1
  %indvars.iv.next238 = add nuw nsw i64 %indvars.iv237, 1
  %exitcond240.not = icmp eq i64 %indvars.iv.next238, 65
  br i1 %exitcond240.not, label %157, label %.preheader, !llvm.loop !30

157:                                              ; preds = %155
  %158 = fmul double %16, 5.000000e-16
  %159 = load i8, ptr %13, align 1, !tbaa !5, !range !31, !noundef !32
  %160 = trunc nuw i8 %159 to i1
  br i1 %160, label %164, label %161

161:                                              ; preds = %157
  %162 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %94, double noundef %158)
  %163 = zext i1 %162 to i8
  br label %164

164:                                              ; preds = %161, %157
  %165 = phi i8 [ 1, %157 ], [ %163, %161 ]
  store i8 %165, ptr %13, align 1, !tbaa !5
  %166 = load i8, ptr %14, align 1, !tbaa !5, !range !31, !noundef !32
  %167 = trunc nuw i8 %166 to i1
  br i1 %167, label %170, label %168

168:                                              ; preds = %164
  %169 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %151, double noundef %158)
  %.pre = load i8, ptr %13, align 1, !tbaa !5, !range !31
  br label %170

170:                                              ; preds = %168, %164
  %171 = phi i8 [ %165, %164 ], [ %.pre, %168 ]
  %172 = phi i1 [ true, %164 ], [ %169, %168 ]
  %173 = zext i1 %172 to i8
  store i8 %173, ptr %14, align 1, !tbaa !5
  %174 = trunc nuw i8 %171 to i1
  %175 = or i1 %172, %174
  br i1 %0, label %188, label %.sink.split

.sink.split:                                      ; preds = %170
  %176 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.978)
  %177 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.735)
  %.str.2..str.3 = select i1 %175, ptr @.str.2, ptr @.str.3
  %178 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2..str.3)
  %179 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.979)
  %180 = load i8, ptr %13, align 1, !tbaa !5, !range !31, !noundef !32
  %181 = trunc nuw i8 %180 to i1
  %.str.3.sink244 = select i1 %181, ptr @.str.2, ptr @.str.3
  %182 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink244)
  %183 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.980)
  %184 = load i8, ptr %14, align 1, !tbaa !5, !range !31, !noundef !32
  %185 = trunc nuw i8 %184 to i1
  %.str.3.sink245 = select i1 %185, ptr @.str.2, ptr @.str.3
  %186 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink245)
  %.str.15.sink = select i1 %175, ptr @.str.15, ptr @.str.16
  %187 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.15.sink)
  br label %188

188:                                              ; preds = %.sink.split, %170
  %189 = xor i1 %175, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  ret i1 %189
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23testcorrunit_refcorrc1dPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL31testcorrunit_refcorrc1dcircularPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23testcorrunit_refcorrr1dPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL31testcorrunit_refcorrr1dcircularPKN11alglib_impl9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 0}
!11 = !{!"_ZTSN11alglib_impl10ae_complexE", !12, i64 0, !12, i64 8}
!12 = !{!"double", !7, i64 0}
!13 = !{!11, !12, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTSN11alglib_impl9ae_vectorE", !19, i64 0, !19, i64 8, !6, i64 16, !20, i64 24, !7, i64 56}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !21, i64 0, !21, i64 8, !21, i64 16, !21, i64 24}
!21 = !{!"any pointer", !7, i64 0}
!22 = !{!12, !12, i64 0}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}
!30 = distinct !{!30, !15}
!31 = !{i8 0, i8 2}
!32 = !{}


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