; LLVM IR from jgaeddert/liquid-dsp :: examples (firinterp_rrrf_linear_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 [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [7 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 ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = 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 8, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 16, ptr %7, align 4, !tbaa !5
  %14 = load i32, ptr %7, align 4, !tbaa !5
  %15 = zext i32 %14 to i64
  %16 = call ptr @llvm.stacksave.p0()
  store ptr %16, ptr %8, align 8
  %17 = alloca float, i64 %15, align 16
  store i64 %15, ptr %9, align 8
  %18 = load i32, ptr %6, align 4, !tbaa !5
  %19 = load i32, ptr %7, align 4, !tbaa !5
  %20 = mul i32 %18, %19
  %21 = zext i32 %20 to i64
  %22 = alloca float, i64 %21, align 16
  store i64 %21, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %32, %2
  %24 = load i32, ptr %11, align 4, !tbaa !5
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = icmp ult i32 %24, %25
  br i1 %26, label %27, label %35

27:                                               ; preds = %23
  %28 = call float (...) @randnf()
  %29 = load i32, ptr %11, align 4, !tbaa !5
  %30 = zext i32 %29 to i64
  %31 = getelementptr inbounds float, ptr %17, i64 %30
  store float %28, ptr %31, align 4, !tbaa !11
  br label %32

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

35:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = call ptr @firinterp_rrrf_create_linear(i32 noundef %36)
  store ptr %37, ptr %12, align 8, !tbaa !9
  %38 = load ptr, ptr %12, align 8, !tbaa !9
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = call i32 @firinterp_rrrf_execute_block(ptr noundef %38, ptr noundef %17, i32 noundef %39, ptr noundef %22)
  %41 = load ptr, ptr %12, align 8, !tbaa !9
  %42 = call i32 @firinterp_rrrf_destroy(ptr noundef %41)
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %56, %35
  %45 = load i32, ptr %11, align 4, !tbaa !5
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = icmp ult i32 %45, %46
  br i1 %47, label %48, label %59

48:                                               ; preds = %44
  %49 = load i32, ptr %11, align 4, !tbaa !5
  %50 = load i32, ptr %11, align 4, !tbaa !5
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds float, ptr %17, i64 %51
  %53 = load float, ptr %52, align 4, !tbaa !11
  %54 = fpext float %53 to double
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %49, double noundef %54)
  br label %56

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

59:                                               ; preds = %44
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %87, %59
  %62 = load i32, ptr %11, align 4, !tbaa !5
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = load i32, ptr %7, align 4, !tbaa !5
  %65 = mul i32 %63, %64
  %66 = icmp ult i32 %62, %65
  br i1 %66, label %67, label %90

67:                                               ; preds = %61
  %68 = load i32, ptr %11, align 4, !tbaa !5
  %69 = load i32, ptr %11, align 4, !tbaa !5
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds float, ptr %22, i64 %70
  %72 = load float, ptr %71, align 4, !tbaa !11
  %73 = fpext float %72 to double
  %74 = load i32, ptr %11, align 4, !tbaa !5
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = icmp uge i32 %74, %75
  br i1 %76, label %77, label %82

77:                                               ; preds = %67
  %78 = load i32, ptr %11, align 4, !tbaa !5
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = urem i32 %78, %79
  %81 = icmp eq i32 %80, 0
  br label %82

82:                                               ; preds = %77, %67
  %83 = phi i1 [ false, %67 ], [ %81, %77 ]
  %84 = zext i1 %83 to i64
  %85 = select i1 %83, ptr @.str.4, ptr @.str.5
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %68, double noundef %73, ptr noundef %85)
  br label %87

87:                                               ; preds = %82
  %88 = load i32, ptr %11, align 4, !tbaa !5
  %89 = add i32 %88, 1
  store i32 %89, ptr %11, align 4, !tbaa !5
  br label %61, !llvm.loop !16

90:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %91 = call noalias ptr @fopen(ptr noundef @.str.6, ptr noundef @.str.7)
  store ptr %91, ptr %13, align 8, !tbaa !9
  %92 = load ptr, ptr %13, align 8, !tbaa !9
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef @.str.8, ptr noundef @.str.6) #5
  %94 = load ptr, ptr %13, align 8, !tbaa !9
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.9) #5
  %96 = load ptr, ptr %13, align 8, !tbaa !9
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.10) #5
  %98 = load ptr, ptr %13, align 8, !tbaa !9
  %99 = load i32, ptr %6, align 4, !tbaa !5
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.11, i32 noundef %99) #5
  %101 = load ptr, ptr %13, align 8, !tbaa !9
  %102 = load i32, ptr %7, align 4, !tbaa !5
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.12, i32 noundef %102) #5
  %104 = load ptr, ptr %13, align 8, !tbaa !9
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.13) #5
  %106 = load ptr, ptr %13, align 8, !tbaa !9
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.14) #5
  %108 = load ptr, ptr %13, align 8, !tbaa !9
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.15) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %124, %90
  %111 = load i32, ptr %11, align 4, !tbaa !5
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = icmp ult i32 %111, %112
  br i1 %113, label %114, label %127

114:                                              ; preds = %110
  %115 = load ptr, ptr %13, align 8, !tbaa !9
  %116 = load i32, ptr %11, align 4, !tbaa !5
  %117 = add i32 %116, 1
  %118 = load i32, ptr %11, align 4, !tbaa !5
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds float, ptr %17, 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.16, i32 noundef %117, double noundef %122) #5
  br label %124

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

127:                                              ; preds = %110
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %144, %127
  %129 = load i32, ptr %11, align 4, !tbaa !5
  %130 = load i32, ptr %6, align 4, !tbaa !5
  %131 = load i32, ptr %7, align 4, !tbaa !5
  %132 = mul i32 %130, %131
  %133 = icmp ult i32 %129, %132
  br i1 %133, label %134, label %147

134:                                              ; preds = %128
  %135 = load ptr, ptr %13, align 8, !tbaa !9
  %136 = load i32, ptr %11, align 4, !tbaa !5
  %137 = add i32 %136, 1
  %138 = load i32, ptr %11, align 4, !tbaa !5
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds float, ptr %22, i64 %139
  %141 = load float, ptr %140, align 4, !tbaa !11
  %142 = fpext float %141 to double
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.17, i32 noundef %137, double noundef %142) #5
  br label %144

144:                                              ; preds = %134
  %145 = load i32, ptr %11, align 4, !tbaa !5
  %146 = add i32 %145, 1
  store i32 %146, ptr %11, align 4, !tbaa !5
  br label %128, !llvm.loop !18

147:                                              ; preds = %128
  %148 = load ptr, ptr %13, align 8, !tbaa !9
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str.18) #5
  %150 = load ptr, ptr %13, align 8, !tbaa !9
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %150, ptr noundef @.str.19) #5
  %152 = load ptr, ptr %13, align 8, !tbaa !9
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef @.str.20) #5
  %154 = load ptr, ptr %13, align 8, !tbaa !9
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %154, ptr noundef @.str.21) #5
  %156 = load ptr, ptr %13, align 8, !tbaa !9
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef @.str.22) #5
  %158 = load ptr, ptr %13, align 8, !tbaa !9
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef @.str.23) #5
  %160 = load ptr, ptr %13, align 8, !tbaa !9
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str.24) #5
  %162 = load ptr, ptr %13, align 8, !tbaa !9
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef @.str.25) #5
  %164 = load ptr, ptr %13, align 8, !tbaa !9
  %165 = call i32 @fclose(ptr noundef %164)
  %166 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, ptr noundef @.str.6)
  %167 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  store i32 0, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %168 = load ptr, ptr %8, align 8
  call void @llvm.stackrestore.p0(ptr %168)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %169 = load i32, ptr %3, align 4
  ret i32 %169
}

; 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

declare float @randnf(...) #3

declare ptr @firinterp_rrrf_create_linear(i32 noundef) #3

declare i32 @firinterp_rrrf_execute_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare i32 @firinterp_rrrf_destroy(ptr noundef) #3

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

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

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

declare i32 @fclose(ptr noundef) #3

; 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 = { "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 "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}
!18 = distinct !{!18, !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 [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [7 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 = alloca [16 x float], align 16
  %4 = alloca [128 x float], align 16
  %5 = tail call float (...) @randnf() #3
  store float %5, ptr %3, align 16, !tbaa !5
  %6 = tail call float (...) @randnf() #3
  %7 = getelementptr inbounds i8, ptr %3, i64 4
  store float %6, ptr %7, align 4, !tbaa !5
  %8 = tail call float (...) @randnf() #3
  %9 = getelementptr inbounds i8, ptr %3, i64 8
  store float %8, ptr %9, align 8, !tbaa !5
  %10 = tail call float (...) @randnf() #3
  %11 = getelementptr inbounds i8, ptr %3, i64 12
  store float %10, ptr %11, align 4, !tbaa !5
  %12 = tail call float (...) @randnf() #3
  %13 = getelementptr inbounds i8, ptr %3, i64 16
  store float %12, ptr %13, align 16, !tbaa !5
  %14 = tail call float (...) @randnf() #3
  %15 = getelementptr inbounds i8, ptr %3, i64 20
  store float %14, ptr %15, align 4, !tbaa !5
  %16 = tail call float (...) @randnf() #3
  %17 = getelementptr inbounds i8, ptr %3, i64 24
  store float %16, ptr %17, align 8, !tbaa !5
  %18 = tail call float (...) @randnf() #3
  %19 = getelementptr inbounds i8, ptr %3, i64 28
  store float %18, ptr %19, align 4, !tbaa !5
  %20 = tail call float (...) @randnf() #3
  %21 = getelementptr inbounds i8, ptr %3, i64 32
  store float %20, ptr %21, align 16, !tbaa !5
  %22 = tail call float (...) @randnf() #3
  %23 = getelementptr inbounds i8, ptr %3, i64 36
  store float %22, ptr %23, align 4, !tbaa !5
  %24 = tail call float (...) @randnf() #3
  %25 = getelementptr inbounds i8, ptr %3, i64 40
  store float %24, ptr %25, align 8, !tbaa !5
  %26 = tail call float (...) @randnf() #3
  %27 = getelementptr inbounds i8, ptr %3, i64 44
  store float %26, ptr %27, align 4, !tbaa !5
  %28 = tail call float (...) @randnf() #3
  %29 = getelementptr inbounds i8, ptr %3, i64 48
  store float %28, ptr %29, align 16, !tbaa !5
  %30 = tail call float (...) @randnf() #3
  %31 = getelementptr inbounds i8, ptr %3, i64 52
  store float %30, ptr %31, align 4, !tbaa !5
  %32 = tail call float (...) @randnf() #3
  %33 = getelementptr inbounds i8, ptr %3, i64 56
  store float %32, ptr %33, align 8, !tbaa !5
  %34 = tail call float (...) @randnf() #3
  %35 = getelementptr inbounds i8, ptr %3, i64 60
  store float %34, ptr %35, align 4, !tbaa !5
  %36 = tail call ptr @firinterp_rrrf_create_linear(i32 noundef 8) #3
  %37 = call i32 @firinterp_rrrf_execute_block(ptr noundef %36, ptr noundef nonnull %3, i32 noundef 16, ptr noundef nonnull %4) #3
  %38 = call i32 @firinterp_rrrf_destroy(ptr noundef %36) #3
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %40 = load float, ptr %3, align 16, !tbaa !5
  %41 = fpext float %40 to double
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 0, double noundef %41)
  %43 = load float, ptr %7, align 4, !tbaa !5
  %44 = fpext float %43 to double
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 1, double noundef %44)
  %46 = load float, ptr %9, align 8, !tbaa !5
  %47 = fpext float %46 to double
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 2, double noundef %47)
  %49 = load float, ptr %11, align 4, !tbaa !5
  %50 = fpext float %49 to double
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 3, double noundef %50)
  %52 = load float, ptr %13, align 16, !tbaa !5
  %53 = fpext float %52 to double
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 4, double noundef %53)
  %55 = load float, ptr %15, align 4, !tbaa !5
  %56 = fpext float %55 to double
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 5, double noundef %56)
  %58 = load float, ptr %17, align 8, !tbaa !5
  %59 = fpext float %58 to double
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 6, double noundef %59)
  %61 = load float, ptr %19, align 4, !tbaa !5
  %62 = fpext float %61 to double
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 7, double noundef %62)
  %64 = load float, ptr %21, align 16, !tbaa !5
  %65 = fpext float %64 to double
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 8, double noundef %65)
  %67 = load float, ptr %23, align 4, !tbaa !5
  %68 = fpext float %67 to double
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 9, double noundef %68)
  %70 = load float, ptr %25, align 8, !tbaa !5
  %71 = fpext float %70 to double
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 10, double noundef %71)
  %73 = load float, ptr %27, align 4, !tbaa !5
  %74 = fpext float %73 to double
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 11, double noundef %74)
  %76 = load float, ptr %29, align 16, !tbaa !5
  %77 = fpext float %76 to double
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 12, double noundef %77)
  %79 = load float, ptr %31, align 4, !tbaa !5
  %80 = fpext float %79 to double
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 13, double noundef %80)
  %82 = load float, ptr %33, align 8, !tbaa !5
  %83 = fpext float %82 to double
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 14, double noundef %83)
  %85 = load float, ptr %35, align 4, !tbaa !5
  %86 = fpext float %85 to double
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 15, double noundef %86)
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %89

89:                                               ; preds = %2, %89
  %indvars.iv = phi i64 [ 0, %2 ], [ %indvars.iv.next, %89 ]
  %90 = getelementptr inbounds float, ptr %4, i64 %indvars.iv
  %91 = load float, ptr %90, align 4, !tbaa !5
  %92 = fpext float %91 to double
  %93 = icmp ugt i64 %indvars.iv, 7
  %94 = trunc nuw nsw i64 %indvars.iv to i32
  %95 = and i32 %94, 7
  %96 = icmp eq i32 %95, 0
  %97 = and i1 %93, %96
  %98 = select i1 %97, ptr @.str.4, ptr @.str.5
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %94, double noundef %92, ptr noundef nonnull %98)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 128
  br i1 %exitcond.not, label %.preheader.preheader, label %89, !llvm.loop !9

.preheader.preheader:                             ; preds = %89
  %100 = call noalias ptr @fopen(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7)
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.6) #3
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.9) #3
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.10) #3
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.11, i32 noundef 8) #3
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.12, i32 noundef 16) #3
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.13) #3
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.14) #3
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.15) #3
  %109 = load float, ptr %3, align 16, !tbaa !5
  %110 = fpext float %109 to double
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 1, double noundef %110) #3
  %112 = load float, ptr %7, align 4, !tbaa !5
  %113 = fpext float %112 to double
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 2, double noundef %113) #3
  %115 = load float, ptr %9, align 8, !tbaa !5
  %116 = fpext float %115 to double
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 3, double noundef %116) #3
  %118 = load float, ptr %11, align 4, !tbaa !5
  %119 = fpext float %118 to double
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 4, double noundef %119) #3
  %121 = load float, ptr %13, align 16, !tbaa !5
  %122 = fpext float %121 to double
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 5, double noundef %122) #3
  %124 = load float, ptr %15, align 4, !tbaa !5
  %125 = fpext float %124 to double
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 6, double noundef %125) #3
  %127 = load float, ptr %17, align 8, !tbaa !5
  %128 = fpext float %127 to double
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 7, double noundef %128) #3
  %130 = load float, ptr %19, align 4, !tbaa !5
  %131 = fpext float %130 to double
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 8, double noundef %131) #3
  %133 = load float, ptr %21, align 16, !tbaa !5
  %134 = fpext float %133 to double
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 9, double noundef %134) #3
  %136 = load float, ptr %23, align 4, !tbaa !5
  %137 = fpext float %136 to double
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 10, double noundef %137) #3
  %139 = load float, ptr %25, align 8, !tbaa !5
  %140 = fpext float %139 to double
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 11, double noundef %140) #3
  %142 = load float, ptr %27, align 4, !tbaa !5
  %143 = fpext float %142 to double
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 12, double noundef %143) #3
  %145 = load float, ptr %29, align 16, !tbaa !5
  %146 = fpext float %145 to double
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 13, double noundef %146) #3
  %148 = load float, ptr %31, align 4, !tbaa !5
  %149 = fpext float %148 to double
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 14, double noundef %149) #3
  %151 = load float, ptr %33, align 8, !tbaa !5
  %152 = fpext float %151 to double
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 15, double noundef %152) #3
  %154 = load float, ptr %35, align 4, !tbaa !5
  %155 = fpext float %154 to double
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.16, i32 noundef 16, double noundef %155) #3
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %indvars.iv71 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next72, %.preheader ]
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %157 = getelementptr inbounds float, ptr %4, i64 %indvars.iv71
  %158 = load float, ptr %157, align 4, !tbaa !5
  %159 = fpext float %158 to double
  %160 = trunc nuw nsw i64 %indvars.iv.next72 to i32
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.17, i32 noundef %160, double noundef %159) #3
  %exitcond74.not = icmp eq i64 %indvars.iv.next72, 128
  br i1 %exitcond74.not, label %162, label %.preheader, !llvm.loop !11

162:                                              ; preds = %.preheader
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.18) #3
  %164 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.19) #3
  %165 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.20) #3
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.21) #3
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.22) #3
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.23) #3
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.24) #3
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.25) #3
  %171 = call i32 @fclose(ptr noundef %100)
  %172 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, ptr noundef nonnull @.str.6)
  %173 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27)
  ret i32 0
}

declare float @randnf(...) local_unnamed_addr #1

declare ptr @firinterp_rrrf_create_linear(i32 noundef) local_unnamed_addr #1

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

declare i32 @firinterp_rrrf_destroy(ptr noundef) local_unnamed_addr #1

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 = { 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,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass