; 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.23 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

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

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

56:                                               ; preds = %66, %53
  %57 = load i64, ptr %14, align 8, !tbaa !9
  %58 = load i64, ptr %8, align 8, !tbaa !9
  %59 = sub nsw i64 %58, 1
  %60 = icmp sle i64 %57, %59
  br i1 %60, label %61, label %69

61:                                               ; preds = %56
  %62 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, 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 double, ptr %63, i64 %64
  store double 0.000000e+00, ptr %65, align 8, !tbaa !12
  br label %66

66:                                               ; preds = %61
  %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 %56, !llvm.loop !14

69:                                               ; preds = %56
  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 %18, i32 0, i32 4
  %87 = load ptr, ptr %86, align 8, !tbaa !11
  %88 = getelementptr inbounds double, 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 double, 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_impl8ae_v_addEPdlPKdll(ptr noundef %88, i64 noundef 1, ptr noundef %93, i64 noundef 1, 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 !16

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_impl18convr1dcircularinvEPNS_9ae_vectorElS1_lS1_PNS_8ae_stateE(ptr noundef %100, i64 noundef %101, ptr noundef %18, 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 %346

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

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

136:                                              ; preds = %146, %110
  %137 = load i64, ptr %14, align 8, !tbaa !9
  %138 = load i64, ptr %8, align 8, !tbaa !9
  %139 = sub nsw i64 %138, 1
  %140 = icmp sle i64 %137, %139
  br i1 %140, label %141, label %149

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

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

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

183:                                              ; preds = %251, %149
  %184 = load i64, ptr %14, align 8, !tbaa !9
  %185 = load i64, ptr %8, align 8, !tbaa !9
  %186 = sdiv i64 %185, 2
  %187 = sub nsw i64 %186, 1
  %188 = icmp sle i64 %184, %187
  br i1 %188, label %189, label %254

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

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

254:                                              ; preds = %183
  %255 = load i64, ptr %8, align 8, !tbaa !9
  %256 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl21fftr1dinvinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef %18, i64 noundef %255, ptr noundef %20, ptr noundef %23, ptr noundef %256)
  %257 = load ptr, ptr %11, align 8, !tbaa !5
  %258 = load i64, ptr %8, align 8, !tbaa !9
  %259 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %257, i64 noundef %258, ptr noundef %259)
  %260 = load ptr, ptr %11, align 8, !tbaa !5
  %261 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %260, i32 0, i32 4
  %262 = load ptr, ptr %261, align 8, !tbaa !11
  %263 = getelementptr inbounds double, ptr %262, i64 0
  %264 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %265 = load ptr, ptr %264, align 8, !tbaa !11
  %266 = getelementptr inbounds double, ptr %265, i64 0
  %267 = load i64, ptr %8, align 8, !tbaa !9
  %268 = sub nsw i64 %267, 1
  %269 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %268)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %263, i64 noundef 1, ptr noundef %266, i64 noundef 1, i64 noundef %269)
  br label %344

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

287:                                              ; preds = %297, %270
  %288 = load i64, ptr %14, align 8, !tbaa !9
  %289 = load i64, ptr %8, align 8, !tbaa !9
  %290 = sub nsw i64 %289, 1
  %291 = icmp sle i64 %288, %290
  br i1 %291, label %292, label %300

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

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

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

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

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

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

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

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

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

348:                                              ; preds = %346, %346
  ret void

349:                                              ; preds = %346
  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_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 void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #2

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

declare noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef, ptr noundef) #2

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = !{!19, !13, i64 0}
!19 = !{!"_ZTSN11alglib_impl10ae_complexE", !13, i64 0, !13, i64 8}
!20 = !{!19, !13, i64 8}
!21 = !{i64 0, i64 8, !12, i64 8, i64 8, !12}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::fasttransformplan" = type { %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_shared_pool" }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_shared_pool" = type { %"struct.alglib_impl::ae_lock", ptr, ptr, ptr, ptr, i64, ptr, ptr, 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.23 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

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

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

.preheader.loopexit.unr-lcssa:                    ; preds = %28, %.lr.ph144
  %.0142.unr = phi i64 [ 0, %.lr.ph144 ], [ %40, %28 ]
  %lcmp.mod156.not = icmp eq i64 %xtraiter155, 0
  br i1 %lcmp.mod156.not, label %.preheader, label %.epil.preheader

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

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

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

28:                                               ; preds = %28, %.lr.ph144.new
  %.0142 = phi i64 [ 0, %.lr.ph144.new ], [ %40, %28 ]
  %niter = phi i64 [ 0, %.lr.ph144.new ], [ %niter.next.3, %28 ]
  %29 = load ptr, ptr %19, align 8, !tbaa !5
  %30 = getelementptr inbounds double, ptr %29, i64 %.0142
  store double 0.000000e+00, ptr %30, align 8, !tbaa !8
  %31 = or disjoint i64 %.0142, 1
  %32 = load ptr, ptr %19, align 8, !tbaa !5
  %33 = getelementptr inbounds double, ptr %32, i64 %31
  store double 0.000000e+00, ptr %33, align 8, !tbaa !8
  %34 = or disjoint i64 %.0142, 2
  %35 = load ptr, ptr %19, align 8, !tbaa !5
  %36 = getelementptr inbounds double, ptr %35, i64 %34
  store double 0.000000e+00, ptr %36, align 8, !tbaa !8
  %37 = or disjoint i64 %.0142, 3
  %38 = load ptr, ptr %19, align 8, !tbaa !5
  %39 = getelementptr inbounds double, ptr %38, i64 %37
  store double 0.000000e+00, ptr %39, align 8, !tbaa !8
  %40 = add nuw nsw i64 %.0142, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader.loopexit.unr-lcssa, label %28, !llvm.loop !12

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

164:                                              ; preds = %._crit_edge140, %._crit_edge130, %._crit_edge147
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 416, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  ret void
}

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #2

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

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

declare noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.unroll.disable"}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}


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