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

@.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
@__const.autotest_iirfiltsos_step_n2.a = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_iirfiltsos_step_n2.b = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_iirfiltsos_step_n2.test = external hidden unnamed_addr constant [15 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

declare ptr @iirfiltsos_rrrf_create(ptr noundef, ptr noundef) #2

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

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

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

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

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

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

declare i32 @iirfiltsos_rrrf_destroy(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_iirfiltsos_step_n2() #5 {
  %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
  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_step_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_step_n2.b, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %9 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %10 = getelementptr inbounds [3 x float], ptr %1, i64 0, i64 0
  %11 = call ptr @iirfiltsos_rrrf_create(ptr noundef %9, ptr noundef %10)
  store ptr %11, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %12 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %13 = getelementptr inbounds [3 x float], ptr %1, i64 0, i64 0
  %14 = call ptr @iirfiltsos_rrrf_create(ptr noundef %12, ptr noundef %13)
  store ptr %14, 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_step_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
  store float 0x3F1A36E2E0000000, ptr %8, align 4, !tbaa !9
  store i32 0, ptr %6, align 4, !tbaa !11
  br label %15

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

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

54:                                               ; preds = %18
  %55 = load i32, ptr %6, align 4, !tbaa !11
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds [15 x float], ptr %5, i64 0, i64 %56
  %58 = load float, ptr %57, align 4, !tbaa !9
  %59 = call i1 @llvm.is.fpclass.f32(float %58, i32 3)
  br i1 %59, label %72, label %60

60:                                               ; preds = %54
  %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 0.000000e+00, i32 3)
  br i1 %65, label %72, label %66

66:                                               ; preds = %60
  %67 = load float, ptr %7, align 4, !tbaa !9
  %68 = call i1 @llvm.is.fpclass.f32(float %67, i32 3)
  br i1 %68, label %72, label %69

69:                                               ; preds = %66
  %70 = load float, ptr %7, align 4, !tbaa !9
  %71 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %71, label %72, label %105

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

105:                                              ; preds = %69
  call void (...) @liquid_autotest_passed()
  br label %106

106:                                              ; preds = %105, %72
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = call i32 @iirfiltsos_rrrf_execute_df2(ptr noundef %107, float noundef 1.000000e+00, ptr noundef %7)
  %109 = load i32, ptr %6, align 4, !tbaa !11
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds [15 x float], ptr %5, i64 0, i64 %110
  %112 = load float, ptr %111, align 4, !tbaa !9
  %113 = load float, ptr %7, align 4, !tbaa !9
  %114 = fsub float %112, %113
  %115 = fpext float %114 to double
  %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 %7, 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 %7, 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 %7, align 4, !tbaa !9
  %135 = fsub float %133, %134
  %136 = fpext float %135 to double
  %137 = call double @llvm.fmuladd.f64(double %115, double %122, double 0.000000e+00)
  %138 = call double @sqrt(double noundef %137) #6
  %139 = load float, ptr %8, align 4, !tbaa !9
  %140 = fpext float %139 to double
  %141 = fcmp ogt double %138, %140
  br i1 %141, label %160, label %142

142:                                              ; preds = %106
  %143 = load i32, ptr %6, align 4, !tbaa !11
  %144 = zext i32 %143 to i64
  %145 = getelementptr inbounds [15 x float], ptr %5, i64 0, i64 %144
  %146 = load float, ptr %145, align 4, !tbaa !9
  %147 = call i1 @llvm.is.fpclass.f32(float %146, i32 3)
  br i1 %147, label %160, label %148

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

154:                                              ; preds = %148
  %155 = load float, ptr %7, align 4, !tbaa !9
  %156 = call i1 @llvm.is.fpclass.f32(float %155, i32 3)
  br i1 %156, label %160, label %157

157:                                              ; preds = %154
  %158 = load float, ptr %7, align 4, !tbaa !9
  %159 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %159, label %160, label %193

160:                                              ; preds = %157, %154, %148, %142, %106
  %161 = load i32, ptr %6, align 4, !tbaa !11
  %162 = zext i32 %161 to i64
  %163 = getelementptr inbounds [15 x float], ptr %5, i64 0, i64 %162
  %164 = load float, ptr %163, align 4, !tbaa !9
  %165 = load float, ptr %7, align 4, !tbaa !9
  %166 = fsub float %164, %165
  %167 = fpext float %166 to double
  %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 %7, 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 %7, 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 %7, align 4, !tbaa !9
  %187 = fsub float %185, %186
  %188 = fpext float %187 to double
  %189 = call double @llvm.fmuladd.f64(double %167, double %174, double 0.000000e+00)
  %190 = call double @sqrt(double noundef %189) #6
  %191 = load float, ptr %8, align 4, !tbaa !9
  %192 = fpext float %191 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 130, ptr noundef @.str.1, double noundef %190, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %192)
  br label %194

193:                                              ; preds = %157
  call void (...) @liquid_autotest_passed()
  br label %194

194:                                              ; preds = %193, %160
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %6, align 4, !tbaa !11
  %197 = add i32 %196, 1
  store i32 %197, ptr %6, align 4, !tbaa !11
  br label %15, !llvm.loop !13

198:                                              ; preds = %15
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %200 = call i32 @iirfiltsos_rrrf_destroy(ptr noundef %199)
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = call i32 @iirfiltsos_rrrf_destroy(ptr noundef %201)
  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
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree 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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"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"

@.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
@__const.autotest_iirfiltsos_step_n2.a = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_iirfiltsos_step_n2.b = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_iirfiltsos_step_n2.test = external hidden unnamed_addr constant [15 x float], align 16

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

declare ptr @iirfiltsos_rrrf_create(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare i32 @iirfiltsos_rrrf_destroy(ptr noundef) 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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_iirfiltsos_step_n2() local_unnamed_addr #4 {
  %1 = alloca [3 x float], align 4
  %2 = alloca [3 x float], align 4
  %3 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) @__const.autotest_iirfiltsos_step_n2.a, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) @__const.autotest_iirfiltsos_step_n2.b, i64 12, i1 false)
  %4 = call ptr @iirfiltsos_rrrf_create(ptr noundef nonnull %2, ptr noundef nonnull %1) #6
  %5 = call ptr @iirfiltsos_rrrf_create(ptr noundef nonnull %2, ptr noundef nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  br label %6

6:                                                ; preds = %0, %32
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %32 ]
  %7 = call i32 @iirfiltsos_rrrf_execute_df1(ptr noundef %4, float noundef 1.000000e+00, ptr noundef nonnull %3) #6
  %8 = getelementptr inbounds [15 x float], ptr @__const.autotest_iirfiltsos_step_n2.test, i64 0, i64 %indvars.iv
  %9 = load float, ptr %8, align 4, !tbaa !5
  %10 = load float, ptr %3, align 4
  %11 = fsub float %9, %10
  %12 = fpext float %11 to double
  %13 = call double @llvm.fmuladd.f64(double %12, double %12, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %13)
  %14 = fcmp ogt double %sqrt, 0x3F1A36E2E0000000
  br i1 %14, label %18, label %15

15:                                               ; preds = %6
  %16 = fcmp uno float %9, 0.000000e+00
  %17 = fcmp uno float %10, 0.000000e+00
  %or.cond = select i1 %16, i1 true, i1 %17
  br i1 %or.cond, label %18, label %19

18:                                               ; preds = %15, %6
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 126, ptr noundef nonnull @.str.1, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F1A36E2E0000000) #6
  br label %20

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

20:                                               ; preds = %19, %18
  %21 = call i32 @iirfiltsos_rrrf_execute_df2(ptr noundef %5, float noundef 1.000000e+00, ptr noundef nonnull %3) #6
  %22 = load float, ptr %3, align 4
  %23 = fsub float %9, %22
  %24 = fpext float %23 to double
  %25 = call double @llvm.fmuladd.f64(double %24, double %24, double 0.000000e+00)
  %sqrt33 = call double @llvm.sqrt.f64(double %25)
  %26 = fcmp ogt double %sqrt33, 0x3F1A36E2E0000000
  br i1 %26, label %30, label %27

27:                                               ; preds = %20
  %28 = fcmp uno float %9, 0.000000e+00
  %29 = fcmp uno float %22, 0.000000e+00
  %or.cond31 = select i1 %28, i1 true, i1 %29
  br i1 %or.cond31, label %30, label %31

30:                                               ; preds = %27, %20
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 130, ptr noundef nonnull @.str.1, double noundef %sqrt33, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F1A36E2E0000000) #6
  br label %32

31:                                               ; preds = %27
  call void (...) @liquid_autotest_passed() #6
  br label %32

32:                                               ; preds = %30, %31
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 15
  br i1 %exitcond.not, label %33, label %6, !llvm.loop !9

33:                                               ; preds = %32
  %34 = call i32 @iirfiltsos_rrrf_destroy(ptr noundef %4) #6
  %35 = call i32 @iirfiltsos_rrrf_destroy(ptr noundef %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #6
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass