; LLVM IR from jgaeddert/liquid-dsp :: src/filter/tests (firhilb_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.2 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@__const.autotest_firhilbf_interp.x = external hidden unnamed_addr constant [16 x { float, float }], align 16
@__const.autotest_firhilbf_interp.test = external hidden unnamed_addr constant [32 x float], align 16
@.str.7 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1

; 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 @firhilbf_create(i32 noundef, float noundef) #2

declare i32 @printf(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 @firhilbf_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_firhilbf_interp() #5 {
  %1 = alloca [16 x { float, float }], align 16
  %2 = alloca [32 x float], align 16
  %3 = alloca [32 x float], align 16
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca { float, float }, align 4
  call void @llvm.lifetime.start.p0(i64 128, ptr %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.autotest_firhilbf_interp.x, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.autotest_firhilbf_interp.test, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 5, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %9 = load i32, ptr %4, align 4, !tbaa !5
  %10 = call ptr @firhilbf_create(i32 noundef %9, float noundef 6.000000e+01)
  store ptr %10, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store float 0x3F747AE140000000, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %11

11:                                               ; preds = %31, %0
  %12 = load i32, ptr %7, align 4, !tbaa !5
  %13 = icmp ult i32 %12, 16
  br i1 %13, label %14, label %34

14:                                               ; preds = %11
  %15 = load ptr, ptr %5, align 8, !tbaa !9
  %16 = load i32, ptr %7, align 4, !tbaa !5
  %17 = zext i32 %16 to i64
  %18 = getelementptr inbounds [16 x { float, float }], ptr %1, i64 0, i64 %17
  %19 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %20 = load float, ptr %19, align 8
  %21 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  %22 = load float, ptr %21, align 4
  %23 = load i32, ptr %7, align 4, !tbaa !5
  %24 = mul i32 2, %23
  %25 = zext i32 %24 to i64
  %26 = getelementptr inbounds [32 x float], ptr %3, i64 0, i64 %25
  %27 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 0
  %28 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 1
  store float %20, ptr %27, align 4
  store float %22, ptr %28, align 4
  %29 = load <2 x float>, ptr %8, align 4
  %30 = call i32 @firhilbf_interp_execute(ptr noundef %15, <2 x float> noundef %29, ptr noundef %26)
  br label %31

31:                                               ; preds = %14
  %32 = load i32, ptr %7, align 4, !tbaa !5
  %33 = add i32 %32, 1
  store i32 %33, ptr %7, align 4, !tbaa !5
  br label %11, !llvm.loop !13

34:                                               ; preds = %11
  %35 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %55

37:                                               ; preds = %34
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %51, %37
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = icmp ult i32 %40, 32
  br i1 %41, label %42, label %54

42:                                               ; preds = %39
  %43 = load i32, ptr %7, align 4, !tbaa !5
  %44 = add i32 %43, 1
  %45 = load i32, ptr %7, align 4, !tbaa !5
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds [32 x float], ptr %3, i64 0, i64 %46
  %48 = load float, ptr %47, align 4, !tbaa !11
  %49 = fpext float %48 to double
  %50 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %44, double noundef %49)
  br label %51

51:                                               ; preds = %42
  %52 = load i32, ptr %7, align 4, !tbaa !5
  %53 = add i32 %52, 1
  store i32 %53, ptr %7, align 4, !tbaa !5
  br label %39, !llvm.loop !15

54:                                               ; preds = %39
  br label %55

55:                                               ; preds = %54, %34
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %176, %55
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = icmp ult i32 %57, 32
  br i1 %58, label %59, label %179

59:                                               ; preds = %56
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds [32 x float], ptr %3, i64 0, i64 %61
  %63 = load float, ptr %62, align 4, !tbaa !11
  %64 = load i32, ptr %7, align 4, !tbaa !5
  %65 = zext i32 %64 to i64
  %66 = getelementptr inbounds [32 x float], ptr %2, i64 0, i64 %65
  %67 = load float, ptr %66, align 4, !tbaa !11
  %68 = fsub float %63, %67
  %69 = fpext float %68 to double
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds [32 x float], ptr %3, i64 0, i64 %71
  %73 = load float, ptr %72, align 4, !tbaa !11
  %74 = load i32, ptr %7, align 4, !tbaa !5
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds [32 x float], ptr %2, i64 0, i64 %75
  %77 = load float, ptr %76, align 4, !tbaa !11
  %78 = fsub float %73, %77
  %79 = fpext float %78 to double
  %80 = load i32, ptr %7, align 4, !tbaa !5
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds [32 x float], ptr %3, i64 0, i64 %81
  %83 = load float, ptr %82, align 4, !tbaa !11
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds [32 x float], ptr %2, i64 0, i64 %85
  %87 = load float, ptr %86, align 4, !tbaa !11
  %88 = fsub float %83, %87
  %89 = fpext float %88 to double
  %90 = load i32, ptr %7, align 4, !tbaa !5
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds [32 x float], ptr %3, i64 0, i64 %91
  %93 = load float, ptr %92, align 4, !tbaa !11
  %94 = load i32, ptr %7, align 4, !tbaa !5
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds [32 x float], ptr %2, i64 0, i64 %95
  %97 = load float, ptr %96, align 4, !tbaa !11
  %98 = fsub float %93, %97
  %99 = fpext float %98 to double
  %100 = call double @llvm.fmuladd.f64(double %69, double %79, double 0.000000e+00)
  %101 = call double @sqrt(double noundef %100) #6
  %102 = load float, ptr %6, align 4, !tbaa !11
  %103 = fpext float %102 to double
  %104 = fcmp ogt double %101, %103
  br i1 %104, label %129, label %105

105:                                              ; preds = %59
  %106 = load i32, ptr %7, align 4, !tbaa !5
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds [32 x float], ptr %3, i64 0, i64 %107
  %109 = load float, ptr %108, align 4, !tbaa !11
  %110 = call i1 @llvm.is.fpclass.f32(float %109, i32 3)
  br i1 %110, label %129, label %111

111:                                              ; preds = %105
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds [32 x float], ptr %3, i64 0, i64 %113
  %115 = load float, ptr %114, align 4, !tbaa !11
  %116 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %116, label %129, label %117

117:                                              ; preds = %111
  %118 = load i32, ptr %7, align 4, !tbaa !5
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds [32 x float], ptr %2, i64 0, i64 %119
  %121 = load float, ptr %120, align 4, !tbaa !11
  %122 = call i1 @llvm.is.fpclass.f32(float %121, i32 3)
  br i1 %122, label %129, label %123

123:                                              ; preds = %117
  %124 = load i32, ptr %7, align 4, !tbaa !5
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds [32 x float], ptr %2, i64 0, i64 %125
  %127 = load float, ptr %126, align 4, !tbaa !11
  %128 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %128, label %129, label %174

129:                                              ; preds = %123, %117, %111, %105, %59
  %130 = load i32, ptr %7, align 4, !tbaa !5
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds [32 x float], ptr %3, i64 0, i64 %131
  %133 = load float, ptr %132, align 4, !tbaa !11
  %134 = load i32, ptr %7, align 4, !tbaa !5
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds [32 x float], ptr %2, i64 0, i64 %135
  %137 = load float, ptr %136, align 4, !tbaa !11
  %138 = fsub float %133, %137
  %139 = fpext float %138 to double
  %140 = load i32, ptr %7, align 4, !tbaa !5
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds [32 x float], ptr %3, i64 0, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !11
  %144 = load i32, ptr %7, align 4, !tbaa !5
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds [32 x float], ptr %2, i64 0, i64 %145
  %147 = load float, ptr %146, align 4, !tbaa !11
  %148 = fsub float %143, %147
  %149 = fpext float %148 to double
  %150 = load i32, ptr %7, align 4, !tbaa !5
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds [32 x float], ptr %3, i64 0, i64 %151
  %153 = load float, ptr %152, align 4, !tbaa !11
  %154 = load i32, ptr %7, align 4, !tbaa !5
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds [32 x float], ptr %2, i64 0, i64 %155
  %157 = load float, ptr %156, align 4, !tbaa !11
  %158 = fsub float %153, %157
  %159 = fpext float %158 to double
  %160 = load i32, ptr %7, align 4, !tbaa !5
  %161 = zext i32 %160 to i64
  %162 = getelementptr inbounds [32 x float], ptr %3, i64 0, i64 %161
  %163 = load float, ptr %162, align 4, !tbaa !11
  %164 = load i32, ptr %7, align 4, !tbaa !5
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds [32 x float], ptr %2, i64 0, i64 %165
  %167 = load float, ptr %166, align 4, !tbaa !11
  %168 = fsub float %163, %167
  %169 = fpext float %168 to double
  %170 = call double @llvm.fmuladd.f64(double %139, double %149, double 0.000000e+00)
  %171 = call double @sqrt(double noundef %170) #6
  %172 = load float, ptr %6, align 4, !tbaa !11
  %173 = fpext float %172 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.2, i32 noundef 111, ptr noundef @.str.9, double noundef %171, ptr noundef @.str.4, ptr noundef @.str.5, double noundef %173)
  br label %175

174:                                              ; preds = %123
  call void (...) @liquid_autotest_passed()
  br label %175

175:                                              ; preds = %174, %129
  br label %176

176:                                              ; preds = %175
  %177 = load i32, ptr %7, align 4, !tbaa !5
  %178 = add i32 %177, 1
  store i32 %178, ptr %7, align 4, !tbaa !5
  br label %56, !llvm.loop !16

179:                                              ; preds = %56
  %180 = load ptr, ptr %5, align 8, !tbaa !9
  %181 = call i32 @firhilbf_destroy(ptr noundef %180)
  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 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %1) #6
  ret void
}

declare i32 @firhilbf_interp_execute(ptr noundef, <2 x float> noundef, ptr noundef) #2

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"="64" "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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !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.2 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@__const.autotest_firhilbf_interp.x = external hidden unnamed_addr constant [16 x { float, float }], align 16
@__const.autotest_firhilbf_interp.test = external hidden unnamed_addr constant [32 x float], align 16
@.str.7 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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 #1

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

declare i32 @firhilbf_destroy(ptr noundef) local_unnamed_addr #1

; 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_firhilbf_interp() local_unnamed_addr #4 {
  %1 = alloca [32 x float], align 16
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %1) #6
  %2 = tail call ptr @firhilbf_create(i32 noundef 5, float noundef 6.000000e+01) #6
  %3 = load <4 x float>, ptr @__const.autotest_firhilbf_interp.x, align 16
  %.sroa.0.4.vec.insert = shufflevector <4 x float> %3, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %4 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert, ptr noundef nonnull %1) #6
  %5 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @__const.autotest_firhilbf_interp.x, i64 8), align 8
  %6 = getelementptr inbounds i8, ptr %1, i64 8
  %.sroa.0.4.vec.insert.1 = shufflevector <4 x float> %5, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %7 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert.1, ptr noundef nonnull %6) #6
  %8 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @__const.autotest_firhilbf_interp.x, i64 16), align 16
  %9 = getelementptr inbounds i8, ptr %1, i64 16
  %.sroa.0.4.vec.insert.2 = shufflevector <4 x float> %8, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %10 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert.2, ptr noundef nonnull %9) #6
  %11 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @__const.autotest_firhilbf_interp.x, i64 24), align 8
  %12 = getelementptr inbounds i8, ptr %1, i64 24
  %.sroa.0.4.vec.insert.3 = shufflevector <4 x float> %11, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %13 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert.3, ptr noundef nonnull %12) #6
  %14 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @__const.autotest_firhilbf_interp.x, i64 32), align 16
  %15 = getelementptr inbounds i8, ptr %1, i64 32
  %.sroa.0.4.vec.insert.4 = shufflevector <4 x float> %14, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %16 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert.4, ptr noundef nonnull %15) #6
  %17 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @__const.autotest_firhilbf_interp.x, i64 40), align 8
  %18 = getelementptr inbounds i8, ptr %1, i64 40
  %.sroa.0.4.vec.insert.5 = shufflevector <4 x float> %17, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %19 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert.5, ptr noundef nonnull %18) #6
  %20 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @__const.autotest_firhilbf_interp.x, i64 48), align 16
  %21 = getelementptr inbounds i8, ptr %1, i64 48
  %.sroa.0.4.vec.insert.6 = shufflevector <4 x float> %20, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %22 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert.6, ptr noundef nonnull %21) #6
  %23 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @__const.autotest_firhilbf_interp.x, i64 56), align 8
  %24 = getelementptr inbounds i8, ptr %1, i64 56
  %.sroa.0.4.vec.insert.7 = shufflevector <4 x float> %23, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %25 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert.7, ptr noundef nonnull %24) #6
  %26 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @__const.autotest_firhilbf_interp.x, i64 64), align 16
  %27 = getelementptr inbounds i8, ptr %1, i64 64
  %.sroa.0.4.vec.insert.8 = shufflevector <4 x float> %26, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %28 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert.8, ptr noundef nonnull %27) #6
  %29 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @__const.autotest_firhilbf_interp.x, i64 72), align 8
  %30 = getelementptr inbounds i8, ptr %1, i64 72
  %.sroa.0.4.vec.insert.9 = shufflevector <4 x float> %29, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %31 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert.9, ptr noundef nonnull %30) #6
  %32 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @__const.autotest_firhilbf_interp.x, i64 80), align 16
  %33 = getelementptr inbounds i8, ptr %1, i64 80
  %.sroa.0.4.vec.insert.10 = shufflevector <4 x float> %32, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %34 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert.10, ptr noundef nonnull %33) #6
  %35 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @__const.autotest_firhilbf_interp.x, i64 88), align 8
  %36 = getelementptr inbounds i8, ptr %1, i64 88
  %.sroa.0.4.vec.insert.11 = shufflevector <4 x float> %35, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %37 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert.11, ptr noundef nonnull %36) #6
  %38 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @__const.autotest_firhilbf_interp.x, i64 96), align 16
  %39 = getelementptr inbounds i8, ptr %1, i64 96
  %.sroa.0.4.vec.insert.12 = shufflevector <4 x float> %38, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %40 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert.12, ptr noundef nonnull %39) #6
  %41 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @__const.autotest_firhilbf_interp.x, i64 104), align 8
  %42 = getelementptr inbounds i8, ptr %1, i64 104
  %.sroa.0.4.vec.insert.13 = shufflevector <4 x float> %41, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %43 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert.13, ptr noundef nonnull %42) #6
  %44 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @__const.autotest_firhilbf_interp.x, i64 112), align 16
  %45 = getelementptr inbounds i8, ptr %1, i64 112
  %.sroa.0.4.vec.insert.14 = shufflevector <4 x float> %44, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %46 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert.14, ptr noundef nonnull %45) #6
  %47 = getelementptr inbounds i8, ptr %1, i64 120
  %.sroa.0.4.vec.insert.15 = shufflevector <4 x float> %44, <4 x float> poison, <2 x i32> <i32 2, i32 3>
  %48 = call i32 @firhilbf_interp_execute(ptr noundef %2, <2 x float> noundef %.sroa.0.4.vec.insert.15, ptr noundef nonnull %47) #6
  %49 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not = icmp eq i32 %49, 0
  br i1 %.not, label %.loopexit.preheader, label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %0
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %51 = load float, ptr %1, align 16, !tbaa !9
  %52 = fpext float %51 to double
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 1, double noundef %52)
  %54 = getelementptr inbounds i8, ptr %1, i64 4
  %55 = load float, ptr %54, align 4, !tbaa !9
  %56 = fpext float %55 to double
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 2, double noundef %56)
  %58 = load float, ptr %6, align 8, !tbaa !9
  %59 = fpext float %58 to double
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 3, double noundef %59)
  %61 = getelementptr inbounds i8, ptr %1, i64 12
  %62 = load float, ptr %61, align 4, !tbaa !9
  %63 = fpext float %62 to double
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 4, double noundef %63)
  %65 = load float, ptr %9, align 16, !tbaa !9
  %66 = fpext float %65 to double
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 5, double noundef %66)
  %68 = getelementptr inbounds i8, ptr %1, i64 20
  %69 = load float, ptr %68, align 4, !tbaa !9
  %70 = fpext float %69 to double
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 6, double noundef %70)
  %72 = load float, ptr %12, align 8, !tbaa !9
  %73 = fpext float %72 to double
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 7, double noundef %73)
  %75 = getelementptr inbounds i8, ptr %1, i64 28
  %76 = load float, ptr %75, align 4, !tbaa !9
  %77 = fpext float %76 to double
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 8, double noundef %77)
  %79 = load float, ptr %15, align 16, !tbaa !9
  %80 = fpext float %79 to double
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 9, double noundef %80)
  %82 = getelementptr inbounds i8, ptr %1, i64 36
  %83 = load float, ptr %82, align 4, !tbaa !9
  %84 = fpext float %83 to double
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 10, double noundef %84)
  %86 = load float, ptr %18, align 8, !tbaa !9
  %87 = fpext float %86 to double
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 11, double noundef %87)
  %89 = getelementptr inbounds i8, ptr %1, i64 44
  %90 = load float, ptr %89, align 4, !tbaa !9
  %91 = fpext float %90 to double
  %92 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 12, double noundef %91)
  %93 = load float, ptr %21, align 16, !tbaa !9
  %94 = fpext float %93 to double
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 13, double noundef %94)
  %96 = getelementptr inbounds i8, ptr %1, i64 52
  %97 = load float, ptr %96, align 4, !tbaa !9
  %98 = fpext float %97 to double
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 14, double noundef %98)
  %100 = load float, ptr %24, align 8, !tbaa !9
  %101 = fpext float %100 to double
  %102 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 15, double noundef %101)
  %103 = getelementptr inbounds i8, ptr %1, i64 60
  %104 = load float, ptr %103, align 4, !tbaa !9
  %105 = fpext float %104 to double
  %106 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 16, double noundef %105)
  %107 = load float, ptr %27, align 16, !tbaa !9
  %108 = fpext float %107 to double
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 17, double noundef %108)
  %110 = getelementptr inbounds i8, ptr %1, i64 68
  %111 = load float, ptr %110, align 4, !tbaa !9
  %112 = fpext float %111 to double
  %113 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 18, double noundef %112)
  %114 = load float, ptr %30, align 8, !tbaa !9
  %115 = fpext float %114 to double
  %116 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 19, double noundef %115)
  %117 = getelementptr inbounds i8, ptr %1, i64 76
  %118 = load float, ptr %117, align 4, !tbaa !9
  %119 = fpext float %118 to double
  %120 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 20, double noundef %119)
  %121 = load float, ptr %33, align 16, !tbaa !9
  %122 = fpext float %121 to double
  %123 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 21, double noundef %122)
  %124 = getelementptr inbounds i8, ptr %1, i64 84
  %125 = load float, ptr %124, align 4, !tbaa !9
  %126 = fpext float %125 to double
  %127 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 22, double noundef %126)
  %128 = load float, ptr %36, align 8, !tbaa !9
  %129 = fpext float %128 to double
  %130 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 23, double noundef %129)
  %131 = getelementptr inbounds i8, ptr %1, i64 92
  %132 = load float, ptr %131, align 4, !tbaa !9
  %133 = fpext float %132 to double
  %134 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 24, double noundef %133)
  %135 = load float, ptr %39, align 16, !tbaa !9
  %136 = fpext float %135 to double
  %137 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 25, double noundef %136)
  %138 = getelementptr inbounds i8, ptr %1, i64 100
  %139 = load float, ptr %138, align 4, !tbaa !9
  %140 = fpext float %139 to double
  %141 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 26, double noundef %140)
  %142 = load float, ptr %42, align 8, !tbaa !9
  %143 = fpext float %142 to double
  %144 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 27, double noundef %143)
  %145 = getelementptr inbounds i8, ptr %1, i64 108
  %146 = load float, ptr %145, align 4, !tbaa !9
  %147 = fpext float %146 to double
  %148 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 28, double noundef %147)
  %149 = load float, ptr %45, align 16, !tbaa !9
  %150 = fpext float %149 to double
  %151 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 29, double noundef %150)
  %152 = getelementptr inbounds i8, ptr %1, i64 116
  %153 = load float, ptr %152, align 4, !tbaa !9
  %154 = fpext float %153 to double
  %155 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 30, double noundef %154)
  %156 = load float, ptr %47, align 8, !tbaa !9
  %157 = fpext float %156 to double
  %158 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 31, double noundef %157)
  %159 = getelementptr inbounds i8, ptr %1, i64 124
  %160 = load float, ptr %159, align 4, !tbaa !9
  %161 = fpext float %160 to double
  %162 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 32, double noundef %161)
  br label %.loopexit.preheader

.loopexit.preheader:                              ; preds = %.loopexit.loopexit, %0
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.preheader, %176
  %indvars.iv = phi i64 [ %indvars.iv.next, %176 ], [ 0, %.loopexit.preheader ]
  %163 = getelementptr inbounds [32 x float], ptr %1, i64 0, i64 %indvars.iv
  %164 = load float, ptr %163, align 4, !tbaa !9
  %165 = getelementptr inbounds [32 x float], ptr @__const.autotest_firhilbf_interp.test, i64 0, i64 %indvars.iv
  %166 = load float, ptr %165, align 4, !tbaa !9
  %167 = fsub float %164, %166
  %168 = fpext float %167 to double
  %169 = call double @llvm.fmuladd.f64(double %168, double %168, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %169)
  %170 = fcmp ogt double %sqrt, 0x3F747AE140000000
  br i1 %170, label %174, label %171

171:                                              ; preds = %.loopexit
  %172 = fcmp uno float %164, 0.000000e+00
  %173 = fcmp uno float %166, 0.000000e+00
  %or.cond = select i1 %172, i1 true, i1 %173
  br i1 %or.cond, label %174, label %175

174:                                              ; preds = %171, %.loopexit
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 111, ptr noundef nonnull @.str.9, double noundef %sqrt, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, double noundef 0x3F747AE140000000) #6
  br label %176

175:                                              ; preds = %171
  call void (...) @liquid_autotest_passed() #6
  br label %176

176:                                              ; preds = %174, %175
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 32
  br i1 %exitcond.not, label %177, label %.loopexit, !llvm.loop !11

177:                                              ; preds = %176
  %178 = call i32 @firhilbf_destroy(ptr noundef %2) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %1) #6
  ret void
}

declare i32 @firhilbf_interp_execute(ptr noundef, <2 x float> noundef, ptr noundef) local_unnamed_addr #1

; 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 = { "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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="64" "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 = !{!"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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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