; LLVM IR from jgaeddert/liquid-dsp :: examples (firpfb_rrrf_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 [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 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 [35 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 16, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 4, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 40, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %16 = load i32, ptr %6, align 4, !tbaa !5
  %17 = load i32, ptr %7, align 4, !tbaa !5
  %18 = call ptr @firpfb_rrrf_create_default(i32 noundef %16, i32 noundef %17)
  store ptr %18, ptr %9, align 8, !tbaa !9
  %19 = load ptr, ptr %9, align 8, !tbaa !9
  %20 = call i32 @firpfb_rrrf_print(ptr noundef %19)
  %21 = load i32, ptr %8, align 4, !tbaa !5
  %22 = zext i32 %21 to i64
  %23 = call ptr @llvm.stacksave.p0()
  store ptr %23, ptr %10, align 8
  %24 = alloca float, i64 %22, align 16
  store i64 %22, ptr %11, align 8
  %25 = load i32, ptr %6, align 4, !tbaa !5
  %26 = load i32, ptr %8, align 4, !tbaa !5
  %27 = mul i32 %25, %26
  %28 = zext i32 %27 to i64
  %29 = alloca float, i64 %28, align 16
  store i64 %28, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %70, %2
  %31 = load i32, ptr %13, align 4, !tbaa !5
  %32 = load i32, ptr %8, align 4, !tbaa !5
  %33 = icmp ult i32 %31, %32
  br i1 %33, label %34, label %73

34:                                               ; preds = %30
  %35 = call i32 @rand() #5
  %36 = and i32 %35, 1
  %37 = icmp ne i32 %36, 0
  %38 = zext i1 %37 to i64
  %39 = select i1 %37, double 1.000000e+00, double -1.000000e+00
  %40 = fptrunc double %39 to float
  %41 = load i32, ptr %13, align 4, !tbaa !5
  %42 = zext i32 %41 to i64
  %43 = getelementptr inbounds float, ptr %24, i64 %42
  store float %40, ptr %43, align 4, !tbaa !11
  %44 = load ptr, ptr %9, align 8, !tbaa !9
  %45 = load i32, ptr %13, align 4, !tbaa !5
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds float, ptr %24, i64 %46
  %48 = load float, ptr %47, align 4, !tbaa !11
  %49 = call i32 @firpfb_rrrf_push(ptr noundef %44, float noundef %48)
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %66, %34
  %51 = load i32, ptr %14, align 4, !tbaa !5
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = icmp ult i32 %51, %52
  br i1 %53, label %54, label %69

54:                                               ; preds = %50
  %55 = load ptr, ptr %9, align 8, !tbaa !9
  %56 = load i32, ptr %14, align 4, !tbaa !5
  %57 = load i32, ptr %13, align 4, !tbaa !5
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = mul i32 %57, %58
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds float, ptr %29, i64 %60
  %62 = load i32, ptr %14, align 4, !tbaa !5
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds float, ptr %61, i64 %63
  %65 = call i32 @firpfb_rrrf_execute(ptr noundef %55, i32 noundef %56, ptr noundef %64)
  br label %66

66:                                               ; preds = %54
  %67 = load i32, ptr %14, align 4, !tbaa !5
  %68 = add i32 %67, 1
  store i32 %68, ptr %14, align 4, !tbaa !5
  br label %50, !llvm.loop !13

69:                                               ; preds = %50
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %13, align 4, !tbaa !5
  %72 = add i32 %71, 1
  store i32 %72, ptr %13, align 4, !tbaa !5
  br label %30, !llvm.loop !15

73:                                               ; preds = %30
  %74 = load ptr, ptr %9, align 8, !tbaa !9
  %75 = call i32 @firpfb_rrrf_destroy(ptr noundef %74)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %76 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %76, ptr %15, align 8, !tbaa !9
  %77 = load ptr, ptr %15, align 8, !tbaa !9
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef @.str.2, ptr noundef @.str) #5
  %79 = load ptr, ptr %15, align 8, !tbaa !9
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.3) #5
  %81 = load ptr, ptr %15, align 8, !tbaa !9
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = load i32, ptr %7, align 4, !tbaa !5
  %84 = load i32, ptr %8, align 4, !tbaa !5
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef @.str.4, i32 noundef %82, i32 noundef %83, i32 noundef %84) #5
  %86 = load ptr, ptr %15, align 8, !tbaa !9
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.5) #5
  %88 = load ptr, ptr %15, align 8, !tbaa !9
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.6) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %104, %73
  %91 = load i32, ptr %13, align 4, !tbaa !5
  %92 = load i32, ptr %8, align 4, !tbaa !5
  %93 = icmp ult i32 %91, %92
  br i1 %93, label %94, label %107

94:                                               ; preds = %90
  %95 = load ptr, ptr %15, align 8, !tbaa !9
  %96 = load i32, ptr %13, align 4, !tbaa !5
  %97 = add i32 %96, 1
  %98 = load i32, ptr %13, align 4, !tbaa !5
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds float, ptr %24, i64 %99
  %101 = load float, ptr %100, align 4, !tbaa !11
  %102 = fpext float %101 to double
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.7, i32 noundef %97, double noundef %102) #5
  br label %104

104:                                              ; preds = %94
  %105 = load i32, ptr %13, align 4, !tbaa !5
  %106 = add i32 %105, 1
  store i32 %106, ptr %13, align 4, !tbaa !5
  br label %90, !llvm.loop !16

107:                                              ; preds = %90
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %124, %107
  %109 = load i32, ptr %13, align 4, !tbaa !5
  %110 = load i32, ptr %6, align 4, !tbaa !5
  %111 = load i32, ptr %8, align 4, !tbaa !5
  %112 = mul i32 %110, %111
  %113 = icmp ult i32 %109, %112
  br i1 %113, label %114, label %127

114:                                              ; preds = %108
  %115 = load ptr, ptr %15, align 8, !tbaa !9
  %116 = load i32, ptr %13, align 4, !tbaa !5
  %117 = add i32 %116, 1
  %118 = load i32, ptr %13, align 4, !tbaa !5
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds float, ptr %29, i64 %119
  %121 = load float, ptr %120, align 4, !tbaa !11
  %122 = fpext float %121 to double
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str.8, i32 noundef %117, double noundef %122) #5
  br label %124

124:                                              ; preds = %114
  %125 = load i32, ptr %13, align 4, !tbaa !5
  %126 = add i32 %125, 1
  store i32 %126, ptr %13, align 4, !tbaa !5
  br label %108, !llvm.loop !17

127:                                              ; preds = %108
  %128 = load ptr, ptr %15, align 8, !tbaa !9
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.9) #5
  %130 = load ptr, ptr %15, align 8, !tbaa !9
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.10) #5
  %132 = load ptr, ptr %15, align 8, !tbaa !9
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str.11) #5
  %134 = load ptr, ptr %15, align 8, !tbaa !9
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.12) #5
  %136 = load ptr, ptr %15, align 8, !tbaa !9
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.13) #5
  %138 = load ptr, ptr %15, align 8, !tbaa !9
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.14) #5
  %140 = load ptr, ptr %15, align 8, !tbaa !9
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef @.str.15) #5
  %142 = load ptr, ptr %15, align 8, !tbaa !9
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.16) #5
  %144 = load ptr, ptr %15, align 8, !tbaa !9
  %145 = call i32 @fclose(ptr noundef %144)
  %146 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef @.str)
  store i32 0, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %147 = load ptr, ptr %10, align 8
  call void @llvm.stackrestore.p0(ptr %147)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %148 = load i32, ptr %3, align 4
  ret i32 %148
}

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

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

declare i32 @firpfb_rrrf_print(ptr noundef) #2

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

; Function Attrs: nounwind
declare i32 @rand() #4

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

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

declare i32 @firpfb_rrrf_destroy(ptr noundef) #2

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

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

declare i32 @fclose(ptr noundef) #2

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

; 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) #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 = { 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 = !{!"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}
!17 = distinct !{!17, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 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 [35 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = tail call ptr @firpfb_rrrf_create_default(i32 noundef 16, i32 noundef 4) #4
  %4 = tail call i32 @firpfb_rrrf_print(ptr noundef %3) #4
  %5 = alloca [40 x float], align 16
  %6 = alloca [640 x float], align 16
  br label %7

7:                                                ; preds = %2, %7
  %indvars.iv = phi i64 [ 0, %2 ], [ %indvars.iv.next, %7 ]
  %8 = call i32 @rand() #4
  %9 = and i32 %8, 1
  %.not = icmp eq i32 %9, 0
  %10 = select i1 %.not, float -1.000000e+00, float 1.000000e+00
  %11 = getelementptr inbounds float, ptr %5, i64 %indvars.iv
  store float %10, ptr %11, align 4, !tbaa !5
  %12 = call i32 @firpfb_rrrf_push(ptr noundef %3, float noundef %10) #4
  %.idx = shl nsw i64 %indvars.iv, 6
  %13 = getelementptr inbounds i8, ptr %6, i64 %.idx
  %14 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 0, ptr noundef nonnull %13) #4
  %15 = getelementptr inbounds i8, ptr %13, i64 4
  %16 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 1, ptr noundef nonnull %15) #4
  %17 = getelementptr inbounds i8, ptr %13, i64 8
  %18 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 2, ptr noundef nonnull %17) #4
  %19 = getelementptr inbounds i8, ptr %13, i64 12
  %20 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 3, ptr noundef nonnull %19) #4
  %21 = getelementptr inbounds i8, ptr %13, i64 16
  %22 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 4, ptr noundef nonnull %21) #4
  %23 = getelementptr inbounds i8, ptr %13, i64 20
  %24 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 5, ptr noundef nonnull %23) #4
  %25 = getelementptr inbounds i8, ptr %13, i64 24
  %26 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 6, ptr noundef nonnull %25) #4
  %27 = getelementptr inbounds i8, ptr %13, i64 28
  %28 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 7, ptr noundef nonnull %27) #4
  %29 = getelementptr inbounds i8, ptr %13, i64 32
  %30 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 8, ptr noundef nonnull %29) #4
  %31 = getelementptr inbounds i8, ptr %13, i64 36
  %32 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 9, ptr noundef nonnull %31) #4
  %33 = getelementptr inbounds i8, ptr %13, i64 40
  %34 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 10, ptr noundef nonnull %33) #4
  %35 = getelementptr inbounds i8, ptr %13, i64 44
  %36 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 11, ptr noundef nonnull %35) #4
  %37 = getelementptr inbounds i8, ptr %13, i64 48
  %38 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 12, ptr noundef nonnull %37) #4
  %39 = getelementptr inbounds i8, ptr %13, i64 52
  %40 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 13, ptr noundef nonnull %39) #4
  %41 = getelementptr inbounds i8, ptr %13, i64 56
  %42 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 14, ptr noundef nonnull %41) #4
  %43 = getelementptr inbounds i8, ptr %13, i64 60
  %44 = call i32 @firpfb_rrrf_execute(ptr noundef %3, i32 noundef 15, ptr noundef nonnull %43) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 40
  br i1 %exitcond.not, label %.preheader.preheader, label %7, !llvm.loop !9

.preheader.preheader:                             ; preds = %7
  %45 = call i32 @firpfb_rrrf_destroy(ptr noundef %3) #4
  %46 = call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str) #4
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.3) #4
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.4, i32 noundef 16, i32 noundef 4, i32 noundef 40) #4
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.5) #4
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.6) #4
  %52 = load float, ptr %5, align 16, !tbaa !5
  %53 = fpext float %52 to double
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 1, double noundef %53) #4
  %55 = getelementptr inbounds i8, ptr %5, i64 4
  %56 = load float, ptr %55, align 4, !tbaa !5
  %57 = fpext float %56 to double
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 2, double noundef %57) #4
  %59 = getelementptr inbounds i8, ptr %5, i64 8
  %60 = load float, ptr %59, align 8, !tbaa !5
  %61 = fpext float %60 to double
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 3, double noundef %61) #4
  %63 = getelementptr inbounds i8, ptr %5, i64 12
  %64 = load float, ptr %63, align 4, !tbaa !5
  %65 = fpext float %64 to double
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 4, double noundef %65) #4
  %67 = getelementptr inbounds i8, ptr %5, i64 16
  %68 = load float, ptr %67, align 16, !tbaa !5
  %69 = fpext float %68 to double
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 5, double noundef %69) #4
  %71 = getelementptr inbounds i8, ptr %5, i64 20
  %72 = load float, ptr %71, align 4, !tbaa !5
  %73 = fpext float %72 to double
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 6, double noundef %73) #4
  %75 = getelementptr inbounds i8, ptr %5, i64 24
  %76 = load float, ptr %75, align 8, !tbaa !5
  %77 = fpext float %76 to double
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 7, double noundef %77) #4
  %79 = getelementptr inbounds i8, ptr %5, i64 28
  %80 = load float, ptr %79, align 4, !tbaa !5
  %81 = fpext float %80 to double
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 8, double noundef %81) #4
  %83 = getelementptr inbounds i8, ptr %5, i64 32
  %84 = load float, ptr %83, align 16, !tbaa !5
  %85 = fpext float %84 to double
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 9, double noundef %85) #4
  %87 = getelementptr inbounds i8, ptr %5, i64 36
  %88 = load float, ptr %87, align 4, !tbaa !5
  %89 = fpext float %88 to double
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 10, double noundef %89) #4
  %91 = getelementptr inbounds i8, ptr %5, i64 40
  %92 = load float, ptr %91, align 8, !tbaa !5
  %93 = fpext float %92 to double
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 11, double noundef %93) #4
  %95 = getelementptr inbounds i8, ptr %5, i64 44
  %96 = load float, ptr %95, align 4, !tbaa !5
  %97 = fpext float %96 to double
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 12, double noundef %97) #4
  %99 = getelementptr inbounds i8, ptr %5, i64 48
  %100 = load float, ptr %99, align 16, !tbaa !5
  %101 = fpext float %100 to double
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 13, double noundef %101) #4
  %103 = getelementptr inbounds i8, ptr %5, i64 52
  %104 = load float, ptr %103, align 4, !tbaa !5
  %105 = fpext float %104 to double
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 14, double noundef %105) #4
  %107 = getelementptr inbounds i8, ptr %5, i64 56
  %108 = load float, ptr %107, align 8, !tbaa !5
  %109 = fpext float %108 to double
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 15, double noundef %109) #4
  %111 = getelementptr inbounds i8, ptr %5, i64 60
  %112 = load float, ptr %111, align 4, !tbaa !5
  %113 = fpext float %112 to double
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 16, double noundef %113) #4
  %115 = getelementptr inbounds i8, ptr %5, i64 64
  %116 = load float, ptr %115, align 16, !tbaa !5
  %117 = fpext float %116 to double
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 17, double noundef %117) #4
  %119 = getelementptr inbounds i8, ptr %5, i64 68
  %120 = load float, ptr %119, align 4, !tbaa !5
  %121 = fpext float %120 to double
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 18, double noundef %121) #4
  %123 = getelementptr inbounds i8, ptr %5, i64 72
  %124 = load float, ptr %123, align 8, !tbaa !5
  %125 = fpext float %124 to double
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 19, double noundef %125) #4
  %127 = getelementptr inbounds i8, ptr %5, i64 76
  %128 = load float, ptr %127, align 4, !tbaa !5
  %129 = fpext float %128 to double
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 20, double noundef %129) #4
  %131 = getelementptr inbounds i8, ptr %5, i64 80
  %132 = load float, ptr %131, align 16, !tbaa !5
  %133 = fpext float %132 to double
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 21, double noundef %133) #4
  %135 = getelementptr inbounds i8, ptr %5, i64 84
  %136 = load float, ptr %135, align 4, !tbaa !5
  %137 = fpext float %136 to double
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 22, double noundef %137) #4
  %139 = getelementptr inbounds i8, ptr %5, i64 88
  %140 = load float, ptr %139, align 8, !tbaa !5
  %141 = fpext float %140 to double
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 23, double noundef %141) #4
  %143 = getelementptr inbounds i8, ptr %5, i64 92
  %144 = load float, ptr %143, align 4, !tbaa !5
  %145 = fpext float %144 to double
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 24, double noundef %145) #4
  %147 = getelementptr inbounds i8, ptr %5, i64 96
  %148 = load float, ptr %147, align 16, !tbaa !5
  %149 = fpext float %148 to double
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 25, double noundef %149) #4
  %151 = getelementptr inbounds i8, ptr %5, i64 100
  %152 = load float, ptr %151, align 4, !tbaa !5
  %153 = fpext float %152 to double
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 26, double noundef %153) #4
  %155 = getelementptr inbounds i8, ptr %5, i64 104
  %156 = load float, ptr %155, align 8, !tbaa !5
  %157 = fpext float %156 to double
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 27, double noundef %157) #4
  %159 = getelementptr inbounds i8, ptr %5, i64 108
  %160 = load float, ptr %159, align 4, !tbaa !5
  %161 = fpext float %160 to double
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 28, double noundef %161) #4
  %163 = getelementptr inbounds i8, ptr %5, i64 112
  %164 = load float, ptr %163, align 16, !tbaa !5
  %165 = fpext float %164 to double
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 29, double noundef %165) #4
  %167 = getelementptr inbounds i8, ptr %5, i64 116
  %168 = load float, ptr %167, align 4, !tbaa !5
  %169 = fpext float %168 to double
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 30, double noundef %169) #4
  %171 = getelementptr inbounds i8, ptr %5, i64 120
  %172 = load float, ptr %171, align 8, !tbaa !5
  %173 = fpext float %172 to double
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 31, double noundef %173) #4
  %175 = getelementptr inbounds i8, ptr %5, i64 124
  %176 = load float, ptr %175, align 4, !tbaa !5
  %177 = fpext float %176 to double
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 32, double noundef %177) #4
  %179 = getelementptr inbounds i8, ptr %5, i64 128
  %180 = load float, ptr %179, align 16, !tbaa !5
  %181 = fpext float %180 to double
  %182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 33, double noundef %181) #4
  %183 = getelementptr inbounds i8, ptr %5, i64 132
  %184 = load float, ptr %183, align 4, !tbaa !5
  %185 = fpext float %184 to double
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 34, double noundef %185) #4
  %187 = getelementptr inbounds i8, ptr %5, i64 136
  %188 = load float, ptr %187, align 8, !tbaa !5
  %189 = fpext float %188 to double
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 35, double noundef %189) #4
  %191 = getelementptr inbounds i8, ptr %5, i64 140
  %192 = load float, ptr %191, align 4, !tbaa !5
  %193 = fpext float %192 to double
  %194 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 36, double noundef %193) #4
  %195 = getelementptr inbounds i8, ptr %5, i64 144
  %196 = load float, ptr %195, align 16, !tbaa !5
  %197 = fpext float %196 to double
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 37, double noundef %197) #4
  %199 = getelementptr inbounds i8, ptr %5, i64 148
  %200 = load float, ptr %199, align 4, !tbaa !5
  %201 = fpext float %200 to double
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 38, double noundef %201) #4
  %203 = getelementptr inbounds i8, ptr %5, i64 152
  %204 = load float, ptr %203, align 8, !tbaa !5
  %205 = fpext float %204 to double
  %206 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 39, double noundef %205) #4
  %207 = getelementptr inbounds i8, ptr %5, i64 156
  %208 = load float, ptr %207, align 4, !tbaa !5
  %209 = fpext float %208 to double
  %210 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, i32 noundef 40, double noundef %209) #4
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %indvars.iv63 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next64, %.preheader ]
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %211 = getelementptr inbounds float, ptr %6, i64 %indvars.iv63
  %212 = load float, ptr %211, align 4, !tbaa !5
  %213 = fpext float %212 to double
  %214 = trunc nuw nsw i64 %indvars.iv.next64 to i32
  %215 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.8, i32 noundef %214, double noundef %213) #4
  %exitcond66.not = icmp eq i64 %indvars.iv.next64, 640
  br i1 %exitcond66.not, label %216, label %.preheader, !llvm.loop !11

216:                                              ; preds = %.preheader
  %217 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.9) #4
  %218 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.10) #4
  %219 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.11) #4
  %220 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.12) #4
  %221 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.13) #4
  %222 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.14) #4
  %223 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.15) #4
  %224 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.16) #4
  %225 = call i32 @fclose(ptr noundef %46)
  %226 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, ptr noundef nonnull @.str)
  ret i32 0
}

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

declare i32 @firpfb_rrrf_print(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #2

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

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

declare i32 @firpfb_rrrf_destroy(ptr noundef) local_unnamed_addr #1

; 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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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 = { "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 = { 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 = { 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 = !{!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,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass