; LLVM IR from jgaeddert/liquid-dsp :: src/framing/tests (qdsync_cccf_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"

%struct.autotest_qdsync_s = type { i32, ptr, i32, i32 }

@liquid_autotest_verbose = external global i32, align 4
@.str.2 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @autotest_qdsync_callback(ptr noundef, i32 noundef, ptr noundef) #0

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

declare i32 @printf(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: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

declare ptr @qdsync_cccf_create_linear(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, ptr noundef, ptr noundef) #2

declare i32 @qdsync_cccf_set_range(ptr noundef, float noundef) #2

declare ptr @firinterp_crcf_create_prototype(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) #2

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

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

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

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

; Function Attrs: nounwind
declare float @log10f(float noundef) #4

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

declare void @liquid_autotest_passed(...) #2

declare i32 @qdsync_cccf_destroy(ptr noundef) #2

declare i32 @firinterp_crcf_destroy(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_qdsync_set_buf_len() #6 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca float, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca { float, float }, align 4
  %11 = alloca { float, float }, align 4
  %12 = alloca %struct.autotest_qdsync_s, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca { float, float }, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca { float, float }, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #7
  store i32 2400, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 2, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 12, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store float 0x3FD3333340000000, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 7, ptr %5, align 4, !tbaa !5
  %20 = load i32, ptr %1, align 4, !tbaa !5
  %21 = zext i32 %20 to i64
  %22 = call ptr @llvm.stacksave.p0()
  store ptr %22, ptr %6, align 8
  %23 = alloca { float, float }, i64 %21, align 16
  store i64 %21, ptr %7, align 8
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = zext i32 %24 to i64
  %26 = alloca { float, float }, i64 %25, align 16
  store i64 %25, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %51, %0
  %28 = load i32, ptr %9, align 4, !tbaa !5
  %29 = load i32, ptr %1, align 4, !tbaa !5
  %30 = icmp ult i32 %28, %29
  br i1 %30, label %31, label %54

31:                                               ; preds = %27
  %32 = call float (...) @randf()
  %33 = fpext float %32 to double
  %34 = fmul double 0.000000e+00, %33
  %35 = fmul double 0x401921FB54442D18, %33
  %36 = fptrunc double %34 to float
  %37 = fptrunc double %35 to float
  %38 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %39 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  store float %36, ptr %38, align 4
  store float %37, ptr %39, align 4
  %40 = load <2 x float>, ptr %10, align 4
  %41 = call <2 x float> @cexpf(<2 x float> noundef %40) #7
  store <2 x float> %41, ptr %11, align 4
  %42 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %43 = load float, ptr %42, align 4
  %44 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  %45 = load float, ptr %44, align 4
  %46 = load i32, ptr %9, align 4, !tbaa !5
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds { float, float }, ptr %23, i64 %47
  %49 = getelementptr inbounds { float, float }, ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds { float, float }, ptr %48, i32 0, i32 1
  store float %43, ptr %49, align 8
  store float %45, ptr %50, align 4
  br label %51

51:                                               ; preds = %31
  %52 = load i32, ptr %9, align 4, !tbaa !5
  %53 = add i32 %52, 1
  store i32 %53, ptr %9, align 4, !tbaa !5
  br label %27, !llvm.loop !11

54:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #7
  %55 = getelementptr inbounds %struct.autotest_qdsync_s, ptr %12, i32 0, i32 0
  store i32 0, ptr %55, align 8, !tbaa !13
  %56 = getelementptr inbounds %struct.autotest_qdsync_s, ptr %12, i32 0, i32 1
  store ptr %26, ptr %56, align 8, !tbaa !16
  %57 = getelementptr inbounds %struct.autotest_qdsync_s, ptr %12, i32 0, i32 2
  %58 = load i32, ptr %1, align 4, !tbaa !5
  store i32 %58, ptr %57, align 8, !tbaa !17
  %59 = getelementptr inbounds %struct.autotest_qdsync_s, ptr %12, i32 0, i32 3
  store i32 0, ptr %59, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = load float, ptr %4, align 4, !tbaa !9
  %64 = call ptr @qdsync_cccf_create_linear(ptr noundef %23, i32 noundef 120, i32 noundef %60, i32 noundef %61, i32 noundef %62, float noundef %63, ptr noundef @autotest_qdsync_callback, ptr noundef %12)
  store ptr %64, ptr %13, align 8, !tbaa !19
  %65 = load ptr, ptr %13, align 8, !tbaa !19
  %66 = call i32 @qdsync_cccf_set_range(ptr noundef %65, float noundef 0x3F50624DE0000000)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = load i32, ptr %2, align 4, !tbaa !5
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = load float, ptr %4, align 4, !tbaa !9
  %71 = call ptr @firinterp_crcf_create_prototype(i32 noundef %67, i32 noundef %68, i32 noundef %69, float noundef %70, float noundef 0.000000e+00)
  store ptr %71, ptr %14, align 8, !tbaa !19
  %72 = load i32, ptr %2, align 4, !tbaa !5
  %73 = zext i32 %72 to i64
  %74 = alloca { float, float }, i64 %73, align 16
  store i64 %73, ptr %15, align 8
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %118, %54
  %76 = load i32, ptr %9, align 4, !tbaa !5
  %77 = load i32, ptr %1, align 4, !tbaa !5
  %78 = load i32, ptr %3, align 4, !tbaa !5
  %79 = mul i32 20, %78
  %80 = add i32 %77, %79
  %81 = add i32 %80, 200
  %82 = icmp ult i32 %76, %81
  br i1 %82, label %83, label %121

83:                                               ; preds = %75
  %84 = load ptr, ptr %14, align 8, !tbaa !19
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = load i32, ptr %1, align 4, !tbaa !5
  %87 = icmp ult i32 %85, %86
  br i1 %87, label %88, label %96

88:                                               ; preds = %83
  %89 = load i32, ptr %9, align 4, !tbaa !5
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds { float, float }, ptr %23, i64 %90
  %92 = getelementptr inbounds { float, float }, ptr %91, i32 0, i32 0
  %93 = load float, ptr %92, align 8
  %94 = getelementptr inbounds { float, float }, ptr %91, i32 0, i32 1
  %95 = load float, ptr %94, align 4
  br label %97

96:                                               ; preds = %83
  br label %97

97:                                               ; preds = %96, %88
  %98 = phi float [ %93, %88 ], [ 0.000000e+00, %96 ]
  %99 = phi float [ %95, %88 ], [ 0.000000e+00, %96 ]
  %100 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %101 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  store float %98, ptr %100, align 4
  store float %99, ptr %101, align 4
  %102 = load <2 x float>, ptr %16, align 4
  %103 = call i32 @firinterp_crcf_execute(ptr noundef %84, <2 x float> noundef %102, ptr noundef %74)
  %104 = load ptr, ptr %13, align 8, !tbaa !19
  %105 = load i32, ptr %2, align 4, !tbaa !5
  %106 = call i32 @qdsync_cccf_execute(ptr noundef %104, ptr noundef %74, i32 noundef %105)
  %107 = load i32, ptr %9, align 4, !tbaa !5
  %108 = urem i32 %107, 7
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %117

110:                                              ; preds = %97
  %111 = load ptr, ptr %13, align 8, !tbaa !19
  %112 = load i32, ptr %9, align 4, !tbaa !5
  %113 = urem i32 %112, 11
  %114 = mul i32 17, %113
  %115 = add i32 13, %114
  %116 = call i32 @qdsync_cccf_set_buf_len(ptr noundef %111, i32 noundef %115)
  br label %117

117:                                              ; preds = %110, %97
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %9, align 4, !tbaa !5
  %120 = add i32 %119, 1
  store i32 %120, ptr %9, align 4, !tbaa !5
  br label %75, !llvm.loop !20

121:                                              ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store float 0.000000e+00, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %143, %121
  %123 = load i32, ptr %9, align 4, !tbaa !5
  %124 = load i32, ptr %1, align 4, !tbaa !5
  %125 = icmp ult i32 %123, %124
  br i1 %125, label %126, label %146

126:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %127 = load i32, ptr %9, align 4, !tbaa !5
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds { float, float }, ptr %26, i64 %128
  %130 = getelementptr inbounds { float, float }, ptr %129, i32 0, i32 0
  %131 = load float, ptr %130, align 8
  %132 = getelementptr inbounds { float, float }, ptr %129, i32 0, i32 1
  %133 = load float, ptr %132, align 4
  %134 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %135 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  store float %131, ptr %134, align 4
  store float %133, ptr %135, align 4
  %136 = load <2 x float>, ptr %19, align 4
  %137 = call float @cabsf(<2 x float> noundef %136) #7
  %138 = fsub float %137, 1.000000e+00
  store float %138, ptr %18, align 4, !tbaa !9
  %139 = load float, ptr %18, align 4, !tbaa !9
  %140 = load float, ptr %18, align 4, !tbaa !9
  %141 = load float, ptr %17, align 4, !tbaa !9
  %142 = call float @llvm.fmuladd.f32(float %139, float %140, float %141)
  store float %142, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %143

143:                                              ; preds = %126
  %144 = load i32, ptr %9, align 4, !tbaa !5
  %145 = add i32 %144, 1
  store i32 %145, ptr %9, align 4, !tbaa !5
  br label %122, !llvm.loop !21

146:                                              ; preds = %122
  %147 = load float, ptr %17, align 4, !tbaa !9
  %148 = load i32, ptr %1, align 4, !tbaa !5
  %149 = uitofp i32 %148 to float
  %150 = fdiv float %147, %149
  %151 = call float @log10f(float noundef %150) #7
  %152 = fmul float 1.000000e+01, %151
  store float %152, ptr %17, align 4, !tbaa !9
  %153 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %159

155:                                              ; preds = %146
  %156 = load float, ptr %17, align 4, !tbaa !9
  %157 = fpext float %156 to double
  %158 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef %157)
  br label %159

159:                                              ; preds = %155, %146
  %160 = load float, ptr %17, align 4, !tbaa !9
  %161 = fcmp oge float %160, -3.000000e+01
  br i1 %161, label %162, label %165

162:                                              ; preds = %159
  %163 = load float, ptr %17, align 4, !tbaa !9
  %164 = fpext float %163 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.2, i32 noundef 213, ptr noundef @.str.3, double noundef %164, ptr noundef @.str.4, ptr noundef @.str.5, double noundef -3.000000e+01)
  br label %166

165:                                              ; preds = %159
  call void (...) @liquid_autotest_passed()
  br label %166

166:                                              ; preds = %165, %162
  %167 = load ptr, ptr %13, align 8, !tbaa !19
  %168 = call i32 @qdsync_cccf_destroy(ptr noundef %167)
  %169 = load ptr, ptr %14, align 8, !tbaa !19
  %170 = call i32 @firinterp_crcf_destroy(ptr noundef %169)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  %171 = load ptr, ptr %6, align 8
  call void @llvm.stackrestore.p0(ptr %171)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
  ret void
}

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

declare float @randf(...) #2

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

attributes #0 = { nounwind 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 = { nocallback nofree nosync nounwind willreturn }
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 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 #7 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 0}
!14 = !{!"", !6, i64 0, !15, i64 8, !6, i64 16, !6, i64 20}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{!14, !6, i64 16}
!18 = !{!14, !6, i64 20}
!19 = !{!15, !15, i64 0}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.autotest_qdsync_s = type { i32, ptr, i32, i32 }

@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @autotest_qdsync_callback(ptr noundef, i32 noundef, ptr noundef) #0

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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

declare ptr @qdsync_cccf_create_linear(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @qdsync_cccf_set_range(ptr noundef, float noundef) local_unnamed_addr #3

declare ptr @firinterp_crcf_create_prototype(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #3

declare i32 @firinterp_crcf_execute(ptr noundef, <2 x float> noundef, ptr noundef) local_unnamed_addr #3

declare i32 @qdsync_cccf_execute(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @log10f(float noundef) local_unnamed_addr #6

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

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

declare i32 @qdsync_cccf_destroy(ptr noundef) local_unnamed_addr #3

declare i32 @firinterp_crcf_destroy(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @autotest_qdsync_set_buf_len() local_unnamed_addr #7 {
  %1 = alloca %struct.autotest_qdsync_s, align 8
  %2 = alloca [2400 x { float, float }], align 16
  %3 = alloca [2400 x { float, float }], align 16
  br label %4

4:                                                ; preds = %0, %4
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %4 ]
  %5 = tail call float (...) @randf() #8
  %6 = fpext float %5 to double
  %7 = fmul double %6, 0x401921FB54442D18
  %8 = fmul float %5, 0.000000e+00
  %9 = fptrunc double %7 to float
  %.sroa.017.0.vec.insert = insertelement <2 x float> poison, float %8, i64 0
  %.sroa.017.4.vec.insert = insertelement <2 x float> %.sroa.017.0.vec.insert, float %9, i64 1
  %10 = tail call <2 x float> @cexpf(<2 x float> noundef %.sroa.017.4.vec.insert) #8
  %11 = getelementptr inbounds { float, float }, ptr %2, i64 %indvars.iv
  store <2 x float> %10, ptr %11, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 2400
  br i1 %exitcond.not, label %12, label %4, !llvm.loop !5

12:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #8
  store i32 0, ptr %1, align 8, !tbaa !7
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  store ptr %3, ptr %13, align 8, !tbaa !13
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  store i32 2400, ptr %14, align 8, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %1, i64 20
  store i32 0, ptr %15, align 4, !tbaa !15
  %16 = call ptr @qdsync_cccf_create_linear(ptr noundef nonnull %2, i32 noundef 120, i32 noundef 7, i32 noundef 2, i32 noundef 12, float noundef 0x3FD3333340000000, ptr noundef nonnull @autotest_qdsync_callback, ptr noundef nonnull %1) #8
  %17 = call i32 @qdsync_cccf_set_range(ptr noundef %16, float noundef 0x3F50624DE0000000) #8
  %18 = call ptr @firinterp_crcf_create_prototype(i32 noundef 7, i32 noundef 2, i32 noundef 12, float noundef 0x3FD3333340000000, float noundef 0.000000e+00) #8
  %19 = alloca [2 x { float, float }], align 16
  br label %20

20:                                               ; preds = %12, %35
  %indvars.iv60 = phi i64 [ 0, %12 ], [ %indvars.iv.next61, %35 ]
  %21 = icmp ult i64 %indvars.iv60, 2400
  br i1 %21, label %22, label %25

22:                                               ; preds = %20
  %23 = getelementptr inbounds { float, float }, ptr %2, i64 %indvars.iv60
  %24 = load <2 x float>, ptr %23, align 8
  br label %25

25:                                               ; preds = %20, %22
  %26 = phi <2 x float> [ %24, %22 ], [ zeroinitializer, %20 ]
  %27 = call i32 @firinterp_crcf_execute(ptr noundef %18, <2 x float> noundef %26, ptr noundef nonnull %19) #8
  %28 = call i32 @qdsync_cccf_execute(ptr noundef %16, ptr noundef nonnull %19, i32 noundef 2) #8
  %.lhs.trunc = trunc i64 %indvars.iv60 to i16
  %29 = urem i16 %.lhs.trunc, 7
  %30 = icmp eq i16 %29, 0
  br i1 %30, label %31, label %35

31:                                               ; preds = %25
  %32 = urem i16 %.lhs.trunc, 11
  %narrow = mul nuw nsw i16 %32, 17
  %narrow54 = add nuw nsw i16 %narrow, 13
  %33 = zext nneg i16 %narrow54 to i32
  %34 = call i32 @qdsync_cccf_set_buf_len(ptr noundef %16, i32 noundef %33) #8
  br label %35

35:                                               ; preds = %25, %31
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %exitcond63.not = icmp eq i64 %indvars.iv.next61, 2840
  br i1 %exitcond63.not, label %.preheader, label %20, !llvm.loop !16

.preheader:                                       ; preds = %35, %.preheader
  %indvars.iv64 = phi i64 [ %indvars.iv.next65, %.preheader ], [ 0, %35 ]
  %.05057 = phi float [ %40, %.preheader ], [ 0.000000e+00, %35 ]
  %36 = getelementptr inbounds { float, float }, ptr %3, i64 %indvars.iv64
  %37 = load <2 x float>, ptr %36, align 8
  %38 = call float @cabsf(<2 x float> noundef %37) #8
  %39 = fadd float %38, -1.000000e+00
  %40 = call float @llvm.fmuladd.f32(float %39, float %39, float %.05057)
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %exitcond67.not = icmp eq i64 %indvars.iv.next65, 2400
  br i1 %exitcond67.not, label %41, label %.preheader, !llvm.loop !17

41:                                               ; preds = %.preheader
  %42 = fdiv float %40, 2.400000e+03
  %43 = call float @log10f(float noundef %42) #8
  %44 = fmul float %43, 1.000000e+01
  %45 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !18
  %.not = icmp eq i32 %45, 0
  br i1 %.not, label %49, label %46

46:                                               ; preds = %41
  %47 = fpext float %44 to double
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef %47)
  br label %49

49:                                               ; preds = %46, %41
  %50 = fcmp ult float %44, -3.000000e+01
  br i1 %50, label %53, label %51

51:                                               ; preds = %49
  %52 = fpext float %44 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 213, ptr noundef nonnull @.str.3, double noundef %52, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, double noundef -3.000000e+01) #8
  br label %54

53:                                               ; preds = %49
  call void (...) @liquid_autotest_passed() #8
  br label %54

54:                                               ; preds = %53, %51
  %55 = call i32 @qdsync_cccf_destroy(ptr noundef %16) #8
  %56 = call i32 @firinterp_crcf_destroy(ptr noundef %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  ret void
}

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

declare float @randf(...) local_unnamed_addr #3

declare i32 @qdsync_cccf_set_buf_len(ptr noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { nounwind 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 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { mustprogress nofree nounwind willreturn memory(write) "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 #7 = { 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 #8 = { 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 = !{!8, !9, i64 0}
!8 = !{!"", !9, i64 0, !12, i64 8, !9, i64 16, !9, i64 20}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!8, !12, i64 8}
!14 = !{!8, !9, i64 16}
!15 = !{!8, !9, i64 20}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !6}
!18 = !{!9, !9, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass