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

@liquid_autotest_verbose = external global i32, align 4
@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @lpc_test_harness(i32 noundef %0, i32 noundef %1, float noundef %2, float noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca float, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca float, align 4
  %21 = alloca i32, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !5
  store float %2, ptr %7, align 4, !tbaa !9
  store float %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %25 = load float, ptr %7, align 4, !tbaa !9
  %26 = call ptr @iirfilt_rrrf_create_lowpass(i32 noundef 7, float noundef %25)
  store ptr %26, ptr %9, align 8, !tbaa !11
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = zext i32 %27 to i64
  %29 = call ptr @llvm.stacksave.p0()
  store ptr %29, ptr %10, align 8
  %30 = alloca float, i64 %28, align 16
  store i64 %28, ptr %11, align 8
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = add i32 %31, 1
  %33 = zext i32 %32 to i64
  %34 = alloca float, i64 %33, align 16
  store i64 %33, ptr %12, align 8
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = add i32 %35, 1
  %37 = zext i32 %36 to i64
  %38 = alloca float, i64 %37, align 16
  store i64 %37, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %39 = call ptr @msequence_create_default(i32 noundef 15)
  store ptr %39, ptr %15, align 8, !tbaa !11
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %56, %4
  %41 = load i32, ptr %14, align 4, !tbaa !5
  %42 = load i32, ptr %5, align 4, !tbaa !5
  %43 = icmp ult i32 %41, %42
  br i1 %43, label %44, label %59

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %45 = load ptr, ptr %15, align 8, !tbaa !11
  %46 = call i32 @msequence_generate_symbol(ptr noundef %45, i32 noundef 10)
  %47 = uitofp i32 %46 to float
  %48 = fdiv float %47, 1.023000e+03
  %49 = fsub float %48, 5.000000e-01
  store float %49, ptr %16, align 4, !tbaa !9
  %50 = load ptr, ptr %9, align 8, !tbaa !11
  %51 = load float, ptr %16, align 4, !tbaa !9
  %52 = load i32, ptr %14, align 4, !tbaa !5
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds float, ptr %30, i64 %53
  %55 = call i32 @iirfilt_rrrf_execute(ptr noundef %50, float noundef %51, ptr noundef %54)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %56

56:                                               ; preds = %44
  %57 = load i32, ptr %14, align 4, !tbaa !5
  %58 = add i32 %57, 1
  store i32 %58, ptr %14, align 4, !tbaa !5
  br label %40, !llvm.loop !13

59:                                               ; preds = %40
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = load i32, ptr %6, align 4, !tbaa !5
  call void @liquid_lpc(ptr noundef %30, i32 noundef %60, i32 noundef %61, ptr noundef %34, ptr noundef %38)
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = add i32 %62, 1
  %64 = zext i32 %63 to i64
  %65 = alloca float, i64 %64, align 16
  store i64 %64, ptr %17, align 8
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = add i32 %66, 1
  %68 = zext i32 %67 to i64
  %69 = alloca float, i64 %68, align 16
  store i64 %68, ptr %18, align 8
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %97, %59
  %71 = load i32, ptr %14, align 4, !tbaa !5
  %72 = load i32, ptr %6, align 4, !tbaa !5
  %73 = add i32 %72, 1
  %74 = icmp ult i32 %71, %73
  br i1 %74, label %75, label %100

75:                                               ; preds = %70
  %76 = load i32, ptr %14, align 4, !tbaa !5
  %77 = icmp eq i32 %76, 0
  %78 = zext i1 %77 to i64
  %79 = select i1 %77, float 1.000000e+00, float 0.000000e+00
  %80 = load i32, ptr %14, align 4, !tbaa !5
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds float, ptr %65, i64 %81
  store float %79, ptr %82, align 4, !tbaa !9
  %83 = load i32, ptr %14, align 4, !tbaa !5
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %75
  br label %92

86:                                               ; preds = %75
  %87 = load i32, ptr %14, align 4, !tbaa !5
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds float, ptr %34, i64 %88
  %90 = load float, ptr %89, align 4, !tbaa !9
  %91 = fneg float %90
  br label %92

92:                                               ; preds = %86, %85
  %93 = phi float [ 0.000000e+00, %85 ], [ %91, %86 ]
  %94 = load i32, ptr %14, align 4, !tbaa !5
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds float, ptr %69, i64 %95
  store float %93, ptr %96, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %92
  %98 = load i32, ptr %14, align 4, !tbaa !5
  %99 = add i32 %98, 1
  store i32 %99, ptr %14, align 4, !tbaa !5
  br label %70, !llvm.loop !15

100:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %101 = load i32, ptr %6, align 4, !tbaa !5
  %102 = add i32 %101, 1
  %103 = load i32, ptr %6, align 4, !tbaa !5
  %104 = add i32 %103, 1
  %105 = call ptr @iirfilt_rrrf_create(ptr noundef %69, i32 noundef %102, ptr noundef %65, i32 noundef %104)
  store ptr %105, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store float 0.000000e+00, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 5000, ptr %21, align 4, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %130, %100
  %107 = load i32, ptr %14, align 4, !tbaa !5
  %108 = load i32, ptr %21, align 4, !tbaa !5
  %109 = icmp ult i32 %107, %108
  br i1 %109, label %110, label %133

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %111 = load ptr, ptr %15, align 8, !tbaa !11
  %112 = call i32 @msequence_generate_symbol(ptr noundef %111, i32 noundef 10)
  %113 = uitofp i32 %112 to float
  %114 = fdiv float %113, 1.023000e+03
  %115 = fsub float %114, 5.000000e-01
  store float %115, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %116 = load ptr, ptr %9, align 8, !tbaa !11
  %117 = load float, ptr %22, align 4, !tbaa !9
  %118 = call i32 @iirfilt_rrrf_execute(ptr noundef %116, float noundef %117, ptr noundef %23)
  %119 = load ptr, ptr %19, align 8, !tbaa !11
  %120 = load float, ptr %23, align 4, !tbaa !9
  %121 = call i32 @iirfilt_rrrf_execute(ptr noundef %119, float noundef %120, ptr noundef %24)
  %122 = load float, ptr %23, align 4, !tbaa !9
  %123 = load float, ptr %24, align 4, !tbaa !9
  %124 = fsub float %122, %123
  %125 = load float, ptr %23, align 4, !tbaa !9
  %126 = load float, ptr %24, align 4, !tbaa !9
  %127 = fsub float %125, %126
  %128 = load float, ptr %20, align 4, !tbaa !9
  %129 = call float @llvm.fmuladd.f32(float %124, float %127, float %128)
  store float %129, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %130

130:                                              ; preds = %110
  %131 = load i32, ptr %14, align 4, !tbaa !5
  %132 = add i32 %131, 1
  store i32 %132, ptr %14, align 4, !tbaa !5
  br label %106, !llvm.loop !16

133:                                              ; preds = %106
  %134 = load float, ptr %20, align 4, !tbaa !9
  %135 = load i32, ptr %21, align 4, !tbaa !5
  %136 = uitofp i32 %135 to float
  %137 = fdiv float %134, %136
  %138 = call float @log10f(float noundef %137) #6
  %139 = fmul float 1.000000e+01, %138
  store float %139, ptr %20, align 4, !tbaa !9
  %140 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %158

142:                                              ; preds = %133
  %143 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %144 = load ptr, ptr %9, align 8, !tbaa !11
  %145 = call i32 @iirfilt_rrrf_print(ptr noundef %144)
  %146 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %147 = load ptr, ptr %19, align 8, !tbaa !11
  %148 = call i32 @iirfilt_rrrf_print(ptr noundef %147)
  %149 = load i32, ptr %5, align 4, !tbaa !5
  %150 = load i32, ptr %6, align 4, !tbaa !5
  %151 = load float, ptr %7, align 4, !tbaa !9
  %152 = fpext float %151 to double
  %153 = load float, ptr %20, align 4, !tbaa !9
  %154 = fpext float %153 to double
  %155 = load float, ptr %8, align 4, !tbaa !9
  %156 = fpext float %155 to double
  %157 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %149, i32 noundef %150, double noundef %152, double noundef %154, double noundef %156)
  br label %158

158:                                              ; preds = %142, %133
  %159 = load float, ptr %20, align 4, !tbaa !9
  %160 = load float, ptr %8, align 4, !tbaa !9
  %161 = fcmp oge float %159, %160
  br i1 %161, label %162, label %167

162:                                              ; preds = %158
  %163 = load float, ptr %20, align 4, !tbaa !9
  %164 = fpext float %163 to double
  %165 = load float, ptr %8, align 4, !tbaa !9
  %166 = fpext float %165 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.3, i32 noundef 94, ptr noundef @.str.4, double noundef %164, ptr noundef @.str.5, ptr noundef @.str.6, double noundef %166)
  br label %168

167:                                              ; preds = %158
  call void (...) @liquid_autotest_passed()
  br label %168

168:                                              ; preds = %167, %162
  %169 = load ptr, ptr %9, align 8, !tbaa !11
  %170 = call i32 @iirfilt_rrrf_destroy(ptr noundef %169)
  %171 = load ptr, ptr %19, align 8, !tbaa !11
  %172 = call i32 @iirfilt_rrrf_destroy(ptr noundef %171)
  %173 = load ptr, ptr %15, align 8, !tbaa !11
  %174 = call i32 @msequence_destroy(ptr noundef %173)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  %175 = load ptr, ptr %10, align 8
  call void @llvm.stackrestore.p0(ptr %175)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #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 ptr @iirfilt_rrrf_create_lowpass(i32 noundef, float noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

