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

@.str.12 = external hidden unnamed_addr constant [32 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl18fftr1dinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"struct.alglib_impl::ae_complex", align 8
  %17 = alloca %"struct.alglib_impl::ae_complex", 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
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  %29 = load i64, ptr %7, align 8, !tbaa !9
  %30 = icmp sgt i64 %29, 0
  br i1 %30, label %31, label %35

31:                                               ; preds = %5
  %32 = load i64, ptr %7, align 8, !tbaa !9
  %33 = srem i64 %32, 2
  %34 = icmp eq i64 %33, 0
  br label %35

35:                                               ; preds = %31, %5
  %36 = phi i1 [ false, %5 ], [ %34, %31 ]
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef @.str.12, ptr noundef %37)
  %38 = load i64, ptr %7, align 8, !tbaa !9
  %39 = icmp eq i64 %38, 2
  br i1 %39, label %40, label %73

40:                                               ; preds = %35
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %43 = load ptr, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds double, ptr %43, i64 0
  %45 = load double, ptr %44, align 8, !tbaa !12
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = getelementptr inbounds double, ptr %48, i64 1
  %50 = load double, ptr %49, align 8, !tbaa !12
  %51 = fadd double %45, %50
  store double %51, ptr %11, align 8, !tbaa !12
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !11
  %55 = getelementptr inbounds double, ptr %54, i64 0
  %56 = load double, ptr %55, align 8, !tbaa !12
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %57, i32 0, i32 4
  %59 = load ptr, ptr %58, align 8, !tbaa !11
  %60 = getelementptr inbounds double, ptr %59, i64 1
  %61 = load double, ptr %60, align 8, !tbaa !12
  %62 = fsub double %56, %61
  store double %62, ptr %12, align 8, !tbaa !12
  %63 = load double, ptr %11, align 8, !tbaa !12
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %64, i32 0, i32 4
  %66 = load ptr, ptr %65, align 8, !tbaa !11
  %67 = getelementptr inbounds double, ptr %66, i64 0
  store double %63, ptr %67, align 8, !tbaa !12
  %68 = load double, ptr %12, align 8, !tbaa !12
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %69, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !11
  %72 = getelementptr inbounds double, ptr %71, i64 1
  store double %68, ptr %72, align 8, !tbaa !12
  store i32 1, ptr %19, align 4
  br label %262

73:                                               ; preds = %35
  %74 = load i64, ptr %7, align 8, !tbaa !9
  %75 = sdiv i64 %74, 2
  store i64 %75, ptr %14, align 8, !tbaa !9
  %76 = load ptr, ptr %8, 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 !11
  %79 = getelementptr inbounds double, ptr %78, i64 0
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %80, i32 0, i32 4
  %82 = load ptr, ptr %81, align 8, !tbaa !11
  %83 = getelementptr inbounds double, ptr %82, i64 0
  %84 = load i64, ptr %7, align 8, !tbaa !9
  %85 = sub nsw i64 %84, 1
  %86 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %85)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %79, i64 noundef 1, ptr noundef %83, i64 noundef 1, i64 noundef %86)
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef %87, ptr noundef %88, i64 noundef 0, i64 noundef 1, ptr noundef %89)
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %90, i32 0, i32 4
  %92 = load ptr, ptr %91, align 8, !tbaa !11
  %93 = getelementptr inbounds double, ptr %92, i64 0
  %94 = load double, ptr %93, align 8, !tbaa !12
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %95, i32 0, i32 4
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = getelementptr inbounds double, ptr %97, i64 1
  %99 = load double, ptr %98, align 8, !tbaa !12
  %100 = fadd double %94, %99
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %101, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !11
  %104 = getelementptr inbounds double, ptr %103, i64 0
  store double %100, ptr %104, align 8, !tbaa !12
  store i64 1, ptr %13, align 8, !tbaa !9
  br label %105

105:                                              ; preds = %243, %73
  %106 = load i64, ptr %13, align 8, !tbaa !9
  %107 = load i64, ptr %14, align 8, !tbaa !9
  %108 = sub nsw i64 %107, 1
  %109 = icmp sle i64 %106, %108
  br i1 %109, label %110, label %246

110:                                              ; preds = %105
  %111 = load i64, ptr %13, align 8, !tbaa !9
  %112 = load i64, ptr %14, align 8, !tbaa !9
  %113 = srem i64 %111, %112
  %114 = mul nsw i64 2, %113
  store i64 %114, ptr %15, align 8, !tbaa !9
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %115, i32 0, i32 4
  %117 = load ptr, ptr %116, align 8, !tbaa !11
  %118 = load i64, ptr %15, align 8, !tbaa !9
  %119 = add nsw i64 %118, 0
  %120 = getelementptr inbounds double, ptr %117, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !12
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %16, i32 0, i32 0
  store double %121, ptr %122, align 8, !tbaa !14
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %123, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !11
  %126 = load i64, ptr %15, align 8, !tbaa !9
  %127 = add nsw i64 %126, 1
  %128 = getelementptr inbounds double, ptr %125, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !12
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %16, i32 0, i32 1
  store double %129, ptr %130, align 8, !tbaa !16
  %131 = load i64, ptr %14, align 8, !tbaa !9
  %132 = load i64, ptr %13, align 8, !tbaa !9
  %133 = sub nsw i64 %131, %132
  %134 = mul nsw i64 2, %133
  store i64 %134, ptr %15, align 8, !tbaa !9
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !11
  %138 = load i64, ptr %15, align 8, !tbaa !9
  %139 = add nsw i64 %138, 0
  %140 = getelementptr inbounds double, ptr %137, i64 %139
  %141 = load double, ptr %140, align 8, !tbaa !12
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %17, i32 0, i32 0
  store double %141, ptr %142, align 8, !tbaa !14
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %143, i32 0, i32 4
  %145 = load ptr, ptr %144, align 8, !tbaa !11
  %146 = load i64, ptr %15, align 8, !tbaa !9
  %147 = add nsw i64 %146, 1
  %148 = getelementptr inbounds double, ptr %145, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !12
  %150 = fneg double %149
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %17, i32 0, i32 1
  store double %150, ptr %151, align 8, !tbaa !16
  %152 = load i64, ptr %13, align 8, !tbaa !9
  %153 = sitofp i64 %152 to double
  %154 = fmul double 0xC01921FB54442D18, %153
  %155 = load i64, ptr %7, align 8, !tbaa !9
  %156 = sitofp i64 %155 to double
  %157 = fdiv double %154, %156
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  %159 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %157, ptr noundef %158)
  %160 = fneg double %159
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %18, i32 0, i32 0
  store double %160, ptr %161, align 8, !tbaa !14
  %162 = load i64, ptr %13, align 8, !tbaa !9
  %163 = sitofp i64 %162 to double
  %164 = fmul double 0xC01921FB54442D18, %163
  %165 = load i64, ptr %7, align 8, !tbaa !9
  %166 = sitofp i64 %165 to double
  %167 = fdiv double %164, %166
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %167, ptr noundef %168)
  %170 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %18, i32 0, i32 1
  store double %169, ptr %170, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %16, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !17
  %171 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %172 = load double, ptr %171, align 8
  %173 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %174 = load double, ptr %173, align 8
  %175 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %176 = load double, ptr %175, align 8
  %177 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %178 = load double, ptr %177, align 8
  %179 = call { double, double } @_ZN11alglib_impl8ae_c_addENS_10ae_complexES0_(double %172, double %174, double %176, double %178)
  %180 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %181 = extractvalue { double, double } %179, 0
  store double %181, ptr %180, align 8
  %182 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %183 = extractvalue { double, double } %179, 1
  store double %183, ptr %182, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %16, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !17
  %184 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %185 = load double, ptr %184, align 8
  %186 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %187 = load double, ptr %186, align 8
  %188 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %189 = load double, ptr %188, align 8
  %190 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %191 = load double, ptr %190, align 8
  %192 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %185, double %187, double %189, double %191)
  %193 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %194 = extractvalue { double, double } %192, 0
  store double %194, ptr %193, align 8
  %195 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %196 = extractvalue { double, double } %192, 1
  store double %196, ptr %195, align 8
  %197 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %198 = load double, ptr %197, align 8
  %199 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %200 = load double, ptr %199, align 8
  %201 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %202 = load double, ptr %201, align 8
  %203 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %204 = load double, ptr %203, align 8
  %205 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %198, double %200, double %202, double %204)
  %206 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %207 = extractvalue { double, double } %205, 0
  store double %207, ptr %206, align 8
  %208 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %209 = extractvalue { double, double } %205, 1
  store double %209, ptr %208, align 8
  %210 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %211 = load double, ptr %210, align 8
  %212 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %213 = load double, ptr %212, align 8
  %214 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %215 = load double, ptr %214, align 8
  %216 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %217 = load double, ptr %216, align 8
  %218 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %211, double %213, double %215, double %217)
  %219 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %220 = extractvalue { double, double } %218, 0
  store double %220, ptr %219, align 8
  %221 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %222 = extractvalue { double, double } %218, 1
  store double %222, ptr %221, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %18, i32 0, i32 0
  %224 = load double, ptr %223, align 8, !tbaa !14
  %225 = fmul double 5.000000e-01, %224
  %226 = load ptr, ptr %6, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %226, i32 0, i32 4
  %228 = load ptr, ptr %227, align 8, !tbaa !11
  %229 = load i64, ptr %13, align 8, !tbaa !9
  %230 = mul nsw i64 2, %229
  %231 = add nsw i64 %230, 0
  %232 = getelementptr inbounds double, ptr %228, i64 %231
  store double %225, ptr %232, align 8, !tbaa !12
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %18, i32 0, i32 1
  %234 = load double, ptr %233, align 8, !tbaa !16
  %235 = fmul double 5.000000e-01, %234
  %236 = load ptr, ptr %6, align 8, !tbaa !5
  %237 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %236, i32 0, i32 4
  %238 = load ptr, ptr %237, align 8, !tbaa !11
  %239 = load i64, ptr %13, align 8, !tbaa !9
  %240 = mul nsw i64 2, %239
  %241 = add nsw i64 %240, 1
  %242 = getelementptr inbounds double, ptr %238, i64 %241
  store double %235, ptr %242, align 8, !tbaa !12
  br label %243

243:                                              ; preds = %110
  %244 = load i64, ptr %13, align 8, !tbaa !9
  %245 = add nsw i64 %244, 1
  store i64 %245, ptr %13, align 8, !tbaa !9
  br label %105, !llvm.loop !18

246:                                              ; preds = %105
  %247 = load ptr, ptr %8, align 8, !tbaa !5
  %248 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %247, i32 0, i32 4
  %249 = load ptr, ptr %248, align 8, !tbaa !11
  %250 = getelementptr inbounds double, ptr %249, i64 0
  %251 = load double, ptr %250, align 8, !tbaa !12
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  %253 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %252, i32 0, i32 4
  %254 = load ptr, ptr %253, align 8, !tbaa !11
  %255 = getelementptr inbounds double, ptr %254, i64 1
  %256 = load double, ptr %255, align 8, !tbaa !12
  %257 = fsub double %251, %256
  %258 = load ptr, ptr %6, align 8, !tbaa !5
  %259 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %258, i32 0, i32 4
  %260 = load ptr, ptr %259, align 8, !tbaa !11
  %261 = getelementptr inbounds double, ptr %260, i64 1
  store double %257, ptr %261, align 8, !tbaa !12
  store i32 0, ptr %19, align 4
  br label %262

262:                                              ; preds = %246, %40
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %263 = load i32, ptr %19, align 4
  switch i32 %263, label %265 [
    i32 0, label %264
    i32 1, label %264
  ]

264:                                              ; preds = %262, %262
  ret void

265:                                              ; preds = %262
  unreachable
}

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: readwrite) }
attributes #3 = { 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 #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, !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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"_ZTSN11alglib_impl10ae_complexE", !13, i64 0, !13, i64 8}
!16 = !{!15, !13, i64 8}
!17 = !{i64 0, i64 8, !12, i64 8, i64 8, !12}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; 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"

@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl18fftr1dinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr nocapture noundef readonly %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = icmp sgt i64 %1, 0
  %7 = and i64 %1, 1
  %8 = icmp eq i64 %7, 0
  %9 = and i1 %6, %8
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.12, ptr noundef %4)
  %10 = icmp eq i64 %1, 2
  br i1 %10, label %11, label %19

11:                                               ; preds = %5
  %12 = getelementptr inbounds i8, ptr %0, i64 56
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = load double, ptr %13, align 8, !tbaa !8
  %15 = getelementptr inbounds i8, ptr %13, i64 8
  %16 = load double, ptr %15, align 8, !tbaa !8
  %17 = fadd double %14, %16
  %18 = fsub double %14, %16
  store double %17, ptr %13, align 8, !tbaa !8
  br label %83

19:                                               ; preds = %5
  %20 = sdiv i64 %1, 2
  %21 = getelementptr inbounds i8, ptr %2, i64 56
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 56
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = add nsw i64 %1, -1
  %26 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %25)
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %22, i64 noundef 1, ptr noundef %24, i64 noundef 1, i64 noundef %26)
  tail call void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef %3, ptr noundef %2, i64 noundef 0, i64 noundef 1, ptr noundef %4)
  %27 = load ptr, ptr %21, align 8, !tbaa !5
  %28 = load double, ptr %27, align 8, !tbaa !8
  %29 = getelementptr inbounds i8, ptr %27, i64 8
  %30 = load double, ptr %29, align 8, !tbaa !8
  %31 = fadd double %28, %30
  %32 = load ptr, ptr %23, align 8, !tbaa !5
  store double %31, ptr %32, align 8, !tbaa !8
  %.not.not69 = icmp sgt i64 %1, 3
  br i1 %.not.not69, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %19
  %33 = uitofp nneg i64 %1 to double
  %smax = tail call i64 @llvm.smax.i64(i64 %20, i64 2)
  br label %34

34:                                               ; preds = %.lr.ph, %34
  %.070 = phi i64 [ 1, %.lr.ph ], [ %77, %34 ]
  %35 = urem i64 %.070, %20
  %36 = shl nuw nsw i64 %35, 1
  %37 = load ptr, ptr %21, align 8, !tbaa !5
  %38 = getelementptr inbounds double, ptr %37, i64 %36
  %39 = load double, ptr %38, align 8, !tbaa !8
  %40 = or disjoint i64 %36, 1
  %41 = getelementptr inbounds double, ptr %37, i64 %40
  %42 = load double, ptr %41, align 8, !tbaa !8
  %43 = sub nsw i64 %20, %.070
  %44 = shl nsw i64 %43, 1
  %45 = getelementptr inbounds double, ptr %37, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !8
  %47 = or disjoint i64 %44, 1
  %48 = getelementptr inbounds double, ptr %37, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !8
  %50 = fneg double %49
  %51 = uitofp nneg i64 %.070 to double
  %52 = fmul double %51, 0xC01921FB54442D18
  %53 = fdiv double %52, %33
  %54 = tail call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %53, ptr noundef %4)
  %55 = fneg double %54
  %56 = tail call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %53, ptr noundef %4)
  %57 = tail call { double, double } @_ZN11alglib_impl8ae_c_addENS_10ae_complexES0_(double %39, double %42, double %46, double %50)
  %58 = extractvalue { double, double } %57, 0
  %59 = extractvalue { double, double } %57, 1
  %60 = tail call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %39, double %42, double %46, double %50)
  %61 = extractvalue { double, double } %60, 0
  %62 = extractvalue { double, double } %60, 1
  %63 = tail call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %55, double %56, double %61, double %62)
  %64 = extractvalue { double, double } %63, 0
  %65 = extractvalue { double, double } %63, 1
  %66 = tail call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %58, double %59, double %64, double %65)
  %67 = extractvalue { double, double } %66, 0
  %68 = extractvalue { double, double } %66, 1
  %69 = fmul double %67, 5.000000e-01
  %70 = load ptr, ptr %23, align 8, !tbaa !5
  %71 = shl nuw nsw i64 %.070, 1
  %72 = getelementptr inbounds double, ptr %70, i64 %71
  store double %69, ptr %72, align 8, !tbaa !8
  %73 = fmul double %68, 5.000000e-01
  %74 = load ptr, ptr %23, align 8, !tbaa !5
  %75 = or disjoint i64 %71, 1
  %76 = getelementptr inbounds double, ptr %74, i64 %75
  store double %73, ptr %76, align 8, !tbaa !8
  %77 = add nuw nsw i64 %.070, 1
  %exitcond.not = icmp eq i64 %77, %smax
  br i1 %exitcond.not, label %._crit_edge, label %34, !llvm.loop !10

._crit_edge:                                      ; preds = %34, %19
  %78 = load ptr, ptr %21, align 8, !tbaa !5
  %79 = load double, ptr %78, align 8, !tbaa !8
  %80 = getelementptr inbounds i8, ptr %78, i64 8
  %81 = load double, ptr %80, align 8, !tbaa !8
  %82 = fsub double %79, %81
  br label %83

83:                                               ; preds = %._crit_edge, %11
  %.sink73 = phi ptr [ %23, %._crit_edge ], [ %12, %11 ]
  %.sink = phi double [ %82, %._crit_edge ], [ %18, %11 ]
  %84 = load ptr, ptr %.sink73, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i64 8
  store double %.sink, ptr %85, align 8, !tbaa !8
  ret void
}

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

attributes #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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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, !9, i64 0}
!9 = !{!"double", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


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