; LLVM IR from jgaeddert/liquid-dsp :: src/filter/tests (iirfiltsos_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_iirfiltsos_impulse_n2.a = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_iirfiltsos_impulse_n2.b = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_iirfiltsos_impulse_n2.test = external hidden unnamed_addr constant [15 x float], align 16
@.str = external hidden unnamed_addr constant [93 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 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_iirfiltsos_impulse_n2() #0 {
  %1 = alloca [3 x float], align 4
  %2 = alloca [3 x float], align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [15 x float], align 16
  %6 = alloca i32, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  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_iirfiltsos_impulse_n2.a, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.autotest_iirfiltsos_impulse_n2.b, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %10 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %11 = getelementptr inbounds [3 x float], ptr %1, i64 0, i64 0
  %12 = call ptr @iirfiltsos_rrrf_create(ptr noundef %10, ptr noundef %11)
  store ptr %12, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %13 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %14 = getelementptr inbounds [3 x float], ptr %1, i64 0, i64 0
  %15 = call ptr @iirfiltsos_rrrf_create(ptr noundef %13, ptr noundef %14)
  store ptr %15, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 60, ptr %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.autotest_iirfiltsos_impulse_n2.test, i64 60, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store float 0x3F1A36E2E0000000, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %6, align 4, !tbaa !11
  br label %16

16:                                               ; preds = %202, %0
  %17 = load i32, ptr %6, align 4, !tbaa !11
  %18 = icmp ult i32 %17, 15
  br i1 %18, label %19, label %205

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

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

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

72:                                               ; preds = %66
  %73 = load float, ptr %8, align 4, !tbaa !9
  %74 = call i1 @llvm.is.fpclass.f32(float %73, i32 3)
  br i1 %74, label %78, label %75

75:                                               ; preds = %72
  %76 = load float, ptr %8, align 4, !tbaa !9
  %77 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %77, label %78, label %111

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

111:                                              ; preds = %75
  call void (...) @liquid_autotest_passed()
  br label %112

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

149:                                              ; preds = %112
  %150 = load i32, ptr %6, align 4, !tbaa !11
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds [15 x float], ptr %5, i64 0, i64 %151
  %153 = load float, ptr %152, align 4, !tbaa !9
  %154 = call i1 @llvm.is.fpclass.f32(float %153, i32 3)
  br i1 %154, label %167, label %155

155:                                              ; preds = %149
  %156 = load i32, ptr %6, align 4, !tbaa !11
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds [15 x float], ptr %5, i64 0, i64 %157
  %159 = load float, ptr %158, align 4, !tbaa !9
  %160 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %160, label %167, label %161

161:                                              ; preds = %155
  %162 = load float, ptr %8, align 4, !tbaa !9
  %163 = call i1 @llvm.is.fpclass.f32(float %162, i32 3)
  br i1 %163, label %167, label %164

164:                                              ; preds = %161
  %165 = load float, ptr %8, align 4, !tbaa !9
  %166 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %166, label %167, label %200

167:                                              ; preds = %164, %161, %155, %149, %112
  %168 = load i32, ptr %6, align 4, !tbaa !11
  %169 = zext i32 %168 to i64
  %170 = getelementptr inbounds [15 x float], ptr %5, i64 0, i64 %169
  %171 = load float, ptr %170, align 4, !tbaa !9
  %172 = load float, ptr %8, align 4, !tbaa !9
  %173 = fsub float %171, %172
  %174 = fpext float %173 to double
  %175 = load i32, ptr %6, align 4, !tbaa !11
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds [15 x float], ptr %5, i64 0, i64 %176
  %178 = load float, ptr %177, align 4, !tbaa !9
  %179 = load float, ptr %8, align 4, !tbaa !9
  %180 = fsub float %178, %179
  %181 = fpext float %180 to double
  %182 = load i32, ptr %6, align 4, !tbaa !11
  %183 = zext i32 %182 to i64
  %184 = getelementptr inbounds [15 x float], ptr %5, i64 0, i64 %183
  %185 = load float, ptr %184, align 4, !tbaa !9
  %186 = load float, ptr %8, align 4, !tbaa !9
  %187 = fsub float %185, %186
  %188 = fpext float %187 to double
  %189 = load i32, ptr %6, align 4, !tbaa !11
  %190 = zext i32 %189 to i64
  %191 = getelementptr inbounds [15 x float], ptr %5, i64 0, i64 %190
  %192 = load float, ptr %191, align 4, !tbaa !9
  %193 = load float, ptr %8, align 4, !tbaa !9
  %194 = fsub float %192, %193
  %195 = fpext float %194 to double
  %196 = call double @llvm.fmuladd.f64(double %174, double %181, double 0.000000e+00)
  %197 = call double @sqrt(double noundef %196) #6
  %198 = load float, ptr %9, align 4, !tbaa !9
  %199 = fpext float %198 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 76, ptr noundef @.str.1, double noundef %197, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %199)
  br label %201

200:                                              ; preds = %164
  call void (...) @liquid_autotest_passed()
  br label %201

201:                                              ; preds = %200, %167
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr %6, align 4, !tbaa !11
  %204 = add i32 %203, 1
  store i32 %204, ptr %6, align 4, !tbaa !11
  br label %16, !llvm.loop !13

205:                                              ; preds = %16
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = call i32 @iirfiltsos_rrrf_destroy(ptr noundef %206)
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = call i32 @iirfiltsos_rrrf_destroy(ptr noundef %208)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 60, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, 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

; 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 ptr @iirfiltsos_rrrf_create(ptr noundef, ptr noundef) #3

declare i32 @iirfiltsos_rrrf_execute_df1(ptr noundef, float noundef, ptr 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 i32 @iirfiltsos_rrrf_execute_df2(ptr noundef, float noundef, ptr noundef) #3

declare i32 @iirfiltsos_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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@__const.autotest_iirfiltsos_impulse_n2.a = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_iirfiltsos_impulse_n2.b = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_iirfiltsos_impulse_n2.test = external hidden unnamed_addr constant [15 x float], align 16
@.str = external hidden unnamed_addr constant [93 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 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_iirfiltsos_impulse_n2() local_unnamed_addr #0 {
.peel.begin:
  %0 = alloca [3 x float], align 4
  %1 = alloca [3 x float], align 4
  %2 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) @__const.autotest_iirfiltsos_impulse_n2.a, i64 12, i1 false)
  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_iirfiltsos_impulse_n2.b, i64 12, i1 false)
  %3 = call ptr @iirfiltsos_rrrf_create(ptr noundef nonnull %1, ptr noundef nonnull %0) #6
  %4 = call ptr @iirfiltsos_rrrf_create(ptr noundef nonnull %1, ptr noundef nonnull %0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %5 = call i32 @iirfiltsos_rrrf_execute_df1(ptr noundef %3, float noundef 1.000000e+00, ptr noundef nonnull %2) #6
  %6 = load float, ptr @__const.autotest_iirfiltsos_impulse_n2.test, align 16, !tbaa !5
  %7 = load float, ptr %2, align 4
  %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.peel = call double @llvm.sqrt.f64(double %10)
  %11 = fcmp ogt double %sqrt.peel, 0x3F1A36E2E0000000
  br i1 %11, label %16, label %12

12:                                               ; preds = %.peel.begin
  %13 = fcmp uno float %6, 0.000000e+00
  %14 = fcmp uno float %7, 0.000000e+00
  %or.cond.peel = select i1 %13, i1 true, i1 %14
  br i1 %or.cond.peel, label %16, label %15

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

16:                                               ; preds = %12, %.peel.begin
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 72, ptr noundef nonnull @.str.1, double noundef %sqrt.peel, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F1A36E2E0000000) #6
  br label %17

17:                                               ; preds = %16, %15
  %18 = call i32 @iirfiltsos_rrrf_execute_df2(ptr noundef %4, float noundef 1.000000e+00, ptr noundef nonnull %2) #6
  %19 = load float, ptr %2, align 4
  %20 = fsub float %6, %19
  %21 = fpext float %20 to double
  %22 = call double @llvm.fmuladd.f64(double %21, double %21, double 0.000000e+00)
  %sqrt36.peel = call double @llvm.sqrt.f64(double %22)
  %23 = fcmp ogt double %sqrt36.peel, 0x3F1A36E2E0000000
  br i1 %23, label %28, label %24

24:                                               ; preds = %17
  %25 = fcmp uno float %6, 0.000000e+00
  %26 = fcmp uno float %19, 0.000000e+00
  %or.cond34.peel = select i1 %25, i1 true, i1 %26
  br i1 %or.cond34.peel, label %28, label %27

27:                                               ; preds = %24
  call void (...) @liquid_autotest_passed() #6
  br label %.peel.next.preheader

28:                                               ; preds = %24, %17
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 76, ptr noundef nonnull @.str.1, double noundef %sqrt36.peel, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F1A36E2E0000000) #6
  br label %.peel.next.preheader

.peel.next.preheader:                             ; preds = %27, %28
  br label %.peel.next

.peel.next:                                       ; preds = %.peel.next.preheader, %54
  %indvars.iv = phi i64 [ %indvars.iv.next, %54 ], [ 1, %.peel.next.preheader ]
  %29 = call i32 @iirfiltsos_rrrf_execute_df1(ptr noundef %3, float noundef 0.000000e+00, ptr noundef nonnull %2) #6
  %30 = getelementptr inbounds [15 x float], ptr @__const.autotest_iirfiltsos_impulse_n2.test, i64 0, i64 %indvars.iv
  %31 = load float, ptr %30, align 4, !tbaa !5
  %32 = load float, ptr %2, align 4
  %33 = fsub float %31, %32
  %34 = fpext float %33 to double
  %35 = call double @llvm.fmuladd.f64(double %34, double %34, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %35)
  %36 = fcmp ogt double %sqrt, 0x3F1A36E2E0000000
  br i1 %36, label %40, label %37

37:                                               ; preds = %.peel.next
  %38 = fcmp uno float %31, 0.000000e+00
  %39 = fcmp uno float %32, 0.000000e+00
  %or.cond = select i1 %38, i1 true, i1 %39
  br i1 %or.cond, label %40, label %41

40:                                               ; preds = %37, %.peel.next
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 72, ptr noundef nonnull @.str.1, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F1A36E2E0000000) #6
  br label %42

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

42:                                               ; preds = %41, %40
  %43 = call i32 @iirfiltsos_rrrf_execute_df2(ptr noundef %4, float noundef 0.000000e+00, ptr noundef nonnull %2) #6
  %44 = load float, ptr %2, align 4
  %45 = fsub float %31, %44
  %46 = fpext float %45 to double
  %47 = call double @llvm.fmuladd.f64(double %46, double %46, double 0.000000e+00)
  %sqrt36 = call double @llvm.sqrt.f64(double %47)
  %48 = fcmp ogt double %sqrt36, 0x3F1A36E2E0000000
  br i1 %48, label %52, label %49

49:                                               ; preds = %42
  %50 = fcmp uno float %31, 0.000000e+00
  %51 = fcmp uno float %44, 0.000000e+00
  %or.cond34 = select i1 %50, i1 true, i1 %51
  br i1 %or.cond34, label %52, label %53

52:                                               ; preds = %49, %42
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 76, ptr noundef nonnull @.str.1, double noundef %sqrt36, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F1A36E2E0000000) #6
  br label %54

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

54:                                               ; preds = %52, %53
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 15
  br i1 %exitcond.not, label %.loopexit, label %.peel.next, !llvm.loop !9

.loopexit:                                        ; preds = %54
  %55 = call i32 @iirfiltsos_rrrf_destroy(ptr noundef %3) #6
  %56 = call i32 @iirfiltsos_rrrf_destroy(ptr noundef %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %0) #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 ptr @iirfiltsos_rrrf_create(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @iirfiltsos_rrrf_execute_df1(ptr noundef, float noundef, ptr 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 i32 @iirfiltsos_rrrf_execute_df2(ptr noundef, float noundef, ptr noundef) local_unnamed_addr #3

declare i32 @iirfiltsos_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"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.peeled.count", i32 1}


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