; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src (fasttransforms)

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

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

@.str.32 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13convr1dinvbufEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #1 {
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.alglib_impl::ae_frame", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::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 408, 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 408, i1 false)
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 3, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 3, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 3, ptr noundef %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23_fasttransformplan_initEPvPNS_8ae_stateEb(ptr noundef %19, ptr noundef %30, i1 noundef zeroext true)
  %31 = load i64, ptr %10, align 8, !tbaa !9
  %32 = icmp sgt i64 %31, 0
  br i1 %32, label %33, label %40

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

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

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

59:                                               ; preds = %69, %40
  %60 = load i64, ptr %14, align 8, !tbaa !9
  %61 = load i64, ptr %15, align 8, !tbaa !9
  %62 = sub nsw i64 %61, 1
  %63 = icmp sle i64 %60, %62
  br i1 %63, label %64, label %72

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

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

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

86:                                               ; preds = %96, %72
  %87 = load i64, ptr %14, align 8, !tbaa !9
  %88 = load i64, ptr %15, align 8, !tbaa !9
  %89 = sub nsw i64 %88, 1
  %90 = icmp sle i64 %87, %89
  br i1 %90, label %91, label %99

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

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

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

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

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

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

204:                                              ; preds = %133
  %205 = load i64, ptr %15, align 8, !tbaa !9
  %206 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl21fftr1dinvinternalevenEPNS_9ae_vectorElS1_PNS_17fasttransformplanEPNS_8ae_stateE(ptr noundef %16, i64 noundef %205, ptr noundef %18, ptr noundef %19, ptr noundef %206)
  %207 = load i64, ptr %8, align 8, !tbaa !9
  %208 = load i64, ptr %10, align 8, !tbaa !9
  %209 = sub nsw i64 %207, %208
  %210 = add nsw i64 %209, 1
  %211 = load ptr, ptr %11, align 8, !tbaa !5
  %212 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %210, ptr noundef %211, ptr noundef %212)
  %213 = load ptr, ptr %11, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %213, i32 0, i32 4
  %215 = load ptr, ptr %214, align 8, !tbaa !11
  %216 = getelementptr inbounds double, ptr %215, i64 0
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !11
  %219 = getelementptr inbounds double, ptr %218, i64 0
  %220 = load i64, ptr %8, align 8, !tbaa !9
  %221 = load i64, ptr %10, align 8, !tbaa !9
  %222 = sub nsw i64 %220, %221
  %223 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %222)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %216, i64 noundef 1, ptr noundef %219, i64 noundef 1, i64 noundef %223)
  %224 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %224)
  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 408, 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

; 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 void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr 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_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, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }

@.str.32 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13convr1dinvbufEPKNS_9ae_vectorElS2_lPS0_PNS_8ae_stateE(ptr nocapture noundef readonly %0, i64 noundef %1, ptr nocapture noundef readonly %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::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 408, 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(408) %11, i8 0, i64 408, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_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.32, 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.not71 = icmp sgt i64 %15, %1
  br i1 %.not.not71, 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
  %.072.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 %.072.prol
  store double 0.000000e+00, ptr %24, align 8, !tbaa !8
  %25 = add nsw i64 %.072.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
  %.072.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
  %.072 = phi i64 [ %39, %.lr.ph ], [ %.072.unr, %.lr.ph.prol.loopexit ]
  %28 = load ptr, ptr %16, align 8, !tbaa !5
  %29 = getelementptr inbounds double, ptr %28, i64 %.072
  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 %.072
  %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 %.072
  %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 %.072
  %38 = getelementptr i8, ptr %37, i64 24
  store double 0.000000e+00, ptr %38, align 8, !tbaa !8
  %39 = add nsw i64 %.072, 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.not6973 = icmp sgt i64 %15, %3
  br i1 %.not.not6973, label %.lr.ph76.preheader, label %._crit_edge77

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

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

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

.lr.ph76:                                         ; preds = %.lr.ph76.prol.loopexit, %.lr.ph76
  %.174 = phi i64 [ %63, %.lr.ph76 ], [ %.174.unr, %.lr.ph76.prol.loopexit ]
  %52 = load ptr, ptr %40, align 8, !tbaa !5
  %53 = getelementptr inbounds double, ptr %52, i64 %.174
  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 %.174
  %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 %.174
  %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 %.174
  %62 = getelementptr i8, ptr %61, i64 24
  store double 0.000000e+00, ptr %62, align 8, !tbaa !8
  %63 = add nsw i64 %.174, 4
  %exitcond83.not.3 = icmp eq i64 %63, %15
  br i1 %exitcond83.not.3, label %._crit_edge77, label %.lr.ph76, !llvm.loop !15

._crit_edge77:                                    ; preds = %.lr.ph76.prol.loopexit, %.lr.ph76, %._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.not7078 = icmp sgt i64 %15, 3
  br i1 %.not.not7078, label %.lr.ph81.preheader, label %._crit_edge82

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

.lr.ph81:                                         ; preds = %.lr.ph81.preheader, %.lr.ph81
  %.279 = phi i64 [ %96, %.lr.ph81 ], [ 1, %.lr.ph81.preheader ]
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  %78 = shl nuw nsw i64 %.279, 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 %.279, 1
  %exitcond84.not = icmp eq i64 %96, %smax
  br i1 %exitcond84.not, label %._crit_edge82, label %.lr.ph81, !llvm.loop !16

._crit_edge82:                                    ; preds = %.lr.ph81, %._crit_edge77
  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_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %98, ptr noundef %4, 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 408, 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_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 void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr 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_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