; LLVM IR from kacperks/Fractal_Engine :: Engine/Thirdparty/cmake/Engine/Thirdparty/cmake/openal-soft/common/ringbuffer_749822eb (ZN10RingBuffer5writeEPKvm)

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

%struct.RingBuffer = type { %"struct.std::atomic", %"struct.std::atomic", i64, i64, i64, [8 x i8], %"struct.al::FlexArray" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i64 }
%"struct.al::FlexArray" = type { %"struct.al::FlexArrayStorage" }
%"struct.al::FlexArrayStorage" = type { i64, [8 x i8], %union.anon.2 }
%union.anon.2 = type { i8, [15 x i8] }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNSt13__atomic_baseImE5storeEmSt12memory_order(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN2al9FlexArrayINS_4byteELm16EE5beginEv(ptr noundef nonnull align 16 dereferenceable(32)) #2 align 2

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6copy_nIPKN2al4byteEmPS1_ET1_T_T0_S5_(ptr noundef, i64 noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i64 @_ZN10RingBuffer5writeEPKvm(ptr noundef nonnull align 16 dereferenceable(80) %0, ptr noundef %1, i64 noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  %16 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %17 = call noundef i64 @_ZNK10RingBuffer10writeSpaceEv(ptr noundef nonnull align 16 dereferenceable(80) %16) #6
  store i64 %17, ptr %8, align 8, !tbaa !9
  %18 = load i64, ptr %8, align 8, !tbaa !9
  %19 = icmp eq i64 %18, 0
  br i1 %19, label %20, label %21

20:                                               ; preds = %3
  store i64 0, ptr %4, align 8
  store i32 1, ptr %9, align 4
  br label %93

21:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %23 unwind label %95

23:                                               ; preds = %21
  %24 = load i64, ptr %22, align 8, !tbaa !9
  store i64 %24, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %25 = getelementptr inbounds %struct.RingBuffer, ptr %16, i32 0, i32 0
  %26 = call noundef i64 @_ZNKSt13__atomic_baseImE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef 0) #6
  %27 = getelementptr inbounds %struct.RingBuffer, ptr %16, i32 0, i32 3
  %28 = load i64, ptr %27, align 8, !tbaa !11
  %29 = and i64 %26, %28
  store i64 %29, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %30 = load i64, ptr %11, align 8, !tbaa !9
  %31 = load i64, ptr %10, align 8, !tbaa !9
  %32 = add i64 %30, %31
  store i64 %32, ptr %14, align 8, !tbaa !9
  %33 = load i64, ptr %14, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct.RingBuffer, ptr %16, i32 0, i32 3
  %35 = load i64, ptr %34, align 8, !tbaa !11
  %36 = add i64 %35, 1
  %37 = icmp ugt i64 %33, %36
  br i1 %37, label %38, label %48

38:                                               ; preds = %23
  %39 = getelementptr inbounds %struct.RingBuffer, ptr %16, i32 0, i32 3
  %40 = load i64, ptr %39, align 8, !tbaa !11
  %41 = add i64 %40, 1
  %42 = load i64, ptr %11, align 8, !tbaa !9
  %43 = sub i64 %41, %42
  store i64 %43, ptr %12, align 8, !tbaa !9
  %44 = load i64, ptr %14, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.RingBuffer, ptr %16, i32 0, i32 3
  %46 = load i64, ptr %45, align 8, !tbaa !11
  %47 = and i64 %44, %46
  store i64 %47, ptr %13, align 8, !tbaa !9
  br label %50

48:                                               ; preds = %23
  %49 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %49, ptr %12, align 8, !tbaa !9
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %48, %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %51, ptr %15, align 8, !tbaa !5
  %52 = load ptr, ptr %15, align 8, !tbaa !5
  %53 = load i64, ptr %12, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.RingBuffer, ptr %16, i32 0, i32 4
  %55 = load i64, ptr %54, align 16, !tbaa !17
  %56 = mul i64 %53, %55
  %57 = getelementptr inbounds %struct.RingBuffer, ptr %16, i32 0, i32 6
  %58 = call noundef ptr @_ZN2al9FlexArrayINS_4byteELm16EE5beginEv(ptr noundef nonnull align 16 dereferenceable(32) %57) #6
  %59 = load i64, ptr %11, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.RingBuffer, ptr %16, i32 0, i32 4
  %61 = load i64, ptr %60, align 16, !tbaa !17
  %62 = mul i64 %59, %61
  %63 = getelementptr inbounds i8, ptr %58, i64 %62
  %64 = invoke noundef ptr @_ZSt6copy_nIPKN2al4byteEmPS1_ET1_T_T0_S5_(ptr noundef %52, i64 noundef %56, ptr noundef %63)
          to label %65 unwind label %95

65:                                               ; preds = %50
  %66 = load i64, ptr %12, align 8, !tbaa !9
  %67 = load i64, ptr %11, align 8, !tbaa !9
  %68 = add i64 %67, %66
  store i64 %68, ptr %11, align 8, !tbaa !9
  %69 = load i64, ptr %13, align 8, !tbaa !9
  %70 = icmp ugt i64 %69, 0
  br i1 %70, label %71, label %89

71:                                               ; preds = %65
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = load i64, ptr %12, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.RingBuffer, ptr %16, i32 0, i32 4
  %75 = load i64, ptr %74, align 16, !tbaa !17
  %76 = mul i64 %73, %75
  %77 = getelementptr inbounds i8, ptr %72, i64 %76
  %78 = load i64, ptr %13, align 8, !tbaa !9
  %79 = getelementptr inbounds %struct.RingBuffer, ptr %16, i32 0, i32 4
  %80 = load i64, ptr %79, align 16, !tbaa !17
  %81 = mul i64 %78, %80
  %82 = getelementptr inbounds %struct.RingBuffer, ptr %16, i32 0, i32 6
  %83 = call noundef ptr @_ZN2al9FlexArrayINS_4byteELm16EE5beginEv(ptr noundef nonnull align 16 dereferenceable(32) %82) #6
  %84 = invoke noundef ptr @_ZSt6copy_nIPKN2al4byteEmPS1_ET1_T_T0_S5_(ptr noundef %77, i64 noundef %81, ptr noundef %83)
          to label %85 unwind label %95

85:                                               ; preds = %71
  %86 = load i64, ptr %13, align 8, !tbaa !9
  %87 = load i64, ptr %11, align 8, !tbaa !9
  %88 = add i64 %87, %86
  store i64 %88, ptr %11, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %85, %65
  %90 = getelementptr inbounds %struct.RingBuffer, ptr %16, i32 0, i32 0
  %91 = load i64, ptr %11, align 8, !tbaa !9
  call void @_ZNSt13__atomic_baseImE5storeEmSt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %90, i64 noundef %91, i32 noundef 3) #6
  %92 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %92, ptr %4, align 8
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %93

93:                                               ; preds = %89, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %94 = load i64, ptr %4, align 8
  ret i64 %94

95:                                               ; preds = %71, %50, %21
  %96 = landingpad { ptr, i32 }
          catch ptr null
  %97 = extractvalue { ptr, i32 } %96, 0
  call void @__clang_call_terminate(ptr %97) #7
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK10RingBuffer10writeSpaceEv(ptr noundef nonnull align 16 dereferenceable(80)) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline 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 = { 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 #3 = { noinline noreturn nounwind uwtable "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 = { inlinehint 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 #5 = { inlinehint 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 24}
!12 = !{!"_ZTS10RingBuffer", !13, i64 0, !13, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !15, i64 48}
!13 = !{!"_ZTSSt6atomicImE", !14, i64 0}
!14 = !{!"_ZTSSt13__atomic_baseImE", !10, i64 0}
!15 = !{!"_ZTSN2al9FlexArrayINS_4byteELm16EEE", !16, i64 0}
!16 = !{!"_ZTSN2al16FlexArrayStorageINS_4byteELm16ELb1EEE", !10, i64 0, !7, i64 16}
!17 = !{!12, !10, i64 32}


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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN2al9FlexArrayINS_4byteELm16EE5beginEv(ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6copy_nIPKN2al4byteEmPS1_ET1_T_T0_S5_(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i64 @_ZN10RingBuffer5writeEPKvm(ptr noundef nonnull align 16 dereferenceable(80) %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  store i64 %2, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %6 = tail call noundef i64 @_ZNK10RingBuffer10writeSpaceEv(ptr noundef nonnull align 16 dereferenceable(80) %0) #6
  store i64 %6, ptr %5, align 8, !tbaa !5
  %7 = icmp eq i64 %6, 0
  br i1 %7, label %41, label %8

8:                                                ; preds = %3
  %9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %11 = call noundef i64 @_ZNKSt13__atomic_baseImE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef 0) #6
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  %13 = load i64, ptr %12, align 8, !tbaa !9
  %14 = and i64 %13, %11
  %15 = add i64 %14, %10
  %16 = add i64 %13, 1
  %17 = icmp ugt i64 %15, %16
  %18 = sub i64 %16, %14
  %19 = and i64 %15, %13
  %.022 = select i1 %17, i64 %18, i64 %10
  %.021 = select i1 %17, i64 %19, i64 0
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  %21 = load i64, ptr %20, align 16, !tbaa !15
  %22 = mul i64 %.022, %21
  %23 = getelementptr inbounds i8, ptr %0, i64 48
  %24 = call noundef ptr @_ZN2al9FlexArrayINS_4byteELm16EE5beginEv(ptr noundef nonnull align 16 dereferenceable(32) %23) #6
  %25 = load i64, ptr %20, align 16, !tbaa !15
  %26 = mul i64 %25, %14
  %27 = getelementptr inbounds i8, ptr %24, i64 %26
  %28 = invoke noundef ptr @_ZSt6copy_nIPKN2al4byteEmPS1_ET1_T_T0_S5_(ptr noundef %1, i64 noundef %22, ptr noundef %27)
          to label %29 unwind label %42

29:                                               ; preds = %8
  %30 = add i64 %.022, %14
  %.not = icmp eq i64 %.021, 0
  br i1 %.not, label %40, label %31

31:                                               ; preds = %29
  %32 = load i64, ptr %20, align 16, !tbaa !15
  %33 = mul i64 %32, %.022
  %34 = getelementptr inbounds i8, ptr %1, i64 %33
  %35 = mul i64 %32, %.021
  %36 = call noundef ptr @_ZN2al9FlexArrayINS_4byteELm16EE5beginEv(ptr noundef nonnull align 16 dereferenceable(32) %23) #6
  %37 = invoke noundef ptr @_ZSt6copy_nIPKN2al4byteEmPS1_ET1_T_T0_S5_(ptr noundef %34, i64 noundef %35, ptr noundef %36)
          to label %38 unwind label %42

38:                                               ; preds = %31
  %39 = add i64 %30, %.021
  br label %40

40:                                               ; preds = %38, %29
  %.023 = phi i64 [ %39, %38 ], [ %30, %29 ]
  call void @_ZNSt13__atomic_baseImE5storeEmSt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %0, i64 noundef %.023, i32 noundef 3) #6
  br label %41

41:                                               ; preds = %3, %40
  %.0 = phi i64 [ %10, %40 ], [ 0, %3 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  ret i64 %.0

42:                                               ; preds = %31, %8
  %43 = landingpad { ptr, i32 }
          catch ptr null
  %44 = extractvalue { ptr, i32 } %43, 0
  call void @__clang_call_terminate(ptr %44) #7
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK10RingBuffer10writeSpaceEv(ptr noundef nonnull align 16 dereferenceable(80)) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline 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 = { 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 #3 = { noinline noreturn nounwind uwtable "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 = { inlinehint 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 #5 = { inlinehint 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 #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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 24}
!10 = !{!"_ZTS10RingBuffer", !11, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 48}
!11 = !{!"_ZTSSt6atomicImE", !12, i64 0}
!12 = !{!"_ZTSSt13__atomic_baseImE", !6, i64 0}
!13 = !{!"_ZTSN2al9FlexArrayINS_4byteELm16EEE", !14, i64 0}
!14 = !{!"_ZTSN2al16FlexArrayStorageINS_4byteELm16ELb1EEE", !6, i64 0, !7, i64 16}
!15 = !{!10, !6, i64 32}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass