; LLVM IR from jgaeddert/liquid-dsp :: examples (symstreamrcf_delay_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 [45 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca float, align 4
  %4 = alloca i32, align 4
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca { float, float }, align 4
  %14 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 7, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store float 0x3FCE065220000000, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 8, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store float 0x3FD3333340000000, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 40, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = load float, ptr %3, align 4, !tbaa !9
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = load float, ptr %5, align 4, !tbaa !9
  %19 = load i32, ptr %6, align 4, !tbaa !5
  %20 = call ptr @symstreamrcf_create_linear(i32 noundef %15, float noundef %16, i32 noundef %17, float noundef %18, i32 noundef %19)
  store ptr %20, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %21 = load ptr, ptr %7, align 8, !tbaa !11
  %22 = call float @symstreamrcf_get_delay(ptr noundef %21)
  store float %22, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 100, ptr %9, align 4, !tbaa !5
  %23 = load i32, ptr %9, align 4, !tbaa !5
  %24 = mul i32 2, %23
  %25 = zext i32 %24 to i64
  %26 = call ptr @llvm.stacksave.p0()
  store ptr %26, ptr %10, align 8
  %27 = alloca { float, float }, i64 %25, align 16
  store i64 %25, ptr %11, align 8
  %28 = load ptr, ptr %7, align 8, !tbaa !11
  %29 = load i32, ptr %9, align 4, !tbaa !5
  %30 = call i32 @symstreamrcf_write_samples(ptr noundef %28, ptr noundef %27, i32 noundef %29)
  %31 = load ptr, ptr %7, align 8, !tbaa !11
  %32 = call i32 @symstreamrcf_set_gain(ptr noundef %31, float noundef 0.000000e+00)
  %33 = load ptr, ptr %7, align 8, !tbaa !11
  %34 = load i32, ptr %9, align 4, !tbaa !5
  %35 = zext i32 %34 to i64
  %36 = getelementptr inbounds { float, float }, ptr %27, i64 %35
  %37 = load i32, ptr %9, align 4, !tbaa !5
  %38 = call i32 @symstreamrcf_write_samples(ptr noundef %33, ptr noundef %36, i32 noundef %37)
  %39 = load ptr, ptr %7, align 8, !tbaa !11
  %40 = call i32 @symstreamrcf_destroy(ptr noundef %39)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %61, %0
  %42 = load i32, ptr %12, align 4, !tbaa !5
  %43 = load i32, ptr %9, align 4, !tbaa !5
  %44 = mul i32 2, %43
  %45 = icmp ult i32 %42, %44
  br i1 %45, label %46, label %64

46:                                               ; preds = %41
  %47 = load i32, ptr %12, align 4, !tbaa !5
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds { float, float }, ptr %27, i64 %48
  %50 = getelementptr inbounds { float, float }, ptr %49, i32 0, i32 0
  %51 = load float, ptr %50, align 8
  %52 = getelementptr inbounds { float, float }, ptr %49, i32 0, i32 1
  %53 = load float, ptr %52, align 4
  %54 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %55 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  store float %51, ptr %54, align 4
  store float %53, ptr %55, align 4
  %56 = load <2 x float>, ptr %13, align 4
  %57 = call float @cabsf(<2 x float> noundef %56) #5
  %58 = fcmp ogt float %57, 1.000000e+00
  br i1 %58, label %59, label %60

59:                                               ; preds = %46
  br label %64

60:                                               ; preds = %46
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %12, align 4, !tbaa !5
  %63 = add i32 %62, 1
  store i32 %63, ptr %12, align 4, !tbaa !5
  br label %41, !llvm.loop !13

64:                                               ; preds = %59, %41
  %65 = load float, ptr %8, align 4, !tbaa !9
  %66 = fpext float %65 to double
  %67 = load i32, ptr %12, align 4, !tbaa !5
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %66, i32 noundef %67)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %69 = call noalias ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
  store ptr %69, ptr %14, align 8, !tbaa !11
  %70 = load ptr, ptr %14, align 8, !tbaa !11
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.3, ptr noundef @.str.1) #5
  %72 = load ptr, ptr %14, align 8, !tbaa !11
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef @.str.4) #5
  %74 = load ptr, ptr %14, align 8, !tbaa !11
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str.5) #5
  %76 = load ptr, ptr %14, align 8, !tbaa !11
  %77 = load i32, ptr %9, align 4, !tbaa !5
  %78 = load float, ptr %8, align 4, !tbaa !9
  %79 = fpext float %78 to double
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.6, i32 noundef %77, double noundef %79) #5
  %81 = load ptr, ptr %14, align 8, !tbaa !11
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef @.str.7) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %109, %64
  %84 = load i32, ptr %12, align 4, !tbaa !5
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = mul i32 2, %85
  %87 = icmp ult i32 %84, %86
  br i1 %87, label %88, label %112

88:                                               ; preds = %83
  %89 = load ptr, ptr %14, align 8, !tbaa !11
  %90 = load i32, ptr %12, align 4, !tbaa !5
  %91 = add i32 %90, 1
  %92 = load i32, ptr %12, align 4, !tbaa !5
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds { float, float }, ptr %27, i64 %93
  %95 = getelementptr inbounds { float, float }, ptr %94, i32 0, i32 0
  %96 = load float, ptr %95, align 8
  %97 = getelementptr inbounds { float, float }, ptr %94, i32 0, i32 1
  %98 = load float, ptr %97, align 4
  %99 = fpext float %96 to double
  %100 = load i32, ptr %12, align 4, !tbaa !5
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds { float, float }, ptr %27, i64 %101
  %103 = getelementptr inbounds { float, float }, ptr %102, i32 0, i32 0
  %104 = load float, ptr %103, align 8
  %105 = getelementptr inbounds { float, float }, ptr %102, i32 0, i32 1
  %106 = load float, ptr %105, align 4
  %107 = fpext float %106 to double
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.8, i32 noundef %91, double noundef %99, double noundef %107) #5
  br label %109

109:                                              ; preds = %88
  %110 = load i32, ptr %12, align 4, !tbaa !5
  %111 = add i32 %110, 1
  store i32 %111, ptr %12, align 4, !tbaa !5
  br label %83, !llvm.loop !15

112:                                              ; preds = %83
  %113 = load ptr, ptr %14, align 8, !tbaa !11
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.9) #5
  %115 = load ptr, ptr %14, align 8, !tbaa !11
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str.10) #5
  %117 = load ptr, ptr %14, align 8, !tbaa !11
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.11) #5
  %119 = load ptr, ptr %14, align 8, !tbaa !11
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef @.str.12) #5
  %121 = load ptr, ptr %14, align 8, !tbaa !11
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef @.str.13) #5
  %123 = load ptr, ptr %14, align 8, !tbaa !11
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef @.str.14) #5
  %125 = load ptr, ptr %14, align 8, !tbaa !11
  %126 = call i32 @fclose(ptr noundef %125)
  %127 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef @.str.1)
  %128 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %129 = load ptr, ptr %10, align 8
  call void @llvm.stackrestore.p0(ptr %129)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %130 = load i32, ptr %1, align 4
  ret i32 %130
}

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

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

declare float @symstreamrcf_get_delay(ptr noundef) #2

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

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

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

declare i32 @symstreamrcf_destroy(ptr noundef) #2

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

declare i32 @printf(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

; 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"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = !{!"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}


; 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 [45 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call ptr @symstreamrcf_create_linear(i32 noundef 7, float noundef 0x3FCE065220000000, i32 noundef 8, float noundef 0x3FD3333340000000, i32 noundef 40) #4
  %2 = tail call float @symstreamrcf_get_delay(ptr noundef %1) #4
  %3 = alloca [200 x { float, float }], align 16
  %4 = call i32 @symstreamrcf_write_samples(ptr noundef %1, ptr noundef nonnull %3, i32 noundef 100) #4
  %5 = call i32 @symstreamrcf_set_gain(ptr noundef %1, float noundef 0.000000e+00) #4
  %6 = getelementptr inbounds i8, ptr %3, i64 800
  %7 = call i32 @symstreamrcf_write_samples(ptr noundef %1, ptr noundef nonnull %6, i32 noundef 100) #4
  %8 = call i32 @symstreamrcf_destroy(ptr noundef %1) #4
  br label %9

9:                                                ; preds = %0, %14
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %14 ]
  %10 = getelementptr inbounds { float, float }, ptr %3, i64 %indvars.iv
  %11 = load <2 x float>, ptr %10, align 8
  %12 = call float @cabsf(<2 x float> noundef %11) #4
  %13 = fcmp ogt float %12, 1.000000e+00
  br i1 %13, label %.split.loop.exit, label %14

14:                                               ; preds = %9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 200
  br i1 %exitcond.not, label %.split.loop.exit50, label %9, !llvm.loop !5

.split.loop.exit:                                 ; preds = %9
  %15 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.split.loop.exit50

.split.loop.exit50:                               ; preds = %14, %.split.loop.exit
  %.0.lcssa = phi i32 [ %15, %.split.loop.exit ], [ 200, %14 ]
  %16 = fpext float %2 to double
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %16, i32 noundef %.0.lcssa)
  %18 = call noalias ptr @fopen(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2)
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1) #4
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.4) #4
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.5) #4
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.6, i32 noundef 100, double noundef %16) #4
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.7) #4
  br label %24

24:                                               ; preds = %.split.loop.exit50, %24
  %indvars.iv46 = phi i64 [ 0, %.split.loop.exit50 ], [ %indvars.iv.next47, %24 ]
  %indvars.iv.next47 = add nuw nsw i64 %indvars.iv46, 1
  %25 = getelementptr inbounds { float, float }, ptr %3, i64 %indvars.iv46
  %26 = load float, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr %25, i64 4
  %28 = fpext float %26 to double
  %29 = load float, ptr %27, align 4
  %30 = fpext float %29 to double
  %31 = trunc nuw nsw i64 %indvars.iv.next47 to i32
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.8, i32 noundef %31, double noundef %28, double noundef %30) #4
  %exitcond49.not = icmp eq i64 %indvars.iv.next47, 200
  br i1 %exitcond49.not, label %33, label %24, !llvm.loop !7

33:                                               ; preds = %24
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.9) #4
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.10) #4
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.11) #4
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.12) #4
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.13) #4
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.14) #4
  %40 = call i32 @fclose(ptr noundef %18)
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef nonnull @.str.1)
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  ret i32 0
}

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

declare float @symstreamrcf_get_delay(ptr noundef) local_unnamed_addr #1

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

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

declare i32 @symstreamrcf_destroy(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare float @cabsf(<2 x 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 noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


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