; LLVM IR from venumb/ZSPACE :: cpp/depends/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::ae_complex" = type { double, double }

@.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.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.579 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.605 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.606 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.607 = 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 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_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 noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double 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 { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double, double, double, double) #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 i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca %"struct.alglib_impl::ae_complex", align 8
  %26 = alloca %"struct.alglib_impl::ae_complex", align 8
  %27 = alloca %"struct.alglib_impl::ae_complex", align 8
  %28 = alloca %"struct.alglib_impl::ae_complex", align 8
  %29 = alloca %"struct.alglib_impl::ae_complex", align 8
  %30 = alloca %"struct.alglib_impl::ae_complex", align 8
  %31 = zext i1 %0 to i8
  store i8 %31, 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 1, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 1, 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
  %32 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %32, 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)
  %33 = 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 %33, i1 noundef zeroext true)
  %34 = 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 %34, i1 noundef zeroext true)
  %35 = 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 %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 %12, 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 %13, i64 noundef 0, i64 noundef 4, 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 %14, i64 noundef 0, i64 noundef 4, 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 %15, 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 %16, i64 noundef 0, i64 noundef 4, ptr noundef %40, i1 noundef zeroext true)
  store i64 32, ptr %17, align 8, !tbaa !11
  %41 = load i64, ptr %17, align 8, !tbaa !11
  %42 = sitofp i64 %41 to double
  %43 = load ptr, ptr %4, align 8, !tbaa !9
  %44 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef %42, double noundef 1.500000e+00, ptr noundef %43)
  %45 = fmul double 1.000000e+05, %44
  %46 = fmul double %45, 5.000000e-16
  store double %46, ptr %20, align 8, !tbaa !13
  store i8 0, ptr %21, align 1, !tbaa !5
  store i8 0, ptr %22, align 1, !tbaa !5
  store i8 0, ptr %23, 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 %47

47:                                               ; preds = %319, %2
  %48 = load i64, ptr %6, align 8, !tbaa !11
  %49 = load i64, ptr %17, align 8, !tbaa !11
  %50 = icmp sle i64 %48, %49
  br i1 %50, label %51, label %322

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

52:                                               ; preds = %315, %51
  %53 = load i64, ptr %7, align 8, !tbaa !11
  %54 = load i64, ptr %17, align 8, !tbaa !11
  %55 = icmp sle i64 %53, %54
  br i1 %55, label %56, label %318

56:                                               ; preds = %52
  %57 = load i64, ptr %6, align 8, !tbaa !11
  %58 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %57, ptr noundef %58)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %59

59:                                               ; preds = %81, %56
  %60 = load i64, ptr %8, align 8, !tbaa !11
  %61 = load i64, ptr %6, align 8, !tbaa !11
  %62 = sub nsw i64 %61, 1
  %63 = icmp sle i64 %60, %62
  br i1 %63, label %64, label %84

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

81:                                               ; preds = %64
  %82 = load i64, ptr %8, align 8, !tbaa !11
  %83 = add nsw i64 %82, 1
  store i64 %83, ptr %8, align 8, !tbaa !11
  br label %59, !llvm.loop !19

84:                                               ; preds = %59
  %85 = load i64, ptr %7, align 8, !tbaa !11
  %86 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %85, ptr noundef %86)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %87

87:                                               ; preds = %109, %84
  %88 = load i64, ptr %8, align 8, !tbaa !11
  %89 = load i64, ptr %7, align 8, !tbaa !11
  %90 = sub nsw i64 %89, 1
  %91 = icmp sle i64 %88, %90
  br i1 %91, label %92, label %112

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

109:                                              ; preds = %92
  %110 = load i64, ptr %8, align 8, !tbaa !11
  %111 = add nsw i64 %110, 1
  store i64 %111, ptr %8, align 8, !tbaa !11
  br label %87, !llvm.loop !21

112:                                              ; preds = %87
  %113 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %15, i64 noundef 1, ptr noundef %113)
  %114 = load i64, ptr %6, align 8, !tbaa !11
  %115 = load i64, ptr %7, align 8, !tbaa !11
  %116 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl7corrc1dEPNS_9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef %13, i64 noundef %114, ptr noundef %14, i64 noundef %115, ptr noundef %15, ptr noundef %116)
  %117 = load i64, ptr %6, align 8, !tbaa !11
  %118 = load i64, ptr %7, align 8, !tbaa !11
  %119 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testcorrunit_refcorrc1dPN11alglib_impl9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef %13, i64 noundef %117, ptr noundef %14, i64 noundef %118, ptr noundef %16, ptr noundef %119)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %120

120:                                              ; preds = %158, %112
  %121 = load i64, ptr %8, align 8, !tbaa !11
  %122 = load i64, ptr %6, align 8, !tbaa !11
  %123 = load i64, ptr %7, align 8, !tbaa !11
  %124 = add nsw i64 %122, %123
  %125 = sub nsw i64 %124, 2
  %126 = icmp sle i64 %121, %125
  br i1 %126, label %127, label %161

127:                                              ; preds = %120
  %128 = load double, ptr %18, align 8, !tbaa !13
  %129 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %130 = load ptr, ptr %129, align 8, !tbaa !15
  %131 = load i64, ptr %8, align 8, !tbaa !11
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %130, i64 %131
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %132, i64 16, i1 false), !tbaa.struct !22
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %134 = load ptr, ptr %133, align 8, !tbaa !15
  %135 = load i64, ptr %8, align 8, !tbaa !11
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %134, i64 %135
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %136, i64 16, i1 false), !tbaa.struct !22
  %137 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %138 = load double, ptr %137, align 8
  %139 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %140 = load double, ptr %139, align 8
  %141 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %142 = load double, ptr %141, align 8
  %143 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %144 = load double, ptr %143, align 8
  %145 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %138, double %140, double %142, double %144)
  %146 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %147 = extractvalue { double, double } %145, 0
  store double %147, ptr %146, align 8
  %148 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %149 = extractvalue { double, double } %145, 1
  store double %149, ptr %148, align 8
  %150 = load ptr, ptr %4, align 8, !tbaa !9
  %151 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %152 = load double, ptr %151, align 8
  %153 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %154 = load double, ptr %153, align 8
  %155 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %152, double %154, ptr noundef %150)
  %156 = load ptr, ptr %4, align 8, !tbaa !9
  %157 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %128, double noundef %155, ptr noundef %156)
  store double %157, ptr %18, align 8, !tbaa !13
  br label %158

158:                                              ; preds = %127
  %159 = load i64, ptr %8, align 8, !tbaa !11
  %160 = add nsw i64 %159, 1
  store i64 %160, ptr %8, align 8, !tbaa !11
  br label %120, !llvm.loop !23

161:                                              ; preds = %120
  %162 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %15, i64 noundef 1, ptr noundef %162)
  %163 = load i64, ptr %6, align 8, !tbaa !11
  %164 = load i64, ptr %7, align 8, !tbaa !11
  %165 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl15corrc1dcircularEPNS_9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef %13, i64 noundef %163, ptr noundef %14, i64 noundef %164, ptr noundef %15, ptr noundef %165)
  %166 = load i64, ptr %6, align 8, !tbaa !11
  %167 = load i64, ptr %7, align 8, !tbaa !11
  %168 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testcorrunit_refcorrc1dcircularPN11alglib_impl9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef %13, i64 noundef %166, ptr noundef %14, i64 noundef %167, ptr noundef %16, ptr noundef %168)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %169

169:                                              ; preds = %205, %161
  %170 = load i64, ptr %8, align 8, !tbaa !11
  %171 = load i64, ptr %6, align 8, !tbaa !11
  %172 = sub nsw i64 %171, 1
  %173 = icmp sle i64 %170, %172
  br i1 %173, label %174, label %208

174:                                              ; preds = %169
  %175 = load double, ptr %18, align 8, !tbaa !13
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %177 = load ptr, ptr %176, align 8, !tbaa !15
  %178 = load i64, ptr %8, align 8, !tbaa !11
  %179 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %177, i64 %178
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %179, i64 16, i1 false), !tbaa.struct !22
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %181 = load ptr, ptr %180, align 8, !tbaa !15
  %182 = load i64, ptr %8, align 8, !tbaa !11
  %183 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %181, i64 %182
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %183, i64 16, i1 false), !tbaa.struct !22
  %184 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %185 = load double, ptr %184, align 8
  %186 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %187 = load double, ptr %186, align 8
  %188 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %189 = load double, ptr %188, align 8
  %190 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %191 = load double, ptr %190, align 8
  %192 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %185, double %187, double %189, double %191)
  %193 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %194 = extractvalue { double, double } %192, 0
  store double %194, ptr %193, align 8
  %195 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %196 = extractvalue { double, double } %192, 1
  store double %196, ptr %195, align 8
  %197 = load ptr, ptr %4, align 8, !tbaa !9
  %198 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %199 = load double, ptr %198, align 8
  %200 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %201 = load double, ptr %200, align 8
  %202 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %199, double %201, ptr noundef %197)
  %203 = load ptr, ptr %4, align 8, !tbaa !9
  %204 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %175, double noundef %202, ptr noundef %203)
  store double %204, ptr %18, align 8, !tbaa !13
  br label %205

205:                                              ; preds = %174
  %206 = load i64, ptr %8, align 8, !tbaa !11
  %207 = add nsw i64 %206, 1
  store i64 %207, ptr %8, align 8, !tbaa !11
  br label %169, !llvm.loop !24

208:                                              ; preds = %169
  %209 = load i64, ptr %6, align 8, !tbaa !11
  %210 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %209, ptr noundef %210)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %211

211:                                              ; preds = %224, %208
  %212 = load i64, ptr %8, align 8, !tbaa !11
  %213 = load i64, ptr %6, align 8, !tbaa !11
  %214 = sub nsw i64 %213, 1
  %215 = icmp sle i64 %212, %214
  br i1 %215, label %216, label %227

216:                                              ; preds = %211
  %217 = load ptr, ptr %4, align 8, !tbaa !9
  %218 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %217)
  %219 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %218, double -1.000000e+00)
  %220 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %221 = load ptr, ptr %220, align 8, !tbaa !15
  %222 = load i64, ptr %8, align 8, !tbaa !11
  %223 = getelementptr inbounds double, ptr %221, i64 %222
  store double %219, ptr %223, align 8, !tbaa !13
  br label %224

224:                                              ; preds = %216
  %225 = load i64, ptr %8, align 8, !tbaa !11
  %226 = add nsw i64 %225, 1
  store i64 %226, ptr %8, align 8, !tbaa !11
  br label %211, !llvm.loop !25

227:                                              ; preds = %211
  %228 = load i64, ptr %7, align 8, !tbaa !11
  %229 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %228, ptr noundef %229)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %230

230:                                              ; preds = %243, %227
  %231 = load i64, ptr %8, align 8, !tbaa !11
  %232 = load i64, ptr %7, align 8, !tbaa !11
  %233 = sub nsw i64 %232, 1
  %234 = icmp sle i64 %231, %233
  br i1 %234, label %235, label %246

235:                                              ; preds = %230
  %236 = load ptr, ptr %4, align 8, !tbaa !9
  %237 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %236)
  %238 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %237, double -1.000000e+00)
  %239 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %240 = load ptr, ptr %239, align 8, !tbaa !15
  %241 = load i64, ptr %8, align 8, !tbaa !11
  %242 = getelementptr inbounds double, ptr %240, i64 %241
  store double %238, ptr %242, align 8, !tbaa !13
  br label %243

243:                                              ; preds = %235
  %244 = load i64, ptr %8, align 8, !tbaa !11
  %245 = add nsw i64 %244, 1
  store i64 %245, ptr %8, align 8, !tbaa !11
  br label %230, !llvm.loop !26

246:                                              ; preds = %230
  %247 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef 1, ptr noundef %247)
  %248 = load i64, ptr %6, align 8, !tbaa !11
  %249 = load i64, ptr %7, align 8, !tbaa !11
  %250 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl7corrr1dEPNS_9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef %9, i64 noundef %248, ptr noundef %10, i64 noundef %249, ptr noundef %11, ptr noundef %250)
  %251 = load i64, ptr %6, align 8, !tbaa !11
  %252 = load i64, ptr %7, align 8, !tbaa !11
  %253 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testcorrunit_refcorrr1dPN11alglib_impl9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef %9, i64 noundef %251, ptr noundef %10, i64 noundef %252, ptr noundef %12, ptr noundef %253)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %254

254:                                              ; preds = %278, %246
  %255 = load i64, ptr %8, align 8, !tbaa !11
  %256 = load i64, ptr %6, align 8, !tbaa !11
  %257 = load i64, ptr %7, align 8, !tbaa !11
  %258 = add nsw i64 %256, %257
  %259 = sub nsw i64 %258, 2
  %260 = icmp sle i64 %255, %259
  br i1 %260, label %261, label %281

261:                                              ; preds = %254
  %262 = load double, ptr %19, align 8, !tbaa !13
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %264 = load ptr, ptr %263, align 8, !tbaa !15
  %265 = load i64, ptr %8, align 8, !tbaa !11
  %266 = getelementptr inbounds double, ptr %264, i64 %265
  %267 = load double, ptr %266, align 8, !tbaa !13
  %268 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %269 = load ptr, ptr %268, align 8, !tbaa !15
  %270 = load i64, ptr %8, align 8, !tbaa !11
  %271 = getelementptr inbounds double, ptr %269, i64 %270
  %272 = load double, ptr %271, align 8, !tbaa !13
  %273 = fsub double %267, %272
  %274 = load ptr, ptr %4, align 8, !tbaa !9
  %275 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %273, ptr noundef %274)
  %276 = load ptr, ptr %4, align 8, !tbaa !9
  %277 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %262, double noundef %275, ptr noundef %276)
  store double %277, ptr %19, align 8, !tbaa !13
  br label %278

278:                                              ; preds = %261
  %279 = load i64, ptr %8, align 8, !tbaa !11
  %280 = add nsw i64 %279, 1
  store i64 %280, ptr %8, align 8, !tbaa !11
  br label %254, !llvm.loop !27

281:                                              ; preds = %254
  %282 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef 1, ptr noundef %282)
  %283 = load i64, ptr %6, align 8, !tbaa !11
  %284 = load i64, ptr %7, align 8, !tbaa !11
  %285 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl15corrr1dcircularEPNS_9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef %9, i64 noundef %283, ptr noundef %10, i64 noundef %284, ptr noundef %11, ptr noundef %285)
  %286 = load i64, ptr %6, align 8, !tbaa !11
  %287 = load i64, ptr %7, align 8, !tbaa !11
  %288 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testcorrunit_refcorrr1dcircularPN11alglib_impl9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef %9, i64 noundef %286, ptr noundef %10, i64 noundef %287, ptr noundef %12, ptr noundef %288)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %289

289:                                              ; preds = %311, %281
  %290 = load i64, ptr %8, align 8, !tbaa !11
  %291 = load i64, ptr %6, align 8, !tbaa !11
  %292 = sub nsw i64 %291, 1
  %293 = icmp sle i64 %290, %292
  br i1 %293, label %294, label %314

294:                                              ; preds = %289
  %295 = load double, ptr %19, align 8, !tbaa !13
  %296 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %297 = load ptr, ptr %296, align 8, !tbaa !15
  %298 = load i64, ptr %8, align 8, !tbaa !11
  %299 = getelementptr inbounds double, ptr %297, i64 %298
  %300 = load double, ptr %299, align 8, !tbaa !13
  %301 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %302 = load ptr, ptr %301, align 8, !tbaa !15
  %303 = load i64, ptr %8, align 8, !tbaa !11
  %304 = getelementptr inbounds double, ptr %302, i64 %303
  %305 = load double, ptr %304, align 8, !tbaa !13
  %306 = fsub double %300, %305
  %307 = load ptr, ptr %4, align 8, !tbaa !9
  %308 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %306, ptr noundef %307)
  %309 = load ptr, ptr %4, align 8, !tbaa !9
  %310 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %295, double noundef %308, ptr noundef %309)
  store double %310, ptr %19, align 8, !tbaa !13
  br label %311

311:                                              ; preds = %294
  %312 = load i64, ptr %8, align 8, !tbaa !11
  %313 = add nsw i64 %312, 1
  store i64 %313, ptr %8, align 8, !tbaa !11
  br label %289, !llvm.loop !28

314:                                              ; preds = %289
  br label %315

315:                                              ; preds = %314
  %316 = load i64, ptr %7, align 8, !tbaa !11
  %317 = add nsw i64 %316, 1
  store i64 %317, ptr %7, align 8, !tbaa !11
  br label %52, !llvm.loop !29

318:                                              ; preds = %52
  br label %319

319:                                              ; preds = %318
  %320 = load i64, ptr %6, align 8, !tbaa !11
  %321 = add nsw i64 %320, 1
  store i64 %321, ptr %6, align 8, !tbaa !11
  br label %47, !llvm.loop !30

322:                                              ; preds = %47
  %323 = load i8, ptr %21, align 1, !tbaa !5, !range !31, !noundef !32
  %324 = trunc i8 %323 to i1
  br i1 %324, label %329, label %325

325:                                              ; preds = %322
  %326 = load double, ptr %18, align 8, !tbaa !13
  %327 = load double, ptr %20, align 8, !tbaa !13
  %328 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %326, double noundef %327)
  br label %329

329:                                              ; preds = %325, %322
  %330 = phi i1 [ true, %322 ], [ %328, %325 ]
  %331 = zext i1 %330 to i8
  store i8 %331, ptr %21, align 1, !tbaa !5
  %332 = load i8, ptr %22, align 1, !tbaa !5, !range !31, !noundef !32
  %333 = trunc i8 %332 to i1
  br i1 %333, label %338, label %334

334:                                              ; preds = %329
  %335 = load double, ptr %19, align 8, !tbaa !13
  %336 = load double, ptr %20, align 8, !tbaa !13
  %337 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %335, double noundef %336)
  br label %338

338:                                              ; preds = %334, %329
  %339 = phi i1 [ true, %329 ], [ %337, %334 ]
  %340 = zext i1 %339 to i8
  store i8 %340, ptr %22, align 1, !tbaa !5
  %341 = load i8, ptr %21, align 1, !tbaa !5, !range !31, !noundef !32
  %342 = trunc i8 %341 to i1
  br i1 %342, label %346, label %343

343:                                              ; preds = %338
  %344 = load i8, ptr %22, align 1, !tbaa !5, !range !31, !noundef !32
  %345 = trunc i8 %344 to i1
  br label %346

346:                                              ; preds = %343, %338
  %347 = phi i1 [ true, %338 ], [ %345, %343 ]
  %348 = zext i1 %347 to i8
  store i8 %348, ptr %23, align 1, !tbaa !5
  %349 = load i8, ptr %3, align 1, !tbaa !5, !range !31, !noundef !32
  %350 = trunc i8 %349 to i1
  br i1 %350, label %384, label %351

351:                                              ; preds = %346
  %352 = call i32 (ptr, ...) @printf(ptr noundef @.str.605)
  %353 = call i32 (ptr, ...) @printf(ptr noundef @.str.579)
  %354 = load i8, ptr %23, align 1, !tbaa !5, !range !31, !noundef !32
  %355 = trunc i8 %354 to i1
  br i1 %355, label %356, label %358

356:                                              ; preds = %351
  %357 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %360

358:                                              ; preds = %351
  %359 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %360

360:                                              ; preds = %358, %356
  %361 = call i32 (ptr, ...) @printf(ptr noundef @.str.606)
  %362 = load i8, ptr %21, align 1, !tbaa !5, !range !31, !noundef !32
  %363 = trunc i8 %362 to i1
  br i1 %363, label %364, label %366

364:                                              ; preds = %360
  %365 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %368

366:                                              ; preds = %360
  %367 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %368

368:                                              ; preds = %366, %364
  %369 = call i32 (ptr, ...) @printf(ptr noundef @.str.607)
  %370 = load i8, ptr %22, align 1, !tbaa !5, !range !31, !noundef !32
  %371 = trunc i8 %370 to i1
  br i1 %371, label %372, label %374

372:                                              ; preds = %368
  %373 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %376

374:                                              ; preds = %368
  %375 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %376

376:                                              ; preds = %374, %372
  %377 = load i8, ptr %23, align 1, !tbaa !5, !range !31, !noundef !32
  %378 = trunc i8 %377 to i1
  br i1 %378, label %379, label %381

379:                                              ; preds = %376
  %380 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %383

381:                                              ; preds = %376
  %382 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %383

383:                                              ; preds = %381, %379
  br label %384

384:                                              ; preds = %383, %346
  %385 = load i8, ptr %23, align 1, !tbaa !5, !range !31, !noundef !32
  %386 = trunc i8 %385 to i1
  %387 = xor i1 %386, true
  %388 = zext i1 %387 to i8
  store i8 %388, ptr %24, align 1, !tbaa !5
  %389 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %389)
  %390 = load i8, ptr %24, align 1, !tbaa !5, !range !31, !noundef !32
  %391 = trunc i8 %390 to i1
  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 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 1, 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 %391
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL31testcorrunit_refcorrr1dcircularPN11alglib_impl9ae_vectorElS1_lS1_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 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 = !{!"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 = !{i64 0, i64 8, !13, i64 8, i64 8, !13}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}
!30 = distinct !{!30, !20}
!31 = !{i8 0, i8 2}
!32 = !{}


; 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::ae_complex" = type { double, double }

@.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.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.579 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.605 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.606 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.607 = 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

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_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_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 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 noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #1

; 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
  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 @_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 @_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)
  %12 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef 3.200000e+01, double noundef 1.500000e+00, ptr noundef %1)
  %13 = fmul double %12, 1.000000e+05
  %14 = getelementptr inbounds i8, ptr %8, i64 56
  %15 = getelementptr inbounds i8, ptr %9, i64 56
  %16 = getelementptr inbounds i8, ptr %10, i64 56
  %17 = getelementptr inbounds i8, ptr %11, i64 56
  %18 = getelementptr inbounds i8, ptr %4, i64 56
  %19 = getelementptr inbounds i8, ptr %5, i64 56
  %20 = getelementptr inbounds i8, ptr %6, i64 56
  %21 = getelementptr inbounds i8, ptr %7, i64 56
  br label %.preheader

.preheader:                                       ; preds = %2, %102
  %indvars.iv191 = phi i64 [ 33, %2 ], [ %indvars.iv.next192, %102 ]
  %.0179 = phi i64 [ 1, %2 ], [ %103, %102 ]
  %.0138178 = phi double [ 0.000000e+00, %2 ], [ %63, %102 ]
  %.0142177 = phi double [ 0.000000e+00, %2 ], [ %98, %102 ]
  br label %22

22:                                               ; preds = %.preheader, %100
  %indvars.iv = phi i64 [ %.0179, %.preheader ], [ %indvars.iv.next, %100 ]
  %.0136176 = phi i64 [ 1, %.preheader ], [ %101, %100 ]
  %.1139175 = phi double [ %.0138178, %.preheader ], [ %63, %100 ]
  %.1143174 = phi double [ %.0142177, %.preheader ], [ %98, %100 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0179, ptr noundef %1)
  br label %23

23:                                               ; preds = %22, %23
  %.0137155 = phi i64 [ 0, %22 ], [ %32, %23 ]
  %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)
  %26 = load ptr, ptr %14, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %26, i64 %.0137155
  store double %25, ptr %27, align 8, !tbaa !8
  %28 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %29 = call double @llvm.fmuladd.f64(double %28, double 2.000000e+00, double -1.000000e+00)
  %30 = load ptr, ptr %14, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %30, i64 %.0137155, i32 1
  store double %29, ptr %31, align 8, !tbaa !11
  %32 = add nuw nsw i64 %.0137155, 1
  %exitcond.not = icmp eq i64 %32, %.0179
  br i1 %exitcond.not, label %33, label %23, !llvm.loop !12

33:                                               ; preds = %23
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0136176, ptr noundef %1)
  br label %34

34:                                               ; preds = %33, %34
  %.1156 = phi i64 [ 0, %33 ], [ %43, %34 ]
  %35 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %36 = call double @llvm.fmuladd.f64(double %35, double 2.000000e+00, double -1.000000e+00)
  %37 = load ptr, ptr %15, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %37, i64 %.1156
  store double %36, ptr %38, align 8, !tbaa !8
  %39 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %40 = call double @llvm.fmuladd.f64(double %39, double 2.000000e+00, double -1.000000e+00)
  %41 = load ptr, ptr %15, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %41, i64 %.1156, i32 1
  store double %40, ptr %42, align 8, !tbaa !11
  %43 = add nuw nsw i64 %.1156, 1
  %exitcond184.not = icmp eq i64 %43, %.0136176
  br i1 %exitcond184.not, label %.lr.ph.preheader, label %34, !llvm.loop !14

.lr.ph.preheader:                                 ; preds = %34
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef 1, ptr noundef %1)
  call void @_ZN11alglib_impl7corrc1dEPNS_9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0179, ptr noundef nonnull %9, i64 noundef %.0136176, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZL23testcorrunit_refcorrc1dPN11alglib_impl9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0179, ptr noundef nonnull %9, i64 noundef %.0136176, ptr noundef nonnull %11, ptr noundef %1)
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.2159 = phi i64 [ %53, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %.2140158 = phi double [ %52, %.lr.ph ], [ %.1139175, %.lr.ph.preheader ]
  %44 = load ptr, ptr %16, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %44, i64 %.2159
  %.sroa.07.0.copyload = load double, ptr %45, align 8, !tbaa !15
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %45, i64 8
  %.sroa.28.0.copyload = load double, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !15
  %46 = load ptr, ptr %17, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %46, i64 %.2159
  %.sroa.05.0.copyload = load double, ptr %47, align 8, !tbaa !15
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %47, i64 8
  %.sroa.26.0.copyload = load double, ptr %.sroa.26.0..sroa_idx, align 8, !tbaa !15
  %48 = 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)
  %49 = extractvalue { double, double } %48, 0
  %50 = extractvalue { double, double } %48, 1
  %51 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %49, double %50, ptr noundef %1)
  %52 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.2140158, double noundef %51, ptr noundef %1)
  %53 = add nuw nsw i64 %.2159, 1
  %exitcond185.not = icmp eq i64 %53, %indvars.iv
  br i1 %exitcond185.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef 1, ptr noundef %1)
  call void @_ZN11alglib_impl15corrc1dcircularEPNS_9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0179, ptr noundef nonnull %9, i64 noundef %.0136176, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZL31testcorrunit_refcorrc1dcircularPN11alglib_impl9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0179, ptr noundef nonnull %9, i64 noundef %.0136176, ptr noundef nonnull %11, ptr noundef %1)
  br label %54

54:                                               ; preds = %._crit_edge, %54
  %.3162 = phi i64 [ 0, %._crit_edge ], [ %64, %54 ]
  %.3141161 = phi double [ %52, %._crit_edge ], [ %63, %54 ]
  %55 = load ptr, ptr %16, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %55, i64 %.3162
  %.sroa.01.0.copyload = load double, ptr %56, align 8, !tbaa !15
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %56, i64 8
  %.sroa.22.0.copyload = load double, ptr %.sroa.22.0..sroa_idx, align 8, !tbaa !15
  %57 = load ptr, ptr %17, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %57, i64 %.3162
  %.sroa.0.0.copyload = load double, ptr %58, align 8, !tbaa !15
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %58, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !15
  %59 = 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)
  %60 = extractvalue { double, double } %59, 0
  %61 = extractvalue { double, double } %59, 1
  %62 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %60, double %61, ptr noundef %1)
  %63 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.3141161, double noundef %62, ptr noundef %1)
  %64 = add nuw nsw i64 %.3162, 1
  %exitcond186.not = icmp eq i64 %64, %.0179
  br i1 %exitcond186.not, label %65, label %54, !llvm.loop !17

65:                                               ; preds = %54
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0179, ptr noundef %1)
  br label %66

66:                                               ; preds = %65, %66
  %.4163 = phi i64 [ 0, %65 ], [ %71, %66 ]
  %67 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %68 = call double @llvm.fmuladd.f64(double %67, double 2.000000e+00, double -1.000000e+00)
  %69 = load ptr, ptr %18, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i64 %.4163
  store double %68, ptr %70, align 8, !tbaa !15
  %71 = add nuw nsw i64 %.4163, 1
  %exitcond187.not = icmp eq i64 %71, %.0179
  br i1 %exitcond187.not, label %72, label %66, !llvm.loop !18

72:                                               ; preds = %66
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0136176, ptr noundef %1)
  br label %73

73:                                               ; preds = %72, %73
  %.5164 = phi i64 [ 0, %72 ], [ %78, %73 ]
  %74 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %75 = call double @llvm.fmuladd.f64(double %74, double 2.000000e+00, double -1.000000e+00)
  %76 = load ptr, ptr %19, align 8, !tbaa !5
  %77 = getelementptr inbounds double, ptr %76, i64 %.5164
  store double %75, ptr %77, align 8, !tbaa !15
  %78 = add nuw nsw i64 %.5164, 1
  %exitcond188.not = icmp eq i64 %78, %.0136176
  br i1 %exitcond188.not, label %.lr.ph169.preheader, label %73, !llvm.loop !19

.lr.ph169.preheader:                              ; preds = %73
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 1, ptr noundef %1)
  call void @_ZN11alglib_impl7corrr1dEPNS_9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0179, ptr noundef nonnull %5, i64 noundef %.0136176, ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZL23testcorrunit_refcorrr1dPN11alglib_impl9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0179, ptr noundef nonnull %5, i64 noundef %.0136176, ptr noundef nonnull %7, ptr noundef %1)
  br label %.lr.ph169

.lr.ph169:                                        ; preds = %.lr.ph169.preheader, %.lr.ph169
  %.6167 = phi i64 [ %88, %.lr.ph169 ], [ 0, %.lr.ph169.preheader ]
  %.2144166 = phi double [ %87, %.lr.ph169 ], [ %.1143174, %.lr.ph169.preheader ]
  %79 = load ptr, ptr %20, align 8, !tbaa !5
  %80 = getelementptr inbounds double, ptr %79, i64 %.6167
  %81 = load double, ptr %80, align 8, !tbaa !15
  %82 = load ptr, ptr %21, align 8, !tbaa !5
  %83 = getelementptr inbounds double, ptr %82, i64 %.6167
  %84 = load double, ptr %83, align 8, !tbaa !15
  %85 = fsub double %81, %84
  %86 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %85, ptr noundef %1)
  %87 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.2144166, double noundef %86, ptr noundef %1)
  %88 = add nuw nsw i64 %.6167, 1
  %exitcond189.not = icmp eq i64 %88, %indvars.iv
  br i1 %exitcond189.not, label %._crit_edge170, label %.lr.ph169, !llvm.loop !20

._crit_edge170:                                   ; preds = %.lr.ph169
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 1, ptr noundef %1)
  call void @_ZN11alglib_impl15corrr1dcircularEPNS_9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0179, ptr noundef nonnull %5, i64 noundef %.0136176, ptr noundef nonnull %6, ptr noundef %1)
  call void @_ZL31testcorrunit_refcorrr1dcircularPN11alglib_impl9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0179, ptr noundef nonnull %5, i64 noundef %.0136176, ptr noundef nonnull %7, ptr noundef %1)
  br label %89

89:                                               ; preds = %._crit_edge170, %89
  %.7173 = phi i64 [ 0, %._crit_edge170 ], [ %99, %89 ]
  %.3145172 = phi double [ %87, %._crit_edge170 ], [ %98, %89 ]
  %90 = load ptr, ptr %20, align 8, !tbaa !5
  %91 = getelementptr inbounds double, ptr %90, i64 %.7173
  %92 = load double, ptr %91, align 8, !tbaa !15
  %93 = load ptr, ptr %21, align 8, !tbaa !5
  %94 = getelementptr inbounds double, ptr %93, i64 %.7173
  %95 = load double, ptr %94, align 8, !tbaa !15
  %96 = fsub double %92, %95
  %97 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %96, ptr noundef %1)
  %98 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.3145172, double noundef %97, ptr noundef %1)
  %99 = add nuw nsw i64 %.7173, 1
  %exitcond190.not = icmp eq i64 %99, %.0179
  br i1 %exitcond190.not, label %100, label %89, !llvm.loop !21

100:                                              ; preds = %89
  %101 = add nuw nsw i64 %.0136176, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond193.not = icmp eq i64 %indvars.iv.next, %indvars.iv191
  br i1 %exitcond193.not, label %102, label %22, !llvm.loop !22

102:                                              ; preds = %100
  %103 = add nuw nsw i64 %.0179, 1
  %indvars.iv.next192 = add nuw nsw i64 %indvars.iv191, 1
  %exitcond194.not = icmp eq i64 %indvars.iv.next192, 65
  br i1 %exitcond194.not, label %104, label %.preheader, !llvm.loop !23

104:                                              ; preds = %102
  %105 = fmul double %13, 5.000000e-16
  %106 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %63, double noundef %105)
  %107 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %98, double noundef %105)
  %108 = or i1 %106, %107
  br i1 %0, label %120, label %109

109:                                              ; preds = %104
  %110 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.605)
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.579)
  %.str.7..str.6 = select i1 %108, ptr @.str.7, ptr @.str.6
  %112 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %113 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.606)
  %.str.6.sink198 = select i1 %106, ptr @.str.7, ptr @.str.6
  %114 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink198)
  %115 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.607)
  br i1 %107, label %.thread, label %117

.thread:                                          ; preds = %109
  %116 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %.sink.split

117:                                              ; preds = %109
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %spec.select = select i1 %106, ptr @.str.1, ptr @.str.2
  br label %.sink.split

.sink.split:                                      ; preds = %117, %.thread
  %.str.1.sink = phi ptr [ @.str.1, %.thread ], [ %spec.select, %117 ]
  %119 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1.sink)
  br label %120

120:                                              ; preds = %.sink.split, %104
  %121 = xor i1 %108, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  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 %121
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL31testcorrunit_refcorrr1dcircularPN11alglib_impl9ae_vectorElS1_lS1_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 = { "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 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTSN11alglib_impl10ae_complexE", !10, i64 0, !10, i64 8}
!10 = !{!"double", !6, i64 0}
!11 = !{!9, !10, i64 8}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}
!23 = distinct !{!23, !13}


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