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

; 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 [91 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [3 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

declare ptr @spwaterfallcf_create(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

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

declare void @liquid_autotest_passed(...) #1

declare i32 @spwaterfallcf_destroy(ptr noundef) #1

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

declare i32 @spwaterfallcf_push(ptr noundef, <2 x float> noundef) #1

declare float @randnf(...) #1

declare i64 @spwaterfallcf_get_num_samples_total(ptr noundef) #1

declare i32 @spwaterfallcf_get_num_time(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_spwaterfall_operation() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca { float, float }, align 4
  %3 = alloca { float, float }, align 4
  %4 = alloca [12 x { float, float }], align 16
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #3
  %6 = call ptr @spwaterfallcf_create(i32 noundef 1200, i32 noundef 1, i32 noundef 800, i32 noundef 10, i32 noundef 960)
  store ptr %6, ptr %1, align 8, !tbaa !5
  %7 = load ptr, ptr %1, align 8, !tbaa !5
  %8 = call i32 @spwaterfallcf_print(ptr noundef %7)
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  %10 = call i32 @spwaterfallcf_get_num_freq(ptr noundef %9)
  %11 = icmp ne i32 %10, 1200
  br i1 %11, label %12, label %16

12:                                               ; preds = %0
  %13 = load ptr, ptr %1, align 8, !tbaa !5
  %14 = call i32 @spwaterfallcf_get_num_freq(ptr noundef %13)
  %15 = uitofp i32 %14 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 127, ptr noundef @.str.21, double noundef %15, ptr noundef @.str.3, ptr noundef @.str.22, double noundef 1.200000e+03)
  br label %17

16:                                               ; preds = %0
  call void (...) @liquid_autotest_passed()
  br label %17

17:                                               ; preds = %16, %12
  %18 = load ptr, ptr %1, align 8, !tbaa !5
  %19 = call i32 @spwaterfallcf_get_num_time(ptr noundef %18)
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %25

21:                                               ; preds = %17
  %22 = load ptr, ptr %1, align 8, !tbaa !5
  %23 = call i32 @spwaterfallcf_get_num_time(ptr noundef %22)
  %24 = uitofp i32 %23 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 128, ptr noundef @.str.23, double noundef %24, ptr noundef @.str.3, ptr noundef @.str.24, double noundef 0.000000e+00)
  br label %26

25:                                               ; preds = %17
  call void (...) @liquid_autotest_passed()
  br label %26

26:                                               ; preds = %25, %21
  %27 = load ptr, ptr %1, align 8, !tbaa !5
  %28 = call i32 @spwaterfallcf_get_window_len(ptr noundef %27)
  %29 = icmp ne i32 %28, 800
  br i1 %29, label %30, label %34

30:                                               ; preds = %26
  %31 = load ptr, ptr %1, align 8, !tbaa !5
  %32 = call i32 @spwaterfallcf_get_window_len(ptr noundef %31)
  %33 = uitofp i32 %32 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 129, ptr noundef @.str.25, double noundef %33, ptr noundef @.str.3, ptr noundef @.str.26, double noundef 8.000000e+02)
  br label %35

34:                                               ; preds = %26
  call void (...) @liquid_autotest_passed()
  br label %35

35:                                               ; preds = %34, %30
  %36 = load ptr, ptr %1, align 8, !tbaa !5
  %37 = call i32 @spwaterfallcf_get_delay(ptr noundef %36)
  %38 = icmp ne i32 %37, 10
  br i1 %38, label %39, label %43

39:                                               ; preds = %35
  %40 = load ptr, ptr %1, align 8, !tbaa !5
  %41 = call i32 @spwaterfallcf_get_delay(ptr noundef %40)
  %42 = uitofp i32 %41 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 130, ptr noundef @.str.27, double noundef %42, ptr noundef @.str.3, ptr noundef @.str.28, double noundef 1.000000e+01)
  br label %44

43:                                               ; preds = %35
  call void (...) @liquid_autotest_passed()
  br label %44

44:                                               ; preds = %43, %39
  %45 = load ptr, ptr %1, align 8, !tbaa !5
  %46 = call i32 @spwaterfallcf_get_wtype(ptr noundef %45)
  %47 = icmp ne i32 %46, 1
  br i1 %47, label %48, label %52

48:                                               ; preds = %44
  %49 = load ptr, ptr %1, align 8, !tbaa !5
  %50 = call i32 @spwaterfallcf_get_wtype(ptr noundef %49)
  %51 = sitofp i32 %50 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 131, ptr noundef @.str.29, double noundef %51, ptr noundef @.str.3, ptr noundef @.str.30, double noundef 1.000000e+00)
  br label %53

52:                                               ; preds = %44
  call void (...) @liquid_autotest_passed()
  br label %53

53:                                               ; preds = %52, %48
  %54 = load ptr, ptr %1, align 8, !tbaa !5
  %55 = call float (...) @randnf()
  %56 = call float (...) @randnf()
  %57 = fmul float 0.000000e+00, %56
  %58 = fmul float 1.000000e+00, %56
  %59 = fadd float %55, %57
  %60 = getelementptr inbounds { float, float }, ptr %2, i32 0, i32 0
  %61 = getelementptr inbounds { float, float }, ptr %2, i32 0, i32 1
  store float %59, ptr %60, align 4
  store float %58, ptr %61, align 4
  %62 = load <2 x float>, ptr %2, align 4
  %63 = call i32 @spwaterfallcf_push(ptr noundef %54, <2 x float> noundef %62)
  %64 = load ptr, ptr %1, align 8, !tbaa !5
  %65 = call float (...) @randnf()
  %66 = call float (...) @randnf()
  %67 = fmul float 0.000000e+00, %66
  %68 = fmul float 1.000000e+00, %66
  %69 = fadd float %65, %67
  %70 = getelementptr inbounds { float, float }, ptr %3, i32 0, i32 0
  %71 = getelementptr inbounds { float, float }, ptr %3, i32 0, i32 1
  store float %69, ptr %70, align 4
  store float %68, ptr %71, align 4
  %72 = load <2 x float>, ptr %3, align 4
  %73 = call i32 @spwaterfallcf_push(ptr noundef %64, <2 x float> noundef %72)
  %74 = load ptr, ptr %1, align 8, !tbaa !5
  %75 = call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %74)
  %76 = icmp ne i64 %75, 2
  br i1 %76, label %77, label %81

77:                                               ; preds = %53
  %78 = load ptr, ptr %1, align 8, !tbaa !5
  %79 = call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %78)
  %80 = uitofp i64 %79 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 137, ptr noundef @.str.15, double noundef %80, ptr noundef @.str.3, ptr noundef @.str.31, double noundef 2.000000e+00)
  br label %82

81:                                               ; preds = %53
  call void (...) @liquid_autotest_passed()
  br label %82

82:                                               ; preds = %81, %77
  %83 = load ptr, ptr %1, align 8, !tbaa !5
  %84 = call i32 @spwaterfallcf_clear(ptr noundef %83)
  %85 = load ptr, ptr %1, align 8, !tbaa !5
  %86 = call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %85)
  %87 = icmp ne i64 %86, 2
  br i1 %87, label %88, label %92

88:                                               ; preds = %82
  %89 = load ptr, ptr %1, align 8, !tbaa !5
  %90 = call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %89)
  %91 = uitofp i64 %90 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 139, ptr noundef @.str.15, double noundef %91, ptr noundef @.str.3, ptr noundef @.str.31, double noundef 2.000000e+00)
  br label %93

92:                                               ; preds = %82
  call void (...) @liquid_autotest_passed()
  br label %93

93:                                               ; preds = %92, %88
  %94 = load ptr, ptr %1, align 8, !tbaa !5
  %95 = call i32 @spwaterfallcf_reset(ptr noundef %94)
  %96 = load ptr, ptr %1, align 8, !tbaa !5
  %97 = call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %96)
  %98 = icmp ne i64 %97, 0
  br i1 %98, label %99, label %103

99:                                               ; preds = %93
  %100 = load ptr, ptr %1, align 8, !tbaa !5
  %101 = call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %100)
  %102 = uitofp i64 %101 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 141, ptr noundef @.str.15, double noundef %102, ptr noundef @.str.3, ptr noundef @.str.24, double noundef 0.000000e+00)
  br label %104

103:                                              ; preds = %93
  call void (...) @liquid_autotest_passed()
  br label %104

104:                                              ; preds = %103, %99
  call void @llvm.lifetime.start.p0(i64 96, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %119, %104
  %106 = load i32, ptr %5, align 4, !tbaa !9
  %107 = icmp ult i32 %106, 12
  br i1 %107, label %108, label %122

108:                                              ; preds = %105
  %109 = call float (...) @randnf()
  %110 = call float (...) @randnf()
  %111 = fmul float 0.000000e+00, %110
  %112 = fmul float 1.000000e+00, %110
  %113 = fadd float %109, %111
  %114 = load i32, ptr %5, align 4, !tbaa !9
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds [12 x { float, float }], ptr %4, i64 0, i64 %115
  %117 = getelementptr inbounds { float, float }, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds { float, float }, ptr %116, i32 0, i32 1
  store float %113, ptr %117, align 8
  store float %112, ptr %118, align 4
  br label %119

119:                                              ; preds = %108
  %120 = load i32, ptr %5, align 4, !tbaa !9
  %121 = add i32 %120, 1
  store i32 %121, ptr %5, align 4, !tbaa !9
  br label %105, !llvm.loop !11

122:                                              ; preds = %105
  %123 = load ptr, ptr %1, align 8, !tbaa !5
  %124 = getelementptr inbounds [12 x { float, float }], ptr %4, i64 0, i64 0
  %125 = call i32 @spwaterfallcf_write(ptr noundef %123, ptr noundef %124, i32 noundef 12)
  %126 = load ptr, ptr %1, align 8, !tbaa !5
  %127 = call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %126)
  %128 = icmp ne i64 %127, 12
  br i1 %128, label %129, label %133

129:                                              ; preds = %122
  %130 = load ptr, ptr %1, align 8, !tbaa !5
  %131 = call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %130)
  %132 = uitofp i64 %131 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 149, ptr noundef @.str.15, double noundef %132, ptr noundef @.str.3, ptr noundef @.str.32, double noundef 1.200000e+01)
  br label %134

133:                                              ; preds = %122
  call void (...) @liquid_autotest_passed()
  br label %134

134:                                              ; preds = %133, %129
  %135 = load ptr, ptr %1, align 8, !tbaa !5
  %136 = call i32 @spwaterfallcf_destroy(ptr noundef %135)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 96, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #3
  ret void
}

declare i32 @spwaterfallcf_print(ptr noundef) #1

declare i32 @spwaterfallcf_get_num_freq(ptr noundef) #1

declare i32 @spwaterfallcf_get_window_len(ptr noundef) #1

declare i32 @spwaterfallcf_get_delay(ptr noundef) #1

declare i32 @spwaterfallcf_get_wtype(ptr noundef) #1

declare i32 @spwaterfallcf_clear(ptr noundef) #1

declare i32 @spwaterfallcf_reset(ptr noundef) #1

declare i32 @spwaterfallcf_write(ptr noundef, ptr noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #3 = { 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 = distinct !{!11, !12}
!12 = !{!"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"

@.str = external hidden unnamed_addr constant [91 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [3 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

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

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 @spwaterfallcf_destroy(ptr noundef) local_unnamed_addr #1

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

declare i32 @spwaterfallcf_push(ptr noundef, <2 x float> noundef) local_unnamed_addr #1

declare float @randnf(...) local_unnamed_addr #1

declare i64 @spwaterfallcf_get_num_samples_total(ptr noundef) local_unnamed_addr #1

declare i32 @spwaterfallcf_get_num_time(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_spwaterfall_operation() local_unnamed_addr #2 {
  %1 = alloca [12 x { float, float }], align 16
  %2 = tail call ptr @spwaterfallcf_create(i32 noundef 1200, i32 noundef 1, i32 noundef 800, i32 noundef 10, i32 noundef 960) #3
  %3 = tail call i32 @spwaterfallcf_print(ptr noundef %2) #3
  %4 = tail call i32 @spwaterfallcf_get_num_freq(ptr noundef %2) #3
  %.not = icmp eq i32 %4, 1200
  br i1 %.not, label %8, label %5

5:                                                ; preds = %0
  %6 = tail call i32 @spwaterfallcf_get_num_freq(ptr noundef %2) #3
  %7 = uitofp i32 %6 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 127, ptr noundef nonnull @.str.21, double noundef %7, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.22, double noundef 1.200000e+03) #3
  br label %9

8:                                                ; preds = %0
  tail call void (...) @liquid_autotest_passed() #3
  br label %9

9:                                                ; preds = %8, %5
  %10 = tail call i32 @spwaterfallcf_get_num_time(ptr noundef %2) #3
  %.not30 = icmp eq i32 %10, 0
  br i1 %.not30, label %14, label %11

11:                                               ; preds = %9
  %12 = tail call i32 @spwaterfallcf_get_num_time(ptr noundef %2) #3
  %13 = uitofp i32 %12 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 128, ptr noundef nonnull @.str.23, double noundef %13, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.24, double noundef 0.000000e+00) #3
  br label %15

14:                                               ; preds = %9
  tail call void (...) @liquid_autotest_passed() #3
  br label %15

15:                                               ; preds = %14, %11
  %16 = tail call i32 @spwaterfallcf_get_window_len(ptr noundef %2) #3
  %.not31 = icmp eq i32 %16, 800
  br i1 %.not31, label %20, label %17

17:                                               ; preds = %15
  %18 = tail call i32 @spwaterfallcf_get_window_len(ptr noundef %2) #3
  %19 = uitofp i32 %18 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 129, ptr noundef nonnull @.str.25, double noundef %19, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.26, double noundef 8.000000e+02) #3
  br label %21

20:                                               ; preds = %15
  tail call void (...) @liquid_autotest_passed() #3
  br label %21

21:                                               ; preds = %20, %17
  %22 = tail call i32 @spwaterfallcf_get_delay(ptr noundef %2) #3
  %.not32 = icmp eq i32 %22, 10
  br i1 %.not32, label %26, label %23

23:                                               ; preds = %21
  %24 = tail call i32 @spwaterfallcf_get_delay(ptr noundef %2) #3
  %25 = uitofp i32 %24 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 130, ptr noundef nonnull @.str.27, double noundef %25, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.28, double noundef 1.000000e+01) #3
  br label %27

26:                                               ; preds = %21
  tail call void (...) @liquid_autotest_passed() #3
  br label %27

27:                                               ; preds = %26, %23
  %28 = tail call i32 @spwaterfallcf_get_wtype(ptr noundef %2) #3
  %.not33 = icmp eq i32 %28, 1
  br i1 %.not33, label %32, label %29

29:                                               ; preds = %27
  %30 = tail call i32 @spwaterfallcf_get_wtype(ptr noundef %2) #3
  %31 = sitofp i32 %30 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 131, ptr noundef nonnull @.str.29, double noundef %31, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.30, double noundef 1.000000e+00) #3
  br label %33

32:                                               ; preds = %27
  tail call void (...) @liquid_autotest_passed() #3
  br label %33

33:                                               ; preds = %32, %29
  %34 = tail call float (...) @randnf() #3
  %35 = tail call float (...) @randnf() #3
  %36 = fmul float %35, 0.000000e+00
  %37 = fadd float %34, %36
  %.sroa.04.0.vec.insert = insertelement <2 x float> poison, float %37, i64 0
  %.sroa.04.4.vec.insert = insertelement <2 x float> %.sroa.04.0.vec.insert, float %35, i64 1
  %38 = tail call i32 @spwaterfallcf_push(ptr noundef %2, <2 x float> noundef %.sroa.04.4.vec.insert) #3
  %39 = tail call float (...) @randnf() #3
  %40 = tail call float (...) @randnf() #3
  %41 = fmul float %40, 0.000000e+00
  %42 = fadd float %39, %41
  %.sroa.0.0.vec.insert = insertelement <2 x float> poison, float %42, i64 0
  %.sroa.0.4.vec.insert = insertelement <2 x float> %.sroa.0.0.vec.insert, float %40, i64 1
  %43 = tail call i32 @spwaterfallcf_push(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert) #3
  %44 = tail call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %2) #3
  %.not34 = icmp eq i64 %44, 2
  br i1 %.not34, label %48, label %45

45:                                               ; preds = %33
  %46 = tail call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %2) #3
  %47 = uitofp i64 %46 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 137, ptr noundef nonnull @.str.15, double noundef %47, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.31, double noundef 2.000000e+00) #3
  br label %49

48:                                               ; preds = %33
  tail call void (...) @liquid_autotest_passed() #3
  br label %49

49:                                               ; preds = %48, %45
  %50 = tail call i32 @spwaterfallcf_clear(ptr noundef %2) #3
  %51 = tail call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %2) #3
  %.not35 = icmp eq i64 %51, 2
  br i1 %.not35, label %55, label %52

52:                                               ; preds = %49
  %53 = tail call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %2) #3
  %54 = uitofp i64 %53 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 139, ptr noundef nonnull @.str.15, double noundef %54, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.31, double noundef 2.000000e+00) #3
  br label %56

55:                                               ; preds = %49
  tail call void (...) @liquid_autotest_passed() #3
  br label %56

56:                                               ; preds = %55, %52
  %57 = tail call i32 @spwaterfallcf_reset(ptr noundef %2) #3
  %58 = tail call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %2) #3
  %.not36 = icmp eq i64 %58, 0
  br i1 %.not36, label %62, label %59

59:                                               ; preds = %56
  %60 = tail call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %2) #3
  %61 = uitofp i64 %60 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 141, ptr noundef nonnull @.str.15, double noundef %61, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.24, double noundef 0.000000e+00) #3
  br label %63

62:                                               ; preds = %56
  tail call void (...) @liquid_autotest_passed() #3
  br label %63

63:                                               ; preds = %62, %59
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %1) #3
  %64 = tail call float (...) @randnf() #3
  %65 = tail call float (...) @randnf() #3
  %66 = fmul float %65, 0.000000e+00
  %67 = fadd float %64, %66
  %68 = getelementptr inbounds i8, ptr %1, i64 4
  store float %67, ptr %1, align 16
  store float %65, ptr %68, align 4
  %69 = tail call float (...) @randnf() #3
  %70 = tail call float (...) @randnf() #3
  %71 = fmul float %70, 0.000000e+00
  %72 = fadd float %69, %71
  %73 = getelementptr inbounds i8, ptr %1, i64 8
  %74 = getelementptr inbounds i8, ptr %1, i64 12
  store float %72, ptr %73, align 8
  store float %70, ptr %74, align 4
  %75 = tail call float (...) @randnf() #3
  %76 = tail call float (...) @randnf() #3
  %77 = fmul float %76, 0.000000e+00
  %78 = fadd float %75, %77
  %79 = getelementptr inbounds i8, ptr %1, i64 16
  %80 = getelementptr inbounds i8, ptr %1, i64 20
  store float %78, ptr %79, align 16
  store float %76, ptr %80, align 4
  %81 = tail call float (...) @randnf() #3
  %82 = tail call float (...) @randnf() #3
  %83 = fmul float %82, 0.000000e+00
  %84 = fadd float %81, %83
  %85 = getelementptr inbounds i8, ptr %1, i64 24
  %86 = getelementptr inbounds i8, ptr %1, i64 28
  store float %84, ptr %85, align 8
  store float %82, ptr %86, align 4
  %87 = tail call float (...) @randnf() #3
  %88 = tail call float (...) @randnf() #3
  %89 = fmul float %88, 0.000000e+00
  %90 = fadd float %87, %89
  %91 = getelementptr inbounds i8, ptr %1, i64 32
  %92 = getelementptr inbounds i8, ptr %1, i64 36
  store float %90, ptr %91, align 16
  store float %88, ptr %92, align 4
  %93 = tail call float (...) @randnf() #3
  %94 = tail call float (...) @randnf() #3
  %95 = fmul float %94, 0.000000e+00
  %96 = fadd float %93, %95
  %97 = getelementptr inbounds i8, ptr %1, i64 40
  %98 = getelementptr inbounds i8, ptr %1, i64 44
  store float %96, ptr %97, align 8
  store float %94, ptr %98, align 4
  %99 = tail call float (...) @randnf() #3
  %100 = tail call float (...) @randnf() #3
  %101 = fmul float %100, 0.000000e+00
  %102 = fadd float %99, %101
  %103 = getelementptr inbounds i8, ptr %1, i64 48
  %104 = getelementptr inbounds i8, ptr %1, i64 52
  store float %102, ptr %103, align 16
  store float %100, ptr %104, align 4
  %105 = tail call float (...) @randnf() #3
  %106 = tail call float (...) @randnf() #3
  %107 = fmul float %106, 0.000000e+00
  %108 = fadd float %105, %107
  %109 = getelementptr inbounds i8, ptr %1, i64 56
  %110 = getelementptr inbounds i8, ptr %1, i64 60
  store float %108, ptr %109, align 8
  store float %106, ptr %110, align 4
  %111 = tail call float (...) @randnf() #3
  %112 = tail call float (...) @randnf() #3
  %113 = fmul float %112, 0.000000e+00
  %114 = fadd float %111, %113
  %115 = getelementptr inbounds i8, ptr %1, i64 64
  %116 = getelementptr inbounds i8, ptr %1, i64 68
  store float %114, ptr %115, align 16
  store float %112, ptr %116, align 4
  %117 = tail call float (...) @randnf() #3
  %118 = tail call float (...) @randnf() #3
  %119 = fmul float %118, 0.000000e+00
  %120 = fadd float %117, %119
  %121 = getelementptr inbounds i8, ptr %1, i64 72
  %122 = getelementptr inbounds i8, ptr %1, i64 76
  store float %120, ptr %121, align 8
  store float %118, ptr %122, align 4
  %123 = tail call float (...) @randnf() #3
  %124 = tail call float (...) @randnf() #3
  %125 = fmul float %124, 0.000000e+00
  %126 = fadd float %123, %125
  %127 = getelementptr inbounds i8, ptr %1, i64 80
  %128 = getelementptr inbounds i8, ptr %1, i64 84
  store float %126, ptr %127, align 16
  store float %124, ptr %128, align 4
  %129 = tail call float (...) @randnf() #3
  %130 = tail call float (...) @randnf() #3
  %131 = fmul float %130, 0.000000e+00
  %132 = fadd float %129, %131
  %133 = getelementptr inbounds i8, ptr %1, i64 88
  %134 = getelementptr inbounds i8, ptr %1, i64 92
  store float %132, ptr %133, align 8
  store float %130, ptr %134, align 4
  %135 = call i32 @spwaterfallcf_write(ptr noundef %2, ptr noundef nonnull %1, i32 noundef 12) #3
  %136 = call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %2) #3
  %.not37 = icmp eq i64 %136, 12
  br i1 %.not37, label %140, label %137

137:                                              ; preds = %63
  %138 = call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %2) #3
  %139 = uitofp i64 %138 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 149, ptr noundef nonnull @.str.15, double noundef %139, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.32, double noundef 1.200000e+01) #3
  br label %141

140:                                              ; preds = %63
  call void (...) @liquid_autotest_passed() #3
  br label %141

141:                                              ; preds = %140, %137
  %142 = call i32 @spwaterfallcf_destroy(ptr noundef %2) #3
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %1) #3
  ret void
}

declare i32 @spwaterfallcf_print(ptr noundef) local_unnamed_addr #1

declare i32 @spwaterfallcf_get_num_freq(ptr noundef) local_unnamed_addr #1

declare i32 @spwaterfallcf_get_window_len(ptr noundef) local_unnamed_addr #1

declare i32 @spwaterfallcf_get_delay(ptr noundef) local_unnamed_addr #1

declare i32 @spwaterfallcf_get_wtype(ptr noundef) local_unnamed_addr #1

declare i32 @spwaterfallcf_clear(ptr noundef) local_unnamed_addr #1

declare i32 @spwaterfallcf_reset(ptr noundef) local_unnamed_addr #1

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #3 = { 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)"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass