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

@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [46 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9fftr1dinvEPNS_9ae_vectorElS1_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 %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %15)
  %16 = 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 %16, i1 noundef zeroext true)
  %17 = 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 %17, i1 noundef zeroext true)
  %18 = load i64, ptr %6, align 8, !tbaa !9
  %19 = icmp sgt i64 %18, 0
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef @.str.9, ptr noundef %20)
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 0
  %23 = load i64, ptr %22, align 8, !tbaa !11
  %24 = load i64, ptr %6, align 8, !tbaa !9
  %25 = sitofp i64 %24 to double
  %26 = fdiv double %25, 2.000000e+00
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %26, ptr noundef %27)
  %29 = add nsw i64 %28, 1
  %30 = icmp sge i64 %23, %29
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef @.str.10, ptr noundef %31)
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %34, i64 0
  %36 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %35, i32 0, i32 0
  %37 = load double, ptr %36, align 8, !tbaa !16
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %37, ptr noundef %38)
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %39, ptr noundef @.str.11, ptr noundef %40)
  store i64 1, ptr %10, align 8, !tbaa !9
  br label %41

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

50:                                               ; preds = %41
  %51 = load ptr, ptr %5, 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 !15
  %54 = load i64, ptr %10, align 8, !tbaa !9
  %55 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %53, i64 %54
  %56 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %55, i32 0, i32 0
  %57 = load double, ptr %56, align 8, !tbaa !16
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %57, ptr noundef %58)
  br i1 %59, label %60, label %70

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

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

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

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

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

109:                                              ; preds = %94, %76
  %110 = load i64, ptr %6, align 8, !tbaa !9
  %111 = icmp eq i64 %110, 1
  br i1 %111, label %112, label %126

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

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

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

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

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

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

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

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

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

285:                                              ; preds = %312, %282
  %286 = load i64, ptr %10, align 8, !tbaa !9
  %287 = load i64, ptr %6, align 8, !tbaa !9
  %288 = sub nsw i64 %287, 1
  %289 = icmp sle i64 %286, %288
  br i1 %289, label %290, label %315

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

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

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

317:                                              ; preds = %315, %112
  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
  %318 = load i32, ptr %13, align 4
  switch i32 %318, label %320 [
    i32 0, label %319
    i32 1, label %319
  ]

319:                                              ; preds = %317, %317
  ret void

320:                                              ; preds = %317
  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 void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(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

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.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [46 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9fftr1dinvEPNS_9ae_vectorElS1_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_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %2)
  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.9, 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.10, 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.11, ptr noundef %3)
  %18 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %.not.not97 = icmp sgt i64 %18, 1
  br i1 %.not.not97, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4, %28
  %.098 = 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 %.098
  %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 %.098, 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.11, ptr noundef %3)
  %30 = add nuw nsw i64 %.098, 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.11, 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.11, 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_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef 1, 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_edge108

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_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %1, 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)
  %.not95.not99 = icmp sgt i64 %56, 1
  br i1 %.not95.not99, label %.lr.ph102, label %._crit_edge103

.lr.ph102:                                        ; preds = %51, %.lr.ph102
  %.1100 = phi i64 [ %74, %.lr.ph102 ], [ 1, %51 ]
  %57 = load ptr, ptr %14, align 8, !tbaa !13
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %57, i64 %.1100
  %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 %.1100
  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 %.1100
  %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, %.1100
  %73 = getelementptr inbounds double, ptr %71, i64 %72
  store double %70, ptr %73, align 8, !tbaa !20
  %74 = add nuw nsw i64 %.1100, 1
  %75 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %.not95.not = icmp slt i64 %74, %75
  br i1 %.not95.not, label %.lr.ph102, label %._crit_edge103, !llvm.loop !21

._crit_edge103:                                   ; preds = %.lr.ph102, %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_edge103
  %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_edge103
  %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_impl6fftr1dEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %1, ptr noundef nonnull %7, ptr noundef %3)
  br i1 %8, label %.lr.ph107, label %._crit_edge108

.lr.ph107:                                        ; 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.ph107
  %.2105 = phi i64 [ 0, %.lr.ph107 ], [ %129, %109 ]
  %niter = phi i64 [ 0, %.lr.ph107 ], [ %niter.next.1, %109 ]
  %110 = load ptr, ptr %107, align 8, !tbaa !13
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %110, i64 %.2105
  %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 %.2105
  store double %116, ptr %118, align 8, !tbaa !20
  %119 = or disjoint i64 %.2105, 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 %.2105, 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_edge108.loopexit.unr-lcssa, label %109, !llvm.loop !22

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

._crit_edge108.loopexit.epilog-lcssa:             ; preds = %._crit_edge108.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_edge108

._crit_edge108:                                   ; preds = %._crit_edge108.loopexit.epilog-lcssa, %._crit_edge108.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 void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(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

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