; LLVM IR from glotzerlab/hoomd-blue :: hoomd/extern (kiss_fftnd)

; 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.kiss_fftnd_state = type { i32, i32, ptr, ptr, ptr }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [212 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local ptr @kiss_fftnd_alloc(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 1, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 32, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %42, %5
  %21 = load i32, ptr %13, align 4, !tbaa !9
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %24, label %45

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 0, ptr %17, align 8, !tbaa !11
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = load i32, ptr %13, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds i32, ptr %25, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = call ptr @kiss_fft_alloc(i32 noundef %29, i32 noundef %30, ptr noundef null, ptr noundef %17)
  %32 = load i64, ptr %17, align 8, !tbaa !11
  %33 = load i64, ptr %15, align 8, !tbaa !11
  %34 = add i64 %33, %32
  store i64 %34, ptr %15, align 8, !tbaa !11
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load i32, ptr %13, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i32, ptr %35, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !9
  %40 = load i32, ptr %14, align 4, !tbaa !9
  %41 = mul nsw i32 %40, %39
  store i32 %41, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %42

42:                                               ; preds = %24
  %43 = load i32, ptr %13, align 4, !tbaa !9
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %13, align 4, !tbaa !9
  br label %20, !llvm.loop !13

45:                                               ; preds = %20
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = mul i64 4, %47
  %49 = load i64, ptr %15, align 8, !tbaa !11
  %50 = add i64 %49, %48
  store i64 %50, ptr %15, align 8, !tbaa !11
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = mul i64 8, %52
  %54 = load i64, ptr %15, align 8, !tbaa !11
  %55 = add i64 %54, %53
  store i64 %55, ptr %15, align 8, !tbaa !11
  %56 = load i32, ptr %14, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = mul i64 8, %57
  %59 = load i64, ptr %15, align 8, !tbaa !11
  %60 = add i64 %59, %58
  store i64 %60, ptr %15, align 8, !tbaa !11
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %66

63:                                               ; preds = %45
  %64 = load i64, ptr %15, align 8, !tbaa !11
  %65 = call noalias ptr @malloc(i64 noundef %64) #6
  store ptr %65, ptr %12, align 8, !tbaa !5
  br label %76

66:                                               ; preds = %45
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !11
  %69 = load i64, ptr %15, align 8, !tbaa !11
  %70 = icmp uge i64 %68, %69
  br i1 %70, label %71, label %73

71:                                               ; preds = %66
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %72, ptr %12, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %71, %66
  %74 = load i64, ptr %15, align 8, !tbaa !11
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 %74, ptr %75, align 8, !tbaa !11
  br label %76

76:                                               ; preds = %73, %63
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = icmp ne ptr %77, null
  br i1 %78, label %80, label %79

79:                                               ; preds = %76
  store ptr null, ptr %6, align 8
  store i32 1, ptr %18, align 4
  br label %175

80:                                               ; preds = %76
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %82, i32 0, i32 0
  store i32 %81, ptr %83, align 8, !tbaa !15
  %84 = load i32, ptr %8, align 4, !tbaa !9
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %85, i32 0, i32 1
  store i32 %84, ptr %86, align 4, !tbaa !17
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %87, i64 1
  store ptr %88, ptr %16, align 8, !tbaa !5
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %90, i32 0, i32 3
  store ptr %89, ptr %91, align 8, !tbaa !18
  %92 = load i32, ptr %8, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = mul i64 8, %93
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 %94
  store ptr %96, ptr %16, align 8, !tbaa !5
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %98, i32 0, i32 2
  store ptr %97, ptr %99, align 8, !tbaa !19
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = mul i64 4, %101
  %103 = load ptr, ptr %16, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %103, i64 %102
  store ptr %104, ptr %16, align 8, !tbaa !5
  %105 = load ptr, ptr %16, align 8, !tbaa !5
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %106, i32 0, i32 4
  store ptr %105, ptr %107, align 8, !tbaa !20
  %108 = load i32, ptr %14, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = mul i64 8, %109
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i64 %110
  store ptr %112, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %157, %80
  %114 = load i32, ptr %13, align 4, !tbaa !9
  %115 = load i32, ptr %8, align 4, !tbaa !9
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %117, label %160

117:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i32, ptr %118, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !9
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %123, i32 0, i32 2
  %125 = load ptr, ptr %124, align 8, !tbaa !19
  %126 = load i32, ptr %13, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds i32, ptr %125, i64 %127
  store i32 %122, ptr %128, align 4, !tbaa !9
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %129, i32 0, i32 2
  %131 = load ptr, ptr %130, align 8, !tbaa !19
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds i32, ptr %131, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !9
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = call ptr @kiss_fft_alloc(i32 noundef %135, i32 noundef %136, ptr noundef null, ptr noundef %19)
  %138 = load ptr, ptr %12, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %138, i32 0, i32 2
  %140 = load ptr, ptr %139, align 8, !tbaa !19
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds i32, ptr %140, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = load i32, ptr %9, align 4, !tbaa !9
  %146 = load ptr, ptr %16, align 8, !tbaa !5
  %147 = call ptr @kiss_fft_alloc(i32 noundef %144, i32 noundef %145, ptr noundef %146, ptr noundef %19)
  %148 = load ptr, ptr %12, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.kiss_fftnd_state, ptr %148, i32 0, i32 3
  %150 = load ptr, ptr %149, align 8, !tbaa !18
  %151 = load i32, ptr %13, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds ptr, ptr %150, i64 %152
  store ptr %147, ptr %153, align 8, !tbaa !5
  %154 = load i64, ptr %19, align 8, !tbaa !11
  %155 = load ptr, ptr %16, align 8, !tbaa !5
  %156 = getelementptr inbounds i8, ptr %155, i64 %154
  store ptr %156, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %157

157:                                              ; preds = %117
  %158 = load i32, ptr %13, align 4, !tbaa !9
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %13, align 4, !tbaa !9
  br label %113, !llvm.loop !21

160:                                              ; preds = %113
  %161 = load ptr, ptr %16, align 8, !tbaa !5
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  %163 = ptrtoint ptr %161 to i64
  %164 = ptrtoint ptr %162 to i64
  %165 = sub i64 %163, %164
  %166 = load i64, ptr %15, align 8, !tbaa !11
  %167 = trunc i64 %166 to i32
  %168 = sext i32 %167 to i64
  %169 = icmp ne i64 %165, %168
  br i1 %169, label %170, label %173

170:                                              ; preds = %160
  %171 = load ptr, ptr @stderr, align 8, !tbaa !5
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %171, ptr noundef @.str) #5
  br label %173

173:                                              ; preds = %170, %160
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %174, ptr %6, align 8
  store i32 1, ptr %18, align 4
  br label %175

175:                                              ; preds = %173, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %176 = load ptr, ptr %6, align 8
  ret ptr %176
}

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

declare ptr @kiss_fft_alloc(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind allocsize(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 #4 = { nounwind "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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTS16kiss_fftnd_state", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!16, !10, i64 4}
!18 = !{!16, !6, i64 16}
!19 = !{!16, !6, i64 8}
!20 = !{!16, !6, i64 24}
!21 = distinct !{!21, !14}


; 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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [212 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @kiss_fftnd_alloc(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = icmp sgt i32 %1, 0
  br i1 %8, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %5
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.06276 = phi i64 [ 32, %.lr.ph.preheader ], [ %13, %.lr.ph ]
  %.06375 = phi i32 [ 1, %.lr.ph.preheader ], [ %15, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  store i64 0, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv
  %10 = load i32, ptr %9, align 4, !tbaa !9
  %11 = call ptr @kiss_fft_alloc(i32 noundef %10, i32 noundef %2, ptr noundef null, ptr noundef nonnull %6)
  %12 = load i64, ptr %6, align 8, !tbaa !5
  %13 = add i64 %12, %.06276
  %14 = load i32, ptr %9, align 4, !tbaa !9
  %15 = mul nsw i32 %14, %.06375
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %5
  %.063.lcssa = phi i32 [ 1, %5 ], [ %15, %.lr.ph ]
  %.062.lcssa = phi i64 [ 32, %5 ], [ %13, %.lr.ph ]
  %16 = sext i32 %1 to i64
  %17 = shl nsw i64 %16, 2
  %18 = shl nsw i64 %16, 3
  %19 = sext i32 %.063.lcssa to i64
  %20 = shl nsw i64 %19, 3
  %21 = mul nsw i64 %16, 12
  %22 = add i64 %21, %.062.lcssa
  %23 = add i64 %22, %20
  %24 = icmp eq ptr %4, null
  br i1 %24, label %25, label %27

25:                                               ; preds = %._crit_edge
  %26 = call noalias ptr @malloc(i64 noundef %23) #6
  br label %29

27:                                               ; preds = %._crit_edge
  %28 = load i64, ptr %4, align 8, !tbaa !5
  %.not = icmp ult i64 %28, %23
  store i64 %23, ptr %4, align 8, !tbaa !5
  br i1 %.not, label %.thread, label %29

29:                                               ; preds = %27, %25
  %.166 = phi ptr [ %26, %25 ], [ %3, %27 ]
  %.not70 = icmp eq ptr %.166, null
  br i1 %.not70, label %.thread, label %30

30:                                               ; preds = %29
  store i32 %.063.lcssa, ptr %.166, align 8, !tbaa !13
  %31 = getelementptr inbounds i8, ptr %.166, i64 4
  store i32 %1, ptr %31, align 4, !tbaa !16
  %32 = getelementptr inbounds i8, ptr %.166, i64 32
  %33 = getelementptr inbounds i8, ptr %.166, i64 16
  store ptr %32, ptr %33, align 8, !tbaa !17
  %34 = getelementptr inbounds i8, ptr %32, i64 %18
  %35 = getelementptr inbounds i8, ptr %.166, i64 8
  store ptr %34, ptr %35, align 8, !tbaa !18
  %36 = getelementptr inbounds i8, ptr %34, i64 %17
  %37 = getelementptr inbounds i8, ptr %.166, i64 24
  store ptr %36, ptr %37, align 8, !tbaa !19
  %38 = getelementptr inbounds i8, ptr %36, i64 %20
  br i1 %8, label %.lr.ph81.preheader, label %._crit_edge82

.lr.ph81.preheader:                               ; preds = %30
  %wide.trip.count90 = zext nneg i32 %1 to i64
  br label %.lr.ph81

.lr.ph81:                                         ; preds = %.lr.ph81.preheader, %.lr.ph81
  %indvars.iv87 = phi i64 [ 0, %.lr.ph81.preheader ], [ %indvars.iv.next88, %.lr.ph81 ]
  %.079 = phi ptr [ %38, %.lr.ph81.preheader ], [ %51, %.lr.ph81 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %39 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv87
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = load ptr, ptr %35, align 8, !tbaa !18
  %42 = getelementptr inbounds i32, ptr %41, i64 %indvars.iv87
  store i32 %40, ptr %42, align 4, !tbaa !9
  %43 = call ptr @kiss_fft_alloc(i32 noundef %40, i32 noundef %2, ptr noundef null, ptr noundef nonnull %7)
  %44 = load ptr, ptr %35, align 8, !tbaa !18
  %45 = getelementptr inbounds i32, ptr %44, i64 %indvars.iv87
  %46 = load i32, ptr %45, align 4, !tbaa !9
  %47 = call ptr @kiss_fft_alloc(i32 noundef %46, i32 noundef %2, ptr noundef %.079, ptr noundef nonnull %7)
  %48 = load ptr, ptr %33, align 8, !tbaa !17
  %49 = getelementptr inbounds ptr, ptr %48, i64 %indvars.iv87
  store ptr %47, ptr %49, align 8, !tbaa !20
  %50 = load i64, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %.079, i64 %50
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %exitcond91.not = icmp eq i64 %indvars.iv.next88, %wide.trip.count90
  br i1 %exitcond91.not, label %._crit_edge82, label %.lr.ph81, !llvm.loop !21

._crit_edge82:                                    ; preds = %.lr.ph81, %30
  %.0.lcssa = phi ptr [ %38, %30 ], [ %51, %.lr.ph81 ]
  %52 = ptrtoint ptr %.0.lcssa to i64
  %53 = ptrtoint ptr %.166 to i64
  %54 = sub i64 %52, %53
  %sext = shl i64 %23, 32
  %55 = ashr exact i64 %sext, 32
  %.not71 = icmp eq i64 %54, %55
  br i1 %.not71, label %.thread, label %56

56:                                               ; preds = %._crit_edge82
  %57 = load ptr, ptr @stderr, align 8, !tbaa !20
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str) #7
  br label %.thread

.thread:                                          ; preds = %27, %._crit_edge82, %56, %29
  %.067 = phi ptr [ null, %29 ], [ %.166, %56 ], [ %.166, %._crit_edge82 ], [ null, %27 ]
  ret ptr %.067
}

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

declare ptr @kiss_fft_alloc(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #4 = { nofree nounwind "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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { cold 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS16kiss_fftnd_state", !10, i64 0, !10, i64 4, !15, i64 8, !15, i64 16, !15, i64 24}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!14, !10, i64 4}
!17 = !{!14, !15, i64 16}
!18 = !{!14, !15, i64 8}
!19 = !{!14, !15, i64 24}
!20 = !{!15, !15, i64 0}
!21 = distinct !{!21, !12}


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