; LLVM IR from jgaeddert/liquid-dsp :: src/fft/tests (fft_runtest)

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

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @fft_test(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca { float, float }, align 4
  %18 = alloca { float, float }, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store float 0x3F2A36E2E0000000, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %19 = load i32, ptr %6, align 4, !tbaa !9
  %20 = zext i32 %19 to i64
  %21 = call ptr @llvm.stacksave.p0()
  store ptr %21, ptr %10, align 8
  %22 = alloca { float, float }, i64 %20, align 16
  store i64 %20, ptr %11, align 8
  %23 = load i32, ptr %6, align 4, !tbaa !9
  %24 = zext i32 %23 to i64
  %25 = alloca { float, float }, i64 %24, align 16
  store i64 %24, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %26 = load i32, ptr %6, align 4, !tbaa !9
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = call ptr @fft_create_plan(i32 noundef %26, ptr noundef %27, ptr noundef %22, i32 noundef 1, i32 noundef %28)
  store ptr %29, ptr %13, align 8, !tbaa !5
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  %31 = call i32 @fft_execute(ptr noundef %30)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = call ptr @fft_create_plan(i32 noundef %32, ptr noundef %22, ptr noundef %25, i32 noundef -1, i32 noundef %33)
  store ptr %34, ptr %14, align 8, !tbaa !5
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  %36 = call i32 @fft_execute(ptr noundef %35)
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %55, %3
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = icmp ult i32 %38, %39
  br i1 %40, label %41, label %58

41:                                               ; preds = %37
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = uitofp i32 %42 to float
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds { float, float }, ptr %25, i64 %45
  %47 = getelementptr inbounds { float, float }, ptr %46, i32 0, i32 0
  %48 = load float, ptr %47, align 8
  %49 = getelementptr inbounds { float, float }, ptr %46, i32 0, i32 1
  %50 = load float, ptr %49, align 4
  %51 = fdiv float %48, %43
  %52 = fdiv float %50, %43
  %53 = getelementptr inbounds { float, float }, ptr %46, i32 0, i32 0
  %54 = getelementptr inbounds { float, float }, ptr %46, i32 0, i32 1
  store float %51, ptr %53, align 8
  store float %52, ptr %54, align 4
  br label %55

55:                                               ; preds = %41
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = add i32 %56, 1
  store i32 %57, ptr %9, align 4, !tbaa !9
  br label %37, !llvm.loop !13

58:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %198, %58
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = load i32, ptr %6, align 4, !tbaa !9
  %62 = icmp ult i32 %60, %61
  br i1 %62, label %63, label %201

63:                                               ; preds = %59
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = getelementptr inbounds { float, float }, ptr %22, i64 %65
  %67 = getelementptr inbounds { float, float }, ptr %66, i32 0, i32 0
  %68 = load float, ptr %67, align 8
  %69 = getelementptr inbounds { float, float }, ptr %66, i32 0, i32 1
  %70 = load float, ptr %69, align 4
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds { float, float }, ptr %71, i64 %73
  %75 = getelementptr inbounds { float, float }, ptr %74, i32 0, i32 0
  %76 = load float, ptr %75, align 4
  %77 = getelementptr inbounds { float, float }, ptr %74, i32 0, i32 1
  %78 = load float, ptr %77, align 4
  %79 = fsub float %68, %76
  %80 = fsub float %70, %78
  %81 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %82 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  store float %79, ptr %81, align 4
  store float %80, ptr %82, align 4
  %83 = load <2 x float>, ptr %17, align 4
  %84 = call float @cabsf(<2 x float> noundef %83) #6
  store float %84, ptr %15, align 4, !tbaa !11
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = load i32, ptr %9, align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds { float, float }, ptr %85, i64 %87
  %89 = getelementptr inbounds { float, float }, ptr %88, i32 0, i32 0
  %90 = load float, ptr %89, align 4
  %91 = getelementptr inbounds { float, float }, ptr %88, i32 0, i32 1
  %92 = load float, ptr %91, align 4
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds { float, float }, ptr %25, i64 %94
  %96 = getelementptr inbounds { float, float }, ptr %95, i32 0, i32 0
  %97 = load float, ptr %96, align 8
  %98 = getelementptr inbounds { float, float }, ptr %95, i32 0, i32 1
  %99 = load float, ptr %98, align 4
  %100 = fsub float %90, %97
  %101 = fsub float %92, %99
  %102 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %103 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  store float %100, ptr %102, align 4
  store float %101, ptr %103, align 4
  %104 = load <2 x float>, ptr %18, align 4
  %105 = call float @cabsf(<2 x float> noundef %104) #6
  store float %105, ptr %16, align 4, !tbaa !11
  %106 = load float, ptr %15, align 4, !tbaa !11
  %107 = fsub float %106, 0.000000e+00
  %108 = fpext float %107 to double
  %109 = load float, ptr %15, align 4, !tbaa !11
  %110 = fsub float %109, 0.000000e+00
  %111 = fpext float %110 to double
  %112 = load float, ptr %15, align 4, !tbaa !11
  %113 = fsub float %112, 0.000000e+00
  %114 = fpext float %113 to double
  %115 = load float, ptr %15, align 4, !tbaa !11
  %116 = fsub float %115, 0.000000e+00
  %117 = fpext float %116 to double
  %118 = call double @llvm.fmuladd.f64(double %108, double %111, double 0.000000e+00)
  %119 = call double @sqrt(double noundef %118) #6
  %120 = load float, ptr %8, align 4, !tbaa !11
  %121 = fpext float %120 to double
  %122 = fcmp ogt double %119, %121
  br i1 %122, label %133, label %123

123:                                              ; preds = %63
  %124 = load float, ptr %15, align 4, !tbaa !11
  %125 = call i1 @llvm.is.fpclass.f32(float %124, i32 3)
  br i1 %125, label %133, label %126

126:                                              ; preds = %123
  %127 = load float, ptr %15, align 4, !tbaa !11
  %128 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %128, label %133, label %129

129:                                              ; preds = %126
  %130 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %130, label %133, label %131

131:                                              ; preds = %129
  %132 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %132, label %133, label %150

133:                                              ; preds = %131, %129, %126, %123, %63
  %134 = load float, ptr %15, align 4, !tbaa !11
  %135 = fsub float %134, 0.000000e+00
  %136 = fpext float %135 to double
  %137 = load float, ptr %15, align 4, !tbaa !11
  %138 = fsub float %137, 0.000000e+00
  %139 = fpext float %138 to double
  %140 = load float, ptr %15, align 4, !tbaa !11
  %141 = fsub float %140, 0.000000e+00
  %142 = fpext float %141 to double
  %143 = load float, ptr %15, align 4, !tbaa !11
  %144 = fsub float %143, 0.000000e+00
  %145 = fpext float %144 to double
  %146 = call double @llvm.fmuladd.f64(double %136, double %139, double 0.000000e+00)
  %147 = call double @sqrt(double noundef %146) #6
  %148 = load float, ptr %8, align 4, !tbaa !11
  %149 = fpext float %148 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 58, ptr noundef @.str.1, double noundef %147, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %149)
  br label %151

150:                                              ; preds = %131
  call void (...) @liquid_autotest_passed()
  br label %151

151:                                              ; preds = %150, %133
  %152 = load float, ptr %16, align 4, !tbaa !11
  %153 = fsub float %152, 0.000000e+00
  %154 = fpext float %153 to double
  %155 = load float, ptr %16, align 4, !tbaa !11
  %156 = fsub float %155, 0.000000e+00
  %157 = fpext float %156 to double
  %158 = load float, ptr %16, align 4, !tbaa !11
  %159 = fsub float %158, 0.000000e+00
  %160 = fpext float %159 to double
  %161 = load float, ptr %16, align 4, !tbaa !11
  %162 = fsub float %161, 0.000000e+00
  %163 = fpext float %162 to double
  %164 = call double @llvm.fmuladd.f64(double %154, double %157, double 0.000000e+00)
  %165 = call double @sqrt(double noundef %164) #6
  %166 = load float, ptr %8, align 4, !tbaa !11
  %167 = fpext float %166 to double
  %168 = fcmp ogt double %165, %167
  br i1 %168, label %179, label %169

169:                                              ; preds = %151
  %170 = load float, ptr %16, align 4, !tbaa !11
  %171 = call i1 @llvm.is.fpclass.f32(float %170, i32 3)
  br i1 %171, label %179, label %172

172:                                              ; preds = %169
  %173 = load float, ptr %16, align 4, !tbaa !11
  %174 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %174, label %179, label %175

175:                                              ; preds = %172
  %176 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %176, label %179, label %177

177:                                              ; preds = %175
  %178 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %178, label %179, label %196

179:                                              ; preds = %177, %175, %172, %169, %151
  %180 = load float, ptr %16, align 4, !tbaa !11
  %181 = fsub float %180, 0.000000e+00
  %182 = fpext float %181 to double
  %183 = load float, ptr %16, align 4, !tbaa !11
  %184 = fsub float %183, 0.000000e+00
  %185 = fpext float %184 to double
  %186 = load float, ptr %16, align 4, !tbaa !11
  %187 = fsub float %186, 0.000000e+00
  %188 = fpext float %187 to double
  %189 = load float, ptr %16, align 4, !tbaa !11
  %190 = fsub float %189, 0.000000e+00
  %191 = fpext float %190 to double
  %192 = call double @llvm.fmuladd.f64(double %182, double %185, double 0.000000e+00)
  %193 = call double @sqrt(double noundef %192) #6
  %194 = load float, ptr %8, align 4, !tbaa !11
  %195 = fpext float %194 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 59, ptr noundef @.str.4, double noundef %193, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %195)
  br label %197

196:                                              ; preds = %177
  call void (...) @liquid_autotest_passed()
  br label %197

197:                                              ; preds = %196, %179
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %9, align 4, !tbaa !9
  %200 = add i32 %199, 1
  store i32 %200, ptr %9, align 4, !tbaa !9
  br label %59, !llvm.loop !15

201:                                              ; preds = %59
  %202 = load ptr, ptr %13, align 8, !tbaa !5
  %203 = call i32 @fft_destroy_plan(ptr noundef %202)
  %204 = load ptr, ptr %14, align 8, !tbaa !5
  %205 = call i32 @fft_destroy_plan(ptr noundef %204)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %206 = load ptr, ptr %10, align 8
  call void @llvm.stackrestore.p0(ptr %206)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

declare ptr @fft_create_plan(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #3

declare i32 @fft_execute(ptr noundef) #3

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) #4

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.is.fpclass.f32(float, i32 immarg) #5

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) #3

declare void @liquid_autotest_passed(...) #3

declare i32 @fft_destroy_plan(ptr noundef) #3

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !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"

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @fft_test(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = zext i32 %2 to i64
  %5 = alloca { float, float }, i64 %4, align 16
  %6 = alloca { float, float }, i64 %4, align 16
  %7 = call ptr @fft_create_plan(i32 noundef %2, ptr noundef %0, ptr noundef nonnull %5, i32 noundef 1, i32 noundef 0) #5
  %8 = call i32 @fft_execute(ptr noundef %7) #5
  %9 = call ptr @fft_create_plan(i32 noundef %2, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef -1, i32 noundef 0) #5
  %10 = call i32 @fft_execute(ptr noundef %9) #5
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %11 = uitofp i32 %2 to float
  %min.iters.check = icmp ult i32 %2, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %12 = insertelement <2 x float> poison, float %11, i64 0
  %13 = shufflevector <2 x float> %12, <2 x float> poison, <2 x i32> zeroinitializer
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %4, 4294967292
  %broadcast.splatinsert = insertelement <4 x float> poison, float %11, i64 0
  %14 = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <8 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %15 = getelementptr inbounds { float, float }, ptr %6, i64 %index
  %wide.vec = load <8 x float>, ptr %15, align 16
  %interleaved.vec = fdiv <8 x float> %wide.vec, %14
  store <8 x float> %interleaved.vec, ptr %15, align 16
  %index.next = add nuw i64 %index, 4
  %16 = icmp eq i64 %index.next, %n.vec
  br i1 %16, label %middle.block, label %vector.body, !llvm.loop !5

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %4
  br i1 %cmp.n, label %.preheader, label %scalar.ph.preheader

.preheader:                                       ; preds = %scalar.ph, %middle.block
  br i1 %.not, label %._crit_edge, label %.lr.ph60

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %17 = getelementptr inbounds { float, float }, ptr %6, i64 %indvars.iv
  %18 = load <2 x float>, ptr %17, align 8
  %19 = fdiv <2 x float> %18, %13
  store <2 x float> %19, ptr %17, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %4
  br i1 %exitcond.not, label %.preheader, label %scalar.ph, !llvm.loop !9

.lr.ph60:                                         ; preds = %.preheader, %45
  %indvars.iv63 = phi i64 [ %indvars.iv.next64, %45 ], [ 0, %.preheader ]
  %20 = getelementptr inbounds { float, float }, ptr %5, i64 %indvars.iv63
  %21 = getelementptr inbounds { float, float }, ptr %1, i64 %indvars.iv63
  %22 = load <2 x float>, ptr %20, align 8
  %23 = load <2 x float>, ptr %21, align 4
  %24 = fsub <2 x float> %22, %23
  %25 = call float @cabsf(<2 x float> noundef %24) #5
  %26 = getelementptr inbounds { float, float }, ptr %0, i64 %indvars.iv63
  %27 = getelementptr inbounds { float, float }, ptr %6, i64 %indvars.iv63
  %28 = load <2 x float>, ptr %26, align 4
  %29 = load <2 x float>, ptr %27, align 8
  %30 = fsub <2 x float> %28, %29
  %31 = call float @cabsf(<2 x float> noundef %30) #5
  %32 = fpext float %25 to double
  %33 = call double @llvm.fmuladd.f64(double %32, double %32, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %33)
  %34 = fcmp ogt double %sqrt, 0x3F2A36E2E0000000
  %35 = fcmp uno float %25, 0.000000e+00
  %or.cond = select i1 %34, i1 true, i1 %35
  br i1 %or.cond, label %36, label %37

36:                                               ; preds = %.lr.ph60
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 58, ptr noundef nonnull @.str.1, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F2A36E2E0000000) #5
  br label %38

37:                                               ; preds = %.lr.ph60
  call void (...) @liquid_autotest_passed() #5
  br label %38

38:                                               ; preds = %37, %36
  %39 = fpext float %31 to double
  %40 = call double @llvm.fmuladd.f64(double %39, double %39, double 0.000000e+00)
  %sqrt56 = call double @llvm.sqrt.f64(double %40)
  %41 = fcmp ogt double %sqrt56, 0x3F2A36E2E0000000
  %42 = fcmp uno float %31, 0.000000e+00
  %or.cond54 = select i1 %41, i1 true, i1 %42
  br i1 %or.cond54, label %43, label %44

43:                                               ; preds = %38
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 59, ptr noundef nonnull @.str.4, double noundef %sqrt56, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F2A36E2E0000000) #5
  br label %45

44:                                               ; preds = %38
  call void (...) @liquid_autotest_passed() #5
  br label %45

45:                                               ; preds = %43, %44
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %exitcond67.not = icmp eq i64 %indvars.iv.next64, %4
  br i1 %exitcond67.not, label %._crit_edge, label %.lr.ph60, !llvm.loop !10

._crit_edge:                                      ; preds = %45, %3, %.preheader
  %46 = call i32 @fft_destroy_plan(ptr noundef %7) #5
  %47 = call i32 @fft_destroy_plan(ptr noundef %9) #5
  ret void
}

declare ptr @fft_create_plan(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare i32 @fft_execute(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #1

declare void @liquid_autotest_passed(...) local_unnamed_addr #1

declare i32 @fft_destroy_plan(ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sqrt.f64(double) #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { "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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6, !7, !8}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!"llvm.loop.isvectorized", i32 1}
!8 = !{!"llvm.loop.unroll.runtime.disable"}
!9 = distinct !{!9, !6, !8, !7}
!10 = distinct !{!10, !6}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass