; 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
@liquid_autotest_verbose = external global i32, align 4
@.str.33 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [51 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 ptr @spwaterfallcf_get_psd(ptr noundef) #1

declare i32 @spwaterfallcf_get_num_time(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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_spwaterfall_copy() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca float, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca { float, float }, align 4
  %8 = alloca { float, float }, align 4
  %9 = alloca ptr, align 8
  %10 = alloca { float, float }, align 4
  %11 = alloca { float, float }, align 4
  %12 = alloca { float, float }, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
  store i32 240, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store i32 192, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store float 0x3FB99999A0000000, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %16 = load i32, ptr %1, align 4, !tbaa !5
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = call ptr @spwaterfallcf_create(i32 noundef %16, i32 noundef 5, i32 noundef 217, i32 noundef 137, i32 noundef %17)
  store ptr %18, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %20 = mul i32 17, %19
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = mul i32 %20, %21
  store i32 %22, ptr %6, align 4, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %48, %0
  %24 = load i32, ptr %5, align 4, !tbaa !5
  %25 = load i32, ptr %6, align 4, !tbaa !5
  %26 = icmp ult i32 %24, %25
  br i1 %26, label %27, label %51

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %28 = load float, ptr %3, align 4, !tbaa !9
  %29 = call float (...) @randnf()
  %30 = call float (...) @randnf()
  %31 = fmul float 0.000000e+00, %30
  %32 = fmul float 1.000000e+00, %30
  %33 = fadd float %29, %31
  %34 = fmul float %28, %33
  %35 = fmul float %28, %32
  %36 = fadd float 0x3FB99999A0000000, %34
  %37 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 0
  %38 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 1
  store float %36, ptr %37, align 4
  store float %35, ptr %38, align 4
  %39 = load ptr, ptr %4, align 8, !tbaa !11
  %40 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 0
  %41 = load float, ptr %40, align 4
  %42 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 1
  %43 = load float, ptr %42, align 4
  %44 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 0
  %45 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 1
  store float %41, ptr %44, align 4
  store float %43, ptr %45, align 4
  %46 = load <2 x float>, ptr %8, align 4
  %47 = call i32 @spwaterfallcf_push(ptr noundef %39, <2 x float> noundef %46)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %48

48:                                               ; preds = %27
  %49 = load i32, ptr %5, align 4, !tbaa !5
  %50 = add i32 %49, 1
  store i32 %50, ptr %5, align 4, !tbaa !5
  br label %23, !llvm.loop !13

51:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %52 = load ptr, ptr %4, align 8, !tbaa !11
  %53 = call ptr @spwaterfallcf_copy(ptr noundef %52)
  store ptr %53, ptr %9, align 8, !tbaa !11
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %88, %51
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = icmp ult i32 %55, %56
  br i1 %57, label %58, label %91

58:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %59 = load float, ptr %3, align 4, !tbaa !9
  %60 = call float (...) @randnf()
  %61 = call float (...) @randnf()
  %62 = fmul float 0.000000e+00, %61
  %63 = fmul float 1.000000e+00, %61
  %64 = fadd float %60, %62
  %65 = fmul float %59, %64
  %66 = fmul float %59, %63
  %67 = fadd float 0x3FB99999A0000000, %65
  %68 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %69 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  store float %67, ptr %68, align 4
  store float %66, ptr %69, align 4
  %70 = load ptr, ptr %4, align 8, !tbaa !11
  %71 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %72 = load float, ptr %71, align 4
  %73 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %74 = load float, ptr %73, align 4
  %75 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %76 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  store float %72, ptr %75, align 4
  store float %74, ptr %76, align 4
  %77 = load <2 x float>, ptr %11, align 4
  %78 = call i32 @spwaterfallcf_push(ptr noundef %70, <2 x float> noundef %77)
  %79 = load ptr, ptr %9, align 8, !tbaa !11
  %80 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %81 = load float, ptr %80, align 4
  %82 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %83 = load float, ptr %82, align 4
  %84 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 0
  %85 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 1
  store float %81, ptr %84, align 4
  store float %83, ptr %85, align 4
  %86 = load <2 x float>, ptr %12, align 4
  %87 = call i32 @spwaterfallcf_push(ptr noundef %79, <2 x float> noundef %86)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %88

88:                                               ; preds = %58
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = add i32 %89, 1
  store i32 %90, ptr %5, align 4, !tbaa !5
  br label %54, !llvm.loop !15

91:                                               ; preds = %54
  %92 = load ptr, ptr %4, align 8, !tbaa !11
  %93 = call i32 @spwaterfallcf_get_num_freq(ptr noundef %92)
  %94 = load ptr, ptr %9, align 8, !tbaa !11
  %95 = call i32 @spwaterfallcf_get_num_freq(ptr noundef %94)
  %96 = icmp ne i32 %93, %95
  br i1 %96, label %97, label %104

97:                                               ; preds = %91
  %98 = load ptr, ptr %4, align 8, !tbaa !11
  %99 = call i32 @spwaterfallcf_get_num_freq(ptr noundef %98)
  %100 = uitofp i32 %99 to double
  %101 = load ptr, ptr %9, align 8, !tbaa !11
  %102 = call i32 @spwaterfallcf_get_num_freq(ptr noundef %101)
  %103 = uitofp i32 %102 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 179, ptr noundef @.str.33, double noundef %100, ptr noundef @.str.3, ptr noundef @.str.34, double noundef %103)
  br label %105

104:                                              ; preds = %91
  call void (...) @liquid_autotest_passed()
  br label %105

105:                                              ; preds = %104, %97
  %106 = load ptr, ptr %4, align 8, !tbaa !11
  %107 = call i32 @spwaterfallcf_get_num_time(ptr noundef %106)
  %108 = load ptr, ptr %9, align 8, !tbaa !11
  %109 = call i32 @spwaterfallcf_get_num_time(ptr noundef %108)
  %110 = icmp ne i32 %107, %109
  br i1 %110, label %111, label %118

111:                                              ; preds = %105
  %112 = load ptr, ptr %4, align 8, !tbaa !11
  %113 = call i32 @spwaterfallcf_get_num_time(ptr noundef %112)
  %114 = uitofp i32 %113 to double
  %115 = load ptr, ptr %9, align 8, !tbaa !11
  %116 = call i32 @spwaterfallcf_get_num_time(ptr noundef %115)
  %117 = uitofp i32 %116 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 180, ptr noundef @.str.35, double noundef %114, ptr noundef @.str.3, ptr noundef @.str.36, double noundef %117)
  br label %119

118:                                              ; preds = %105
  call void (...) @liquid_autotest_passed()
  br label %119

119:                                              ; preds = %118, %111
  %120 = load ptr, ptr %4, align 8, !tbaa !11
  %121 = call i32 @spwaterfallcf_get_window_len(ptr noundef %120)
  %122 = load ptr, ptr %9, align 8, !tbaa !11
  %123 = call i32 @spwaterfallcf_get_window_len(ptr noundef %122)
  %124 = icmp ne i32 %121, %123
  br i1 %124, label %125, label %132

125:                                              ; preds = %119
  %126 = load ptr, ptr %4, align 8, !tbaa !11
  %127 = call i32 @spwaterfallcf_get_window_len(ptr noundef %126)
  %128 = uitofp i32 %127 to double
  %129 = load ptr, ptr %9, align 8, !tbaa !11
  %130 = call i32 @spwaterfallcf_get_window_len(ptr noundef %129)
  %131 = uitofp i32 %130 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 181, ptr noundef @.str.37, double noundef %128, ptr noundef @.str.3, ptr noundef @.str.38, double noundef %131)
  br label %133

132:                                              ; preds = %119
  call void (...) @liquid_autotest_passed()
  br label %133

133:                                              ; preds = %132, %125
  %134 = load ptr, ptr %4, align 8, !tbaa !11
  %135 = call i32 @spwaterfallcf_get_delay(ptr noundef %134)
  %136 = load ptr, ptr %9, align 8, !tbaa !11
  %137 = call i32 @spwaterfallcf_get_delay(ptr noundef %136)
  %138 = icmp ne i32 %135, %137
  br i1 %138, label %139, label %146

139:                                              ; preds = %133
  %140 = load ptr, ptr %4, align 8, !tbaa !11
  %141 = call i32 @spwaterfallcf_get_delay(ptr noundef %140)
  %142 = uitofp i32 %141 to double
  %143 = load ptr, ptr %9, align 8, !tbaa !11
  %144 = call i32 @spwaterfallcf_get_delay(ptr noundef %143)
  %145 = uitofp i32 %144 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 182, ptr noundef @.str.39, double noundef %142, ptr noundef @.str.3, ptr noundef @.str.40, double noundef %145)
  br label %147

146:                                              ; preds = %133
  call void (...) @liquid_autotest_passed()
  br label %147

147:                                              ; preds = %146, %139
  %148 = load ptr, ptr %4, align 8, !tbaa !11
  %149 = call i32 @spwaterfallcf_get_wtype(ptr noundef %148)
  %150 = load ptr, ptr %9, align 8, !tbaa !11
  %151 = call i32 @spwaterfallcf_get_wtype(ptr noundef %150)
  %152 = icmp ne i32 %149, %151
  br i1 %152, label %153, label %160

153:                                              ; preds = %147
  %154 = load ptr, ptr %4, align 8, !tbaa !11
  %155 = call i32 @spwaterfallcf_get_wtype(ptr noundef %154)
  %156 = sitofp i32 %155 to double
  %157 = load ptr, ptr %9, align 8, !tbaa !11
  %158 = call i32 @spwaterfallcf_get_wtype(ptr noundef %157)
  %159 = sitofp i32 %158 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 183, ptr noundef @.str.41, double noundef %156, ptr noundef @.str.3, ptr noundef @.str.42, double noundef %159)
  br label %161

160:                                              ; preds = %147
  call void (...) @liquid_autotest_passed()
  br label %161

161:                                              ; preds = %160, %153
  %162 = load ptr, ptr %4, align 8, !tbaa !11
  %163 = call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %162)
  %164 = load ptr, ptr %9, align 8, !tbaa !11
  %165 = call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %164)
  %166 = icmp ne i64 %163, %165
  br i1 %166, label %167, label %174

167:                                              ; preds = %161
  %168 = load ptr, ptr %4, align 8, !tbaa !11
  %169 = call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %168)
  %170 = uitofp i64 %169 to double
  %171 = load ptr, ptr %9, align 8, !tbaa !11
  %172 = call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %171)
  %173 = uitofp i64 %172 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 184, ptr noundef @.str.43, double noundef %170, ptr noundef @.str.3, ptr noundef @.str.44, double noundef %173)
  br label %175

174:                                              ; preds = %161
  call void (...) @liquid_autotest_passed()
  br label %175

175:                                              ; preds = %174, %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %176 = load ptr, ptr %4, align 8, !tbaa !11
  %177 = call ptr @spwaterfallcf_get_psd(ptr noundef %176)
  store ptr %177, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %178 = load ptr, ptr %9, align 8, !tbaa !11
  %179 = call ptr @spwaterfallcf_get_psd(ptr noundef %178)
  store ptr %179, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %180 = load ptr, ptr %4, align 8, !tbaa !11
  %181 = call i32 @spwaterfallcf_get_num_time(ptr noundef %180)
  store i32 %181, ptr %15, align 4, !tbaa !5
  %182 = load ptr, ptr %13, align 8, !tbaa !11
  %183 = load ptr, ptr %14, align 8, !tbaa !11
  %184 = load i32, ptr %1, align 4, !tbaa !5
  %185 = load i32, ptr %15, align 4, !tbaa !5
  %186 = mul i32 %184, %185
  %187 = zext i32 %186 to i64
  %188 = mul i64 %187, 4
  %189 = trunc i64 %188 to i32
  %190 = call i32 @liquid_autotest_same_data(ptr noundef %182, ptr noundef %183, i32 noundef %189)
  %191 = icmp ne i32 %190, 0
  br i1 %191, label %211, label %192

192:                                              ; preds = %175
  call void @liquid_autotest_failed_msg(ptr noundef @.str, i32 noundef 190, ptr noundef @.str.45)
  %193 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %195, label %210

195:                                              ; preds = %192
  %196 = load ptr, ptr %13, align 8, !tbaa !11
  %197 = load i32, ptr %1, align 4, !tbaa !5
  %198 = load i32, ptr %15, align 4, !tbaa !5
  %199 = mul i32 %197, %198
  %200 = zext i32 %199 to i64
  %201 = mul i64 %200, 4
  %202 = trunc i64 %201 to i32
  call void @liquid_autotest_print_array(ptr noundef %196, i32 noundef %202)
  %203 = load ptr, ptr %14, align 8, !tbaa !11
  %204 = load i32, ptr %1, align 4, !tbaa !5
  %205 = load i32, ptr %15, align 4, !tbaa !5
  %206 = mul i32 %204, %205
  %207 = zext i32 %206 to i64
  %208 = mul i64 %207, 4
  %209 = trunc i64 %208 to i32
  call void @liquid_autotest_print_array(ptr noundef %203, i32 noundef %209)
  br label %210

210:                                              ; preds = %195, %192
  br label %212

211:                                              ; preds = %175
  call void (...) @liquid_autotest_passed()
  br label %212

212:                                              ; preds = %211, %210
  %213 = load ptr, ptr %4, align 8, !tbaa !11
  %214 = call i32 @spwaterfallcf_destroy(ptr noundef %213)
  %215 = load ptr, ptr %9, align 8, !tbaa !11
  %216 = call i32 @spwaterfallcf_destroy(ptr noundef %215)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #3
  ret void
}

declare ptr @spwaterfallcf_copy(ptr noundef) #1

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

declare void @liquid_autotest_failed_msg(ptr noundef, i32 noundef, ptr noundef) #1

declare void @liquid_autotest_print_array(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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !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 [91 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.33 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [51 x i8], align 1

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

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

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

declare i32 @spwaterfallcf_destroy(ptr noundef) local_unnamed_addr #0

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

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

declare i64 @spwaterfallcf_get_num_samples_total(ptr noundef) local_unnamed_addr #0

declare ptr @spwaterfallcf_get_psd(ptr noundef) local_unnamed_addr #0

declare i32 @spwaterfallcf_get_num_time(ptr noundef) local_unnamed_addr #0

declare i32 @spwaterfallcf_get_num_freq(ptr noundef) local_unnamed_addr #0

declare i32 @spwaterfallcf_get_window_len(ptr noundef) local_unnamed_addr #0

declare i32 @spwaterfallcf_get_delay(ptr noundef) local_unnamed_addr #0

declare i32 @spwaterfallcf_get_wtype(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @autotest_spwaterfall_copy() local_unnamed_addr #1 {
  %1 = tail call ptr @spwaterfallcf_create(i32 noundef 240, i32 noundef 5, i32 noundef 217, i32 noundef 137, i32 noundef 192) #2
  br label %2

2:                                                ; preds = %0, %2
  %.070 = phi i32 [ 0, %0 ], [ %11, %2 ]
  %3 = tail call float (...) @randnf() #2
  %4 = tail call float (...) @randnf() #2
  %5 = fmul float %4, 0.000000e+00
  %6 = fadd float %3, %5
  %7 = fmul float %6, 0x3FB99999A0000000
  %8 = fmul float %4, 0x3FB99999A0000000
  %9 = fadd float %7, 0x3FB99999A0000000
  %.sroa.027.0.vec.insert = insertelement <2 x float> poison, float %9, i64 0
  %.sroa.027.4.vec.insert = insertelement <2 x float> %.sroa.027.0.vec.insert, float %8, i64 1
  %10 = tail call i32 @spwaterfallcf_push(ptr noundef %1, <2 x float> noundef %.sroa.027.4.vec.insert) #2
  %11 = add nuw nsw i32 %.070, 1
  %exitcond.not = icmp eq i32 %11, 783360
  br i1 %exitcond.not, label %12, label %2, !llvm.loop !5

12:                                               ; preds = %2
  %13 = tail call ptr @spwaterfallcf_copy(ptr noundef %1) #2
  br label %14

14:                                               ; preds = %12, %14
  %.171 = phi i32 [ 0, %12 ], [ %24, %14 ]
  %15 = tail call float (...) @randnf() #2
  %16 = tail call float (...) @randnf() #2
  %17 = fmul float %16, 0.000000e+00
  %18 = fadd float %15, %17
  %19 = fmul float %18, 0x3FB99999A0000000
  %20 = fmul float %16, 0x3FB99999A0000000
  %21 = fadd float %19, 0x3FB99999A0000000
  %.sroa.07.0.vec.insert = insertelement <2 x float> poison, float %21, i64 0
  %.sroa.07.4.vec.insert = insertelement <2 x float> %.sroa.07.0.vec.insert, float %20, i64 1
  %22 = tail call i32 @spwaterfallcf_push(ptr noundef %1, <2 x float> noundef %.sroa.07.4.vec.insert) #2
  %23 = tail call i32 @spwaterfallcf_push(ptr noundef %13, <2 x float> noundef %.sroa.07.4.vec.insert) #2
  %24 = add nuw nsw i32 %.171, 1
  %exitcond72.not = icmp eq i32 %24, 783360
  br i1 %exitcond72.not, label %25, label %14, !llvm.loop !7

25:                                               ; preds = %14
  %26 = tail call i32 @spwaterfallcf_get_num_freq(ptr noundef %1) #2
  %27 = tail call i32 @spwaterfallcf_get_num_freq(ptr noundef %13) #2
  %.not = icmp eq i32 %26, %27
  br i1 %.not, label %33, label %28

28:                                               ; preds = %25
  %29 = tail call i32 @spwaterfallcf_get_num_freq(ptr noundef %1) #2
  %30 = uitofp i32 %29 to double
  %31 = tail call i32 @spwaterfallcf_get_num_freq(ptr noundef %13) #2
  %32 = uitofp i32 %31 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 179, ptr noundef nonnull @.str.33, double noundef %30, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.34, double noundef %32) #2
  br label %34

33:                                               ; preds = %25
  tail call void (...) @liquid_autotest_passed() #2
  br label %34

34:                                               ; preds = %33, %28
  %35 = tail call i32 @spwaterfallcf_get_num_time(ptr noundef %1) #2
  %36 = tail call i32 @spwaterfallcf_get_num_time(ptr noundef %13) #2
  %.not63 = icmp eq i32 %35, %36
  br i1 %.not63, label %42, label %37

37:                                               ; preds = %34
  %38 = tail call i32 @spwaterfallcf_get_num_time(ptr noundef %1) #2
  %39 = uitofp i32 %38 to double
  %40 = tail call i32 @spwaterfallcf_get_num_time(ptr noundef %13) #2
  %41 = uitofp i32 %40 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 180, ptr noundef nonnull @.str.35, double noundef %39, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.36, double noundef %41) #2
  br label %43

42:                                               ; preds = %34
  tail call void (...) @liquid_autotest_passed() #2
  br label %43

43:                                               ; preds = %42, %37
  %44 = tail call i32 @spwaterfallcf_get_window_len(ptr noundef %1) #2
  %45 = tail call i32 @spwaterfallcf_get_window_len(ptr noundef %13) #2
  %.not64 = icmp eq i32 %44, %45
  br i1 %.not64, label %51, label %46

46:                                               ; preds = %43
  %47 = tail call i32 @spwaterfallcf_get_window_len(ptr noundef %1) #2
  %48 = uitofp i32 %47 to double
  %49 = tail call i32 @spwaterfallcf_get_window_len(ptr noundef %13) #2
  %50 = uitofp i32 %49 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 181, ptr noundef nonnull @.str.37, double noundef %48, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.38, double noundef %50) #2
  br label %52

51:                                               ; preds = %43
  tail call void (...) @liquid_autotest_passed() #2
  br label %52

52:                                               ; preds = %51, %46
  %53 = tail call i32 @spwaterfallcf_get_delay(ptr noundef %1) #2
  %54 = tail call i32 @spwaterfallcf_get_delay(ptr noundef %13) #2
  %.not65 = icmp eq i32 %53, %54
  br i1 %.not65, label %60, label %55

55:                                               ; preds = %52
  %56 = tail call i32 @spwaterfallcf_get_delay(ptr noundef %1) #2
  %57 = uitofp i32 %56 to double
  %58 = tail call i32 @spwaterfallcf_get_delay(ptr noundef %13) #2
  %59 = uitofp i32 %58 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 182, ptr noundef nonnull @.str.39, double noundef %57, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.40, double noundef %59) #2
  br label %61

60:                                               ; preds = %52
  tail call void (...) @liquid_autotest_passed() #2
  br label %61

61:                                               ; preds = %60, %55
  %62 = tail call i32 @spwaterfallcf_get_wtype(ptr noundef %1) #2
  %63 = tail call i32 @spwaterfallcf_get_wtype(ptr noundef %13) #2
  %.not66 = icmp eq i32 %62, %63
  br i1 %.not66, label %69, label %64

64:                                               ; preds = %61
  %65 = tail call i32 @spwaterfallcf_get_wtype(ptr noundef %1) #2
  %66 = sitofp i32 %65 to double
  %67 = tail call i32 @spwaterfallcf_get_wtype(ptr noundef %13) #2
  %68 = sitofp i32 %67 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 183, ptr noundef nonnull @.str.41, double noundef %66, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.42, double noundef %68) #2
  br label %70

69:                                               ; preds = %61
  tail call void (...) @liquid_autotest_passed() #2
  br label %70

70:                                               ; preds = %69, %64
  %71 = tail call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %1) #2
  %72 = tail call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %13) #2
  %.not67 = icmp eq i64 %71, %72
  br i1 %.not67, label %78, label %73

73:                                               ; preds = %70
  %74 = tail call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %1) #2
  %75 = uitofp i64 %74 to double
  %76 = tail call i64 @spwaterfallcf_get_num_samples_total(ptr noundef %13) #2
  %77 = uitofp i64 %76 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 184, ptr noundef nonnull @.str.43, double noundef %75, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.44, double noundef %77) #2
  br label %79

78:                                               ; preds = %70
  tail call void (...) @liquid_autotest_passed() #2
  br label %79

79:                                               ; preds = %78, %73
  %80 = tail call ptr @spwaterfallcf_get_psd(ptr noundef %1) #2
  %81 = tail call ptr @spwaterfallcf_get_psd(ptr noundef %13) #2
  %82 = tail call i32 @spwaterfallcf_get_num_time(ptr noundef %1) #2
  %83 = mul i32 %82, 960
  %84 = tail call i32 @liquid_autotest_same_data(ptr noundef %80, ptr noundef %81, i32 noundef %83) #2
  %.not68 = icmp eq i32 %84, 0
  br i1 %.not68, label %85, label %88

85:                                               ; preds = %79
  tail call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str, i32 noundef 190, ptr noundef nonnull @.str.45) #2
  %86 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !8
  %.not69 = icmp eq i32 %86, 0
  br i1 %.not69, label %89, label %87

87:                                               ; preds = %85
  tail call void @liquid_autotest_print_array(ptr noundef %80, i32 noundef %83) #2
  tail call void @liquid_autotest_print_array(ptr noundef %81, i32 noundef %83) #2
  br label %89

88:                                               ; preds = %79
  tail call void (...) @liquid_autotest_passed() #2
  br label %89

89:                                               ; preds = %85, %87, %88
  %90 = tail call i32 @spwaterfallcf_destroy(ptr noundef %1) #2
  %91 = tail call i32 @spwaterfallcf_destroy(ptr noundef %13) #2
  ret void
}

declare ptr @spwaterfallcf_copy(ptr noundef) local_unnamed_addr #0

declare i32 @liquid_autotest_same_data(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @liquid_autotest_failed_msg(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare void @liquid_autotest_print_array(ptr noundef, i32 noundef) local_unnamed_addr #0

attributes #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 = { 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 #2 = { 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}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}


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