; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/tests/test_c.ll (Z7testfftbPN11alglib_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::fasttransformplan" = type { %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool" }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_shared_pool" = type { %"struct.alglib_impl::ae_lock", ptr, ptr, ptr, ptr, i64, ptr, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }
%"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.931 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.932 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.933 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.934 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.935 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.936 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.937 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.938 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.939 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.940 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.941 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.942 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.943 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.944 = 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 i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double 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 { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef) #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 @_Z7testfftbPN11alglib_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::fasttransformplan", align 8
  %16 = alloca i64, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca i64, align 8
  %24 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %25 = alloca i8, align 1
  %26 = alloca i8, align 1
  %27 = alloca i8, align 1
  %28 = alloca i8, align 1
  %29 = alloca i8, align 1
  %30 = alloca i8, align 1
  %31 = alloca i8, align 1
  %32 = alloca %"struct.alglib_impl::ae_complex", align 8
  %33 = alloca %"struct.alglib_impl::ae_complex", align 8
  %34 = alloca %"struct.alglib_impl::ae_complex", align 8
  %35 = alloca %"struct.alglib_impl::ae_complex", align 8
  %36 = alloca %"struct.alglib_impl::ae_complex", align 8
  %37 = alloca %"struct.alglib_impl::ae_complex", align 8
  %38 = alloca %"struct.alglib_impl::ae_complex", align 8
  %39 = alloca %"struct.alglib_impl::ae_complex", align 8
  %40 = alloca %"struct.alglib_impl::ae_complex", align 8
  %41 = alloca %"struct.alglib_impl::ae_complex", align 8
  %42 = alloca %"struct.alglib_impl::ae_complex", align 8
  %43 = alloca %"struct.alglib_impl::ae_complex", align 8
  %44 = alloca %"struct.alglib_impl::ae_complex", align 8
  %45 = alloca %"struct.alglib_impl::ae_complex", align 8
  %46 = alloca %"struct.alglib_impl::ae_complex", align 8
  %47 = alloca %"struct.alglib_impl::ae_complex", align 8
  %48 = alloca %"struct.alglib_impl::ae_complex", align 8
  %49 = alloca %"struct.alglib_impl::ae_complex", align 8
  %50 = zext i1 %0 to i8
  store i8 %50, 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 408, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 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 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 24, 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
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #6
  %51 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %51, 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 408, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 24, i1 false)
  %52 = 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 4, ptr noundef %52, i1 noundef zeroext true)
  %53 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %10, i64 noundef 0, i64 noundef 4, ptr noundef %53, i1 noundef zeroext true)
  %54 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %11, i64 noundef 0, i64 noundef 4, ptr noundef %54, i1 noundef zeroext true)
  %55 = 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 %55, i1 noundef zeroext true)
  %56 = 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 3, ptr noundef %56, i1 noundef zeroext true)
  %57 = 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 3, ptr noundef %57, i1 noundef zeroext true)
  %58 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl23_fasttransformplan_initEPvPNS_8ae_stateEb(ptr noundef %15, ptr noundef %58, i1 noundef zeroext true)
  %59 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %24, ptr noundef %59, i1 noundef zeroext true)
  %60 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %24, ptr noundef %60)
  store i64 128, ptr %16, align 8, !tbaa !11
  %61 = load i64, ptr %16, align 8, !tbaa !11
  %62 = sitofp i64 %61 to double
  %63 = load ptr, ptr %4, align 8, !tbaa !9
  %64 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef %62, double noundef 1.500000e+00, ptr noundef %63)
  %65 = fmul double 1.000000e+05, %64
  %66 = fmul double %65, 5.000000e-16
  store double %66, ptr %22, align 8, !tbaa !13
  store i8 0, ptr %26, align 1, !tbaa !5
  store i8 0, ptr %25, align 1, !tbaa !5
  store i8 0, ptr %28, align 1, !tbaa !5
  store i8 0, ptr %27, align 1, !tbaa !5
  store i8 0, ptr %29, align 1, !tbaa !5
  store i8 0, ptr %30, align 1, !tbaa !5
  store double 0.000000e+00, ptr %17, align 8, !tbaa !13
  store double 0.000000e+00, ptr %18, align 8, !tbaa !13
  store i64 1, ptr %6, align 8, !tbaa !11
  br label %67

67:                                               ; preds = %319, %2
  %68 = load i64, ptr %6, align 8, !tbaa !11
  %69 = load i64, ptr %16, align 8, !tbaa !11
  %70 = icmp sle i64 %68, %69
  br i1 %70, label %71, label %322

71:                                               ; preds = %67
  %72 = load i64, ptr %6, align 8, !tbaa !11
  %73 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %72, ptr noundef %73)
  %74 = load i64, ptr %6, align 8, !tbaa !11
  %75 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %74, ptr noundef %75)
  %76 = load i64, ptr %6, align 8, !tbaa !11
  %77 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef %76, ptr noundef %77)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %78

78:                                               ; preds = %116, %71
  %79 = load i64, ptr %7, align 8, !tbaa !11
  %80 = load i64, ptr %6, align 8, !tbaa !11
  %81 = sub nsw i64 %80, 1
  %82 = icmp sle i64 %79, %81
  br i1 %82, label %83, label %119

83:                                               ; preds = %78
  %84 = load ptr, ptr %4, align 8, !tbaa !9
  %85 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %84)
  %86 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %85, double -1.000000e+00)
  %87 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %88 = load ptr, ptr %87, align 8, !tbaa !15
  %89 = load i64, ptr %7, align 8, !tbaa !11
  %90 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %88, i64 %89
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %90, i32 0, i32 0
  store double %86, ptr %91, align 8, !tbaa !16
  %92 = load ptr, ptr %4, align 8, !tbaa !9
  %93 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %92)
  %94 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %93, double -1.000000e+00)
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !15
  %97 = load i64, ptr %7, align 8, !tbaa !11
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %96, i64 %97
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %98, i32 0, i32 1
  store double %94, ptr %99, align 8, !tbaa !18
  %100 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %101 = load ptr, ptr %100, align 8, !tbaa !15
  %102 = load i64, ptr %7, align 8, !tbaa !11
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %101, i64 %102
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !15
  %106 = load i64, ptr %7, align 8, !tbaa !11
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %105, i64 %106
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %107, ptr align 8 %103, i64 16, i1 false), !tbaa.struct !19
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !15
  %110 = load i64, ptr %7, align 8, !tbaa !11
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %109, i64 %110
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !15
  %114 = load i64, ptr %7, align 8, !tbaa !11
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %113, i64 %114
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %115, ptr align 8 %111, i64 16, i1 false), !tbaa.struct !19
  br label %116

116:                                              ; preds = %83
  %117 = load i64, ptr %7, align 8, !tbaa !11
  %118 = add nsw i64 %117, 1
  store i64 %118, ptr %7, align 8, !tbaa !11
  br label %78, !llvm.loop !20

119:                                              ; preds = %78
  %120 = load i64, ptr %6, align 8, !tbaa !11
  %121 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %120, ptr noundef %121)
  %122 = load i64, ptr %6, align 8, !tbaa !11
  %123 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fftc1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %122, ptr noundef %123)
  %124 = load i64, ptr %6, align 8, !tbaa !11
  %125 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fftc1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef %124, ptr noundef %125)
  %126 = load i64, ptr %6, align 8, !tbaa !11
  %127 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef %126, ptr noundef %127)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %128

128:                                              ; preds = %194, %119
  %129 = load i64, ptr %7, align 8, !tbaa !11
  %130 = load i64, ptr %6, align 8, !tbaa !11
  %131 = sub nsw i64 %130, 1
  %132 = icmp sle i64 %129, %131
  br i1 %132, label %133, label %197

133:                                              ; preds = %128
  %134 = load double, ptr %17, align 8, !tbaa !13
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %136 = load ptr, ptr %135, align 8, !tbaa !15
  %137 = load i64, ptr %7, align 8, !tbaa !11
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %136, i64 %137
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %33, ptr align 8 %138, i64 16, i1 false), !tbaa.struct !19
  %139 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %140 = load ptr, ptr %139, align 8, !tbaa !15
  %141 = load i64, ptr %7, align 8, !tbaa !11
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %140, i64 %141
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %142, i64 16, i1 false), !tbaa.struct !19
  %143 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %144 = load double, ptr %143, align 8
  %145 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %146 = load double, ptr %145, align 8
  %147 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %148 = load double, ptr %147, align 8
  %149 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %150 = load double, ptr %149, align 8
  %151 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %144, double %146, double %148, double %150)
  %152 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %153 = extractvalue { double, double } %151, 0
  store double %153, ptr %152, align 8
  %154 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %155 = extractvalue { double, double } %151, 1
  store double %155, ptr %154, align 8
  %156 = load ptr, ptr %4, align 8, !tbaa !9
  %157 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %158 = load double, ptr %157, align 8
  %159 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %160 = load double, ptr %159, align 8
  %161 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %158, double %160, ptr noundef %156)
  %162 = load ptr, ptr %4, align 8, !tbaa !9
  %163 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %134, double noundef %161, ptr noundef %162)
  store double %163, ptr %17, align 8, !tbaa !13
  %164 = load double, ptr %17, align 8, !tbaa !13
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %166 = load ptr, ptr %165, align 8, !tbaa !15
  %167 = load i64, ptr %7, align 8, !tbaa !11
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %166, i64 %167
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 8 %168, i64 16, i1 false), !tbaa.struct !19
  %169 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %170 = load ptr, ptr %169, align 8, !tbaa !15
  %171 = load i64, ptr %7, align 8, !tbaa !11
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %170, i64 %171
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %37, ptr align 8 %172, i64 16, i1 false), !tbaa.struct !19
  %173 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %174 = load double, ptr %173, align 8
  %175 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %176 = load double, ptr %175, align 8
  %177 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %178 = load double, ptr %177, align 8
  %179 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %180 = load double, ptr %179, align 8
  %181 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %174, double %176, double %178, double %180)
  %182 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %183 = extractvalue { double, double } %181, 0
  store double %183, ptr %182, align 8
  %184 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %185 = extractvalue { double, double } %181, 1
  store double %185, ptr %184, align 8
  %186 = load ptr, ptr %4, align 8, !tbaa !9
  %187 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %188 = load double, ptr %187, align 8
  %189 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %190 = load double, ptr %189, align 8
  %191 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %188, double %190, ptr noundef %186)
  %192 = load ptr, ptr %4, align 8, !tbaa !9
  %193 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %164, double noundef %191, ptr noundef %192)
  store double %193, ptr %17, align 8, !tbaa !13
  br label %194

194:                                              ; preds = %133
  %195 = load i64, ptr %7, align 8, !tbaa !11
  %196 = add nsw i64 %195, 1
  store i64 %196, ptr %7, align 8, !tbaa !11
  br label %128, !llvm.loop !22

197:                                              ; preds = %128
  %198 = load i64, ptr %6, align 8, !tbaa !11
  %199 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %198, ptr noundef %199)
  %200 = load i64, ptr %6, align 8, !tbaa !11
  %201 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %200, ptr noundef %201)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %202

202:                                              ; preds = %224, %197
  %203 = load i64, ptr %7, align 8, !tbaa !11
  %204 = load i64, ptr %6, align 8, !tbaa !11
  %205 = sub nsw i64 %204, 1
  %206 = icmp sle i64 %203, %205
  br i1 %206, label %207, label %227

207:                                              ; preds = %202
  %208 = load ptr, ptr %4, align 8, !tbaa !9
  %209 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %208)
  %210 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %209, double -1.000000e+00)
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !15
  %213 = load i64, ptr %7, align 8, !tbaa !11
  %214 = getelementptr inbounds double, ptr %212, i64 %213
  store double %210, ptr %214, align 8, !tbaa !13
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %216 = load ptr, ptr %215, align 8, !tbaa !15
  %217 = load i64, ptr %7, align 8, !tbaa !11
  %218 = getelementptr inbounds double, ptr %216, i64 %217
  %219 = load double, ptr %218, align 8, !tbaa !13
  %220 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %221 = load ptr, ptr %220, align 8, !tbaa !15
  %222 = load i64, ptr %7, 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 = %207
  %225 = load i64, ptr %7, align 8, !tbaa !11
  %226 = add nsw i64 %225, 1
  store i64 %226, ptr %7, align 8, !tbaa !11
  br label %202, !llvm.loop !23

227:                                              ; preds = %202
  %228 = load i64, ptr %6, align 8, !tbaa !11
  %229 = mul nsw i64 2, %228
  %230 = add nsw i64 %229, 5
  %231 = load ptr, ptr %4, align 8, !tbaa !9
  %232 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %24, i64 noundef %230, ptr noundef %231)
  store i64 %232, ptr %23, align 8, !tbaa !11
  %233 = load i64, ptr %23, align 8, !tbaa !11
  %234 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %233, ptr noundef %234)
  %235 = load ptr, ptr %4, align 8, !tbaa !9
  %236 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %24, ptr noundef %235)
  %237 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %236, double noundef 0.000000e+00)
  br i1 %237, label %238, label %245

238:                                              ; preds = %227
  %239 = load i64, ptr %6, align 8, !tbaa !11
  %240 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl6fftr1dEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %13, i64 noundef %239, ptr noundef %9, ptr noundef %240)
  %241 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 0
  %242 = load i64, ptr %241, align 8, !tbaa !24
  %243 = load i64, ptr %6, align 8, !tbaa !11
  %244 = icmp ne i64 %242, %243
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %244, ptr noundef @.str.19, i32 noundef 124297, ptr noundef @.str.931)
  br label %255

245:                                              ; preds = %227
  %246 = load i64, ptr %6, align 8, !tbaa !11
  %247 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fftr1dbufEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %13, i64 noundef %246, ptr noundef %9, ptr noundef %247)
  %248 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 0
  %249 = load i64, ptr %248, align 8, !tbaa !24
  %250 = load i64, ptr %6, align 8, !tbaa !11
  %251 = load i64, ptr %23, align 8, !tbaa !11
  %252 = load ptr, ptr %4, align 8, !tbaa !9
  %253 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %250, i64 noundef %251, ptr noundef %252)
  %254 = icmp ne i64 %249, %253
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %254, ptr noundef @.str.19, i32 noundef 124302, ptr noundef @.str.932)
  br label %255

255:                                              ; preds = %245, %238
  %256 = load i64, ptr %6, align 8, !tbaa !11
  %257 = mul nsw i64 2, %256
  %258 = add nsw i64 %257, 5
  %259 = load ptr, ptr %4, align 8, !tbaa !9
  %260 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %24, i64 noundef %258, ptr noundef %259)
  store i64 %260, ptr %23, align 8, !tbaa !11
  %261 = load i64, ptr %23, align 8, !tbaa !11
  %262 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %261, ptr noundef %262)
  %263 = load ptr, ptr %4, align 8, !tbaa !9
  %264 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %24, ptr noundef %263)
  %265 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %264, double noundef 0.000000e+00)
  br i1 %265, label %266, label %273

266:                                              ; preds = %255
  %267 = load i64, ptr %6, align 8, !tbaa !11
  %268 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fftr1dinvEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %9, i64 noundef %267, ptr noundef %13, ptr noundef %268)
  %269 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 0
  %270 = load i64, ptr %269, align 8, !tbaa !24
  %271 = load i64, ptr %6, align 8, !tbaa !11
  %272 = icmp ne i64 %270, %271
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %272, ptr noundef @.str.19, i32 noundef 124309, ptr noundef @.str.933)
  br label %283

273:                                              ; preds = %255
  %274 = load i64, ptr %6, align 8, !tbaa !11
  %275 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12fftr1dinvbufEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %9, i64 noundef %274, ptr noundef %13, ptr noundef %275)
  %276 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 0
  %277 = load i64, ptr %276, align 8, !tbaa !24
  %278 = load i64, ptr %6, align 8, !tbaa !11
  %279 = load i64, ptr %23, align 8, !tbaa !11
  %280 = load ptr, ptr %4, align 8, !tbaa !9
  %281 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %278, i64 noundef %279, ptr noundef %280)
  %282 = icmp ne i64 %277, %281
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %282, ptr noundef @.str.19, i32 noundef 124314, ptr noundef @.str.934)
  br label %283

283:                                              ; preds = %273, %266
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %284

284:                                              ; preds = %315, %283
  %285 = load i64, ptr %7, align 8, !tbaa !11
  %286 = load i64, ptr %6, align 8, !tbaa !11
  %287 = sub nsw i64 %286, 1
  %288 = icmp sle i64 %285, %287
  br i1 %288, label %289, label %318

289:                                              ; preds = %284
  %290 = load double, ptr %18, align 8, !tbaa !13
  %291 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %292 = load ptr, ptr %291, align 8, !tbaa !15
  %293 = load i64, ptr %7, align 8, !tbaa !11
  %294 = getelementptr inbounds double, ptr %292, i64 %293
  %295 = load double, ptr %294, align 8, !tbaa !13
  %296 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %297 = load ptr, ptr %296, align 8, !tbaa !15
  %298 = load i64, ptr %7, align 8, !tbaa !11
  %299 = getelementptr inbounds double, ptr %297, i64 %298
  %300 = load double, ptr %299, align 8, !tbaa !13
  %301 = fsub double %295, %300
  %302 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %301)
  %303 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %304 = extractvalue { double, double } %302, 0
  store double %304, ptr %303, align 8
  %305 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %306 = extractvalue { double, double } %302, 1
  store double %306, ptr %305, align 8
  %307 = load ptr, ptr %4, align 8, !tbaa !9
  %308 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %309 = load double, ptr %308, align 8
  %310 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %311 = load double, ptr %310, align 8
  %312 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %309, double %311, ptr noundef %307)
  %313 = load ptr, ptr %4, align 8, !tbaa !9
  %314 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %290, double noundef %312, ptr noundef %313)
  store double %314, ptr %18, align 8, !tbaa !13
  br label %315

315:                                              ; preds = %289
  %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 %284, !llvm.loop !27

318:                                              ; preds = %284
  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 %67, !llvm.loop !28

322:                                              ; preds = %67
  %323 = load i8, ptr %26, align 1, !tbaa !5, !range !29, !noundef !30
  %324 = trunc i8 %323 to i1
  br i1 %324, label %329, label %325

325:                                              ; preds = %322
  %326 = load double, ptr %17, align 8, !tbaa !13
  %327 = load double, ptr %22, 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 %26, align 1, !tbaa !5
  %332 = load i8, ptr %28, align 1, !tbaa !5, !range !29, !noundef !30
  %333 = trunc i8 %332 to i1
  br i1 %333, label %338, label %334

334:                                              ; preds = %329
  %335 = load double, ptr %18, align 8, !tbaa !13
  %336 = load double, ptr %22, 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 %28, align 1, !tbaa !5
  store double 0.000000e+00, ptr %19, align 8, !tbaa !13
  store double 0.000000e+00, ptr %20, align 8, !tbaa !13
  store i64 1, ptr %6, align 8, !tbaa !11
  br label %341

341:                                              ; preds = %730, %338
  %342 = load i64, ptr %6, align 8, !tbaa !11
  %343 = load i64, ptr %16, align 8, !tbaa !11
  %344 = icmp sle i64 %342, %343
  br i1 %344, label %345, label %733

345:                                              ; preds = %341
  %346 = load i64, ptr %6, align 8, !tbaa !11
  %347 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %346, ptr noundef %347)
  %348 = load i64, ptr %6, align 8, !tbaa !11
  %349 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %348, ptr noundef %349)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %350

350:                                              ; preds = %380, %345
  %351 = load i64, ptr %7, align 8, !tbaa !11
  %352 = load i64, ptr %6, align 8, !tbaa !11
  %353 = sub nsw i64 %352, 1
  %354 = icmp sle i64 %351, %353
  br i1 %354, label %355, label %383

355:                                              ; preds = %350
  %356 = load ptr, ptr %4, align 8, !tbaa !9
  %357 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %356)
  %358 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %357, double -1.000000e+00)
  %359 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %360 = load ptr, ptr %359, align 8, !tbaa !15
  %361 = load i64, ptr %7, align 8, !tbaa !11
  %362 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %360, i64 %361
  %363 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %362, i32 0, i32 0
  store double %358, ptr %363, align 8, !tbaa !16
  %364 = load ptr, ptr %4, align 8, !tbaa !9
  %365 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %364)
  %366 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %365, double -1.000000e+00)
  %367 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %368 = load ptr, ptr %367, align 8, !tbaa !15
  %369 = load i64, ptr %7, align 8, !tbaa !11
  %370 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %368, i64 %369
  %371 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %370, i32 0, i32 1
  store double %366, ptr %371, align 8, !tbaa !18
  %372 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %373 = load ptr, ptr %372, align 8, !tbaa !15
  %374 = load i64, ptr %7, align 8, !tbaa !11
  %375 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %373, i64 %374
  %376 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %377 = load ptr, ptr %376, align 8, !tbaa !15
  %378 = load i64, ptr %7, align 8, !tbaa !11
  %379 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %377, i64 %378
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %379, ptr align 8 %375, i64 16, i1 false), !tbaa.struct !19
  br label %380

380:                                              ; preds = %355
  %381 = load i64, ptr %7, align 8, !tbaa !11
  %382 = add nsw i64 %381, 1
  store i64 %382, ptr %7, align 8, !tbaa !11
  br label %350, !llvm.loop !31

383:                                              ; preds = %350
  %384 = load i64, ptr %6, align 8, !tbaa !11
  %385 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %384, ptr noundef %385)
  %386 = load i64, ptr %6, align 8, !tbaa !11
  %387 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL21testfftunit_reffftc1dPN11alglib_impl9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %386, ptr noundef %387)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %388

388:                                              ; preds = %424, %383
  %389 = load i64, ptr %7, align 8, !tbaa !11
  %390 = load i64, ptr %6, align 8, !tbaa !11
  %391 = sub nsw i64 %390, 1
  %392 = icmp sle i64 %389, %391
  br i1 %392, label %393, label %427

393:                                              ; preds = %388
  %394 = load double, ptr %19, align 8, !tbaa !13
  %395 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %396 = load ptr, ptr %395, align 8, !tbaa !15
  %397 = load i64, ptr %7, align 8, !tbaa !11
  %398 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %396, i64 %397
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %398, i64 16, i1 false), !tbaa.struct !19
  %399 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %400 = load ptr, ptr %399, align 8, !tbaa !15
  %401 = load i64, ptr %7, align 8, !tbaa !11
  %402 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %400, i64 %401
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %402, i64 16, i1 false), !tbaa.struct !19
  %403 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %404 = load double, ptr %403, align 8
  %405 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %406 = load double, ptr %405, align 8
  %407 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %408 = load double, ptr %407, align 8
  %409 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %410 = load double, ptr %409, align 8
  %411 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %404, double %406, double %408, double %410)
  %412 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %413 = extractvalue { double, double } %411, 0
  store double %413, ptr %412, align 8
  %414 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %415 = extractvalue { double, double } %411, 1
  store double %415, ptr %414, align 8
  %416 = load ptr, ptr %4, align 8, !tbaa !9
  %417 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %418 = load double, ptr %417, align 8
  %419 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %420 = load double, ptr %419, align 8
  %421 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %418, double %420, ptr noundef %416)
  %422 = load ptr, ptr %4, align 8, !tbaa !9
  %423 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %394, double noundef %421, ptr noundef %422)
  store double %423, ptr %19, align 8, !tbaa !13
  br label %424

424:                                              ; preds = %393
  %425 = load i64, ptr %7, align 8, !tbaa !11
  %426 = add nsw i64 %425, 1
  store i64 %426, ptr %7, align 8, !tbaa !11
  br label %388, !llvm.loop !32

427:                                              ; preds = %388
  %428 = load i64, ptr %6, align 8, !tbaa !11
  %429 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %428, ptr noundef %429)
  %430 = load i64, ptr %6, align 8, !tbaa !11
  %431 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %430, ptr noundef %431)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %432

432:                                              ; preds = %462, %427
  %433 = load i64, ptr %7, align 8, !tbaa !11
  %434 = load i64, ptr %6, align 8, !tbaa !11
  %435 = sub nsw i64 %434, 1
  %436 = icmp sle i64 %433, %435
  br i1 %436, label %437, label %465

437:                                              ; preds = %432
  %438 = load ptr, ptr %4, align 8, !tbaa !9
  %439 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %438)
  %440 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %439, double -1.000000e+00)
  %441 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %442 = load ptr, ptr %441, align 8, !tbaa !15
  %443 = load i64, ptr %7, align 8, !tbaa !11
  %444 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %442, i64 %443
  %445 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %444, i32 0, i32 0
  store double %440, ptr %445, align 8, !tbaa !16
  %446 = load ptr, ptr %4, align 8, !tbaa !9
  %447 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %446)
  %448 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %447, double -1.000000e+00)
  %449 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %450 = load ptr, ptr %449, align 8, !tbaa !15
  %451 = load i64, ptr %7, align 8, !tbaa !11
  %452 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %450, i64 %451
  %453 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %452, i32 0, i32 1
  store double %448, ptr %453, align 8, !tbaa !18
  %454 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %455 = load ptr, ptr %454, align 8, !tbaa !15
  %456 = load i64, ptr %7, align 8, !tbaa !11
  %457 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %455, i64 %456
  %458 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %459 = load ptr, ptr %458, align 8, !tbaa !15
  %460 = load i64, ptr %7, align 8, !tbaa !11
  %461 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %459, i64 %460
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %461, ptr align 8 %457, i64 16, i1 false), !tbaa.struct !19
  br label %462

462:                                              ; preds = %437
  %463 = load i64, ptr %7, align 8, !tbaa !11
  %464 = add nsw i64 %463, 1
  store i64 %464, ptr %7, align 8, !tbaa !11
  br label %432, !llvm.loop !33

465:                                              ; preds = %432
  %466 = load i64, ptr %6, align 8, !tbaa !11
  %467 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fftc1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %466, ptr noundef %467)
  %468 = load i64, ptr %6, align 8, !tbaa !11
  %469 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL24testfftunit_reffftc1dinvPN11alglib_impl9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %468, ptr noundef %469)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %470

470:                                              ; preds = %506, %465
  %471 = load i64, ptr %7, align 8, !tbaa !11
  %472 = load i64, ptr %6, align 8, !tbaa !11
  %473 = sub nsw i64 %472, 1
  %474 = icmp sle i64 %471, %473
  br i1 %474, label %475, label %509

475:                                              ; preds = %470
  %476 = load double, ptr %19, align 8, !tbaa !13
  %477 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %478 = load ptr, ptr %477, align 8, !tbaa !15
  %479 = load i64, ptr %7, align 8, !tbaa !11
  %480 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %478, i64 %479
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 %480, i64 16, i1 false), !tbaa.struct !19
  %481 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %482 = load ptr, ptr %481, align 8, !tbaa !15
  %483 = load i64, ptr %7, align 8, !tbaa !11
  %484 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %482, i64 %483
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 8 %484, i64 16, i1 false), !tbaa.struct !19
  %485 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %486 = load double, ptr %485, align 8
  %487 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %488 = load double, ptr %487, align 8
  %489 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %490 = load double, ptr %489, align 8
  %491 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %492 = load double, ptr %491, align 8
  %493 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %486, double %488, double %490, double %492)
  %494 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %495 = extractvalue { double, double } %493, 0
  store double %495, ptr %494, align 8
  %496 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %497 = extractvalue { double, double } %493, 1
  store double %497, ptr %496, align 8
  %498 = load ptr, ptr %4, align 8, !tbaa !9
  %499 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %500 = load double, ptr %499, align 8
  %501 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %502 = load double, ptr %501, align 8
  %503 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %500, double %502, ptr noundef %498)
  %504 = load ptr, ptr %4, align 8, !tbaa !9
  %505 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %476, double noundef %503, ptr noundef %504)
  store double %505, ptr %19, align 8, !tbaa !13
  br label %506

506:                                              ; preds = %475
  %507 = load i64, ptr %7, align 8, !tbaa !11
  %508 = add nsw i64 %507, 1
  store i64 %508, ptr %7, align 8, !tbaa !11
  br label %470, !llvm.loop !34

509:                                              ; preds = %470
  %510 = load i64, ptr %6, align 8, !tbaa !11
  %511 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %510, ptr noundef %511)
  %512 = load i64, ptr %6, align 8, !tbaa !11
  %513 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %512, ptr noundef %513)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %514

514:                                              ; preds = %536, %509
  %515 = load i64, ptr %7, align 8, !tbaa !11
  %516 = load i64, ptr %6, align 8, !tbaa !11
  %517 = sub nsw i64 %516, 1
  %518 = icmp sle i64 %515, %517
  br i1 %518, label %519, label %539

519:                                              ; preds = %514
  %520 = load ptr, ptr %4, align 8, !tbaa !9
  %521 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %520)
  %522 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %521, double -1.000000e+00)
  %523 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %524 = load ptr, ptr %523, align 8, !tbaa !15
  %525 = load i64, ptr %7, align 8, !tbaa !11
  %526 = getelementptr inbounds double, ptr %524, i64 %525
  store double %522, ptr %526, align 8, !tbaa !13
  %527 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %528 = load ptr, ptr %527, align 8, !tbaa !15
  %529 = load i64, ptr %7, align 8, !tbaa !11
  %530 = getelementptr inbounds double, ptr %528, i64 %529
  %531 = load double, ptr %530, align 8, !tbaa !13
  %532 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %533 = load ptr, ptr %532, align 8, !tbaa !15
  %534 = load i64, ptr %7, align 8, !tbaa !11
  %535 = getelementptr inbounds double, ptr %533, i64 %534
  store double %531, ptr %535, align 8, !tbaa !13
  br label %536

536:                                              ; preds = %519
  %537 = load i64, ptr %7, align 8, !tbaa !11
  %538 = add nsw i64 %537, 1
  store i64 %538, ptr %7, align 8, !tbaa !11
  br label %514, !llvm.loop !35

539:                                              ; preds = %514
  %540 = load i64, ptr %6, align 8, !tbaa !11
  %541 = mul nsw i64 2, %540
  %542 = add nsw i64 %541, 5
  %543 = load ptr, ptr %4, align 8, !tbaa !9
  %544 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %24, i64 noundef %542, ptr noundef %543)
  store i64 %544, ptr %23, align 8, !tbaa !11
  %545 = load i64, ptr %23, align 8, !tbaa !11
  %546 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %545, ptr noundef %546)
  %547 = load ptr, ptr %4, align 8, !tbaa !9
  %548 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %24, ptr noundef %547)
  %549 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %548, double noundef 0.000000e+00)
  br i1 %549, label %550, label %557

550:                                              ; preds = %539
  %551 = load i64, ptr %6, align 8, !tbaa !11
  %552 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl6fftr1dEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %12, i64 noundef %551, ptr noundef %9, ptr noundef %552)
  %553 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 0
  %554 = load i64, ptr %553, align 8, !tbaa !24
  %555 = load i64, ptr %6, align 8, !tbaa !11
  %556 = icmp ne i64 %554, %555
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %556, ptr noundef @.str.19, i32 noundef 124388, ptr noundef @.str.935)
  br label %567

557:                                              ; preds = %539
  %558 = load i64, ptr %6, align 8, !tbaa !11
  %559 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fftr1dbufEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %12, i64 noundef %558, ptr noundef %9, ptr noundef %559)
  %560 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 0
  %561 = load i64, ptr %560, align 8, !tbaa !24
  %562 = load i64, ptr %6, align 8, !tbaa !11
  %563 = load i64, ptr %23, align 8, !tbaa !11
  %564 = load ptr, ptr %4, align 8, !tbaa !9
  %565 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %562, i64 noundef %563, ptr noundef %564)
  %566 = icmp ne i64 %561, %565
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %566, ptr noundef @.str.19, i32 noundef 124393, ptr noundef @.str.936)
  br label %567

567:                                              ; preds = %557, %550
  %568 = load i64, ptr %6, align 8, !tbaa !11
  %569 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL27testfftunit_refinternalrfftPKN11alglib_impl9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %13, i64 noundef %568, ptr noundef %10, ptr noundef %569)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %570

570:                                              ; preds = %606, %567
  %571 = load i64, ptr %7, align 8, !tbaa !11
  %572 = load i64, ptr %6, align 8, !tbaa !11
  %573 = sub nsw i64 %572, 1
  %574 = icmp sle i64 %571, %573
  br i1 %574, label %575, label %609

575:                                              ; preds = %570
  %576 = load double, ptr %20, align 8, !tbaa !13
  %577 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %578 = load ptr, ptr %577, align 8, !tbaa !15
  %579 = load i64, ptr %7, align 8, !tbaa !11
  %580 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %578, i64 %579
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %46, ptr align 8 %580, i64 16, i1 false), !tbaa.struct !19
  %581 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %582 = load ptr, ptr %581, align 8, !tbaa !15
  %583 = load i64, ptr %7, align 8, !tbaa !11
  %584 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %582, i64 %583
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %47, ptr align 8 %584, i64 16, i1 false), !tbaa.struct !19
  %585 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %586 = load double, ptr %585, align 8
  %587 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %588 = load double, ptr %587, align 8
  %589 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %590 = load double, ptr %589, align 8
  %591 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %592 = load double, ptr %591, align 8
  %593 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %586, double %588, double %590, double %592)
  %594 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %595 = extractvalue { double, double } %593, 0
  store double %595, ptr %594, align 8
  %596 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %597 = extractvalue { double, double } %593, 1
  store double %597, ptr %596, align 8
  %598 = load ptr, ptr %4, align 8, !tbaa !9
  %599 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %600 = load double, ptr %599, align 8
  %601 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %602 = load double, ptr %601, align 8
  %603 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %600, double %602, ptr noundef %598)
  %604 = load ptr, ptr %4, align 8, !tbaa !9
  %605 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %576, double noundef %603, ptr noundef %604)
  store double %605, ptr %20, align 8, !tbaa !13
  br label %606

606:                                              ; preds = %575
  %607 = load i64, ptr %7, align 8, !tbaa !11
  %608 = add nsw i64 %607, 1
  store i64 %608, ptr %7, align 8, !tbaa !11
  br label %570, !llvm.loop !36

609:                                              ; preds = %570
  %610 = load i64, ptr %6, align 8, !tbaa !11
  %611 = sitofp i64 %610 to double
  %612 = fdiv double %611, 2.000000e+00
  %613 = load ptr, ptr %4, align 8, !tbaa !9
  %614 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %612, ptr noundef %613)
  %615 = add nsw i64 %614, 1
  %616 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef %615, ptr noundef %616)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %617

617:                                              ; preds = %634, %609
  %618 = load i64, ptr %7, align 8, !tbaa !11
  %619 = load i64, ptr %6, align 8, !tbaa !11
  %620 = sitofp i64 %619 to double
  %621 = fdiv double %620, 2.000000e+00
  %622 = load ptr, ptr %4, align 8, !tbaa !9
  %623 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %621, ptr noundef %622)
  %624 = icmp sle i64 %618, %623
  br i1 %624, label %625, label %637

625:                                              ; preds = %617
  %626 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %627 = load ptr, ptr %626, align 8, !tbaa !15
  %628 = load i64, ptr %7, align 8, !tbaa !11
  %629 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %627, i64 %628
  %630 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %631 = load ptr, ptr %630, align 8, !tbaa !15
  %632 = load i64, ptr %7, align 8, !tbaa !11
  %633 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %631, i64 %632
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %633, ptr align 8 %629, i64 16, i1 false), !tbaa.struct !19
  br label %634

634:                                              ; preds = %625
  %635 = load i64, ptr %7, align 8, !tbaa !11
  %636 = add nsw i64 %635, 1
  store i64 %636, ptr %7, align 8, !tbaa !11
  br label %617, !llvm.loop !37

637:                                              ; preds = %617
  %638 = load ptr, ptr %4, align 8, !tbaa !9
  %639 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %638)
  %640 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %639, double -1.000000e+00)
  %641 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %642 = load ptr, ptr %641, align 8, !tbaa !15
  %643 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %642, i64 0
  %644 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %643, i32 0, i32 1
  store double %640, ptr %644, align 8, !tbaa !18
  %645 = load i64, ptr %6, align 8, !tbaa !11
  %646 = srem i64 %645, 2
  %647 = icmp eq i64 %646, 0
  br i1 %647, label %648, label %661

648:                                              ; preds = %637
  %649 = load ptr, ptr %4, align 8, !tbaa !9
  %650 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %649)
  %651 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %650, double -1.000000e+00)
  %652 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %653 = load ptr, ptr %652, align 8, !tbaa !15
  %654 = load i64, ptr %6, align 8, !tbaa !11
  %655 = sitofp i64 %654 to double
  %656 = fdiv double %655, 2.000000e+00
  %657 = load ptr, ptr %4, align 8, !tbaa !9
  %658 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %656, ptr noundef %657)
  %659 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %653, i64 %658
  %660 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %659, i32 0, i32 1
  store double %651, ptr %660, align 8, !tbaa !18
  br label %661

661:                                              ; preds = %648, %637
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %662

662:                                              ; preds = %672, %661
  %663 = load i64, ptr %7, align 8, !tbaa !11
  %664 = load i64, ptr %6, align 8, !tbaa !11
  %665 = sub nsw i64 %664, 1
  %666 = icmp sle i64 %663, %665
  br i1 %666, label %667, label %675

667:                                              ; preds = %662
  %668 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %669 = load ptr, ptr %668, align 8, !tbaa !15
  %670 = load i64, ptr %7, align 8, !tbaa !11
  %671 = getelementptr inbounds double, ptr %669, i64 %670
  store double 0.000000e+00, ptr %671, align 8, !tbaa !13
  br label %672

672:                                              ; preds = %667
  %673 = load i64, ptr %7, align 8, !tbaa !11
  %674 = add nsw i64 %673, 1
  store i64 %674, ptr %7, align 8, !tbaa !11
  br label %662, !llvm.loop !38

675:                                              ; preds = %662
  %676 = load i64, ptr %6, align 8, !tbaa !11
  %677 = mul nsw i64 2, %676
  %678 = add nsw i64 %677, 5
  %679 = load ptr, ptr %4, align 8, !tbaa !9
  %680 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %24, i64 noundef %678, ptr noundef %679)
  store i64 %680, ptr %23, align 8, !tbaa !11
  %681 = load i64, ptr %23, align 8, !tbaa !11
  %682 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %681, ptr noundef %682)
  %683 = load ptr, ptr %4, align 8, !tbaa !9
  %684 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %24, ptr noundef %683)
  %685 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %684, double noundef 0.000000e+00)
  br i1 %685, label %686, label %693

686:                                              ; preds = %675
  %687 = load i64, ptr %6, align 8, !tbaa !11
  %688 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fftr1dinvEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %11, i64 noundef %687, ptr noundef %12, ptr noundef %688)
  %689 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 0
  %690 = load i64, ptr %689, align 8, !tbaa !24
  %691 = load i64, ptr %6, align 8, !tbaa !11
  %692 = icmp ne i64 %690, %691
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %692, ptr noundef @.str.19, i32 noundef 124419, ptr noundef @.str.937)
  br label %703

693:                                              ; preds = %675
  %694 = load i64, ptr %6, align 8, !tbaa !11
  %695 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12fftr1dinvbufEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %11, i64 noundef %694, ptr noundef %12, ptr noundef %695)
  %696 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 0
  %697 = load i64, ptr %696, align 8, !tbaa !24
  %698 = load i64, ptr %6, align 8, !tbaa !11
  %699 = load i64, ptr %23, align 8, !tbaa !11
  %700 = load ptr, ptr %4, align 8, !tbaa !9
  %701 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %698, i64 noundef %699, ptr noundef %700)
  %702 = icmp ne i64 %697, %701
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %702, ptr noundef @.str.19, i32 noundef 124424, ptr noundef @.str.938)
  br label %703

703:                                              ; preds = %693, %686
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %704

704:                                              ; preds = %726, %703
  %705 = load i64, ptr %7, align 8, !tbaa !11
  %706 = load i64, ptr %6, align 8, !tbaa !11
  %707 = sub nsw i64 %706, 1
  %708 = icmp sle i64 %705, %707
  br i1 %708, label %709, label %729

709:                                              ; preds = %704
  %710 = load double, ptr %20, align 8, !tbaa !13
  %711 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %712 = load ptr, ptr %711, align 8, !tbaa !15
  %713 = load i64, ptr %7, align 8, !tbaa !11
  %714 = getelementptr inbounds double, ptr %712, i64 %713
  %715 = load double, ptr %714, align 8, !tbaa !13
  %716 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %717 = load ptr, ptr %716, align 8, !tbaa !15
  %718 = load i64, ptr %7, align 8, !tbaa !11
  %719 = getelementptr inbounds double, ptr %717, i64 %718
  %720 = load double, ptr %719, align 8, !tbaa !13
  %721 = fsub double %715, %720
  %722 = load ptr, ptr %4, align 8, !tbaa !9
  %723 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %721, ptr noundef %722)
  %724 = load ptr, ptr %4, align 8, !tbaa !9
  %725 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %710, double noundef %723, ptr noundef %724)
  store double %725, ptr %20, align 8, !tbaa !13
  br label %726

726:                                              ; preds = %709
  %727 = load i64, ptr %7, align 8, !tbaa !11
  %728 = add nsw i64 %727, 1
  store i64 %728, ptr %7, align 8, !tbaa !11
  br label %704, !llvm.loop !39

729:                                              ; preds = %704
  br label %730

730:                                              ; preds = %729
  %731 = load i64, ptr %6, align 8, !tbaa !11
  %732 = add nsw i64 %731, 1
  store i64 %732, ptr %6, align 8, !tbaa !11
  br label %341, !llvm.loop !40

733:                                              ; preds = %341
  %734 = load i8, ptr %25, align 1, !tbaa !5, !range !29, !noundef !30
  %735 = trunc i8 %734 to i1
  br i1 %735, label %740, label %736

736:                                              ; preds = %733
  %737 = load double, ptr %19, align 8, !tbaa !13
  %738 = load double, ptr %22, align 8, !tbaa !13
  %739 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %737, double noundef %738)
  br label %740

740:                                              ; preds = %736, %733
  %741 = phi i1 [ true, %733 ], [ %739, %736 ]
  %742 = zext i1 %741 to i8
  store i8 %742, ptr %25, align 1, !tbaa !5
  %743 = load i8, ptr %27, align 1, !tbaa !5, !range !29, !noundef !30
  %744 = trunc i8 %743 to i1
  br i1 %744, label %749, label %745

745:                                              ; preds = %740
  %746 = load double, ptr %20, align 8, !tbaa !13
  %747 = load double, ptr %22, align 8, !tbaa !13
  %748 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %746, double noundef %747)
  br label %749

749:                                              ; preds = %745, %740
  %750 = phi i1 [ true, %740 ], [ %748, %745 ]
  %751 = zext i1 %750 to i8
  store i8 %751, ptr %27, align 1, !tbaa !5
  store double 0.000000e+00, ptr %19, align 8, !tbaa !13
  store double 0.000000e+00, ptr %20, align 8, !tbaa !13
  %752 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 1000, ptr noundef %19, ptr noundef %20, ptr noundef %752)
  %753 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 1024, ptr noundef %19, ptr noundef %20, ptr noundef %753)
  %754 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 1025, ptr noundef %19, ptr noundef %20, ptr noundef %754)
  %755 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 2000, ptr noundef %19, ptr noundef %20, ptr noundef %755)
  %756 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 2048, ptr noundef %19, ptr noundef %20, ptr noundef %756)
  %757 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 6535, ptr noundef %19, ptr noundef %20, ptr noundef %757)
  %758 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 65536, ptr noundef %19, ptr noundef %20, ptr noundef %758)
  %759 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 104729, ptr noundef %19, ptr noundef %20, ptr noundef %759)
  %760 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 139129, ptr noundef %19, ptr noundef %20, ptr noundef %760)
  %761 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 141740, ptr noundef %19, ptr noundef %20, ptr noundef %761)
  %762 = load i8, ptr %25, align 1, !tbaa !5, !range !29, !noundef !30
  %763 = trunc i8 %762 to i1
  br i1 %763, label %768, label %764

764:                                              ; preds = %749
  %765 = load double, ptr %19, align 8, !tbaa !13
  %766 = load double, ptr %22, align 8, !tbaa !13
  %767 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %765, double noundef %766)
  br label %768

768:                                              ; preds = %764, %749
  %769 = phi i1 [ true, %749 ], [ %767, %764 ]
  %770 = zext i1 %769 to i8
  store i8 %770, ptr %25, align 1, !tbaa !5
  %771 = load i8, ptr %27, align 1, !tbaa !5, !range !29, !noundef !30
  %772 = trunc i8 %771 to i1
  br i1 %772, label %777, label %773

773:                                              ; preds = %768
  %774 = load double, ptr %20, align 8, !tbaa !13
  %775 = load double, ptr %22, align 8, !tbaa !13
  %776 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %774, double noundef %775)
  br label %777

777:                                              ; preds = %773, %768
  %778 = phi i1 [ true, %768 ], [ %776, %773 ]
  %779 = zext i1 %778 to i8
  store i8 %779, ptr %27, align 1, !tbaa !5
  store double 0.000000e+00, ptr %21, align 8, !tbaa !13
  store i64 1, ptr %8, align 8, !tbaa !11
  br label %780

780:                                              ; preds = %1036, %777
  %781 = load i64, ptr %8, align 8, !tbaa !11
  %782 = load i64, ptr %16, align 8, !tbaa !11
  %783 = sdiv i64 %782, 2
  %784 = icmp sle i64 %781, %783
  br i1 %784, label %785, label %1039

785:                                              ; preds = %780
  %786 = load i64, ptr %8, align 8, !tbaa !11
  %787 = mul nsw i64 2, %786
  store i64 %787, ptr %6, align 8, !tbaa !11
  %788 = load i64, ptr %6, align 8, !tbaa !11
  %789 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %788, ptr noundef %789)
  %790 = load i64, ptr %6, align 8, !tbaa !11
  %791 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %790, ptr noundef %791)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %792

792:                                              ; preds = %814, %785
  %793 = load i64, ptr %7, align 8, !tbaa !11
  %794 = load i64, ptr %6, align 8, !tbaa !11
  %795 = sub nsw i64 %794, 1
  %796 = icmp sle i64 %793, %795
  br i1 %796, label %797, label %817

797:                                              ; preds = %792
  %798 = load ptr, ptr %4, align 8, !tbaa !9
  %799 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %798)
  %800 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %799, double -1.000000e+00)
  %801 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %802 = load ptr, ptr %801, align 8, !tbaa !15
  %803 = load i64, ptr %7, align 8, !tbaa !11
  %804 = getelementptr inbounds double, ptr %802, i64 %803
  store double %800, ptr %804, align 8, !tbaa !13
  %805 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %806 = load ptr, ptr %805, align 8, !tbaa !15
  %807 = load i64, ptr %7, align 8, !tbaa !11
  %808 = getelementptr inbounds double, ptr %806, i64 %807
  %809 = load double, ptr %808, align 8, !tbaa !13
  %810 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %811 = load ptr, ptr %810, align 8, !tbaa !15
  %812 = load i64, ptr %7, align 8, !tbaa !11
  %813 = getelementptr inbounds double, ptr %811, i64 %812
  store double %809, ptr %813, align 8, !tbaa !13
  br label %814

814:                                              ; preds = %797
  %815 = load i64, ptr %7, align 8, !tbaa !11
  %816 = add nsw i64 %815, 1
  store i64 %816, ptr %7, align 8, !tbaa !11
  br label %792, !llvm.loop !41

817:                                              ; preds = %792
  %818 = load i64, ptr %6, align 8, !tbaa !11
  %819 = sdiv i64 %818, 2
  %820 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %819, i64 noundef 1, ptr noundef %15, ptr noundef %820)
  %821 = load i64, ptr %6, align 8, !tbaa !11
  %822 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %821, ptr noundef %822)
  %823 = load i64, ptr %6, align 8, !tbaa !11
  %824 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18fftr1dinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef %12, i64 noundef %823, ptr noundef %14, ptr noundef %15, ptr noundef %824)
  %825 = load i64, ptr %6, align 8, !tbaa !11
  %826 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL27testfftunit_refinternalrfftPKN11alglib_impl9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %13, i64 noundef %825, ptr noundef %10, ptr noundef %826)
  %827 = load double, ptr %21, align 8, !tbaa !13
  %828 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %829 = load ptr, ptr %828, align 8, !tbaa !15
  %830 = getelementptr inbounds double, ptr %829, i64 0
  %831 = load double, ptr %830, align 8, !tbaa !13
  %832 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %833 = load ptr, ptr %832, align 8, !tbaa !15
  %834 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %833, i64 0
  %835 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %834, i32 0, i32 0
  %836 = load double, ptr %835, align 8, !tbaa !16
  %837 = fsub double %831, %836
  %838 = load ptr, ptr %4, align 8, !tbaa !9
  %839 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %837, ptr noundef %838)
  %840 = load ptr, ptr %4, align 8, !tbaa !9
  %841 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %827, double noundef %839, ptr noundef %840)
  store double %841, ptr %21, align 8, !tbaa !13
  %842 = load double, ptr %21, align 8, !tbaa !13
  %843 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %844 = load ptr, ptr %843, align 8, !tbaa !15
  %845 = getelementptr inbounds double, ptr %844, i64 1
  %846 = load double, ptr %845, align 8, !tbaa !13
  %847 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %848 = load ptr, ptr %847, align 8, !tbaa !15
  %849 = load i64, ptr %6, align 8, !tbaa !11
  %850 = sdiv i64 %849, 2
  %851 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %848, i64 %850
  %852 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %851, i32 0, i32 0
  %853 = load double, ptr %852, align 8, !tbaa !16
  %854 = fsub double %846, %853
  %855 = load ptr, ptr %4, align 8, !tbaa !9
  %856 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %854, ptr noundef %855)
  %857 = load ptr, ptr %4, align 8, !tbaa !9
  %858 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %842, double noundef %856, ptr noundef %857)
  store double %858, ptr %21, align 8, !tbaa !13
  store i64 1, ptr %7, align 8, !tbaa !11
  br label %859

859:                                              ; preds = %904, %817
  %860 = load i64, ptr %7, align 8, !tbaa !11
  %861 = load i64, ptr %6, align 8, !tbaa !11
  %862 = sdiv i64 %861, 2
  %863 = sub nsw i64 %862, 1
  %864 = icmp sle i64 %860, %863
  br i1 %864, label %865, label %907

865:                                              ; preds = %859
  %866 = load double, ptr %21, align 8, !tbaa !13
  %867 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %868 = load ptr, ptr %867, align 8, !tbaa !15
  %869 = load i64, ptr %7, align 8, !tbaa !11
  %870 = mul nsw i64 2, %869
  %871 = add nsw i64 %870, 0
  %872 = getelementptr inbounds double, ptr %868, i64 %871
  %873 = load double, ptr %872, align 8, !tbaa !13
  %874 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %875 = load ptr, ptr %874, align 8, !tbaa !15
  %876 = load i64, ptr %7, align 8, !tbaa !11
  %877 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %875, i64 %876
  %878 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %877, i32 0, i32 0
  %879 = load double, ptr %878, align 8, !tbaa !16
  %880 = fsub double %873, %879
  %881 = load ptr, ptr %4, align 8, !tbaa !9
  %882 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %880, ptr noundef %881)
  %883 = load ptr, ptr %4, align 8, !tbaa !9
  %884 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %866, double noundef %882, ptr noundef %883)
  store double %884, ptr %21, align 8, !tbaa !13
  %885 = load double, ptr %21, align 8, !tbaa !13
  %886 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %887 = load ptr, ptr %886, align 8, !tbaa !15
  %888 = load i64, ptr %7, align 8, !tbaa !11
  %889 = mul nsw i64 2, %888
  %890 = add nsw i64 %889, 1
  %891 = getelementptr inbounds double, ptr %887, i64 %890
  %892 = load double, ptr %891, align 8, !tbaa !13
  %893 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %894 = load ptr, ptr %893, align 8, !tbaa !15
  %895 = load i64, ptr %7, align 8, !tbaa !11
  %896 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %894, i64 %895
  %897 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %896, i32 0, i32 1
  %898 = load double, ptr %897, align 8, !tbaa !18
  %899 = fsub double %892, %898
  %900 = load ptr, ptr %4, align 8, !tbaa !9
  %901 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %899, ptr noundef %900)
  %902 = load ptr, ptr %4, align 8, !tbaa !9
  %903 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %885, double noundef %901, ptr noundef %902)
  store double %903, ptr %21, align 8, !tbaa !13
  br label %904

904:                                              ; preds = %865
  %905 = load i64, ptr %7, align 8, !tbaa !11
  %906 = add nsw i64 %905, 1
  store i64 %906, ptr %7, align 8, !tbaa !11
  br label %859, !llvm.loop !42

907:                                              ; preds = %859
  %908 = load i64, ptr %6, align 8, !tbaa !11
  %909 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %908, ptr noundef %909)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %910

910:                                              ; preds = %923, %907
  %911 = load i64, ptr %7, align 8, !tbaa !11
  %912 = load i64, ptr %6, align 8, !tbaa !11
  %913 = sub nsw i64 %912, 1
  %914 = icmp sle i64 %911, %913
  br i1 %914, label %915, label %926

915:                                              ; preds = %910
  %916 = load ptr, ptr %4, align 8, !tbaa !9
  %917 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %916)
  %918 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %917, double -1.000000e+00)
  %919 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %920 = load ptr, ptr %919, align 8, !tbaa !15
  %921 = load i64, ptr %7, align 8, !tbaa !11
  %922 = getelementptr inbounds double, ptr %920, i64 %921
  store double %918, ptr %922, align 8, !tbaa !13
  br label %923

923:                                              ; preds = %915
  %924 = load i64, ptr %7, align 8, !tbaa !11
  %925 = add nsw i64 %924, 1
  store i64 %925, ptr %7, align 8, !tbaa !11
  br label %910, !llvm.loop !43

926:                                              ; preds = %910
  %927 = load i64, ptr %6, align 8, !tbaa !11
  %928 = sitofp i64 %927 to double
  %929 = fdiv double %928, 2.000000e+00
  %930 = load ptr, ptr %4, align 8, !tbaa !9
  %931 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %929, ptr noundef %930)
  %932 = add nsw i64 %931, 1
  %933 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %932, ptr noundef %933)
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #6
  %934 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %935 = load ptr, ptr %934, align 8, !tbaa !15
  %936 = getelementptr inbounds double, ptr %935, i64 0
  %937 = load double, ptr %936, align 8, !tbaa !13
  %938 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %937)
  %939 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %940 = extractvalue { double, double } %938, 0
  store double %940, ptr %939, align 8
  %941 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %942 = extractvalue { double, double } %938, 1
  store double %942, ptr %941, align 8
  %943 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %944 = load ptr, ptr %943, align 8, !tbaa !15
  %945 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %944, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %945, ptr align 8 %48, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #6
  store i64 1, ptr %7, align 8, !tbaa !11
  br label %946

946:                                              ; preds = %980, %926
  %947 = load i64, ptr %7, align 8, !tbaa !11
  %948 = load i64, ptr %6, align 8, !tbaa !11
  %949 = sitofp i64 %948 to double
  %950 = fdiv double %949, 2.000000e+00
  %951 = load ptr, ptr %4, align 8, !tbaa !9
  %952 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %950, ptr noundef %951)
  %953 = sub nsw i64 %952, 1
  %954 = icmp sle i64 %947, %953
  br i1 %954, label %955, label %983

955:                                              ; preds = %946
  %956 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %957 = load ptr, ptr %956, align 8, !tbaa !15
  %958 = load i64, ptr %7, align 8, !tbaa !11
  %959 = mul nsw i64 2, %958
  %960 = add nsw i64 %959, 0
  %961 = getelementptr inbounds double, ptr %957, i64 %960
  %962 = load double, ptr %961, align 8, !tbaa !13
  %963 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %964 = load ptr, ptr %963, align 8, !tbaa !15
  %965 = load i64, ptr %7, align 8, !tbaa !11
  %966 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %964, i64 %965
  %967 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %966, i32 0, i32 0
  store double %962, ptr %967, align 8, !tbaa !16
  %968 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %969 = load ptr, ptr %968, align 8, !tbaa !15
  %970 = load i64, ptr %7, align 8, !tbaa !11
  %971 = mul nsw i64 2, %970
  %972 = add nsw i64 %971, 1
  %973 = getelementptr inbounds double, ptr %969, i64 %972
  %974 = load double, ptr %973, align 8, !tbaa !13
  %975 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %976 = load ptr, ptr %975, align 8, !tbaa !15
  %977 = load i64, ptr %7, align 8, !tbaa !11
  %978 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %976, i64 %977
  %979 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %978, i32 0, i32 1
  store double %974, ptr %979, align 8, !tbaa !18
  br label %980

980:                                              ; preds = %955
  %981 = load i64, ptr %7, align 8, !tbaa !11
  %982 = add nsw i64 %981, 1
  store i64 %982, ptr %7, align 8, !tbaa !11
  br label %946, !llvm.loop !44

983:                                              ; preds = %946
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #6
  %984 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %985 = load ptr, ptr %984, align 8, !tbaa !15
  %986 = getelementptr inbounds double, ptr %985, i64 1
  %987 = load double, ptr %986, align 8, !tbaa !13
  %988 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %987)
  %989 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %990 = extractvalue { double, double } %988, 0
  store double %990, ptr %989, align 8
  %991 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %992 = extractvalue { double, double } %988, 1
  store double %992, ptr %991, align 8
  %993 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %994 = load ptr, ptr %993, align 8, !tbaa !15
  %995 = load i64, ptr %6, align 8, !tbaa !11
  %996 = sitofp i64 %995 to double
  %997 = fdiv double %996, 2.000000e+00
  %998 = load ptr, ptr %4, align 8, !tbaa !9
  %999 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %997, ptr noundef %998)
  %1000 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %994, i64 %999
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %1000, ptr align 8 %49, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #6
  %1001 = load i64, ptr %6, align 8, !tbaa !11
  %1002 = sdiv i64 %1001, 2
  %1003 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %1002, i64 noundef 1, ptr noundef %15, ptr noundef %1003)
  %1004 = load i64, ptr %6, align 8, !tbaa !11
  %1005 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %1004, ptr noundef %1005)
  %1006 = load i64, ptr %6, align 8, !tbaa !11
  %1007 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21fftr1dinvinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef %12, i64 noundef %1006, ptr noundef %14, ptr noundef %15, ptr noundef %1007)
  %1008 = load i64, ptr %6, align 8, !tbaa !11
  %1009 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fftr1dinvEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %10, i64 noundef %1008, ptr noundef %13, ptr noundef %1009)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %1010

1010:                                             ; preds = %1032, %983
  %1011 = load i64, ptr %7, align 8, !tbaa !11
  %1012 = load i64, ptr %6, align 8, !tbaa !11
  %1013 = sub nsw i64 %1012, 1
  %1014 = icmp sle i64 %1011, %1013
  br i1 %1014, label %1015, label %1035

1015:                                             ; preds = %1010
  %1016 = load double, ptr %21, align 8, !tbaa !13
  %1017 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %1018 = load ptr, ptr %1017, align 8, !tbaa !15
  %1019 = load i64, ptr %7, align 8, !tbaa !11
  %1020 = getelementptr inbounds double, ptr %1018, i64 %1019
  %1021 = load double, ptr %1020, align 8, !tbaa !13
  %1022 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %1023 = load ptr, ptr %1022, align 8, !tbaa !15
  %1024 = load i64, ptr %7, align 8, !tbaa !11
  %1025 = getelementptr inbounds double, ptr %1023, i64 %1024
  %1026 = load double, ptr %1025, align 8, !tbaa !13
  %1027 = fsub double %1021, %1026
  %1028 = load ptr, ptr %4, align 8, !tbaa !9
  %1029 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1027, ptr noundef %1028)
  %1030 = load ptr, ptr %4, align 8, !tbaa !9
  %1031 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1016, double noundef %1029, ptr noundef %1030)
  store double %1031, ptr %21, align 8, !tbaa !13
  br label %1032

1032:                                             ; preds = %1015
  %1033 = load i64, ptr %7, align 8, !tbaa !11
  %1034 = add nsw i64 %1033, 1
  store i64 %1034, ptr %7, align 8, !tbaa !11
  br label %1010, !llvm.loop !45

1035:                                             ; preds = %1010
  br label %1036

1036:                                             ; preds = %1035
  %1037 = load i64, ptr %8, align 8, !tbaa !11
  %1038 = add nsw i64 %1037, 1
  store i64 %1038, ptr %8, align 8, !tbaa !11
  br label %780, !llvm.loop !46

1039:                                             ; preds = %780
  %1040 = load i8, ptr %29, align 1, !tbaa !5, !range !29, !noundef !30
  %1041 = trunc i8 %1040 to i1
  br i1 %1041, label %1046, label %1042

1042:                                             ; preds = %1039
  %1043 = load double, ptr %21, align 8, !tbaa !13
  %1044 = load double, ptr %22, align 8, !tbaa !13
  %1045 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1043, double noundef %1044)
  br label %1046

1046:                                             ; preds = %1042, %1039
  %1047 = phi i1 [ true, %1039 ], [ %1045, %1042 ]
  %1048 = zext i1 %1047 to i8
  store i8 %1048, ptr %29, align 1, !tbaa !5
  %1049 = load i8, ptr %26, align 1, !tbaa !5, !range !29, !noundef !30
  %1050 = trunc i8 %1049 to i1
  br i1 %1050, label %1063, label %1051

1051:                                             ; preds = %1046
  %1052 = load i8, ptr %28, align 1, !tbaa !5, !range !29, !noundef !30
  %1053 = trunc i8 %1052 to i1
  br i1 %1053, label %1063, label %1054

1054:                                             ; preds = %1051
  %1055 = load i8, ptr %25, align 1, !tbaa !5, !range !29, !noundef !30
  %1056 = trunc i8 %1055 to i1
  br i1 %1056, label %1063, label %1057

1057:                                             ; preds = %1054
  %1058 = load i8, ptr %27, align 1, !tbaa !5, !range !29, !noundef !30
  %1059 = trunc i8 %1058 to i1
  br i1 %1059, label %1063, label %1060

1060:                                             ; preds = %1057
  %1061 = load i8, ptr %29, align 1, !tbaa !5, !range !29, !noundef !30
  %1062 = trunc i8 %1061 to i1
  br label %1063

1063:                                             ; preds = %1060, %1057, %1054, %1051, %1046
  %1064 = phi i1 [ true, %1057 ], [ true, %1054 ], [ true, %1051 ], [ true, %1046 ], [ %1062, %1060 ]
  %1065 = zext i1 %1064 to i8
  store i8 %1065, ptr %30, align 1, !tbaa !5
  %1066 = load i8, ptr %3, align 1, !tbaa !5, !range !29, !noundef !30
  %1067 = trunc i8 %1066 to i1
  br i1 %1067, label %1125, label %1068

1068:                                             ; preds = %1063
  %1069 = call i32 (ptr, ...) @printf(ptr noundef @.str.939)
  %1070 = call i32 (ptr, ...) @printf(ptr noundef @.str.735)
  %1071 = load i8, ptr %30, align 1, !tbaa !5, !range !29, !noundef !30
  %1072 = trunc i8 %1071 to i1
  br i1 %1072, label %1073, label %1075

1073:                                             ; preds = %1068
  %1074 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %1077

1075:                                             ; preds = %1068
  %1076 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %1077

1077:                                             ; preds = %1075, %1073
  %1078 = call i32 (ptr, ...) @printf(ptr noundef @.str.940)
  %1079 = load i8, ptr %26, align 1, !tbaa !5, !range !29, !noundef !30
  %1080 = trunc i8 %1079 to i1
  br i1 %1080, label %1081, label %1083

1081:                                             ; preds = %1077
  %1082 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %1085

1083:                                             ; preds = %1077
  %1084 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %1085

1085:                                             ; preds = %1083, %1081
  %1086 = call i32 (ptr, ...) @printf(ptr noundef @.str.941)
  %1087 = load i8, ptr %25, align 1, !tbaa !5, !range !29, !noundef !30
  %1088 = trunc i8 %1087 to i1
  br i1 %1088, label %1089, label %1091

1089:                                             ; preds = %1085
  %1090 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %1093

1091:                                             ; preds = %1085
  %1092 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %1093

1093:                                             ; preds = %1091, %1089
  %1094 = call i32 (ptr, ...) @printf(ptr noundef @.str.942)
  %1095 = load i8, ptr %28, align 1, !tbaa !5, !range !29, !noundef !30
  %1096 = trunc i8 %1095 to i1
  br i1 %1096, label %1097, label %1099

1097:                                             ; preds = %1093
  %1098 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %1101

1099:                                             ; preds = %1093
  %1100 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %1101

1101:                                             ; preds = %1099, %1097
  %1102 = call i32 (ptr, ...) @printf(ptr noundef @.str.943)
  %1103 = load i8, ptr %27, align 1, !tbaa !5, !range !29, !noundef !30
  %1104 = trunc i8 %1103 to i1
  br i1 %1104, label %1105, label %1107

1105:                                             ; preds = %1101
  %1106 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %1109

1107:                                             ; preds = %1101
  %1108 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %1109

1109:                                             ; preds = %1107, %1105
  %1110 = call i32 (ptr, ...) @printf(ptr noundef @.str.944)
  %1111 = load i8, ptr %29, align 1, !tbaa !5, !range !29, !noundef !30
  %1112 = trunc i8 %1111 to i1
  br i1 %1112, label %1113, label %1115

1113:                                             ; preds = %1109
  %1114 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %1117

1115:                                             ; preds = %1109
  %1116 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %1117

1117:                                             ; preds = %1115, %1113
  %1118 = load i8, ptr %30, align 1, !tbaa !5, !range !29, !noundef !30
  %1119 = trunc i8 %1118 to i1
  br i1 %1119, label %1120, label %1122

1120:                                             ; preds = %1117
  %1121 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  br label %1124

1122:                                             ; preds = %1117
  %1123 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  br label %1124

1124:                                             ; preds = %1122, %1120
  br label %1125

1125:                                             ; preds = %1124, %1063
  %1126 = load i8, ptr %30, align 1, !tbaa !5, !range !29, !noundef !30
  %1127 = trunc i8 %1126 to i1
  %1128 = xor i1 %1127, true
  %1129 = zext i1 %1128 to i8
  store i8 %1129, ptr %31, align 1, !tbaa !5
  %1130 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1130)
  %1131 = load i8, ptr %31, align 1, !tbaa !5, !range !29, !noundef !30
  %1132 = trunc i8 %1131 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  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 24, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 408, 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 %1132
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree 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 = !{i64 0, i64 8, !13, i64 8, i64 8, !13}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = !{!25, !12, i64 0}
!25 = !{!"_ZTSN11alglib_impl9ae_vectorE", !12, i64 0, !12, i64 8, !6, i64 16, !26, i64 24, !7, i64 56}
!26 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !21}
!33 = distinct !{!33, !21}
!34 = distinct !{!34, !21}
!35 = distinct !{!35, !21}
!36 = distinct !{!36, !21}
!37 = distinct !{!37, !21}
!38 = distinct !{!38, !21}
!39 = distinct !{!39, !21}
!40 = distinct !{!40, !21}
!41 = distinct !{!41, !21}
!42 = distinct !{!42, !21}
!43 = distinct !{!43, !21}
!44 = distinct !{!44, !21}
!45 = distinct !{!45, !21}
!46 = distinct !{!46, !21}


; 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::fasttransformplan" = type { %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool" }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_shared_pool" = type { %"struct.alglib_impl::ae_lock", ptr, ptr, ptr, ptr, i64, ptr, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }
%"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.931 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.932 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.933 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.934 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.935 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.936 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.937 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.938 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.939 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.940 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.941 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.942 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.943 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.944 = 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 i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double 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

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

declare 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 { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef) 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 @_Z7testfftbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #6 {
  %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::fasttransformplan", align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %14 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %3)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %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(408) %10, i8 0, i64 408, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %13, 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 4, 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 4, 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 4, 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 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl23_fasttransformplan_initEPvPNS_8ae_stateEb(ptr noundef nonnull %10, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %13, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  %15 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef 1.280000e+02, double noundef 1.500000e+00, ptr noundef %1)
  %16 = fmul double %15, 1.000000e+05
  store i8 0, ptr %14, align 1, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %4, i64 56
  %18 = getelementptr inbounds i8, ptr %5, i64 56
  %19 = getelementptr inbounds i8, ptr %6, i64 56
  %20 = getelementptr inbounds i8, ptr %7, i64 56
  %21 = getelementptr inbounds i8, ptr %8, i64 56
  br label %22

22:                                               ; preds = %2, %112
  %.0410 = phi i64 [ 1, %2 ], [ %113, %112 ]
  %.0374409 = phi double [ 0.000000e+00, %2 ], [ %60, %112 ]
  %.0376408 = phi double [ 0.000000e+00, %2 ], [ %110, %112 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0410, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0410, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0410, ptr noundef %1)
  br label %23

23:                                               ; preds = %22, %23
  %.0371402 = phi i64 [ 0, %22 ], [ %40, %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 %17, align 8, !tbaa !9
  %27 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %26, i64 %.0371402
  store double %25, ptr %27, align 8, !tbaa !10
  %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 %17, align 8, !tbaa !9
  %31 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %30, i64 %.0371402, i32 1
  store double %29, ptr %31, align 8, !tbaa !13
  %32 = load ptr, ptr %17, align 8, !tbaa !9
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %32, i64 %.0371402
  %34 = load ptr, ptr %18, align 8, !tbaa !9
  %35 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %34, i64 %.0371402
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %33, i64 16, i1 false), !tbaa.struct !14
  %36 = load ptr, ptr %17, align 8, !tbaa !9
  %37 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %36, i64 %.0371402
  %38 = load ptr, ptr %19, align 8, !tbaa !9
  %39 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %38, i64 %.0371402
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(16) %37, i64 16, i1 false), !tbaa.struct !14
  %40 = add nuw nsw i64 %.0371402, 1
  %exitcond.not = icmp eq i64 %40, %.0410
  br i1 %exitcond.not, label %41, label %23, !llvm.loop !16

41:                                               ; preds = %23
  call void @_ZN11alglib_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0410, ptr noundef %1)
  call void @_ZN11alglib_impl9fftc1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0410, ptr noundef %1)
  call void @_ZN11alglib_impl9fftc1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0410, ptr noundef %1)
  call void @_ZN11alglib_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0410, ptr noundef %1)
  br label %42

42:                                               ; preds = %41, %42
  %.1372404 = phi i64 [ 0, %41 ], [ %61, %42 ]
  %.1375403 = phi double [ %.0374409, %41 ], [ %60, %42 ]
  %43 = load ptr, ptr %17, align 8, !tbaa !9
  %44 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %43, i64 %.1372404
  %.sroa.030.0.copyload = load double, ptr %44, align 8, !tbaa !15
  %.sroa.231.0..sroa_idx = getelementptr inbounds i8, ptr %44, i64 8
  %.sroa.231.0.copyload = load double, ptr %.sroa.231.0..sroa_idx, align 8, !tbaa !15
  %45 = load ptr, ptr %18, align 8, !tbaa !9
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %45, i64 %.1372404
  %.sroa.028.0.copyload = load double, ptr %46, align 8, !tbaa !15
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %46, i64 8
  %.sroa.229.0.copyload = load double, ptr %.sroa.229.0..sroa_idx, align 8, !tbaa !15
  %47 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %.sroa.030.0.copyload, double %.sroa.231.0.copyload, double %.sroa.028.0.copyload, double %.sroa.229.0.copyload)
  %48 = extractvalue { double, double } %47, 0
  %49 = extractvalue { double, double } %47, 1
  %50 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %48, double %49, ptr noundef %1)
  %51 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.1375403, double noundef %50, ptr noundef %1)
  %52 = load ptr, ptr %17, align 8, !tbaa !9
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %52, i64 %.1372404
  %.sroa.024.0.copyload = load double, ptr %53, align 8, !tbaa !15
  %.sroa.225.0..sroa_idx = getelementptr inbounds i8, ptr %53, i64 8
  %.sroa.225.0.copyload = load double, ptr %.sroa.225.0..sroa_idx, align 8, !tbaa !15
  %54 = load ptr, ptr %19, align 8, !tbaa !9
  %55 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %54, i64 %.1372404
  %.sroa.022.0.copyload = load double, ptr %55, align 8, !tbaa !15
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %55, i64 8
  %.sroa.223.0.copyload = load double, ptr %.sroa.223.0..sroa_idx, align 8, !tbaa !15
  %56 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %.sroa.024.0.copyload, double %.sroa.225.0.copyload, double %.sroa.022.0.copyload, double %.sroa.223.0.copyload)
  %57 = extractvalue { double, double } %56, 0
  %58 = extractvalue { double, double } %56, 1
  %59 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %57, double %58, ptr noundef %1)
  %60 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %51, double noundef %59, ptr noundef %1)
  %61 = add nuw nsw i64 %.1372404, 1
  %exitcond443.not = icmp eq i64 %61, %.0410
  br i1 %exitcond443.not, label %62, label %42, !llvm.loop !18

62:                                               ; preds = %42
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0410, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0410, ptr noundef %1)
  br label %63

63:                                               ; preds = %62, %63
  %.2405 = phi i64 [ 0, %62 ], [ %73, %63 ]
  %64 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %65 = call double @llvm.fmuladd.f64(double %64, double 2.000000e+00, double -1.000000e+00)
  %66 = load ptr, ptr %20, align 8, !tbaa !9
  %67 = getelementptr inbounds double, ptr %66, i64 %.2405
  store double %65, ptr %67, align 8, !tbaa !15
  %68 = load ptr, ptr %20, align 8, !tbaa !9
  %69 = getelementptr inbounds double, ptr %68, i64 %.2405
  %70 = load double, ptr %69, align 8, !tbaa !15
  %71 = load ptr, ptr %21, align 8, !tbaa !9
  %72 = getelementptr inbounds double, ptr %71, i64 %.2405
  store double %70, ptr %72, align 8, !tbaa !15
  %73 = add nuw nsw i64 %.2405, 1
  %exitcond444.not = icmp eq i64 %73, %.0410
  br i1 %exitcond444.not, label %74, label %63, !llvm.loop !19

74:                                               ; preds = %63
  %75 = shl nuw nsw i64 %.0410, 1
  %76 = add nuw nsw i64 %75, 5
  %77 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %76, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %77, ptr noundef %1)
  %78 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  %79 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %78, double noundef 0.000000e+00)
  br i1 %79, label %80, label %83

80:                                               ; preds = %74
  call void @_ZN11alglib_impl6fftr1dEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0410, ptr noundef nonnull %4, ptr noundef %1)
  %81 = load i64, ptr %4, align 8, !tbaa !20
  %82 = icmp ne i64 %81, %.0410
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %14, i1 noundef zeroext %82, ptr noundef nonnull @.str.19, i32 noundef 124297, ptr noundef nonnull @.str.931)
  br label %87

83:                                               ; preds = %74
  call void @_ZN11alglib_impl9fftr1dbufEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0410, ptr noundef nonnull %4, ptr noundef %1)
  %84 = load i64, ptr %4, align 8, !tbaa !20
  %85 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %.0410, i64 noundef %77, ptr noundef %1)
  %86 = icmp ne i64 %84, %85
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %14, i1 noundef zeroext %86, ptr noundef nonnull @.str.19, i32 noundef 124302, ptr noundef nonnull @.str.932)
  br label %87

87:                                               ; preds = %83, %80
  %88 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %76, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %88, ptr noundef %1)
  %89 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  %90 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %89, double noundef 0.000000e+00)
  br i1 %90, label %91, label %94

91:                                               ; preds = %87
  call void @_ZN11alglib_impl9fftr1dinvEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0410, ptr noundef nonnull %8, ptr noundef %1)
  %92 = load i64, ptr %8, align 8, !tbaa !20
  %93 = icmp ne i64 %92, %.0410
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %14, i1 noundef zeroext %93, ptr noundef nonnull @.str.19, i32 noundef 124309, ptr noundef nonnull @.str.933)
  br label %.preheader476

94:                                               ; preds = %87
  call void @_ZN11alglib_impl12fftr1dinvbufEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0410, ptr noundef nonnull %8, ptr noundef %1)
  %95 = load i64, ptr %8, align 8, !tbaa !20
  %96 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %.0410, i64 noundef %88, ptr noundef %1)
  %97 = icmp ne i64 %95, %96
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %14, i1 noundef zeroext %97, ptr noundef nonnull @.str.19, i32 noundef 124314, ptr noundef nonnull @.str.934)
  br label %.preheader476

.preheader476:                                    ; preds = %94, %91
  br label %98

98:                                               ; preds = %.preheader476, %98
  %.3407 = phi i64 [ %111, %98 ], [ 0, %.preheader476 ]
  %.1377406 = phi double [ %110, %98 ], [ %.0376408, %.preheader476 ]
  %99 = load ptr, ptr %20, align 8, !tbaa !9
  %100 = getelementptr inbounds double, ptr %99, i64 %.3407
  %101 = load double, ptr %100, align 8, !tbaa !15
  %102 = load ptr, ptr %21, align 8, !tbaa !9
  %103 = getelementptr inbounds double, ptr %102, i64 %.3407
  %104 = load double, ptr %103, align 8, !tbaa !15
  %105 = fsub double %101, %104
  %106 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %105)
  %107 = extractvalue { double, double } %106, 0
  %108 = extractvalue { double, double } %106, 1
  %109 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %107, double %108, ptr noundef %1)
  %110 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.1377406, double noundef %109, ptr noundef %1)
  %111 = add nuw nsw i64 %.3407, 1
  %exitcond445.not = icmp eq i64 %111, %.0410
  br i1 %exitcond445.not, label %112, label %98, !llvm.loop !25

112:                                              ; preds = %98
  %113 = add nuw nsw i64 %.0410, 1
  %exitcond446.not = icmp eq i64 %113, 129
  br i1 %exitcond446.not, label %114, label %22, !llvm.loop !26

114:                                              ; preds = %112
  %115 = fmul double %16, 5.000000e-16
  %116 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %60, double noundef %115)
  %117 = load i8, ptr %14, align 1, !tbaa !5, !range !27, !noundef !28
  %118 = trunc nuw i8 %117 to i1
  br i1 %118, label %122, label %119

119:                                              ; preds = %114
  %120 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %110, double noundef %115)
  %121 = zext i1 %120 to i8
  br label %122

122:                                              ; preds = %119, %114
  %123 = phi i8 [ 1, %114 ], [ %121, %119 ]
  store i8 %123, ptr %14, align 1, !tbaa !5
  store double 0.000000e+00, ptr %11, align 8, !tbaa !15
  store double 0.000000e+00, ptr %12, align 8, !tbaa !15
  br label %124

124:                                              ; preds = %122, %282
  %indvar = phi i64 [ 0, %122 ], [ %indvar.next, %282 ]
  %.1421 = phi i64 [ 1, %122 ], [ %283, %282 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1421, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1421, ptr noundef %1)
  br label %125

125:                                              ; preds = %124, %125
  %.4411 = phi i64 [ 0, %124 ], [ %138, %125 ]
  %126 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %127 = call double @llvm.fmuladd.f64(double %126, double 2.000000e+00, double -1.000000e+00)
  %128 = load ptr, ptr %17, align 8, !tbaa !9
  %129 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %128, i64 %.4411
  store double %127, ptr %129, align 8, !tbaa !10
  %130 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %131 = call double @llvm.fmuladd.f64(double %130, double 2.000000e+00, double -1.000000e+00)
  %132 = load ptr, ptr %17, align 8, !tbaa !9
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %132, i64 %.4411, i32 1
  store double %131, ptr %133, align 8, !tbaa !13
  %134 = load ptr, ptr %17, align 8, !tbaa !9
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %134, i64 %.4411
  %136 = load ptr, ptr %18, align 8, !tbaa !9
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %136, i64 %.4411
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %137, ptr noundef nonnull align 8 dereferenceable(16) %135, i64 16, i1 false), !tbaa.struct !14
  %138 = add nuw nsw i64 %.4411, 1
  %exitcond447.not = icmp eq i64 %138, %.1421
  br i1 %exitcond447.not, label %139, label %125, !llvm.loop !29

139:                                              ; preds = %125
  call void @_ZN11alglib_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1421, ptr noundef %1)
  call void @_ZL21testfftunit_reffftc1dPN11alglib_impl9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1421, ptr noundef %1)
  %.pre = load double, ptr %11, align 8, !tbaa !15
  br label %140

140:                                              ; preds = %139, %140
  %141 = phi double [ %.pre, %139 ], [ %150, %140 ]
  %.5412 = phi i64 [ 0, %139 ], [ %151, %140 ]
  %142 = load ptr, ptr %17, align 8, !tbaa !9
  %143 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %142, i64 %.5412
  %.sroa.016.0.copyload = load double, ptr %143, align 8, !tbaa !15
  %.sroa.217.0..sroa_idx = getelementptr inbounds i8, ptr %143, i64 8
  %.sroa.217.0.copyload = load double, ptr %.sroa.217.0..sroa_idx, align 8, !tbaa !15
  %144 = load ptr, ptr %18, align 8, !tbaa !9
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %144, i64 %.5412
  %.sroa.014.0.copyload = load double, ptr %145, align 8, !tbaa !15
  %.sroa.215.0..sroa_idx = getelementptr inbounds i8, ptr %145, i64 8
  %.sroa.215.0.copyload = load double, ptr %.sroa.215.0..sroa_idx, align 8, !tbaa !15
  %146 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %.sroa.016.0.copyload, double %.sroa.217.0.copyload, double %.sroa.014.0.copyload, double %.sroa.215.0.copyload)
  %147 = extractvalue { double, double } %146, 0
  %148 = extractvalue { double, double } %146, 1
  %149 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %147, double %148, ptr noundef %1)
  %150 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %141, double noundef %149, ptr noundef %1)
  store double %150, ptr %11, align 8, !tbaa !15
  %151 = add nuw nsw i64 %.5412, 1
  %exitcond448.not = icmp eq i64 %151, %.1421
  br i1 %exitcond448.not, label %152, label %140, !llvm.loop !30

152:                                              ; preds = %140
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1421, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1421, ptr noundef %1)
  br label %153

153:                                              ; preds = %152, %153
  %.6413 = phi i64 [ 0, %152 ], [ %166, %153 ]
  %154 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %155 = call double @llvm.fmuladd.f64(double %154, double 2.000000e+00, double -1.000000e+00)
  %156 = load ptr, ptr %17, align 8, !tbaa !9
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %156, i64 %.6413
  store double %155, ptr %157, align 8, !tbaa !10
  %158 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %159 = call double @llvm.fmuladd.f64(double %158, double 2.000000e+00, double -1.000000e+00)
  %160 = load ptr, ptr %17, align 8, !tbaa !9
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %160, i64 %.6413, i32 1
  store double %159, ptr %161, align 8, !tbaa !13
  %162 = load ptr, ptr %17, align 8, !tbaa !9
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %162, i64 %.6413
  %164 = load ptr, ptr %18, align 8, !tbaa !9
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %164, i64 %.6413
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %165, ptr noundef nonnull align 8 dereferenceable(16) %163, i64 16, i1 false), !tbaa.struct !14
  %166 = add nuw nsw i64 %.6413, 1
  %exitcond449.not = icmp eq i64 %166, %.1421
  br i1 %exitcond449.not, label %167, label %153, !llvm.loop !31

167:                                              ; preds = %153
  call void @_ZN11alglib_impl9fftc1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1421, ptr noundef %1)
  call void @_ZL24testfftunit_reffftc1dinvPN11alglib_impl9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1421, ptr noundef %1)
  %.pre461 = load double, ptr %11, align 8, !tbaa !15
  br label %168

168:                                              ; preds = %167, %168
  %169 = phi double [ %.pre461, %167 ], [ %178, %168 ]
  %.7414 = phi i64 [ 0, %167 ], [ %179, %168 ]
  %170 = load ptr, ptr %17, align 8, !tbaa !9
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %170, i64 %.7414
  %.sroa.010.0.copyload = load double, ptr %171, align 8, !tbaa !15
  %.sroa.211.0..sroa_idx = getelementptr inbounds i8, ptr %171, i64 8
  %.sroa.211.0.copyload = load double, ptr %.sroa.211.0..sroa_idx, align 8, !tbaa !15
  %172 = load ptr, ptr %18, align 8, !tbaa !9
  %173 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %172, i64 %.7414
  %.sroa.08.0.copyload = load double, ptr %173, align 8, !tbaa !15
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %173, i64 8
  %.sroa.29.0.copyload = load double, ptr %.sroa.29.0..sroa_idx, align 8, !tbaa !15
  %174 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %.sroa.010.0.copyload, double %.sroa.211.0.copyload, double %.sroa.08.0.copyload, double %.sroa.29.0.copyload)
  %175 = extractvalue { double, double } %174, 0
  %176 = extractvalue { double, double } %174, 1
  %177 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %175, double %176, ptr noundef %1)
  %178 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %169, double noundef %177, ptr noundef %1)
  store double %178, ptr %11, align 8, !tbaa !15
  %179 = add nuw nsw i64 %.7414, 1
  %exitcond450.not = icmp eq i64 %179, %.1421
  br i1 %exitcond450.not, label %180, label %168, !llvm.loop !32

180:                                              ; preds = %168
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.1421, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.1421, ptr noundef %1)
  br label %181

181:                                              ; preds = %180, %181
  %.8415 = phi i64 [ 0, %180 ], [ %191, %181 ]
  %182 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %183 = call double @llvm.fmuladd.f64(double %182, double 2.000000e+00, double -1.000000e+00)
  %184 = load ptr, ptr %20, align 8, !tbaa !9
  %185 = getelementptr inbounds double, ptr %184, i64 %.8415
  store double %183, ptr %185, align 8, !tbaa !15
  %186 = load ptr, ptr %20, align 8, !tbaa !9
  %187 = getelementptr inbounds double, ptr %186, i64 %.8415
  %188 = load double, ptr %187, align 8, !tbaa !15
  %189 = load ptr, ptr %21, align 8, !tbaa !9
  %190 = getelementptr inbounds double, ptr %189, i64 %.8415
  store double %188, ptr %190, align 8, !tbaa !15
  %191 = add nuw nsw i64 %.8415, 1
  %exitcond451.not = icmp eq i64 %191, %.1421
  br i1 %exitcond451.not, label %192, label %181, !llvm.loop !33

192:                                              ; preds = %181
  %193 = shl nuw nsw i64 %.1421, 1
  %194 = add nuw nsw i64 %193, 5
  %195 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %194, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %195, ptr noundef %1)
  %196 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  %197 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %196, double noundef 0.000000e+00)
  br i1 %197, label %198, label %201

198:                                              ; preds = %192
  call void @_ZN11alglib_impl6fftr1dEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.1421, ptr noundef nonnull %4, ptr noundef %1)
  %199 = load i64, ptr %4, align 8, !tbaa !20
  %200 = icmp ne i64 %199, %.1421
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %14, i1 noundef zeroext %200, ptr noundef nonnull @.str.19, i32 noundef 124388, ptr noundef nonnull @.str.935)
  br label %205

201:                                              ; preds = %192
  call void @_ZN11alglib_impl9fftr1dbufEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.1421, ptr noundef nonnull %4, ptr noundef %1)
  %202 = load i64, ptr %4, align 8, !tbaa !20
  %203 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %.1421, i64 noundef %195, ptr noundef %1)
  %204 = icmp ne i64 %202, %203
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %14, i1 noundef zeroext %204, ptr noundef nonnull @.str.19, i32 noundef 124393, ptr noundef nonnull @.str.936)
  br label %205

205:                                              ; preds = %201, %198
  call void @_ZL27testfftunit_refinternalrfftPKN11alglib_impl9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.1421, ptr noundef nonnull %5, ptr noundef %1)
  %.pre462 = load double, ptr %12, align 8, !tbaa !15
  br label %206

206:                                              ; preds = %205, %206
  %207 = phi double [ %.pre462, %205 ], [ %216, %206 ]
  %.9416 = phi i64 [ 0, %205 ], [ %217, %206 ]
  %208 = load ptr, ptr %17, align 8, !tbaa !9
  %209 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %208, i64 %.9416
  %.sroa.04.0.copyload = load double, ptr %209, align 8, !tbaa !15
  %.sroa.25.0..sroa_idx = getelementptr inbounds i8, ptr %209, i64 8
  %.sroa.25.0.copyload = load double, ptr %.sroa.25.0..sroa_idx, align 8, !tbaa !15
  %210 = load ptr, ptr %18, align 8, !tbaa !9
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %210, i64 %.9416
  %.sroa.03.0.copyload = load double, ptr %211, align 8, !tbaa !15
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %211, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !15
  %212 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %.sroa.04.0.copyload, double %.sroa.25.0.copyload, double %.sroa.03.0.copyload, double %.sroa.2.0.copyload)
  %213 = extractvalue { double, double } %212, 0
  %214 = extractvalue { double, double } %212, 1
  %215 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %213, double %214, ptr noundef %1)
  %216 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %207, double noundef %215, ptr noundef %1)
  store double %216, ptr %12, align 8, !tbaa !15
  %217 = add nuw nsw i64 %.9416, 1
  %exitcond452.not = icmp eq i64 %217, %.1421
  br i1 %exitcond452.not, label %218, label %206, !llvm.loop !34

218:                                              ; preds = %206
  %219 = uitofp nneg i64 %.1421 to double
  %220 = fmul double %219, 5.000000e-01
  %221 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %220, ptr noundef %1)
  %222 = add nsw i64 %221, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %222, ptr noundef %1)
  %223 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %220, ptr noundef %1)
  %.not417 = icmp slt i64 %223, 0
  br i1 %.not417, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %218, %.lr.ph
  %.10418 = phi i64 [ %228, %.lr.ph ], [ 0, %218 ]
  %224 = load ptr, ptr %18, align 8, !tbaa !9
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %224, i64 %.10418
  %226 = load ptr, ptr %19, align 8, !tbaa !9
  %227 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %226, i64 %.10418
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %227, ptr noundef nonnull align 8 dereferenceable(16) %225, i64 16, i1 false), !tbaa.struct !14
  %228 = add nuw nsw i64 %.10418, 1
  %229 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %220, ptr noundef %1)
  %.not.not439 = icmp slt i64 %.10418, %229
  br i1 %.not.not439, label %.lr.ph, label %._crit_edge, !llvm.loop !35

._crit_edge:                                      ; preds = %.lr.ph, %218
  %230 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %231 = call double @llvm.fmuladd.f64(double %230, double 2.000000e+00, double -1.000000e+00)
  %232 = load ptr, ptr %19, align 8, !tbaa !9
  %233 = getelementptr inbounds i8, ptr %232, i64 8
  store double %231, ptr %233, align 8, !tbaa !13
  %234 = and i64 %.1421, 1
  %235 = icmp eq i64 %234, 0
  br i1 %235, label %236, label %.preheader

236:                                              ; preds = %._crit_edge
  %237 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %238 = call double @llvm.fmuladd.f64(double %237, double 2.000000e+00, double -1.000000e+00)
  %239 = load ptr, ptr %19, align 8, !tbaa !9
  %240 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %220, ptr noundef %1)
  %241 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %239, i64 %240, i32 1
  store double %238, ptr %241, align 8, !tbaa !13
  br label %.preheader

.preheader:                                       ; preds = %236, %._crit_edge
  %xtraiter = and i64 %.1421, 3
  %242 = icmp ult i64 %indvar, 3
  br i1 %242, label %.unr-lcssa, label %.preheader.new

.preheader.new:                                   ; preds = %.preheader
  %unroll_iter = and i64 %.1421, 9223372036854775804
  br label %243

243:                                              ; preds = %243, %.preheader.new
  %.11419 = phi i64 [ 0, %.preheader.new ], [ %255, %243 ]
  %niter = phi i64 [ 0, %.preheader.new ], [ %niter.next.3, %243 ]
  %244 = load ptr, ptr %20, align 8, !tbaa !9
  %245 = getelementptr inbounds double, ptr %244, i64 %.11419
  store double 0.000000e+00, ptr %245, align 8, !tbaa !15
  %246 = or disjoint i64 %.11419, 1
  %247 = load ptr, ptr %20, align 8, !tbaa !9
  %248 = getelementptr inbounds double, ptr %247, i64 %246
  store double 0.000000e+00, ptr %248, align 8, !tbaa !15
  %249 = or disjoint i64 %.11419, 2
  %250 = load ptr, ptr %20, align 8, !tbaa !9
  %251 = getelementptr inbounds double, ptr %250, i64 %249
  store double 0.000000e+00, ptr %251, align 8, !tbaa !15
  %252 = or disjoint i64 %.11419, 3
  %253 = load ptr, ptr %20, align 8, !tbaa !9
  %254 = getelementptr inbounds double, ptr %253, i64 %252
  store double 0.000000e+00, ptr %254, align 8, !tbaa !15
  %255 = add nuw nsw i64 %.11419, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.unr-lcssa, label %243, !llvm.loop !36

.unr-lcssa:                                       ; preds = %243, %.preheader
  %.11419.unr = phi i64 [ 0, %.preheader ], [ %255, %243 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.epilog-lcssa, label %.epil.preheader

.epil.preheader:                                  ; preds = %.unr-lcssa, %.epil.preheader
  %.11419.epil = phi i64 [ %258, %.epil.preheader ], [ %.11419.unr, %.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.unr-lcssa ]
  %256 = load ptr, ptr %20, align 8, !tbaa !9
  %257 = getelementptr inbounds double, ptr %256, i64 %.11419.epil
  store double 0.000000e+00, ptr %257, align 8, !tbaa !15
  %258 = add nuw nsw i64 %.11419.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.epilog-lcssa, label %.epil.preheader, !llvm.loop !37

.epilog-lcssa:                                    ; preds = %.epil.preheader, %.unr-lcssa
  %259 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %194, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %259, ptr noundef %1)
  %260 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  %261 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %260, double noundef 0.000000e+00)
  br i1 %261, label %262, label %265

262:                                              ; preds = %.epilog-lcssa
  call void @_ZN11alglib_impl9fftr1dinvEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.1421, ptr noundef nonnull %7, ptr noundef %1)
  %263 = load i64, ptr %7, align 8, !tbaa !20
  %264 = icmp ne i64 %263, %.1421
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %14, i1 noundef zeroext %264, ptr noundef nonnull @.str.19, i32 noundef 124419, ptr noundef nonnull @.str.937)
  br label %269

265:                                              ; preds = %.epilog-lcssa
  call void @_ZN11alglib_impl12fftr1dinvbufEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.1421, ptr noundef nonnull %7, ptr noundef %1)
  %266 = load i64, ptr %7, align 8, !tbaa !20
  %267 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %.1421, i64 noundef %259, ptr noundef %1)
  %268 = icmp ne i64 %266, %267
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %14, i1 noundef zeroext %268, ptr noundef nonnull @.str.19, i32 noundef 124424, ptr noundef nonnull @.str.938)
  br label %269

269:                                              ; preds = %265, %262
  %.pre463 = load double, ptr %12, align 8, !tbaa !15
  br label %270

270:                                              ; preds = %269, %270
  %271 = phi double [ %.pre463, %269 ], [ %280, %270 ]
  %.12420 = phi i64 [ 0, %269 ], [ %281, %270 ]
  %272 = load ptr, ptr %21, align 8, !tbaa !9
  %273 = getelementptr inbounds double, ptr %272, i64 %.12420
  %274 = load double, ptr %273, align 8, !tbaa !15
  %275 = load ptr, ptr %20, align 8, !tbaa !9
  %276 = getelementptr inbounds double, ptr %275, i64 %.12420
  %277 = load double, ptr %276, align 8, !tbaa !15
  %278 = fsub double %274, %277
  %279 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %278, ptr noundef %1)
  %280 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %271, double noundef %279, ptr noundef %1)
  store double %280, ptr %12, align 8, !tbaa !15
  %281 = add nuw nsw i64 %.12420, 1
  %exitcond454.not = icmp eq i64 %281, %.1421
  br i1 %exitcond454.not, label %282, label %270, !llvm.loop !39

282:                                              ; preds = %270
  %283 = add nuw nsw i64 %.1421, 1
  %exitcond455.not = icmp eq i64 %283, 129
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond455.not, label %284, label %124, !llvm.loop !40

284:                                              ; preds = %282
  %285 = load double, ptr %11, align 8, !tbaa !15
  %286 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %285, double noundef %115)
  %287 = load double, ptr %12, align 8, !tbaa !15
  %288 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %287, double noundef %115)
  store double 0.000000e+00, ptr %11, align 8, !tbaa !15
  store double 0.000000e+00, ptr %12, align 8, !tbaa !15
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 1000, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %1)
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 1024, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %1)
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 1025, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %1)
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 2000, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %1)
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 2048, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %1)
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 6535, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %1)
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 65536, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %1)
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 104729, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %1)
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 139129, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %1)
  call void @_ZL21testfftunit_quicktestlPdS_PN11alglib_impl8ae_stateE(i64 noundef 141740, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %1)
  br i1 %286, label %292, label %289

289:                                              ; preds = %284
  %290 = load double, ptr %11, align 8, !tbaa !15
  %291 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %290, double noundef %115)
  br label %292

292:                                              ; preds = %289, %284
  %293 = phi i1 [ true, %284 ], [ %291, %289 ]
  br i1 %288, label %297, label %294

294:                                              ; preds = %292
  %295 = load double, ptr %12, align 8, !tbaa !15
  %296 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %295, double noundef %115)
  br label %297

297:                                              ; preds = %294, %292
  %298 = phi i1 [ true, %292 ], [ %296, %294 ]
  br label %299

299:                                              ; preds = %297, %402
  %indvars.iv = phi i64 [ 2, %297 ], [ %indvars.iv.next, %402 ]
  %.0373438 = phi i64 [ 1, %297 ], [ %403, %402 ]
  %.0378437 = phi double [ 0.000000e+00, %297 ], [ %400, %402 ]
  %300 = shl nuw nsw i64 %.0373438, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %300, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %300, ptr noundef %1)
  br label %301

301:                                              ; preds = %299, %301
  %.13422 = phi i64 [ 0, %299 ], [ %311, %301 ]
  %302 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %303 = call double @llvm.fmuladd.f64(double %302, double 2.000000e+00, double -1.000000e+00)
  %304 = load ptr, ptr %20, align 8, !tbaa !9
  %305 = getelementptr inbounds double, ptr %304, i64 %.13422
  store double %303, ptr %305, align 8, !tbaa !15
  %306 = load ptr, ptr %20, align 8, !tbaa !9
  %307 = getelementptr inbounds double, ptr %306, i64 %.13422
  %308 = load double, ptr %307, align 8, !tbaa !15
  %309 = load ptr, ptr %21, align 8, !tbaa !9
  %310 = getelementptr inbounds double, ptr %309, i64 %.13422
  store double %308, ptr %310, align 8, !tbaa !15
  %311 = add nuw nsw i64 %.13422, 1
  %exitcond456.not = icmp eq i64 %311, %indvars.iv
  br i1 %exitcond456.not, label %312, label %301, !llvm.loop !41

312:                                              ; preds = %301
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %.0373438, i64 noundef 1, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %300, ptr noundef %1)
  call void @_ZN11alglib_impl18fftr1dinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %300, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZL27testfftunit_refinternalrfftPKN11alglib_impl9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %300, ptr noundef nonnull %5, ptr noundef %1)
  %313 = load ptr, ptr %20, align 8, !tbaa !9
  %314 = load double, ptr %313, align 8, !tbaa !15
  %315 = load ptr, ptr %18, align 8, !tbaa !9
  %316 = load double, ptr %315, align 8, !tbaa !10
  %317 = fsub double %314, %316
  %318 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %317, ptr noundef %1)
  %319 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0378437, double noundef %318, ptr noundef %1)
  %320 = load ptr, ptr %20, align 8, !tbaa !9
  %321 = getelementptr inbounds i8, ptr %320, i64 8
  %322 = load double, ptr %321, align 8, !tbaa !15
  %323 = load ptr, ptr %18, align 8, !tbaa !9
  %324 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %323, i64 %.0373438
  %325 = load double, ptr %324, align 8, !tbaa !10
  %326 = fsub double %322, %325
  %327 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %326, ptr noundef %1)
  %328 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %319, double noundef %327, ptr noundef %1)
  %.not.not384423 = icmp ugt i64 %.0373438, 1
  br i1 %.not.not384423, label %.lr.ph427, label %._crit_edge428

.lr.ph427:                                        ; preds = %312, %.lr.ph427
  %.14425 = phi i64 [ %349, %.lr.ph427 ], [ 1, %312 ]
  %.1379424 = phi double [ %348, %.lr.ph427 ], [ %328, %312 ]
  %329 = load ptr, ptr %20, align 8, !tbaa !9
  %330 = shl nuw nsw i64 %.14425, 1
  %331 = getelementptr inbounds double, ptr %329, i64 %330
  %332 = load double, ptr %331, align 8, !tbaa !15
  %333 = load ptr, ptr %18, align 8, !tbaa !9
  %334 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %333, i64 %.14425
  %335 = load double, ptr %334, align 8, !tbaa !10
  %336 = fsub double %332, %335
  %337 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %336, ptr noundef %1)
  %338 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.1379424, double noundef %337, ptr noundef %1)
  %339 = load ptr, ptr %20, align 8, !tbaa !9
  %340 = or disjoint i64 %330, 1
  %341 = getelementptr inbounds double, ptr %339, i64 %340
  %342 = load double, ptr %341, align 8, !tbaa !15
  %343 = load ptr, ptr %18, align 8, !tbaa !9
  %344 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %343, i64 %.14425, i32 1
  %345 = load double, ptr %344, align 8, !tbaa !13
  %346 = fsub double %342, %345
  %347 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %346, ptr noundef %1)
  %348 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %338, double noundef %347, ptr noundef %1)
  %349 = add nuw nsw i64 %.14425, 1
  %exitcond457.not = icmp eq i64 %349, %.0373438
  br i1 %exitcond457.not, label %._crit_edge428, label %.lr.ph427, !llvm.loop !42

._crit_edge428:                                   ; preds = %.lr.ph427, %312
  %.1379.lcssa = phi double [ %328, %312 ], [ %348, %.lr.ph427 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %300, ptr noundef %1)
  br label %350

350:                                              ; preds = %._crit_edge428, %350
  %.15429 = phi i64 [ 0, %._crit_edge428 ], [ %355, %350 ]
  %351 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %352 = call double @llvm.fmuladd.f64(double %351, double 2.000000e+00, double -1.000000e+00)
  %353 = load ptr, ptr %20, align 8, !tbaa !9
  %354 = getelementptr inbounds double, ptr %353, i64 %.15429
  store double %352, ptr %354, align 8, !tbaa !15
  %355 = add nuw nsw i64 %.15429, 1
  %exitcond458.not = icmp eq i64 %355, %indvars.iv
  br i1 %exitcond458.not, label %356, label %350, !llvm.loop !43

356:                                              ; preds = %350
  %357 = uitofp nneg i64 %300 to double
  %358 = fmul double %357, 5.000000e-01
  %359 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %358, ptr noundef %1)
  %360 = add nsw i64 %359, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %360, ptr noundef %1)
  %361 = load ptr, ptr %20, align 8, !tbaa !9
  %362 = load double, ptr %361, align 8, !tbaa !15
  %363 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %362)
  %364 = extractvalue { double, double } %363, 0
  %365 = extractvalue { double, double } %363, 1
  %366 = load ptr, ptr %18, align 8, !tbaa !9
  store double %364, ptr %366, align 8, !tbaa !15
  %.sroa.42.0..sroa_idx = getelementptr inbounds i8, ptr %366, i64 8
  store double %365, ptr %.sroa.42.0..sroa_idx, align 8, !tbaa !15
  %367 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %358, ptr noundef %1)
  %.not.not386430 = icmp sgt i64 %367, 1
  br i1 %.not.not386430, label %.lr.ph433, label %._crit_edge434

.lr.ph433:                                        ; preds = %356, %.lr.ph433
  %.16431 = phi i64 [ %380, %.lr.ph433 ], [ 1, %356 ]
  %368 = load ptr, ptr %20, align 8, !tbaa !9
  %369 = shl nuw nsw i64 %.16431, 1
  %370 = getelementptr inbounds double, ptr %368, i64 %369
  %371 = load double, ptr %370, align 8, !tbaa !15
  %372 = load ptr, ptr %18, align 8, !tbaa !9
  %373 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %372, i64 %.16431
  store double %371, ptr %373, align 8, !tbaa !10
  %374 = load ptr, ptr %20, align 8, !tbaa !9
  %375 = or disjoint i64 %369, 1
  %376 = getelementptr inbounds double, ptr %374, i64 %375
  %377 = load double, ptr %376, align 8, !tbaa !15
  %378 = load ptr, ptr %18, align 8, !tbaa !9
  %379 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %378, i64 %.16431, i32 1
  store double %377, ptr %379, align 8, !tbaa !13
  %380 = add nuw nsw i64 %.16431, 1
  %381 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %358, ptr noundef %1)
  %.not.not386 = icmp slt i64 %380, %381
  br i1 %.not.not386, label %.lr.ph433, label %._crit_edge434, !llvm.loop !44

._crit_edge434:                                   ; preds = %.lr.ph433, %356
  %382 = load ptr, ptr %20, align 8, !tbaa !9
  %383 = getelementptr inbounds i8, ptr %382, i64 8
  %384 = load double, ptr %383, align 8, !tbaa !15
  %385 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %384)
  %386 = extractvalue { double, double } %385, 0
  %387 = extractvalue { double, double } %385, 1
  %388 = load ptr, ptr %18, align 8, !tbaa !9
  %389 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %358, ptr noundef %1)
  %390 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %388, i64 %389
  store double %386, ptr %390, align 8, !tbaa !15
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %390, i64 8
  store double %387, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !15
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %.0373438, i64 noundef 1, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %300, ptr noundef %1)
  call void @_ZN11alglib_impl21fftr1dinvinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %300, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZN11alglib_impl9fftr1dinvEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %300, ptr noundef nonnull %8, ptr noundef %1)
  br label %391

391:                                              ; preds = %._crit_edge434, %391
  %.17436 = phi i64 [ 0, %._crit_edge434 ], [ %401, %391 ]
  %.2380435 = phi double [ %.1379.lcssa, %._crit_edge434 ], [ %400, %391 ]
  %392 = load ptr, ptr %20, align 8, !tbaa !9
  %393 = getelementptr inbounds double, ptr %392, i64 %.17436
  %394 = load double, ptr %393, align 8, !tbaa !15
  %395 = load ptr, ptr %21, align 8, !tbaa !9
  %396 = getelementptr inbounds double, ptr %395, i64 %.17436
  %397 = load double, ptr %396, align 8, !tbaa !15
  %398 = fsub double %394, %397
  %399 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %398, ptr noundef %1)
  %400 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.2380435, double noundef %399, ptr noundef %1)
  %401 = add nuw nsw i64 %.17436, 1
  %exitcond459.not = icmp eq i64 %401, %indvars.iv
  br i1 %exitcond459.not, label %402, label %391, !llvm.loop !45

402:                                              ; preds = %391
  %403 = add nuw nsw i64 %.0373438, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
  %exitcond460.not = icmp eq i64 %403, 65
  br i1 %exitcond460.not, label %404, label %299, !llvm.loop !46

404:                                              ; preds = %402
  %405 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %400, double noundef %115)
  %406 = load i8, ptr %14, align 1, !range !27
  %407 = trunc nuw i8 %406 to i1
  %brmerge = or i1 %293, %407
  %or.cond = select i1 %116, i1 true, i1 %brmerge
  %408 = or i1 %405, %or.cond
  %spec.select401 = or i1 %298, %408
  br i1 %0, label %425, label %.sink.split

.sink.split:                                      ; preds = %404
  %409 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.939)
  %410 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.735)
  %.str.2..str.3 = select i1 %spec.select401, ptr @.str.2, ptr @.str.3
  %411 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2..str.3)
  %412 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.940)
  %.str.3.sink467 = select i1 %116, ptr @.str.2, ptr @.str.3
  %413 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink467)
  %414 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.941)
  %.str.3.sink468 = select i1 %293, ptr @.str.2, ptr @.str.3
  %415 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink468)
  %416 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.942)
  %417 = load i8, ptr %14, align 1, !tbaa !5, !range !27, !noundef !28
  %418 = trunc nuw i8 %417 to i1
  %.str.3.sink469 = select i1 %418, ptr @.str.2, ptr @.str.3
  %419 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink469)
  %420 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.943)
  %.str.3.sink470 = select i1 %298, ptr @.str.2, ptr @.str.3
  %421 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink470)
  %422 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.944)
  %.str.3.sink471 = select i1 %405, ptr @.str.2, ptr @.str.3
  %423 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink471)
  %.str.15.sink = select i1 %spec.select401, ptr @.str.15, ptr @.str.16
  %424 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.15.sink)
  br label %425

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{i64 0, i64 8, !15, i64 8, i64 8, !15}
!15 = !{!12, !12, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = !{!21, !22, i64 0}
!21 = !{!"_ZTSN11alglib_impl9ae_vectorE", !22, i64 0, !22, i64 8, !6, i64 16, !23, i64 24, !7, i64 56}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !24, i64 0, !24, i64 8, !24, i64 16, !24, i64 24}
!24 = !{!"any pointer", !7, i64 0}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = distinct !{!29, !17}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}
!32 = distinct !{!32, !17}
!33 = distinct !{!33, !17}
!34 = distinct !{!34, !17}
!35 = distinct !{!35, !17}
!36 = distinct !{!36, !17}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.unroll.disable"}
!39 = distinct !{!39, !17}
!40 = distinct !{!40, !17}
!41 = distinct !{!41, !17}
!42 = distinct !{!42, !17}
!43 = distinct !{!43, !17}
!44 = distinct !{!44, !17}
!45 = distinct !{!45, !17}
!46 = distinct !{!46, !17}


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