; 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.25 = external hidden unnamed_addr constant [33 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
define dso_local void @_ZN11alglib_impl13convc1dinvbufEPKNS_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 %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::fasttransformplan", align 8
  %19 = alloca %"struct.alglib_impl::ae_complex", align 8
  %20 = alloca %"struct.alglib_impl::ae_complex", align 8
  %21 = alloca %"struct.alglib_impl::ae_complex", align 8
  %22 = alloca double, 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
  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 64, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 408, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %26, ptr noundef %13)
  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 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 408, i1 false)
  %27 = load ptr, ptr %12, 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 %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 3, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23_fasttransformplan_initEPvPNS_8ae_stateEb(ptr noundef %18, ptr noundef %29, i1 noundef zeroext true)
  %30 = load i64, ptr %10, align 8, !tbaa !9
  %31 = icmp sgt i64 %30, 0
  br i1 %31, label %32, label %39

32:                                               ; preds = %6
  %33 = load i64, ptr %8, align 8, !tbaa !9
  %34 = icmp sgt i64 %33, 0
  br i1 %34, label %35, label %39

35:                                               ; preds = %32
  %36 = load i64, ptr %10, align 8, !tbaa !9
  %37 = load i64, ptr %8, align 8, !tbaa !9
  %38 = icmp sle i64 %36, %37
  br label %39

39:                                               ; preds = %35, %32, %6
  %40 = phi i1 [ false, %32 ], [ false, %6 ], [ %38, %35 ]
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %40, ptr noundef @.str.25, ptr noundef %41)
  %42 = load i64, ptr %8, align 8, !tbaa !9
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = call noundef i64 @_ZN11alglib_impl16ftbasefindsmoothElPNS_8ae_stateE(i64 noundef %42, ptr noundef %43)
  store i64 %44, ptr %15, align 8, !tbaa !9
  %45 = load i64, ptr %15, align 8, !tbaa !9
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %45, i64 noundef 1, ptr noundef %18, ptr noundef %46)
  %47 = load i64, ptr %15, align 8, !tbaa !9
  %48 = mul nsw i64 2, %47
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %48, ptr noundef %49)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %82, %39
  %51 = load i64, ptr %14, align 8, !tbaa !9
  %52 = load i64, ptr %8, align 8, !tbaa !9
  %53 = sub nsw i64 %52, 1
  %54 = icmp sle i64 %51, %53
  br i1 %54, label %55, label %85

55:                                               ; preds = %50
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %56, i32 0, i32 4
  %58 = load ptr, ptr %57, align 8, !tbaa !11
  %59 = load i64, ptr %14, align 8, !tbaa !9
  %60 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %58, i64 %59
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %60, i32 0, i32 0
  %62 = load double, ptr %61, align 8, !tbaa !12
  %63 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %64 = load ptr, ptr %63, align 8, !tbaa !11
  %65 = load i64, ptr %14, align 8, !tbaa !9
  %66 = mul nsw i64 2, %65
  %67 = add nsw i64 %66, 0
  %68 = getelementptr inbounds double, ptr %64, i64 %67
  store double %62, ptr %68, align 8, !tbaa !15
  %69 = load ptr, ptr %7, 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 = load i64, ptr %14, align 8, !tbaa !9
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %71, i64 %72
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %73, i32 0, i32 1
  %75 = load double, ptr %74, align 8, !tbaa !16
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = load i64, ptr %14, align 8, !tbaa !9
  %79 = mul nsw i64 2, %78
  %80 = add nsw i64 %79, 1
  %81 = getelementptr inbounds double, ptr %77, i64 %80
  store double %75, ptr %81, align 8, !tbaa !15
  br label %82

82:                                               ; preds = %55
  %83 = load i64, ptr %14, align 8, !tbaa !9
  %84 = add nsw i64 %83, 1
  store i64 %84, ptr %14, align 8, !tbaa !9
  br label %50, !llvm.loop !17

85:                                               ; preds = %50
  %86 = load i64, ptr %8, align 8, !tbaa !9
  store i64 %86, ptr %14, align 8, !tbaa !9
  br label %87

87:                                               ; preds = %105, %85
  %88 = load i64, ptr %14, align 8, !tbaa !9
  %89 = load i64, ptr %15, align 8, !tbaa !9
  %90 = sub nsw i64 %89, 1
  %91 = icmp sle i64 %88, %90
  br i1 %91, label %92, label %108

92:                                               ; preds = %87
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = load i64, ptr %14, align 8, !tbaa !9
  %96 = mul nsw i64 2, %95
  %97 = add nsw i64 %96, 0
  %98 = getelementptr inbounds double, ptr %94, i64 %97
  store double 0.000000e+00, ptr %98, align 8, !tbaa !15
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !11
  %101 = load i64, ptr %14, align 8, !tbaa !9
  %102 = mul nsw i64 2, %101
  %103 = add nsw i64 %102, 1
  %104 = getelementptr inbounds double, ptr %100, i64 %103
  store double 0.000000e+00, ptr %104, align 8, !tbaa !15
  br label %105

105:                                              ; preds = %92
  %106 = load i64, ptr %14, align 8, !tbaa !9
  %107 = add nsw i64 %106, 1
  store i64 %107, ptr %14, align 8, !tbaa !9
  br label %87, !llvm.loop !19

108:                                              ; preds = %87
  %109 = load i64, ptr %15, align 8, !tbaa !9
  %110 = mul nsw i64 2, %109
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %110, ptr noundef %111)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %144, %108
  %113 = load i64, ptr %14, align 8, !tbaa !9
  %114 = load i64, ptr %10, align 8, !tbaa !9
  %115 = sub nsw i64 %114, 1
  %116 = icmp sle i64 %113, %115
  br i1 %116, label %117, label %147

117:                                              ; preds = %112
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %118, i32 0, i32 4
  %120 = load ptr, ptr %119, align 8, !tbaa !11
  %121 = load i64, ptr %14, align 8, !tbaa !9
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %120, i64 %121
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %122, i32 0, i32 0
  %124 = load double, ptr %123, align 8, !tbaa !12
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !11
  %127 = load i64, ptr %14, align 8, !tbaa !9
  %128 = mul nsw i64 2, %127
  %129 = add nsw i64 %128, 0
  %130 = getelementptr inbounds double, ptr %126, i64 %129
  store double %124, ptr %130, align 8, !tbaa !15
  %131 = load ptr, ptr %9, 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 !11
  %134 = load i64, ptr %14, align 8, !tbaa !9
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %133, i64 %134
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %135, i32 0, i32 1
  %137 = load double, ptr %136, align 8, !tbaa !16
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %139 = load ptr, ptr %138, align 8, !tbaa !11
  %140 = load i64, ptr %14, align 8, !tbaa !9
  %141 = mul nsw i64 2, %140
  %142 = add nsw i64 %141, 1
  %143 = getelementptr inbounds double, ptr %139, i64 %142
  store double %137, ptr %143, align 8, !tbaa !15
  br label %144

144:                                              ; preds = %117
  %145 = load i64, ptr %14, align 8, !tbaa !9
  %146 = add nsw i64 %145, 1
  store i64 %146, ptr %14, align 8, !tbaa !9
  br label %112, !llvm.loop !20

147:                                              ; preds = %112
  %148 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %148, ptr %14, align 8, !tbaa !9
  br label %149

149:                                              ; preds = %167, %147
  %150 = load i64, ptr %14, align 8, !tbaa !9
  %151 = load i64, ptr %15, align 8, !tbaa !9
  %152 = sub nsw i64 %151, 1
  %153 = icmp sle i64 %150, %152
  br i1 %153, label %154, label %170

154:                                              ; preds = %149
  %155 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %156 = load ptr, ptr %155, align 8, !tbaa !11
  %157 = load i64, ptr %14, align 8, !tbaa !9
  %158 = mul nsw i64 2, %157
  %159 = add nsw i64 %158, 0
  %160 = getelementptr inbounds double, ptr %156, i64 %159
  store double 0.000000e+00, ptr %160, align 8, !tbaa !15
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %162 = load ptr, ptr %161, align 8, !tbaa !11
  %163 = load i64, ptr %14, align 8, !tbaa !9
  %164 = mul nsw i64 2, %163
  %165 = add nsw i64 %164, 1
  %166 = getelementptr inbounds double, ptr %162, i64 %165
  store double 0.000000e+00, ptr %166, align 8, !tbaa !15
  br label %167

167:                                              ; preds = %154
  %168 = load i64, ptr %14, align 8, !tbaa !9
  %169 = add nsw i64 %168, 1
  store i64 %169, ptr %14, align 8, !tbaa !9
  br label %149, !llvm.loop !21

170:                                              ; preds = %149
  %171 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef %18, ptr noundef %16, i64 noundef 0, i64 noundef 1, ptr noundef %171)
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef %18, ptr noundef %17, i64 noundef 0, i64 noundef 1, ptr noundef %172)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %173

173:                                              ; preds = %241, %170
  %174 = load i64, ptr %14, align 8, !tbaa !9
  %175 = load i64, ptr %15, align 8, !tbaa !9
  %176 = sub nsw i64 %175, 1
  %177 = icmp sle i64 %174, %176
  br i1 %177, label %178, label %244

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

241:                                              ; preds = %178
  %242 = load i64, ptr %14, align 8, !tbaa !9
  %243 = add nsw i64 %242, 1
  store i64 %243, ptr %14, align 8, !tbaa !9
  br label %173, !llvm.loop !23

244:                                              ; preds = %173
  %245 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef %18, ptr noundef %16, i64 noundef 0, i64 noundef 1, ptr noundef %245)
  %246 = load i64, ptr %15, align 8, !tbaa !9
  %247 = sitofp i64 %246 to double
  %248 = fdiv double 1.000000e+00, %247
  store double %248, ptr %22, align 8, !tbaa !15
  %249 = load i64, ptr %8, align 8, !tbaa !9
  %250 = load i64, ptr %10, align 8, !tbaa !9
  %251 = sub nsw i64 %249, %250
  %252 = add nsw i64 %251, 1
  %253 = load ptr, ptr %11, align 8, !tbaa !5
  %254 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl7callocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %252, ptr noundef %253, ptr noundef %254)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %255

255:                                              ; preds = %293, %244
  %256 = load i64, ptr %14, align 8, !tbaa !9
  %257 = load i64, ptr %8, align 8, !tbaa !9
  %258 = load i64, ptr %10, align 8, !tbaa !9
  %259 = sub nsw i64 %257, %258
  %260 = icmp sle i64 %256, %259
  br i1 %260, label %261, label %296

261:                                              ; preds = %255
  %262 = load double, ptr %22, align 8, !tbaa !15
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %264 = load ptr, ptr %263, align 8, !tbaa !11
  %265 = load i64, ptr %14, align 8, !tbaa !9
  %266 = mul nsw i64 2, %265
  %267 = add nsw i64 %266, 0
  %268 = getelementptr inbounds double, ptr %264, i64 %267
  %269 = load double, ptr %268, align 8, !tbaa !15
  %270 = fmul double %262, %269
  %271 = load ptr, ptr %11, align 8, !tbaa !5
  %272 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %271, i32 0, i32 4
  %273 = load ptr, ptr %272, align 8, !tbaa !11
  %274 = load i64, ptr %14, align 8, !tbaa !9
  %275 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %273, i64 %274
  %276 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %275, i32 0, i32 0
  store double %270, ptr %276, align 8, !tbaa !12
  %277 = load double, ptr %22, align 8, !tbaa !15
  %278 = fneg double %277
  %279 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %280 = load ptr, ptr %279, align 8, !tbaa !11
  %281 = load i64, ptr %14, align 8, !tbaa !9
  %282 = mul nsw i64 2, %281
  %283 = add nsw i64 %282, 1
  %284 = getelementptr inbounds double, ptr %280, i64 %283
  %285 = load double, ptr %284, align 8, !tbaa !15
  %286 = fmul double %278, %285
  %287 = load ptr, ptr %11, align 8, !tbaa !5
  %288 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %287, i32 0, i32 4
  %289 = load ptr, ptr %288, align 8, !tbaa !11
  %290 = load i64, ptr %14, align 8, !tbaa !9
  %291 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %289, i64 %290
  %292 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %291, i32 0, i32 1
  store double %286, ptr %292, align 8, !tbaa !16
  br label %293

293:                                              ; preds = %261
  %294 = load i64, ptr %14, align 8, !tbaa !9
  %295 = add nsw i64 %294, 1
  store i64 %295, ptr %14, align 8, !tbaa !9
  br label %255, !llvm.loop !24

296:                                              ; preds = %255
  %297 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %297)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 408, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 64, 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
  ret void
}

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_impl7callocvElPNS_9ae_vectorEPNS_8ae_stateE(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 noundef i64 @_ZN11alglib_impl16ftbasefindsmoothElPNS_8ae_stateE(i64 noundef, ptr noundef) #2

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


; 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.25 = external hidden unnamed_addr constant [33 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
define dso_local void @_ZN11alglib_impl13convc1dinvbufEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr nocapture noundef readonly %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::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 408, ptr nonnull %10) #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(408) %10, 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_impl23_fasttransformplan_initEPvPNS_8ae_stateEb(ptr noundef nonnull %10, ptr noundef %5, i1 noundef zeroext true)
  %11 = icmp sgt i64 %3, 0
  %12 = icmp sgt i64 %1, 0
  %13 = icmp ule i64 %3, %1
  %14 = and i1 %11, %13
  %spec.select = and i1 %14, %12
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.25, ptr noundef %5)
  %15 = call noundef i64 @_ZN11alglib_impl16ftbasefindsmoothElPNS_8ae_stateE(i64 noundef %1, ptr noundef %5)
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %15, i64 noundef 1, ptr noundef nonnull %10, ptr noundef %5)
  %16 = shl nsw i64 %15, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %16, ptr noundef %5)
  br i1 %12, label %.lr.ph, label %.preheader93

.lr.ph:                                           ; preds = %6
  %17 = getelementptr inbounds i8, ptr %0, i64 56
  %18 = getelementptr inbounds i8, ptr %8, i64 56
  br label %29

.preheader93:                                     ; preds = %29, %6
  %.not.not8996 = icmp sgt i64 %15, %1
  br i1 %.not.not8996, label %.lr.ph98, label %._crit_edge

.lr.ph98:                                         ; preds = %.preheader93
  %19 = getelementptr inbounds i8, ptr %8, i64 56
  %20 = sub i64 %15, %1
  %.neg = add i64 %1, 1
  %xtraiter = and i64 %20, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.loopexit.unr-lcssa

.prol.loopexit.unr-lcssa:                         ; preds = %.lr.ph98
  %21 = load ptr, ptr %19, align 8, !tbaa !5
  %22 = shl nsw i64 %1, 1
  %23 = getelementptr inbounds double, ptr %21, i64 %22
  store double 0.000000e+00, ptr %23, align 8, !tbaa !8
  %24 = load ptr, ptr %19, align 8, !tbaa !5
  %25 = or disjoint i64 %22, 1
  %26 = getelementptr inbounds double, ptr %24, i64 %25
  store double 0.000000e+00, ptr %26, align 8, !tbaa !8
  %27 = add nsw i64 %1, 1
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.lr.ph98
  %.197.unr = phi i64 [ %1, %.lr.ph98 ], [ %27, %.prol.loopexit.unr-lcssa ]
  %28 = icmp eq i64 %15, %.neg
  br i1 %28, label %._crit_edge, label %.lr.ph98.new

29:                                               ; preds = %.lr.ph, %29
  %.095 = phi i64 [ 0, %.lr.ph ], [ %42, %29 ]
  %30 = load ptr, ptr %17, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %30, i64 %.095
  %32 = load double, ptr %31, align 8, !tbaa !10
  %33 = load ptr, ptr %18, align 8, !tbaa !5
  %34 = shl nuw nsw i64 %.095, 1
  %35 = getelementptr inbounds double, ptr %33, i64 %34
  store double %32, ptr %35, align 8, !tbaa !8
  %36 = load ptr, ptr %17, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %36, i64 %.095, i32 1
  %38 = load double, ptr %37, align 8, !tbaa !12
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  %40 = or disjoint i64 %34, 1
  %41 = getelementptr inbounds double, ptr %39, i64 %40
  store double %38, ptr %41, align 8, !tbaa !8
  %42 = add nuw nsw i64 %.095, 1
  %exitcond.not = icmp eq i64 %42, %1
  br i1 %exitcond.not, label %.preheader93, label %29, !llvm.loop !13

.lr.ph98.new:                                     ; preds = %.prol.loopexit, %.lr.ph98.new
  %.197 = phi i64 [ %56, %.lr.ph98.new ], [ %.197.unr, %.prol.loopexit ]
  %43 = load ptr, ptr %19, align 8, !tbaa !5
  %44 = shl nsw i64 %.197, 1
  %45 = getelementptr inbounds double, ptr %43, i64 %44
  store double 0.000000e+00, ptr %45, align 8, !tbaa !8
  %46 = load ptr, ptr %19, align 8, !tbaa !5
  %47 = or disjoint i64 %44, 1
  %48 = getelementptr inbounds double, ptr %46, i64 %47
  store double 0.000000e+00, ptr %48, align 8, !tbaa !8
  %49 = load ptr, ptr %19, align 8, !tbaa !5
  %50 = shl i64 %.197, 1
  %51 = add i64 %50, 2
  %52 = getelementptr inbounds double, ptr %49, i64 %51
  store double 0.000000e+00, ptr %52, align 8, !tbaa !8
  %53 = load ptr, ptr %19, align 8, !tbaa !5
  %54 = or disjoint i64 %51, 1
  %55 = getelementptr inbounds double, ptr %53, i64 %54
  store double 0.000000e+00, ptr %55, align 8, !tbaa !8
  %56 = add nsw i64 %.197, 2
  %exitcond118.not.1 = icmp eq i64 %56, %15
  br i1 %exitcond118.not.1, label %._crit_edge, label %.lr.ph98.new, !llvm.loop !15

._crit_edge:                                      ; preds = %.prol.loopexit, %.lr.ph98.new, %.preheader93
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %16, ptr noundef %5)
  br i1 %11, label %.lr.ph102, label %.preheader

.lr.ph102:                                        ; preds = %._crit_edge
  %57 = getelementptr inbounds i8, ptr %2, i64 56
  %58 = getelementptr inbounds i8, ptr %9, i64 56
  br label %69

.preheader:                                       ; preds = %69, %._crit_edge
  %.not.not91103 = icmp sgt i64 %15, %3
  br i1 %.not.not91103, label %.lr.ph105, label %._crit_edge106

.lr.ph105:                                        ; preds = %.preheader
  %59 = getelementptr inbounds i8, ptr %9, i64 56
  %60 = sub i64 %15, %3
  %.neg127 = add i64 %3, 1
  %xtraiter125 = and i64 %60, 1
  %lcmp.mod126.not = icmp eq i64 %xtraiter125, 0
  br i1 %lcmp.mod126.not, label %.prol.loopexit124, label %.prol.loopexit124.unr-lcssa

.prol.loopexit124.unr-lcssa:                      ; preds = %.lr.ph105
  %61 = load ptr, ptr %59, align 8, !tbaa !5
  %62 = shl nsw i64 %3, 1
  %63 = getelementptr inbounds double, ptr %61, i64 %62
  store double 0.000000e+00, ptr %63, align 8, !tbaa !8
  %64 = load ptr, ptr %59, align 8, !tbaa !5
  %65 = or disjoint i64 %62, 1
  %66 = getelementptr inbounds double, ptr %64, i64 %65
  store double 0.000000e+00, ptr %66, align 8, !tbaa !8
  %67 = add nsw i64 %3, 1
  br label %.prol.loopexit124

.prol.loopexit124:                                ; preds = %.prol.loopexit124.unr-lcssa, %.lr.ph105
  %.3104.unr = phi i64 [ %3, %.lr.ph105 ], [ %67, %.prol.loopexit124.unr-lcssa ]
  %68 = icmp eq i64 %15, %.neg127
  br i1 %68, label %._crit_edge106, label %.lr.ph105.new

69:                                               ; preds = %.lr.ph102, %69
  %.2100 = phi i64 [ 0, %.lr.ph102 ], [ %82, %69 ]
  %70 = load ptr, ptr %57, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %70, i64 %.2100
  %72 = load double, ptr %71, align 8, !tbaa !10
  %73 = load ptr, ptr %58, align 8, !tbaa !5
  %74 = shl nuw nsw i64 %.2100, 1
  %75 = getelementptr inbounds double, ptr %73, i64 %74
  store double %72, ptr %75, align 8, !tbaa !8
  %76 = load ptr, ptr %57, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %76, i64 %.2100, i32 1
  %78 = load double, ptr %77, align 8, !tbaa !12
  %79 = load ptr, ptr %58, align 8, !tbaa !5
  %80 = or disjoint i64 %74, 1
  %81 = getelementptr inbounds double, ptr %79, i64 %80
  store double %78, ptr %81, align 8, !tbaa !8
  %82 = add nuw nsw i64 %.2100, 1
  %exitcond119.not = icmp eq i64 %82, %3
  br i1 %exitcond119.not, label %.preheader, label %69, !llvm.loop !16

.lr.ph105.new:                                    ; preds = %.prol.loopexit124, %.lr.ph105.new
  %.3104 = phi i64 [ %96, %.lr.ph105.new ], [ %.3104.unr, %.prol.loopexit124 ]
  %83 = load ptr, ptr %59, align 8, !tbaa !5
  %84 = shl nsw i64 %.3104, 1
  %85 = getelementptr inbounds double, ptr %83, i64 %84
  store double 0.000000e+00, ptr %85, align 8, !tbaa !8
  %86 = load ptr, ptr %59, align 8, !tbaa !5
  %87 = or disjoint i64 %84, 1
  %88 = getelementptr inbounds double, ptr %86, i64 %87
  store double 0.000000e+00, ptr %88, align 8, !tbaa !8
  %89 = load ptr, ptr %59, align 8, !tbaa !5
  %90 = shl i64 %.3104, 1
  %91 = add i64 %90, 2
  %92 = getelementptr inbounds double, ptr %89, i64 %91
  store double 0.000000e+00, ptr %92, align 8, !tbaa !8
  %93 = load ptr, ptr %59, align 8, !tbaa !5
  %94 = or disjoint i64 %91, 1
  %95 = getelementptr inbounds double, ptr %93, i64 %94
  store double 0.000000e+00, ptr %95, align 8, !tbaa !8
  %96 = add nsw i64 %.3104, 2
  %exitcond120.not.1 = icmp eq i64 %96, %15
  br i1 %exitcond120.not.1, label %._crit_edge106, label %.lr.ph105.new, !llvm.loop !17

._crit_edge106:                                   ; preds = %.prol.loopexit124, %.lr.ph105.new, %.preheader
  call void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %8, i64 noundef 0, i64 noundef 1, ptr noundef %5)
  call void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %9, i64 noundef 0, i64 noundef 1, ptr noundef %5)
  %.not.not92107 = icmp sgt i64 %15, 0
  br i1 %.not.not92107, label %.lr.ph110, label %._crit_edge111

.lr.ph110:                                        ; preds = %._crit_edge106
  %97 = getelementptr inbounds i8, ptr %8, i64 56
  %98 = getelementptr inbounds i8, ptr %9, i64 56
  br label %99

99:                                               ; preds = %.lr.ph110, %99
  %.4108 = phi i64 [ 0, %.lr.ph110 ], [ %120, %99 ]
  %100 = load ptr, ptr %97, align 8, !tbaa !5
  %101 = shl nuw nsw i64 %.4108, 1
  %102 = getelementptr inbounds double, ptr %100, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !8
  %104 = or disjoint i64 %101, 1
  %105 = getelementptr inbounds double, ptr %100, i64 %104
  %106 = load double, ptr %105, align 8, !tbaa !8
  %107 = load ptr, ptr %98, align 8, !tbaa !5
  %108 = getelementptr inbounds double, ptr %107, i64 %101
  %109 = load double, ptr %108, align 8, !tbaa !8
  %110 = getelementptr inbounds double, ptr %107, i64 %104
  %111 = load double, ptr %110, align 8, !tbaa !8
  %112 = call { double, double } @_ZN11alglib_impl8ae_c_divENS_10ae_complexES0_(double %103, double %106, double %109, double %111)
  %113 = extractvalue { double, double } %112, 0
  %114 = extractvalue { double, double } %112, 1
  %115 = load ptr, ptr %97, align 8, !tbaa !5
  %116 = getelementptr inbounds double, ptr %115, i64 %101
  store double %113, ptr %116, align 8, !tbaa !8
  %117 = fneg double %114
  %118 = load ptr, ptr %97, align 8, !tbaa !5
  %119 = getelementptr inbounds double, ptr %118, i64 %104
  store double %117, ptr %119, align 8, !tbaa !8
  %120 = add nuw nsw i64 %.4108, 1
  %exitcond121.not = icmp eq i64 %120, %15
  br i1 %exitcond121.not, label %._crit_edge111, label %99, !llvm.loop !18

._crit_edge111:                                   ; preds = %99, %._crit_edge106
  call void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %8, i64 noundef 0, i64 noundef 1, ptr noundef %5)
  %121 = sitofp i64 %15 to double
  %122 = fdiv double 1.000000e+00, %121
  %123 = sub nsw i64 %1, %3
  %124 = add nsw i64 %123, 1
  call void @_ZN11alglib_impl7callocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %124, ptr noundef %4, ptr noundef %5)
  %.not112 = icmp slt i64 %123, 0
  br i1 %.not112, label %._crit_edge116, label %.lr.ph115

.lr.ph115:                                        ; preds = %._crit_edge111
  %125 = getelementptr inbounds i8, ptr %8, i64 56
  %126 = getelementptr inbounds i8, ptr %4, i64 56
  %127 = fneg double %122
  %128 = add i64 %1, 1
  %129 = sub i64 %128, %3
  br label %130

130:                                              ; preds = %.lr.ph115, %130
  %.5113 = phi i64 [ 0, %.lr.ph115 ], [ %145, %130 ]
  %131 = load ptr, ptr %125, align 8, !tbaa !5
  %132 = shl nuw nsw i64 %.5113, 1
  %133 = getelementptr inbounds double, ptr %131, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !8
  %135 = fmul double %122, %134
  %136 = load ptr, ptr %126, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %136, i64 %.5113
  store double %135, ptr %137, align 8, !tbaa !10
  %138 = load ptr, ptr %125, align 8, !tbaa !5
  %139 = or disjoint i64 %132, 1
  %140 = getelementptr inbounds double, ptr %138, i64 %139
  %141 = load double, ptr %140, align 8, !tbaa !8
  %142 = fmul double %141, %127
  %143 = load ptr, ptr %126, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %143, i64 %.5113, i32 1
  store double %142, ptr %144, align 8, !tbaa !12
  %145 = add nuw i64 %.5113, 1
  %exitcond122.not = icmp eq i64 %145, %129
  br i1 %exitcond122.not, label %._crit_edge116, label %130, !llvm.loop !19

._crit_edge116:                                   ; preds = %130, %._crit_edge111
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 408, 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_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

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

declare { double, double } @_ZN11alglib_impl8ae_c_divENS_10ae_complexES0_(double, double, double, double) 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 = !{!11, !9, i64 0}
!11 = !{!"_ZTSN11alglib_impl10ae_complexE", !9, i64 0, !9, i64 8}
!12 = !{!11, !9, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


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