; LLVM IR from jgaeddert/liquid-dsp :: examples (firhilb_interp_example)

; 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 [60 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca { float, float }, align 4
  %11 = alloca { float, float }, align 4
  %12 = alloca { float, float }, align 4
  %13 = alloca { float, float }, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 5, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store float 6.000000e+01, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store float 0x3FD3D70A40000000, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 128, ptr %5, align 4, !tbaa !5
  %16 = load i32, ptr %5, align 4, !tbaa !5
  %17 = zext i32 %16 to i64
  %18 = call ptr @llvm.stacksave.p0()
  store ptr %18, ptr %6, align 8
  %19 = alloca { float, float }, i64 %17, align 16
  store i64 %17, ptr %7, align 8
  %20 = load i32, ptr %5, align 4, !tbaa !5
  %21 = mul i32 2, %20
  %22 = zext i32 %21 to i64
  %23 = alloca float, i64 %22, align 16
  store i64 %22, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %74, %0
  %25 = load i32, ptr %9, align 4, !tbaa !5
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = icmp ult i32 %25, %26
  br i1 %27, label %28, label %77

28:                                               ; preds = %24
  %29 = load float, ptr %4, align 4, !tbaa !9
  %30 = fpext float %29 to double
  %31 = fmul double 0.000000e+00, %30
  %32 = fmul double 0x401921FB54442D18, %30
  %33 = load i32, ptr %9, align 4, !tbaa !5
  %34 = uitofp i32 %33 to double
  %35 = fmul double %31, %34
  %36 = fmul double %32, %34
  %37 = fptrunc double %35 to float
  %38 = fptrunc double %36 to float
  %39 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %40 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  store float %37, ptr %39, align 4
  store float %38, ptr %40, align 4
  %41 = load <2 x float>, ptr %10, align 4
  %42 = call <2 x float> @cexpf(<2 x float> noundef %41) #5
  store <2 x float> %42, ptr %11, align 4
  %43 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %44 = load float, ptr %43, align 4
  %45 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  %46 = load float, ptr %45, align 4
  %47 = load float, ptr %4, align 4, !tbaa !9
  %48 = fpext float %47 to double
  %49 = fmul double 0.000000e+00, %48
  %50 = fmul double 0x401BA5614317CB35, %48
  %51 = load i32, ptr %9, align 4, !tbaa !5
  %52 = uitofp i32 %51 to double
  %53 = fmul double %49, %52
  %54 = fmul double %50, %52
  %55 = fptrunc double %53 to float
  %56 = fptrunc double %54 to float
  %57 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 0
  %58 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 1
  store float %55, ptr %57, align 4
  store float %56, ptr %58, align 4
  %59 = load <2 x float>, ptr %12, align 4
  %60 = call <2 x float> @cexpf(<2 x float> noundef %59) #5
  store <2 x float> %60, ptr %13, align 4
  %61 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %62 = load float, ptr %61, align 4
  %63 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  %64 = load float, ptr %63, align 4
  %65 = fmul float 0x3FE3333340000000, %62
  %66 = fmul float 0x3FE3333340000000, %64
  %67 = fadd float %44, %65
  %68 = fadd float %46, %66
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds { float, float }, ptr %19, i64 %70
  %72 = getelementptr inbounds { float, float }, ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds { float, float }, ptr %71, i32 0, i32 1
  store float %67, ptr %72, align 8
  store float %68, ptr %73, align 4
  br label %74

74:                                               ; preds = %28
  %75 = load i32, ptr %9, align 4, !tbaa !5
  %76 = add i32 %75, 1
  store i32 %76, ptr %9, align 4, !tbaa !5
  br label %24, !llvm.loop !11

77:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %78 = load i32, ptr %2, align 4, !tbaa !5
  %79 = load float, ptr %3, align 4, !tbaa !9
  %80 = call ptr @firhilbf_create(i32 noundef %78, float noundef %79)
  store ptr %80, ptr %14, align 8, !tbaa !13
  %81 = load ptr, ptr %14, align 8, !tbaa !13
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = call i32 @firhilbf_interp_execute_block(ptr noundef %81, ptr noundef %19, i32 noundef %82, ptr noundef %23)
  %84 = load ptr, ptr %14, align 8, !tbaa !13
  %85 = call i32 @firhilbf_destroy(ptr noundef %84)
  %86 = load i32, ptr %5, align 4, !tbaa !5
  %87 = load i32, ptr %5, align 4, !tbaa !5
  %88 = mul i32 2, %87
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %86, i32 noundef %88)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %90 = call noalias ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
  store ptr %90, ptr %15, align 8, !tbaa !13
  %91 = load ptr, ptr %15, align 8, !tbaa !13
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.3, ptr noundef @.str.1) #5
  %93 = load ptr, ptr %15, align 8, !tbaa !13
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.4) #5
  %95 = load ptr, ptr %15, align 8, !tbaa !13
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.5) #5
  %97 = load ptr, ptr %15, align 8, !tbaa !13
  %98 = load i32, ptr %2, align 4, !tbaa !5
  %99 = mul i32 4, %98
  %100 = add i32 %99, 1
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.6, i32 noundef %100) #5
  %102 = load ptr, ptr %15, align 8, !tbaa !13
  %103 = load i32, ptr %5, align 4, !tbaa !5
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.7, i32 noundef %103) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %154, %77
  %106 = load i32, ptr %9, align 4, !tbaa !5
  %107 = load i32, ptr %5, align 4, !tbaa !5
  %108 = icmp ult i32 %106, %107
  br i1 %108, label %109, label %157

109:                                              ; preds = %105
  %110 = load ptr, ptr %15, align 8, !tbaa !13
  %111 = load i32, ptr %9, align 4, !tbaa !5
  %112 = add i32 %111, 1
  %113 = load i32, ptr %9, align 4, !tbaa !5
  %114 = zext i32 %113 to i64
  %115 = getelementptr inbounds { float, float }, ptr %19, i64 %114
  %116 = getelementptr inbounds { float, float }, ptr %115, i32 0, i32 0
  %117 = load float, ptr %116, align 8
  %118 = getelementptr inbounds { float, float }, ptr %115, i32 0, i32 1
  %119 = load float, ptr %118, align 4
  %120 = fpext float %117 to double
  %121 = load i32, ptr %9, align 4, !tbaa !5
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds { float, float }, ptr %19, i64 %122
  %124 = getelementptr inbounds { float, float }, ptr %123, i32 0, i32 0
  %125 = load float, ptr %124, align 8
  %126 = getelementptr inbounds { float, float }, ptr %123, i32 0, i32 1
  %127 = load float, ptr %126, align 4
  %128 = fpext float %127 to double
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef @.str.8, i32 noundef %112, double noundef %120, double noundef %128) #5
  %130 = load ptr, ptr %15, align 8, !tbaa !13
  %131 = load i32, ptr %9, align 4, !tbaa !5
  %132 = mul i32 2, %131
  %133 = add i32 %132, 1
  %134 = load i32, ptr %9, align 4, !tbaa !5
  %135 = mul i32 2, %134
  %136 = add i32 %135, 0
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds float, ptr %23, i64 %137
  %139 = load float, ptr %138, align 4, !tbaa !9
  %140 = fpext float %139 to double
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.9, i32 noundef %133, double noundef %140) #5
  %142 = load ptr, ptr %15, align 8, !tbaa !13
  %143 = load i32, ptr %9, align 4, !tbaa !5
  %144 = mul i32 2, %143
  %145 = add i32 %144, 2
  %146 = load i32, ptr %9, align 4, !tbaa !5
  %147 = mul i32 2, %146
  %148 = add i32 %147, 1
  %149 = zext i32 %148 to i64
  %150 = getelementptr inbounds float, ptr %23, i64 %149
  %151 = load float, ptr %150, align 4, !tbaa !9
  %152 = fpext float %151 to double
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.9, i32 noundef %145, double noundef %152) #5
  br label %154

154:                                              ; preds = %109
  %155 = load i32, ptr %9, align 4, !tbaa !5
  %156 = add i32 %155, 1
  store i32 %156, ptr %9, align 4, !tbaa !5
  br label %105, !llvm.loop !15

157:                                              ; preds = %105
  %158 = load ptr, ptr %15, align 8, !tbaa !13
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef @.str.10) #5
  %160 = load ptr, ptr %15, align 8, !tbaa !13
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str.11) #5
  %162 = load ptr, ptr %15, align 8, !tbaa !13
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef @.str.12) #5
  %164 = load ptr, ptr %15, align 8, !tbaa !13
  %165 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %164, ptr noundef @.str.13) #5
  %166 = load ptr, ptr %15, align 8, !tbaa !13
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef @.str.14) #5
  %168 = load ptr, ptr %15, align 8, !tbaa !13
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %168, ptr noundef @.str.15) #5
  %170 = load ptr, ptr %15, align 8, !tbaa !13
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef @.str.16) #5
  %172 = load ptr, ptr %15, align 8, !tbaa !13
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef @.str.17) #5
  %174 = load ptr, ptr %15, align 8, !tbaa !13
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %174, ptr noundef @.str.18) #5
  %176 = load ptr, ptr %15, align 8, !tbaa !13
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %176, ptr noundef @.str.19) #5
  %178 = load ptr, ptr %15, align 8, !tbaa !13
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef @.str.20) #5
  %180 = load ptr, ptr %15, align 8, !tbaa !13
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef @.str.21) #5
  %182 = load ptr, ptr %15, align 8, !tbaa !13
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %182, ptr noundef @.str.22) #5
  %184 = load ptr, ptr %15, align 8, !tbaa !13
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %184, ptr noundef @.str.23) #5
  %186 = load ptr, ptr %15, align 8, !tbaa !13
  %187 = call i32 @fclose(ptr noundef %186)
  %188 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, ptr noundef @.str.1)
  %189 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %190 = load ptr, ptr %6, align 8
  call void @llvm.stackrestore.p0(ptr %190)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %191 = load i32, ptr %1, align 4
  ret i32 %191
}

; 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

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) #3

declare ptr @firhilbf_create(i32 noundef, float noundef) #4

declare i32 @firhilbf_interp_execute_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

declare i32 @firhilbf_destroy(ptr noundef) #4

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

declare i32 @fclose(ptr noundef) #4

; 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"="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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
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 = { "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 = { 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"}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !12}


; 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 [60 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [128 x { float, float }], align 16
  %2 = alloca [256 x float], align 16
  br label %3

3:                                                ; preds = %0, %3
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %3 ]
  %4 = trunc nuw nsw i64 %indvars.iv to i32
  %5 = uitofp nneg i32 %4 to double
  %6 = fmul double %5, 0x3FFF2A232F124BA6
  %7 = fptrunc double %6 to float
  %.sroa.028.4.vec.insert = insertelement <2 x float> <float 0.000000e+00, float poison>, float %7, i64 1
  %8 = tail call <2 x float> @cexpf(<2 x float> noundef %.sroa.028.4.vec.insert) #4
  %9 = fmul double %5, 0x400123F9C04A1002
  %10 = fptrunc double %9 to float
  %.sroa.025.4.vec.insert = insertelement <2 x float> <float 0.000000e+00, float poison>, float %10, i64 1
  %11 = tail call <2 x float> @cexpf(<2 x float> noundef %.sroa.025.4.vec.insert) #4
  %12 = getelementptr inbounds { float, float }, ptr %1, i64 %indvars.iv
  %13 = fmul <2 x float> %11, <float 0x3FE3333340000000, float 0x3FE3333340000000>
  %14 = fadd <2 x float> %8, %13
  store <2 x float> %14, ptr %12, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 128
  br i1 %exitcond.not, label %15, label %3, !llvm.loop !5

15:                                               ; preds = %3
  %16 = tail call ptr @firhilbf_create(i32 noundef 5, float noundef 6.000000e+01) #4
  %17 = call i32 @firhilbf_interp_execute_block(ptr noundef %16, ptr noundef nonnull %1, i32 noundef 128, ptr noundef nonnull %2) #4
  %18 = call i32 @firhilbf_destroy(ptr noundef %16) #4
  %19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 128, i32 noundef 256)
  %20 = call noalias ptr @fopen(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2)
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1) #4
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.4) #4
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.5) #4
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.6, i32 noundef 21) #4
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.7, i32 noundef 128) #4
  br label %26

26:                                               ; preds = %15, %26
  %indvars.iv61 = phi i64 [ 0, %15 ], [ %indvars.iv.next62, %26 ]
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %27 = getelementptr inbounds { float, float }, ptr %1, i64 %indvars.iv61
  %28 = load float, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr %27, i64 4
  %30 = fpext float %28 to double
  %31 = load float, ptr %29, align 4
  %32 = fpext float %31 to double
  %33 = trunc nuw nsw i64 %indvars.iv.next62 to i32
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.8, i32 noundef %33, double noundef %30, double noundef %32) #4
  %35 = shl nuw nsw i64 %indvars.iv61, 1
  %36 = or disjoint i64 %35, 1
  %37 = getelementptr inbounds float, ptr %2, i64 %35
  %38 = load float, ptr %37, align 8, !tbaa !7
  %39 = fpext float %38 to double
  %40 = trunc nuw nsw i64 %36 to i32
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.9, i32 noundef %40, double noundef %39) #4
  %42 = getelementptr inbounds float, ptr %2, i64 %36
  %43 = load float, ptr %42, align 4, !tbaa !7
  %44 = fpext float %43 to double
  %45 = trunc i64 %35 to i32
  %46 = add i32 %45, 2
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.9, i32 noundef %46, double noundef %44) #4
  %exitcond64.not = icmp eq i64 %indvars.iv.next62, 128
  br i1 %exitcond64.not, label %48, label %26, !llvm.loop !11

48:                                               ; preds = %26
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.10) #4
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.11) #4
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.12) #4
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.13) #4
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.14) #4
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.15) #4
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.16) #4
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.17) #4
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.18) #4
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.19) #4
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.20) #4
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.21) #4
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.22) #4
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.23) #4
  %63 = call i32 @fclose(ptr noundef %20)
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, ptr noundef nonnull @.str.1)
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25)
  ret i32 0
}

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) local_unnamed_addr #1

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

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

declare i32 @firhilbf_destroy(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { 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 #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 = { 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 #4 = { 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}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass