; LLVM IR from jgaeddert/liquid-dsp :: examples (firhilb_decim_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 [57 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 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 [18 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 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 [18 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 [72 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 ptr, align 8
  %11 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 5, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store float 6.000000e+01, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store float 0x3FD7AE1480000000, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 128, ptr %5, align 4, !tbaa !5
  %12 = load i32, ptr %5, align 4, !tbaa !5
  %13 = mul i32 2, %12
  %14 = zext i32 %13 to i64
  %15 = call ptr @llvm.stacksave.p0()
  store ptr %15, ptr %6, align 8
  %16 = alloca float, i64 %14, align 16
  store i64 %14, ptr %7, align 8
  %17 = load i32, ptr %5, align 4, !tbaa !5
  %18 = zext i32 %17 to i64
  %19 = alloca { float, float }, i64 %18, align 16
  store i64 %18, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %46, %0
  %21 = load i32, ptr %9, align 4, !tbaa !5
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = mul i32 2, %22
  %24 = icmp ult i32 %21, %23
  br i1 %24, label %25, label %49

25:                                               ; preds = %20
  %26 = load float, ptr %4, align 4, !tbaa !9
  %27 = fpext float %26 to double
  %28 = fmul double 0x401921FB54442D18, %27
  %29 = load i32, ptr %9, align 4, !tbaa !5
  %30 = uitofp i32 %29 to double
  %31 = fmul double %28, %30
  %32 = fptrunc double %31 to float
  %33 = call float @cosf(float noundef %32) #6
  %34 = load float, ptr %4, align 4, !tbaa !9
  %35 = fpext float %34 to double
  %36 = fmul double 0x401BA5614317CB35, %35
  %37 = load i32, ptr %9, align 4, !tbaa !5
  %38 = uitofp i32 %37 to double
  %39 = fmul double %36, %38
  %40 = fptrunc double %39 to float
  %41 = call float @sinf(float noundef %40) #6
  %42 = call float @llvm.fmuladd.f32(float 0x3FE3333340000000, float %41, float %33)
  %43 = load i32, ptr %9, align 4, !tbaa !5
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds float, ptr %16, i64 %44
  store float %42, ptr %45, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %25
  %47 = load i32, ptr %9, align 4, !tbaa !5
  %48 = add i32 %47, 1
  store i32 %48, ptr %9, align 4, !tbaa !5
  br label %20, !llvm.loop !11

49:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = load float, ptr %3, align 4, !tbaa !9
  %52 = call ptr @firhilbf_create(i32 noundef %50, float noundef %51)
  store ptr %52, ptr %10, align 8, !tbaa !13
  %53 = load ptr, ptr %10, align 8, !tbaa !13
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = call i32 @firhilbf_decim_execute_block(ptr noundef %53, ptr noundef %16, i32 noundef %54, ptr noundef %19)
  %56 = load ptr, ptr %10, align 8, !tbaa !13
  %57 = call i32 @firhilbf_destroy(ptr noundef %56)
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = mul i32 2, %58
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %59, i32 noundef %60)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %62 = call noalias ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
  store ptr %62, ptr %11, align 8, !tbaa !13
  %63 = load ptr, ptr %11, align 8, !tbaa !13
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.3, ptr noundef @.str.1) #6
  %65 = load ptr, ptr %11, align 8, !tbaa !13
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.4) #6
  %67 = load ptr, ptr %11, align 8, !tbaa !13
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.5) #6
  %69 = load ptr, ptr %11, align 8, !tbaa !13
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %71 = mul i32 4, %70
  %72 = add i32 %71, 1
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef @.str.6, i32 noundef %72) #6
  %74 = load ptr, ptr %11, align 8, !tbaa !13
  %75 = load i32, ptr %5, align 4, !tbaa !5
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str.7, i32 noundef %75) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %126, %49
  %78 = load i32, ptr %9, align 4, !tbaa !5
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = icmp ult i32 %78, %79
  br i1 %80, label %81, label %129

81:                                               ; preds = %77
  %82 = load ptr, ptr %11, align 8, !tbaa !13
  %83 = load i32, ptr %9, align 4, !tbaa !5
  %84 = mul i32 2, %83
  %85 = add i32 %84, 1
  %86 = load i32, ptr %9, align 4, !tbaa !5
  %87 = mul i32 2, %86
  %88 = add i32 %87, 0
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %16, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !9
  %92 = fpext float %91 to double
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.8, i32 noundef %85, double noundef %92) #6
  %94 = load ptr, ptr %11, align 8, !tbaa !13
  %95 = load i32, ptr %9, align 4, !tbaa !5
  %96 = mul i32 2, %95
  %97 = add i32 %96, 2
  %98 = load i32, ptr %9, align 4, !tbaa !5
  %99 = mul i32 2, %98
  %100 = add i32 %99, 1
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds float, ptr %16, i64 %101
  %103 = load float, ptr %102, align 4, !tbaa !9
  %104 = fpext float %103 to double
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.8, i32 noundef %97, double noundef %104) #6
  %106 = load ptr, ptr %11, align 8, !tbaa !13
  %107 = load i32, ptr %9, align 4, !tbaa !5
  %108 = add i32 %107, 1
  %109 = load i32, ptr %9, align 4, !tbaa !5
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds { float, float }, ptr %19, i64 %110
  %112 = getelementptr inbounds { float, float }, ptr %111, i32 0, i32 0
  %113 = load float, ptr %112, align 8
  %114 = getelementptr inbounds { float, float }, ptr %111, i32 0, i32 1
  %115 = load float, ptr %114, align 4
  %116 = fpext float %113 to double
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds { float, float }, ptr %19, i64 %118
  %120 = getelementptr inbounds { float, float }, ptr %119, i32 0, i32 0
  %121 = load float, ptr %120, align 8
  %122 = getelementptr inbounds { float, float }, ptr %119, i32 0, i32 1
  %123 = load float, ptr %122, align 4
  %124 = fpext float %123 to double
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.9, i32 noundef %108, double noundef %116, double noundef %124) #6
  br label %126

126:                                              ; preds = %81
  %127 = load i32, ptr %9, align 4, !tbaa !5
  %128 = add i32 %127, 1
  store i32 %128, ptr %9, align 4, !tbaa !5
  br label %77, !llvm.loop !15

129:                                              ; preds = %77
  %130 = load ptr, ptr %11, align 8, !tbaa !13
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.10) #6
  %132 = load ptr, ptr %11, align 8, !tbaa !13
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str.11) #6
  %134 = load ptr, ptr %11, align 8, !tbaa !13
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.12) #6
  %136 = load ptr, ptr %11, align 8, !tbaa !13
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.13) #6
  %138 = load ptr, ptr %11, align 8, !tbaa !13
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.14) #6
  %140 = load ptr, ptr %11, align 8, !tbaa !13
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef @.str.15) #6
  %142 = load ptr, ptr %11, align 8, !tbaa !13
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.16) #6
  %144 = load ptr, ptr %11, align 8, !tbaa !13
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef @.str.17) #6
  %146 = load ptr, ptr %11, align 8, !tbaa !13
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %146, ptr noundef @.str.18) #6
  %148 = load ptr, ptr %11, align 8, !tbaa !13
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str.19) #6
  %150 = load ptr, ptr %11, align 8, !tbaa !13
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %150, ptr noundef @.str.20) #6
  %152 = load ptr, ptr %11, align 8, !tbaa !13
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef @.str.21) #6
  %154 = load ptr, ptr %11, align 8, !tbaa !13
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %154, ptr noundef @.str.22) #6
  %156 = load ptr, ptr %11, align 8, !tbaa !13
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef @.str.23) #6
  %158 = load ptr, ptr %11, align 8, !tbaa !13
  %159 = call i32 @fclose(ptr noundef %158)
  %160 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, ptr noundef @.str.1)
  %161 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  store i32 0, ptr %1, align 4
  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
  %162 = load ptr, ptr %6, align 8
  call void @llvm.stackrestore.p0(ptr %162)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  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
  %163 = load i32, ptr %1, align 4
  ret i32 %163
}

; 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 float @cosf(float noundef) #3

; Function Attrs: nounwind
declare float @sinf(float noundef) #3

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

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

declare i32 @firhilbf_decim_execute_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

declare i32 @firhilbf_destroy(ptr noundef) #5

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

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

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

declare i32 @fclose(ptr noundef) #5

; 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 = { 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 = { "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 = 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 [57 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 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 [18 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 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 [18 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 [72 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 [256 x float], align 16
  %2 = alloca [128 x { float, float }], align 16
  br label %3

3:                                                ; preds = %3, %0
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next.1, %3 ]
  %4 = trunc nuw nsw i64 %indvars.iv to i32
  %5 = uitofp nneg i32 %4 to double
  %6 = fmul double %5, 0x4002992584F0351A
  %7 = fptrunc double %6 to float
  %8 = tail call float @cosf(float noundef %7) #5
  %9 = fmul double %5, 0x40047542DF083A6A
  %10 = fptrunc double %9 to float
  %11 = tail call float @sinf(float noundef %10) #5
  %12 = tail call float @llvm.fmuladd.f32(float %11, float 0x3FE3333340000000, float %8)
  %13 = getelementptr inbounds float, ptr %1, i64 %indvars.iv
  store float %12, ptr %13, align 8, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %14 = trunc nuw nsw i64 %indvars.iv.next to i32
  %15 = uitofp nneg i32 %14 to double
  %16 = fmul double %15, 0x4002992584F0351A
  %17 = fptrunc double %16 to float
  %18 = tail call float @cosf(float noundef %17) #5
  %19 = fmul double %15, 0x40047542DF083A6A
  %20 = fptrunc double %19 to float
  %21 = tail call float @sinf(float noundef %20) #5
  %22 = tail call float @llvm.fmuladd.f32(float %21, float 0x3FE3333340000000, float %18)
  %23 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next
  store float %22, ptr %23, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 256
  br i1 %exitcond.not.1, label %24, label %3, !llvm.loop !9

24:                                               ; preds = %3
  %25 = tail call ptr @firhilbf_create(i32 noundef 5, float noundef 6.000000e+01) #5
  %26 = call i32 @firhilbf_decim_execute_block(ptr noundef %25, ptr noundef nonnull %1, i32 noundef 128, ptr noundef nonnull %2) #5
  %27 = call i32 @firhilbf_destroy(ptr noundef %25) #5
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 256, i32 noundef 128)
  %29 = call noalias ptr @fopen(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2)
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1) #5
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.4) #5
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.5) #5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.6, i32 noundef 21) #5
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.7, i32 noundef 128) #5
  br label %35

35:                                               ; preds = %24, %35
  %indvars.iv56 = phi i64 [ 0, %24 ], [ %indvars.iv.next57, %35 ]
  %36 = shl nuw nsw i64 %indvars.iv56, 1
  %37 = or disjoint i64 %36, 1
  %38 = getelementptr inbounds float, ptr %1, i64 %36
  %39 = load float, ptr %38, align 8, !tbaa !5
  %40 = fpext float %39 to double
  %41 = trunc nuw nsw i64 %37 to i32
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.8, i32 noundef %41, double noundef %40) #5
  %43 = getelementptr inbounds float, ptr %1, i64 %37
  %44 = load float, ptr %43, align 4, !tbaa !5
  %45 = fpext float %44 to double
  %46 = trunc i64 %36 to i32
  %47 = add i32 %46, 2
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.8, i32 noundef %47, double noundef %45) #5
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %49 = getelementptr inbounds { float, float }, ptr %2, i64 %indvars.iv56
  %50 = load float, ptr %49, align 8
  %51 = getelementptr inbounds i8, ptr %49, i64 4
  %52 = fpext float %50 to double
  %53 = load float, ptr %51, align 4
  %54 = fpext float %53 to double
  %55 = trunc nuw nsw i64 %indvars.iv.next57 to i32
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.9, i32 noundef %55, double noundef %52, double noundef %54) #5
  %exitcond59.not = icmp eq i64 %indvars.iv.next57, 128
  br i1 %exitcond59.not, label %57, label %35, !llvm.loop !11

57:                                               ; preds = %35
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.10) #5
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.11) #5
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.12) #5
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.13) #5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.14) #5
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.15) #5
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.16) #5
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.17) #5
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.18) #5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.19) #5
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.20) #5
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.21) #5
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.22) #5
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.23) #5
  %72 = call i32 @fclose(ptr noundef %29)
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, ptr noundef nonnull @.str.1)
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25)
  ret i32 0
}

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

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

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

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

declare i32 @firhilbf_decim_execute_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @firhilbf_destroy(ptr noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #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"}
!11 = distinct !{!11, !10}


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