; LLVM IR from sp-nitech/SPTK :: third_party/REAPER/wave (codec_riff)

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

%"class.sptk::reaper::UlawCodec" = type { i8 }
%"class.sptk::reaper::WavRiffCodec" = type { i32 }

@stderr = external global ptr, align 8
@.str.17 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [50 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i16 @_ZNK4sptk6reaper9UlawCodec11UlawToInt16Eh(ptr noundef nonnull align 1 dereferenceable(1), i8 noundef zeroext) #1 align 2

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4sptk6reaper12FileResource2fpEv(ptr noundef nonnull align 8 dereferenceable(72)) #1 align 2

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

declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk6reaper12WavRiffCodec13ReadAudioDataEiiPSt6vectorIsSaIsEEPNS0_12FileResourceE(ptr noundef nonnull align 4 dereferenceable(4) %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #4 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca %"class.sptk::reaper::UlawCodec", align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %17 = load ptr, ptr %6, align 8
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  %19 = load i32, ptr %8, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  call void @_ZNSt6vectorIsSaIsEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %20)
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  store i8 1, ptr %11, align 1, !tbaa !11
  %21 = getelementptr inbounds %"class.sptk::reaper::WavRiffCodec", ptr %17, i32 0, i32 0
  %22 = load i32, ptr %21, align 4, !tbaa !13
  switch i32 %22, label %113 [
    i32 0, label %23
    i32 2, label %55
  ]

23:                                               ; preds = %5
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  %25 = call noundef ptr @_ZN4sptk6reaper12FileResource2fpEv(ptr noundef nonnull align 8 dereferenceable(72) %24)
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = mul i64 %27, 2
  %29 = call i32 @fseek(ptr noundef %25, i64 noundef %28, i32 noundef 1)
  %30 = icmp eq i32 %29, 0
  %31 = zext i1 %30 to i32
  %32 = load i8, ptr %11, align 1, !tbaa !11, !range !16, !noundef !17
  %33 = trunc i8 %32 to i1
  %34 = zext i1 %33 to i32
  %35 = and i32 %34, %31
  %36 = icmp ne i32 %35, 0
  %37 = zext i1 %36 to i8
  store i8 %37, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorIsSaIsEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef 0) #7
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = call noundef ptr @_ZN4sptk6reaper12FileResource2fpEv(ptr noundef nonnull align 8 dereferenceable(72) %42)
  %44 = call i64 @fread(ptr noundef %39, i64 noundef 2, i64 noundef %41, ptr noundef %43)
  %45 = trunc i64 %44 to i32
  store i32 %45, ptr %12, align 4, !tbaa !9
  %46 = load i32, ptr %12, align 4, !tbaa !9
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = icmp ne i32 %46, %47
  br i1 %48, label %49, label %54

49:                                               ; preds = %23
  %50 = load ptr, ptr @stderr, align 8, !tbaa !5
  %51 = load i32, ptr %12, align 4, !tbaa !9
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.17, i32 noundef %51, i32 noundef %52) #7
  store i8 0, ptr %11, align 1, !tbaa !11
  br label %54

54:                                               ; preds = %49, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %118

55:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %56 = load i32, ptr %8, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = call noalias noundef nonnull ptr @_Znam(i64 noundef %57) #8
  store ptr %58, ptr %14, align 8, !tbaa !5
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = call noundef ptr @_ZN4sptk6reaper12FileResource2fpEv(ptr noundef nonnull align 8 dereferenceable(72) %59)
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = mul i64 %62, 1
  %64 = call i32 @fseek(ptr noundef %60, i64 noundef %63, i32 noundef 1)
  %65 = icmp eq i32 %64, 0
  %66 = zext i1 %65 to i32
  %67 = load i8, ptr %11, align 1, !tbaa !11, !range !16, !noundef !17
  %68 = trunc i8 %67 to i1
  %69 = zext i1 %68 to i32
  %70 = and i32 %69, %66
  %71 = icmp ne i32 %70, 0
  %72 = zext i1 %71 to i8
  store i8 %72, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = call noundef ptr @_ZN4sptk6reaper12FileResource2fpEv(ptr noundef nonnull align 8 dereferenceable(72) %76)
  %78 = call i64 @fread(ptr noundef %73, i64 noundef 1, i64 noundef %75, ptr noundef %77)
  %79 = trunc i64 %78 to i32
  store i32 %79, ptr %15, align 4, !tbaa !9
  %80 = load i32, ptr %15, align 4, !tbaa !9
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = icmp ne i32 %80, %81
  br i1 %82, label %83, label %88

83:                                               ; preds = %55
  %84 = load ptr, ptr @stderr, align 8, !tbaa !5
  %85 = load i32, ptr %15, align 4, !tbaa !9
  %86 = load i32, ptr %8, align 4, !tbaa !9
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.17, i32 noundef %85, i32 noundef %86) #7
  store i8 0, ptr %11, align 1, !tbaa !11
  br label %88

88:                                               ; preds = %83, %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %105, %88
  %90 = load i32, ptr %16, align 4, !tbaa !9
  %91 = load i32, ptr %8, align 4, !tbaa !9
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %108

94:                                               ; preds = %89
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = load i32, ptr %16, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i8, ptr %95, i64 %97
  %99 = load i8, ptr %98, align 1, !tbaa !18
  %100 = call noundef signext i16 @_ZNK4sptk6reaper9UlawCodec11UlawToInt16Eh(ptr noundef nonnull align 1 dereferenceable(1) %13, i8 noundef zeroext %99)
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = load i32, ptr %16, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorIsSaIsEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef %103) #7
  store i16 %100, ptr %104, align 2, !tbaa !19
  br label %105

105:                                              ; preds = %94
  %106 = load i32, ptr %16, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %16, align 4, !tbaa !9
  br label %89, !llvm.loop !21

108:                                              ; preds = %93
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = icmp eq ptr %109, null
  br i1 %110, label %112, label %111

111:                                              ; preds = %108
  call void @_ZdaPv(ptr noundef %109) #9
  br label %112

112:                                              ; preds = %111, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  br label %118

113:                                              ; preds = %5
  %114 = load ptr, ptr @stderr, align 8, !tbaa !5
  %115 = getelementptr inbounds %"class.sptk::reaper::WavRiffCodec", ptr %17, i32 0, i32 0
  %116 = load i32, ptr %115, align 4, !tbaa !13
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef @.str.18, i32 noundef %116) #7
  store i8 0, ptr %11, align 1, !tbaa !11
  br label %118

118:                                              ; preds = %113, %112, %54
  %119 = load i8, ptr %11, align 1, !tbaa !11, !range !16, !noundef !17
  %120 = trunc i8 %119 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  ret i1 %120
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIsSaIsEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorIsSaIsEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #5

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #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 = { 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 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 #5 = { nobuiltin allocsize(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 #6 = { nobuiltin 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 = { builtin allocsize(0) }
attributes #9 = { builtin 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN4sptk6reaper12WavRiffCodecE", !15, i64 0}
!15 = !{!"_ZTSN4sptk6reaper14WaveCodingTypeE", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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

%"class.sptk::reaper::UlawCodec" = type { i8 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.17 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [50 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i16 @_ZNK4sptk6reaper9UlawCodec11UlawToInt16Eh(ptr noundef nonnull align 1 dereferenceable(1), i8 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4sptk6reaper12FileResource2fpEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #1 align 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 @fseek(ptr nocapture noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk6reaper12WavRiffCodec13ReadAudioDataEiiPSt6vectorIsSaIsEEPNS0_12FileResourceE(ptr nocapture noundef nonnull readonly align 4 dereferenceable(4) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull %3, ptr noundef %4) local_unnamed_addr #3 align 2 {
  %6 = alloca %"class.sptk::reaper::UlawCodec", align 1
  %7 = sext i32 %2 to i64
  tail call void @_ZNSt6vectorIsSaIsEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %7)
  %8 = load i32, ptr %0, align 4, !tbaa !5
  switch i32 %8, label %40 [
    i32 0, label %9
    i32 2, label %22
  ]

9:                                                ; preds = %5
  %10 = tail call noundef ptr @_ZN4sptk6reaper12FileResource2fpEv(ptr noundef nonnull align 8 dereferenceable(72) %4)
  %11 = sext i32 %1 to i64
  %12 = shl nsw i64 %11, 1
  %13 = tail call i32 @fseek(ptr noundef %10, i64 noundef %12, i32 noundef 1)
  %14 = icmp eq i32 %13, 0
  %15 = tail call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorIsSaIsEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %16 = tail call noundef ptr @_ZN4sptk6reaper12FileResource2fpEv(ptr noundef nonnull align 8 dereferenceable(72) %4)
  %17 = tail call i64 @fread(ptr noundef nonnull %15, i64 noundef 2, i64 noundef %7, ptr noundef %16)
  %18 = trunc i64 %17 to i32
  %.not37 = icmp eq i32 %18, %2
  br i1 %.not37, label %43, label %19

19:                                               ; preds = %9
  %20 = load ptr, ptr @stderr, align 8, !tbaa !10
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.17, i32 noundef %18, i32 noundef %2) #7
  br label %43

22:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  %23 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %7) #8
  %24 = tail call noundef ptr @_ZN4sptk6reaper12FileResource2fpEv(ptr noundef nonnull align 8 dereferenceable(72) %4)
  %25 = sext i32 %1 to i64
  %26 = tail call i32 @fseek(ptr noundef %24, i64 noundef %25, i32 noundef 1)
  %27 = icmp eq i32 %26, 0
  %28 = tail call noundef ptr @_ZN4sptk6reaper12FileResource2fpEv(ptr noundef nonnull align 8 dereferenceable(72) %4)
  %29 = tail call i64 @fread(ptr noundef nonnull %23, i64 noundef 1, i64 noundef %7, ptr noundef %28)
  %30 = trunc i64 %29 to i32
  %.not = icmp eq i32 %30, %2
  br i1 %.not, label %34, label %31

31:                                               ; preds = %22
  %32 = load ptr, ptr @stderr, align 8, !tbaa !10
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.17, i32 noundef %30, i32 noundef %2) #7
  br label %34

34:                                               ; preds = %31, %22
  %.1 = phi i1 [ false, %31 ], [ %27, %22 ]
  %35 = icmp sgt i32 %2, 0
  br i1 %35, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %34
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %36 = getelementptr inbounds i8, ptr %23, i64 %indvars.iv
  %37 = load i8, ptr %36, align 1, !tbaa !12
  %38 = call noundef signext i16 @_ZNK4sptk6reaper9UlawCodec11UlawToInt16Eh(ptr noundef nonnull align 1 dereferenceable(1) %6, i8 noundef zeroext %37)
  %39 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorIsSaIsEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  store i16 %38, ptr %39, align 2, !tbaa !13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph, %34
  call void @_ZdaPv(ptr noundef nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %43

40:                                               ; preds = %5
  %41 = load ptr, ptr @stderr, align 8, !tbaa !10
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.18, i32 noundef %8) #7
  br label %43

43:                                               ; preds = %9, %19, %40, %._crit_edge
  %.2 = phi i1 [ false, %40 ], [ %.1, %._crit_edge ], [ false, %19 ], [ %14, %9 ]
  ret i1 %.2
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIsSaIsEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorIsSaIsEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #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 = { mustprogress 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 #4 = { nobuiltin allocsize(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 #5 = { nobuiltin 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 = { cold nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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, !7, i64 0}
!6 = !{!"_ZTSN4sptk6reaper12WavRiffCodecE", !7, i64 0}
!7 = !{!"_ZTSN4sptk6reaper14WaveCodingTypeE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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