; LLVM IR from jgaeddert/liquid-dsp :: src/filter/tests (iirdes_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_iirdes_butter_2.a_test = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_iirdes_butter_2.b_test = external hidden unnamed_addr constant [3 x float], align 4
@.str = external hidden unnamed_addr constant [89 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 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
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_iirdes_butter_2() #0 {
  %1 = alloca [3 x float], align 4
  %2 = alloca [3 x float], align 4
  %3 = alloca [3 x float], align 4
  %4 = alloca [3 x float], align 4
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %2) #6
  %7 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %8 = getelementptr inbounds [3 x float], ptr %1, i64 0, i64 0
  %9 = call i32 @liquid_iirdes(i32 noundef 0, i32 noundef 0, i32 noundef 1, i32 noundef 2, float noundef 2.500000e-01, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 4.000000e+01, ptr noundef %7, ptr noundef %8)
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.autotest_iirdes_butter_2.a_test, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 @__const.autotest_iirdes_butter_2.b_test, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store float 0x3EB0C6F7A0000000, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %10

10:                                               ; preds = %246, %0
  %11 = load i32, ptr %6, align 4, !tbaa !9
  %12 = icmp ult i32 %11, 3
  br i1 %12, label %13, label %249

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

59:                                               ; preds = %13
  %60 = load i32, ptr %6, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds [3 x float], ptr %2, 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 %83, label %65

65:                                               ; preds = %59
  %66 = load i32, ptr %6, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds [3 x float], ptr %2, 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 %83, label %71

71:                                               ; preds = %65
  %72 = load i32, ptr %6, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 %73
  %75 = load float, ptr %74, align 4, !tbaa !5
  %76 = call i1 @llvm.is.fpclass.f32(float %75, i32 3)
  br i1 %76, label %83, label %77

77:                                               ; preds = %71
  %78 = load i32, ptr %6, align 4, !tbaa !9
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 %79
  %81 = load float, ptr %80, align 4, !tbaa !5
  %82 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %82, label %83, label %128

83:                                               ; preds = %77, %71, %65, %59, %13
  %84 = load i32, ptr %6, align 4, !tbaa !9
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 %85
  %87 = load float, ptr %86, align 4, !tbaa !5
  %88 = load i32, ptr %6, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !5
  %92 = fsub float %87, %91
  %93 = fpext float %92 to double
  %94 = load i32, ptr %6, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 %95
  %97 = load float, ptr %96, align 4, !tbaa !5
  %98 = load i32, ptr %6, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 %99
  %101 = load float, ptr %100, align 4, !tbaa !5
  %102 = fsub float %97, %101
  %103 = fpext float %102 to double
  %104 = load i32, ptr %6, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 %105
  %107 = load float, ptr %106, align 4, !tbaa !5
  %108 = load i32, ptr %6, align 4, !tbaa !9
  %109 = zext i32 %108 to i64
  %110 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 %109
  %111 = load float, ptr %110, align 4, !tbaa !5
  %112 = fsub float %107, %111
  %113 = fpext float %112 to double
  %114 = load i32, ptr %6, align 4, !tbaa !9
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 %115
  %117 = load float, ptr %116, align 4, !tbaa !5
  %118 = load i32, ptr %6, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 %119
  %121 = load float, ptr %120, align 4, !tbaa !5
  %122 = fsub float %117, %121
  %123 = fpext float %122 to double
  %124 = call double @llvm.fmuladd.f64(double %93, double %103, double 0.000000e+00)
  %125 = call double @sqrt(double noundef %124) #6
  %126 = load float, ptr %5, align 4, !tbaa !5
  %127 = fpext float %126 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 57, ptr noundef @.str.1, double noundef %125, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %127)
  br label %129

128:                                              ; preds = %77
  call void (...) @liquid_autotest_passed()
  br label %129

129:                                              ; preds = %128, %83
  %130 = load i32, ptr %6, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds [3 x float], ptr %1, i64 0, i64 %131
  %133 = load float, ptr %132, align 4, !tbaa !5
  %134 = load i32, ptr %6, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %135
  %137 = load float, ptr %136, align 4, !tbaa !5
  %138 = fsub float %133, %137
  %139 = fpext float %138 to double
  %140 = load i32, ptr %6, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds [3 x float], ptr %1, i64 0, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !5
  %144 = load i32, ptr %6, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %145
  %147 = load float, ptr %146, align 4, !tbaa !5
  %148 = fsub float %143, %147
  %149 = fpext float %148 to double
  %150 = load i32, ptr %6, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds [3 x float], ptr %1, i64 0, i64 %151
  %153 = load float, ptr %152, align 4, !tbaa !5
  %154 = load i32, ptr %6, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds [3 x float], ptr %3, 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 i32, ptr %6, align 4, !tbaa !9
  %161 = zext i32 %160 to i64
  %162 = getelementptr inbounds [3 x float], ptr %1, i64 0, i64 %161
  %163 = load float, ptr %162, align 4, !tbaa !5
  %164 = load i32, ptr %6, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %165
  %167 = load float, ptr %166, align 4, !tbaa !5
  %168 = fsub float %163, %167
  %169 = fpext float %168 to double
  %170 = call double @llvm.fmuladd.f64(double %139, double %149, double 0.000000e+00)
  %171 = call double @sqrt(double noundef %170) #6
  %172 = load float, ptr %5, align 4, !tbaa !5
  %173 = fpext float %172 to double
  %174 = fcmp ogt double %171, %173
  br i1 %174, label %199, label %175

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

181:                                              ; preds = %175
  %182 = load i32, ptr %6, align 4, !tbaa !9
  %183 = zext i32 %182 to i64
  %184 = getelementptr inbounds [3 x float], ptr %1, i64 0, i64 %183
  %185 = load float, ptr %184, align 4, !tbaa !5
  %186 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %186, label %199, label %187

187:                                              ; preds = %181
  %188 = load i32, ptr %6, align 4, !tbaa !9
  %189 = zext i32 %188 to i64
  %190 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %189
  %191 = load float, ptr %190, align 4, !tbaa !5
  %192 = call i1 @llvm.is.fpclass.f32(float %191, i32 3)
  br i1 %192, label %199, label %193

193:                                              ; preds = %187
  %194 = load i32, ptr %6, align 4, !tbaa !9
  %195 = zext i32 %194 to i64
  %196 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %195
  %197 = load float, ptr %196, align 4, !tbaa !5
  %198 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %198, label %199, label %244

199:                                              ; preds = %193, %187, %181, %175, %129
  %200 = load i32, ptr %6, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  %202 = getelementptr inbounds [3 x float], ptr %1, i64 0, i64 %201
  %203 = load float, ptr %202, align 4, !tbaa !5
  %204 = load i32, ptr %6, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %205
  %207 = load float, ptr %206, align 4, !tbaa !5
  %208 = fsub float %203, %207
  %209 = fpext float %208 to double
  %210 = load i32, ptr %6, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = getelementptr inbounds [3 x float], ptr %1, i64 0, i64 %211
  %213 = load float, ptr %212, align 4, !tbaa !5
  %214 = load i32, ptr %6, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %215
  %217 = load float, ptr %216, align 4, !tbaa !5
  %218 = fsub float %213, %217
  %219 = fpext float %218 to double
  %220 = load i32, ptr %6, align 4, !tbaa !9
  %221 = zext i32 %220 to i64
  %222 = getelementptr inbounds [3 x float], ptr %1, i64 0, i64 %221
  %223 = load float, ptr %222, align 4, !tbaa !5
  %224 = load i32, ptr %6, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %225
  %227 = load float, ptr %226, align 4, !tbaa !5
  %228 = fsub float %223, %227
  %229 = fpext float %228 to double
  %230 = load i32, ptr %6, align 4, !tbaa !9
  %231 = zext i32 %230 to i64
  %232 = getelementptr inbounds [3 x float], ptr %1, i64 0, i64 %231
  %233 = load float, ptr %232, align 4, !tbaa !5
  %234 = load i32, ptr %6, align 4, !tbaa !9
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %235
  %237 = load float, ptr %236, align 4, !tbaa !5
  %238 = fsub float %233, %237
  %239 = fpext float %238 to double
  %240 = call double @llvm.fmuladd.f64(double %209, double %219, double 0.000000e+00)
  %241 = call double @sqrt(double noundef %240) #6
  %242 = load float, ptr %5, align 4, !tbaa !5
  %243 = fpext float %242 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 58, ptr noundef @.str.4, double noundef %241, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %243)
  br label %245

244:                                              ; preds = %193
  call void (...) @liquid_autotest_passed()
  br label %245

245:                                              ; preds = %244, %199
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %6, align 4, !tbaa !9
  %248 = add i32 %247, 1
  store i32 %248, ptr %6, align 4, !tbaa !9
  br label %10, !llvm.loop !11

249:                                              ; preds = %10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 12, 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
}

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

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

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

declare void @liquid_autotest_passed(...) #2

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


; 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_iirdes_butter_2.a_test = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_iirdes_butter_2.b_test = external hidden unnamed_addr constant [3 x float], align 4
@.str = external hidden unnamed_addr constant [89 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 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
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_iirdes_butter_2() local_unnamed_addr #0 {
  %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) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #5
  %3 = call i32 @liquid_iirdes(i32 noundef 0, i32 noundef 0, i32 noundef 1, i32 noundef 2, float noundef 2.500000e-01, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 4.000000e+01, ptr noundef nonnull %2, ptr noundef nonnull %1) #5
  %4 = load float, ptr %2, align 4, !tbaa !5
  %5 = load float, ptr @__const.autotest_iirdes_butter_2.b_test, align 4, !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, 0x3EB0C6F7A0000000
  br i1 %9, label %13, label %10

10:                                               ; preds = %0
  %11 = fcmp uno float %4, 0.000000e+00
  %12 = fcmp uno float %5, 0.000000e+00
  %or.cond = select i1 %11, i1 true, i1 %12
  br i1 %or.cond, label %13, label %14

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

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

15:                                               ; preds = %14, %13
  %16 = load float, ptr %1, align 4, !tbaa !5
  %17 = load float, ptr @__const.autotest_iirdes_butter_2.a_test, 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)
  %sqrt47 = call double @llvm.sqrt.f64(double %20)
  %21 = fcmp ogt double %sqrt47, 0x3EB0C6F7A0000000
  br i1 %21, label %25, label %22

22:                                               ; preds = %15
  %23 = fcmp uno float %16, 0.000000e+00
  %24 = fcmp uno float %17, 0.000000e+00
  %or.cond45 = select i1 %23, i1 true, i1 %24
  br i1 %or.cond45, label %25, label %26

25:                                               ; preds = %22, %15
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 58, ptr noundef nonnull @.str.4, double noundef %sqrt47, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #5
  br label %27

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

27:                                               ; preds = %25, %26
  %28 = getelementptr inbounds i8, ptr %2, i64 4
  %29 = load float, ptr %28, align 4, !tbaa !5
  %30 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iirdes_butter_2.b_test, i64 4), align 4, !tbaa !5
  %31 = fsub float %29, %30
  %32 = fpext float %31 to double
  %33 = call double @llvm.fmuladd.f64(double %32, double %32, double 0.000000e+00)
  %sqrt.1 = call double @llvm.sqrt.f64(double %33)
  %34 = fcmp ogt double %sqrt.1, 0x3EB0C6F7A0000000
  br i1 %34, label %39, label %35

35:                                               ; preds = %27
  %36 = fcmp uno float %29, 0.000000e+00
  %37 = fcmp uno float %30, 0.000000e+00
  %or.cond.1 = select i1 %36, i1 true, i1 %37
  br i1 %or.cond.1, label %39, label %38

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

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

40:                                               ; preds = %39, %38
  %41 = getelementptr inbounds i8, ptr %1, i64 4
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iirdes_butter_2.a_test, i64 4), 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)
  %sqrt47.1 = call double @llvm.sqrt.f64(double %46)
  %47 = fcmp ogt double %sqrt47.1, 0x3EB0C6F7A0000000
  br i1 %47, label %52, label %48

48:                                               ; preds = %40
  %49 = fcmp uno float %42, 0.000000e+00
  %50 = fcmp uno float %43, 0.000000e+00
  %or.cond45.1 = select i1 %49, i1 true, i1 %50
  br i1 %or.cond45.1, label %52, label %51

51:                                               ; preds = %48
  call void (...) @liquid_autotest_passed() #5
  br label %53

52:                                               ; preds = %48, %40
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 58, ptr noundef nonnull @.str.4, double noundef %sqrt47.1, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #5
  br label %53

53:                                               ; preds = %52, %51
  %54 = getelementptr inbounds i8, ptr %2, i64 8
  %55 = load float, ptr %54, align 4, !tbaa !5
  %56 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iirdes_butter_2.b_test, i64 8), align 4, !tbaa !5
  %57 = fsub float %55, %56
  %58 = fpext float %57 to double
  %59 = call double @llvm.fmuladd.f64(double %58, double %58, double 0.000000e+00)
  %sqrt.2 = call double @llvm.sqrt.f64(double %59)
  %60 = fcmp ogt double %sqrt.2, 0x3EB0C6F7A0000000
  br i1 %60, label %65, label %61

61:                                               ; preds = %53
  %62 = fcmp uno float %55, 0.000000e+00
  %63 = fcmp uno float %56, 0.000000e+00
  %or.cond.2 = select i1 %62, i1 true, i1 %63
  br i1 %or.cond.2, label %65, label %64

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

65:                                               ; preds = %61, %53
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 57, ptr noundef nonnull @.str.1, double noundef %sqrt.2, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #5
  br label %66

66:                                               ; preds = %65, %64
  %67 = getelementptr inbounds i8, ptr %1, i64 8
  %68 = load float, ptr %67, align 4, !tbaa !5
  %69 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_iirdes_butter_2.a_test, i64 8), align 4, !tbaa !5
  %70 = fsub float %68, %69
  %71 = fpext float %70 to double
  %72 = call double @llvm.fmuladd.f64(double %71, double %71, double 0.000000e+00)
  %sqrt47.2 = call double @llvm.sqrt.f64(double %72)
  %73 = fcmp ogt double %sqrt47.2, 0x3EB0C6F7A0000000
  br i1 %73, label %78, label %74

74:                                               ; preds = %66
  %75 = fcmp uno float %68, 0.000000e+00
  %76 = fcmp uno float %69, 0.000000e+00
  %or.cond45.2 = select i1 %75, i1 true, i1 %76
  br i1 %or.cond45.2, label %78, label %77

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

78:                                               ; preds = %74, %66
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 58, ptr noundef nonnull @.str.4, double noundef %sqrt47.2, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3EB0C6F7A0000000) #5
  br label %79

79:                                               ; preds = %78, %77
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #5
  ret void
}

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

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

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

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) #1

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

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 = { "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass