; LLVM IR from jgaeddert/liquid-dsp :: examples (spgramf_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 [18 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 [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.19 = 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 i32, align 4
  %4 = alloca float, align 4
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1024, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 1000000, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store float -6.000000e+01, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %13 = load float, ptr %4, align 4, !tbaa !9
  %14 = fdiv float %13, 2.000000e+01
  %15 = call float @powf(float noundef 1.000000e+01, float noundef %14) #6
  store float %15, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = call ptr @spgramf_create_default(i32 noundef %16)
  store ptr %17, ptr %7, align 8, !tbaa !11
  %18 = load ptr, ptr %7, align 8, !tbaa !11
  %19 = call i32 @spgramf_print(ptr noundef %18)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %20 = call ptr @iirfilt_rrrf_create_prototype(i32 noundef 0, i32 noundef 2, i32 noundef 0, i32 noundef 9, float noundef 0x3FC5C28F60000000, float noundef 0x3FC99999A0000000, float noundef 0x3FB99999A0000000, float noundef 6.000000e+01)
  store ptr %20, ptr %8, align 8, !tbaa !11
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %36, %0
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = icmp ult i32 %22, %23
  br i1 %24, label %25, label %39

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store float 0.000000e+00, ptr %9, align 4, !tbaa !9
  %26 = load ptr, ptr %8, align 8, !tbaa !11
  %27 = call float (...) @randnf()
  %28 = call i32 @iirfilt_rrrf_execute(ptr noundef %26, float noundef %27, ptr noundef %9)
  %29 = load float, ptr %6, align 4, !tbaa !9
  %30 = call float (...) @randnf()
  %31 = load float, ptr %9, align 4, !tbaa !9
  %32 = call float @llvm.fmuladd.f32(float %29, float %30, float %31)
  store float %32, ptr %9, align 4, !tbaa !9
  %33 = load ptr, ptr %7, align 8, !tbaa !11
  %34 = load float, ptr %9, align 4, !tbaa !9
  %35 = call i32 @spgramf_push(ptr noundef %33, float noundef %34)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %36

36:                                               ; preds = %25
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = add i32 %37, 1
  store i32 %38, ptr %5, align 4, !tbaa !5
  br label %21, !llvm.loop !13

39:                                               ; preds = %21
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = zext i32 %40 to i64
  %42 = call ptr @llvm.stacksave.p0()
  store ptr %42, ptr %10, align 8
  %43 = alloca float, i64 %41, align 16
  store i64 %41, ptr %11, align 8
  %44 = load ptr, ptr %7, align 8, !tbaa !11
  %45 = call i32 @spgramf_get_psd(ptr noundef %44, ptr noundef %43)
  %46 = load ptr, ptr %8, align 8, !tbaa !11
  %47 = call i32 @iirfilt_rrrf_destroy(ptr noundef %46)
  %48 = load ptr, ptr %7, align 8, !tbaa !11
  %49 = call i32 @spgramf_destroy(ptr noundef %48)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %50 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %50, ptr %12, align 8, !tbaa !11
  %51 = load ptr, ptr %12, align 8, !tbaa !11
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str.2, ptr noundef @.str) #6
  %53 = load ptr, ptr %12, align 8, !tbaa !11
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.3) #6
  %55 = load ptr, ptr %12, align 8, !tbaa !11
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.4) #6
  %57 = load ptr, ptr %12, align 8, !tbaa !11
  %58 = load i32, ptr %2, align 4, !tbaa !5
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.5, i32 noundef %58) #6
  %60 = load ptr, ptr %12, align 8, !tbaa !11
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef @.str.6) #6
  %62 = load ptr, ptr %12, align 8, !tbaa !11
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.7) #6
  %64 = load ptr, ptr %12, align 8, !tbaa !11
  %65 = load float, ptr %4, align 4, !tbaa !9
  %66 = fpext float %65 to double
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.8, double noundef %66) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %82, %39
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %71 = icmp ult i32 %69, %70
  br i1 %71, label %72, label %85

72:                                               ; preds = %68
  %73 = load ptr, ptr %12, align 8, !tbaa !11
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = add i32 %74, 1
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds float, ptr %43, i64 %77
  %79 = load float, ptr %78, align 4, !tbaa !9
  %80 = fpext float %79 to double
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.9, i32 noundef %75, double noundef %80) #6
  br label %82

82:                                               ; preds = %72
  %83 = load i32, ptr %5, align 4, !tbaa !5
  %84 = add i32 %83, 1
  store i32 %84, ptr %5, align 4, !tbaa !5
  br label %68, !llvm.loop !15

85:                                               ; preds = %68
  %86 = load ptr, ptr %12, align 8, !tbaa !11
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.10) #6
  %88 = load ptr, ptr %12, align 8, !tbaa !11
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.11) #6
  %90 = load ptr, ptr %12, align 8, !tbaa !11
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef @.str.12) #6
  %92 = load ptr, ptr %12, align 8, !tbaa !11
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef @.str.13) #6
  %94 = load ptr, ptr %12, align 8, !tbaa !11
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.14) #6
  %96 = load ptr, ptr %12, align 8, !tbaa !11
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.15) #6
  %98 = load ptr, ptr %12, align 8, !tbaa !11
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.16) #6
  %100 = load ptr, ptr %12, align 8, !tbaa !11
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.17) #6
  %102 = load ptr, ptr %12, align 8, !tbaa !11
  %103 = call i32 @fclose(ptr noundef %102)
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef @.str)
  %105 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %106 = load ptr, ptr %10, align 8
  call void @llvm.stackrestore.p0(ptr %106)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %107 = load i32, ptr %1, align 4
  ret i32 %107
}

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

; Function Attrs: nounwind
declare float @powf(float noundef, float noundef) #2

declare ptr @spgramf_create_default(i32 noundef) #3

declare i32 @spgramf_print(ptr noundef) #3

declare ptr @iirfilt_rrrf_create_prototype(i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef) #3

declare i32 @iirfilt_rrrf_execute(ptr noundef, float noundef, ptr noundef) #3

declare float @randnf(...) #3

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

declare i32 @spgramf_push(ptr noundef, float 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 ptr @llvm.stacksave.p0() #5

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

declare i32 @iirfilt_rrrf_destroy(ptr noundef) #3

declare i32 @spgramf_destroy(ptr noundef) #3

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

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

declare i32 @fclose(ptr noundef) #3

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind willreturn }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!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 [18 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 [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca float, align 4
  %2 = tail call ptr @spgramf_create_default(i32 noundef 1024) #5
  %3 = tail call i32 @spgramf_print(ptr noundef %2) #5
  %4 = tail call ptr @iirfilt_rrrf_create_prototype(i32 noundef 0, i32 noundef 2, i32 noundef 0, i32 noundef 9, float noundef 0x3FC5C28F60000000, float noundef 0x3FC99999A0000000, float noundef 0x3FB99999A0000000, float noundef 6.000000e+01) #5
  br label %5

5:                                                ; preds = %0, %5
  %.038 = phi i32 [ 0, %0 ], [ %12, %5 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  store float 0.000000e+00, ptr %1, align 4, !tbaa !5
  %6 = call float (...) @randnf() #5
  %7 = call i32 @iirfilt_rrrf_execute(ptr noundef %4, float noundef %6, ptr noundef nonnull %1) #5
  %8 = call float (...) @randnf() #5
  %9 = load float, ptr %1, align 4, !tbaa !5
  %10 = call float @llvm.fmuladd.f32(float %8, float 0x3F50624DE0000000, float %9)
  store float %10, ptr %1, align 4, !tbaa !5
  %11 = call i32 @spgramf_push(ptr noundef %2, float noundef %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  %12 = add nuw nsw i32 %.038, 1
  %exitcond.not = icmp eq i32 %12, 1000000
  br i1 %exitcond.not, label %13, label %5, !llvm.loop !9

13:                                               ; preds = %5
  %14 = alloca [1024 x float], align 16
  %15 = call i32 @spgramf_get_psd(ptr noundef %2, ptr noundef nonnull %14) #5
  %16 = call i32 @iirfilt_rrrf_destroy(ptr noundef %4) #5
  %17 = call i32 @spgramf_destroy(ptr noundef %2) #5
  %18 = call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str) #5
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.3) #5
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.4) #5
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.5, i32 noundef 1024) #5
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.6) #5
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.7) #5
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.8, double noundef -6.000000e+01) #5
  br label %26

26:                                               ; preds = %13, %26
  %indvars.iv = phi i64 [ 0, %13 ], [ %indvars.iv.next, %26 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %27 = getelementptr inbounds float, ptr %14, i64 %indvars.iv
  %28 = load float, ptr %27, align 4, !tbaa !5
  %29 = fpext float %28 to double
  %30 = trunc nuw nsw i64 %indvars.iv.next to i32
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.9, i32 noundef %30, double noundef %29) #5
  %exitcond41.not = icmp eq i64 %indvars.iv.next, 1024
  br i1 %exitcond41.not, label %32, label %26, !llvm.loop !11

32:                                               ; preds = %26
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.10) #5
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.11) #5
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.12) #5
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.13) #5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.14) #5
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.15) #5
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.16) #5
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.17) #5
  %41 = call i32 @fclose(ptr noundef %18)
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, ptr noundef nonnull @.str)
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  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 ptr @spgramf_create_default(i32 noundef) local_unnamed_addr #2

declare i32 @spgramf_print(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

declare i32 @spgramf_get_psd(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @iirfilt_rrrf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @spgramf_destroy(ptr noundef) local_unnamed_addr #2

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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