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

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

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

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

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

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

41:                                               ; preds = %37, %34, %6
  %42 = phi i1 [ false, %34 ], [ false, %6 ], [ %40, %37 ]
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef @.str.22, ptr noundef %43)
  %44 = load i64, ptr %8, align 8, !tbaa !9
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = call noundef i64 @_ZN11alglib_impl20ftbasefindsmoothevenElPNS_8ae_stateE(i64 noundef %44, ptr noundef %45)
  store i64 %46, ptr %15, align 8, !tbaa !9
  %47 = load i64, ptr %15, align 8, !tbaa !9
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %47, ptr noundef %48)
  %49 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !11
  %51 = getelementptr inbounds double, ptr %50, i64 0
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !11
  %55 = getelementptr inbounds double, ptr %54, i64 0
  %56 = load i64, ptr %8, align 8, !tbaa !9
  %57 = sub nsw i64 %56, 1
  %58 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %57)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %51, i64 noundef 1, ptr noundef %55, i64 noundef 1, i64 noundef %58)
  %59 = load i64, ptr %8, align 8, !tbaa !9
  store i64 %59, ptr %14, align 8, !tbaa !9
  br label %60

60:                                               ; preds = %70, %41
  %61 = load i64, ptr %14, align 8, !tbaa !9
  %62 = load i64, ptr %15, align 8, !tbaa !9
  %63 = sub nsw i64 %62, 1
  %64 = icmp sle i64 %61, %63
  br i1 %64, label %65, label %73

65:                                               ; preds = %60
  %66 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %67 = load ptr, ptr %66, align 8, !tbaa !11
  %68 = load i64, ptr %14, align 8, !tbaa !9
  %69 = getelementptr inbounds double, ptr %67, i64 %68
  store double 0.000000e+00, ptr %69, align 8, !tbaa !12
  br label %70

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

73:                                               ; preds = %60
  %74 = load i64, ptr %15, align 8, !tbaa !9
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %74, ptr noundef %75)
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = getelementptr inbounds double, ptr %77, i64 0
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = getelementptr inbounds double, ptr %81, i64 0
  %83 = load i64, ptr %10, align 8, !tbaa !9
  %84 = sub nsw i64 %83, 1
  %85 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %84)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %78, i64 noundef 1, ptr noundef %82, i64 noundef 1, i64 noundef %85)
  %86 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %86, ptr %14, align 8, !tbaa !9
  br label %87

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

92:                                               ; preds = %87
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = load i64, ptr %14, align 8, !tbaa !9
  %96 = getelementptr inbounds double, ptr %94, i64 %95
  store double 0.000000e+00, ptr %96, align 8, !tbaa !12
  br label %97

97:                                               ; preds = %92
  %98 = load i64, ptr %14, align 8, !tbaa !9
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %14, align 8, !tbaa !9
  br label %87, !llvm.loop !16

100:                                              ; preds = %87
  %101 = load i64, ptr %15, align 8, !tbaa !9
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %101, ptr noundef %102)
  %103 = load i64, ptr %15, align 8, !tbaa !9
  %104 = sdiv i64 %103, 2
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %104, i64 noundef 1, ptr noundef %19, ptr noundef %105)
  %106 = load i64, ptr %15, align 8, !tbaa !9
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18fftr1dinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef %16, i64 noundef %106, ptr noundef %18, ptr noundef %19, ptr noundef %107)
  %108 = load i64, ptr %15, align 8, !tbaa !9
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18fftr1dinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef %17, i64 noundef %108, ptr noundef %18, ptr noundef %19, ptr noundef %109)
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !11
  %112 = getelementptr inbounds double, ptr %111, i64 0
  %113 = load double, ptr %112, align 8, !tbaa !12
  %114 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !11
  %116 = getelementptr inbounds double, ptr %115, i64 0
  %117 = load double, ptr %116, align 8, !tbaa !12
  %118 = fdiv double %113, %117
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %120 = load ptr, ptr %119, align 8, !tbaa !11
  %121 = getelementptr inbounds double, ptr %120, i64 0
  store double %118, ptr %121, align 8, !tbaa !12
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !11
  %124 = getelementptr inbounds double, ptr %123, i64 1
  %125 = load double, ptr %124, align 8, !tbaa !12
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %127 = load ptr, ptr %126, align 8, !tbaa !11
  %128 = getelementptr inbounds double, ptr %127, i64 1
  %129 = load double, ptr %128, align 8, !tbaa !12
  %130 = fdiv double %125, %129
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !11
  %133 = getelementptr inbounds double, ptr %132, i64 1
  store double %130, ptr %133, align 8, !tbaa !12
  store i64 1, ptr %14, align 8, !tbaa !9
  br label %134

134:                                              ; preds = %202, %100
  %135 = load i64, ptr %14, align 8, !tbaa !9
  %136 = load i64, ptr %15, align 8, !tbaa !9
  %137 = sdiv i64 %136, 2
  %138 = sub nsw i64 %137, 1
  %139 = icmp sle i64 %135, %138
  br i1 %139, label %140, label %205

140:                                              ; preds = %134
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !11
  %143 = load i64, ptr %14, align 8, !tbaa !9
  %144 = mul nsw i64 2, %143
  %145 = add nsw i64 %144, 0
  %146 = getelementptr inbounds double, ptr %142, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !12
  %148 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %20, i32 0, i32 0
  store double %147, ptr %148, align 8, !tbaa !17
  %149 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !11
  %151 = load i64, ptr %14, align 8, !tbaa !9
  %152 = mul nsw i64 2, %151
  %153 = add nsw i64 %152, 1
  %154 = getelementptr inbounds double, ptr %150, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !12
  %156 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %20, i32 0, i32 1
  store double %155, ptr %156, align 8, !tbaa !19
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %158 = load ptr, ptr %157, align 8, !tbaa !11
  %159 = load i64, ptr %14, align 8, !tbaa !9
  %160 = mul nsw i64 2, %159
  %161 = add nsw i64 %160, 0
  %162 = getelementptr inbounds double, ptr %158, i64 %161
  %163 = load double, ptr %162, align 8, !tbaa !12
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %21, i32 0, i32 0
  store double %163, ptr %164, align 8, !tbaa !17
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %166 = load ptr, ptr %165, align 8, !tbaa !11
  %167 = load i64, ptr %14, align 8, !tbaa !9
  %168 = mul nsw i64 2, %167
  %169 = add nsw i64 %168, 1
  %170 = getelementptr inbounds double, ptr %166, i64 %169
  %171 = load double, ptr %170, align 8, !tbaa !12
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %21, i32 0, i32 1
  store double %171, ptr %172, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !20
  %173 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %174 = load double, ptr %173, align 8
  %175 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %176 = load double, ptr %175, align 8
  %177 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %178 = load double, ptr %177, align 8
  %179 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %180 = load double, ptr %179, align 8
  %181 = call { double, double } @_ZN11alglib_impl8ae_c_divENS_10ae_complexES0_(double %174, double %176, double %178, double %180)
  %182 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %183 = extractvalue { double, double } %181, 0
  store double %183, ptr %182, align 8
  %184 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %185 = extractvalue { double, double } %181, 1
  store double %185, ptr %184, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %22, i32 0, i32 0
  %187 = load double, ptr %186, align 8, !tbaa !17
  %188 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %189 = load ptr, ptr %188, align 8, !tbaa !11
  %190 = load i64, ptr %14, align 8, !tbaa !9
  %191 = mul nsw i64 2, %190
  %192 = add nsw i64 %191, 0
  %193 = getelementptr inbounds double, ptr %189, i64 %192
  store double %187, ptr %193, align 8, !tbaa !12
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %22, i32 0, i32 1
  %195 = load double, ptr %194, align 8, !tbaa !19
  %196 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %197 = load ptr, ptr %196, align 8, !tbaa !11
  %198 = load i64, ptr %14, align 8, !tbaa !9
  %199 = mul nsw i64 2, %198
  %200 = add nsw i64 %199, 1
  %201 = getelementptr inbounds double, ptr %197, i64 %200
  store double %195, ptr %201, align 8, !tbaa !12
  br label %202

202:                                              ; preds = %140
  %203 = load i64, ptr %14, align 8, !tbaa !9
  %204 = add nsw i64 %203, 1
  store i64 %204, ptr %14, align 8, !tbaa !9
  br label %134, !llvm.loop !21

205:                                              ; preds = %134
  %206 = load i64, ptr %15, align 8, !tbaa !9
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl21fftr1dinvinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef %16, i64 noundef %206, ptr noundef %18, ptr noundef %19, ptr noundef %207)
  %208 = load ptr, ptr %11, align 8, !tbaa !5
  %209 = load i64, ptr %8, align 8, !tbaa !9
  %210 = load i64, ptr %10, align 8, !tbaa !9
  %211 = sub nsw i64 %209, %210
  %212 = add nsw i64 %211, 1
  %213 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %208, i64 noundef %212, ptr noundef %213)
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %214, i32 0, i32 4
  %216 = load ptr, ptr %215, align 8, !tbaa !11
  %217 = getelementptr inbounds double, ptr %216, i64 0
  %218 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %219 = load ptr, ptr %218, align 8, !tbaa !11
  %220 = getelementptr inbounds double, ptr %219, i64 0
  %221 = load i64, ptr %8, align 8, !tbaa !9
  %222 = load i64, ptr %10, align 8, !tbaa !9
  %223 = sub nsw i64 %221, %222
  %224 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %223)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %217, i64 noundef 1, ptr noundef %220, i64 noundef 1, i64 noundef %224)
  %225 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %225)
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 416, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  ret void
}

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

declare void @_ZN11alglib_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

; 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_impl20ftbasefindsmoothevenElPNS_8ae_stateE(i64 noundef, ptr 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 = !{!18, !13, i64 0}
!18 = !{!"_ZTSN11alglib_impl10ae_complexE", !13, i64 0, !13, i64 8}
!19 = !{!18, !13, i64 8}
!20 = !{i64 0, i64 8, !12, i64 8, i64 8, !12}
!21 = distinct !{!21, !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 }

@.str.22 = external hidden unnamed_addr constant [30 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl10convr1dinvEPNS_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) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 416, ptr nonnull %11) #5
  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 3, 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
  %or.cond = and i1 %13, %12
  %14 = icmp ule i64 %3, %1
  %spec.select = and i1 %14, %or.cond
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.22, ptr noundef %5)
  %15 = call noundef i64 @_ZN11alglib_impl20ftbasefindsmoothevenElPNS_8ae_stateE(i64 noundef %1, ptr noundef %5)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %15, ptr noundef %5)
  %16 = getelementptr inbounds i8, ptr %8, i64 56
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 56
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = add nsw i64 %1, -1
  %21 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %20)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %17, i64 noundef 1, ptr noundef %19, i64 noundef 1, i64 noundef %21)
  %.not.not72 = icmp sgt i64 %15, %1
  br i1 %.not.not72, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %6
  %22 = sub i64 %15, %1
  %xtraiter = and i64 %22, 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
  %.073.prol = phi i64 [ %25, %.lr.ph.prol ], [ %1, %.lr.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %23 = load ptr, ptr %16, align 8, !tbaa !5
  %24 = getelementptr inbounds double, ptr %23, i64 %.073.prol
  store double 0.000000e+00, ptr %24, align 8, !tbaa !8
  %25 = add nsw i64 %.073.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 !10

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.073.unr = phi i64 [ %1, %.lr.ph.preheader ], [ %25, %.lr.ph.prol ]
  %26 = sub i64 %1, %15
  %27 = icmp ugt i64 %26, -4
  br i1 %27, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.073 = phi i64 [ %39, %.lr.ph ], [ %.073.unr, %.lr.ph.prol.loopexit ]
  %28 = load ptr, ptr %16, align 8, !tbaa !5
  %29 = getelementptr inbounds double, ptr %28, i64 %.073
  store double 0.000000e+00, ptr %29, align 8, !tbaa !8
  %30 = load ptr, ptr %16, align 8, !tbaa !5
  %31 = getelementptr double, ptr %30, i64 %.073
  %32 = getelementptr i8, ptr %31, i64 8
  store double 0.000000e+00, ptr %32, align 8, !tbaa !8
  %33 = load ptr, ptr %16, align 8, !tbaa !5
  %34 = getelementptr double, ptr %33, i64 %.073
  %35 = getelementptr i8, ptr %34, i64 16
  store double 0.000000e+00, ptr %35, align 8, !tbaa !8
  %36 = load ptr, ptr %16, align 8, !tbaa !5
  %37 = getelementptr double, ptr %36, i64 %.073
  %38 = getelementptr i8, ptr %37, i64 24
  store double 0.000000e+00, ptr %38, align 8, !tbaa !8
  %39 = add nsw i64 %.073, 4
  %exitcond.not.3 = icmp eq i64 %39, %15
  br i1 %exitcond.not.3, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %6
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %15, ptr noundef %5)
  %40 = getelementptr inbounds i8, ptr %9, i64 56
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %2, i64 56
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = add nsw i64 %3, -1
  %45 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %44)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %41, i64 noundef 1, ptr noundef %43, i64 noundef 1, i64 noundef %45)
  %.not.not7074 = icmp sgt i64 %15, %3
  br i1 %.not.not7074, label %.lr.ph77.preheader, label %._crit_edge78

.lr.ph77.preheader:                               ; preds = %._crit_edge
  %46 = sub i64 %15, %3
  %xtraiter86 = and i64 %46, 3
  %lcmp.mod87.not = icmp eq i64 %xtraiter86, 0
  br i1 %lcmp.mod87.not, label %.lr.ph77.prol.loopexit, label %.lr.ph77.prol

.lr.ph77.prol:                                    ; preds = %.lr.ph77.preheader, %.lr.ph77.prol
  %.175.prol = phi i64 [ %49, %.lr.ph77.prol ], [ %3, %.lr.ph77.preheader ]
  %prol.iter88 = phi i64 [ %prol.iter88.next, %.lr.ph77.prol ], [ 0, %.lr.ph77.preheader ]
  %47 = load ptr, ptr %40, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %47, i64 %.175.prol
  store double 0.000000e+00, ptr %48, align 8, !tbaa !8
  %49 = add nsw i64 %.175.prol, 1
  %prol.iter88.next = add i64 %prol.iter88, 1
  %prol.iter88.cmp.not = icmp eq i64 %prol.iter88.next, %xtraiter86
  br i1 %prol.iter88.cmp.not, label %.lr.ph77.prol.loopexit, label %.lr.ph77.prol, !llvm.loop !14

.lr.ph77.prol.loopexit:                           ; preds = %.lr.ph77.prol, %.lr.ph77.preheader
  %.175.unr = phi i64 [ %3, %.lr.ph77.preheader ], [ %49, %.lr.ph77.prol ]
  %50 = sub i64 %3, %15
  %51 = icmp ugt i64 %50, -4
  br i1 %51, label %._crit_edge78, label %.lr.ph77

.lr.ph77:                                         ; preds = %.lr.ph77.prol.loopexit, %.lr.ph77
  %.175 = phi i64 [ %63, %.lr.ph77 ], [ %.175.unr, %.lr.ph77.prol.loopexit ]
  %52 = load ptr, ptr %40, align 8, !tbaa !5
  %53 = getelementptr inbounds double, ptr %52, i64 %.175
  store double 0.000000e+00, ptr %53, align 8, !tbaa !8
  %54 = load ptr, ptr %40, align 8, !tbaa !5
  %55 = getelementptr double, ptr %54, i64 %.175
  %56 = getelementptr i8, ptr %55, i64 8
  store double 0.000000e+00, ptr %56, align 8, !tbaa !8
  %57 = load ptr, ptr %40, align 8, !tbaa !5
  %58 = getelementptr double, ptr %57, i64 %.175
  %59 = getelementptr i8, ptr %58, i64 16
  store double 0.000000e+00, ptr %59, align 8, !tbaa !8
  %60 = load ptr, ptr %40, align 8, !tbaa !5
  %61 = getelementptr double, ptr %60, i64 %.175
  %62 = getelementptr i8, ptr %61, i64 24
  store double 0.000000e+00, ptr %62, align 8, !tbaa !8
  %63 = add nsw i64 %.175, 4
  %exitcond84.not.3 = icmp eq i64 %63, %15
  br i1 %exitcond84.not.3, label %._crit_edge78, label %.lr.ph77, !llvm.loop !15

._crit_edge78:                                    ; preds = %.lr.ph77.prol.loopexit, %.lr.ph77, %._crit_edge
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %15, ptr noundef %5)
  %64 = sdiv i64 %15, 2
  call void @_ZN11alglib_impl16ftcomplexfftplanEllPNS_17fasttransformplanEPNS_8ae_stateE(i64 noundef %64, i64 noundef 1, ptr noundef nonnull %11, ptr noundef %5)
  call void @_ZN11alglib_impl18fftr1dinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %15, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %5)
  call void @_ZN11alglib_impl18fftr1dinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %15, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %5)
  %65 = load ptr, ptr %16, align 8, !tbaa !5
  %66 = load double, ptr %65, align 8, !tbaa !8
  %67 = load ptr, ptr %40, align 8, !tbaa !5
  %68 = load double, ptr %67, align 8, !tbaa !8
  %69 = fdiv double %66, %68
  store double %69, ptr %65, align 8, !tbaa !8
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  %72 = load double, ptr %71, align 8, !tbaa !8
  %73 = load ptr, ptr %40, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load double, ptr %74, align 8, !tbaa !8
  %76 = fdiv double %72, %75
  store double %76, ptr %71, align 8, !tbaa !8
  %.not.not7179 = icmp sgt i64 %15, 3
  br i1 %.not.not7179, label %.lr.ph82.preheader, label %._crit_edge83

.lr.ph82.preheader:                               ; preds = %._crit_edge78
  %smax = call i64 @llvm.smax.i64(i64 %64, i64 2)
  br label %.lr.ph82

.lr.ph82:                                         ; preds = %.lr.ph82.preheader, %.lr.ph82
  %.280 = phi i64 [ %96, %.lr.ph82 ], [ 1, %.lr.ph82.preheader ]
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  %78 = shl nuw nsw i64 %.280, 1
  %79 = getelementptr inbounds double, ptr %77, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !8
  %81 = or disjoint i64 %78, 1
  %82 = getelementptr inbounds double, ptr %77, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !8
  %84 = load ptr, ptr %40, align 8, !tbaa !5
  %85 = getelementptr inbounds double, ptr %84, i64 %78
  %86 = load double, ptr %85, align 8, !tbaa !8
  %87 = getelementptr inbounds double, ptr %84, i64 %81
  %88 = load double, ptr %87, align 8, !tbaa !8
  %89 = call { double, double } @_ZN11alglib_impl8ae_c_divENS_10ae_complexES0_(double %80, double %83, double %86, double %88)
  %90 = extractvalue { double, double } %89, 0
  %91 = extractvalue { double, double } %89, 1
  %92 = load ptr, ptr %16, align 8, !tbaa !5
  %93 = getelementptr inbounds double, ptr %92, i64 %78
  store double %90, ptr %93, align 8, !tbaa !8
  %94 = load ptr, ptr %16, align 8, !tbaa !5
  %95 = getelementptr inbounds double, ptr %94, i64 %81
  store double %91, ptr %95, align 8, !tbaa !8
  %96 = add nuw nsw i64 %.280, 1
  %exitcond85.not = icmp eq i64 %96, %smax
  br i1 %exitcond85.not, label %._crit_edge83, label %.lr.ph82, !llvm.loop !16

._crit_edge83:                                    ; preds = %.lr.ph82, %._crit_edge78
  call void @_ZN11alglib_impl21fftr1dinvinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %15, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %5)
  %97 = sub nsw i64 %1, %3
  %98 = add nsw i64 %97, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %4, i64 noundef %98, ptr noundef %5)
  %99 = getelementptr inbounds i8, ptr %4, i64 56
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = load ptr, ptr %16, align 8, !tbaa !5
  %102 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %97)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %100, i64 noundef 1, ptr noundef %101, i64 noundef 1, i64 noundef %102)
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 416, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #4

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"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, !11}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}


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