; LLVM IR from Dimandragon/non-parametric-dsp :: 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_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, %"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.34 = external hidden unnamed_addr constant [38 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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl21convr1dcircularinvbufEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #1 {
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.alglib_impl::ae_frame", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca %"struct.alglib_impl::fasttransformplan", 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 i32, align 4
  %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
  %32 = alloca %"struct.alglib_impl::ae_complex", align 8
  %33 = alloca %"struct.alglib_impl::ae_complex", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 408, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %34, ptr noundef %13)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 408, i1 false)
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 3, ptr noundef %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 3, ptr noundef %36, i1 noundef zeroext true)
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 3, ptr noundef %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 4, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 4, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23_fasttransformplan_initEPvPNS_8ae_stateEb(ptr noundef %23, ptr noundef %40, i1 noundef zeroext true)
  %41 = load i64, ptr %10, align 8, !tbaa !9
  %42 = icmp sgt i64 %41, 0
  br i1 %42, label %43, label %46

43:                                               ; preds = %6
  %44 = load i64, ptr %8, align 8, !tbaa !9
  %45 = icmp sgt i64 %44, 0
  br label %46

46:                                               ; preds = %43, %6
  %47 = phi i1 [ false, %6 ], [ %45, %43 ]
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %47, ptr noundef @.str.34, ptr noundef %48)
  %49 = load i64, ptr %8, align 8, !tbaa !9
  %50 = load i64, ptr %10, align 8, !tbaa !9
  %51 = icmp slt i64 %49, %50
  br i1 %51, label %52, label %105

52:                                               ; preds = %46
  %53 = load i64, ptr %8, align 8, !tbaa !9
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %53, ptr noundef %54)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %65, %52
  %56 = load i64, ptr %14, align 8, !tbaa !9
  %57 = load i64, ptr %8, align 8, !tbaa !9
  %58 = sub nsw i64 %57, 1
  %59 = icmp sle i64 %56, %58
  br i1 %59, label %60, label %68

60:                                               ; preds = %55
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = load i64, ptr %14, align 8, !tbaa !9
  %64 = getelementptr inbounds double, ptr %62, i64 %63
  store double 0.000000e+00, ptr %64, align 8, !tbaa !12
  br label %65

65:                                               ; preds = %60
  %66 = load i64, ptr %14, align 8, !tbaa !9
  %67 = add nsw i64 %66, 1
  store i64 %67, ptr %14, align 8, !tbaa !9
  br label %55, !llvm.loop !14

68:                                               ; preds = %55
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %69

69:                                               ; preds = %73, %68
  %70 = load i64, ptr %15, align 8, !tbaa !9
  %71 = load i64, ptr %10, align 8, !tbaa !9
  %72 = icmp slt i64 %70, %71
  br i1 %72, label %73, label %98

73:                                               ; preds = %69
  %74 = load i64, ptr %15, align 8, !tbaa !9
  %75 = load i64, ptr %8, align 8, !tbaa !9
  %76 = add nsw i64 %74, %75
  %77 = sub nsw i64 %76, 1
  %78 = load i64, ptr %10, align 8, !tbaa !9
  %79 = sub nsw i64 %78, 1
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %77, i64 noundef %79, ptr noundef %80)
  store i64 %81, ptr %16, align 8, !tbaa !9
  %82 = load i64, ptr %16, align 8, !tbaa !9
  %83 = load i64, ptr %15, align 8, !tbaa !9
  %84 = sub nsw i64 %82, %83
  store i64 %84, ptr %17, align 8, !tbaa !9
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !11
  %87 = getelementptr inbounds double, ptr %86, i64 0
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !11
  %91 = load i64, ptr %15, align 8, !tbaa !9
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  %93 = load i64, ptr %17, align 8, !tbaa !9
  %94 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %93)
  call void @_ZN11alglib_impl8ae_v_addEPdlPKdll(ptr noundef %87, i64 noundef 1, ptr noundef %92, i64 noundef 1, i64 noundef %94)
  %95 = load i64, ptr %15, align 8, !tbaa !9
  %96 = load i64, ptr %8, align 8, !tbaa !9
  %97 = add nsw i64 %95, %96
  store i64 %97, ptr %15, align 8, !tbaa !9
  br label %69, !llvm.loop !16

98:                                               ; preds = %69
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = load i64, ptr %8, align 8, !tbaa !9
  %101 = load i64, ptr %8, align 8, !tbaa !9
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl21convr1dcircularinvbufEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %99, i64 noundef %100, ptr noundef %18, i64 noundef %101, ptr noundef %102, ptr noundef %103)
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %104)
  store i32 1, ptr %27, align 4
  br label %345

105:                                              ; preds = %46
  %106 = load i64, ptr %8, align 8, !tbaa !9
  %107 = srem i64 %106, 2
  %108 = icmp eq i64 %107, 0
  br i1 %108, label %109, label %269

109:                                              ; preds = %105
  %110 = load i64, ptr %8, align 8, !tbaa !9
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %110, ptr noundef %111)
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !11
  %114 = getelementptr inbounds double, ptr %113, i64 0
  %115 = load ptr, ptr %7, 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 = getelementptr inbounds double, ptr %117, i64 0
  %119 = load i64, ptr %8, align 8, !tbaa !9
  %120 = sub nsw i64 %119, 1
  %121 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %120)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %114, i64 noundef 1, ptr noundef %118, i64 noundef 1, i64 noundef %121)
  %122 = load i64, ptr %8, align 8, !tbaa !9
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %122, ptr noundef %123)
  %124 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !11
  %126 = getelementptr inbounds double, ptr %125, i64 0
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %127, i32 0, i32 4
  %129 = load ptr, ptr %128, align 8, !tbaa !11
  %130 = getelementptr inbounds double, ptr %129, i64 0
  %131 = load i64, ptr %10, align 8, !tbaa !9
  %132 = sub nsw i64 %131, 1
  %133 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %132)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %126, i64 noundef 1, ptr noundef %130, i64 noundef 1, i64 noundef %133)
  %134 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %134, ptr %14, align 8, !tbaa !9
  br label %135

135:                                              ; preds = %145, %109
  %136 = load i64, ptr %14, align 8, !tbaa !9
  %137 = load i64, ptr %8, align 8, !tbaa !9
  %138 = sub nsw i64 %137, 1
  %139 = icmp sle i64 %136, %138
  br i1 %139, label %140, label %148

140:                                              ; preds = %135
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !11
  %143 = load i64, ptr %14, align 8, !tbaa !9
  %144 = getelementptr inbounds double, ptr %142, i64 %143
  store double 0.000000e+00, ptr %144, align 8, !tbaa !12
  br label %145

145:                                              ; preds = %140
  %146 = load i64, ptr %14, align 8, !tbaa !9
  %147 = add nsw i64 %146, 1
  store i64 %147, ptr %14, align 8, !tbaa !9
  br label %135, !llvm.loop !17

148:                                              ; preds = %135
  %149 = load i64, ptr %8, align 8, !tbaa !9
  %150 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %149, ptr noundef %150)
  %151 = load i64, ptr %8, align 8, !tbaa !9
  %152 = sdiv i64 %151, 2
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %152, i64 noundef 1, ptr noundef %23, ptr noundef %153)
  %154 = load i64, ptr %8, align 8, !tbaa !9
  %155 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18fftr1dinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef %18, i64 noundef %154, ptr noundef %20, ptr noundef %23, ptr noundef %155)
  %156 = load i64, ptr %8, align 8, !tbaa !9
  %157 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18fftr1dinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef %19, i64 noundef %156, ptr noundef %20, ptr noundef %23, ptr noundef %157)
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %159 = load ptr, ptr %158, align 8, !tbaa !11
  %160 = getelementptr inbounds double, ptr %159, i64 0
  %161 = load double, ptr %160, align 8, !tbaa !12
  %162 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %163 = load ptr, ptr %162, align 8, !tbaa !11
  %164 = getelementptr inbounds double, ptr %163, i64 0
  %165 = load double, ptr %164, align 8, !tbaa !12
  %166 = fdiv double %161, %165
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %168 = load ptr, ptr %167, align 8, !tbaa !11
  %169 = getelementptr inbounds double, ptr %168, i64 0
  store double %166, ptr %169, align 8, !tbaa !12
  %170 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %171 = load ptr, ptr %170, align 8, !tbaa !11
  %172 = getelementptr inbounds double, ptr %171, i64 1
  %173 = load double, ptr %172, align 8, !tbaa !12
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %175 = load ptr, ptr %174, align 8, !tbaa !11
  %176 = getelementptr inbounds double, ptr %175, i64 1
  %177 = load double, ptr %176, align 8, !tbaa !12
  %178 = fdiv double %173, %177
  %179 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %180 = load ptr, ptr %179, align 8, !tbaa !11
  %181 = getelementptr inbounds double, ptr %180, i64 1
  store double %178, ptr %181, align 8, !tbaa !12
  store i64 1, ptr %14, align 8, !tbaa !9
  br label %182

182:                                              ; preds = %250, %148
  %183 = load i64, ptr %14, align 8, !tbaa !9
  %184 = load i64, ptr %8, align 8, !tbaa !9
  %185 = sdiv i64 %184, 2
  %186 = sub nsw i64 %185, 1
  %187 = icmp sle i64 %183, %186
  br i1 %187, label %188, label %253

188:                                              ; preds = %182
  %189 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !11
  %191 = load i64, ptr %14, align 8, !tbaa !9
  %192 = mul nsw i64 2, %191
  %193 = add nsw i64 %192, 0
  %194 = getelementptr inbounds double, ptr %190, i64 %193
  %195 = load double, ptr %194, align 8, !tbaa !12
  %196 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %24, i32 0, i32 0
  store double %195, ptr %196, align 8, !tbaa !18
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %198 = load ptr, ptr %197, align 8, !tbaa !11
  %199 = load i64, ptr %14, align 8, !tbaa !9
  %200 = mul nsw i64 2, %199
  %201 = add nsw i64 %200, 1
  %202 = getelementptr inbounds double, ptr %198, i64 %201
  %203 = load double, ptr %202, align 8, !tbaa !12
  %204 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %24, i32 0, i32 1
  store double %203, ptr %204, align 8, !tbaa !20
  %205 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %206 = load ptr, ptr %205, align 8, !tbaa !11
  %207 = load i64, ptr %14, align 8, !tbaa !9
  %208 = mul nsw i64 2, %207
  %209 = add nsw i64 %208, 0
  %210 = getelementptr inbounds double, ptr %206, i64 %209
  %211 = load double, ptr %210, align 8, !tbaa !12
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %25, i32 0, i32 0
  store double %211, ptr %212, align 8, !tbaa !18
  %213 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %214 = load ptr, ptr %213, align 8, !tbaa !11
  %215 = load i64, ptr %14, align 8, !tbaa !9
  %216 = mul nsw i64 2, %215
  %217 = add nsw i64 %216, 1
  %218 = getelementptr inbounds double, ptr %214, i64 %217
  %219 = load double, ptr %218, align 8, !tbaa !12
  %220 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %25, i32 0, i32 1
  store double %219, ptr %220, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %25, i64 16, i1 false), !tbaa.struct !21
  %221 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %222 = load double, ptr %221, align 8
  %223 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %224 = load double, ptr %223, align 8
  %225 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %226 = load double, ptr %225, align 8
  %227 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %228 = load double, ptr %227, align 8
  %229 = call { double, double } @_ZN11alglib_impl8ae_c_divENS_10ae_complexES0_(double %222, double %224, double %226, double %228)
  %230 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %231 = extractvalue { double, double } %229, 0
  store double %231, ptr %230, align 8
  %232 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %233 = extractvalue { double, double } %229, 1
  store double %233, ptr %232, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  %234 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %26, i32 0, i32 0
  %235 = load double, ptr %234, align 8, !tbaa !18
  %236 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %237 = load ptr, ptr %236, align 8, !tbaa !11
  %238 = load i64, ptr %14, align 8, !tbaa !9
  %239 = mul nsw i64 2, %238
  %240 = add nsw i64 %239, 0
  %241 = getelementptr inbounds double, ptr %237, i64 %240
  store double %235, ptr %241, align 8, !tbaa !12
  %242 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %26, i32 0, i32 1
  %243 = load double, ptr %242, align 8, !tbaa !20
  %244 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %245 = load ptr, ptr %244, align 8, !tbaa !11
  %246 = load i64, ptr %14, align 8, !tbaa !9
  %247 = mul nsw i64 2, %246
  %248 = add nsw i64 %247, 1
  %249 = getelementptr inbounds double, ptr %245, i64 %248
  store double %243, ptr %249, align 8, !tbaa !12
  br label %250

250:                                              ; preds = %188
  %251 = load i64, ptr %14, align 8, !tbaa !9
  %252 = add nsw i64 %251, 1
  store i64 %252, ptr %14, align 8, !tbaa !9
  br label %182, !llvm.loop !22

253:                                              ; preds = %182
  %254 = load i64, ptr %8, align 8, !tbaa !9
  %255 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl21fftr1dinvinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef %18, i64 noundef %254, ptr noundef %20, ptr noundef %23, ptr noundef %255)
  %256 = load i64, ptr %8, align 8, !tbaa !9
  %257 = load ptr, ptr %11, align 8, !tbaa !5
  %258 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %256, ptr noundef %257, ptr noundef %258)
  %259 = load ptr, ptr %11, 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 !11
  %262 = getelementptr inbounds double, ptr %261, i64 0
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %264 = load ptr, ptr %263, align 8, !tbaa !11
  %265 = getelementptr inbounds double, ptr %264, i64 0
  %266 = load i64, ptr %8, align 8, !tbaa !9
  %267 = sub nsw i64 %266, 1
  %268 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %267)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %262, i64 noundef 1, ptr noundef %265, i64 noundef 1, i64 noundef %268)
  br label %343

269:                                              ; preds = %105
  %270 = load ptr, ptr %7, align 8, !tbaa !5
  %271 = load i64, ptr %8, align 8, !tbaa !9
  %272 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl6fftr1dEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %270, i64 noundef %271, ptr noundef %21, ptr noundef %272)
  %273 = load i64, ptr %8, align 8, !tbaa !9
  %274 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %273, ptr noundef %274)
  %275 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %276 = load ptr, ptr %275, align 8, !tbaa !11
  %277 = getelementptr inbounds double, ptr %276, i64 0
  %278 = load ptr, ptr %9, 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 !11
  %281 = getelementptr inbounds double, ptr %280, i64 0
  %282 = load i64, ptr %10, align 8, !tbaa !9
  %283 = sub nsw i64 %282, 1
  %284 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %283)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %277, i64 noundef 1, ptr noundef %281, i64 noundef 1, i64 noundef %284)
  %285 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %285, ptr %14, align 8, !tbaa !9
  br label %286

286:                                              ; preds = %296, %269
  %287 = load i64, ptr %14, align 8, !tbaa !9
  %288 = load i64, ptr %8, align 8, !tbaa !9
  %289 = sub nsw i64 %288, 1
  %290 = icmp sle i64 %287, %289
  br i1 %290, label %291, label %299

291:                                              ; preds = %286
  %292 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %293 = load ptr, ptr %292, align 8, !tbaa !11
  %294 = load i64, ptr %14, align 8, !tbaa !9
  %295 = getelementptr inbounds double, ptr %293, i64 %294
  store double 0.000000e+00, ptr %295, align 8, !tbaa !12
  br label %296

296:                                              ; preds = %291
  %297 = load i64, ptr %14, align 8, !tbaa !9
  %298 = add nsw i64 %297, 1
  store i64 %298, ptr %14, align 8, !tbaa !9
  br label %286, !llvm.loop !23

299:                                              ; preds = %286
  %300 = load i64, ptr %8, align 8, !tbaa !9
  %301 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl6fftr1dEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %19, i64 noundef %300, ptr noundef %22, ptr noundef %301)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %302

302:                                              ; preds = %336, %299
  %303 = load i64, ptr %14, align 8, !tbaa !9
  %304 = load i64, ptr %8, align 8, !tbaa !9
  %305 = sitofp i64 %304 to double
  %306 = fdiv double %305, 2.000000e+00
  %307 = load ptr, ptr %12, align 8, !tbaa !5
  %308 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %306, ptr noundef %307)
  %309 = icmp sle i64 %303, %308
  br i1 %309, label %310, label %339

310:                                              ; preds = %302
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #5
  %311 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %312 = load ptr, ptr %311, align 8, !tbaa !11
  %313 = load i64, ptr %14, align 8, !tbaa !9
  %314 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %312, i64 %313
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 %314, i64 16, i1 false), !tbaa.struct !21
  %315 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %316 = load ptr, ptr %315, align 8, !tbaa !11
  %317 = load i64, ptr %14, align 8, !tbaa !9
  %318 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %316, i64 %317
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %33, ptr align 8 %318, i64 16, i1 false), !tbaa.struct !21
  %319 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %320 = load double, ptr %319, align 8
  %321 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %322 = load double, ptr %321, align 8
  %323 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %324 = load double, ptr %323, align 8
  %325 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %326 = load double, ptr %325, align 8
  %327 = call { double, double } @_ZN11alglib_impl8ae_c_divENS_10ae_complexES0_(double %320, double %322, double %324, double %326)
  %328 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %329 = extractvalue { double, double } %327, 0
  store double %329, ptr %328, align 8
  %330 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %331 = extractvalue { double, double } %327, 1
  store double %331, ptr %330, align 8
  %332 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %333 = load ptr, ptr %332, align 8, !tbaa !11
  %334 = load i64, ptr %14, align 8, !tbaa !9
  %335 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %333, i64 %334
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %335, ptr align 8 %31, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  br label %336

336:                                              ; preds = %310
  %337 = load i64, ptr %14, align 8, !tbaa !9
  %338 = add nsw i64 %337, 1
  store i64 %338, ptr %14, align 8, !tbaa !9
  br label %302, !llvm.loop !24

339:                                              ; preds = %302
  %340 = load i64, ptr %8, align 8, !tbaa !9
  %341 = load ptr, ptr %11, align 8, !tbaa !5
  %342 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl12fftr1dinvbufEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %21, i64 noundef %340, ptr noundef %341, ptr noundef %342)
  br label %343

343:                                              ; preds = %339, %253
  %344 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %344)
  store i32 0, ptr %27, align 4
  br label %345

345:                                              ; preds = %343, %98
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 408, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  %346 = load i32, ptr %27, align 4
  switch i32 %346, label %348 [
    i32 0, label %347
    i32 1, label %347
  ]

347:                                              ; preds = %345, %345
  ret void

348:                                              ; preds = %345
  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

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

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

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

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

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

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl8ae_v_addEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = !{!19, !13, i64 0}
!19 = !{!"_ZTSN11alglib_impl10ae_complexE", !13, i64 0, !13, i64 8}
!20 = !{!19, !13, i64 8}
!21 = !{i64 0, i64 8, !12, i64 8, i64 8, !12}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}


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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl21convr1dcircularinvbufEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr nocapture noundef readonly %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::fasttransformplan", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %13) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %5, ptr noundef nonnull %7)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(408) %13, i8 0, i64 408, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 3, ptr noundef %5, 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 %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 4, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 4, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl23_fasttransformplan_initEPvPNS_8ae_stateEb(ptr noundef nonnull %13, ptr noundef %5, i1 noundef zeroext true)
  %14 = icmp sgt i64 %3, 0
  %15 = icmp sgt i64 %1, 0
  %16 = and i1 %15, %14
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.34, ptr noundef %5)
  %17 = icmp slt i64 %1, %3
  br i1 %17, label %18, label %51

18:                                               ; preds = %6
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %1, ptr noundef %5)
  br i1 %15, label %.lr.ph143, label %.preheader

.lr.ph143:                                        ; preds = %18
  %19 = getelementptr inbounds i8, ptr %8, i64 56
  %20 = add nsw i64 %1, -1
  %xtraiter154 = and i64 %1, 3
  %21 = icmp ult i64 %20, 3
  br i1 %21, label %.preheader.loopexit.unr-lcssa, label %.lr.ph143.new

.lr.ph143.new:                                    ; preds = %.lr.ph143
  %unroll_iter = and i64 %1, 9223372036854775804
  br label %28

.preheader.loopexit.unr-lcssa:                    ; preds = %28, %.lr.ph143
  %.0141.unr = phi i64 [ 0, %.lr.ph143 ], [ %40, %28 ]
  %lcmp.mod155.not = icmp eq i64 %xtraiter154, 0
  br i1 %lcmp.mod155.not, label %.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader
  %.0141.epil = phi i64 [ %24, %.epil.preheader ], [ %.0141.unr, %.preheader.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader.loopexit.unr-lcssa ]
  %22 = load ptr, ptr %19, align 8, !tbaa !5
  %23 = getelementptr inbounds double, ptr %22, i64 %.0141.epil
  store double 0.000000e+00, ptr %23, align 8, !tbaa !8
  %24 = add nuw nsw i64 %.0141.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter154
  br i1 %epil.iter.cmp.not, label %.preheader, label %.epil.preheader, !llvm.loop !10

.preheader:                                       ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader, %18
  br i1 %14, label %.lr.ph145, label %._crit_edge146

.lr.ph145:                                        ; preds = %.preheader
  %25 = add nsw i64 %3, -1
  %26 = getelementptr inbounds i8, ptr %8, i64 56
  %27 = getelementptr inbounds i8, ptr %2, i64 56
  br label %41

28:                                               ; preds = %28, %.lr.ph143.new
  %.0141 = phi i64 [ 0, %.lr.ph143.new ], [ %40, %28 ]
  %niter = phi i64 [ 0, %.lr.ph143.new ], [ %niter.next.3, %28 ]
  %29 = load ptr, ptr %19, align 8, !tbaa !5
  %30 = getelementptr inbounds double, ptr %29, i64 %.0141
  store double 0.000000e+00, ptr %30, align 8, !tbaa !8
  %31 = or disjoint i64 %.0141, 1
  %32 = load ptr, ptr %19, align 8, !tbaa !5
  %33 = getelementptr inbounds double, ptr %32, i64 %31
  store double 0.000000e+00, ptr %33, align 8, !tbaa !8
  %34 = or disjoint i64 %.0141, 2
  %35 = load ptr, ptr %19, align 8, !tbaa !5
  %36 = getelementptr inbounds double, ptr %35, i64 %34
  store double 0.000000e+00, ptr %36, align 8, !tbaa !8
  %37 = or disjoint i64 %.0141, 3
  %38 = load ptr, ptr %19, align 8, !tbaa !5
  %39 = getelementptr inbounds double, ptr %38, i64 %37
  store double 0.000000e+00, ptr %39, align 8, !tbaa !8
  %40 = add nuw nsw i64 %.0141, 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 %.preheader.loopexit.unr-lcssa, label %28, !llvm.loop !12

41:                                               ; preds = %.lr.ph145, %41
  %.0114144 = phi i64 [ 0, %.lr.ph145 ], [ %42, %41 ]
  %42 = add nsw i64 %.0114144, %1
  %43 = add nsw i64 %42, -1
  %44 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %43, i64 noundef %25, ptr noundef %5)
  %45 = sub nsw i64 %44, %.0114144
  %46 = load ptr, ptr %26, align 8, !tbaa !5
  %47 = load ptr, ptr %27, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %47, i64 %.0114144
  %49 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %45)
  call void @_ZN11alglib_impl8ae_v_addEPdlPKdll(ptr noundef %46, i64 noundef 1, ptr noundef %48, i64 noundef 1, i64 noundef %49)
  %50 = icmp slt i64 %42, %3
  br i1 %50, label %41, label %._crit_edge146, !llvm.loop !14

._crit_edge146:                                   ; preds = %41, %.preheader
  call void @_ZN11alglib_impl21convr1dcircularinvbufEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef nonnull %8, i64 noundef %1, ptr noundef %4, ptr noundef %5)
  br label %164

51:                                               ; preds = %6
  %52 = and i64 %1, 1
  %53 = icmp eq i64 %52, 0
  br i1 %53, label %54, label %122

54:                                               ; preds = %51
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %1, ptr noundef %5)
  %55 = getelementptr inbounds i8, ptr %8, i64 56
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %0, i64 56
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = add nsw i64 %1, -1
  %60 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %59)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %56, i64 noundef 1, ptr noundef %58, i64 noundef 1, i64 noundef %60)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %1, ptr noundef %5)
  %61 = getelementptr inbounds i8, ptr %9, i64 56
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %2, i64 56
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = add nsw i64 %3, -1
  %66 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %65)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %62, i64 noundef 1, ptr noundef %64, i64 noundef 1, i64 noundef %66)
  %.not120.not130 = icmp slt i64 %3, %1
  br i1 %.not120.not130, label %.lr.ph133.preheader, label %._crit_edge134

.lr.ph133.preheader:                              ; preds = %54
  %67 = sub i64 %1, %3
  %xtraiter151 = and i64 %67, 3
  %lcmp.mod152.not = icmp eq i64 %xtraiter151, 0
  br i1 %lcmp.mod152.not, label %.lr.ph133.prol.loopexit, label %.lr.ph133.prol

.lr.ph133.prol:                                   ; preds = %.lr.ph133.preheader, %.lr.ph133.prol
  %.1131.prol = phi i64 [ %70, %.lr.ph133.prol ], [ %3, %.lr.ph133.preheader ]
  %prol.iter153 = phi i64 [ %prol.iter153.next, %.lr.ph133.prol ], [ 0, %.lr.ph133.preheader ]
  %68 = load ptr, ptr %61, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %68, i64 %.1131.prol
  store double 0.000000e+00, ptr %69, align 8, !tbaa !8
  %70 = add nsw i64 %.1131.prol, 1
  %prol.iter153.next = add i64 %prol.iter153, 1
  %prol.iter153.cmp.not = icmp eq i64 %prol.iter153.next, %xtraiter151
  br i1 %prol.iter153.cmp.not, label %.lr.ph133.prol.loopexit, label %.lr.ph133.prol, !llvm.loop !15

.lr.ph133.prol.loopexit:                          ; preds = %.lr.ph133.prol, %.lr.ph133.preheader
  %.1131.unr = phi i64 [ %3, %.lr.ph133.preheader ], [ %70, %.lr.ph133.prol ]
  %71 = sub i64 %3, %1
  %72 = icmp ugt i64 %71, -4
  br i1 %72, label %._crit_edge134, label %.lr.ph133

.lr.ph133:                                        ; preds = %.lr.ph133.prol.loopexit, %.lr.ph133
  %.1131 = phi i64 [ %84, %.lr.ph133 ], [ %.1131.unr, %.lr.ph133.prol.loopexit ]
  %73 = load ptr, ptr %61, align 8, !tbaa !5
  %74 = getelementptr inbounds double, ptr %73, i64 %.1131
  store double 0.000000e+00, ptr %74, align 8, !tbaa !8
  %75 = load ptr, ptr %61, align 8, !tbaa !5
  %76 = getelementptr double, ptr %75, i64 %.1131
  %77 = getelementptr i8, ptr %76, i64 8
  store double 0.000000e+00, ptr %77, align 8, !tbaa !8
  %78 = load ptr, ptr %61, align 8, !tbaa !5
  %79 = getelementptr double, ptr %78, i64 %.1131
  %80 = getelementptr i8, ptr %79, i64 16
  store double 0.000000e+00, ptr %80, align 8, !tbaa !8
  %81 = load ptr, ptr %61, align 8, !tbaa !5
  %82 = getelementptr double, ptr %81, i64 %.1131
  %83 = getelementptr i8, ptr %82, i64 24
  store double 0.000000e+00, ptr %83, align 8, !tbaa !8
  %84 = add nsw i64 %.1131, 4
  %exitcond148.not.3 = icmp eq i64 %84, %1
  br i1 %exitcond148.not.3, label %._crit_edge134, label %.lr.ph133, !llvm.loop !16

._crit_edge134:                                   ; preds = %.lr.ph133.prol.loopexit, %.lr.ph133, %54
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %1, ptr noundef %5)
  %85 = ashr exact i64 %1, 1
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %85, i64 noundef 1, ptr noundef nonnull %13, ptr noundef %5)
  call void @_ZN11alglib_impl18fftr1dinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %1, ptr noundef nonnull %10, ptr noundef nonnull %13, ptr noundef %5)
  call void @_ZN11alglib_impl18fftr1dinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %1, ptr noundef nonnull %10, ptr noundef nonnull %13, ptr noundef %5)
  %86 = load ptr, ptr %55, align 8, !tbaa !5
  %87 = load double, ptr %86, align 8, !tbaa !8
  %88 = load ptr, ptr %61, align 8, !tbaa !5
  %89 = load double, ptr %88, align 8, !tbaa !8
  %90 = fdiv double %87, %89
  store double %90, ptr %86, align 8, !tbaa !8
  %91 = load ptr, ptr %55, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  %93 = load double, ptr %92, align 8, !tbaa !8
  %94 = load ptr, ptr %61, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i64 8
  %96 = load double, ptr %95, align 8, !tbaa !8
  %97 = fdiv double %93, %96
  store double %97, ptr %92, align 8, !tbaa !8
  %.not121.not135 = icmp sgt i64 %85, 1
  br i1 %.not121.not135, label %.lr.ph138, label %._crit_edge139

.lr.ph138:                                        ; preds = %._crit_edge134, %.lr.ph138
  %.2136 = phi i64 [ %117, %.lr.ph138 ], [ 1, %._crit_edge134 ]
  %98 = load ptr, ptr %55, align 8, !tbaa !5
  %99 = shl nuw nsw i64 %.2136, 1
  %100 = getelementptr inbounds double, ptr %98, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !8
  %102 = or disjoint i64 %99, 1
  %103 = getelementptr inbounds double, ptr %98, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !8
  %105 = load ptr, ptr %61, align 8, !tbaa !5
  %106 = getelementptr inbounds double, ptr %105, i64 %99
  %107 = load double, ptr %106, align 8, !tbaa !8
  %108 = getelementptr inbounds double, ptr %105, i64 %102
  %109 = load double, ptr %108, align 8, !tbaa !8
  %110 = call { double, double } @_ZN11alglib_impl8ae_c_divENS_10ae_complexES0_(double %101, double %104, double %107, double %109)
  %111 = extractvalue { double, double } %110, 0
  %112 = extractvalue { double, double } %110, 1
  %113 = load ptr, ptr %55, align 8, !tbaa !5
  %114 = getelementptr inbounds double, ptr %113, i64 %99
  store double %111, ptr %114, align 8, !tbaa !8
  %115 = load ptr, ptr %55, align 8, !tbaa !5
  %116 = getelementptr inbounds double, ptr %115, i64 %102
  store double %112, ptr %116, align 8, !tbaa !8
  %117 = add nuw nsw i64 %.2136, 1
  %exitcond149.not = icmp eq i64 %117, %85
  br i1 %exitcond149.not, label %._crit_edge139, label %.lr.ph138, !llvm.loop !17

._crit_edge139:                                   ; preds = %.lr.ph138, %._crit_edge134
  call void @_ZN11alglib_impl21fftr1dinvinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %1, ptr noundef nonnull %10, ptr noundef nonnull %13, ptr noundef %5)
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %1, ptr noundef %4, ptr noundef %5)
  %118 = getelementptr inbounds i8, ptr %4, i64 56
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load ptr, ptr %55, align 8, !tbaa !5
  %121 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %59)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %119, i64 noundef 1, ptr noundef %120, i64 noundef 1, i64 noundef %121)
  br label %164

122:                                              ; preds = %51
  call void @_ZN11alglib_impl6fftr1dEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef nonnull %11, ptr noundef %5)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %1, ptr noundef %5)
  %123 = getelementptr inbounds i8, ptr %9, i64 56
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %2, i64 56
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = add nsw i64 %3, -1
  %128 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %127)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %124, i64 noundef 1, ptr noundef %126, i64 noundef 1, i64 noundef %128)
  %.not.not123 = icmp slt i64 %3, %1
  br i1 %.not.not123, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %122
  %129 = sub i64 %1, %3
  %xtraiter = and i64 %129, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %.3124.prol = phi i64 [ %132, %.lr.ph.prol ], [ %3, %.lr.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %130 = load ptr, ptr %123, align 8, !tbaa !5
  %131 = getelementptr inbounds double, ptr %130, i64 %.3124.prol
  store double 0.000000e+00, ptr %131, align 8, !tbaa !8
  %132 = add nsw i64 %.3124.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !18

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.3124.unr = phi i64 [ %3, %.lr.ph.preheader ], [ %132, %.lr.ph.prol ]
  %133 = sub i64 %3, %1
  %134 = icmp ugt i64 %133, -4
  br i1 %134, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.3124 = phi i64 [ %146, %.lr.ph ], [ %.3124.unr, %.lr.ph.prol.loopexit ]
  %135 = load ptr, ptr %123, align 8, !tbaa !5
  %136 = getelementptr inbounds double, ptr %135, i64 %.3124
  store double 0.000000e+00, ptr %136, align 8, !tbaa !8
  %137 = load ptr, ptr %123, align 8, !tbaa !5
  %138 = getelementptr double, ptr %137, i64 %.3124
  %139 = getelementptr i8, ptr %138, i64 8
  store double 0.000000e+00, ptr %139, align 8, !tbaa !8
  %140 = load ptr, ptr %123, align 8, !tbaa !5
  %141 = getelementptr double, ptr %140, i64 %.3124
  %142 = getelementptr i8, ptr %141, i64 16
  store double 0.000000e+00, ptr %142, align 8, !tbaa !8
  %143 = load ptr, ptr %123, align 8, !tbaa !5
  %144 = getelementptr double, ptr %143, i64 %.3124
  %145 = getelementptr i8, ptr %144, i64 24
  store double 0.000000e+00, ptr %145, align 8, !tbaa !8
  %146 = add nsw i64 %.3124, 4
  %exitcond.not.3 = icmp eq i64 %146, %1
  br i1 %exitcond.not.3, label %._crit_edge, label %.lr.ph, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %122
  call void @_ZN11alglib_impl6fftr1dEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %1, ptr noundef nonnull %12, ptr noundef %5)
  %147 = sitofp i64 %1 to double
  %148 = fmul double %147, 5.000000e-01
  %149 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %148, ptr noundef %5)
  %.not125 = icmp slt i64 %149, 0
  br i1 %.not125, label %._crit_edge129, label %.lr.ph128

.lr.ph128:                                        ; preds = %._crit_edge
  %150 = getelementptr inbounds i8, ptr %11, i64 56
  %151 = getelementptr inbounds i8, ptr %12, i64 56
  br label %152

152:                                              ; preds = %.lr.ph128, %152
  %.4126 = phi i64 [ 0, %.lr.ph128 ], [ %162, %152 ]
  %153 = load ptr, ptr %150, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %153, i64 %.4126
  %.sroa.01.0.copyload = load double, ptr %154, align 8, !tbaa !8
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %154, i64 8
  %.sroa.22.0.copyload = load double, ptr %.sroa.22.0..sroa_idx, align 8, !tbaa !8
  %155 = load ptr, ptr %151, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %155, i64 %.4126
  %.sroa.0.0.copyload = load double, ptr %156, align 8, !tbaa !8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %156, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !8
  %157 = call { double, double } @_ZN11alglib_impl8ae_c_divENS_10ae_complexES0_(double %.sroa.01.0.copyload, double %.sroa.22.0.copyload, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %158 = extractvalue { double, double } %157, 0
  %159 = extractvalue { double, double } %157, 1
  %160 = load ptr, ptr %150, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %160, i64 %.4126
  store double %158, ptr %161, align 8, !tbaa !8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %161, i64 8
  store double %159, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !8
  %162 = add nuw nsw i64 %.4126, 1
  %163 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %148, ptr noundef %5)
  %.not.not147 = icmp slt i64 %.4126, %163
  br i1 %.not.not147, label %152, label %._crit_edge129, !llvm.loop !20

._crit_edge129:                                   ; preds = %152, %._crit_edge
  call void @_ZN11alglib_impl12fftr1dinvbufEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, ptr noundef %4, ptr noundef %5)
  br label %164

164:                                              ; preds = %._crit_edge139, %._crit_edge129, %._crit_edge146
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #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_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 i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl8ae_v_addEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 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, !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.unroll.disable"}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}


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