; 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_n3.b = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_iir_groupdelay_n3.a = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_iir_groupdelay_n3.fc = external hidden unnamed_addr constant [4 x float], align 16
@__const.autotest_iir_groupdelay_n3.g0 = external hidden unnamed_addr constant [4 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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_iir_groupdelay_n3() #5 {
  %1 = alloca [3 x float], align 4
  %2 = alloca [3 x float], align 4
  %3 = alloca float, align 4
  %4 = alloca i32, align 4
  %5 = alloca [4 x float], align 16
  %6 = alloca [4 x float], align 16
  %7 = alloca float, align 4
  %8 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %1, ptr align 4 @__const.autotest_iir_groupdelay_n3.b, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.autotest_iir_groupdelay_n3.a, i64 12, 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 16, ptr %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.autotest_iir_groupdelay_n3.fc, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.autotest_iir_groupdelay_n3.g0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %9

9:                                                ; preds = %106, %0
  %10 = load i32, ptr %4, align 4, !tbaa !9
  %11 = icmp ult i32 %10, 4
  br i1 %11, label %12, label %109

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

53:                                               ; preds = %12
  %54 = load float, ptr %7, align 4, !tbaa !5
  %55 = call i1 @llvm.is.fpclass.f32(float %54, i32 3)
  br i1 %55, label %71, label %56

56:                                               ; preds = %53
  %57 = load float, ptr %7, align 4, !tbaa !5
  %58 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %58, label %71, label %59

59:                                               ; preds = %56
  %60 = load i32, ptr %4, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 %61
  %63 = load float, ptr %62, align 4, !tbaa !5
  %64 = call i1 @llvm.is.fpclass.f32(float %63, i32 3)
  br i1 %64, label %71, label %65

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

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

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

105:                                              ; preds = %104, %71
  br label %106

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

109:                                              ; preds = %9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %110 = getelementptr inbounds [3 x float], ptr %1, i64 0, i64 0
  %111 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %112 = call ptr @iirfilt_rrrf_create(ptr noundef %110, i32 noundef 3, ptr noundef %111, i32 noundef 3)
  store ptr %112, ptr %8, align 8, !tbaa !13
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %209, %109
  %114 = load i32, ptr %4, align 4, !tbaa !9
  %115 = icmp ult i32 %114, 4
  br i1 %115, label %116, label %212

116:                                              ; preds = %113
  %117 = load ptr, ptr %8, align 8, !tbaa !13
  %118 = load i32, ptr %4, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 %119
  %121 = load float, ptr %120, align 4, !tbaa !5
  %122 = call float @iirfilt_rrrf_groupdelay(ptr noundef %117, float noundef %121)
  store float %122, ptr %7, align 4, !tbaa !5
  %123 = load float, ptr %7, align 4, !tbaa !5
  %124 = load i32, ptr %4, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 %125
  %127 = load float, ptr %126, align 4, !tbaa !5
  %128 = fsub float %123, %127
  %129 = fpext float %128 to double
  %130 = load float, ptr %7, align 4, !tbaa !5
  %131 = load i32, ptr %4, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 %132
  %134 = load float, ptr %133, align 4, !tbaa !5
  %135 = fsub float %130, %134
  %136 = fpext float %135 to double
  %137 = load float, ptr %7, align 4, !tbaa !5
  %138 = load i32, ptr %4, align 4, !tbaa !9
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 %139
  %141 = load float, ptr %140, align 4, !tbaa !5
  %142 = fsub float %137, %141
  %143 = fpext float %142 to double
  %144 = load float, ptr %7, align 4, !tbaa !5
  %145 = load i32, ptr %4, align 4, !tbaa !9
  %146 = zext i32 %145 to i64
  %147 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 %146
  %148 = load float, ptr %147, align 4, !tbaa !5
  %149 = fsub float %144, %148
  %150 = fpext float %149 to double
  %151 = call double @llvm.fmuladd.f64(double %129, double %136, double 0.000000e+00)
  %152 = call double @sqrt(double noundef %151) #6
  %153 = load float, ptr %3, align 4, !tbaa !5
  %154 = fpext float %153 to double
  %155 = fcmp ogt double %152, %154
  br i1 %155, label %174, label %156

156:                                              ; preds = %116
  %157 = load float, ptr %7, align 4, !tbaa !5
  %158 = call i1 @llvm.is.fpclass.f32(float %157, i32 3)
  br i1 %158, label %174, label %159

159:                                              ; preds = %156
  %160 = load float, ptr %7, align 4, !tbaa !5
  %161 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %161, label %174, label %162

162:                                              ; preds = %159
  %163 = load i32, ptr %4, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 %164
  %166 = load float, ptr %165, align 4, !tbaa !5
  %167 = call i1 @llvm.is.fpclass.f32(float %166, i32 3)
  br i1 %167, label %174, label %168

168:                                              ; preds = %162
  %169 = load i32, ptr %4, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 %170
  %172 = load float, ptr %171, align 4, !tbaa !5
  %173 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %173, label %174, label %207

174:                                              ; preds = %168, %162, %159, %156, %116
  %175 = load float, ptr %7, align 4, !tbaa !5
  %176 = load i32, ptr %4, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 %177
  %179 = load float, ptr %178, align 4, !tbaa !5
  %180 = fsub float %175, %179
  %181 = fpext float %180 to double
  %182 = load float, ptr %7, align 4, !tbaa !5
  %183 = load i32, ptr %4, align 4, !tbaa !9
  %184 = zext i32 %183 to i64
  %185 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 %184
  %186 = load float, ptr %185, align 4, !tbaa !5
  %187 = fsub float %182, %186
  %188 = fpext float %187 to double
  %189 = load float, ptr %7, align 4, !tbaa !5
  %190 = load i32, ptr %4, align 4, !tbaa !9
  %191 = zext i32 %190 to i64
  %192 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 %191
  %193 = load float, ptr %192, align 4, !tbaa !5
  %194 = fsub float %189, %193
  %195 = fpext float %194 to double
  %196 = load float, ptr %7, align 4, !tbaa !5
  %197 = load i32, ptr %4, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 %198
  %200 = load float, ptr %199, align 4, !tbaa !5
  %201 = fsub float %196, %200
  %202 = fpext float %201 to double
  %203 = call double @llvm.fmuladd.f64(double %181, double %188, double 0.000000e+00)
  %204 = call double @sqrt(double noundef %203) #6
  %205 = load float, ptr %3, align 4, !tbaa !5
  %206 = fpext float %205 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 106, ptr noundef @.str.1, double noundef %204, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %206)
  br label %208

207:                                              ; preds = %168
  call void (...) @liquid_autotest_passed()
  br label %208

208:                                              ; preds = %207, %174
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr %4, align 4, !tbaa !9
  %211 = add i32 %210, 1
  store i32 %211, ptr %4, align 4, !tbaa !9
  br label %113, !llvm.loop !15

212:                                              ; preds = %113
  %213 = load ptr, ptr %8, align 8, !tbaa !13
  %214 = call i32 @iirfilt_rrrf_destroy(ptr noundef %213)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 16, 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 12, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %1) #6
  ret void
}

declare float @iir_group_delay(ptr noundef, i32 noundef, ptr noundef, i32 noundef, float noundef) #4

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

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

declare i32 @iirfilt_rrrf_destroy(ptr 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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !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"

@.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_n3.b = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_iir_groupdelay_n3.a = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_iir_groupdelay_n3.fc = external hidden unnamed_addr constant [4 x float], align 16
@__const.autotest_iir_groupdelay_n3.g0 = external hidden unnamed_addr constant [4 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

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

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

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

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

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

25:                                               ; preds = %14
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 97, 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 %26

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

36:                                               ; preds = %26
  call void (...) @liquid_autotest_passed() #6
  br label %38

37:                                               ; preds = %26
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 97, 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 %38

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

48:                                               ; preds = %38
  call void (...) @liquid_autotest_passed() #6
  br label %50

49:                                               ; preds = %38
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 97, 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 %50

50:                                               ; preds = %49, %48
  %51 = call ptr @iirfilt_rrrf_create(ptr noundef nonnull %1, i32 noundef 3, ptr noundef nonnull %2, i32 noundef 3) #6
  %52 = call float @iirfilt_rrrf_groupdelay(ptr noundef %51, float noundef %3) #6
  %53 = fsub float %52, %5
  %54 = fpext float %53 to double
  %55 = call double @llvm.fmuladd.f64(double %54, double %54, double 0.000000e+00)
  %sqrt55 = call double @llvm.sqrt.f64(double %55)
  %56 = fcmp ogt double %sqrt55, 0x3F50624DE0000000
  %57 = fcmp uno float %52, 0.000000e+00
  %or.cond51 = select i1 %56, i1 true, i1 %57
  %or.cond53 = select i1 %or.cond51, i1 true, i1 %11
  br i1 %or.cond53, label %58, label %59

58:                                               ; preds = %50
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 106, ptr noundef nonnull @.str.1, double noundef %sqrt55, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %60

59:                                               ; preds = %50
  call void (...) @liquid_autotest_passed() #6
  br label %60

60:                                               ; preds = %58, %59
  %61 = call float @iirfilt_rrrf_groupdelay(ptr noundef %51, float noundef %15) #6
  %62 = fsub float %61, %17
  %63 = fpext float %62 to double
  %64 = call double @llvm.fmuladd.f64(double %63, double %63, double 0.000000e+00)
  %sqrt55.1 = call double @llvm.sqrt.f64(double %64)
  %65 = fcmp ogt double %sqrt55.1, 0x3F50624DE0000000
  %66 = fcmp uno float %61, 0.000000e+00
  %or.cond51.1 = select i1 %65, i1 true, i1 %66
  %or.cond53.1 = select i1 %or.cond51.1, i1 true, i1 %23
  br i1 %or.cond53.1, label %68, label %67

67:                                               ; preds = %60
  call void (...) @liquid_autotest_passed() #6
  br label %69

68:                                               ; preds = %60
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 106, ptr noundef nonnull @.str.1, double noundef %sqrt55.1, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %69

69:                                               ; preds = %68, %67
  %70 = call float @iirfilt_rrrf_groupdelay(ptr noundef %51, float noundef %27) #6
  %71 = fsub float %70, %29
  %72 = fpext float %71 to double
  %73 = call double @llvm.fmuladd.f64(double %72, double %72, double 0.000000e+00)
  %sqrt55.2 = call double @llvm.sqrt.f64(double %73)
  %74 = fcmp ogt double %sqrt55.2, 0x3F50624DE0000000
  %75 = fcmp uno float %70, 0.000000e+00
  %or.cond51.2 = select i1 %74, i1 true, i1 %75
  %or.cond53.2 = select i1 %or.cond51.2, i1 true, i1 %35
  br i1 %or.cond53.2, label %77, label %76

76:                                               ; preds = %69
  call void (...) @liquid_autotest_passed() #6
  br label %78

77:                                               ; preds = %69
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 106, ptr noundef nonnull @.str.1, double noundef %sqrt55.2, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %78

78:                                               ; preds = %77, %76
  %79 = call float @iirfilt_rrrf_groupdelay(ptr noundef %51, float noundef %39) #6
  %80 = fsub float %79, %41
  %81 = fpext float %80 to double
  %82 = call double @llvm.fmuladd.f64(double %81, double %81, double 0.000000e+00)
  %sqrt55.3 = call double @llvm.sqrt.f64(double %82)
  %83 = fcmp ogt double %sqrt55.3, 0x3F50624DE0000000
  %84 = fcmp uno float %79, 0.000000e+00
  %or.cond51.3 = select i1 %83, i1 true, i1 %84
  %or.cond53.3 = select i1 %or.cond51.3, i1 true, i1 %47
  br i1 %or.cond53.3, label %86, label %85

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

86:                                               ; preds = %78
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 106, ptr noundef nonnull @.str.1, double noundef %sqrt55.3, 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 %51) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #6
  ret void
}

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

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

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: 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