declare ptr @msequence_create_default(i32 noundef) #2

declare i32 @msequence_generate_symbol(ptr noundef, i32 noundef) #2

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

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

declare void @liquid_lpc(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2

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

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

; Function Attrs: nounwind
declare float @log10f(float noundef) #5

declare i32 @printf(ptr noundef, ...) #2

declare i32 @iirfilt_rrrf_print(ptr noundef) #2

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 @iirfilt_rrrf_destroy(ptr noundef) #2

declare i32 @msequence_destroy(ptr noundef) #2

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

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 nosync nounwind willreturn }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #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 = !{!"int", !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 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !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"

@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @lpc_test_harness(i32 noundef %0, i32 noundef %1, float noundef %2, float noundef %3) local_unnamed_addr #0 {
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = tail call ptr @iirfilt_rrrf_create_lowpass(i32 noundef 7, float noundef %2) #6
  %8 = zext i32 %0 to i64
  %9 = alloca float, i64 %8, align 16
  %10 = add i32 %1, 1
  %11 = zext i32 %10 to i64
  %12 = alloca float, i64 %11, align 16
  %13 = alloca float, i64 %11, align 16
  %14 = tail call ptr @msequence_create_default(i32 noundef 15) #6
  %.not61 = icmp eq i32 %0, 0
  br i1 %.not61, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %4, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %4 ]
  %15 = call i32 @msequence_generate_symbol(ptr noundef %14, i32 noundef 10) #6
  %16 = uitofp i32 %15 to float
  %17 = fdiv float %16, 1.023000e+03
  %18 = fadd float %17, -5.000000e-01
  %19 = getelementptr inbounds float, ptr %9, i64 %indvars.iv
  %20 = call i32 @iirfilt_rrrf_execute(ptr noundef %7, float noundef %18, ptr noundef nonnull %19) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %8
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph, %4
  call void @liquid_lpc(ptr noundef nonnull %9, i32 noundef %0, i32 noundef %1, ptr noundef nonnull %12, ptr noundef nonnull %13) #6
  %21 = alloca float, i64 %11, align 16
  %22 = alloca float, i64 %11, align 16
  %.not62 = icmp eq i32 %10, 0
  br i1 %.not62, label %._crit_edge58, label %23

23:                                               ; preds = %._crit_edge
  store float 1.000000e+00, ptr %21, align 16, !tbaa !7
  store float 0.000000e+00, ptr %22, align 16, !tbaa !7
  %exitcond68.peel.not = icmp eq i32 %1, 0
  br i1 %exitcond68.peel.not, label %._crit_edge58, label %.lr.ph57.peel.next.preheader

.lr.ph57.peel.next.preheader:                     ; preds = %23
  %24 = add nsw i64 %11, -1
  %min.iters.check = icmp ult i32 %10, 9
  br i1 %min.iters.check, label %.lr.ph57.peel.next.preheader72, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph57.peel.next.preheader
  %n.vec = and i64 %24, -8
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %25 = getelementptr inbounds float, ptr %21, i64 %offset.idx
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  store <4 x float> zeroinitializer, ptr %25, align 4, !tbaa !7
  store <4 x float> zeroinitializer, ptr %26, align 4, !tbaa !7
  %27 = getelementptr inbounds float, ptr %12, i64 %offset.idx
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  %wide.load = load <4 x float>, ptr %27, align 4, !tbaa !7
  %wide.load71 = load <4 x float>, ptr %28, align 4, !tbaa !7
  %29 = fneg <4 x float> %wide.load
  %30 = fneg <4 x float> %wide.load71
  %31 = getelementptr inbounds float, ptr %22, i64 %offset.idx
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  store <4 x float> %29, ptr %31, align 4, !tbaa !7
  store <4 x float> %30, ptr %32, align 4, !tbaa !7
  %index.next = add nuw i64 %index, 8
  %33 = icmp eq i64 %index.next, %n.vec
  br i1 %33, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %24, %n.vec
  br i1 %cmp.n, label %._crit_edge58, label %.lr.ph57.peel.next.preheader72

.lr.ph57.peel.next.preheader72:                   ; preds = %middle.block, %.lr.ph57.peel.next.preheader
  %indvars.iv64.ph = phi i64 [ 1, %.lr.ph57.peel.next.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph57.peel.next

.lr.ph57.peel.next:                               ; preds = %.lr.ph57.peel.next.preheader72, %.lr.ph57.peel.next
  %indvars.iv64 = phi i64 [ %indvars.iv.next65, %.lr.ph57.peel.next ], [ %indvars.iv64.ph, %.lr.ph57.peel.next.preheader72 ]
  %34 = getelementptr inbounds float, ptr %21, i64 %indvars.iv64
  store float 0.000000e+00, ptr %34, align 4, !tbaa !7
  %35 = getelementptr inbounds float, ptr %12, i64 %indvars.iv64
  %36 = load float, ptr %35, align 4, !tbaa !7
  %37 = fneg float %36
  %38 = getelementptr inbounds float, ptr %22, i64 %indvars.iv64
  store float %37, ptr %38, align 4, !tbaa !7
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %exitcond68.not = icmp eq i64 %indvars.iv.next65, %11
  br i1 %exitcond68.not, label %._crit_edge58, label %.lr.ph57.peel.next, !llvm.loop !15

._crit_edge58:                                    ; preds = %.lr.ph57.peel.next, %middle.block, %23, %._crit_edge
  %39 = call ptr @iirfilt_rrrf_create(ptr noundef nonnull %22, i32 noundef %10, ptr noundef nonnull %21, i32 noundef %10) #6
  br label %40

40:                                               ; preds = %._crit_edge58, %40
  %.260 = phi i32 [ 0, %._crit_edge58 ], [ %52, %40 ]
  %.04959 = phi float [ 0.000000e+00, %._crit_edge58 ], [ %51, %40 ]
  %41 = call i32 @msequence_generate_symbol(ptr noundef %14, i32 noundef 10) #6
  %42 = uitofp i32 %41 to float
  %43 = fdiv float %42, 1.023000e+03
  %44 = fadd float %43, -5.000000e-01
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %45 = call i32 @iirfilt_rrrf_execute(ptr noundef %7, float noundef %44, ptr noundef nonnull %5) #6
  %46 = load float, ptr %5, align 4, !tbaa !7
  %47 = call i32 @iirfilt_rrrf_execute(ptr noundef %39, float noundef %46, ptr noundef nonnull %6) #6
  %48 = load float, ptr %5, align 4, !tbaa !7
  %49 = load float, ptr %6, align 4, !tbaa !7
  %50 = fsub float %48, %49
  %51 = call float @llvm.fmuladd.f32(float %50, float %50, float %.04959)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  %52 = add nuw nsw i32 %.260, 1
  %exitcond70.not = icmp eq i32 %52, 5000
  br i1 %exitcond70.not, label %53, label %40, !llvm.loop !16

53:                                               ; preds = %40
  %54 = fdiv float %51, 5.000000e+03
  %55 = call float @log10f(float noundef %54) #6
  %56 = fmul float %55, 1.000000e+01
  %57 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !17
  %.not = icmp eq i32 %57, 0
  br i1 %.not, label %67, label %58

58:                                               ; preds = %53
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %60 = call i32 @iirfilt_rrrf_print(ptr noundef %7) #6
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %62 = call i32 @iirfilt_rrrf_print(ptr noundef %39) #6
  %63 = fpext float %2 to double
  %64 = fpext float %56 to double
  %65 = fpext float %3 to double
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %0, i32 noundef %1, double noundef %63, double noundef %64, double noundef %65)
  br label %67

67:                                               ; preds = %58, %53
  %68 = fcmp ult float %56, %3
  br i1 %68, label %72, label %69

69:                                               ; preds = %67
  %70 = fpext float %56 to double
  %71 = fpext float %3 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.3, i32 noundef 94, ptr noundef nonnull @.str.4, double noundef %70, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, double noundef %71) #6
  br label %73

72:                                               ; preds = %67
  call void (...) @liquid_autotest_passed() #6
  br label %73

73:                                               ; preds = %72, %69
  %74 = call i32 @iirfilt_rrrf_destroy(ptr noundef %7) #6
  %75 = call i32 @iirfilt_rrrf_destroy(ptr noundef %39) #6
  %76 = call i32 @msequence_destroy(ptr noundef %14) #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

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

declare ptr @msequence_create_default(i32 noundef) local_unnamed_addr #2

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

declare i32 @iirfilt_rrrf_execute(ptr noundef, float noundef, 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) #1

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @log10f(float noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

declare i32 @iirfilt_rrrf_print(ptr noundef) local_unnamed_addr #2

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 @iirfilt_rrrf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @msequence_destroy(ptr noundef) local_unnamed_addr #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 = { 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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { nofree 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 #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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = distinct !{!11, !6, !12, !13, !14}
!12 = !{!"llvm.loop.peeled.count", i32 1}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !6, !12, !14, !13}
!16 = distinct !{!16, !6}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !9, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass