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

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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::fasttransformplan" = type { %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool" }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_shared_pool" = type { %"struct.alglib_impl::ae_lock", ptr, ptr, ptr, ptr, i64, ptr, ptr, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }
%"struct.alglib_impl::ae_complex" = type { double, double }

@.str.17 = external hidden unnamed_addr constant [30 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_impl10convc1dinvEPNS_9ae_vectorElS1_lS1_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 416, 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 416, i1 false)
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %27)
  %28 = 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 %28, i1 noundef zeroext true)
  %29 = 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 %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23_fasttransformplan_initEPvPNS_8ae_stateEb(ptr noundef %18, ptr noundef %30, i1 noundef zeroext true)
  %31 = load i64, ptr %10, align 8, !tbaa !9
  %32 = icmp sgt i64 %31, 0
  br i1 %32, label %33, label %40

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

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

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

51:                                               ; preds = %83, %40
  %52 = load i64, ptr %14, align 8, !tbaa !9
  %53 = load i64, ptr %8, align 8, !tbaa !9
  %54 = sub nsw i64 %53, 1
  %55 = icmp sle i64 %52, %54
  br i1 %55, label %56, label %86

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

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

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

88:                                               ; preds = %106, %86
  %89 = load i64, ptr %14, align 8, !tbaa !9
  %90 = load i64, ptr %15, align 8, !tbaa !9
  %91 = sub nsw i64 %90, 1
  %92 = icmp sle i64 %89, %91
  br i1 %92, label %93, label %109

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

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

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

113:                                              ; preds = %145, %109
  %114 = load i64, ptr %14, align 8, !tbaa !9
  %115 = load i64, ptr %10, align 8, !tbaa !9
  %116 = sub nsw i64 %115, 1
  %117 = icmp sle i64 %114, %116
  br i1 %117, label %118, label %148

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

145:                                              ; preds = %118
  %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 %113, !llvm.loop !20

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

150:                                              ; preds = %168, %148
  %151 = load i64, ptr %14, align 8, !tbaa !9
  %152 = load i64, ptr %15, align 8, !tbaa !9
  %153 = sub nsw i64 %152, 1
  %154 = icmp sle i64 %151, %153
  br i1 %154, label %155, label %171

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

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

171:                                              ; preds = %150
  %172 = 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 %172)
  %173 = 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 %173)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %174

174:                                              ; preds = %242, %171
  %175 = load i64, ptr %14, align 8, !tbaa !9
  %176 = load i64, ptr %15, align 8, !tbaa !9
  %177 = sub nsw i64 %176, 1
  %178 = icmp sle i64 %175, %177
  br i1 %178, label %179, label %245

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

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

245:                                              ; preds = %174
  %246 = 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 %246)
  %247 = load i64, ptr %15, align 8, !tbaa !9
  %248 = sitofp i64 %247 to double
  %249 = fdiv double 1.000000e+00, %248
  store double %249, ptr %22, align 8, !tbaa !15
  %250 = load ptr, ptr %11, align 8, !tbaa !5
  %251 = load i64, ptr %8, align 8, !tbaa !9
  %252 = load i64, ptr %10, align 8, !tbaa !9
  %253 = sub nsw i64 %251, %252
  %254 = add nsw i64 %253, 1
  %255 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %250, i64 noundef %254, ptr noundef %255)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %256

256:                                              ; preds = %294, %245
  %257 = load i64, ptr %14, align 8, !tbaa !9
  %258 = load i64, ptr %8, align 8, !tbaa !9
  %259 = load i64, ptr %10, align 8, !tbaa !9
  %260 = sub nsw i64 %258, %259
  %261 = icmp sle i64 %257, %260
  br i1 %261, label %262, label %297

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

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

297:                                              ; preds = %256
  %298 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %298)
  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 416, 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_impl15ae_vector_clearEPNS_9ae_vectorE(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, 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.17 = external hidden unnamed_addr constant [30 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_impl10convc1dinvEPNS_9ae_vectorElS1_lS1_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 416, 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(416) %10, i8 0, i64 416, i1 false)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %4)
  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.17, 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 %.preheader94

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

.preheader94:                                     ; preds = %29, %6
  %.not.not9097 = icmp sgt i64 %15, %1
  br i1 %.not.not9097, label %.lr.ph99, label %._crit_edge

.lr.ph99:                                         ; preds = %.preheader94
  %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.ph99
  %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.ph99
  %.198.unr = phi i64 [ %1, %.lr.ph99 ], [ %27, %.prol.loopexit.unr-lcssa ]
  %28 = icmp eq i64 %15, %.neg
  br i1 %28, label %._crit_edge, label %.lr.ph99.new

29:                                               ; preds = %.lr.ph, %29
  %.096 = 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 %.096
  %32 = load double, ptr %31, align 8, !tbaa !10
  %33 = load ptr, ptr %18, align 8, !tbaa !5
  %34 = shl nuw nsw i64 %.096, 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 %.096, 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 %.096, 1
  %exitcond.not = icmp eq i64 %42, %1
  br i1 %exitcond.not, label %.preheader94, label %29, !llvm.loop !13

.lr.ph99.new:                                     ; preds = %.prol.loopexit, %.lr.ph99.new
  %.198 = phi i64 [ %56, %.lr.ph99.new ], [ %.198.unr, %.prol.loopexit ]
  %43 = load ptr, ptr %19, align 8, !tbaa !5
  %44 = shl nsw i64 %.198, 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 %.198, 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 %.198, 2
  %exitcond119.not.1 = icmp eq i64 %56, %15
  br i1 %exitcond119.not.1, label %._crit_edge, label %.lr.ph99.new, !llvm.loop !15

._crit_edge:                                      ; preds = %.prol.loopexit, %.lr.ph99.new, %.preheader94
  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.ph103, label %.preheader

.lr.ph103:                                        ; 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.not92104 = icmp sgt i64 %15, %3
  br i1 %.not.not92104, label %.lr.ph106, label %._crit_edge107

.lr.ph106:                                        ; preds = %.preheader
  %59 = getelementptr inbounds i8, ptr %9, i64 56
  %60 = sub i64 %15, %3
  %.neg128 = add i64 %3, 1
  %xtraiter126 = and i64 %60, 1
  %lcmp.mod127.not = icmp eq i64 %xtraiter126, 0
  br i1 %lcmp.mod127.not, label %.prol.loopexit125, label %.prol.loopexit125.unr-lcssa

.prol.loopexit125.unr-lcssa:                      ; preds = %.lr.ph106
  %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.loopexit125

.prol.loopexit125:                                ; preds = %.prol.loopexit125.unr-lcssa, %.lr.ph106
  %.3105.unr = phi i64 [ %3, %.lr.ph106 ], [ %67, %.prol.loopexit125.unr-lcssa ]
  %68 = icmp eq i64 %15, %.neg128
  br i1 %68, label %._crit_edge107, label %.lr.ph106.new

69:                                               ; preds = %.lr.ph103, %69
  %.2101 = phi i64 [ 0, %.lr.ph103 ], [ %82, %69 ]
  %70 = load ptr, ptr %57, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %70, i64 %.2101
  %72 = load double, ptr %71, align 8, !tbaa !10
  %73 = load ptr, ptr %58, align 8, !tbaa !5
  %74 = shl nuw nsw i64 %.2101, 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 %.2101, 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 %.2101, 1
  %exitcond120.not = icmp eq i64 %82, %3
  br i1 %exitcond120.not, label %.preheader, label %69, !llvm.loop !16

.lr.ph106.new:                                    ; preds = %.prol.loopexit125, %.lr.ph106.new
  %.3105 = phi i64 [ %96, %.lr.ph106.new ], [ %.3105.unr, %.prol.loopexit125 ]
  %83 = load ptr, ptr %59, align 8, !tbaa !5
  %84 = shl nsw i64 %.3105, 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 %.3105, 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 %.3105, 2
  %exitcond121.not.1 = icmp eq i64 %96, %15
  br i1 %exitcond121.not.1, label %._crit_edge107, label %.lr.ph106.new, !llvm.loop !17

._crit_edge107:                                   ; preds = %.prol.loopexit125, %.lr.ph106.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.not93108 = icmp sgt i64 %15, 0
  br i1 %.not.not93108, label %.lr.ph111, label %._crit_edge112

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

99:                                               ; preds = %.lr.ph111, %99
  %.4109 = phi i64 [ 0, %.lr.ph111 ], [ %120, %99 ]
  %100 = load ptr, ptr %97, align 8, !tbaa !5
  %101 = shl nuw nsw i64 %.4109, 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 %.4109, 1
  %exitcond122.not = icmp eq i64 %120, %15
  br i1 %exitcond122.not, label %._crit_edge112, label %99, !llvm.loop !18

._crit_edge112:                                   ; preds = %99, %._crit_edge107
  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_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %4, i64 noundef %124, ptr noundef %5)
  %.not113 = icmp slt i64 %123, 0
  br i1 %.not113, label %._crit_edge117, label %.lr.ph116

.lr.ph116:                                        ; preds = %._crit_edge112
  %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.ph116, %130
  %.5114 = phi i64 [ 0, %.lr.ph116 ], [ %145, %130 ]
  %131 = load ptr, ptr %125, align 8, !tbaa !5
  %132 = shl nuw nsw i64 %.5114, 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 %.5114
  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 %.5114, i32 1
  store double %142, ptr %144, align 8, !tbaa !12
  %145 = add nuw i64 %.5114, 1
  %exitcond123.not = icmp eq i64 %145, %129
  br i1 %exitcond123.not, label %._crit_edge117, label %130, !llvm.loop !19

._crit_edge117:                                   ; preds = %130, %._crit_edge112
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 416, 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_impl15ae_vector_clearEPNS_9ae_vectorE(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