; 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.12 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.14 = 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
define dso_local void @_ZN11alglib_impl9fftr1dinvEPKNS_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
  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
  %13 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %13, 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)
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %14)
  %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.12, 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.13, 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.14, 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.14, 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.14, 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.14, ptr noundef %107)
  br label %108

108:                                              ; preds = %93, %75
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = load i64, ptr %6, align 8, !tbaa !9
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl12fftr1dinvbufEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %109, i64 noundef %110, ptr noundef %111, ptr noundef %112)
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %113)
  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
  ret void
}

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

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_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"}


; 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.12 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.14 = 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
define dso_local void @_ZN11alglib_impl9fftr1dinvEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef %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.12, 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.13, 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.14, ptr noundef %3)
  %18 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %11, ptr noundef %3)
  %.not.not39 = icmp sgt i64 %18, 1
  br i1 %.not.not39, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4, %28
  %.040 = 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 %.040
  %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 %.040, 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.14, ptr noundef %3)
  %30 = add nuw nsw i64 %.040, 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.14, 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.14, ptr noundef %3)
  br label %44

44:                                               ; preds = %38, %._crit_edge
  call void @_ZN11alglib_impl12fftr1dinvbufEPKNS_9ae_vectorElPS0_PNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, ptr noundef %2, ptr noundef %3)
  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
}

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

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_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"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass