; LLVM IR from venumb/ZSPACE :: cpp/depends/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, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }
%"struct.alglib_impl::ae_complex" = type { double, double }

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.579 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.590 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.591 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.592 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.593 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.594 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.595 = external hidden unnamed_addr constant [43 x i8], align 1

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) #1

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

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

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

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

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

declare void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef, i64 noundef, i64 noundef, double noundef) #1

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

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

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

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

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

declare noundef double @_ZN11alglib_impl6ae_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 i8, align 1
  %24 = alloca i8, align 1
  %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 %"struct.alglib_impl::ae_complex", align 8
  %31 = alloca %"struct.alglib_impl::ae_complex", align 8
  %32 = alloca %"struct.alglib_impl::ae_complex", align 8
  %33 = alloca %"struct.alglib_impl::ae_complex", align 8
  %34 = alloca %"struct.alglib_impl::ae_complex", align 8
  %35 = alloca %"struct.alglib_impl::ae_complex", align 8
  %36 = alloca %"struct.alglib_impl::ae_complex", align 8
  %37 = alloca %"struct.alglib_impl::ae_complex", align 8
  %38 = alloca %"struct.alglib_impl::ae_complex", align 8
  %39 = alloca %"struct.alglib_impl::ae_complex", align 8
  %40 = alloca %"struct.alglib_impl::ae_complex", align 8
  %41 = alloca %"struct.alglib_impl::ae_complex", align 8
  %42 = alloca %"struct.alglib_impl::ae_complex", align 8
  %43 = alloca %"struct.alglib_impl::ae_complex", align 8
  %44 = alloca %"struct.alglib_impl::ae_complex", align 8
  %45 = alloca %"struct.alglib_impl::ae_complex", align 8
  %46 = alloca %"struct.alglib_impl::ae_complex", align 8
  %47 = alloca %"struct.alglib_impl::ae_complex", align 8
  %48 = zext i1 %0 to i8
  store i8 %48, ptr %3, align 1, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 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 416, 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 1, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #6
  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
  %49 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %49, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %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 416, i1 false)
  %50 = 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 %50, i1 noundef zeroext true)
  %51 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %10, i64 noundef 0, i64 noundef 4, ptr noundef %51, i1 noundef zeroext true)
  %52 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %11, 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 %12, i64 noundef 0, i64 noundef 3, 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 %13, i64 noundef 0, i64 noundef 3, 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 %14, 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_impl23_fasttransformplan_initEPvPNS_8ae_stateEb(ptr noundef %15, ptr noundef %56, i1 noundef zeroext true)
  store i64 128, ptr %16, align 8, !tbaa !11
  %57 = load i64, ptr %16, align 8, !tbaa !11
  %58 = sitofp i64 %57 to double
  %59 = load ptr, ptr %4, align 8, !tbaa !9
  %60 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef %58, double noundef 1.500000e+00, ptr noundef %59)
  %61 = fmul double 1.000000e+05, %60
  %62 = fmul double %61, 5.000000e-16
  store double %62, ptr %22, align 8, !tbaa !13
  store i8 0, ptr %24, align 1, !tbaa !5
  store i8 0, ptr %23, align 1, !tbaa !5
  store i8 0, ptr %26, align 1, !tbaa !5
  store i8 0, ptr %25, align 1, !tbaa !5
  store i8 0, ptr %27, align 1, !tbaa !5
  store i8 0, ptr %28, 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 %63

63:                                               ; preds = %269, %2
  %64 = load i64, ptr %6, align 8, !tbaa !11
  %65 = load i64, ptr %16, align 8, !tbaa !11
  %66 = icmp sle i64 %64, %65
  br i1 %66, label %67, label %272

67:                                               ; preds = %63
  %68 = load i64, ptr %6, align 8, !tbaa !11
  %69 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %68, ptr noundef %69)
  %70 = load i64, ptr %6, align 8, !tbaa !11
  %71 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %70, ptr noundef %71)
  %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 %11, i64 noundef %72, ptr noundef %73)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %74

74:                                               ; preds = %112, %67
  %75 = load i64, ptr %7, align 8, !tbaa !11
  %76 = load i64, ptr %6, align 8, !tbaa !11
  %77 = sub nsw i64 %76, 1
  %78 = icmp sle i64 %75, %77
  br i1 %78, label %79, label %115

79:                                               ; preds = %74
  %80 = load ptr, ptr %4, align 8, !tbaa !9
  %81 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %80)
  %82 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %81, double -1.000000e+00)
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  %85 = load i64, ptr %7, align 8, !tbaa !11
  %86 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %84, i64 %85
  %87 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %86, i32 0, i32 0
  store double %82, ptr %87, align 8, !tbaa !16
  %88 = load ptr, ptr %4, align 8, !tbaa !9
  %89 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %88)
  %90 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %89, double -1.000000e+00)
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %92 = load ptr, ptr %91, align 8, !tbaa !15
  %93 = load i64, ptr %7, align 8, !tbaa !11
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %92, i64 %93
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %94, i32 0, i32 1
  store double %90, ptr %95, align 8, !tbaa !18
  %96 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %97 = load ptr, ptr %96, align 8, !tbaa !15
  %98 = load i64, ptr %7, align 8, !tbaa !11
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %97, i64 %98
  %100 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, 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
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %103, ptr align 8 %99, i64 16, i1 false), !tbaa.struct !19
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, 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
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, 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
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %111, ptr align 8 %107, i64 16, i1 false), !tbaa.struct !19
  br label %112

112:                                              ; preds = %79
  %113 = load i64, ptr %7, align 8, !tbaa !11
  %114 = add nsw i64 %113, 1
  store i64 %114, ptr %7, align 8, !tbaa !11
  br label %74, !llvm.loop !20

115:                                              ; preds = %74
  %116 = load i64, ptr %6, align 8, !tbaa !11
  %117 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %116, ptr noundef %117)
  %118 = load i64, ptr %6, align 8, !tbaa !11
  %119 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fftc1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %118, ptr noundef %119)
  %120 = load i64, ptr %6, align 8, !tbaa !11
  %121 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fftc1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, 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_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef %122, ptr noundef %123)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %124

124:                                              ; preds = %190, %115
  %125 = load i64, ptr %7, align 8, !tbaa !11
  %126 = load i64, ptr %6, align 8, !tbaa !11
  %127 = sub nsw i64 %126, 1
  %128 = icmp sle i64 %125, %127
  br i1 %128, label %129, label %193

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

190:                                              ; preds = %129
  %191 = load i64, ptr %7, align 8, !tbaa !11
  %192 = add nsw i64 %191, 1
  store i64 %192, ptr %7, align 8, !tbaa !11
  br label %124, !llvm.loop !22

193:                                              ; preds = %124
  %194 = load i64, ptr %6, align 8, !tbaa !11
  %195 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %194, ptr noundef %195)
  %196 = load i64, ptr %6, align 8, !tbaa !11
  %197 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %196, ptr noundef %197)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %198

198:                                              ; preds = %220, %193
  %199 = load i64, ptr %7, align 8, !tbaa !11
  %200 = load i64, ptr %6, align 8, !tbaa !11
  %201 = sub nsw i64 %200, 1
  %202 = icmp sle i64 %199, %201
  br i1 %202, label %203, label %223

203:                                              ; preds = %198
  %204 = load ptr, ptr %4, align 8, !tbaa !9
  %205 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %204)
  %206 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %205, double -1.000000e+00)
  %207 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %208 = load ptr, ptr %207, align 8, !tbaa !15
  %209 = load i64, ptr %7, align 8, !tbaa !11
  %210 = getelementptr inbounds double, ptr %208, i64 %209
  store double %206, ptr %210, align 8, !tbaa !13
  %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
  %215 = load double, ptr %214, align 8, !tbaa !13
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %217 = load ptr, ptr %216, align 8, !tbaa !15
  %218 = load i64, ptr %7, align 8, !tbaa !11
  %219 = getelementptr inbounds double, ptr %217, i64 %218
  store double %215, ptr %219, align 8, !tbaa !13
  br label %220

220:                                              ; preds = %203
  %221 = load i64, ptr %7, align 8, !tbaa !11
  %222 = add nsw i64 %221, 1
  store i64 %222, ptr %7, align 8, !tbaa !11
  br label %198, !llvm.loop !23

223:                                              ; preds = %198
  %224 = load i64, ptr %6, align 8, !tbaa !11
  %225 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl6fftr1dEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef %13, i64 noundef %224, ptr noundef %9, ptr noundef %225)
  %226 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %227 = load ptr, ptr %226, align 8, !tbaa !15
  %228 = getelementptr inbounds double, ptr %227, i64 0
  %229 = load i64, ptr %6, align 8, !tbaa !11
  %230 = sub nsw i64 %229, 1
  %231 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %230)
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %228, i64 noundef 1, i64 noundef %231, double noundef 0.000000e+00)
  %232 = load i64, ptr %6, align 8, !tbaa !11
  %233 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fftr1dinvEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef %9, i64 noundef %232, ptr noundef %13, ptr noundef %233)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %234

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

239:                                              ; preds = %234
  %240 = load double, ptr %18, align 8, !tbaa !13
  %241 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %242 = load ptr, ptr %241, align 8, !tbaa !15
  %243 = load i64, ptr %7, align 8, !tbaa !11
  %244 = getelementptr inbounds double, ptr %242, i64 %243
  %245 = load double, ptr %244, align 8, !tbaa !13
  %246 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %247 = load ptr, ptr %246, align 8, !tbaa !15
  %248 = load i64, ptr %7, align 8, !tbaa !11
  %249 = getelementptr inbounds double, ptr %247, i64 %248
  %250 = load double, ptr %249, align 8, !tbaa !13
  %251 = fsub double %245, %250
  %252 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %251)
  %253 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %254 = extractvalue { double, double } %252, 0
  store double %254, ptr %253, align 8
  %255 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %256 = extractvalue { double, double } %252, 1
  store double %256, ptr %255, align 8
  %257 = load ptr, ptr %4, align 8, !tbaa !9
  %258 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %259 = load double, ptr %258, align 8
  %260 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %261 = load double, ptr %260, align 8
  %262 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %259, double %261, ptr noundef %257)
  %263 = load ptr, ptr %4, align 8, !tbaa !9
  %264 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %240, double noundef %262, ptr noundef %263)
  store double %264, ptr %18, align 8, !tbaa !13
  br label %265

265:                                              ; preds = %239
  %266 = load i64, ptr %7, align 8, !tbaa !11
  %267 = add nsw i64 %266, 1
  store i64 %267, ptr %7, align 8, !tbaa !11
  br label %234, !llvm.loop !24

268:                                              ; preds = %234
  br label %269

269:                                              ; preds = %268
  %270 = load i64, ptr %6, align 8, !tbaa !11
  %271 = add nsw i64 %270, 1
  store i64 %271, ptr %6, align 8, !tbaa !11
  br label %63, !llvm.loop !25

272:                                              ; preds = %63
  %273 = load i8, ptr %24, align 1, !tbaa !5, !range !26, !noundef !27
  %274 = trunc i8 %273 to i1
  br i1 %274, label %279, label %275

