; LLVM IR from jgaeddert/liquid-dsp :: src/equalization/tests (eqrls_rrrf_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"

@eqrls_rrrf_autotest_data_sequence = external dso_local constant [64 x float], align 16
@.str = external hidden unnamed_addr constant [99 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
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_eqrls_rrrf_01() #0 {
  %1 = alloca float, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store float 0x3F847AE140000000, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 4, ptr %2, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 6, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 64, ptr %4, align 4, !tbaa !9
  %13 = load i32, ptr %4, align 4, !tbaa !9
  %14 = zext i32 %13 to i64
  %15 = call ptr @llvm.stacksave.p0()
  store ptr %15, ptr %5, align 8
  %16 = alloca float, i64 %14, align 16
  store i64 %14, ptr %6, align 8
  %17 = load i32, ptr %2, align 4, !tbaa !9
  %18 = zext i32 %17 to i64
  %19 = alloca float, i64 %18, align 16
  store i64 %18, ptr %7, align 8
  %20 = load i32, ptr %3, align 4, !tbaa !9
  %21 = zext i32 %20 to i64
  %22 = alloca float, i64 %21, align 16
  store i64 %21, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %23 = load i32, ptr %3, align 4, !tbaa !9
  %24 = call ptr @eqrls_rrrf_create(ptr noundef null, i32 noundef %23)
  store ptr %24, ptr %10, align 8, !tbaa !11
  %25 = getelementptr inbounds float, ptr %19, i64 0
  store float 1.000000e+00, ptr %25, align 16, !tbaa !5
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %34, %0
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = load i32, ptr %2, align 4, !tbaa !9
  %29 = icmp ult i32 %27, %28
  br i1 %29, label %30, label %37

30:                                               ; preds = %26
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = getelementptr inbounds float, ptr %19, i64 %32
  store float 0.000000e+00, ptr %33, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %30
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = add i32 %35, 1
  store i32 %36, ptr %9, align 4, !tbaa !9
  br label %26, !llvm.loop !13

37:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %38 = load i32, ptr %2, align 4, !tbaa !9
  %39 = call ptr @firfilt_rrrf_create(ptr noundef %19, i32 noundef %38)
  store ptr %39, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store ptr @eqrls_rrrf_autotest_data_sequence, ptr %12, align 8, !tbaa !11
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %57, %37
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = load i32, ptr %4, align 4, !tbaa !9
  %43 = icmp ult i32 %41, %42
  br i1 %43, label %44, label %60

44:                                               ; preds = %40
  %45 = load ptr, ptr %11, align 8, !tbaa !11
  %46 = load ptr, ptr %12, align 8, !tbaa !11
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds float, ptr %46, i64 %48
  %50 = load float, ptr %49, align 4, !tbaa !5
  %51 = call i32 @firfilt_rrrf_push(ptr noundef %45, float noundef %50)
  %52 = load ptr, ptr %11, align 8, !tbaa !11
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds float, ptr %16, i64 %54
  %56 = call i32 @firfilt_rrrf_execute(ptr noundef %52, ptr noundef %55)
  br label %57

57:                                               ; preds = %44
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = add i32 %58, 1
  store i32 %59, ptr %9, align 4, !tbaa !9
  br label %40, !llvm.loop !15

60:                                               ; preds = %40
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %69, %60
  %62 = load i32, ptr %9, align 4, !tbaa !9
  %63 = load i32, ptr %3, align 4, !tbaa !9
  %64 = icmp ult i32 %62, %63
  br i1 %64, label %65, label %72

65:                                               ; preds = %61
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds float, ptr %22, i64 %67
  store float 0.000000e+00, ptr %68, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %65
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = add i32 %70, 1
  store i32 %71, ptr %9, align 4, !tbaa !9
  br label %61, !llvm.loop !16

72:                                               ; preds = %61
  %73 = load ptr, ptr %10, align 8, !tbaa !11
  %74 = load ptr, ptr %12, align 8, !tbaa !11
  %75 = load i32, ptr %4, align 4, !tbaa !9
  %76 = call i32 @eqrls_rrrf_train(ptr noundef %73, ptr noundef %22, ptr noundef %16, ptr noundef %74, i32 noundef %75)
  %77 = getelementptr inbounds float, ptr %22, i64 0
  %78 = load float, ptr %77, align 16, !tbaa !5
  %79 = fsub float %78, 1.000000e+00
  %80 = fpext float %79 to double
  %81 = getelementptr inbounds float, ptr %22, i64 0
  %82 = load float, ptr %81, align 16, !tbaa !5
  %83 = fsub float %82, 1.000000e+00
  %84 = fpext float %83 to double
  %85 = getelementptr inbounds float, ptr %22, i64 0
  %86 = load float, ptr %85, align 16, !tbaa !5
  %87 = fsub float %86, 1.000000e+00
  %88 = fpext float %87 to double
  %89 = getelementptr inbounds float, ptr %22, i64 0
  %90 = load float, ptr %89, align 16, !tbaa !5
  %91 = fsub float %90, 1.000000e+00
  %92 = fpext float %91 to double
  %93 = call double @llvm.fmuladd.f64(double %80, double %84, double 0.000000e+00)
  %94 = call double @sqrt(double noundef %93) #6
  %95 = load float, ptr %1, align 4, !tbaa !5
  %96 = fpext float %95 to double
  %97 = fcmp ogt double %94, %96
  br i1 %97, label %110, label %98

98:                                               ; preds = %72
  %99 = getelementptr inbounds float, ptr %22, i64 0
  %100 = load float, ptr %99, align 16, !tbaa !5
  %101 = call i1 @llvm.is.fpclass.f32(float %100, i32 3)
  br i1 %101, label %110, label %102

102:                                              ; preds = %98
  %103 = getelementptr inbounds float, ptr %22, i64 0
  %104 = load float, ptr %103, align 16, !tbaa !5
  %105 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %105, label %110, label %106

106:                                              ; preds = %102
  %107 = call i1 @llvm.is.fpclass.f32(float 1.000000e+00, i32 3)
  br i1 %107, label %110, label %108

108:                                              ; preds = %106
  %109 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %109, label %110, label %131

110:                                              ; preds = %108, %106, %102, %98, %72
  %111 = getelementptr inbounds float, ptr %22, i64 0
  %112 = load float, ptr %111, align 16, !tbaa !5
  %113 = fsub float %112, 1.000000e+00
  %114 = fpext float %113 to double
  %115 = getelementptr inbounds float, ptr %22, i64 0
  %116 = load float, ptr %115, align 16, !tbaa !5
  %117 = fsub float %116, 1.000000e+00
  %118 = fpext float %117 to double
  %119 = getelementptr inbounds float, ptr %22, i64 0
  %120 = load float, ptr %119, align 16, !tbaa !5
  %121 = fsub float %120, 1.000000e+00
  %122 = fpext float %121 to double
  %123 = getelementptr inbounds float, ptr %22, i64 0
  %124 = load float, ptr %123, align 16, !tbaa !5
  %125 = fsub float %124, 1.000000e+00
  %126 = fpext float %125 to double
  %127 = call double @llvm.fmuladd.f64(double %114, double %118, double 0.000000e+00)
  %128 = call double @sqrt(double noundef %127) #6
  %129 = load float, ptr %1, align 4, !tbaa !5
  %130 = fpext float %129 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 79, ptr noundef @.str.1, double noundef %128, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %130)
  br label %132

131:                                              ; preds = %108
  call void (...) @liquid_autotest_passed()
  br label %132

132:                                              ; preds = %131, %110
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %214, %132
  %134 = load i32, ptr %9, align 4, !tbaa !9
  %135 = load i32, ptr %3, align 4, !tbaa !9
  %136 = icmp ult i32 %134, %135
  br i1 %136, label %137, label %217

137:                                              ; preds = %133
  %138 = load i32, ptr %9, align 4, !tbaa !9
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds float, ptr %22, i64 %139
  %141 = load float, ptr %140, align 4, !tbaa !5
  %142 = fsub float %141, 0.000000e+00
  %143 = fpext float %142 to double
  %144 = load i32, ptr %9, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds float, ptr %22, i64 %145
  %147 = load float, ptr %146, align 4, !tbaa !5
  %148 = fsub float %147, 0.000000e+00
  %149 = fpext float %148 to double
  %150 = load i32, ptr %9, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds float, ptr %22, i64 %151
  %153 = load float, ptr %152, align 4, !tbaa !5
  %154 = fsub float %153, 0.000000e+00
  %155 = fpext float %154 to double
  %156 = load i32, ptr %9, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds float, ptr %22, i64 %157
  %159 = load float, ptr %158, align 4, !tbaa !5
  %160 = fsub float %159, 0.000000e+00
  %161 = fpext float %160 to double
  %162 = call double @llvm.fmuladd.f64(double %143, double %149, double 0.000000e+00)
  %163 = call double @sqrt(double noundef %162) #6
  %164 = load float, ptr %1, align 4, !tbaa !5
  %165 = fpext float %164 to double
  %166 = fcmp ogt double %163, %165
  br i1 %166, label %183, label %167

167:                                              ; preds = %137
  %168 = load i32, ptr %9, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = getelementptr inbounds float, ptr %22, i64 %169
  %171 = load float, ptr %170, align 4, !tbaa !5
  %172 = call i1 @llvm.is.fpclass.f32(float %171, i32 3)
  br i1 %172, label %183, label %173

173:                                              ; preds = %167
  %174 = load i32, ptr %9, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = getelementptr inbounds float, ptr %22, i64 %175
  %177 = load float, ptr %176, align 4, !tbaa !5
  %178 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %178, label %183, label %179

179:                                              ; preds = %173
  %180 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %180, label %183, label %181

181:                                              ; preds = %179
  %182 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %182, label %183, label %212

183:                                              ; preds = %181, %179, %173, %167, %137
  %184 = load i32, ptr %9, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds float, ptr %22, i64 %185
  %187 = load float, ptr %186, align 4, !tbaa !5
  %188 = fsub float %187, 0.000000e+00
  %189 = fpext float %188 to double
  %190 = load i32, ptr %9, align 4, !tbaa !9
  %191 = zext i32 %190 to i64
  %192 = getelementptr inbounds float, ptr %22, i64 %191
  %193 = load float, ptr %192, align 4, !tbaa !5
  %194 = fsub float %193, 0.000000e+00
  %195 = fpext float %194 to double
  %196 = load i32, ptr %9, align 4, !tbaa !9
  %197 = zext i32 %196 to i64
  %198 = getelementptr inbounds float, ptr %22, i64 %197
  %199 = load float, ptr %198, align 4, !tbaa !5
  %200 = fsub float %199, 0.000000e+00
  %201 = fpext float %200 to double
  %202 = load i32, ptr %9, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = getelementptr inbounds float, ptr %22, i64 %203
  %205 = load float, ptr %204, align 4, !tbaa !5
  %206 = fsub float %205, 0.000000e+00
  %207 = fpext float %206 to double
  %208 = call double @llvm.fmuladd.f64(double %189, double %195, double 0.000000e+00)
  %209 = call double @sqrt(double noundef %208) #6
  %210 = load float, ptr %1, align 4, !tbaa !5
  %211 = fpext float %210 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 81, ptr noundef @.str.4, double noundef %209, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %211)
  br label %213

212:                                              ; preds = %181
  call void (...) @liquid_autotest_passed()
  br label %213

213:                                              ; preds = %212, %183
  br label %214

214:                                              ; preds = %213
  %215 = load i32, ptr %9, align 4, !tbaa !9
  %216 = add i32 %215, 1
  store i32 %216, ptr %9, align 4, !tbaa !9
  br label %133, !llvm.loop !17

217:                                              ; preds = %133
  %218 = load ptr, ptr %11, align 8, !tbaa !11
  %219 = call i32 @firfilt_rrrf_destroy(ptr noundef %218)
  %220 = load ptr, ptr %10, align 8, !tbaa !11
  %221 = call i32 @eqrls_rrrf_destroy(ptr noundef %220)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  %222 = load ptr, ptr %5, align 8
  call void @llvm.stackrestore.p0(ptr %222)
  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 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, 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 nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

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

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

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

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

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

declare i32 @eqrls_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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

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 nosync nounwind willreturn }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

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

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


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

@eqrls_rrrf_autotest_data_sequence = external dso_local constant [64 x float], align 16
@.str = external hidden unnamed_addr constant [99 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
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_eqrls_rrrf_01() local_unnamed_addr #0 {
  %1 = alloca [64 x float], align 16
  %2 = alloca [4 x float], align 16
  %3 = alloca [6 x float], align 16
  %4 = tail call ptr @eqrls_rrrf_create(ptr noundef null, i32 noundef 6) #5
  store float 1.000000e+00, ptr %2, align 16, !tbaa !5
  %scevgep = getelementptr inbounds i8, ptr %2, i64 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %scevgep, i8 0, i64 12, i1 false), !tbaa !5
  %5 = call ptr @firfilt_rrrf_create(ptr noundef nonnull %2, i32 noundef 4) #5
  br label %6

6:                                                ; preds = %0, %6
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %6 ]
  %7 = getelementptr inbounds float, ptr @eqrls_rrrf_autotest_data_sequence, i64 %indvars.iv
  %8 = load float, ptr %7, align 4, !tbaa !5
  %9 = call i32 @firfilt_rrrf_push(ptr noundef %5, float noundef %8) #5
  %10 = getelementptr inbounds float, ptr %1, i64 %indvars.iv
  %11 = call i32 @firfilt_rrrf_execute(ptr noundef %5, ptr noundef nonnull %10) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 64
  br i1 %exitcond.not, label %.preheader.preheader, label %6, !llvm.loop !9

.preheader.preheader:                             ; preds = %6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %3, i8 0, i64 24, i1 false), !tbaa !5
  %12 = call i32 @eqrls_rrrf_train(ptr noundef %4, ptr noundef nonnull %3, ptr noundef nonnull %1, ptr noundef nonnull @eqrls_rrrf_autotest_data_sequence, i32 noundef 64) #5
  %13 = load float, ptr %3, align 16
  %14 = fadd float %13, -1.000000e+00
  %15 = fpext float %14 to double
  %16 = call double @llvm.fmuladd.f64(double %15, double %15, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %16)
  %17 = fcmp ogt double %sqrt, 0x3F847AE140000000
  %18 = fcmp uno float %13, 0.000000e+00
  %or.cond = select i1 %17, i1 true, i1 %18
  br i1 %or.cond, label %19, label %20

19:                                               ; preds = %.preheader.preheader
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 79, ptr noundef nonnull @.str.1, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F847AE140000000) #5
  br label %21

20:                                               ; preds = %.preheader.preheader
  call void (...) @liquid_autotest_passed() #5
  br label %21

21:                                               ; preds = %20, %19
  %22 = getelementptr inbounds i8, ptr %3, i64 4
  %23 = load float, ptr %22, align 4, !tbaa !5
  %24 = fpext float %23 to double
  %25 = call double @llvm.fmuladd.f64(double %24, double %24, double 0.000000e+00)
  %sqrt45 = call double @llvm.sqrt.f64(double %25)
  %26 = fcmp ogt double %sqrt45, 0x3F847AE140000000
  %27 = fcmp uno float %23, 0.000000e+00
  %or.cond60 = select i1 %26, i1 true, i1 %27
  br i1 %or.cond60, label %28, label %29

28:                                               ; preds = %21
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 81, ptr noundef nonnull @.str.4, double noundef %sqrt45, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F847AE140000000) #5
  br label %30

29:                                               ; preds = %21
  call void (...) @liquid_autotest_passed() #5
  br label %30

30:                                               ; preds = %28, %29
  %31 = getelementptr inbounds i8, ptr %3, i64 8
  %32 = load float, ptr %31, align 8, !tbaa !5
  %33 = fpext float %32 to double
  %34 = call double @llvm.fmuladd.f64(double %33, double %33, double 0.000000e+00)
  %sqrt45.1 = call double @llvm.sqrt.f64(double %34)
  %35 = fcmp ogt double %sqrt45.1, 0x3F847AE140000000
  %36 = fcmp uno float %32, 0.000000e+00
  %or.cond61 = select i1 %35, i1 true, i1 %36
  br i1 %or.cond61, label %38, label %37

37:                                               ; preds = %30
  call void (...) @liquid_autotest_passed() #5
  br label %39

38:                                               ; preds = %30
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 81, ptr noundef nonnull @.str.4, double noundef %sqrt45.1, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F847AE140000000) #5
  br label %39

39:                                               ; preds = %38, %37
  %40 = getelementptr inbounds i8, ptr %3, i64 12
  %41 = load float, ptr %40, align 4, !tbaa !5
  %42 = fpext float %41 to double
  %43 = call double @llvm.fmuladd.f64(double %42, double %42, double 0.000000e+00)
  %sqrt45.2 = call double @llvm.sqrt.f64(double %43)
  %44 = fcmp ogt double %sqrt45.2, 0x3F847AE140000000
  %45 = fcmp uno float %41, 0.000000e+00
  %or.cond62 = select i1 %44, i1 true, i1 %45
  br i1 %or.cond62, label %47, label %46

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

47:                                               ; preds = %39
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 81, ptr noundef nonnull @.str.4, double noundef %sqrt45.2, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F847AE140000000) #5
  br label %48

48:                                               ; preds = %47, %46
  %49 = getelementptr inbounds i8, ptr %3, i64 16
  %50 = load float, ptr %49, align 16, !tbaa !5
  %51 = fpext float %50 to double
  %52 = call double @llvm.fmuladd.f64(double %51, double %51, double 0.000000e+00)
  %sqrt45.3 = call double @llvm.sqrt.f64(double %52)
  %53 = fcmp ogt double %sqrt45.3, 0x3F847AE140000000
  %54 = fcmp uno float %50, 0.000000e+00
  %or.cond63 = select i1 %53, i1 true, i1 %54
  br i1 %or.cond63, label %56, label %55

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

56:                                               ; preds = %48
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 81, ptr noundef nonnull @.str.4, double noundef %sqrt45.3, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F847AE140000000) #5
  br label %57

57:                                               ; preds = %56, %55
  %58 = getelementptr inbounds i8, ptr %3, i64 20
  %59 = load float, ptr %58, align 4, !tbaa !5
  %60 = fpext float %59 to double
  %61 = call double @llvm.fmuladd.f64(double %60, double %60, double 0.000000e+00)
  %sqrt45.4 = call double @llvm.sqrt.f64(double %61)
  %62 = fcmp ogt double %sqrt45.4, 0x3F847AE140000000
  %63 = fcmp uno float %59, 0.000000e+00
  %or.cond64 = select i1 %62, i1 true, i1 %63
  br i1 %or.cond64, label %65, label %64

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

65:                                               ; preds = %57
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 81, ptr noundef nonnull @.str.4, double noundef %sqrt45.4, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F847AE140000000) #5
  br label %66

66:                                               ; preds = %65, %64
  %67 = call i32 @firfilt_rrrf_destroy(ptr noundef %5) #5
  %68 = call i32 @eqrls_rrrf_destroy(ptr noundef %4) #5
  ret void
}

declare ptr @eqrls_rrrf_create(ptr noundef, i32 noundef) local_unnamed_addr #1

declare ptr @firfilt_rrrf_create(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @firfilt_rrrf_push(ptr noundef, float noundef) local_unnamed_addr #1

declare i32 @firfilt_rrrf_execute(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @eqrls_rrrf_train(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

declare void @liquid_autotest_passed(...) local_unnamed_addr #1

declare i32 @firfilt_rrrf_destroy(ptr noundef) local_unnamed_addr #1

declare i32 @eqrls_rrrf_destroy(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { "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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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