; 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.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = 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
define dso_local void @_ZN11alglib_impl18convc1dcircularinvEPNS_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 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::fasttransformplan", align 8
  %22 = alloca %"struct.alglib_impl::ae_complex", align 8
  %23 = alloca %"struct.alglib_impl::ae_complex", align 8
  %24 = alloca %"struct.alglib_impl::ae_complex", align 8
  %25 = alloca double, 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
  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 416, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %31, 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 416, i1 false)
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %32)
  %33 = 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 %33, i1 noundef zeroext true)
  %34 = 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 %34, i1 noundef zeroext true)
  %35 = 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 4, ptr noundef %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23_fasttransformplan_initEPvPNS_8ae_stateEb(ptr noundef %21, ptr noundef %36, i1 noundef zeroext true)
  %37 = load i64, ptr %10, align 8, !tbaa !9
  %38 = icmp sgt i64 %37, 0
  br i1 %38, label %39, label %42

39:                                               ; preds = %6
  %40 = load i64, ptr %8, align 8, !tbaa !9
  %41 = icmp sgt i64 %40, 0
  br label %42

42:                                               ; preds = %39, %6
  %43 = phi i1 [ false, %6 ], [ %41, %39 ]
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef @.str.20, ptr noundef %44)
  %45 = load i64, ptr %8, align 8, !tbaa !9
  %46 = load i64, ptr %10, align 8, !tbaa !9
  %47 = icmp slt i64 %45, %46
  br i1 %47, label %48, label %106

48:                                               ; preds = %42
  %49 = load i64, ptr %8, align 8, !tbaa !9
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %49, ptr noundef %50)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %66, %48
  %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 %69

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %57 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %58 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %59 = extractvalue { double, double } %57, 0
  store double %59, ptr %58, align 8
  %60 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %61 = extractvalue { double, double } %57, 1
  store double %61, ptr %60, align 8
  %62 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !11
  %64 = load i64, ptr %14, align 8, !tbaa !9
  %65 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %63, i64 %64
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %65, ptr align 8 %26, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  br label %66

66:                                               ; preds = %56
  %67 = load i64, ptr %14, align 8, !tbaa !9
  %68 = add nsw i64 %67, 1
  store i64 %68, ptr %14, align 8, !tbaa !9
  br label %51, !llvm.loop !15

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

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

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

99:                                               ; preds = %70
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = load i64, ptr %8, align 8, !tbaa !9
  %102 = load i64, ptr %8, align 8, !tbaa !9
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18convc1dcircularinvEPNS_9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef %100, i64 noundef %101, ptr noundef %20, i64 noundef %102, ptr noundef %103, ptr noundef %104)
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %105)
  store i32 1, ptr %27, align 4
  br label %333

106:                                              ; preds = %42
  %107 = load i64, ptr %8, align 8, !tbaa !9
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %107, i64 noundef 1, ptr noundef %21, ptr noundef %108)
  %109 = load i64, ptr %8, 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 %18, i64 noundef %110, ptr noundef %111)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %144, %106
  %113 = load i64, ptr %14, align 8, !tbaa !9
  %114 = load i64, ptr %8, 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 %7, 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 !18
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, 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 !13
  %131 = load ptr, ptr %7, 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 !20
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, 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 !13
  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 !21

147:                                              ; preds = %112
  %148 = load i64, ptr %8, align 8, !tbaa !9
  %149 = mul nsw i64 2, %148
  %150 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %149, ptr noundef %150)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %183, %147
  %152 = load i64, ptr %14, align 8, !tbaa !9
  %153 = load i64, ptr %10, align 8, !tbaa !9
  %154 = sub nsw i64 %153, 1
  %155 = icmp sle i64 %152, %154
  br i1 %155, label %156, label %186

156:                                              ; preds = %151
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %157, i32 0, i32 4
  %159 = load ptr, ptr %158, align 8, !tbaa !11
  %160 = load i64, ptr %14, align 8, !tbaa !9
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %159, i64 %160
  %162 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %161, i32 0, i32 0
  %163 = load double, ptr %162, align 8, !tbaa !18
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %165 = load ptr, ptr %164, align 8, !tbaa !11
  %166 = load i64, ptr %14, align 8, !tbaa !9
  %167 = mul nsw i64 2, %166
  %168 = add nsw i64 %167, 0
  %169 = getelementptr inbounds double, ptr %165, i64 %168
  store double %163, ptr %169, align 8, !tbaa !13
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %170, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !11
  %173 = load i64, ptr %14, align 8, !tbaa !9
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %172, i64 %173
  %175 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %174, i32 0, i32 1
  %176 = load double, ptr %175, align 8, !tbaa !20
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !11
  %179 = load i64, ptr %14, align 8, !tbaa !9
  %180 = mul nsw i64 2, %179
  %181 = add nsw i64 %180, 1
  %182 = getelementptr inbounds double, ptr %178, i64 %181
  store double %176, ptr %182, align 8, !tbaa !13
  br label %183

183:                                              ; preds = %156
  %184 = load i64, ptr %14, align 8, !tbaa !9
  %185 = add nsw i64 %184, 1
  store i64 %185, ptr %14, align 8, !tbaa !9
  br label %151, !llvm.loop !22

186:                                              ; preds = %151
  %187 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %187, ptr %14, align 8, !tbaa !9
  br label %188

188:                                              ; preds = %206, %186
  %189 = load i64, ptr %14, align 8, !tbaa !9
  %190 = load i64, ptr %8, align 8, !tbaa !9
  %191 = sub nsw i64 %190, 1
  %192 = icmp sle i64 %189, %191
  br i1 %192, label %193, label %209

193:                                              ; preds = %188
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %195 = load ptr, ptr %194, align 8, !tbaa !11
  %196 = load i64, ptr %14, align 8, !tbaa !9
  %197 = mul nsw i64 2, %196
  %198 = add nsw i64 %197, 0
  %199 = getelementptr inbounds double, ptr %195, i64 %198
  store double 0.000000e+00, ptr %199, align 8, !tbaa !13
  %200 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %201 = load ptr, ptr %200, align 8, !tbaa !11
  %202 = load i64, ptr %14, align 8, !tbaa !9
  %203 = mul nsw i64 2, %202
  %204 = add nsw i64 %203, 1
  %205 = getelementptr inbounds double, ptr %201, i64 %204
  store double 0.000000e+00, ptr %205, align 8, !tbaa !13
  br label %206

206:                                              ; preds = %193
  %207 = load i64, ptr %14, align 8, !tbaa !9
  %208 = add nsw i64 %207, 1
  store i64 %208, ptr %14, align 8, !tbaa !9
  br label %188, !llvm.loop !23

209:                                              ; preds = %188
  %210 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef %21, ptr noundef %18, i64 noundef 0, i64 noundef 1, ptr noundef %210)
  %211 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef %21, ptr noundef %19, i64 noundef 0, i64 noundef 1, ptr noundef %211)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %212

212:                                              ; preds = %280, %209
  %213 = load i64, ptr %14, align 8, !tbaa !9
  %214 = load i64, ptr %8, align 8, !tbaa !9
  %215 = sub nsw i64 %214, 1
  %216 = icmp sle i64 %213, %215
  br i1 %216, label %217, label %283

217:                                              ; preds = %212
  %218 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %219 = load ptr, ptr %218, align 8, !tbaa !11
  %220 = load i64, ptr %14, align 8, !tbaa !9
  %221 = mul nsw i64 2, %220
  %222 = add nsw i64 %221, 0
  %223 = getelementptr inbounds double, ptr %219, i64 %222
  %224 = load double, ptr %223, align 8, !tbaa !13
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %22, i32 0, i32 0
  store double %224, ptr %225, align 8, !tbaa !18
  %226 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, 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, 1
  %231 = getelementptr inbounds double, ptr %227, i64 %230
  %232 = load double, ptr %231, align 8, !tbaa !13
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %22, i32 0, i32 1
  store double %232, ptr %233, align 8, !tbaa !20
  %234 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %235 = load ptr, ptr %234, align 8, !tbaa !11
  %236 = load i64, ptr %14, align 8, !tbaa !9
  %237 = mul nsw i64 2, %236
  %238 = add nsw i64 %237, 0
  %239 = getelementptr inbounds double, ptr %235, i64 %238
  %240 = load double, ptr %239, align 8, !tbaa !13
  %241 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %23, i32 0, i32 0
  store double %240, ptr %241, align 8, !tbaa !18
  %242 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %243 = load ptr, ptr %242, align 8, !tbaa !11
  %244 = load i64, ptr %14, align 8, !tbaa !9
  %245 = mul nsw i64 2, %244
  %246 = add nsw i64 %245, 1
  %247 = getelementptr inbounds double, ptr %243, i64 %246
  %248 = load double, ptr %247, align 8, !tbaa !13
  %249 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %23, i32 0, i32 1
  store double %248, ptr %249, 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 %22, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !12
  %250 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %251 = load double, ptr %250, align 8
  %252 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %253 = load double, ptr %252, align 8
  %254 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %255 = load double, ptr %254, align 8
  %256 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %257 = load double, ptr %256, align 8
  %258 = call { double, double } @_ZN11alglib_impl8ae_c_divENS_10ae_complexES0_(double %251, double %253, double %255, double %257)
  %259 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %260 = extractvalue { double, double } %258, 0
  store double %260, ptr %259, align 8
  %261 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %262 = extractvalue { double, double } %258, 1
  store double %262, ptr %261, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %24, i32 0, i32 0
  %264 = load double, ptr %263, align 8, !tbaa !18
  %265 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %266 = load ptr, ptr %265, align 8, !tbaa !11
  %267 = load i64, ptr %14, align 8, !tbaa !9
  %268 = mul nsw i64 2, %267
  %269 = add nsw i64 %268, 0
  %270 = getelementptr inbounds double, ptr %266, i64 %269
  store double %264, ptr %270, align 8, !tbaa !13
  %271 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %24, i32 0, i32 1
  %272 = load double, ptr %271, align 8, !tbaa !20
  %273 = fneg double %272
  %274 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %275 = load ptr, ptr %274, align 8, !tbaa !11
  %276 = load i64, ptr %14, align 8, !tbaa !9
  %277 = mul nsw i64 2, %276
  %278 = add nsw i64 %277, 1
  %279 = getelementptr inbounds double, ptr %275, i64 %278
  store double %273, ptr %279, align 8, !tbaa !13
  br label %280

280:                                              ; preds = %217
  %281 = load i64, ptr %14, align 8, !tbaa !9
  %282 = add nsw i64 %281, 1
  store i64 %282, ptr %14, align 8, !tbaa !9
  br label %212, !llvm.loop !24

283:                                              ; preds = %212
  %284 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef %21, ptr noundef %18, i64 noundef 0, i64 noundef 1, ptr noundef %284)
  %285 = load i64, ptr %8, align 8, !tbaa !9
  %286 = sitofp i64 %285 to double
  %287 = fdiv double 1.000000e+00, %286
  store double %287, ptr %25, align 8, !tbaa !13
  %288 = load ptr, ptr %11, align 8, !tbaa !5
  %289 = load i64, ptr %8, align 8, !tbaa !9
  %290 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %288, i64 noundef %289, ptr noundef %290)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %291

291:                                              ; preds = %328, %283
  %292 = load i64, ptr %14, align 8, !tbaa !9
  %293 = load i64, ptr %8, align 8, !tbaa !9
  %294 = sub nsw i64 %293, 1
  %295 = icmp sle i64 %292, %294
  br i1 %295, label %296, label %331

296:                                              ; preds = %291
  %297 = load double, ptr %25, align 8, !tbaa !13
  %298 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %299 = load ptr, ptr %298, align 8, !tbaa !11
  %300 = load i64, ptr %14, align 8, !tbaa !9
  %301 = mul nsw i64 2, %300
  %302 = add nsw i64 %301, 0
  %303 = getelementptr inbounds double, ptr %299, i64 %302
  %304 = load double, ptr %303, align 8, !tbaa !13
  %305 = fmul double %297, %304
  %306 = load ptr, ptr %11, align 8, !tbaa !5
  %307 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %306, i32 0, i32 4
  %308 = load ptr, ptr %307, align 8, !tbaa !11
  %309 = load i64, ptr %14, align 8, !tbaa !9
  %310 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %308, i64 %309
  %311 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %310, i32 0, i32 0
  store double %305, ptr %311, align 8, !tbaa !18
  %312 = load double, ptr %25, align 8, !tbaa !13
  %313 = fneg double %312
  %314 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %315 = load ptr, ptr %314, align 8, !tbaa !11
  %316 = load i64, ptr %14, align 8, !tbaa !9
  %317 = mul nsw i64 2, %316
  %318 = add nsw i64 %317, 1
  %319 = getelementptr inbounds double, ptr %315, i64 %318
  %320 = load double, ptr %319, align 8, !tbaa !13
  %321 = fmul double %313, %320
  %322 = load ptr, ptr %11, align 8, !tbaa !5
  %323 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %322, i32 0, i32 4
  %324 = load ptr, ptr %323, align 8, !tbaa !11
  %325 = load i64, ptr %14, align 8, !tbaa !9
  %326 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %324, i64 %325
  %327 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %326, i32 0, i32 1
  store double %321, ptr %327, align 8, !tbaa !20
  br label %328

328:                                              ; preds = %296
  %329 = load i64, ptr %14, align 8, !tbaa !9
  %330 = add nsw i64 %329, 1
  store i64 %330, ptr %14, align 8, !tbaa !9
  br label %291, !llvm.loop !25

331:                                              ; preds = %291
  %332 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %332)
  store i32 0, ptr %27, align 4
  br label %333

333:                                              ; preds = %331, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 416, 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
  %334 = load i32, ptr %27, align 4
  switch i32 %334, label %336 [
    i32 0, label %335
    i32 1, label %335
  ]

335:                                              ; preds = %333, %333
  ret void

336:                                              ; preds = %333
  unreachable
}

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

; 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_impl8ae_v_lenEll(i64 noundef, i64 noundef) #2

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

declare { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef) #2

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

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


; 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.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = 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
define dso_local void @_ZN11alglib_impl18convc1dcircularinvEPNS_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::ae_vector", align 8
  %11 = 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 416, ptr nonnull %11) #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(416) %11, 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_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 4, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl23_fasttransformplan_initEPvPNS_8ae_stateEb(ptr noundef nonnull %11, ptr noundef %5, i1 noundef zeroext true)
  %12 = icmp sgt i64 %3, 0
  %13 = icmp sgt i64 %1, 0
  %14 = and i1 %13, %12
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.20, ptr noundef %5)
  %15 = icmp slt i64 %1, %3
  br i1 %15, label %16, label %38

16:                                               ; preds = %6
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %1, ptr noundef %5)
  br i1 %13, label %.lr.ph139, label %.preheader

.lr.ph139:                                        ; preds = %16
  %17 = getelementptr inbounds i8, ptr %10, i64 56
  br label %21

.preheader:                                       ; preds = %21, %16
  br i1 %12, label %.lr.ph141, label %._crit_edge142

.lr.ph141:                                        ; preds = %.preheader
  %18 = add nsw i64 %3, -1
  %19 = getelementptr inbounds i8, ptr %10, i64 56
  %20 = getelementptr inbounds i8, ptr %2, i64 56
  br label %28

21:                                               ; preds = %.lr.ph139, %21
  %.0137 = phi i64 [ 0, %.lr.ph139 ], [ %27, %21 ]
  %22 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %23 = extractvalue { double, double } %22, 0
  %24 = extractvalue { double, double } %22, 1
  %25 = load ptr, ptr %17, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %25, i64 %.0137
  store double %23, ptr %26, align 8, !tbaa !8
  %.sroa.45.0..sroa_idx = getelementptr inbounds i8, ptr %26, i64 8
  store double %24, ptr %.sroa.45.0..sroa_idx, align 8, !tbaa !8
  %27 = add nuw nsw i64 %.0137, 1
  %exitcond147.not = icmp eq i64 %27, %1
  br i1 %exitcond147.not, label %.preheader, label %21, !llvm.loop !10

28:                                               ; preds = %.lr.ph141, %28
  %.0104140 = phi i64 [ 0, %.lr.ph141 ], [ %29, %28 ]
  %29 = add nsw i64 %.0104140, %1
  %30 = add nsw i64 %29, -1
  %31 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %30, i64 noundef %18, ptr noundef %5)
  %32 = sub nsw i64 %31, %.0104140
  %33 = load ptr, ptr %19, align 8, !tbaa !5
  %34 = load ptr, ptr %20, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %34, i64 %.0104140
  %36 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %32)
  call void @_ZN11alglib_impl9ae_v_caddEPNS_10ae_complexElPKS0_lPKcl(ptr noundef %33, i64 noundef 1, ptr noundef %35, i64 noundef 1, ptr noundef nonnull @.str.19, i64 noundef %36)
  %37 = icmp slt i64 %29, %3
  br i1 %37, label %28, label %._crit_edge142, !llvm.loop !12

._crit_edge142:                                   ; preds = %28, %.preheader
  call void @_ZN11alglib_impl18convc1dcircularinvEPNS_9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef nonnull %10, i64 noundef %1, ptr noundef %4, ptr noundef %5)
  br label %._crit_edge135

38:                                               ; preds = %6
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %1, i64 noundef 1, ptr noundef nonnull %11, ptr noundef %5)
  %39 = shl nsw i64 %1, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %39, ptr noundef %5)
  br i1 %13, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %38
  %40 = getelementptr inbounds i8, ptr %0, i64 56
  %41 = getelementptr inbounds i8, ptr %8, i64 56
  br label %42

42:                                               ; preds = %.lr.ph, %42
  %.1117 = phi i64 [ 0, %.lr.ph ], [ %55, %42 ]
  %43 = load ptr, ptr %40, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %43, i64 %.1117
  %45 = load double, ptr %44, align 8, !tbaa !13
  %46 = load ptr, ptr %41, align 8, !tbaa !5
  %47 = shl nuw nsw i64 %.1117, 1
  %48 = getelementptr inbounds double, ptr %46, i64 %47
  store double %45, ptr %48, align 8, !tbaa !8
  %49 = load ptr, ptr %40, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %49, i64 %.1117, i32 1
  %51 = load double, ptr %50, align 8, !tbaa !15
  %52 = load ptr, ptr %41, align 8, !tbaa !5
  %53 = or disjoint i64 %47, 1
  %54 = getelementptr inbounds double, ptr %52, i64 %53
  store double %51, ptr %54, align 8, !tbaa !8
  %55 = add nuw nsw i64 %.1117, 1
  %exitcond.not = icmp eq i64 %55, %1
  br i1 %exitcond.not, label %._crit_edge, label %42, !llvm.loop !16

._crit_edge:                                      ; preds = %42, %38
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %39, ptr noundef %5)
  br i1 %12, label %.lr.ph121, label %.preheader115

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

.preheader115:                                    ; preds = %69, %._crit_edge
  %.not.not111122 = icmp slt i64 %3, %1
  br i1 %.not.not111122, label %.lr.ph124, label %._crit_edge125

.lr.ph124:                                        ; preds = %.preheader115
  %58 = getelementptr inbounds i8, ptr %9, i64 56
  %59 = sub i64 %1, %3
  %xtraiter = and i64 %59, 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.ph124
  %60 = load ptr, ptr %58, align 8, !tbaa !5
  %61 = shl nsw i64 %3, 1
  %62 = getelementptr inbounds double, ptr %60, i64 %61
  store double 0.000000e+00, ptr %62, align 8, !tbaa !8
  %63 = load ptr, ptr %58, align 8, !tbaa !5
  %64 = or disjoint i64 %61, 1
  %65 = getelementptr inbounds double, ptr %63, i64 %64
  store double 0.000000e+00, ptr %65, align 8, !tbaa !8
  %66 = add nsw i64 %3, 1
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.lr.ph124
  %.3123.unr = phi i64 [ %3, %.lr.ph124 ], [ %66, %.prol.loopexit.unr-lcssa ]
  %67 = add i64 %1, -1
  %68 = icmp eq i64 %67, %3
  br i1 %68, label %._crit_edge125, label %.lr.ph124.new

69:                                               ; preds = %.lr.ph121, %69
  %.2119 = phi i64 [ 0, %.lr.ph121 ], [ %82, %69 ]
  %70 = load ptr, ptr %56, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %70, i64 %.2119
  %72 = load double, ptr %71, align 8, !tbaa !13
  %73 = load ptr, ptr %57, align 8, !tbaa !5
  %74 = shl nuw nsw i64 %.2119, 1
  %75 = getelementptr inbounds double, ptr %73, i64 %74
  store double %72, ptr %75, align 8, !tbaa !8
  %76 = load ptr, ptr %56, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %76, i64 %.2119, i32 1
  %78 = load double, ptr %77, align 8, !tbaa !15
  %79 = load ptr, ptr %57, 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 %.2119, 1
  %exitcond143.not = icmp eq i64 %82, %3
  br i1 %exitcond143.not, label %.preheader115, label %69, !llvm.loop !17

.lr.ph124.new:                                    ; preds = %.prol.loopexit, %.lr.ph124.new
  %.3123 = phi i64 [ %96, %.lr.ph124.new ], [ %.3123.unr, %.prol.loopexit ]
  %83 = load ptr, ptr %58, align 8, !tbaa !5
  %84 = shl nsw i64 %.3123, 1
  %85 = getelementptr inbounds double, ptr %83, i64 %84
  store double 0.000000e+00, ptr %85, align 8, !tbaa !8
  %86 = load ptr, ptr %58, 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 %58, align 8, !tbaa !5
  %90 = shl i64 %.3123, 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 %58, 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 %.3123, 2
  %exitcond144.not.1 = icmp eq i64 %96, %1
  br i1 %exitcond144.not.1, label %._crit_edge125, label %.lr.ph124.new, !llvm.loop !18

._crit_edge125:                                   ; preds = %.prol.loopexit, %.lr.ph124.new, %.preheader115
  call void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef nonnull %11, 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 %11, ptr noundef nonnull %9, i64 noundef 0, i64 noundef 1, ptr noundef %5)
  br i1 %13, label %.lr.ph129, label %._crit_edge130

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

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

._crit_edge130:                                   ; preds = %99, %._crit_edge125
  call void @_ZN11alglib_impl11ftapplyplanEPNS_17fasttransformplanEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef nonnull %8, i64 noundef 0, i64 noundef 1, ptr noundef %5)
  %121 = sitofp i64 %1 to double
  %122 = fdiv double 1.000000e+00, %121
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %4, i64 noundef %1, ptr noundef %5)
  br i1 %13, label %.lr.ph134, label %._crit_edge135

.lr.ph134:                                        ; preds = %._crit_edge130
  %123 = getelementptr inbounds i8, ptr %8, i64 56
  %124 = getelementptr inbounds i8, ptr %4, i64 56
  %125 = fneg double %122
  br label %126

126:                                              ; preds = %.lr.ph134, %126
  %.5132 = phi i64 [ 0, %.lr.ph134 ], [ %141, %126 ]
  %127 = load ptr, ptr %123, align 8, !tbaa !5
  %128 = shl nuw nsw i64 %.5132, 1
  %129 = getelementptr inbounds double, ptr %127, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !8
  %131 = fmul double %122, %130
  %132 = load ptr, ptr %124, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %132, i64 %.5132
  store double %131, ptr %133, align 8, !tbaa !13
  %134 = load ptr, ptr %123, align 8, !tbaa !5
  %135 = or disjoint i64 %128, 1
  %136 = getelementptr inbounds double, ptr %134, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !8
  %138 = fmul double %137, %125
  %139 = load ptr, ptr %124, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %139, i64 %.5132, i32 1
  store double %138, ptr %140, align 8, !tbaa !15
  %141 = add nuw nsw i64 %.5132, 1
  %exitcond146.not = icmp eq i64 %141, %1
  br i1 %exitcond146.not, label %._crit_edge135, label %126, !llvm.loop !20

._crit_edge135:                                   ; preds = %126, %._crit_edge130, %._crit_edge142
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 416, 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_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_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #2

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

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


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