275:                                              ; preds = %272
  %276 = load double, ptr %17, align 8, !tbaa !13
  %277 = load double, ptr %22, align 8, !tbaa !13
  %278 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %276, double noundef %277)
  br label %279

279:                                              ; preds = %275, %272
  %280 = phi i1 [ true, %272 ], [ %278, %275 ]
  %281 = zext i1 %280 to i8
  store i8 %281, ptr %24, align 1, !tbaa !5
  %282 = load i8, ptr %26, align 1, !tbaa !5, !range !26, !noundef !27
  %283 = trunc i8 %282 to i1
  br i1 %283, label %288, label %284

284:                                              ; preds = %279
  %285 = load double, ptr %18, align 8, !tbaa !13
  %286 = load double, ptr %22, align 8, !tbaa !13
  %287 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %285, double noundef %286)
  br label %288

288:                                              ; preds = %284, %279
  %289 = phi i1 [ true, %279 ], [ %287, %284 ]
  %290 = zext i1 %289 to i8
  store i8 %290, ptr %26, 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 %291

291:                                              ; preds = %628, %288
  %292 = load i64, ptr %6, align 8, !tbaa !11
  %293 = load i64, ptr %16, align 8, !tbaa !11
  %294 = icmp sle i64 %292, %293
  br i1 %294, label %295, label %631

295:                                              ; preds = %291
  %296 = load i64, ptr %6, align 8, !tbaa !11
  %297 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %296, ptr noundef %297)
  %298 = load i64, ptr %6, align 8, !tbaa !11
  %299 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %298, ptr noundef %299)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %300

300:                                              ; preds = %330, %295
  %301 = load i64, ptr %7, align 8, !tbaa !11
  %302 = load i64, ptr %6, align 8, !tbaa !11
  %303 = sub nsw i64 %302, 1
  %304 = icmp sle i64 %301, %303
  br i1 %304, label %305, label %333

305:                                              ; preds = %300
  %306 = load ptr, ptr %4, align 8, !tbaa !9
  %307 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %306)
  %308 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %307, double -1.000000e+00)
  %309 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %310 = load ptr, ptr %309, align 8, !tbaa !15
  %311 = load i64, ptr %7, align 8, !tbaa !11
  %312 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %310, i64 %311
  %313 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %312, i32 0, i32 0
  store double %308, ptr %313, align 8, !tbaa !16
  %314 = load ptr, ptr %4, align 8, !tbaa !9
  %315 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %314)
  %316 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %315, double -1.000000e+00)
  %317 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %318 = load ptr, ptr %317, align 8, !tbaa !15
  %319 = load i64, ptr %7, align 8, !tbaa !11
  %320 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %318, i64 %319
  %321 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %320, i32 0, i32 1
  store double %316, ptr %321, align 8, !tbaa !18
  %322 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %323 = load ptr, ptr %322, align 8, !tbaa !15
  %324 = load i64, ptr %7, align 8, !tbaa !11
  %325 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %323, i64 %324
  %326 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %327 = load ptr, ptr %326, align 8, !tbaa !15
  %328 = load i64, ptr %7, align 8, !tbaa !11
  %329 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %327, i64 %328
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %329, ptr align 8 %325, i64 16, i1 false), !tbaa.struct !19
  br label %330

330:                                              ; preds = %305
  %331 = load i64, ptr %7, align 8, !tbaa !11
  %332 = add nsw i64 %331, 1
  store i64 %332, ptr %7, align 8, !tbaa !11
  br label %300, !llvm.loop !28

333:                                              ; preds = %300
  %334 = load i64, ptr %6, align 8, !tbaa !11
  %335 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %334, ptr noundef %335)
  %336 = load i64, ptr %6, align 8, !tbaa !11
  %337 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL21testfftunit_reffftc1dPN11alglib_impl9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %336, ptr noundef %337)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %338

338:                                              ; preds = %374, %333
  %339 = load i64, ptr %7, align 8, !tbaa !11
  %340 = load i64, ptr %6, align 8, !tbaa !11
  %341 = sub nsw i64 %340, 1
  %342 = icmp sle i64 %339, %341
  br i1 %342, label %343, label %377

343:                                              ; preds = %338
  %344 = load double, ptr %19, align 8, !tbaa !13
  %345 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %346 = load ptr, ptr %345, align 8, !tbaa !15
  %347 = load i64, ptr %7, align 8, !tbaa !11
  %348 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %346, i64 %347
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %348, i64 16, i1 false), !tbaa.struct !19
  %349 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %350 = load ptr, ptr %349, align 8, !tbaa !15
  %351 = load i64, ptr %7, align 8, !tbaa !11
  %352 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %350, i64 %351
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 8 %352, i64 16, i1 false), !tbaa.struct !19
  %353 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %354 = load double, ptr %353, align 8
  %355 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %356 = load double, ptr %355, align 8
  %357 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %358 = load double, ptr %357, align 8
  %359 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %360 = load double, ptr %359, align 8
  %361 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %354, double %356, double %358, double %360)
  %362 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %363 = extractvalue { double, double } %361, 0
  store double %363, ptr %362, align 8
  %364 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %365 = extractvalue { double, double } %361, 1
  store double %365, ptr %364, align 8
  %366 = load ptr, ptr %4, align 8, !tbaa !9
  %367 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %368 = load double, ptr %367, align 8
  %369 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %370 = load double, ptr %369, align 8
  %371 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %368, double %370, ptr noundef %366)
  %372 = load ptr, ptr %4, align 8, !tbaa !9
  %373 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %344, double noundef %371, ptr noundef %372)
  store double %373, ptr %19, align 8, !tbaa !13
  br label %374

374:                                              ; preds = %343
  %375 = load i64, ptr %7, align 8, !tbaa !11
  %376 = add nsw i64 %375, 1
  store i64 %376, ptr %7, align 8, !tbaa !11
  br label %338, !llvm.loop !29

377:                                              ; preds = %338
  %378 = load i64, ptr %6, align 8, !tbaa !11
  %379 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %378, ptr noundef %379)
  %380 = load i64, ptr %6, align 8, !tbaa !11
  %381 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %380, ptr noundef %381)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %382

382:                                              ; preds = %412, %377
  %383 = load i64, ptr %7, align 8, !tbaa !11
  %384 = load i64, ptr %6, align 8, !tbaa !11
  %385 = sub nsw i64 %384, 1
  %386 = icmp sle i64 %383, %385
  br i1 %386, label %387, label %415

387:                                              ; preds = %382
  %388 = load ptr, ptr %4, align 8, !tbaa !9
  %389 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %388)
  %390 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %389, double -1.000000e+00)
  %391 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %392 = load ptr, ptr %391, align 8, !tbaa !15
  %393 = load i64, ptr %7, align 8, !tbaa !11
  %394 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %392, i64 %393
  %395 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %394, i32 0, i32 0
  store double %390, ptr %395, align 8, !tbaa !16
  %396 = load ptr, ptr %4, align 8, !tbaa !9
  %397 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %396)
  %398 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %397, double -1.000000e+00)
  %399 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, 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
  %403 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %402, i32 0, i32 1
  store double %398, ptr %403, align 8, !tbaa !18
  %404 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %405 = load ptr, ptr %404, align 8, !tbaa !15
  %406 = load i64, ptr %7, align 8, !tbaa !11
  %407 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %405, i64 %406
  %408 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %409 = load ptr, ptr %408, align 8, !tbaa !15
  %410 = load i64, ptr %7, align 8, !tbaa !11
  %411 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %409, i64 %410
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %411, ptr align 8 %407, i64 16, i1 false), !tbaa.struct !19
  br label %412

412:                                              ; preds = %387
  %413 = load i64, ptr %7, align 8, !tbaa !11
  %414 = add nsw i64 %413, 1
  store i64 %414, ptr %7, align 8, !tbaa !11
  br label %382, !llvm.loop !30

415:                                              ; preds = %382
  %416 = load i64, ptr %6, align 8, !tbaa !11
  %417 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fftc1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %416, ptr noundef %417)
  %418 = load i64, ptr %6, align 8, !tbaa !11
  %419 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL24testfftunit_reffftc1dinvPN11alglib_impl9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %418, ptr noundef %419)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %420

420:                                              ; preds = %456, %415
  %421 = load i64, ptr %7, align 8, !tbaa !11
  %422 = load i64, ptr %6, align 8, !tbaa !11
  %423 = sub nsw i64 %422, 1
  %424 = icmp sle i64 %421, %423
  br i1 %424, label %425, label %459

425:                                              ; preds = %420
  %426 = load double, ptr %19, align 8, !tbaa !13
  %427 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %428 = load ptr, ptr %427, align 8, !tbaa !15
  %429 = load i64, ptr %7, align 8, !tbaa !11
  %430 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %428, i64 %429
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %430, i64 16, i1 false), !tbaa.struct !19
  %431 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %432 = load ptr, ptr %431, align 8, !tbaa !15
  %433 = load i64, ptr %7, align 8, !tbaa !11
  %434 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %432, i64 %433
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %42, ptr align 8 %434, i64 16, i1 false), !tbaa.struct !19
  %435 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %436 = load double, ptr %435, align 8
  %437 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %438 = load double, ptr %437, align 8
  %439 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %440 = load double, ptr %439, align 8
  %441 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %442 = load double, ptr %441, align 8
  %443 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %436, double %438, double %440, double %442)
  %444 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %445 = extractvalue { double, double } %443, 0
  store double %445, ptr %444, align 8
  %446 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %447 = extractvalue { double, double } %443, 1
  store double %447, ptr %446, align 8
  %448 = load ptr, ptr %4, align 8, !tbaa !9
  %449 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %450 = load double, ptr %449, align 8
  %451 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %452 = load double, ptr %451, align 8
  %453 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %450, double %452, ptr noundef %448)
  %454 = load ptr, ptr %4, align 8, !tbaa !9
  %455 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %426, double noundef %453, ptr noundef %454)
  store double %455, ptr %19, align 8, !tbaa !13
  br label %456

456:                                              ; preds = %425
  %457 = load i64, ptr %7, align 8, !tbaa !11
  %458 = add nsw i64 %457, 1
  store i64 %458, ptr %7, align 8, !tbaa !11
  br label %420, !llvm.loop !31

459:                                              ; preds = %420
  %460 = load i64, ptr %6, align 8, !tbaa !11
  %461 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %460, ptr noundef %461)
  %462 = load i64, ptr %6, align 8, !tbaa !11
  %463 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %462, ptr noundef %463)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %464

464:                                              ; preds = %486, %459
  %465 = load i64, ptr %7, align 8, !tbaa !11
  %466 = load i64, ptr %6, align 8, !tbaa !11
  %467 = sub nsw i64 %466, 1
  %468 = icmp sle i64 %465, %467
  br i1 %468, label %469, label %489

469:                                              ; preds = %464
  %470 = load ptr, ptr %4, align 8, !tbaa !9
  %471 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %470)
  %472 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %471, double -1.000000e+00)
  %473 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %474 = load ptr, ptr %473, align 8, !tbaa !15
  %475 = load i64, ptr %7, align 8, !tbaa !11
  %476 = getelementptr inbounds double, ptr %474, i64 %475
  store double %472, ptr %476, align 8, !tbaa !13
  %477 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, 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 double, ptr %478, i64 %479
  %481 = load double, ptr %480, align 8, !tbaa !13
  %482 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %483 = load ptr, ptr %482, align 8, !tbaa !15
  %484 = load i64, ptr %7, align 8, !tbaa !11
  %485 = getelementptr inbounds double, ptr %483, i64 %484
  store double %481, ptr %485, align 8, !tbaa !13
  br label %486

486:                                              ; preds = %469
  %487 = load i64, ptr %7, align 8, !tbaa !11
  %488 = add nsw i64 %487, 1
  store i64 %488, ptr %7, align 8, !tbaa !11
  br label %464, !llvm.loop !32

489:                                              ; preds = %464
  %490 = load i64, ptr %6, align 8, !tbaa !11
  %491 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl6fftr1dEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef %12, i64 noundef %490, ptr noundef %9, ptr noundef %491)
  %492 = load i64, ptr %6, align 8, !tbaa !11
  %493 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL27testfftunit_refinternalrfftPN11alglib_impl9ae_vectorElS1_PNS_8ae_stateE(ptr noundef %13, i64 noundef %492, ptr noundef %10, ptr noundef %493)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %494

494:                                              ; preds = %530, %489
  %495 = load i64, ptr %7, align 8, !tbaa !11
  %496 = load i64, ptr %6, align 8, !tbaa !11
  %497 = sub nsw i64 %496, 1
  %498 = icmp sle i64 %495, %497
  br i1 %498, label %499, label %533

499:                                              ; preds = %494
  %500 = load double, ptr %20, align 8, !tbaa !13
  %501 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %502 = load ptr, ptr %501, align 8, !tbaa !15
  %503 = load i64, ptr %7, align 8, !tbaa !11
  %504 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %502, i64 %503
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 8 %504, i64 16, i1 false), !tbaa.struct !19
  %505 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %506 = load ptr, ptr %505, align 8, !tbaa !15
  %507 = load i64, ptr %7, align 8, !tbaa !11
  %508 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %506, i64 %507
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %508, i64 16, i1 false), !tbaa.struct !19
  %509 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %510 = load double, ptr %509, align 8
  %511 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %512 = load double, ptr %511, align 8
  %513 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %514 = load double, ptr %513, align 8
  %515 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %516 = load double, ptr %515, align 8
  %517 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %510, double %512, double %514, double %516)
  %518 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %519 = extractvalue { double, double } %517, 0
  store double %519, ptr %518, align 8
  %520 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %521 = extractvalue { double, double } %517, 1
  store double %521, ptr %520, align 8
  %522 = load ptr, ptr %4, align 8, !tbaa !9
  %523 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %524 = load double, ptr %523, align 8
  %525 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %526 = load double, ptr %525, align 8
  %527 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %524, double %526, ptr noundef %522)
  %528 = load ptr, ptr %4, align 8, !tbaa !9
  %529 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %500, double noundef %527, ptr noundef %528)
  store double %529, ptr %20, align 8, !tbaa !13
  br label %530

530:                                              ; preds = %499
  %531 = load i64, ptr %7, align 8, !tbaa !11
  %532 = add nsw i64 %531, 1
  store i64 %532, ptr %7, align 8, !tbaa !11
  br label %494, !llvm.loop !33

533:                                              ; preds = %494
  %534 = load i64, ptr %6, align 8, !tbaa !11
  %535 = sitofp i64 %534 to double
  %536 = fdiv double %535, 2.000000e+00
  %537 = load ptr, ptr %4, align 8, !tbaa !9
  %538 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %536, ptr noundef %537)
  %539 = add nsw i64 %538, 1
  %540 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef %539, ptr noundef %540)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %541

541:                                              ; preds = %558, %533
  %542 = load i64, ptr %7, align 8, !tbaa !11
  %543 = load i64, ptr %6, align 8, !tbaa !11
  %544 = sitofp i64 %543 to double
  %545 = fdiv double %544, 2.000000e+00
  %546 = load ptr, ptr %4, align 8, !tbaa !9
  %547 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %545, ptr noundef %546)
  %548 = icmp sle i64 %542, %547
  br i1 %548, label %549, label %561

549:                                              ; preds = %541
  %550 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %551 = load ptr, ptr %550, align 8, !tbaa !15
  %552 = load i64, ptr %7, align 8, !tbaa !11
  %553 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %551, i64 %552
  %554 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %555 = load ptr, ptr %554, align 8, !tbaa !15
  %556 = load i64, ptr %7, align 8, !tbaa !11
  %557 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %555, i64 %556
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %557, ptr align 8 %553, i64 16, i1 false), !tbaa.struct !19
  br label %558

558:                                              ; preds = %549
  %559 = load i64, ptr %7, align 8, !tbaa !11
  %560 = add nsw i64 %559, 1
  store i64 %560, ptr %7, align 8, !tbaa !11
  br label %541, !llvm.loop !34

561:                                              ; preds = %541
  %562 = load ptr, ptr %4, align 8, !tbaa !9
  %563 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %562)
  %564 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %563, double -1.000000e+00)
  %565 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %566 = load ptr, ptr %565, align 8, !tbaa !15
  %567 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %566, i64 0
  %568 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %567, i32 0, i32 1
  store double %564, ptr %568, align 8, !tbaa !18
  %569 = load i64, ptr %6, align 8, !tbaa !11
  %570 = srem i64 %569, 2
  %571 = icmp eq i64 %570, 0
  br i1 %571, label %572, label %585

572:                                              ; preds = %561
  %573 = load ptr, ptr %4, align 8, !tbaa !9
  %574 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %573)
  %575 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %574, double -1.000000e+00)
  %576 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %577 = load ptr, ptr %576, align 8, !tbaa !15
  %578 = load i64, ptr %6, align 8, !tbaa !11
  %579 = sitofp i64 %578 to double
  %580 = fdiv double %579, 2.000000e+00
  %581 = load ptr, ptr %4, align 8, !tbaa !9
  %582 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %580, ptr noundef %581)
  %583 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %577, i64 %582
  %584 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %583, i32 0, i32 1
  store double %575, ptr %584, align 8, !tbaa !18
  br label %585

585:                                              ; preds = %572, %561
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %586

586:                                              ; preds = %596, %585
  %587 = load i64, ptr %7, align 8, !tbaa !11
  %588 = load i64, ptr %6, align 8, !tbaa !11
  %589 = sub nsw i64 %588, 1
  %590 = icmp sle i64 %587, %589
  br i1 %590, label %591, label %599

591:                                              ; preds = %586
  %592 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %593 = load ptr, ptr %592, align 8, !tbaa !15
  %594 = load i64, ptr %7, align 8, !tbaa !11
  %595 = getelementptr inbounds double, ptr %593, i64 %594
  store double 0.000000e+00, ptr %595, align 8, !tbaa !13
  br label %596

596:                                              ; preds = %591
  %597 = load i64, ptr %7, align 8, !tbaa !11
  %598 = add nsw i64 %597, 1
  store i64 %598, ptr %7, align 8, !tbaa !11
  br label %586, !llvm.loop !35

599:                                              ; preds = %586
  %600 = load i64, ptr %6, align 8, !tbaa !11
  %601 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fftr1dinvEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef %11, i64 noundef %600, ptr noundef %12, ptr noundef %601)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %602

602:                                              ; preds = %624, %599
  %603 = load i64, ptr %7, align 8, !tbaa !11
  %604 = load i64, ptr %6, align 8, !tbaa !11
  %605 = sub nsw i64 %604, 1
  %606 = icmp sle i64 %603, %605
  br i1 %606, label %607, label %627

607:                                              ; preds = %602
  %608 = load double, ptr %20, align 8, !tbaa !13
  %609 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %610 = load ptr, ptr %609, align 8, !tbaa !15
  %611 = load i64, ptr %7, align 8, !tbaa !11
  %612 = getelementptr inbounds double, ptr %610, i64 %611
  %613 = load double, ptr %612, align 8, !tbaa !13
  %614 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %615 = load ptr, ptr %614, align 8, !tbaa !15
  %616 = load i64, ptr %7, align 8, !tbaa !11
  %617 = getelementptr inbounds double, ptr %615, i64 %616
  %618 = load double, ptr %617, align 8, !tbaa !13
  %619 = fsub double %613, %618
  %620 = load ptr, ptr %4, align 8, !tbaa !9
  %621 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %619, ptr noundef %620)
  %622 = load ptr, ptr %4, align 8, !tbaa !9
  %623 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %608, double noundef %621, ptr noundef %622)
  store double %623, ptr %20, align 8, !tbaa !13
  br label %624

624:                                              ; preds = %607
  %625 = load i64, ptr %7, align 8, !tbaa !11
  %626 = add nsw i64 %625, 1
  store i64 %626, ptr %7, align 8, !tbaa !11
  br label %602, !llvm.loop !36

627:                                              ; preds = %602
  br label %628

628:                                              ; preds = %627
  %629 = load i64, ptr %6, align 8, !tbaa !11
  %630 = add nsw i64 %629, 1
  store i64 %630, ptr %6, align 8, !tbaa !11
  br label %291, !llvm.loop !37

631:                                              ; preds = %291
  %632 = load i8, ptr %23, align 1, !tbaa !5, !range !26, !noundef !27
  %633 = trunc i8 %632 to i1
  br i1 %633, label %638, label %634

634:                                              ; preds = %631
  %635 = load double, ptr %19, align 8, !tbaa !13
  %636 = load double, ptr %22, align 8, !tbaa !13
  %637 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %635, double noundef %636)
  br label %638

638:                                              ; preds = %634, %631
  %639 = phi i1 [ true, %631 ], [ %637, %634 ]
  %640 = zext i1 %639 to i8
  store i8 %640, ptr %23, align 1, !tbaa !5
  %641 = load i8, ptr %25, align 1, !tbaa !5, !range !26, !noundef !27
  %642 = trunc i8 %641 to i1
  br i1 %642, label %647, label %643

643:                                              ; preds = %638
  %644 = load double, ptr %20, align 8, !tbaa !13
  %645 = load double, ptr %22, align 8, !tbaa !13
  %646 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %644, double noundef %645)
  br label %647

647:                                              ; preds = %643, %638
  %648 = phi i1 [ true, %638 ], [ %646, %643 ]
  %649 = zext i1 %648 to i8
  store i8 %649, ptr %25, 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
  %650 = 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 %650)
  %651 = 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 %651)
  %652 = 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 %652)
  %653 = 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 %653)
  %654 = 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 %654)
  %655 = 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 %655)
  %656 = 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 %656)
  %657 = 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 %657)
  %658 = 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 %658)
  %659 = 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 %659)
  %660 = load i8, ptr %23, align 1, !tbaa !5, !range !26, !noundef !27
  %661 = trunc i8 %660 to i1
  br i1 %661, label %666, label %662

662:                                              ; preds = %647
  %663 = load double, ptr %19, align 8, !tbaa !13
  %664 = load double, ptr %22, align 8, !tbaa !13
  %665 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %663, double noundef %664)
  br label %666

666:                                              ; preds = %662, %647
  %667 = phi i1 [ true, %647 ], [ %665, %662 ]
  %668 = zext i1 %667 to i8
  store i8 %668, ptr %23, align 1, !tbaa !5
  %669 = load i8, ptr %25, align 1, !tbaa !5, !range !26, !noundef !27
  %670 = trunc i8 %669 to i1
  br i1 %670, label %675, label %671

671:                                              ; preds = %666
  %672 = load double, ptr %20, align 8, !tbaa !13
  %673 = load double, ptr %22, align 8, !tbaa !13
  %674 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %672, double noundef %673)
  br label %675

675:                                              ; preds = %671, %666
  %676 = phi i1 [ true, %666 ], [ %674, %671 ]
  %677 = zext i1 %676 to i8
  store i8 %677, ptr %25, 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 %678

678:                                              ; preds = %934, %675
  %679 = load i64, ptr %8, align 8, !tbaa !11
  %680 = load i64, ptr %16, align 8, !tbaa !11
  %681 = sdiv i64 %680, 2
  %682 = icmp sle i64 %679, %681
  br i1 %682, label %683, label %937

683:                                              ; preds = %678
  %684 = load i64, ptr %8, align 8, !tbaa !11
  %685 = mul nsw i64 2, %684
  store i64 %685, ptr %6, align 8, !tbaa !11
  %686 = load i64, ptr %6, align 8, !tbaa !11
  %687 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %686, ptr noundef %687)
  %688 = load i64, ptr %6, align 8, !tbaa !11
  %689 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %688, ptr noundef %689)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %690

690:                                              ; preds = %712, %683
  %691 = load i64, ptr %7, align 8, !tbaa !11
  %692 = load i64, ptr %6, align 8, !tbaa !11
  %693 = sub nsw i64 %692, 1
  %694 = icmp sle i64 %691, %693
  br i1 %694, label %695, label %715

695:                                              ; preds = %690
  %696 = load ptr, ptr %4, align 8, !tbaa !9
  %697 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %696)
  %698 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %697, double -1.000000e+00)
  %699 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %700 = load ptr, ptr %699, align 8, !tbaa !15
  %701 = load i64, ptr %7, align 8, !tbaa !11
  %702 = getelementptr inbounds double, ptr %700, i64 %701
  store double %698, ptr %702, align 8, !tbaa !13
  %703 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %704 = load ptr, ptr %703, align 8, !tbaa !15
  %705 = load i64, ptr %7, align 8, !tbaa !11
  %706 = getelementptr inbounds double, ptr %704, i64 %705
  %707 = load double, ptr %706, align 8, !tbaa !13
  %708 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %709 = load ptr, ptr %708, align 8, !tbaa !15
  %710 = load i64, ptr %7, align 8, !tbaa !11
  %711 = getelementptr inbounds double, ptr %709, i64 %710
  store double %707, ptr %711, align 8, !tbaa !13
  br label %712

712:                                              ; preds = %695
  %713 = load i64, ptr %7, align 8, !tbaa !11
  %714 = add nsw i64 %713, 1
  store i64 %714, ptr %7, align 8, !tbaa !11
  br label %690, !llvm.loop !38

715:                                              ; preds = %690
  %716 = load i64, ptr %6, align 8, !tbaa !11
  %717 = sdiv i64 %716, 2
  %718 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %717, i64 noundef 1, ptr noundef %15, ptr noundef %718)
  %719 = load i64, ptr %6, align 8, !tbaa !11
  %720 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %719, ptr noundef %720)
  %721 = load i64, ptr %6, align 8, !tbaa !11
  %722 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18fftr1dinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef %12, i64 noundef %721, ptr noundef %14, ptr noundef %15, ptr noundef %722)
  %723 = load i64, ptr %6, align 8, !tbaa !11
  %724 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL27testfftunit_refinternalrfftPN11alglib_impl9ae_vectorElS1_PNS_8ae_stateE(ptr noundef %13, i64 noundef %723, ptr noundef %10, ptr noundef %724)
  %725 = load double, ptr %21, align 8, !tbaa !13
  %726 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %727 = load ptr, ptr %726, align 8, !tbaa !15
  %728 = getelementptr inbounds double, ptr %727, i64 0
  %729 = load double, ptr %728, align 8, !tbaa !13
  %730 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %731 = load ptr, ptr %730, align 8, !tbaa !15
  %732 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %731, i64 0
  %733 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %732, i32 0, i32 0
  %734 = load double, ptr %733, align 8, !tbaa !16
  %735 = fsub double %729, %734
  %736 = load ptr, ptr %4, align 8, !tbaa !9
  %737 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %735, ptr noundef %736)
  %738 = load ptr, ptr %4, align 8, !tbaa !9
  %739 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %725, double noundef %737, ptr noundef %738)
  store double %739, ptr %21, align 8, !tbaa !13
  %740 = load double, ptr %21, align 8, !tbaa !13
  %741 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %742 = load ptr, ptr %741, align 8, !tbaa !15
  %743 = getelementptr inbounds double, ptr %742, i64 1
  %744 = load double, ptr %743, align 8, !tbaa !13
  %745 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %746 = load ptr, ptr %745, align 8, !tbaa !15
  %747 = load i64, ptr %6, align 8, !tbaa !11
  %748 = sdiv i64 %747, 2
  %749 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %746, i64 %748
  %750 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %749, i32 0, i32 0
  %751 = load double, ptr %750, align 8, !tbaa !16
  %752 = fsub double %744, %751
  %753 = load ptr, ptr %4, align 8, !tbaa !9
  %754 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %752, ptr noundef %753)
  %755 = load ptr, ptr %4, align 8, !tbaa !9
  %756 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %740, double noundef %754, ptr noundef %755)
  store double %756, ptr %21, align 8, !tbaa !13
  store i64 1, ptr %7, align 8, !tbaa !11
  br label %757

757:                                              ; preds = %802, %715
  %758 = load i64, ptr %7, align 8, !tbaa !11
  %759 = load i64, ptr %6, align 8, !tbaa !11
  %760 = sdiv i64 %759, 2
  %761 = sub nsw i64 %760, 1
  %762 = icmp sle i64 %758, %761
  br i1 %762, label %763, label %805

763:                                              ; preds = %757
  %764 = load double, ptr %21, align 8, !tbaa !13
  %765 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %766 = load ptr, ptr %765, align 8, !tbaa !15
  %767 = load i64, ptr %7, align 8, !tbaa !11
  %768 = mul nsw i64 2, %767
  %769 = add nsw i64 %768, 0
  %770 = getelementptr inbounds double, ptr %766, i64 %769
  %771 = load double, ptr %770, align 8, !tbaa !13
  %772 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %773 = load ptr, ptr %772, align 8, !tbaa !15
  %774 = load i64, ptr %7, align 8, !tbaa !11
  %775 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %773, i64 %774
  %776 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %775, i32 0, i32 0
  %777 = load double, ptr %776, align 8, !tbaa !16
  %778 = fsub double %771, %777
  %779 = load ptr, ptr %4, align 8, !tbaa !9
  %780 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %778, ptr noundef %779)
  %781 = load ptr, ptr %4, align 8, !tbaa !9
  %782 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %764, double noundef %780, ptr noundef %781)
  store double %782, ptr %21, align 8, !tbaa !13
  %783 = load double, ptr %21, align 8, !tbaa !13
  %784 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %785 = load ptr, ptr %784, align 8, !tbaa !15
  %786 = load i64, ptr %7, align 8, !tbaa !11
  %787 = mul nsw i64 2, %786
  %788 = add nsw i64 %787, 1
  %789 = getelementptr inbounds double, ptr %785, i64 %788
  %790 = load double, ptr %789, align 8, !tbaa !13
  %791 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %792 = load ptr, ptr %791, align 8, !tbaa !15
  %793 = load i64, ptr %7, align 8, !tbaa !11
  %794 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %792, i64 %793
  %795 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %794, i32 0, i32 1
  %796 = load double, ptr %795, align 8, !tbaa !18
  %797 = fsub double %790, %796
  %798 = load ptr, ptr %4, align 8, !tbaa !9
  %799 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %797, ptr noundef %798)
  %800 = load ptr, ptr %4, align 8, !tbaa !9
  %801 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %783, double noundef %799, ptr noundef %800)
  store double %801, ptr %21, align 8, !tbaa !13
  br label %802

802:                                              ; preds = %763
  %803 = load i64, ptr %7, align 8, !tbaa !11
  %804 = add nsw i64 %803, 1
  store i64 %804, ptr %7, align 8, !tbaa !11
  br label %757, !llvm.loop !39

805:                                              ; preds = %757
  %806 = load i64, ptr %6, align 8, !tbaa !11
  %807 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %806, ptr noundef %807)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %808

808:                                              ; preds = %821, %805
  %809 = load i64, ptr %7, align 8, !tbaa !11
  %810 = load i64, ptr %6, align 8, !tbaa !11
  %811 = sub nsw i64 %810, 1
  %812 = icmp sle i64 %809, %811
  br i1 %812, label %813, label %824

813:                                              ; preds = %808
  %814 = load ptr, ptr %4, align 8, !tbaa !9
  %815 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %814)
  %816 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %815, double -1.000000e+00)
  %817 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %818 = load ptr, ptr %817, align 8, !tbaa !15
  %819 = load i64, ptr %7, align 8, !tbaa !11
  %820 = getelementptr inbounds double, ptr %818, i64 %819
  store double %816, ptr %820, align 8, !tbaa !13
  br label %821

821:                                              ; preds = %813
  %822 = load i64, ptr %7, align 8, !tbaa !11
  %823 = add nsw i64 %822, 1
  store i64 %823, ptr %7, align 8, !tbaa !11
  br label %808, !llvm.loop !40

824:                                              ; preds = %808
  %825 = load i64, ptr %6, align 8, !tbaa !11
  %826 = sitofp i64 %825 to double
  %827 = fdiv double %826, 2.000000e+00
  %828 = load ptr, ptr %4, align 8, !tbaa !9
  %829 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %827, ptr noundef %828)
  %830 = add nsw i64 %829, 1
  %831 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %830, ptr noundef %831)
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #6
  %832 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %833 = load ptr, ptr %832, align 8, !tbaa !15
  %834 = getelementptr inbounds double, ptr %833, i64 0
  %835 = load double, ptr %834, align 8, !tbaa !13
  %836 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %835)
  %837 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %838 = extractvalue { double, double } %836, 0
  store double %838, ptr %837, align 8
  %839 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %840 = extractvalue { double, double } %836, 1
  store double %840, ptr %839, align 8
  %841 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %842 = load ptr, ptr %841, align 8, !tbaa !15
  %843 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %842, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %843, ptr align 8 %46, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #6
  store i64 1, ptr %7, align 8, !tbaa !11
  br label %844

844:                                              ; preds = %878, %824
  %845 = load i64, ptr %7, align 8, !tbaa !11
  %846 = load i64, ptr %6, align 8, !tbaa !11
  %847 = sitofp i64 %846 to double
  %848 = fdiv double %847, 2.000000e+00
  %849 = load ptr, ptr %4, align 8, !tbaa !9
  %850 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %848, ptr noundef %849)
  %851 = sub nsw i64 %850, 1
  %852 = icmp sle i64 %845, %851
  br i1 %852, label %853, label %881

853:                                              ; preds = %844
  %854 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %855 = load ptr, ptr %854, align 8, !tbaa !15
  %856 = load i64, ptr %7, align 8, !tbaa !11
  %857 = mul nsw i64 2, %856
  %858 = add nsw i64 %857, 0
  %859 = getelementptr inbounds double, ptr %855, i64 %858
  %860 = load double, ptr %859, align 8, !tbaa !13
  %861 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %862 = load ptr, ptr %861, align 8, !tbaa !15
  %863 = load i64, ptr %7, align 8, !tbaa !11
  %864 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %862, i64 %863
  %865 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %864, i32 0, i32 0
  store double %860, ptr %865, align 8, !tbaa !16
  %866 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %867 = load ptr, ptr %866, align 8, !tbaa !15
  %868 = load i64, ptr %7, align 8, !tbaa !11
  %869 = mul nsw i64 2, %868
  %870 = add nsw i64 %869, 1
  %871 = getelementptr inbounds double, ptr %867, i64 %870
  %872 = load double, ptr %871, align 8, !tbaa !13
  %873 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %874 = load ptr, ptr %873, align 8, !tbaa !15
  %875 = load i64, ptr %7, align 8, !tbaa !11
  %876 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %874, i64 %875
  %877 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %876, i32 0, i32 1
  store double %872, ptr %877, align 8, !tbaa !18
  br label %878

878:                                              ; preds = %853
  %879 = load i64, ptr %7, align 8, !tbaa !11
  %880 = add nsw i64 %879, 1
  store i64 %880, ptr %7, align 8, !tbaa !11
  br label %844, !llvm.loop !41

881:                                              ; preds = %844
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #6
  %882 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %883 = load ptr, ptr %882, align 8, !tbaa !15
  %884 = getelementptr inbounds double, ptr %883, i64 1
  %885 = load double, ptr %884, align 8, !tbaa !13
  %886 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %885)
  %887 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %888 = extractvalue { double, double } %886, 0
  store double %888, ptr %887, align 8
  %889 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %890 = extractvalue { double, double } %886, 1
  store double %890, ptr %889, align 8
  %891 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %892 = load ptr, ptr %891, align 8, !tbaa !15
  %893 = load i64, ptr %6, align 8, !tbaa !11
  %894 = sitofp i64 %893 to double
  %895 = fdiv double %894, 2.000000e+00
  %896 = load ptr, ptr %4, align 8, !tbaa !9
  %897 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %895, ptr noundef %896)
  %898 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %892, i64 %897
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %898, ptr align 8 %47, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #6
  %899 = load i64, ptr %6, align 8, !tbaa !11
  %900 = sdiv i64 %899, 2
  %901 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %900, i64 noundef 1, ptr noundef %15, ptr noundef %901)
  %902 = load i64, ptr %6, align 8, !tbaa !11
  %903 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %902, ptr noundef %903)
  %904 = load i64, ptr %6, align 8, !tbaa !11
  %905 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21fftr1dinvinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef %12, i64 noundef %904, ptr noundef %14, ptr noundef %15, ptr noundef %905)
  %906 = load i64, ptr %6, align 8, !tbaa !11
  %907 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fftr1dinvEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef %10, i64 noundef %906, ptr noundef %13, ptr noundef %907)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %908

908:                                              ; preds = %930, %881
  %909 = load i64, ptr %7, align 8, !tbaa !11
  %910 = load i64, ptr %6, align 8, !tbaa !11
  %911 = sub nsw i64 %910, 1
  %912 = icmp sle i64 %909, %911
  br i1 %912, label %913, label %933

913:                                              ; preds = %908
  %914 = load double, ptr %21, align 8, !tbaa !13
  %915 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %916 = load ptr, ptr %915, align 8, !tbaa !15
  %917 = load i64, ptr %7, align 8, !tbaa !11
  %918 = getelementptr inbounds double, ptr %916, i64 %917
  %919 = load double, ptr %918, align 8, !tbaa !13
  %920 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %921 = load ptr, ptr %920, align 8, !tbaa !15
  %922 = load i64, ptr %7, align 8, !tbaa !11
  %923 = getelementptr inbounds double, ptr %921, i64 %922
  %924 = load double, ptr %923, align 8, !tbaa !13
  %925 = fsub double %919, %924
  %926 = load ptr, ptr %4, align 8, !tbaa !9
  %927 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %925, ptr noundef %926)
  %928 = load ptr, ptr %4, align 8, !tbaa !9
  %929 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %914, double noundef %927, ptr noundef %928)
  store double %929, ptr %21, align 8, !tbaa !13
  br label %930

930:                                              ; preds = %913
  %931 = load i64, ptr %7, align 8, !tbaa !11
  %932 = add nsw i64 %931, 1
  store i64 %932, ptr %7, align 8, !tbaa !11
  br label %908, !llvm.loop !42

933:                                              ; preds = %908
  br label %934

934:                                              ; preds = %933
  %935 = load i64, ptr %8, align 8, !tbaa !11
  %936 = add nsw i64 %935, 1
  store i64 %936, ptr %8, align 8, !tbaa !11
  br label %678, !llvm.loop !43

937:                                              ; preds = %678
  %938 = load i8, ptr %27, align 1, !tbaa !5, !range !26, !noundef !27
  %939 = trunc i8 %938 to i1
  br i1 %939, label %944, label %940

940:                                              ; preds = %937
  %941 = load double, ptr %21, align 8, !tbaa !13
  %942 = load double, ptr %22, align 8, !tbaa !13
  %943 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %941, double noundef %942)
  br label %944

944:                                              ; preds = %940, %937
  %945 = phi i1 [ true, %937 ], [ %943, %940 ]
  %946 = zext i1 %945 to i8
  store i8 %946, ptr %27, align 1, !tbaa !5
  %947 = load i8, ptr %24, align 1, !tbaa !5, !range !26, !noundef !27
  %948 = trunc i8 %947 to i1
  br i1 %948, label %961, label %949

949:                                              ; preds = %944
  %950 = load i8, ptr %26, align 1, !tbaa !5, !range !26, !noundef !27
  %951 = trunc i8 %950 to i1
  br i1 %951, label %961, label %952

952:                                              ; preds = %949
  %953 = load i8, ptr %23, align 1, !tbaa !5, !range !26, !noundef !27
  %954 = trunc i8 %953 to i1
  br i1 %954, label %961, label %955

955:                                              ; preds = %952
  %956 = load i8, ptr %25, align 1, !tbaa !5, !range !26, !noundef !27
  %957 = trunc i8 %956 to i1
  br i1 %957, label %961, label %958

958:                                              ; preds = %955
  %959 = load i8, ptr %27, align 1, !tbaa !5, !range !26, !noundef !27
  %960 = trunc i8 %959 to i1
  br label %961

961:                                              ; preds = %958, %955, %952, %949, %944
  %962 = phi i1 [ true, %955 ], [ true, %952 ], [ true, %949 ], [ true, %944 ], [ %960, %958 ]
  %963 = zext i1 %962 to i8
  store i8 %963, ptr %28, align 1, !tbaa !5
  %964 = load i8, ptr %3, align 1, !tbaa !5, !range !26, !noundef !27
  %965 = trunc i8 %964 to i1
  br i1 %965, label %1023, label %966

966:                                              ; preds = %961
  %967 = call i32 (ptr, ...) @printf(ptr noundef @.str.590)
  %968 = call i32 (ptr, ...) @printf(ptr noundef @.str.579)
  %969 = load i8, ptr %28, align 1, !tbaa !5, !range !26, !noundef !27
  %970 = trunc i8 %969 to i1
  br i1 %970, label %971, label %973

971:                                              ; preds = %966
  %972 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %975

973:                                              ; preds = %966
  %974 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %975

975:                                              ; preds = %973, %971
  %976 = call i32 (ptr, ...) @printf(ptr noundef @.str.591)
  %977 = load i8, ptr %24, align 1, !tbaa !5, !range !26, !noundef !27
  %978 = trunc i8 %977 to i1
  br i1 %978, label %979, label %981

979:                                              ; preds = %975
  %980 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %983

981:                                              ; preds = %975
  %982 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %983

983:                                              ; preds = %981, %979
  %984 = call i32 (ptr, ...) @printf(ptr noundef @.str.592)
  %985 = load i8, ptr %23, align 1, !tbaa !5, !range !26, !noundef !27
  %986 = trunc i8 %985 to i1
  br i1 %986, label %987, label %989

987:                                              ; preds = %983
  %988 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %991

989:                                              ; preds = %983
  %990 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %991

991:                                              ; preds = %989, %987
  %992 = call i32 (ptr, ...) @printf(ptr noundef @.str.593)
  %993 = load i8, ptr %26, align 1, !tbaa !5, !range !26, !noundef !27
  %994 = trunc i8 %993 to i1
  br i1 %994, label %995, label %997

995:                                              ; preds = %991
  %996 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %999

997:                                              ; preds = %991
  %998 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %999

999:                                              ; preds = %997, %995
  %1000 = call i32 (ptr, ...) @printf(ptr noundef @.str.594)
  %1001 = load i8, ptr %25, align 1, !tbaa !5, !range !26, !noundef !27
  %1002 = trunc i8 %1001 to i1
  br i1 %1002, label %1003, label %1005

1003:                                             ; preds = %999
  %1004 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1007

1005:                                             ; preds = %999
  %1006 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1007

1007:                                             ; preds = %1005, %1003
  %1008 = call i32 (ptr, ...) @printf(ptr noundef @.str.595)
  %1009 = load i8, ptr %27, align 1, !tbaa !5, !range !26, !noundef !27
  %1010 = trunc i8 %1009 to i1
  br i1 %1010, label %1011, label %1013

1011:                                             ; preds = %1007
  %1012 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1015

1013:                                             ; preds = %1007
  %1014 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1015

1015:                                             ; preds = %1013, %1011
  %1016 = load i8, ptr %28, align 1, !tbaa !5, !range !26, !noundef !27
  %1017 = trunc i8 %1016 to i1
  br i1 %1017, label %1018, label %1020

1018:                                             ; preds = %1015
  %1019 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %1022

1020:                                             ; preds = %1015
  %1021 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %1022

1022:                                             ; preds = %1020, %1018
  br label %1023

1023:                                             ; preds = %1022, %961
  %1024 = load i8, ptr %28, align 1, !tbaa !5, !range !26, !noundef !27
  %1025 = trunc i8 %1024 to i1
  %1026 = xor i1 %1025, true
  %1027 = zext i1 %1026 to i8
  store i8 %1027, ptr %29, align 1, !tbaa !5
  %1028 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1028)
  %1029 = load i8, ptr %29, align 1, !tbaa !5, !range !26, !noundef !27
  %1030 = trunc i8 %1029 to i1
  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 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 1, 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 416, 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 %1030
}

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_impl6fftr1dEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #1

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

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

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


; 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, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }
%"struct.alglib_impl::ae_complex" = type { double, double }

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.579 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.590 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.591 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.592 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.593 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.594 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.595 = external hidden unnamed_addr constant [43 x i8], align 1

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

20:                                               ; preds = %2, %90
  %.0368 = phi i64 [ 1, %2 ], [ %91, %90 ]
  %.0332367 = phi double [ 0.000000e+00, %2 ], [ %58, %90 ]
  %.0334366 = phi double [ 0.000000e+00, %2 ], [ %88, %90 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0368, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0368, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0368, ptr noundef %1)
  br label %21

21:                                               ; preds = %20, %21
  %.0329360 = phi i64 [ 0, %20 ], [ %38, %21 ]
  %22 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %23 = call double @llvm.fmuladd.f64(double %22, double 2.000000e+00, double -1.000000e+00)
  %24 = load ptr, ptr %15, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %24, i64 %.0329360
  store double %23, ptr %25, align 8, !tbaa !8
  %26 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %27 = call double @llvm.fmuladd.f64(double %26, double 2.000000e+00, double -1.000000e+00)
  %28 = load ptr, ptr %15, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %28, i64 %.0329360, i32 1
  store double %27, ptr %29, align 8, !tbaa !11
  %30 = load ptr, ptr %15, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %30, i64 %.0329360
  %32 = load ptr, ptr %16, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %32, i64 %.0329360
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(16) %31, i64 16, i1 false), !tbaa.struct !12
  %34 = load ptr, ptr %15, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %34, i64 %.0329360
  %36 = load ptr, ptr %17, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %36, i64 %.0329360
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(16) %35, i64 16, i1 false), !tbaa.struct !12
  %38 = add nuw nsw i64 %.0329360, 1
  %exitcond.not = icmp eq i64 %38, %.0368
  br i1 %exitcond.not, label %39, label %21, !llvm.loop !14

39:                                               ; preds = %21
  call void @_ZN11alglib_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0368, ptr noundef %1)
  call void @_ZN11alglib_impl9fftc1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0368, ptr noundef %1)
  call void @_ZN11alglib_impl9fftc1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0368, ptr noundef %1)
  call void @_ZN11alglib_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0368, ptr noundef %1)
  br label %40

40:                                               ; preds = %39, %40
  %.1330362 = phi i64 [ 0, %39 ], [ %59, %40 ]
  %.1333361 = phi double [ %.0332367, %39 ], [ %58, %40 ]
  %41 = load ptr, ptr %15, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %41, i64 %.1330362
  %.sroa.030.0.copyload = load double, ptr %42, align 8, !tbaa !13
  %.sroa.231.0..sroa_idx = getelementptr inbounds i8, ptr %42, i64 8
  %.sroa.231.0.copyload = load double, ptr %.sroa.231.0..sroa_idx, align 8, !tbaa !13
  %43 = load ptr, ptr %16, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %43, i64 %.1330362
  %.sroa.028.0.copyload = load double, ptr %44, align 8, !tbaa !13
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %44, i64 8
  %.sroa.229.0.copyload = load double, ptr %.sroa.229.0..sroa_idx, align 8, !tbaa !13
  %45 = 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)
  %46 = extractvalue { double, double } %45, 0
  %47 = extractvalue { double, double } %45, 1
  %48 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %46, double %47, ptr noundef %1)
  %49 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.1333361, double noundef %48, ptr noundef %1)
  %50 = load ptr, ptr %15, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %50, i64 %.1330362
  %.sroa.024.0.copyload = load double, ptr %51, align 8, !tbaa !13
  %.sroa.225.0..sroa_idx = getelementptr inbounds i8, ptr %51, i64 8
  %.sroa.225.0.copyload = load double, ptr %.sroa.225.0..sroa_idx, align 8, !tbaa !13
  %52 = load ptr, ptr %17, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %52, i64 %.1330362
  %.sroa.022.0.copyload = load double, ptr %53, align 8, !tbaa !13
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %53, i64 8
  %.sroa.223.0.copyload = load double, ptr %.sroa.223.0..sroa_idx, align 8, !tbaa !13
  %54 = 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)
  %55 = extractvalue { double, double } %54, 0
  %56 = extractvalue { double, double } %54, 1
  %57 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %55, double %56, ptr noundef %1)
  %58 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %49, double noundef %57, ptr noundef %1)
  %59 = add nuw nsw i64 %.1330362, 1
  %exitcond401.not = icmp eq i64 %59, %.0368
  br i1 %exitcond401.not, label %60, label %40, !llvm.loop !16

60:                                               ; preds = %40
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0368, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0368, ptr noundef %1)
  br label %61

61:                                               ; preds = %60, %61
  %.2363 = phi i64 [ 0, %60 ], [ %71, %61 ]
  %62 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %63 = call double @llvm.fmuladd.f64(double %62, double 2.000000e+00, double -1.000000e+00)
  %64 = load ptr, ptr %18, align 8, !tbaa !5
  %65 = getelementptr inbounds double, ptr %64, i64 %.2363
  store double %63, ptr %65, align 8, !tbaa !13
  %66 = load ptr, ptr %18, align 8, !tbaa !5
  %67 = getelementptr inbounds double, ptr %66, i64 %.2363
  %68 = load double, ptr %67, align 8, !tbaa !13
  %69 = load ptr, ptr %19, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i64 %.2363
  store double %68, ptr %70, align 8, !tbaa !13
  %71 = add nuw nsw i64 %.2363, 1
  %exitcond402.not = icmp eq i64 %71, %.0368
  br i1 %exitcond402.not, label %72, label %61, !llvm.loop !17

72:                                               ; preds = %61
  %73 = add nsw i64 %.0368, -1
  call void @_ZN11alglib_impl6fftr1dEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0368, ptr noundef nonnull %4, ptr noundef %1)
  %74 = load ptr, ptr %19, align 8, !tbaa !5
  %75 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %73)
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %74, i64 noundef 1, i64 noundef %75, double noundef 0.000000e+00)
  call void @_ZN11alglib_impl9fftr1dinvEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0368, ptr noundef nonnull %8, ptr noundef %1)
  br label %76

76:                                               ; preds = %72, %76
  %.3365 = phi i64 [ 0, %72 ], [ %89, %76 ]
  %.1335364 = phi double [ %.0334366, %72 ], [ %88, %76 ]
  %77 = load ptr, ptr %18, align 8, !tbaa !5
  %78 = getelementptr inbounds double, ptr %77, i64 %.3365
  %79 = load double, ptr %78, align 8, !tbaa !13
  %80 = load ptr, ptr %19, align 8, !tbaa !5
  %81 = getelementptr inbounds double, ptr %80, i64 %.3365
  %82 = load double, ptr %81, align 8, !tbaa !13
  %83 = fsub double %79, %82
  %84 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %83)
  %85 = extractvalue { double, double } %84, 0
  %86 = extractvalue { double, double } %84, 1
  %87 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %85, double %86, ptr noundef %1)
  %88 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.1335364, double noundef %87, ptr noundef %1)
  %89 = add nuw nsw i64 %.3365, 1
  %exitcond403.not = icmp eq i64 %89, %.0368
  br i1 %exitcond403.not, label %90, label %76, !llvm.loop !18

90:                                               ; preds = %76
  %91 = add nuw nsw i64 %.0368, 1
  %exitcond404.not = icmp eq i64 %91, 129
  br i1 %exitcond404.not, label %92, label %20, !llvm.loop !19

92:                                               ; preds = %90
  %93 = fmul double %14, 5.000000e-16
  %94 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %58, double noundef %93)
  %95 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %88, double noundef %93)
  store double 0.000000e+00, ptr %11, align 8, !tbaa !13
  store double 0.000000e+00, ptr %12, align 8, !tbaa !13
  br label %96

96:                                               ; preds = %92, %230
  %indvar = phi i64 [ 0, %92 ], [ %indvar.next, %230 ]
  %.1379 = phi i64 [ 1, %92 ], [ %231, %230 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1379, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1379, ptr noundef %1)
  br label %97

97:                                               ; preds = %96, %97
  %.4369 = phi i64 [ 0, %96 ], [ %110, %97 ]
  %98 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %99 = call double @llvm.fmuladd.f64(double %98, double 2.000000e+00, double -1.000000e+00)
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %100, i64 %.4369
  store double %99, ptr %101, align 8, !tbaa !8
  %102 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %103 = call double @llvm.fmuladd.f64(double %102, double 2.000000e+00, double -1.000000e+00)
  %104 = load ptr, ptr %15, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %104, i64 %.4369, i32 1
  store double %103, ptr %105, align 8, !tbaa !11
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %106, i64 %.4369
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %108, i64 %.4369
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %109, ptr noundef nonnull align 8 dereferenceable(16) %107, i64 16, i1 false), !tbaa.struct !12
  %110 = add nuw nsw i64 %.4369, 1
  %exitcond405.not = icmp eq i64 %110, %.1379
  br i1 %exitcond405.not, label %111, label %97, !llvm.loop !20

111:                                              ; preds = %97
  call void @_ZN11alglib_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1379, ptr noundef %1)
  call void @_ZL21testfftunit_reffftc1dPN11alglib_impl9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1379, ptr noundef %1)
  %.pre = load double, ptr %11, align 8, !tbaa !13
  br label %112

112:                                              ; preds = %111, %112
  %113 = phi double [ %.pre, %111 ], [ %122, %112 ]
  %.5370 = phi i64 [ 0, %111 ], [ %123, %112 ]
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %114, i64 %.5370
  %.sroa.016.0.copyload = load double, ptr %115, align 8, !tbaa !13
  %.sroa.217.0..sroa_idx = getelementptr inbounds i8, ptr %115, i64 8
  %.sroa.217.0.copyload = load double, ptr %.sroa.217.0..sroa_idx, align 8, !tbaa !13
  %116 = load ptr, ptr %16, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %116, i64 %.5370
  %.sroa.014.0.copyload = load double, ptr %117, align 8, !tbaa !13
  %.sroa.215.0..sroa_idx = getelementptr inbounds i8, ptr %117, i64 8
  %.sroa.215.0.copyload = load double, ptr %.sroa.215.0..sroa_idx, align 8, !tbaa !13
  %118 = 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)
  %119 = extractvalue { double, double } %118, 0
  %120 = extractvalue { double, double } %118, 1
  %121 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %119, double %120, ptr noundef %1)
  %122 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %113, double noundef %121, ptr noundef %1)
  store double %122, ptr %11, align 8, !tbaa !13
  %123 = add nuw nsw i64 %.5370, 1
  %exitcond406.not = icmp eq i64 %123, %.1379
  br i1 %exitcond406.not, label %124, label %112, !llvm.loop !21

124:                                              ; preds = %112
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1379, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1379, ptr noundef %1)
  br label %125

125:                                              ; preds = %124, %125
  %.6371 = 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 %15, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %128, i64 %.6371
  store double %127, ptr %129, align 8, !tbaa !8
  %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 %15, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %132, i64 %.6371, i32 1
  store double %131, ptr %133, align 8, !tbaa !11
  %134 = load ptr, ptr %15, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %134, i64 %.6371
  %136 = load ptr, ptr %16, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %136, i64 %.6371
  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 !12
  %138 = add nuw nsw i64 %.6371, 1
  %exitcond407.not = icmp eq i64 %138, %.1379
  br i1 %exitcond407.not, label %139, label %125, !llvm.loop !22

139:                                              ; preds = %125
  call void @_ZN11alglib_impl9fftc1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1379, ptr noundef %1)
  call void @_ZL24testfftunit_reffftc1dinvPN11alglib_impl9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1379, ptr noundef %1)
  %.pre419 = load double, ptr %11, align 8, !tbaa !13
  br label %140

140:                                              ; preds = %139, %140
  %141 = phi double [ %.pre419, %139 ], [ %150, %140 ]
  %.7372 = phi i64 [ 0, %139 ], [ %151, %140 ]
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %142, i64 %.7372
  %.sroa.010.0.copyload = load double, ptr %143, align 8, !tbaa !13
  %.sroa.211.0..sroa_idx = getelementptr inbounds i8, ptr %143, i64 8
  %.sroa.211.0.copyload = load double, ptr %.sroa.211.0..sroa_idx, align 8, !tbaa !13
  %144 = load ptr, ptr %16, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %144, i64 %.7372
  %.sroa.08.0.copyload = load double, ptr %145, align 8, !tbaa !13
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %145, i64 8
  %.sroa.29.0.copyload = load double, ptr %.sroa.29.0..sroa_idx, align 8, !tbaa !13
  %146 = 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)
  %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 !13
  %151 = add nuw nsw i64 %.7372, 1
  %exitcond408.not = icmp eq i64 %151, %.1379
  br i1 %exitcond408.not, label %152, label %140, !llvm.loop !23

152:                                              ; preds = %140
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.1379, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.1379, ptr noundef %1)
  br label %153

153:                                              ; preds = %152, %153
  %.8373 = phi i64 [ 0, %152 ], [ %163, %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 %18, align 8, !tbaa !5
  %157 = getelementptr inbounds double, ptr %156, i64 %.8373
  store double %155, ptr %157, align 8, !tbaa !13
  %158 = load ptr, ptr %18, align 8, !tbaa !5
  %159 = getelementptr inbounds double, ptr %158, i64 %.8373
  %160 = load double, ptr %159, align 8, !tbaa !13
  %161 = load ptr, ptr %19, align 8, !tbaa !5
  %162 = getelementptr inbounds double, ptr %161, i64 %.8373
  store double %160, ptr %162, align 8, !tbaa !13
  %163 = add nuw nsw i64 %.8373, 1
  %exitcond409.not = icmp eq i64 %163, %.1379
  br i1 %exitcond409.not, label %164, label %153, !llvm.loop !24

164:                                              ; preds = %153
  call void @_ZN11alglib_impl6fftr1dEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.1379, ptr noundef nonnull %4, ptr noundef %1)
  call void @_ZL27testfftunit_refinternalrfftPN11alglib_impl9ae_vectorElS1_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.1379, ptr noundef nonnull %5, ptr noundef %1)
  %.pre420 = load double, ptr %12, align 8, !tbaa !13
  br label %165

165:                                              ; preds = %164, %165
  %166 = phi double [ %.pre420, %164 ], [ %175, %165 ]
  %.9374 = phi i64 [ 0, %164 ], [ %176, %165 ]
  %167 = load ptr, ptr %15, align 8, !tbaa !5
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %167, i64 %.9374
  %.sroa.04.0.copyload = load double, ptr %168, align 8, !tbaa !13
  %.sroa.25.0..sroa_idx = getelementptr inbounds i8, ptr %168, i64 8
  %.sroa.25.0.copyload = load double, ptr %.sroa.25.0..sroa_idx, align 8, !tbaa !13
  %169 = load ptr, ptr %16, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %169, i64 %.9374
  %.sroa.03.0.copyload = load double, ptr %170, align 8, !tbaa !13
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %170, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !13
  %171 = 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)
  %172 = extractvalue { double, double } %171, 0
  %173 = extractvalue { double, double } %171, 1
  %174 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %172, double %173, ptr noundef %1)
  %175 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %166, double noundef %174, ptr noundef %1)
  store double %175, ptr %12, align 8, !tbaa !13
  %176 = add nuw nsw i64 %.9374, 1
  %exitcond410.not = icmp eq i64 %176, %.1379
  br i1 %exitcond410.not, label %177, label %165, !llvm.loop !25

177:                                              ; preds = %165
  %178 = uitofp nneg i64 %.1379 to double
  %179 = fmul double %178, 5.000000e-01
  %180 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %179, ptr noundef %1)
  %181 = add nsw i64 %180, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %181, ptr noundef %1)
  %182 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %179, ptr noundef %1)
  %.not375 = icmp slt i64 %182, 0
  br i1 %.not375, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %177, %.lr.ph
  %.10376 = phi i64 [ %187, %.lr.ph ], [ 0, %177 ]
  %183 = load ptr, ptr %16, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %183, i64 %.10376
  %185 = load ptr, ptr %17, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %185, i64 %.10376
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %186, ptr noundef nonnull align 8 dereferenceable(16) %184, i64 16, i1 false), !tbaa.struct !12
  %187 = add nuw nsw i64 %.10376, 1
  %188 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %179, ptr noundef %1)
  %.not.not397 = icmp slt i64 %.10376, %188
  br i1 %.not.not397, label %.lr.ph, label %._crit_edge, !llvm.loop !26

._crit_edge:                                      ; preds = %.lr.ph, %177
  %189 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %190 = call double @llvm.fmuladd.f64(double %189, double 2.000000e+00, double -1.000000e+00)
  %191 = load ptr, ptr %17, align 8, !tbaa !5
  %192 = getelementptr inbounds i8, ptr %191, i64 8
  store double %190, ptr %192, align 8, !tbaa !11
  %193 = and i64 %.1379, 1
  %194 = icmp eq i64 %193, 0
  br i1 %194, label %195, label %.preheader

195:                                              ; preds = %._crit_edge
  %196 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %197 = call double @llvm.fmuladd.f64(double %196, double 2.000000e+00, double -1.000000e+00)
  %198 = load ptr, ptr %17, align 8, !tbaa !5
  %199 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %179, ptr noundef %1)
  %200 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %198, i64 %199, i32 1
  store double %197, ptr %200, align 8, !tbaa !11
  br label %.preheader

.preheader:                                       ; preds = %195, %._crit_edge
  %xtraiter = and i64 %.1379, 3
  %201 = icmp ult i64 %indvar, 3
  br i1 %201, label %.unr-lcssa, label %.preheader.new

.preheader.new:                                   ; preds = %.preheader
  %unroll_iter = and i64 %.1379, 9223372036854775804
  br label %202

202:                                              ; preds = %202, %.preheader.new
  %.11377 = phi i64 [ 0, %.preheader.new ], [ %214, %202 ]
  %niter = phi i64 [ 0, %.preheader.new ], [ %niter.next.3, %202 ]
  %203 = load ptr, ptr %18, align 8, !tbaa !5
  %204 = getelementptr inbounds double, ptr %203, i64 %.11377
  store double 0.000000e+00, ptr %204, align 8, !tbaa !13
  %205 = or disjoint i64 %.11377, 1
  %206 = load ptr, ptr %18, align 8, !tbaa !5
  %207 = getelementptr inbounds double, ptr %206, i64 %205
  store double 0.000000e+00, ptr %207, align 8, !tbaa !13
  %208 = or disjoint i64 %.11377, 2
  %209 = load ptr, ptr %18, align 8, !tbaa !5
  %210 = getelementptr inbounds double, ptr %209, i64 %208
  store double 0.000000e+00, ptr %210, align 8, !tbaa !13
  %211 = or disjoint i64 %.11377, 3
  %212 = load ptr, ptr %18, align 8, !tbaa !5
  %213 = getelementptr inbounds double, ptr %212, i64 %211
  store double 0.000000e+00, ptr %213, align 8, !tbaa !13
  %214 = add nuw nsw i64 %.11377, 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 %202, !llvm.loop !27

.unr-lcssa:                                       ; preds = %202, %.preheader
  %.11377.unr = phi i64 [ 0, %.preheader ], [ %214, %202 ]
  %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
  %.11377.epil = phi i64 [ %217, %.epil.preheader ], [ %.11377.unr, %.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.unr-lcssa ]
  %215 = load ptr, ptr %18, align 8, !tbaa !5
  %216 = getelementptr inbounds double, ptr %215, i64 %.11377.epil
  store double 0.000000e+00, ptr %216, align 8, !tbaa !13
  %217 = add nuw nsw i64 %.11377.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 !28

.epilog-lcssa:                                    ; preds = %.epil.preheader, %.unr-lcssa
  call void @_ZN11alglib_impl9fftr1dinvEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.1379, ptr noundef nonnull %7, ptr noundef %1)
  %.pre421 = load double, ptr %12, align 8, !tbaa !13
  br label %218

218:                                              ; preds = %.epilog-lcssa, %218
  %219 = phi double [ %.pre421, %.epilog-lcssa ], [ %228, %218 ]
  %.12378 = phi i64 [ 0, %.epilog-lcssa ], [ %229, %218 ]
  %220 = load ptr, ptr %19, align 8, !tbaa !5
  %221 = getelementptr inbounds double, ptr %220, i64 %.12378
  %222 = load double, ptr %221, align 8, !tbaa !13
  %223 = load ptr, ptr %18, align 8, !tbaa !5
  %224 = getelementptr inbounds double, ptr %223, i64 %.12378
  %225 = load double, ptr %224, align 8, !tbaa !13
  %226 = fsub double %222, %225
  %227 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %226, ptr noundef %1)
  %228 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %219, double noundef %227, ptr noundef %1)
  store double %228, ptr %12, align 8, !tbaa !13
  %229 = add nuw nsw i64 %.12378, 1
  %exitcond412.not = icmp eq i64 %229, %.1379
  br i1 %exitcond412.not, label %230, label %218, !llvm.loop !30

230:                                              ; preds = %218
  %231 = add nuw nsw i64 %.1379, 1
  %exitcond413.not = icmp eq i64 %231, 129
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond413.not, label %232, label %96, !llvm.loop !31

232:                                              ; preds = %230
  %233 = load double, ptr %11, align 8, !tbaa !13
  %234 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %233, double noundef %93)
  %235 = load double, ptr %12, align 8, !tbaa !13
  %236 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %235, double noundef %93)
  store double 0.000000e+00, ptr %11, align 8, !tbaa !13
  store double 0.000000e+00, ptr %12, align 8, !tbaa !13
  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 %234, label %240, label %237

237:                                              ; preds = %232
  %238 = load double, ptr %11, align 8, !tbaa !13
  %239 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %238, double noundef %93)
  br label %240

240:                                              ; preds = %237, %232
  %241 = phi i1 [ true, %232 ], [ %239, %237 ]
  br i1 %236, label %245, label %242

242:                                              ; preds = %240
  %243 = load double, ptr %12, align 8, !tbaa !13
  %244 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %243, double noundef %93)
  br label %245

245:                                              ; preds = %242, %240
  %246 = phi i1 [ true, %240 ], [ %244, %242 ]
  br label %247

247:                                              ; preds = %245, %350
  %indvars.iv = phi i64 [ 2, %245 ], [ %indvars.iv.next, %350 ]
  %.0331396 = phi i64 [ 1, %245 ], [ %351, %350 ]
  %.0336395 = phi double [ 0.000000e+00, %245 ], [ %348, %350 ]
  %248 = shl nuw nsw i64 %.0331396, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %248, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %248, ptr noundef %1)
  br label %249

249:                                              ; preds = %247, %249
  %.13380 = phi i64 [ 0, %247 ], [ %259, %249 ]
  %250 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %251 = call double @llvm.fmuladd.f64(double %250, double 2.000000e+00, double -1.000000e+00)
  %252 = load ptr, ptr %18, align 8, !tbaa !5
  %253 = getelementptr inbounds double, ptr %252, i64 %.13380
  store double %251, ptr %253, align 8, !tbaa !13
  %254 = load ptr, ptr %18, align 8, !tbaa !5
  %255 = getelementptr inbounds double, ptr %254, i64 %.13380
  %256 = load double, ptr %255, align 8, !tbaa !13
  %257 = load ptr, ptr %19, align 8, !tbaa !5
  %258 = getelementptr inbounds double, ptr %257, i64 %.13380
  store double %256, ptr %258, align 8, !tbaa !13
  %259 = add nuw nsw i64 %.13380, 1
  %exitcond414.not = icmp eq i64 %259, %indvars.iv
  br i1 %exitcond414.not, label %260, label %249, !llvm.loop !32

260:                                              ; preds = %249
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %.0331396, 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 %248, ptr noundef %1)
  call void @_ZN11alglib_impl18fftr1dinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %248, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZL27testfftunit_refinternalrfftPN11alglib_impl9ae_vectorElS1_PNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %248, ptr noundef nonnull %5, ptr noundef %1)
  %261 = load ptr, ptr %18, align 8, !tbaa !5
  %262 = load double, ptr %261, align 8, !tbaa !13
  %263 = load ptr, ptr %16, align 8, !tbaa !5
  %264 = load double, ptr %263, align 8, !tbaa !8
  %265 = fsub double %262, %264
  %266 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %265, ptr noundef %1)
  %267 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0336395, double noundef %266, ptr noundef %1)
  %268 = load ptr, ptr %18, align 8, !tbaa !5
  %269 = getelementptr inbounds i8, ptr %268, i64 8
  %270 = load double, ptr %269, align 8, !tbaa !13
  %271 = load ptr, ptr %16, align 8, !tbaa !5
  %272 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %271, i64 %.0331396
  %273 = load double, ptr %272, align 8, !tbaa !8
  %274 = fsub double %270, %273
  %275 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %274, ptr noundef %1)
  %276 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %267, double noundef %275, ptr noundef %1)
  %.not.not342381 = icmp ugt i64 %.0331396, 1
  br i1 %.not.not342381, label %.lr.ph385, label %._crit_edge386

.lr.ph385:                                        ; preds = %260, %.lr.ph385
  %.14383 = phi i64 [ %297, %.lr.ph385 ], [ 1, %260 ]
  %.1337382 = phi double [ %296, %.lr.ph385 ], [ %276, %260 ]
  %277 = load ptr, ptr %18, align 8, !tbaa !5
  %278 = shl nuw nsw i64 %.14383, 1
  %279 = getelementptr inbounds double, ptr %277, i64 %278
  %280 = load double, ptr %279, align 8, !tbaa !13
  %281 = load ptr, ptr %16, align 8, !tbaa !5
  %282 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %281, i64 %.14383
  %283 = load double, ptr %282, align 8, !tbaa !8
  %284 = fsub double %280, %283
  %285 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %284, ptr noundef %1)
  %286 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.1337382, double noundef %285, ptr noundef %1)
  %287 = load ptr, ptr %18, align 8, !tbaa !5
  %288 = or disjoint i64 %278, 1
  %289 = getelementptr inbounds double, ptr %287, i64 %288
  %290 = load double, ptr %289, align 8, !tbaa !13
  %291 = load ptr, ptr %16, align 8, !tbaa !5
  %292 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %291, i64 %.14383, i32 1
  %293 = load double, ptr %292, align 8, !tbaa !11
  %294 = fsub double %290, %293
  %295 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %294, ptr noundef %1)
  %296 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %286, double noundef %295, ptr noundef %1)
  %297 = add nuw nsw i64 %.14383, 1
  %exitcond415.not = icmp eq i64 %297, %.0331396
  br i1 %exitcond415.not, label %._crit_edge386, label %.lr.ph385, !llvm.loop !33

._crit_edge386:                                   ; preds = %.lr.ph385, %260
  %.1337.lcssa = phi double [ %276, %260 ], [ %296, %.lr.ph385 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %248, ptr noundef %1)
  br label %298

298:                                              ; preds = %._crit_edge386, %298
  %.15387 = phi i64 [ 0, %._crit_edge386 ], [ %303, %298 ]
  %299 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %300 = call double @llvm.fmuladd.f64(double %299, double 2.000000e+00, double -1.000000e+00)
  %301 = load ptr, ptr %18, align 8, !tbaa !5
  %302 = getelementptr inbounds double, ptr %301, i64 %.15387
  store double %300, ptr %302, align 8, !tbaa !13
  %303 = add nuw nsw i64 %.15387, 1
  %exitcond416.not = icmp eq i64 %303, %indvars.iv
  br i1 %exitcond416.not, label %304, label %298, !llvm.loop !34

304:                                              ; preds = %298
  %305 = uitofp nneg i64 %248 to double
  %306 = fmul double %305, 5.000000e-01
  %307 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %306, ptr noundef %1)
  %308 = add nsw i64 %307, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %308, ptr noundef %1)
  %309 = load ptr, ptr %18, align 8, !tbaa !5
  %310 = load double, ptr %309, align 8, !tbaa !13
  %311 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %310)
  %312 = extractvalue { double, double } %311, 0
  %313 = extractvalue { double, double } %311, 1
  %314 = load ptr, ptr %16, align 8, !tbaa !5
  store double %312, ptr %314, align 8, !tbaa !13
  %.sroa.42.0..sroa_idx = getelementptr inbounds i8, ptr %314, i64 8
  store double %313, ptr %.sroa.42.0..sroa_idx, align 8, !tbaa !13
  %315 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %306, ptr noundef %1)
  %.not.not344388 = icmp sgt i64 %315, 1
  br i1 %.not.not344388, label %.lr.ph391, label %._crit_edge392

.lr.ph391:                                        ; preds = %304, %.lr.ph391
  %.16389 = phi i64 [ %328, %.lr.ph391 ], [ 1, %304 ]
  %316 = load ptr, ptr %18, align 8, !tbaa !5
  %317 = shl nuw nsw i64 %.16389, 1
  %318 = getelementptr inbounds double, ptr %316, i64 %317
  %319 = load double, ptr %318, align 8, !tbaa !13
  %320 = load ptr, ptr %16, align 8, !tbaa !5
  %321 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %320, i64 %.16389
  store double %319, ptr %321, align 8, !tbaa !8
  %322 = load ptr, ptr %18, align 8, !tbaa !5
  %323 = or disjoint i64 %317, 1
  %324 = getelementptr inbounds double, ptr %322, i64 %323
  %325 = load double, ptr %324, align 8, !tbaa !13
  %326 = load ptr, ptr %16, align 8, !tbaa !5
  %327 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %326, i64 %.16389, i32 1
  store double %325, ptr %327, align 8, !tbaa !11
  %328 = add nuw nsw i64 %.16389, 1
  %329 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %306, ptr noundef %1)
  %.not.not344 = icmp slt i64 %328, %329
  br i1 %.not.not344, label %.lr.ph391, label %._crit_edge392, !llvm.loop !35

._crit_edge392:                                   ; preds = %.lr.ph391, %304
  %330 = load ptr, ptr %18, align 8, !tbaa !5
  %331 = getelementptr inbounds i8, ptr %330, i64 8
  %332 = load double, ptr %331, align 8, !tbaa !13
  %333 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %332)
  %334 = extractvalue { double, double } %333, 0
  %335 = extractvalue { double, double } %333, 1
  %336 = load ptr, ptr %16, align 8, !tbaa !5
  %337 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %306, ptr noundef %1)
  %338 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %336, i64 %337
  store double %334, ptr %338, align 8, !tbaa !13
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %338, i64 8
  store double %335, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !13
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %.0331396, 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 %248, ptr noundef %1)
  call void @_ZN11alglib_impl21fftr1dinvinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %248, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZN11alglib_impl9fftr1dinvEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %248, ptr noundef nonnull %8, ptr noundef %1)
  br label %339

339:                                              ; preds = %._crit_edge392, %339
  %.17394 = phi i64 [ 0, %._crit_edge392 ], [ %349, %339 ]
  %.2338393 = phi double [ %.1337.lcssa, %._crit_edge392 ], [ %348, %339 ]
  %340 = load ptr, ptr %18, align 8, !tbaa !5
  %341 = getelementptr inbounds double, ptr %340, i64 %.17394
  %342 = load double, ptr %341, align 8, !tbaa !13
  %343 = load ptr, ptr %19, align 8, !tbaa !5
  %344 = getelementptr inbounds double, ptr %343, i64 %.17394
  %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 %.2338393, double noundef %347, ptr noundef %1)
  %349 = add nuw nsw i64 %.17394, 1
  %exitcond417.not = icmp eq i64 %349, %indvars.iv
  br i1 %exitcond417.not, label %350, label %339, !llvm.loop !36

350:                                              ; preds = %339
  %351 = add nuw nsw i64 %.0331396, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
  %exitcond418.not = icmp eq i64 %351, 65
  br i1 %exitcond418.not, label %352, label %247, !llvm.loop !37

352:                                              ; preds = %350
  %353 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %348, double noundef %93)
  %spec.select = or i1 %246, %353
  %354 = or i1 %95, %spec.select
  %355 = or i1 %94, %354
  %spec.select359 = or i1 %241, %355
  br i1 %0, label %370, label %.sink.split

.sink.split:                                      ; preds = %352
  %356 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.590)
  %357 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.579)
  %.str.7..str.6 = select i1 %spec.select359, ptr @.str.7, ptr @.str.6
  %358 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %359 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.591)
  %.str.6.sink425 = select i1 %94, ptr @.str.7, ptr @.str.6
  %360 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink425)
  %361 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.592)
  %.str.6.sink426 = select i1 %241, ptr @.str.7, ptr @.str.6
  %362 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink426)
  %363 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.593)
  %.str.6.sink427 = select i1 %95, ptr @.str.7, ptr @.str.6
  %364 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink427)
  %365 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.594)
  %.str.6.sink428 = select i1 %246, ptr @.str.7, ptr @.str.6
  %366 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink428)
  %367 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.595)
  %.str.6.sink429 = select i1 %353, ptr @.str.7, ptr @.str.6
  %368 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink429)
  %.str.1.sink = select i1 %spec.select359, ptr @.str.1, ptr @.str.2
  %369 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1.sink)
  br label %370

370:                                              ; preds = %.sink.split, %352
  %371 = xor i1 %spec.select359, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  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 416, 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 %371
}

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

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

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


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