; 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_n8.fc = external hidden unnamed_addr constant [7 x float], align 16
@__const.autotest_iir_groupdelay_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 @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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_iir_groupdelay_n8() #5 {
  %1 = alloca [8 x float], align 16
  %2 = alloca [8 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 float, align 4
  %8 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %1) #6
  %9 = getelementptr inbounds [8 x float], ptr %1, i64 0, i64 0
  store float 0x3F73D554C0000000, ptr %9, align 16, !tbaa !5
  %10 = getelementptr inbounds [8 x float], ptr %1, i64 0, i64 1
  store float 0x3FA15AA920000000, ptr %10, align 4, !tbaa !5
  %11 = getelementptr inbounds [8 x float], ptr %1, i64 0, i64 2
  store float 0x3FBA07FDE0000000, ptr %11, align 8, !tbaa !5
  %12 = getelementptr inbounds [8 x float], ptr %1, i64 0, i64 3
  store float 0x3FC5B15380000000, ptr %12, align 4, !tbaa !5
  %13 = getelementptr inbounds [8 x float], ptr %1, i64 0, i64 4
  store float 0x3FC5B15380000000, ptr %13, align 16, !tbaa !5
  %14 = getelementptr inbounds [8 x float], ptr %1, i64 0, i64 5
  store float 0x3FBA07FDE0000000, ptr %14, align 4, !tbaa !5
  %15 = getelementptr inbounds [8 x float], ptr %1, i64 0, i64 6
  store float 0x3FA15AA920000000, ptr %15, align 8, !tbaa !5
  %16 = getelementptr inbounds [8 x float], ptr %1, i64 0, i64 7
  store float 0x3F73D554C0000000, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #6
  %17 = getelementptr inbounds [8 x float], ptr %2, i64 0, i64 0
  store float 1.000000e+00, ptr %17, align 16, !tbaa !5
  %18 = getelementptr inbounds [8 x float], ptr %2, i64 0, i64 1
  store float 0xBFF63A7DC0000000, ptr %18, align 4, !tbaa !5
  %19 = getelementptr inbounds [8 x float], ptr %2, i64 0, i64 2
  store float 0x3FFACCE5A0000000, ptr %19, align 8, !tbaa !5
  %20 = getelementptr inbounds [8 x float], ptr %2, i64 0, i64 3
  store float 0xBFF0DCC380000000, ptr %20, align 4, !tbaa !5
  %21 = getelementptr inbounds [8 x float], ptr %2, i64 0, i64 4
  store float 0x3FE0460DE0000000, ptr %21, align 16, !tbaa !5
  %22 = getelementptr inbounds [8 x float], ptr %2, i64 0, i64 5
  store float 0xBFC289C580000000, ptr %22, align 4, !tbaa !5
  %23 = getelementptr inbounds [8 x float], ptr %2, i64 0, i64 6
  store float 0x3F9AE1DCA0000000, ptr %23, align 8, !tbaa !5
  %24 = getelementptr inbounds [8 x float], ptr %2, i64 0, i64 7
  store float 0xBF60A08C20000000, ptr %24, align 4, !tbaa !5
  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_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_n8.g0, i64 28, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %122, %0
  %26 = load i32, ptr %4, align 4, !tbaa !9
  %27 = icmp ult i32 %26, 7
  br i1 %27, label %28, label %125

28:                                               ; preds = %25
  %29 = getelementptr inbounds [8 x float], ptr %1, i64 0, i64 0
  %30 = getelementptr inbounds [8 x float], ptr %2, i64 0, i64 0
  %31 = load i32, ptr %4, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = getelementptr inbounds [7 x float], ptr %5, i64 0, i64 %32
  %34 = load float, ptr %33, align 4, !tbaa !5
  %35 = call float @iir_group_delay(ptr noundef %29, i32 noundef 8, ptr noundef %30, i32 noundef 8, float noundef %34)
  store float %35, ptr %7, align 4, !tbaa !5
  %36 = load float, ptr %7, align 4, !tbaa !5
  %37 = load i32, ptr %4, align 4, !tbaa !9
  %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 %7, align 4, !tbaa !5
  %44 = load i32, ptr %4, align 4, !tbaa !9
  %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 = load float, ptr %7, align 4, !tbaa !5
  %51 = load i32, ptr %4, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %52
  %54 = load float, ptr %53, align 4, !tbaa !5
  %55 = fsub float %50, %54
  %56 = fpext float %55 to double
  %57 = load float, ptr %7, align 4, !tbaa !5
  %58 = load i32, ptr %4, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %59
  %61 = load float, ptr %60, align 4, !tbaa !5
  %62 = fsub float %57, %61
  %63 = fpext float %62 to double
  %64 = call double @llvm.fmuladd.f64(double %42, double %49, double 0.000000e+00)
  %65 = call double @sqrt(double noundef %64) #6
  %66 = load float, ptr %3, align 4, !tbaa !5
  %67 = fpext float %66 to double
  %68 = fcmp ogt double %65, %67
  br i1 %68, label %87, label %69

69:                                               ; preds = %28
  %70 = load float, ptr %7, align 4, !tbaa !5
  %71 = call i1 @llvm.is.fpclass.f32(float %70, i32 3)
  br i1 %71, label %87, label %72

72:                                               ; preds = %69
  %73 = load float, ptr %7, align 4, !tbaa !5
  %74 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %74, label %87, label %75

75:                                               ; preds = %72
  %76 = load i32, ptr %4, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %77
  %79 = load float, ptr %78, align 4, !tbaa !5
  %80 = call i1 @llvm.is.fpclass.f32(float %79, i32 3)
  br i1 %80, label %87, label %81

81:                                               ; preds = %75
  %82 = load i32, ptr %4, align 4, !tbaa !9
  %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 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %86, label %87, label %120

87:                                               ; preds = %81, %75, %72, %69, %28
  %88 = load float, ptr %7, align 4, !tbaa !5
  %89 = load i32, ptr %4, align 4, !tbaa !9
  %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 %7, align 4, !tbaa !5
  %96 = load i32, ptr %4, align 4, !tbaa !9
  %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 = load float, ptr %7, align 4, !tbaa !5
  %103 = load i32, ptr %4, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %104
  %106 = load float, ptr %105, align 4, !tbaa !5
  %107 = fsub float %102, %106
  %108 = fpext float %107 to double
  %109 = load float, ptr %7, align 4, !tbaa !5
  %110 = load i32, ptr %4, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %111
  %113 = load float, ptr %112, align 4, !tbaa !5
  %114 = fsub float %109, %113
  %115 = fpext float %114 to double
  %116 = call double @llvm.fmuladd.f64(double %94, double %101, double 0.000000e+00)
  %117 = call double @sqrt(double noundef %116) #6
  %118 = load float, ptr %3, align 4, !tbaa !5
  %119 = fpext float %118 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 164, ptr noundef @.str.1, double noundef %117, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %119)
  br label %121

120:                                              ; preds = %81
  call void (...) @liquid_autotest_passed()
  br label %121

121:                                              ; preds = %120, %87
  br label %122

122:                                              ; preds = %121
  %123 = load i32, ptr %4, align 4, !tbaa !9
  %124 = add i32 %123, 1
  store i32 %124, ptr %4, align 4, !tbaa !9
  br label %25, !llvm.loop !11

125:                                              ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %126 = getelementptr inbounds [8 x float], ptr %1, i64 0, i64 0
  %127 = getelementptr inbounds [8 x float], ptr %2, i64 0, i64 0
  %128 = call ptr @iirfilt_rrrf_create(ptr noundef %126, i32 noundef 8, ptr noundef %127, i32 noundef 8)
  store ptr %128, ptr %8, align 8, !tbaa !13
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %225, %125
  %130 = load i32, ptr %4, align 4, !tbaa !9
  %131 = icmp ult i32 %130, 7
  br i1 %131, label %132, label %228

132:                                              ; preds = %129
  %133 = load ptr, ptr %8, align 8, !tbaa !13
  %134 = load i32, ptr %4, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds [7 x float], ptr %5, i64 0, i64 %135
  %137 = load float, ptr %136, align 4, !tbaa !5
  %138 = call float @iirfilt_rrrf_groupdelay(ptr noundef %133, float noundef %137)
  store float %138, ptr %7, align 4, !tbaa !5
  %139 = load float, ptr %7, align 4, !tbaa !5
  %140 = load i32, ptr %4, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !5
  %144 = fsub float %139, %143
  %145 = fpext float %144 to double
  %146 = load float, ptr %7, align 4, !tbaa !5
  %147 = load i32, ptr %4, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %148
  %150 = load float, ptr %149, align 4, !tbaa !5
  %151 = fsub float %146, %150
  %152 = fpext float %151 to double
  %153 = load float, ptr %7, align 4, !tbaa !5
  %154 = load i32, ptr %4, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %155
  %157 = load float, ptr %156, align 4, !tbaa !5
  %158 = fsub float %153, %157
  %159 = fpext float %158 to double
  %160 = load float, ptr %7, align 4, !tbaa !5
  %161 = load i32, ptr %4, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %162
  %164 = load float, ptr %163, align 4, !tbaa !5
  %165 = fsub float %160, %164
  %166 = fpext float %165 to double
  %167 = call double @llvm.fmuladd.f64(double %145, double %152, double 0.000000e+00)
  %168 = call double @sqrt(double noundef %167) #6
  %169 = load float, ptr %3, align 4, !tbaa !5
  %170 = fpext float %169 to double
  %171 = fcmp ogt double %168, %170
  br i1 %171, label %190, label %172

172:                                              ; preds = %132
  %173 = load float, ptr %7, align 4, !tbaa !5
  %174 = call i1 @llvm.is.fpclass.f32(float %173, i32 3)
  br i1 %174, label %190, label %175

175:                                              ; preds = %172
  %176 = load float, ptr %7, align 4, !tbaa !5
  %177 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %177, label %190, label %178

178:                                              ; preds = %175
  %179 = load i32, ptr %4, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %180
  %182 = load float, ptr %181, align 4, !tbaa !5
  %183 = call i1 @llvm.is.fpclass.f32(float %182, i32 3)
  br i1 %183, label %190, label %184

184:                                              ; preds = %178
  %185 = load i32, ptr %4, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %186
  %188 = load float, ptr %187, align 4, !tbaa !5
  %189 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %189, label %190, label %223

190:                                              ; preds = %184, %178, %175, %172, %132
  %191 = load float, ptr %7, align 4, !tbaa !5
  %192 = load i32, ptr %4, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %193
  %195 = load float, ptr %194, align 4, !tbaa !5
  %196 = fsub float %191, %195
  %197 = fpext float %196 to double
  %198 = load float, ptr %7, align 4, !tbaa !5
  %199 = load i32, ptr %4, align 4, !tbaa !9
  %200 = zext i32 %199 to i64
  %201 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %200
  %202 = load float, ptr %201, align 4, !tbaa !5
  %203 = fsub float %198, %202
  %204 = fpext float %203 to double
  %205 = load float, ptr %7, align 4, !tbaa !5
  %206 = load i32, ptr %4, align 4, !tbaa !9
  %207 = zext i32 %206 to i64
  %208 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %207
  %209 = load float, ptr %208, align 4, !tbaa !5
  %210 = fsub float %205, %209
  %211 = fpext float %210 to double
  %212 = load float, ptr %7, align 4, !tbaa !5
  %213 = load i32, ptr %4, align 4, !tbaa !9
  %214 = zext i32 %213 to i64
  %215 = getelementptr inbounds [7 x float], ptr %6, i64 0, i64 %214
  %216 = load float, ptr %215, align 4, !tbaa !5
  %217 = fsub float %212, %216
  %218 = fpext float %217 to double
  %219 = call double @llvm.fmuladd.f64(double %197, double %204, double 0.000000e+00)
  %220 = call double @sqrt(double noundef %219) #6
  %221 = load float, ptr %3, align 4, !tbaa !5
  %222 = fpext float %221 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 177, ptr noundef @.str.1, double noundef %220, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %222)
  br label %224

223:                                              ; preds = %184
  call void (...) @liquid_autotest_passed()
  br label %224

224:                                              ; preds = %223, %190
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %4, align 4, !tbaa !9
  %227 = add i32 %226, 1
  store i32 %227, ptr %4, align 4, !tbaa !9
  br label %129, !llvm.loop !15

228:                                              ; preds = %129
  %229 = load ptr, ptr %8, align 8, !tbaa !13
  %230 = call i32 @iirfilt_rrrf_destroy(ptr noundef %229)
  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 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 32, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
  ret void
}

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_n8.fc = external hidden unnamed_addr constant [7 x float], align 16
@__const.autotest_iir_groupdelay_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 nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

declare void @liquid_autotest_passed(...) 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) #0

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

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

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

declare i32 @iirfilt_rrrf_destroy(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @autotest_iir_groupdelay_n8() local_unnamed_addr #3 {
  %1 = alloca [8 x float], align 16
  %2 = alloca [8 x float], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #5
  store <4 x float> <float 0x3F73D554C0000000, float 0x3FA15AA920000000, float 0x3FBA07FDE0000000, float 0x3FC5B15380000000>, ptr %1, align 16, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %1, i64 16
  store <4 x float> <float 0x3FC5B15380000000, float 0x3FBA07FDE0000000, float 0x3FA15AA920000000, float 0x3F73D554C0000000>, ptr %3, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  store <4 x float> <float 1.000000e+00, float 0xBFF63A7DC0000000, float 0x3FFACCE5A0000000, float 0xBFF0DCC380000000>, ptr %2, align 16, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %2, i64 16
  store <4 x float> <float 0x3FE0460DE0000000, float 0xBFC289C580000000, float 0x3F9AE1DCA0000000, float 0xBF60A08C20000000>, ptr %4, align 16, !tbaa !5
  %5 = load float, ptr @__const.autotest_iir_groupdelay_n8.fc, align 16, !tbaa !5
  %6 = call float @iir_group_delay(ptr noundef nonnull %1, i32 noundef 8, ptr noundef nonnull %2, i32 noundef 8, float noundef %5) #5
  %7 = load float, ptr @__const.autotest_iir_groupdelay_n8.g0, align 16, !tbaa !5
  %8 = fsub float %6, %7
  %9 = fpext float %8 to double
  %10 = call double @llvm.fmuladd.f64(double %9, double %9, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %10)
  %11 = fcmp ogt double %sqrt, 0x3F50624DE0000000
  %12 = fcmp uno float %6, 0.000000e+00
  %or.cond = select i1 %11, i1 true, i1 %12
  %13 = fcmp uno float %7, 0.000000e+00
  %or.cond52 = select i1 %or.cond, i1 true, i1 %13
  br i1 %or.cond52, label %14, label %15

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

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

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

26:                                               ; preds = %16
  call void (...) @liquid_autotest_passed() #5
  br label %28

27:                                               ; preds = %16
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 164, ptr noundef nonnull @.str.1, double noundef %sqrt.1, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #5
  br label %28

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

38:                                               ; preds = %28
  call void (...) @liquid_autotest_passed() #5
  br label %40

39:                                               ; preds = %28
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 164, ptr noundef nonnull @.str.1, double noundef %sqrt.2, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #5
  br label %40

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

50:                                               ; preds = %40
  call void (...) @liquid_autotest_passed() #5
  br label %52

51:                                               ; preds = %40
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 164, ptr noundef nonnull @.str.1, double noundef %sqrt.3, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #5
  br label %52

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

62:                                               ; preds = %52
  call void (...) @liquid_autotest_passed() #5
  br label %64

63:                                               ; preds = %52
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 164, ptr noundef nonnull @.str.1, double noundef %sqrt.4, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #5
  br label %64

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

74:                                               ; preds = %64
  call void (...) @liquid_autotest_passed() #5
  br label %76

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

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

86:                                               ; preds = %76
  call void (...) @liquid_autotest_passed() #5
  br label %88

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

88:                                               ; preds = %87, %86
  %89 = call ptr @iirfilt_rrrf_create(ptr noundef nonnull %1, i32 noundef 8, ptr noundef nonnull %2, i32 noundef 8) #5
  %90 = call float @iirfilt_rrrf_groupdelay(ptr noundef %89, float noundef %5) #5
  %91 = fsub float %90, %7
  %92 = fpext float %91 to double
  %93 = call double @llvm.fmuladd.f64(double %92, double %92, double 0.000000e+00)
  %sqrt55 = call double @llvm.sqrt.f64(double %93)
  %94 = fcmp ogt double %sqrt55, 0x3F50624DE0000000
  %95 = fcmp uno float %90, 0.000000e+00
  %or.cond51 = select i1 %94, i1 true, i1 %95
  %or.cond53 = select i1 %or.cond51, i1 true, i1 %13
  br i1 %or.cond53, label %96, label %97

96:                                               ; preds = %88
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 177, ptr noundef nonnull @.str.1, double noundef %sqrt55, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #5
  br label %98

97:                                               ; preds = %88
  call void (...) @liquid_autotest_passed() #5
  br label %98

98:                                               ; preds = %96, %97
  %99 = call float @iirfilt_rrrf_groupdelay(ptr noundef %89, float noundef %17) #5
  %100 = fsub float %99, %19
  %101 = fpext float %100 to double
  %102 = call double @llvm.fmuladd.f64(double %101, double %101, double 0.000000e+00)
  %sqrt55.1 = call double @llvm.sqrt.f64(double %102)
  %103 = fcmp ogt double %sqrt55.1, 0x3F50624DE0000000
  %104 = fcmp uno float %99, 0.000000e+00
  %or.cond51.1 = select i1 %103, i1 true, i1 %104
  %or.cond53.1 = select i1 %or.cond51.1, i1 true, i1 %25
  br i1 %or.cond53.1, label %106, label %105

105:                                              ; preds = %98
  call void (...) @liquid_autotest_passed() #5
  br label %107

106:                                              ; preds = %98
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 177, ptr noundef nonnull @.str.1, double noundef %sqrt55.1, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #5
  br label %107

107:                                              ; preds = %106, %105
  %108 = call float @iirfilt_rrrf_groupdelay(ptr noundef %89, float noundef %29) #5
  %109 = fsub float %108, %31
  %110 = fpext float %109 to double
  %111 = call double @llvm.fmuladd.f64(double %110, double %110, double 0.000000e+00)
  %sqrt55.2 = call double @llvm.sqrt.f64(double %111)
  %112 = fcmp ogt double %sqrt55.2, 0x3F50624DE0000000
  %113 = fcmp uno float %108, 0.000000e+00
  %or.cond51.2 = select i1 %112, i1 true, i1 %113
  %or.cond53.2 = select i1 %or.cond51.2, i1 true, i1 %37
  br i1 %or.cond53.2, label %115, label %114

114:                                              ; preds = %107
  call void (...) @liquid_autotest_passed() #5
  br label %116

115:                                              ; preds = %107
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 177, ptr noundef nonnull @.str.1, double noundef %sqrt55.2, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #5
  br label %116

116:                                              ; preds = %115, %114
  %117 = call float @iirfilt_rrrf_groupdelay(ptr noundef %89, float noundef %41) #5
  %118 = fsub float %117, %43
  %119 = fpext float %118 to double
  %120 = call double @llvm.fmuladd.f64(double %119, double %119, double 0.000000e+00)
  %sqrt55.3 = call double @llvm.sqrt.f64(double %120)
  %121 = fcmp ogt double %sqrt55.3, 0x3F50624DE0000000
  %122 = fcmp uno float %117, 0.000000e+00
  %or.cond51.3 = select i1 %121, i1 true, i1 %122
  %or.cond53.3 = select i1 %or.cond51.3, i1 true, i1 %49
  br i1 %or.cond53.3, label %124, label %123

123:                                              ; preds = %116
  call void (...) @liquid_autotest_passed() #5
  br label %125

124:                                              ; preds = %116
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 177, ptr noundef nonnull @.str.1, double noundef %sqrt55.3, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #5
  br label %125

125:                                              ; preds = %124, %123
  %126 = call float @iirfilt_rrrf_groupdelay(ptr noundef %89, float noundef %53) #5
  %127 = fsub float %126, %55
  %128 = fpext float %127 to double
  %129 = call double @llvm.fmuladd.f64(double %128, double %128, double 0.000000e+00)
  %sqrt55.4 = call double @llvm.sqrt.f64(double %129)
  %130 = fcmp ogt double %sqrt55.4, 0x3F50624DE0000000
  %131 = fcmp uno float %126, 0.000000e+00
  %or.cond51.4 = select i1 %130, i1 true, i1 %131
  %or.cond53.4 = select i1 %or.cond51.4, i1 true, i1 %61
  br i1 %or.cond53.4, label %133, label %132

132:                                              ; preds = %125
  call void (...) @liquid_autotest_passed() #5
  br label %134

133:                                              ; preds = %125
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 177, ptr noundef nonnull @.str.1, double noundef %sqrt55.4, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #5
  br label %134

134:                                              ; preds = %133, %132
  %135 = call float @iirfilt_rrrf_groupdelay(ptr noundef %89, float noundef %65) #5
  %136 = fsub float %135, %67
  %137 = fpext float %136 to double
  %138 = call double @llvm.fmuladd.f64(double %137, double %137, double 0.000000e+00)
  %sqrt55.5 = call double @llvm.sqrt.f64(double %138)
  %139 = fcmp ogt double %sqrt55.5, 0x3F50624DE0000000
  %140 = fcmp uno float %135, 0.000000e+00
  %or.cond51.5 = select i1 %139, i1 true, i1 %140
  %or.cond53.5 = select i1 %or.cond51.5, i1 true, i1 %73
  br i1 %or.cond53.5, label %142, label %141

141:                                              ; preds = %134
  call void (...) @liquid_autotest_passed() #5
  br label %143

142:                                              ; preds = %134
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 177, ptr noundef nonnull @.str.1, double noundef %sqrt55.5, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #5
  br label %143

143:                                              ; preds = %142, %141
  %144 = call float @iirfilt_rrrf_groupdelay(ptr noundef %89, float noundef %77) #5
  %145 = fsub float %144, %79
  %146 = fpext float %145 to double
  %147 = call double @llvm.fmuladd.f64(double %146, double %146, double 0.000000e+00)
  %sqrt55.6 = call double @llvm.sqrt.f64(double %147)
  %148 = fcmp ogt double %sqrt55.6, 0x3F50624DE0000000
  %149 = fcmp uno float %144, 0.000000e+00
  %or.cond51.6 = select i1 %148, i1 true, i1 %149
  %or.cond53.6 = select i1 %or.cond51.6, i1 true, i1 %85
  br i1 %or.cond53.6, label %151, label %150

150:                                              ; preds = %143
  call void (...) @liquid_autotest_passed() #5
  br label %152

151:                                              ; preds = %143
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 177, ptr noundef nonnull @.str.1, double noundef %sqrt55.6, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #5
  br label %152

152:                                              ; preds = %151, %150
  %153 = call i32 @iirfilt_rrrf_destroy(ptr noundef %89) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #5
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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,SLPVectorizerPass,SROAPass,SimplifyCFGPass