; 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::ae_complex" = type { double, double }

@.str.15 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [49 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_impl6fftr1dEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl12fftr1dinvbufEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.alglib_impl::ae_frame", align 8
  %10 = alloca i64, align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #4
  %14 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %14, ptr noundef %9)
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 64, i1 false)
  %15 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %11, i64 noundef 0, i64 noundef 3, ptr noundef %15, i1 noundef zeroext true)
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %12, i64 noundef 0, i64 noundef 4, ptr noundef %16, i1 noundef zeroext true)
  %17 = load i64, ptr %6, align 8, !tbaa !9
  %18 = icmp sgt i64 %17, 0
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef @.str.15, ptr noundef %19)
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 0
  %22 = load i64, ptr %21, align 8, !tbaa !11
  %23 = load i64, ptr %6, align 8, !tbaa !9
  %24 = sitofp i64 %23 to double
  %25 = fdiv double %24, 2.000000e+00
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %25, ptr noundef %26)
  %28 = add nsw i64 %27, 1
  %29 = icmp sge i64 %22, %28
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef @.str.16, ptr noundef %30)
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %33 = load ptr, ptr %32, align 8, !tbaa !15
  %34 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %33, i64 0
  %35 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %34, i32 0, i32 0
  %36 = load double, ptr %35, align 8, !tbaa !16
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %36, ptr noundef %37)
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef @.str.17, ptr noundef %39)
  store i64 1, ptr %10, align 8, !tbaa !9
  br label %40

40:                                               ; preds = %72, %4
  %41 = load i64, ptr %10, align 8, !tbaa !9
  %42 = load i64, ptr %6, align 8, !tbaa !9
  %43 = sitofp i64 %42 to double
  %44 = fdiv double %43, 2.000000e+00
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %44, ptr noundef %45)
  %47 = sub nsw i64 %46, 1
  %48 = icmp sle i64 %41, %47
  br i1 %48, label %49, label %75

49:                                               ; preds = %40
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %50, i32 0, i32 4
  %52 = load ptr, ptr %51, align 8, !tbaa !15
  %53 = load i64, ptr %10, align 8, !tbaa !9
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %52, i64 %53
  %55 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %54, i32 0, i32 0
  %56 = load double, ptr %55, align 8, !tbaa !16
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %56, ptr noundef %57)
  br i1 %58, label %59, label %69

59:                                               ; preds = %49
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %60, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !15
  %63 = load i64, ptr %10, align 8, !tbaa !9
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %62, i64 %63
  %65 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %64, i32 0, i32 1
  %66 = load double, ptr %65, align 8, !tbaa !19
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %66, ptr noundef %67)
  br label %69

69:                                               ; preds = %59, %49
  %70 = phi i1 [ false, %49 ], [ %68, %59 ]
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %70, ptr noundef @.str.17, ptr noundef %71)
  br label %72

72:                                               ; preds = %69
  %73 = load i64, ptr %10, align 8, !tbaa !9
  %74 = add nsw i64 %73, 1
  store i64 %74, ptr %10, align 8, !tbaa !9
  br label %40, !llvm.loop !20

75:                                               ; preds = %40
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %76, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !15
  %79 = load i64, ptr %6, align 8, !tbaa !9
  %80 = sitofp i64 %79 to double
  %81 = fdiv double %80, 2.000000e+00
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %81, ptr noundef %82)
  %84 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %78, i64 %83
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %84, i32 0, i32 0
  %86 = load double, ptr %85, align 8, !tbaa !16
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %86, ptr noundef %87)
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %88, ptr noundef @.str.17, ptr noundef %89)
  %90 = load i64, ptr %6, align 8, !tbaa !9
  %91 = srem i64 %90, 2
  %92 = icmp ne i64 %91, 0
  br i1 %92, label %93, label %108

93:                                               ; preds = %75
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !15
  %97 = load i64, ptr %6, align 8, !tbaa !9
  %98 = sitofp i64 %97 to double
  %99 = fdiv double %98, 2.000000e+00
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %99, ptr noundef %100)
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %96, i64 %101
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %102, i32 0, i32 1
  %104 = load double, ptr %103, align 8, !tbaa !19
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %104, ptr noundef %105)
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %106, ptr noundef @.str.17, ptr noundef %107)
  br label %108

108:                                              ; preds = %93, %75
  %109 = load i64, ptr %6, align 8, !tbaa !9
  %110 = icmp eq i64 %109, 1
  br i1 %110, label %111, label %125

111:                                              ; preds = %108
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 1, ptr noundef %112, ptr noundef %113)
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !15
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %116, i64 0
  %118 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %117, i32 0, i32 0
  %119 = load double, ptr %118, align 8, !tbaa !16
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %120, i32 0, i32 4
  %122 = load ptr, ptr %121, align 8, !tbaa !15
  %123 = getelementptr inbounds double, ptr %122, i64 0
  store double %119, ptr %123, align 8, !tbaa !22
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %124)
  store i32 1, ptr %13, align 4
  br label %316

125:                                              ; preds = %108
  %126 = load i64, ptr %6, align 8, !tbaa !9
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef %126, ptr noundef %127)
  %128 = load i64, ptr %6, align 8, !tbaa !9
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %128, ptr noundef %129, ptr noundef %130)
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %131, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !15
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %133, i64 0
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %134, i32 0, i32 0
  %136 = load double, ptr %135, align 8, !tbaa !16
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !15
  %139 = getelementptr inbounds double, ptr %138, i64 0
  store double %136, ptr %139, align 8, !tbaa !22
  store i64 1, ptr %10, align 8, !tbaa !9
  br label %140

140:                                              ; preds = %190, %125
  %141 = load i64, ptr %10, align 8, !tbaa !9
  %142 = load i64, ptr %6, align 8, !tbaa !9
  %143 = sitofp i64 %142 to double
  %144 = fdiv double %143, 2.000000e+00
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %144, ptr noundef %145)
  %147 = sub nsw i64 %146, 1
  %148 = icmp sle i64 %141, %147
  br i1 %148, label %149, label %193

149:                                              ; preds = %140
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %150, i32 0, i32 4
  %152 = load ptr, ptr %151, align 8, !tbaa !15
  %153 = load i64, ptr %10, align 8, !tbaa !9
  %154 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %152, i64 %153
  %155 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %154, i32 0, i32 0
  %156 = load double, ptr %155, align 8, !tbaa !16
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %157, i32 0, i32 4
  %159 = load ptr, ptr %158, align 8, !tbaa !15
  %160 = load i64, ptr %10, align 8, !tbaa !9
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %159, i64 %160
  %162 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %161, i32 0, i32 1
  %163 = load double, ptr %162, align 8, !tbaa !19
  %164 = fsub double %156, %163
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %166 = load ptr, ptr %165, align 8, !tbaa !15
  %167 = load i64, ptr %10, align 8, !tbaa !9
  %168 = getelementptr inbounds double, ptr %166, i64 %167
  store double %164, ptr %168, align 8, !tbaa !22
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %169, i32 0, i32 4
  %171 = load ptr, ptr %170, align 8, !tbaa !15
  %172 = load i64, ptr %10, align 8, !tbaa !9
  %173 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %171, i64 %172
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %173, i32 0, i32 0
  %175 = load double, ptr %174, align 8, !tbaa !16
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %176, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !15
  %179 = load i64, ptr %10, align 8, !tbaa !9
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %178, i64 %179
  %181 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %180, i32 0, i32 1
  %182 = load double, ptr %181, align 8, !tbaa !19
  %183 = fadd double %175, %182
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %185 = load ptr, ptr %184, align 8, !tbaa !15
  %186 = load i64, ptr %6, align 8, !tbaa !9
  %187 = load i64, ptr %10, align 8, !tbaa !9
  %188 = sub nsw i64 %186, %187
  %189 = getelementptr inbounds double, ptr %185, i64 %188
  store double %183, ptr %189, align 8, !tbaa !22
  br label %190

190:                                              ; preds = %149
  %191 = load i64, ptr %10, align 8, !tbaa !9
  %192 = add nsw i64 %191, 1
  store i64 %192, ptr %10, align 8, !tbaa !9
  br label %140, !llvm.loop !23

193:                                              ; preds = %140
  %194 = load i64, ptr %6, align 8, !tbaa !9
  %195 = srem i64 %194, 2
  %196 = icmp eq i64 %195, 0
  br i1 %196, label %197, label %217

197:                                              ; preds = %193
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %198, i32 0, i32 4
  %200 = load ptr, ptr %199, align 8, !tbaa !15
  %201 = load i64, ptr %6, align 8, !tbaa !9
  %202 = sitofp i64 %201 to double
  %203 = fdiv double %202, 2.000000e+00
  %204 = load ptr, ptr %8, align 8, !tbaa !5
  %205 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %203, ptr noundef %204)
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %200, i64 %205
  %207 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %206, i32 0, i32 0
  %208 = load double, ptr %207, align 8, !tbaa !16
  %209 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %210 = load ptr, ptr %209, align 8, !tbaa !15
  %211 = load i64, ptr %6, align 8, !tbaa !9
  %212 = sitofp i64 %211 to double
  %213 = fdiv double %212, 2.000000e+00
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %213, ptr noundef %214)
  %216 = getelementptr inbounds double, ptr %210, i64 %215
  store double %208, ptr %216, align 8, !tbaa !22
  br label %281

217:                                              ; preds = %193
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %218, i32 0, i32 4
  %220 = load ptr, ptr %219, align 8, !tbaa !15
  %221 = load i64, ptr %6, align 8, !tbaa !9
  %222 = sitofp i64 %221 to double
  %223 = fdiv double %222, 2.000000e+00
  %224 = load ptr, ptr %8, align 8, !tbaa !5
  %225 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %223, ptr noundef %224)
  %226 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %220, i64 %225
  %227 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %226, i32 0, i32 0
  %228 = load double, ptr %227, align 8, !tbaa !16
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %229, i32 0, i32 4
  %231 = load ptr, ptr %230, align 8, !tbaa !15
  %232 = load i64, ptr %6, align 8, !tbaa !9
  %233 = sitofp i64 %232 to double
  %234 = fdiv double %233, 2.000000e+00
  %235 = load ptr, ptr %8, align 8, !tbaa !5
  %236 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %234, ptr noundef %235)
  %237 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %231, i64 %236
  %238 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %237, i32 0, i32 1
  %239 = load double, ptr %238, align 8, !tbaa !19
  %240 = fsub double %228, %239
  %241 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %242 = load ptr, ptr %241, align 8, !tbaa !15
  %243 = load i64, ptr %6, align 8, !tbaa !9
  %244 = sitofp i64 %243 to double
  %245 = fdiv double %244, 2.000000e+00
  %246 = load ptr, ptr %8, align 8, !tbaa !5
  %247 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %245, ptr noundef %246)
  %248 = getelementptr inbounds double, ptr %242, i64 %247
  store double %240, ptr %248, align 8, !tbaa !22
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  %250 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %249, i32 0, i32 4
  %251 = load ptr, ptr %250, align 8, !tbaa !15
  %252 = load i64, ptr %6, align 8, !tbaa !9
  %253 = sitofp i64 %252 to double
  %254 = fdiv double %253, 2.000000e+00
  %255 = load ptr, ptr %8, align 8, !tbaa !5
  %256 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %254, ptr noundef %255)
  %257 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %251, i64 %256
  %258 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %257, i32 0, i32 0
  %259 = load double, ptr %258, align 8, !tbaa !16
  %260 = load ptr, ptr %5, 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 !15
  %263 = load i64, ptr %6, align 8, !tbaa !9
  %264 = sitofp i64 %263 to double
  %265 = fdiv double %264, 2.000000e+00
  %266 = load ptr, ptr %8, align 8, !tbaa !5
  %267 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %265, ptr noundef %266)
  %268 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %262, i64 %267
  %269 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %268, i32 0, i32 1
  %270 = load double, ptr %269, align 8, !tbaa !19
  %271 = fadd double %259, %270
  %272 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %273 = load ptr, ptr %272, align 8, !tbaa !15
  %274 = load i64, ptr %6, align 8, !tbaa !9
  %275 = sitofp i64 %274 to double
  %276 = fdiv double %275, 2.000000e+00
  %277 = load ptr, ptr %8, align 8, !tbaa !5
  %278 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %276, ptr noundef %277)
  %279 = add nsw i64 %278, 1
  %280 = getelementptr inbounds double, ptr %273, i64 %279
  store double %271, ptr %280, align 8, !tbaa !22
  br label %281

281:                                              ; preds = %217, %197
  %282 = load i64, ptr %6, align 8, !tbaa !9
  %283 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl6fftr1dEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %11, i64 noundef %282, ptr noundef %12, ptr noundef %283)
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %284

284:                                              ; preds = %311, %281
  %285 = load i64, ptr %10, align 8, !tbaa !9
  %286 = load i64, ptr %6, align 8, !tbaa !9
  %287 = sub nsw i64 %286, 1
  %288 = icmp sle i64 %285, %287
  br i1 %288, label %289, label %314

289:                                              ; preds = %284
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %291 = load ptr, ptr %290, align 8, !tbaa !15
  %292 = load i64, ptr %10, align 8, !tbaa !9
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %291, i64 %292
  %294 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %293, i32 0, i32 0
  %295 = load double, ptr %294, align 8, !tbaa !16
  %296 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %297 = load ptr, ptr %296, align 8, !tbaa !15
  %298 = load i64, ptr %10, align 8, !tbaa !9
  %299 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %297, i64 %298
  %300 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %299, i32 0, i32 1
  %301 = load double, ptr %300, align 8, !tbaa !19
  %302 = fsub double %295, %301
  %303 = load i64, ptr %6, align 8, !tbaa !9
  %304 = sitofp i64 %303 to double
  %305 = fdiv double %302, %304
  %306 = load ptr, ptr %7, align 8, !tbaa !5
  %307 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %306, i32 0, i32 4
  %308 = load ptr, ptr %307, align 8, !tbaa !15
  %309 = load i64, ptr %10, align 8, !tbaa !9
  %310 = getelementptr inbounds double, ptr %308, i64 %309
  store double %305, ptr %310, align 8, !tbaa !22
  br label %311

311:                                              ; preds = %289
  %312 = load i64, ptr %10, align 8, !tbaa !9
  %313 = add nsw i64 %312, 1
  store i64 %313, ptr %10, align 8, !tbaa !9
  br label %284, !llvm.loop !24

314:                                              ; preds = %284
  %315 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %315)
  store i32 0, ptr %13, align 4
  br label %316

316:                                              ; preds = %314, %111
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  %317 = load i32, ptr %13, align 4
  switch i32 %317, label %319 [
    i32 0, label %318
    i32 1, label %318
  ]

318:                                              ; preds = %316, %316
  ret void

319:                                              ; preds = %316
  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_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 noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) #2

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


; 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::ae_complex" = type { double, double }

@.str.15 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [49 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_impl6fftr1dEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl12fftr1dinvbufEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr nocapture noundef readonly %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %3, ptr noundef nonnull %5)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 3, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 4, ptr noundef %3, i1 noundef zeroext true)
  %8 = icmp sgt i64 %1, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.15, ptr noundef %3)
  %9 = load i64, ptr %0, align 8, !tbaa !5
  %10 = sitofp i64 %1 to double
  %11 = fmul double %10, 5.000000e-01
  %12 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %13 = icmp sgt i64 %9, %12
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.16, ptr noundef %3)
  %14 = getelementptr inbounds i8, ptr %0, i64 56
  %15 = load ptr, ptr %14, align 8, !tbaa !13
  %16 = load double, ptr %15, align 8, !tbaa !14
  %17 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %16, ptr noundef %3)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.17, ptr noundef %3)
  %18 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %.not.not96 = icmp sgt i64 %18, 1
  br i1 %.not.not96, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4, %28
  %.097 = phi i64 [ %30, %28 ], [ 1, %4 ]
  %19 = load ptr, ptr %14, align 8, !tbaa !13
  %20 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %19, i64 %.097
  %21 = load double, ptr %20, align 8, !tbaa !14
  %22 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %21, ptr noundef %3)
  br i1 %22, label %23, label %28

23:                                               ; preds = %.lr.ph
  %24 = load ptr, ptr %14, align 8, !tbaa !13
  %25 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %24, i64 %.097, i32 1
  %26 = load double, ptr %25, align 8, !tbaa !17
  %27 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %26, ptr noundef %3)
  br label %28

28:                                               ; preds = %23, %.lr.ph
  %29 = phi i1 [ false, %.lr.ph ], [ %27, %23 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef nonnull @.str.17, ptr noundef %3)
  %30 = add nuw nsw i64 %.097, 1
  %31 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %.not.not = icmp slt i64 %30, %31
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %28, %4
  %32 = load ptr, ptr %14, align 8, !tbaa !13
  %33 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %34 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %32, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !14
  %36 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %35, ptr noundef %3)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef nonnull @.str.17, ptr noundef %3)
  %37 = and i64 %1, 1
  %.not = icmp eq i64 %37, 0
  br i1 %.not, label %44, label %38

38:                                               ; preds = %._crit_edge
  %39 = load ptr, ptr %14, align 8, !tbaa !13
  %40 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %41 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %39, i64 %40, i32 1
  %42 = load double, ptr %41, align 8, !tbaa !17
  %43 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %42, ptr noundef %3)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef nonnull @.str.17, ptr noundef %3)
  br label %44

44:                                               ; preds = %38, %._crit_edge
  %45 = icmp eq i64 %1, 1
  br i1 %45, label %46, label %51

46:                                               ; preds = %44
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 1, ptr noundef %2, ptr noundef %3)
  %47 = load ptr, ptr %14, align 8, !tbaa !13
  %48 = load double, ptr %47, align 8, !tbaa !14
  %49 = getelementptr inbounds i8, ptr %2, i64 56
  %50 = load ptr, ptr %49, align 8, !tbaa !13
  store double %48, ptr %50, align 8, !tbaa !20
  br label %._crit_edge107

51:                                               ; preds = %44
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %1, ptr noundef %3)
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %1, ptr noundef %2, ptr noundef %3)
  %52 = load ptr, ptr %14, align 8, !tbaa !13
  %53 = load double, ptr %52, align 8, !tbaa !14
  %54 = getelementptr inbounds i8, ptr %6, i64 56
  %55 = load ptr, ptr %54, align 8, !tbaa !13
  store double %53, ptr %55, align 8, !tbaa !20
  %56 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %.not94.not98 = icmp sgt i64 %56, 1
  br i1 %.not94.not98, label %.lr.ph101, label %._crit_edge102

.lr.ph101:                                        ; preds = %51, %.lr.ph101
  %.199 = phi i64 [ %74, %.lr.ph101 ], [ 1, %51 ]
  %57 = load ptr, ptr %14, align 8, !tbaa !13
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %57, i64 %.199
  %59 = load double, ptr %58, align 8, !tbaa !14
  %60 = getelementptr inbounds i8, ptr %58, i64 8
  %61 = load double, ptr %60, align 8, !tbaa !17
  %62 = fsub double %59, %61
  %63 = load ptr, ptr %54, align 8, !tbaa !13
  %64 = getelementptr inbounds double, ptr %63, i64 %.199
  store double %62, ptr %64, align 8, !tbaa !20
  %65 = load ptr, ptr %14, align 8, !tbaa !13
  %66 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %65, i64 %.199
  %67 = load double, ptr %66, align 8, !tbaa !14
  %68 = getelementptr inbounds i8, ptr %66, i64 8
  %69 = load double, ptr %68, align 8, !tbaa !17
  %70 = fadd double %67, %69
  %71 = load ptr, ptr %54, align 8, !tbaa !13
  %72 = sub nsw i64 %1, %.199
  %73 = getelementptr inbounds double, ptr %71, i64 %72
  store double %70, ptr %73, align 8, !tbaa !20
  %74 = add nuw nsw i64 %.199, 1
  %75 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %.not94.not = icmp slt i64 %74, %75
  br i1 %.not94.not, label %.lr.ph101, label %._crit_edge102, !llvm.loop !21

._crit_edge102:                                   ; preds = %.lr.ph101, %51
  %76 = load ptr, ptr %14, align 8, !tbaa !13
  %77 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %76, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !14
  br i1 %.not, label %80, label %84

80:                                               ; preds = %._crit_edge102
  %81 = load ptr, ptr %54, align 8, !tbaa !13
  %82 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %83 = getelementptr inbounds double, ptr %81, i64 %82
  store double %79, ptr %83, align 8, !tbaa !20
  br label %106

84:                                               ; preds = %._crit_edge102
  %85 = load ptr, ptr %14, align 8, !tbaa !13
  %86 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %87 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %85, i64 %86, i32 1
  %88 = load double, ptr %87, align 8, !tbaa !17
  %89 = fsub double %79, %88
  %90 = load ptr, ptr %54, align 8, !tbaa !13
  %91 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  store double %89, ptr %92, align 8, !tbaa !20
  %93 = load ptr, ptr %14, align 8, !tbaa !13
  %94 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %93, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !14
  %97 = load ptr, ptr %14, align 8, !tbaa !13
  %98 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %97, i64 %98, i32 1
  %100 = load double, ptr %99, align 8, !tbaa !17
  %101 = fadd double %96, %100
  %102 = load ptr, ptr %54, align 8, !tbaa !13
  %103 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %104 = getelementptr double, ptr %102, i64 %103
  %105 = getelementptr i8, ptr %104, i64 8
  store double %101, ptr %105, align 8, !tbaa !20
  br label %106

106:                                              ; preds = %84, %80
  call void @_ZN11alglib_impl6fftr1dEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %1, ptr noundef nonnull %7, ptr noundef %3)
  br i1 %8, label %.lr.ph106, label %._crit_edge107

.lr.ph106:                                        ; preds = %106
  %107 = getelementptr inbounds i8, ptr %7, i64 56
  %108 = getelementptr inbounds i8, ptr %2, i64 56
  %xtraiter = and i64 %1, 1
  %unroll_iter = and i64 %1, 9223372036854775806
  br label %109

109:                                              ; preds = %109, %.lr.ph106
  %.2104 = phi i64 [ 0, %.lr.ph106 ], [ %129, %109 ]
  %niter = phi i64 [ 0, %.lr.ph106 ], [ %niter.next.1, %109 ]
  %110 = load ptr, ptr %107, align 8, !tbaa !13
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %110, i64 %.2104
  %112 = load double, ptr %111, align 8, !tbaa !14
  %113 = getelementptr inbounds i8, ptr %111, i64 8
  %114 = load double, ptr %113, align 8, !tbaa !17
  %115 = fsub double %112, %114
  %116 = fdiv double %115, %10
  %117 = load ptr, ptr %108, align 8, !tbaa !13
  %118 = getelementptr inbounds double, ptr %117, i64 %.2104
  store double %116, ptr %118, align 8, !tbaa !20
  %119 = or disjoint i64 %.2104, 1
  %120 = load ptr, ptr %107, align 8, !tbaa !13
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %120, i64 %119
  %122 = load double, ptr %121, align 8, !tbaa !14
  %123 = getelementptr inbounds i8, ptr %121, i64 8
  %124 = load double, ptr %123, align 8, !tbaa !17
  %125 = fsub double %122, %124
  %126 = fdiv double %125, %10
  %127 = load ptr, ptr %108, align 8, !tbaa !13
  %128 = getelementptr inbounds double, ptr %127, i64 %119
  store double %126, ptr %128, align 8, !tbaa !20
  %129 = add nuw nsw i64 %.2104, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge107.loopexit.unr-lcssa, label %109, !llvm.loop !22

._crit_edge107.loopexit.unr-lcssa:                ; preds = %109
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge107, label %._crit_edge107.loopexit.epilog-lcssa

._crit_edge107.loopexit.epilog-lcssa:             ; preds = %._crit_edge107.loopexit.unr-lcssa
  %130 = load ptr, ptr %107, align 8, !tbaa !13
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %130, i64 %129
  %132 = load double, ptr %131, align 8, !tbaa !14
  %133 = getelementptr inbounds i8, ptr %131, i64 8
  %134 = load double, ptr %133, align 8, !tbaa !17
  %135 = fsub double %132, %134
  %136 = fdiv double %135, %10
  %137 = load ptr, ptr %108, align 8, !tbaa !13
  %138 = getelementptr inbounds double, ptr %137, i64 %129
  store double %136, ptr %138, align 8, !tbaa !20
  br label %._crit_edge107

._crit_edge107:                                   ; preds = %._crit_edge107.loopexit.epilog-lcssa, %._crit_edge107.loopexit.unr-lcssa, %106, %46
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %3)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #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_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 noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr 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, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"_ZTSN11alglib_impl10ae_complexE", !16, i64 0, !16, i64 8}
!16 = !{!"double", !8, i64 0}
!17 = !{!15, !16, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!16, !16, i64 0}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}


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