; LLVM IR from reworks-org/galaxy :: deps/sfml_deps/vorbis-src/test (test)

; 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"

@main.data_out = external hidden global [2048 x float], align 16
@main.data_in = external hidden global [2048 x float], align 16
@__const.main.sample_rates = external hidden unnamed_addr constant [6 x i32], align 16
@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@stdout = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [6 x i32], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca [64 x i8], align 16
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.sample_rates, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @gen_windowed_sine(ptr noundef @main.data_out, i32 noundef 2048, float noundef 0x3FEE666660000000)
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %75, %0
  %9 = load i32, ptr %5, align 4, !tbaa !5
  %10 = icmp sle i32 %9, 8
  br i1 %10, label %11, label %78

11:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store float 0xBFA99999A0000000, ptr %6, align 4, !tbaa !9
  %12 = load i32, ptr %5, align 4, !tbaa !5
  %13 = load i32, ptr %5, align 4, !tbaa !5
  %14 = icmp eq i32 %13, 1
  %15 = zext i1 %14 to i64
  %16 = select i1 %14, ptr @.str.1, ptr @.str.2
  %17 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12, ptr noundef %16)
  br label %18

18:                                               ; preds = %69, %11
  %19 = load float, ptr %6, align 4, !tbaa !9
  %20 = fpext float %19 to double
  %21 = fcmp olt double %20, 1.000000e+00
  br i1 %21, label %22, label %74

22:                                               ; preds = %18
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %66, %22
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = zext i32 %24 to i64
  %26 = icmp ult i64 %25, 6
  br i1 %26, label %27, label %69

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #7
  %28 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = load float, ptr %6, align 4, !tbaa !9
  %31 = fmul float %30, 1.000000e+01
  %32 = fpext float %31 to double
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %28, i64 noundef 64, ptr noundef @.str.3, i32 noundef %29, double noundef %32, i32 noundef %36) #7
  %38 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %38)
  %40 = load ptr, ptr @stdout, align 8, !tbaa !11
  %41 = call i32 @fflush(ptr noundef %40)
  call void @set_data_in(ptr noundef @main.data_in, i32 noundef 2048, float noundef 0x400920C4A0000000)
  %42 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = load float, ptr %6, align 4, !tbaa !9
  %48 = load i32, ptr %5, align 4, !tbaa !5
  call void @write_vorbis_data_or_die(ptr noundef %42, i32 noundef %46, float noundef %47, ptr noundef @main.data_out, i32 noundef 2048, i32 noundef %48)
  %49 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  call void @read_vorbis_data_or_die(ptr noundef %49, i32 noundef %53, ptr noundef @main.data_in, i32 noundef 2048)
  %54 = load float, ptr %6, align 4, !tbaa !9
  %55 = call float @llvm.fmuladd.f32(float 0xBFB99999A0000000, float %54, float 0x3FC3333340000000)
  %56 = call i32 @check_output(ptr noundef @main.data_in, i32 noundef 2048, float noundef %55)
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %61

58:                                               ; preds = %27
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %4, align 4, !tbaa !5
  br label %65

61:                                               ; preds = %27
  %62 = call i32 @puts(ptr noundef @.str.5)
  %63 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
  %64 = call i32 @remove(ptr noundef %63) #7
  br label %65

65:                                               ; preds = %61, %58
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #7
  br label %66

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

69:                                               ; preds = %23
  %70 = load float, ptr %6, align 4, !tbaa !9
  %71 = fpext float %70 to double
  %72 = fadd double %71, 1.000000e-01
  %73 = fptrunc double %72 to float
  store float %73, ptr %6, align 4, !tbaa !9
  br label %18, !llvm.loop !15

74:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %5, align 4, !tbaa !5
  br label %8, !llvm.loop !16

78:                                               ; preds = %8
  %79 = load i32, ptr %4, align 4, !tbaa !5
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %78
  call void @exit(i32 noundef 1) #8
  unreachable

82:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #7
  ret i32 0
}

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare void @gen_windowed_sine(ptr noundef, i32 noundef, float noundef) #3

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

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

declare i32 @fflush(ptr noundef) #3

declare void @set_data_in(ptr noundef, i32 noundef, float noundef) #3

declare void @write_vorbis_data_or_die(ptr noundef, i32 noundef, float noundef, ptr noundef, i32 noundef, i32 noundef) #3

declare void @read_vorbis_data_or_die(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @check_output(ptr noundef, i32 noundef, float noundef) #0

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

declare i32 @puts(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @remove(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: noreturn nounwind
declare void @exit(i32 noundef) #6

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 nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { noreturn 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 #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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

@main.data_out = external hidden global [2048 x float], align 16
@main.data_in = external hidden global [2048 x float], align 16
@__const.main.sample_rates = external hidden unnamed_addr constant [6 x i32], align 16
@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [64 x i8], align 16
  tail call void @gen_windowed_sine(ptr noundef nonnull @main.data_out, i32 noundef 2048, float noundef 0x3FEE666660000000) #6
  %.pre.pre = load i32, ptr @__const.main.sample_rates, align 16, !tbaa !5
  %2 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.sample_rates, i64 4), align 4
  %3 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.sample_rates, i64 8), align 8
  %4 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.sample_rates, i64 12), align 4
  %5 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.sample_rates, i64 16), align 16
  %6 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.sample_rates, i64 20), align 4
  br label %7

7:                                                ; preds = %0, %85
  %.01728 = phi i32 [ 1, %0 ], [ %86, %85 ]
  %.01827 = phi i32 [ 0, %0 ], [ %.3.5, %85 ]
  %8 = icmp eq i32 %.01728, 1
  %9 = select i1 %8, ptr @.str.1, ptr @.str.2
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %.01728, ptr noundef nonnull %9)
  br label %.preheader

.preheader:                                       ; preds = %7, %80
  %11 = phi double [ 0xBFA99999A0000000, %7 ], [ %83, %80 ]
  %.026 = phi float [ 0xBFA99999A0000000, %7 ], [ %82, %80 ]
  %.125 = phi i32 [ %.01827, %7 ], [ %.3.5, %80 ]
  %12 = fmul float %.026, 1.000000e+01
  %13 = fpext float %12 to double
  %14 = call float @llvm.fmuladd.f32(float %.026, float 0xBFB99999A0000000, float 0x3FC3333340000000)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #6
  %15 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %1, i64 noundef 64, ptr noundef nonnull @.str.3, i32 noundef %.01728, double noundef %13, i32 noundef %.pre.pre) #6
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull %1)
  %17 = load ptr, ptr @stdout, align 8, !tbaa !9
  %18 = call i32 @fflush(ptr noundef %17)
  call void @set_data_in(ptr noundef nonnull @main.data_in, i32 noundef 2048, float noundef 0x400920C4A0000000) #6
  call void @write_vorbis_data_or_die(ptr noundef nonnull %1, i32 noundef %.pre.pre, float noundef %.026, ptr noundef nonnull @main.data_out, i32 noundef 2048, i32 noundef %.01728) #6
  call void @read_vorbis_data_or_die(ptr noundef nonnull %1, i32 noundef %.pre.pre, ptr noundef nonnull @main.data_in, i32 noundef 2048) #6
  %19 = call i32 @check_output(ptr noundef nonnull @main.data_in, i32 noundef 2048, float noundef %14)
  %.not22 = icmp eq i32 %19, 0
  br i1 %.not22, label %22, label %20

20:                                               ; preds = %.preheader
  %21 = add nsw i32 %.125, 1
  br label %25

22:                                               ; preds = %.preheader
  %23 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.5)
  %24 = call i32 @remove(ptr noundef nonnull %1) #6
  br label %25

25:                                               ; preds = %22, %20
  %.3 = phi i32 [ %21, %20 ], [ %.125, %22 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #6
  %26 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %1, i64 noundef 64, ptr noundef nonnull @.str.3, i32 noundef %.01728, double noundef %13, i32 noundef %2) #6
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull %1)
  %28 = load ptr, ptr @stdout, align 8, !tbaa !9
  %29 = call i32 @fflush(ptr noundef %28)
  call void @set_data_in(ptr noundef nonnull @main.data_in, i32 noundef 2048, float noundef 0x400920C4A0000000) #6
  call void @write_vorbis_data_or_die(ptr noundef nonnull %1, i32 noundef %2, float noundef %.026, ptr noundef nonnull @main.data_out, i32 noundef 2048, i32 noundef %.01728) #6
  call void @read_vorbis_data_or_die(ptr noundef nonnull %1, i32 noundef %2, ptr noundef nonnull @main.data_in, i32 noundef 2048) #6
  %30 = call i32 @check_output(ptr noundef nonnull @main.data_in, i32 noundef 2048, float noundef %14)
  %.not22.1 = icmp eq i32 %30, 0
  br i1 %.not22.1, label %33, label %31

31:                                               ; preds = %25
  %32 = add nsw i32 %.3, 1
  br label %36

33:                                               ; preds = %25
  %34 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.5)
  %35 = call i32 @remove(ptr noundef nonnull %1) #6
  br label %36

36:                                               ; preds = %33, %31
  %.3.1 = phi i32 [ %32, %31 ], [ %.3, %33 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #6
  %37 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %1, i64 noundef 64, ptr noundef nonnull @.str.3, i32 noundef %.01728, double noundef %13, i32 noundef %3) #6
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull %1)
  %39 = load ptr, ptr @stdout, align 8, !tbaa !9
  %40 = call i32 @fflush(ptr noundef %39)
  call void @set_data_in(ptr noundef nonnull @main.data_in, i32 noundef 2048, float noundef 0x400920C4A0000000) #6
  call void @write_vorbis_data_or_die(ptr noundef nonnull %1, i32 noundef %3, float noundef %.026, ptr noundef nonnull @main.data_out, i32 noundef 2048, i32 noundef %.01728) #6
  call void @read_vorbis_data_or_die(ptr noundef nonnull %1, i32 noundef %3, ptr noundef nonnull @main.data_in, i32 noundef 2048) #6
  %41 = call i32 @check_output(ptr noundef nonnull @main.data_in, i32 noundef 2048, float noundef %14)
  %.not22.2 = icmp eq i32 %41, 0
  br i1 %.not22.2, label %44, label %42

42:                                               ; preds = %36
  %43 = add nsw i32 %.3.1, 1
  br label %47

44:                                               ; preds = %36
  %45 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.5)
  %46 = call i32 @remove(ptr noundef nonnull %1) #6
  br label %47

47:                                               ; preds = %44, %42
  %.3.2 = phi i32 [ %43, %42 ], [ %.3.1, %44 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #6
  %48 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %1, i64 noundef 64, ptr noundef nonnull @.str.3, i32 noundef %.01728, double noundef %13, i32 noundef %4) #6
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull %1)
  %50 = load ptr, ptr @stdout, align 8, !tbaa !9
  %51 = call i32 @fflush(ptr noundef %50)
  call void @set_data_in(ptr noundef nonnull @main.data_in, i32 noundef 2048, float noundef 0x400920C4A0000000) #6
  call void @write_vorbis_data_or_die(ptr noundef nonnull %1, i32 noundef %4, float noundef %.026, ptr noundef nonnull @main.data_out, i32 noundef 2048, i32 noundef %.01728) #6
  call void @read_vorbis_data_or_die(ptr noundef nonnull %1, i32 noundef %4, ptr noundef nonnull @main.data_in, i32 noundef 2048) #6
  %52 = call i32 @check_output(ptr noundef nonnull @main.data_in, i32 noundef 2048, float noundef %14)
  %.not22.3 = icmp eq i32 %52, 0
  br i1 %.not22.3, label %55, label %53

53:                                               ; preds = %47
  %54 = add nsw i32 %.3.2, 1
  br label %58

55:                                               ; preds = %47
  %56 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.5)
  %57 = call i32 @remove(ptr noundef nonnull %1) #6
  br label %58

58:                                               ; preds = %55, %53
  %.3.3 = phi i32 [ %54, %53 ], [ %.3.2, %55 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #6
  %59 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %1, i64 noundef 64, ptr noundef nonnull @.str.3, i32 noundef %.01728, double noundef %13, i32 noundef %5) #6
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull %1)
  %61 = load ptr, ptr @stdout, align 8, !tbaa !9
  %62 = call i32 @fflush(ptr noundef %61)
  call void @set_data_in(ptr noundef nonnull @main.data_in, i32 noundef 2048, float noundef 0x400920C4A0000000) #6
  call void @write_vorbis_data_or_die(ptr noundef nonnull %1, i32 noundef %5, float noundef %.026, ptr noundef nonnull @main.data_out, i32 noundef 2048, i32 noundef %.01728) #6
  call void @read_vorbis_data_or_die(ptr noundef nonnull %1, i32 noundef %5, ptr noundef nonnull @main.data_in, i32 noundef 2048) #6
  %63 = call i32 @check_output(ptr noundef nonnull @main.data_in, i32 noundef 2048, float noundef %14)
  %.not22.4 = icmp eq i32 %63, 0
  br i1 %.not22.4, label %66, label %64

64:                                               ; preds = %58
  %65 = add nsw i32 %.3.3, 1
  br label %69

66:                                               ; preds = %58
  %67 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.5)
  %68 = call i32 @remove(ptr noundef nonnull %1) #6
  br label %69

69:                                               ; preds = %66, %64
  %.3.4 = phi i32 [ %65, %64 ], [ %.3.3, %66 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #6
  %70 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %1, i64 noundef 64, ptr noundef nonnull @.str.3, i32 noundef %.01728, double noundef %13, i32 noundef %6) #6
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull %1)
  %72 = load ptr, ptr @stdout, align 8, !tbaa !9
  %73 = call i32 @fflush(ptr noundef %72)
  call void @set_data_in(ptr noundef nonnull @main.data_in, i32 noundef 2048, float noundef 0x400920C4A0000000) #6
  call void @write_vorbis_data_or_die(ptr noundef nonnull %1, i32 noundef %6, float noundef %.026, ptr noundef nonnull @main.data_out, i32 noundef 2048, i32 noundef %.01728) #6
  call void @read_vorbis_data_or_die(ptr noundef nonnull %1, i32 noundef %6, ptr noundef nonnull @main.data_in, i32 noundef 2048) #6
  %74 = call i32 @check_output(ptr noundef nonnull @main.data_in, i32 noundef 2048, float noundef %14)
  %.not22.5 = icmp eq i32 %74, 0
  br i1 %.not22.5, label %77, label %75

75:                                               ; preds = %69
  %76 = add nsw i32 %.3.4, 1
  br label %80

77:                                               ; preds = %69
  %78 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.5)
  %79 = call i32 @remove(ptr noundef nonnull %1) #6
  br label %80

80:                                               ; preds = %77, %75
  %.3.5 = phi i32 [ %76, %75 ], [ %.3.4, %77 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #6
  %81 = fadd double %11, 1.000000e-01
  %82 = fptrunc double %81 to float
  %83 = fpext float %82 to double
  %84 = fcmp olt float %82, 1.000000e+00
  br i1 %84, label %.preheader, label %85, !llvm.loop !11

85:                                               ; preds = %80
  %86 = add nuw nsw i32 %.01728, 1
  %exitcond.not = icmp eq i32 %86, 9
  br i1 %exitcond.not, label %87, label %7, !llvm.loop !13

87:                                               ; preds = %85
  %.not = icmp eq i32 %.3.5, 0
  br i1 %.not, label %89, label %88

88:                                               ; preds = %87
  call void @exit(i32 noundef 1) #7
  unreachable

89:                                               ; preds = %87
  ret i32 0
}

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

declare void @gen_windowed_sine(ptr noundef, i32 noundef, float 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 noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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

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

declare void @read_vorbis_data_or_die(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @check_output(ptr noundef, i32 noundef, float noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

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 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 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noreturn 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 #6 = { nounwind }
attributes #7 = { noreturn 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass