; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (fasttransforms)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl6fftr1dEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.alglib_impl::ae_frame", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"struct.alglib_impl::ae_complex", align 8
  %14 = alloca %"struct.alglib_impl::ae_complex", align 8
  %15 = alloca %"struct.alglib_impl::ae_complex", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::fasttransformplan", align 8
  %18 = alloca %"struct.alglib_impl::ae_complex", align 8
  %19 = alloca i32, align 4
  %20 = alloca %"struct.alglib_impl::ae_complex", align 8
  %21 = alloca %"struct.alglib_impl::ae_complex", align 8
  %22 = alloca %"struct.alglib_impl::ae_complex", align 8
  %23 = alloca %"struct.alglib_impl::ae_complex", align 8
  %24 = alloca %"struct.alglib_impl::ae_complex", align 8
  %25 = alloca %"struct.alglib_impl::ae_complex", align 8
  %26 = alloca %"struct.alglib_impl::ae_complex", align 8
  %27 = alloca %"struct.alglib_impl::ae_complex", align 8
  %28 = alloca %"struct.alglib_impl::ae_complex", align 8
  %29 = alloca %"struct.alglib_impl::ae_complex", align 8
  %30 = alloca %"struct.alglib_impl::ae_complex", align 8
  %31 = alloca %"struct.alglib_impl::ae_complex", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 416, ptr %17) #5
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %32, ptr noundef %9)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 416, i1 false)
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %33)
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 3, ptr noundef %34, i1 noundef zeroext true)
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl23_fasttransformplan_initEPvPNS_8ae_stateEb(ptr noundef %17, ptr noundef %35, i1 noundef zeroext true)
  %36 = load i64, ptr %6, align 8, !tbaa !9
  %37 = icmp sgt i64 %36, 0
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %37, ptr noundef @.str.6, ptr noundef %38)
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %39, i32 0, i32 0
  %41 = load i64, ptr %40, align 8, !tbaa !11
  %42 = load i64, ptr %6, align 8, !tbaa !9
  %43 = icmp sge i64 %41, %42
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef @.str.7, ptr noundef %44)
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = load i64, ptr %6, align 8, !tbaa !9
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %45, i64 noundef %46, ptr noundef %47)
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.8, ptr noundef %49)
  %50 = load i64, ptr %6, align 8, !tbaa !9
  %51 = icmp eq i64 %50, 1
  br i1 %51, label %52, label %70

52:                                               ; preds = %4
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %53, i64 noundef 1, ptr noundef %54)
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %55, i32 0, i32 4
  %57 = load ptr, ptr %56, align 8, !tbaa !15
  %58 = getelementptr inbounds double, ptr %57, i64 0
  %59 = load double, ptr %58, align 8, !tbaa !16
  %60 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %59)
  %61 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %62 = extractvalue { double, double } %60, 0
  store double %62, ptr %61, align 8
  %63 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %64 = extractvalue { double, double } %60, 1
  store double %64, ptr %63, align 8
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %65, i32 0, i32 4
  %67 = load ptr, ptr %66, align 8, !tbaa !15
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %67, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %68, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %69)
  store i32 1, ptr %19, align 4
  br label %365

70:                                               ; preds = %4
  %71 = load i64, ptr %6, align 8, !tbaa !9
  %72 = icmp eq i64 %71, 2
  br i1 %72, label %73, label %119

73:                                               ; preds = %70
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %74, i64 noundef 2, ptr noundef %75)
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %76, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !15
  %79 = getelementptr inbounds double, ptr %78, i64 0
  %80 = load double, ptr %79, align 8, !tbaa !16
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %81, i32 0, i32 4
  %83 = load ptr, ptr %82, align 8, !tbaa !15
  %84 = getelementptr inbounds double, ptr %83, i64 1
  %85 = load double, ptr %84, align 8, !tbaa !16
  %86 = fadd double %80, %85
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %87, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !15
  %90 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %89, i64 0
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %90, i32 0, i32 0
  store double %86, ptr %91, align 8, !tbaa !19
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %92, i32 0, i32 4
  %94 = load ptr, ptr %93, align 8, !tbaa !15
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %94, i64 0
  %96 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %95, i32 0, i32 1
  store double 0.000000e+00, ptr %96, align 8, !tbaa !21
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %97, i32 0, i32 4
  %99 = load ptr, ptr %98, align 8, !tbaa !15
  %100 = getelementptr inbounds double, ptr %99, i64 0
  %101 = load double, ptr %100, align 8, !tbaa !16
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !15
  %105 = getelementptr inbounds double, ptr %104, i64 1
  %106 = load double, ptr %105, align 8, !tbaa !16
  %107 = fsub double %101, %106
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %108, i32 0, i32 4
  %110 = load ptr, ptr %109, align 8, !tbaa !15
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %110, i64 1
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %111, i32 0, i32 0
  store double %107, ptr %112, align 8, !tbaa !19
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %113, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !15
  %116 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %115, i64 1
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %116, i32 0, i32 1
  store double 0.000000e+00, ptr %117, align 8, !tbaa !21
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %118)
  store i32 1, ptr %19, align 4
  br label %365

119:                                              ; preds = %70
  %120 = load i64, ptr %6, align 8, !tbaa !9
  %121 = srem i64 %120, 2
  %122 = icmp eq i64 %121, 0
  br i1 %122, label %123, label %330

123:                                              ; preds = %119
  %124 = load i64, ptr %6, align 8, !tbaa !9
  %125 = sdiv i64 %124, 2
  store i64 %125, ptr %11, align 8, !tbaa !9
  %126 = load i64, ptr %6, align 8, !tbaa !9
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %126, ptr noundef %127)
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %129 = load ptr, ptr %128, align 8, !tbaa !15
  %130 = getelementptr inbounds double, ptr %129, i64 0
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %131, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !15
  %134 = getelementptr inbounds double, ptr %133, i64 0
  %135 = load i64, ptr %6, align 8, !tbaa !9
  %136 = sub nsw i64 %135, 1
  %137 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %136)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %130, i64 noundef 1, ptr noundef %134, i64 noundef 1, i64 noundef %137)
  %138 = load i64, ptr %11, align 8, !tbaa !9
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %138, i64 noundef 1, ptr noundef %17, ptr noundef %139)
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef %17, ptr noundef %16, i64 noundef 0, i64 noundef 1, ptr noundef %140)
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = load i64, ptr %6, align 8, !tbaa !9
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %141, i64 noundef %142, ptr noundef %143)
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %144

144:                                              ; preds = %292, %123
  %145 = load i64, ptr %10, align 8, !tbaa !9
  %146 = load i64, ptr %11, align 8, !tbaa !9
  %147 = icmp sle i64 %145, %146
  br i1 %147, label %148, label %295

148:                                              ; preds = %144
  %149 = load i64, ptr %10, align 8, !tbaa !9
  %150 = load i64, ptr %11, align 8, !tbaa !9
  %151 = srem i64 %149, %150
  %152 = mul nsw i64 2, %151
  store i64 %152, ptr %12, align 8, !tbaa !9
  %153 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %154 = load ptr, ptr %153, align 8, !tbaa !15
  %155 = load i64, ptr %12, align 8, !tbaa !9
  %156 = add nsw i64 %155, 0
  %157 = getelementptr inbounds double, ptr %154, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !16
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %13, i32 0, i32 0
  store double %158, ptr %159, align 8, !tbaa !19
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !15
  %162 = load i64, ptr %12, align 8, !tbaa !9
  %163 = add nsw i64 %162, 1
  %164 = getelementptr inbounds double, ptr %161, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !16
  %166 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %13, i32 0, i32 1
  store double %165, ptr %166, align 8, !tbaa !21
  %167 = load i64, ptr %11, align 8, !tbaa !9
  %168 = load i64, ptr %10, align 8, !tbaa !9
  %169 = sub nsw i64 %167, %168
  %170 = load i64, ptr %11, align 8, !tbaa !9
  %171 = srem i64 %169, %170
  %172 = mul nsw i64 2, %171
  store i64 %172, ptr %12, align 8, !tbaa !9
  %173 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %174 = load ptr, ptr %173, align 8, !tbaa !15
  %175 = load i64, ptr %12, align 8, !tbaa !9
  %176 = add nsw i64 %175, 0
  %177 = getelementptr inbounds double, ptr %174, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !16
  %179 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %14, i32 0, i32 0
  store double %178, ptr %179, align 8, !tbaa !19
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %181 = load ptr, ptr %180, align 8, !tbaa !15
  %182 = load i64, ptr %12, align 8, !tbaa !9
  %183 = add nsw i64 %182, 1
  %184 = getelementptr inbounds double, ptr %181, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !16
  %186 = fneg double %185
  %187 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %14, i32 0, i32 1
  store double %186, ptr %187, align 8, !tbaa !21
  %188 = load i64, ptr %10, align 8, !tbaa !9
  %189 = sitofp i64 %188 to double
  %190 = fmul double 0xC01921FB54442D18, %189
  %191 = load i64, ptr %6, align 8, !tbaa !9
  %192 = sitofp i64 %191 to double
  %193 = fdiv double %190, %192
  %194 = load ptr, ptr %8, align 8, !tbaa !5
  %195 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %193, ptr noundef %194)
  %196 = fneg double %195
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %15, i32 0, i32 0
  store double %196, ptr %197, align 8, !tbaa !19
  %198 = load i64, ptr %10, align 8, !tbaa !9
  %199 = sitofp i64 %198 to double
  %200 = fmul double 0xC01921FB54442D18, %199
  %201 = load i64, ptr %6, align 8, !tbaa !9
  %202 = sitofp i64 %201 to double
  %203 = fdiv double %200, %202
  %204 = load ptr, ptr %8, align 8, !tbaa !5
  %205 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %203, ptr noundef %204)
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %15, i32 0, i32 1
  store double %205, ptr %206, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !18
  %207 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %208 = load double, ptr %207, align 8
  %209 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %210 = load double, ptr %209, align 8
  %211 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %212 = load double, ptr %211, align 8
  %213 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %214 = load double, ptr %213, align 8
  %215 = call { double, double } @_ZN11alglib_impl8ae_c_addENS_10ae_complexES0_(double %208, double %210, double %212, double %214)
  %216 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %217 = extractvalue { double, double } %215, 0
  store double %217, ptr %216, align 8
  %218 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %219 = extractvalue { double, double } %215, 1
  store double %219, ptr %218, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !18
  %220 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %221 = load double, ptr %220, align 8
  %222 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %223 = load double, ptr %222, align 8
  %224 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %225 = load double, ptr %224, align 8
  %226 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %227 = load double, ptr %226, align 8
  %228 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %221, double %223, double %225, double %227)
  %229 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %230 = extractvalue { double, double } %228, 0
  store double %230, ptr %229, align 8
  %231 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %232 = extractvalue { double, double } %228, 1
  store double %232, ptr %231, align 8
  %233 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %234 = load double, ptr %233, align 8
  %235 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %236 = load double, ptr %235, align 8
  %237 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %238 = load double, ptr %237, align 8
  %239 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %240 = load double, ptr %239, align 8
  %241 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %234, double %236, double %238, double %240)
  %242 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %243 = extractvalue { double, double } %241, 0
  store double %243, ptr %242, align 8
  %244 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %245 = extractvalue { double, double } %241, 1
  store double %245, ptr %244, align 8
  %246 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %247 = load double, ptr %246, align 8
  %248 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %249 = load double, ptr %248, align 8
  %250 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %251 = load double, ptr %250, align 8
  %252 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %253 = load double, ptr %252, align 8
  %254 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %247, double %249, double %251, double %253)
  %255 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %256 = extractvalue { double, double } %254, 0
  store double %256, ptr %255, align 8
  %257 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %258 = extractvalue { double, double } %254, 1
  store double %258, ptr %257, align 8
  %259 = load ptr, ptr %7, align 8, !tbaa !5
  %260 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %259, i32 0, i32 4
  %261 = load ptr, ptr %260, align 8, !tbaa !15
  %262 = load i64, ptr %10, align 8, !tbaa !9
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %261, i64 %262
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %263, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  %264 = load ptr, ptr %7, align 8, !tbaa !5
  %265 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %264, i32 0, i32 4
  %266 = load ptr, ptr %265, align 8, !tbaa !15
  %267 = load i64, ptr %10, align 8, !tbaa !9
  %268 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %266, i64 %267
  %269 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %268, i32 0, i32 0
  %270 = load double, ptr %269, align 8, !tbaa !19
  %271 = fmul double 5.000000e-01, %270
  %272 = load ptr, ptr %7, align 8, !tbaa !5
  %273 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %272, i32 0, i32 4
  %274 = load ptr, ptr %273, align 8, !tbaa !15
  %275 = load i64, ptr %10, align 8, !tbaa !9
  %276 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %274, i64 %275
  %277 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %276, i32 0, i32 0
  store double %271, ptr %277, align 8, !tbaa !19
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %278, i32 0, i32 4
  %280 = load ptr, ptr %279, align 8, !tbaa !15
  %281 = load i64, ptr %10, align 8, !tbaa !9
  %282 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %280, i64 %281
  %283 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %282, i32 0, i32 1
  %284 = load double, ptr %283, align 8, !tbaa !21
  %285 = fmul double 5.000000e-01, %284
  %286 = load ptr, ptr %7, align 8, !tbaa !5
  %287 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %286, i32 0, i32 4
  %288 = load ptr, ptr %287, align 8, !tbaa !15
  %289 = load i64, ptr %10, align 8, !tbaa !9
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %288, i64 %289
  %291 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %290, i32 0, i32 1
  store double %285, ptr %291, align 8, !tbaa !21
  br label %292

292:                                              ; preds = %148
  %293 = load i64, ptr %10, align 8, !tbaa !9
  %294 = add nsw i64 %293, 1
  store i64 %294, ptr %10, align 8, !tbaa !9
  br label %144, !llvm.loop !22

295:                                              ; preds = %144
  %296 = load i64, ptr %11, align 8, !tbaa !9
  %297 = add nsw i64 %296, 1
  store i64 %297, ptr %10, align 8, !tbaa !9
  br label %298

298:                                              ; preds = %326, %295
  %299 = load i64, ptr %10, align 8, !tbaa !9
  %300 = load i64, ptr %6, align 8, !tbaa !9
  %301 = sub nsw i64 %300, 1
  %302 = icmp sle i64 %299, %301
  br i1 %302, label %303, label %329

303:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #5
  %304 = load ptr, ptr %7, align 8, !tbaa !5
  %305 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %304, i32 0, i32 4
  %306 = load ptr, ptr %305, align 8, !tbaa !15
  %307 = load i64, ptr %6, align 8, !tbaa !9
  %308 = load i64, ptr %10, align 8, !tbaa !9
  %309 = sub nsw i64 %307, %308
  %310 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %306, i64 %309
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %310, i64 16, i1 false), !tbaa.struct !18
  %311 = load ptr, ptr %8, align 8, !tbaa !5
  %312 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %313 = load double, ptr %312, align 8
  %314 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %315 = load double, ptr %314, align 8
  %316 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %313, double %315, ptr noundef %311)
  %317 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %318 = extractvalue { double, double } %316, 0
  store double %318, ptr %317, align 8
  %319 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %320 = extractvalue { double, double } %316, 1
  store double %320, ptr %319, align 8
  %321 = load ptr, ptr %7, align 8, !tbaa !5
  %322 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %321, i32 0, i32 4
  %323 = load ptr, ptr %322, align 8, !tbaa !15
  %324 = load i64, ptr %10, align 8, !tbaa !9
  %325 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %323, i64 %324
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %325, ptr align 8 %29, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #5
  br label %326

326:                                              ; preds = %303
  %327 = load i64, ptr %10, align 8, !tbaa !9
  %328 = add nsw i64 %327, 1
  store i64 %328, ptr %10, align 8, !tbaa !9
  br label %298, !llvm.loop !24

329:                                              ; preds = %298
  br label %363

330:                                              ; preds = %119
  %331 = load ptr, ptr %7, align 8, !tbaa !5
  %332 = load i64, ptr %6, align 8, !tbaa !9
  %333 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %331, i64 noundef %332, ptr noundef %333)
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %334

334:                                              ; preds = %356, %330
  %335 = load i64, ptr %10, align 8, !tbaa !9
  %336 = load i64, ptr %6, align 8, !tbaa !9
  %337 = sub nsw i64 %336, 1
  %338 = icmp sle i64 %335, %337
  br i1 %338, label %339, label %359

339:                                              ; preds = %334
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #5
  %340 = load ptr, ptr %5, align 8, !tbaa !5
  %341 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %340, i32 0, i32 4
  %342 = load ptr, ptr %341, align 8, !tbaa !15
  %343 = load i64, ptr %10, align 8, !tbaa !9
  %344 = getelementptr inbounds double, ptr %342, i64 %343
  %345 = load double, ptr %344, align 8, !tbaa !16
  %346 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %345)
  %347 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %348 = extractvalue { double, double } %346, 0
  store double %348, ptr %347, align 8
  %349 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %350 = extractvalue { double, double } %346, 1
  store double %350, ptr %349, align 8
  %351 = load ptr, ptr %7, align 8, !tbaa !5
  %352 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %351, i32 0, i32 4
  %353 = load ptr, ptr %352, align 8, !tbaa !15
  %354 = load i64, ptr %10, align 8, !tbaa !9
  %355 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %353, i64 %354
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %355, ptr align 8 %31, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  br label %356

356:                                              ; preds = %339
  %357 = load i64, ptr %10, align 8, !tbaa !9
  %358 = add nsw i64 %357, 1
  store i64 %358, ptr %10, align 8, !tbaa !9
  br label %334, !llvm.loop !25

359:                                              ; preds = %334
  %360 = load ptr, ptr %7, align 8, !tbaa !5
  %361 = load i64, ptr %6, align 8, !tbaa !9
  %362 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %360, i64 noundef %361, ptr noundef %362)
  br label %363

363:                                              ; preds = %359, %329
  %364 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %364)
  store i32 0, ptr %19, align 4
  br label %365

365:                                              ; preds = %363, %73, %52
  call void @llvm.lifetime.end.p0(i64 416, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  %366 = load i32, ptr %19, align 4
  switch i32 %366, label %368 [
    i32 0, label %367
    i32 1, label %367
  ]

367:                                              ; preds = %365, %365
  ret void

368:                                              ; preds = %365
  unreachable
}

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

declare void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

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

; 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 void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #2

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

declare noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef, ptr noundef) #2

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

declare { double, double } @_ZN11alglib_impl8ae_c_addENS_10ae_complexES0_(double, double, double, double) #2

declare { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double, double, double, double) #2

declare { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double, double, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{i64 0, i64 8, !16, i64 8, i64 8, !16}
!19 = !{!20, !17, i64 0}
!20 = !{!"_ZTSN11alglib_impl10ae_complexE", !17, i64 0, !17, i64 8}
!21 = !{!20, !17, i64 8}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}


; 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.0 }
%union.anon.0 = 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.1 }
%union.anon.1 = 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.6 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [43 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl6fftr1dEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = alloca %"struct.alglib_impl::fasttransformplan", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 416, ptr nonnull %7) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %3, ptr noundef nonnull %5)
  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(416) %7, i8 0, i64 416, i1 false)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %2)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 3, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl23_fasttransformplan_initEPvPNS_8ae_stateEb(ptr noundef nonnull %7, ptr noundef %3, i1 noundef zeroext true)
  %8 = icmp sgt i64 %1, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.6, ptr noundef %3)
  %9 = load i64, ptr %0, align 8, !tbaa !5
  %10 = icmp sge i64 %9, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.7, ptr noundef %3)
  %11 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, ptr noundef %3)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.8, ptr noundef %3)
  switch i64 %1, label %41 [
    i64 1, label %12
    i64 2, label %21
  ]

12:                                               ; preds = %4
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef 1, ptr noundef %3)
  %13 = getelementptr inbounds i8, ptr %0, i64 56
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = load double, ptr %14, align 8, !tbaa !14
  %16 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %15)
  %17 = extractvalue { double, double } %16, 0
  %18 = extractvalue { double, double } %16, 1
  %19 = getelementptr inbounds i8, ptr %2, i64 56
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  store double %17, ptr %20, align 8, !tbaa !14
  %.sroa.423.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 8
  store double %18, ptr %.sroa.423.0..sroa_idx, align 8, !tbaa !14
  br label %.loopexit

21:                                               ; preds = %4
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef 2, ptr noundef %3)
  %22 = getelementptr inbounds i8, ptr %0, i64 56
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  %24 = load double, ptr %23, align 8, !tbaa !14
  %25 = getelementptr inbounds i8, ptr %23, i64 8
  %26 = load double, ptr %25, align 8, !tbaa !14
  %27 = fadd double %24, %26
  %28 = getelementptr inbounds i8, ptr %2, i64 56
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  store double %27, ptr %29, align 8, !tbaa !16
  %30 = load ptr, ptr %28, align 8, !tbaa !13
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  store double 0.000000e+00, ptr %31, align 8, !tbaa !18
  %32 = load ptr, ptr %22, align 8, !tbaa !13
  %33 = load double, ptr %32, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %32, i64 8
  %35 = load double, ptr %34, align 8, !tbaa !14
  %36 = fsub double %33, %35
  %37 = load ptr, ptr %28, align 8, !tbaa !13
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  store double %36, ptr %38, align 8, !tbaa !16
  %39 = load ptr, ptr %28, align 8, !tbaa !13
  %40 = getelementptr inbounds i8, ptr %39, i64 24
  store double 0.000000e+00, ptr %40, align 8, !tbaa !18
  br label %.loopexit

41:                                               ; preds = %4
  %42 = and i64 %1, 1
  %43 = icmp eq i64 %42, 0
  br i1 %43, label %44, label %111

44:                                               ; preds = %41
  %45 = ashr exact i64 %1, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %1, ptr noundef %3)
  %46 = getelementptr inbounds i8, ptr %6, i64 56
  %47 = load ptr, ptr %46, align 8, !tbaa !13
  %48 = getelementptr inbounds i8, ptr %0, i64 56
  %49 = load ptr, ptr %48, align 8, !tbaa !13
  %50 = add nsw i64 %1, -1
  %51 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %50)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %47, i64 noundef 1, ptr noundef %49, i64 noundef 1, i64 noundef %51)
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %45, i64 noundef 1, ptr noundef nonnull %7, ptr noundef %3)
  call void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef nonnull %6, i64 noundef 0, i64 noundef 1, ptr noundef %3)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %1, ptr noundef %3)
  %.not128 = icmp slt i64 %45, 0
  br i1 %.not128, label %.preheader, label %.lr.ph131

.lr.ph131:                                        ; preds = %44
  %52 = uitofp nneg i64 %1 to double
  %53 = getelementptr inbounds i8, ptr %2, i64 56
  br label %55

.preheader:                                       ; preds = %55, %44
  %.not125.not132 = icmp slt i64 %45, %50
  br i1 %.not125.not132, label %.lr.ph134, label %.loopexit

.lr.ph134:                                        ; preds = %.preheader
  %54 = getelementptr inbounds i8, ptr %2, i64 56
  br label %102

55:                                               ; preds = %.lr.ph131, %55
  %.0129 = phi i64 [ 0, %.lr.ph131 ], [ %101, %55 ]
  %56 = urem i64 %.0129, %45
  %57 = shl nuw nsw i64 %56, 1
  %58 = load ptr, ptr %46, align 8, !tbaa !13
  %59 = getelementptr inbounds double, ptr %58, i64 %57
  %60 = load double, ptr %59, align 8, !tbaa !14
  %61 = or disjoint i64 %57, 1
  %62 = getelementptr inbounds double, ptr %58, i64 %61
  %63 = load double, ptr %62, align 8, !tbaa !14
  %64 = sub nsw i64 %45, %.0129
  %65 = srem i64 %64, %45
  %66 = shl nsw i64 %65, 1
  %67 = getelementptr inbounds double, ptr %58, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !14
  %69 = or disjoint i64 %66, 1
  %70 = getelementptr inbounds double, ptr %58, i64 %69
  %71 = load double, ptr %70, align 8, !tbaa !14
  %72 = fneg double %71
  %73 = uitofp nneg i64 %.0129 to double
  %74 = fmul double %73, 0xC01921FB54442D18
  %75 = fdiv double %74, %52
  %76 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %75, ptr noundef %3)
  %77 = fneg double %76
  %78 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %75, ptr noundef %3)
  %79 = call { double, double } @_ZN11alglib_impl8ae_c_addENS_10ae_complexES0_(double %60, double %63, double %68, double %72)
  %80 = extractvalue { double, double } %79, 0
  %81 = extractvalue { double, double } %79, 1
  %82 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %60, double %63, double %68, double %72)
  %83 = extractvalue { double, double } %82, 0
  %84 = extractvalue { double, double } %82, 1
  %85 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %77, double %78, double %83, double %84)
  %86 = extractvalue { double, double } %85, 0
  %87 = extractvalue { double, double } %85, 1
  %88 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %80, double %81, double %86, double %87)
  %89 = extractvalue { double, double } %88, 0
  %90 = extractvalue { double, double } %88, 1
  %91 = load ptr, ptr %53, align 8, !tbaa !13
  %92 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %91, i64 %.0129
  store double %89, ptr %92, align 8, !tbaa !14
  %.sroa.421.0..sroa_idx = getelementptr inbounds i8, ptr %92, i64 8
  store double %90, ptr %.sroa.421.0..sroa_idx, align 8, !tbaa !14
  %93 = load ptr, ptr %53, align 8, !tbaa !13
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %93, i64 %.0129
  %95 = load double, ptr %94, align 8, !tbaa !16
  %96 = fmul double %95, 5.000000e-01
  store double %96, ptr %94, align 8, !tbaa !16
  %97 = load ptr, ptr %53, align 8, !tbaa !13
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %97, i64 %.0129, i32 1
  %99 = load double, ptr %98, align 8, !tbaa !18
  %100 = fmul double %99, 5.000000e-01
  store double %100, ptr %98, align 8, !tbaa !18
  %101 = add nuw nsw i64 %.0129, 1
  %exitcond136.not = icmp eq i64 %.0129, %45
  br i1 %exitcond136.not, label %.preheader, label %55, !llvm.loop !19

102:                                              ; preds = %.lr.ph134, %102
  %.1.in133 = phi i64 [ %45, %.lr.ph134 ], [ %.1, %102 ]
  %.1 = add nsw i64 %.1.in133, 1
  %103 = load ptr, ptr %54, align 8, !tbaa !13
  %104 = sub nsw i64 %1, %.1
  %105 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %103, i64 %104
  %.sroa.01.0.copyload = load double, ptr %105, align 8, !tbaa !14
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %105, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !14
  %106 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %.sroa.01.0.copyload, double %.sroa.2.0.copyload, ptr noundef %3)
  %107 = extractvalue { double, double } %106, 0
  %108 = extractvalue { double, double } %106, 1
  %109 = load ptr, ptr %54, align 8, !tbaa !13
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %109, i64 %.1
  store double %107, ptr %110, align 8, !tbaa !14
  %.sroa.43.0..sroa_idx = getelementptr inbounds i8, ptr %110, i64 8
  store double %108, ptr %.sroa.43.0..sroa_idx, align 8, !tbaa !14
  %exitcond137.not = icmp eq i64 %.1, %50
  br i1 %exitcond137.not, label %.loopexit, label %102, !llvm.loop !21

111:                                              ; preds = %41
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %1, ptr noundef %3)
  br i1 %8, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %111
  %112 = getelementptr inbounds i8, ptr %0, i64 56
  %113 = getelementptr inbounds i8, ptr %2, i64 56
  br label %114

114:                                              ; preds = %.lr.ph, %114
  %.2127 = phi i64 [ 0, %.lr.ph ], [ %123, %114 ]
  %115 = load ptr, ptr %112, align 8, !tbaa !13
  %116 = getelementptr inbounds double, ptr %115, i64 %.2127
  %117 = load double, ptr %116, align 8, !tbaa !14
  %118 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %117)
  %119 = extractvalue { double, double } %118, 0
  %120 = extractvalue { double, double } %118, 1
  %121 = load ptr, ptr %113, align 8, !tbaa !13
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %121, i64 %.2127
  store double %119, ptr %122, align 8, !tbaa !14
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %122, i64 8
  store double %120, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !14
  %123 = add nuw nsw i64 %.2127, 1
  %exitcond.not = icmp eq i64 %123, %1
  br i1 %exitcond.not, label %._crit_edge, label %114, !llvm.loop !22

._crit_edge:                                      ; preds = %114, %111
  call void @_ZN11alglib_impl6fftc1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %1, ptr noundef %3)
  br label %.loopexit

.loopexit:                                        ; preds = %102, %._crit_edge, %.preheader, %21, %12
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %3)
  call void @llvm.lifetime.end.p0(i64 416, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  ret void
}

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

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

declare void @_ZN11alglib_impl23_fasttransformplan_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #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 #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

declare void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

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

declare noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

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

declare { double, double } @_ZN11alglib_impl8ae_c_addENS_10ae_complexES0_(double, double, double, double) local_unnamed_addr #2

declare { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double, double, double, double) local_unnamed_addr #2

declare { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double, double, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"_ZTSN11alglib_impl10ae_complexE", !15, i64 0, !15, i64 8}
!18 = !{!17, !15, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass