; 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"

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

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

8:                                                ; preds = %104, %0
  %9 = load i32, ptr %3, align 4, !tbaa !9
  %10 = icmp ult i32 %9, 4
  br i1 %10, label %11, label %107

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

51:                                               ; preds = %11
  %52 = load float, ptr %6, align 4, !tbaa !5
  %53 = call i1 @llvm.is.fpclass.f32(float %52, i32 3)
  br i1 %53, label %69, label %54

54:                                               ; preds = %51
  %55 = load float, ptr %6, align 4, !tbaa !5
  %56 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %56, label %69, label %57

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

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

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

102:                                              ; preds = %63
  call void (...) @liquid_autotest_passed()
  br label %103

103:                                              ; preds = %102, %69
  br label %104

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

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

110:                                              ; preds = %206, %107
  %111 = load i32, ptr %3, align 4, !tbaa !9
  %112 = icmp ult i32 %111, 4
  br i1 %112, label %113, label %209

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

153:                                              ; preds = %113
  %154 = load float, ptr %6, align 4, !tbaa !5
  %155 = call i1 @llvm.is.fpclass.f32(float %154, i32 3)
  br i1 %155, label %171, label %156

156:                                              ; preds = %153
  %157 = load float, ptr %6, align 4, !tbaa !5
  %158 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %158, label %171, label %159

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

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

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

204:                                              ; preds = %165
  call void (...) @liquid_autotest_passed()
  br label %205

205:                                              ; preds = %204, %171
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr %3, align 4, !tbaa !9
  %208 = add i32 %207, 1
  store i32 %208, ptr %3, align 4, !tbaa !9
  br label %110, !llvm.loop !15

209:                                              ; preds = %110
  %210 = load ptr, ptr %7, align 8, !tbaa !13
  %211 = call i32 @firfilt_rrrf_destroy(ptr noundef %210)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %1) #6
  ret void
}

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

; 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) #2

declare float @fir_group_delay(ptr noundef, i32 noundef, float noundef) #3

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

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

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

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

declare void @liquid_autotest_passed(...) #3

declare ptr @firfilt_rrrf_create(ptr noundef, i32 noundef) #3

declare float @firfilt_rrrf_groupdelay(ptr noundef, float noundef) #3

declare i32 @firfilt_rrrf_destroy(ptr noundef) #3

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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"}
!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"

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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_fir_groupdelay_n3() local_unnamed_addr #0 {
  %1 = 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_fir_groupdelay_n3.h, i64 12, i1 false)
  %2 = load float, ptr @__const.autotest_fir_groupdelay_n3.fc, align 16, !tbaa !5
  %3 = call float @fir_group_delay(ptr noundef nonnull %1, i32 noundef 3, float noundef %2) #6
  %4 = load float, ptr @__const.autotest_fir_groupdelay_n3.g0, align 16, !tbaa !5
  %5 = fsub float %3, %4
  %6 = fpext float %5 to double
  %7 = call double @llvm.fmuladd.f64(double %6, double %6, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %7)
  %8 = fcmp ogt double %sqrt, 0x3F50624DE0000000
  %9 = fcmp uno float %3, 0.000000e+00
  %or.cond = select i1 %8, i1 true, i1 %9
  %10 = fcmp uno float %4, 0.000000e+00
  %or.cond52 = select i1 %or.cond, i1 true, i1 %10
  br i1 %or.cond52, label %11, label %12

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

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

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

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

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

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

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

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

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

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

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

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

57:                                               ; preds = %49
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 62, ptr noundef nonnull @.str.1, double noundef %sqrt55, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %59

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

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

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

67:                                               ; preds = %59
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 62, 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 %68

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

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

76:                                               ; preds = %68
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 62, 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 %77

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

84:                                               ; preds = %77
  call void (...) @liquid_autotest_passed() #6
  br label %86

85:                                               ; preds = %77
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 62, 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 %86

86:                                               ; preds = %85, %84
  %87 = call i32 @firfilt_rrrf_destroy(ptr noundef %50) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #6
  ret void
}

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

; 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) #2

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

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

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 ptr @firfilt_rrrf_create(ptr noundef, i32 noundef) local_unnamed_addr #3

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

declare i32 @firfilt_rrrf_destroy(ptr noundef) 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) #1

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

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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