; LLVM IR from jgaeddert/liquid-dsp :: src/filter/tests (groupdelay_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 [93 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 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
@__const.autotest_iir_groupdelay_sos_n8.B = external hidden unnamed_addr constant [12 x float], align 16
@__const.autotest_iir_groupdelay_sos_n8.A = external hidden unnamed_addr constant [12 x float], align 16
@__const.autotest_iir_groupdelay_sos_n8.fc = external hidden unnamed_addr constant [7 x float], align 16
@__const.autotest_iir_groupdelay_sos_n8.g0 = external hidden unnamed_addr constant [7 x float], align 16

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

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

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

declare void @liquid_autotest_passed(...) #4

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

declare float @iirfilt_rrrf_groupdelay(ptr noundef, float noundef) #4

declare i32 @iirfilt_rrrf_destroy(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @autotest_iir_groupdelay_sos_n8() #5 {
  %1 = alloca [12 x float], align 16
  %2 = alloca [12 x float], align 16
  %3 = alloca float, align 4
  %4 = alloca i32, align 4
  %5 = alloca [7 x float], align 16
  %6 = alloca [7 x float], align 16
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 48, ptr %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.autotest_iir_groupdelay_sos_n8.B, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.autotest_iir_groupdelay_sos_n8.A, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store float 0x3F50624DE0000000, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 28, ptr %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.autotest_iir_groupdelay_sos_n8.fc, i64 28, i1 false)
  call void @llvm.lifetime.start.p0(i64 28, ptr %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.autotest_iir_groupdelay_sos_n8.g0, i64 28, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %9 = getelementptr inbounds [12 x float], ptr %1, i64 0, i64 0
  %10 = getelementptr inbounds [12 x float], ptr %2, i64 0, i64 0
  %11 = call ptr @iirfilt_rrrf_create_sos(ptr noundef %9, ptr noundef %10, i32 noundef 4)
  store ptr %11, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %4, align 4, !tbaa !11
  br label %12

12:                                               ; preds = %108, %0
  %13 = load i32, ptr %4, align 4, !tbaa !11
  %14 = icmp ult i32 %13, 7
  br i1 %14, label %15, label %111

15:                                               ; preds = %12
  %16 = load ptr, ptr %7, align 8, !tbaa !9
  %17 = load i32, ptr %4, align 4, !tbaa !11
  %18 = zext i32 %17 to i64
  %19 = getelementptr inbounds [7 x float], ptr %5, i64 0, i64 %18
  %20 = load float, ptr %19, align 4, !tbaa !5
  %21 = call float @iirfilt_rrrf_groupdelay(ptr noundef %16, float noundef %20)
  store float %21, ptr %8, align 4, !tbaa !5
  %22 = load float, ptr %8, align 4, !tbaa !5
  %23 = load i32, ptr %4, align 4, !tbaa !11
  %24 = zext i32 %23 to i64
  %25 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %24
  %26 = load float, ptr %25, align 4, !tbaa !5
  %27 = fsub float %22, %26
  %28 = fpext float %27 to double
  %29 = load float, ptr %8, align 4, !tbaa !5
  %30 = load i32, ptr %4, align 4, !tbaa !11
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %31
  %33 = load float, ptr %32, align 4, !tbaa !5
  %34 = fsub float %29, %33
  %35 = fpext float %34 to double
  %36 = load float, ptr %8, align 4, !tbaa !5
  %37 = load i32, ptr %4, align 4, !tbaa !11
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %38
  %40 = load float, ptr %39, align 4, !tbaa !5
  %41 = fsub float %36, %40
  %42 = fpext float %41 to double
  %43 = load float, ptr %8, align 4, !tbaa !5
  %44 = load i32, ptr %4, align 4, !tbaa !11
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %45
  %47 = load float, ptr %46, align 4, !tbaa !5
  %48 = fsub float %43, %47
  %49 = fpext float %48 to double
  %50 = call double @llvm.fmuladd.f64(double %28, double %35, double 0.000000e+00)
  %51 = call double @sqrt(double noundef %50) #6
  %52 = load float, ptr %3, align 4, !tbaa !5
  %53 = fpext float %52 to double
  %54 = fcmp ogt double %51, %53
  br i1 %54, label %73, label %55

55:                                               ; preds = %15
  %56 = load float, ptr %8, align 4, !tbaa !5
  %57 = call i1 @llvm.is.fpclass.f32(float %56, i32 3)
  br i1 %57, label %73, label %58

58:                                               ; preds = %55
  %59 = load float, ptr %8, align 4, !tbaa !5
  %60 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %60, label %73, label %61

61:                                               ; preds = %58
  %62 = load i32, ptr %4, align 4, !tbaa !11
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %63
  %65 = load float, ptr %64, align 4, !tbaa !5
  %66 = call i1 @llvm.is.fpclass.f32(float %65, i32 3)
  br i1 %66, label %73, label %67

67:                                               ; preds = %61
  %68 = load i32, ptr %4, align 4, !tbaa !11
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %69
  %71 = load float, ptr %70, align 4, !tbaa !5
  %72 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %72, label %73, label %106

73:                                               ; preds = %67, %61, %58, %55, %15
  %74 = load float, ptr %8, align 4, !tbaa !5
  %75 = load i32, ptr %4, align 4, !tbaa !11
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %76
  %78 = load float, ptr %77, align 4, !tbaa !5
  %79 = fsub float %74, %78
  %80 = fpext float %79 to double
  %81 = load float, ptr %8, align 4, !tbaa !5
  %82 = load i32, ptr %4, align 4, !tbaa !11
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %83
  %85 = load float, ptr %84, align 4, !tbaa !5
  %86 = fsub float %81, %85
  %87 = fpext float %86 to double
  %88 = load float, ptr %8, align 4, !tbaa !5
  %89 = load i32, ptr %4, align 4, !tbaa !11
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %90
  %92 = load float, ptr %91, align 4, !tbaa !5
  %93 = fsub float %88, %92
  %94 = fpext float %93 to double
  %95 = load float, ptr %8, align 4, !tbaa !5
  %96 = load i32, ptr %4, align 4, !tbaa !11
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %97
  %99 = load float, ptr %98, align 4, !tbaa !5
  %100 = fsub float %95, %99
  %101 = fpext float %100 to double
  %102 = call double @llvm.fmuladd.f64(double %80, double %87, double 0.000000e+00)
  %103 = call double @sqrt(double noundef %102) #6
  %104 = load float, ptr %3, align 4, !tbaa !5
  %105 = fpext float %104 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 234, ptr noundef @.str.1, double noundef %103, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %105)
  br label %107

106:                                              ; preds = %67
  call void (...) @liquid_autotest_passed()
  br label %107

107:                                              ; preds = %106, %73
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %4, align 4, !tbaa !11
  %110 = add i32 %109, 1
  store i32 %110, ptr %4, align 4, !tbaa !11
  br label %12, !llvm.loop !13

111:                                              ; preds = %12
  %112 = load ptr, ptr %7, align 8, !tbaa !9
  %113 = call i32 @iirfilt_rrrf_destroy(ptr noundef %112)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 28, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 28, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %1) #6
  ret void
}

declare ptr @iirfilt_rrrf_create_sos(ptr noundef, ptr noundef, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind 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 #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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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 [93 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 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
@__const.autotest_iir_groupdelay_sos_n8.B = external hidden unnamed_addr constant [12 x float], align 16
@__const.autotest_iir_groupdelay_sos_n8.A = external hidden unnamed_addr constant [12 x float], align 16
@__const.autotest_iir_groupdelay_sos_n8.fc = external hidden unnamed_addr constant [7 x float], align 16
@__const.autotest_iir_groupdelay_sos_n8.g0 = external hidden unnamed_addr constant [7 x float], align 16

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

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

declare float @iirfilt_rrrf_groupdelay(ptr noundef, float noundef) local_unnamed_addr #3

declare i32 @iirfilt_rrrf_destroy(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @autotest_iir_groupdelay_sos_n8() local_unnamed_addr #4 {
  %1 = alloca [12 x float], align 16
  %2 = alloca [12 x float], align 16
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %1, ptr noundef nonnull align 16 dereferenceable(48) @__const.autotest_iir_groupdelay_sos_n8.B, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %2, ptr noundef nonnull align 16 dereferenceable(48) @__const.autotest_iir_groupdelay_sos_n8.A, i64 48, i1 false)
  %3 = call ptr @iirfilt_rrrf_create_sos(ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef 4) #6
  %4 = load float, ptr @__const.autotest_iir_groupdelay_sos_n8.fc, align 16, !tbaa !5
  %5 = call float @iirfilt_rrrf_groupdelay(ptr noundef %3, float noundef %4) #6
  %6 = load float, ptr @__const.autotest_iir_groupdelay_sos_n8.g0, align 16, !tbaa !5
  %7 = fsub float %5, %6
  %8 = fpext float %7 to double
  %9 = call double @llvm.fmuladd.f64(double %8, double %8, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %9)
  %10 = fcmp ogt double %sqrt, 0x3F50624DE0000000
  %11 = fcmp uno float %5, 0.000000e+00
  %or.cond = select i1 %10, i1 true, i1 %11
  %12 = fcmp uno float %6, 0.000000e+00
  %or.cond26 = select i1 %or.cond, i1 true, i1 %12
  br i1 %or.cond26, label %13, label %14

13:                                               ; preds = %0
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 234, ptr noundef nonnull @.str.1, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %15

14:                                               ; preds = %0
  call void (...) @liquid_autotest_passed() #6
  br label %15

15:                                               ; preds = %13, %14
  %16 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iir_groupdelay_sos_n8.fc, i64 4), align 4, !tbaa !5
  %17 = call float @iirfilt_rrrf_groupdelay(ptr noundef %3, float noundef %16) #6
  %18 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iir_groupdelay_sos_n8.g0, i64 4), align 4, !tbaa !5
  %19 = fsub float %17, %18
  %20 = fpext float %19 to double
  %21 = call double @llvm.fmuladd.f64(double %20, double %20, double 0.000000e+00)
  %sqrt.1 = call double @llvm.sqrt.f64(double %21)
  %22 = fcmp ogt double %sqrt.1, 0x3F50624DE0000000
  %23 = fcmp uno float %17, 0.000000e+00
  %or.cond.1 = select i1 %22, i1 true, i1 %23
  %24 = fcmp uno float %18, 0.000000e+00
  %or.cond26.1 = select i1 %or.cond.1, i1 true, i1 %24
  br i1 %or.cond26.1, label %26, label %25

25:                                               ; preds = %15
  call void (...) @liquid_autotest_passed() #6
  br label %27

26:                                               ; preds = %15
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 234, ptr noundef nonnull @.str.1, double noundef %sqrt.1, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %27

27:                                               ; preds = %26, %25
  %28 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iir_groupdelay_sos_n8.fc, i64 8), align 8, !tbaa !5
  %29 = call float @iirfilt_rrrf_groupdelay(ptr noundef %3, float noundef %28) #6
  %30 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iir_groupdelay_sos_n8.g0, i64 8), align 8, !tbaa !5
  %31 = fsub float %29, %30
  %32 = fpext float %31 to double
  %33 = call double @llvm.fmuladd.f64(double %32, double %32, double 0.000000e+00)
  %sqrt.2 = call double @llvm.sqrt.f64(double %33)
  %34 = fcmp ogt double %sqrt.2, 0x3F50624DE0000000
  %35 = fcmp uno float %29, 0.000000e+00
  %or.cond.2 = select i1 %34, i1 true, i1 %35
  %36 = fcmp uno float %30, 0.000000e+00
  %or.cond26.2 = select i1 %or.cond.2, i1 true, i1 %36
  br i1 %or.cond26.2, label %38, label %37

37:                                               ; preds = %27
  call void (...) @liquid_autotest_passed() #6
  br label %39

38:                                               ; preds = %27
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 234, ptr noundef nonnull @.str.1, double noundef %sqrt.2, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %39

39:                                               ; preds = %38, %37
  %40 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iir_groupdelay_sos_n8.fc, i64 12), align 4, !tbaa !5
  %41 = call float @iirfilt_rrrf_groupdelay(ptr noundef %3, float noundef %40) #6
  %42 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iir_groupdelay_sos_n8.g0, i64 12), align 4, !tbaa !5
  %43 = fsub float %41, %42
  %44 = fpext float %43 to double
  %45 = call double @llvm.fmuladd.f64(double %44, double %44, double 0.000000e+00)
  %sqrt.3 = call double @llvm.sqrt.f64(double %45)
  %46 = fcmp ogt double %sqrt.3, 0x3F50624DE0000000
  %47 = fcmp uno float %41, 0.000000e+00
  %or.cond.3 = select i1 %46, i1 true, i1 %47
  %48 = fcmp uno float %42, 0.000000e+00
  %or.cond26.3 = select i1 %or.cond.3, i1 true, i1 %48
  br i1 %or.cond26.3, label %50, label %49

49:                                               ; preds = %39
  call void (...) @liquid_autotest_passed() #6
  br label %51

50:                                               ; preds = %39
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 234, ptr noundef nonnull @.str.1, double noundef %sqrt.3, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %51

51:                                               ; preds = %50, %49
  %52 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iir_groupdelay_sos_n8.fc, i64 16), align 16, !tbaa !5
  %53 = call float @iirfilt_rrrf_groupdelay(ptr noundef %3, float noundef %52) #6
  %54 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iir_groupdelay_sos_n8.g0, i64 16), align 16, !tbaa !5
  %55 = fsub float %53, %54
  %56 = fpext float %55 to double
  %57 = call double @llvm.fmuladd.f64(double %56, double %56, double 0.000000e+00)
  %sqrt.4 = call double @llvm.sqrt.f64(double %57)
  %58 = fcmp ogt double %sqrt.4, 0x3F50624DE0000000
  %59 = fcmp uno float %53, 0.000000e+00
  %or.cond.4 = select i1 %58, i1 true, i1 %59
  %60 = fcmp uno float %54, 0.000000e+00
  %or.cond26.4 = select i1 %or.cond.4, i1 true, i1 %60
  br i1 %or.cond26.4, label %62, label %61

61:                                               ; preds = %51
  call void (...) @liquid_autotest_passed() #6
  br label %63

62:                                               ; preds = %51
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 234, ptr noundef nonnull @.str.1, double noundef %sqrt.4, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %63

63:                                               ; preds = %62, %61
  %64 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iir_groupdelay_sos_n8.fc, i64 20), align 4, !tbaa !5
  %65 = call float @iirfilt_rrrf_groupdelay(ptr noundef %3, float noundef %64) #6
  %66 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iir_groupdelay_sos_n8.g0, i64 20), align 4, !tbaa !5
  %67 = fsub float %65, %66
  %68 = fpext float %67 to double
  %69 = call double @llvm.fmuladd.f64(double %68, double %68, double 0.000000e+00)
  %sqrt.5 = call double @llvm.sqrt.f64(double %69)
  %70 = fcmp ogt double %sqrt.5, 0x3F50624DE0000000
  %71 = fcmp uno float %65, 0.000000e+00
  %or.cond.5 = select i1 %70, i1 true, i1 %71
  %72 = fcmp uno float %66, 0.000000e+00
  %or.cond26.5 = select i1 %or.cond.5, i1 true, i1 %72
  br i1 %or.cond26.5, label %74, label %73

73:                                               ; preds = %63
  call void (...) @liquid_autotest_passed() #6
  br label %75

74:                                               ; preds = %63
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 234, ptr noundef nonnull @.str.1, double noundef %sqrt.5, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %75

75:                                               ; preds = %74, %73
  %76 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iir_groupdelay_sos_n8.fc, i64 24), align 8, !tbaa !5
  %77 = call float @iirfilt_rrrf_groupdelay(ptr noundef %3, float noundef %76) #6
  %78 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iir_groupdelay_sos_n8.g0, i64 24), align 8, !tbaa !5
  %79 = fsub float %77, %78
  %80 = fpext float %79 to double
  %81 = call double @llvm.fmuladd.f64(double %80, double %80, double 0.000000e+00)
  %sqrt.6 = call double @llvm.sqrt.f64(double %81)
  %82 = fcmp ogt double %sqrt.6, 0x3F50624DE0000000
  %83 = fcmp uno float %77, 0.000000e+00
  %or.cond.6 = select i1 %82, i1 true, i1 %83
  %84 = fcmp uno float %78, 0.000000e+00
  %or.cond26.6 = select i1 %or.cond.6, i1 true, i1 %84
  br i1 %or.cond26.6, label %86, label %85

85:                                               ; preds = %75
  call void (...) @liquid_autotest_passed() #6
  br label %87

86:                                               ; preds = %75
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 234, ptr noundef nonnull @.str.1, double noundef %sqrt.6, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %87

87:                                               ; preds = %86, %85
  %88 = call i32 @iirfilt_rrrf_destroy(ptr noundef %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #6
  ret void
}

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 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 #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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


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