; LLVM IR from yinqiwen/ardb :: src/common/channel/channel.ll (ZN4ardb7Channel7DoFlushEv)

; 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.ardb::Channel" = type { %"class.ardb::Runnable", %"struct.ardb::ChannelOptions", i8, i8, i32, %"class.ardb::ChannelPipeline", ptr, i32, i32, %"class.ardb::Buffer", %"class.ardb::Buffer", i32, ptr, ptr, ptr, ptr, i8, i8, i8, ptr, ptr, ptr }
%"class.ardb::Runnable" = type { ptr }
%"struct.ardb::ChannelOptions" = type <{ i32, i32, i8, [3 x i8], i32, i8, [3 x i8], i32, i32, i32, i8, i8, [2 x i8] }>
%"class.ardb::ChannelPipeline" = type { ptr, ptr, ptr, %"class.btree::btree_map" }
%"class.btree::btree_map" = type { %"class.btree::btree_map_container" }
%"class.btree::btree_map_container" = type { %"class.btree::btree_unique_container" }
%"class.btree::btree_unique_container" = type { %"class.btree::btree_container" }
%"class.btree::btree_container" = type { %"class.btree::btree" }
%"class.btree::btree" = type { %"struct.btree::btree<btree::btree_map_params<std::__cxx11::basic_string<char>, ardb::ChannelHandlerContext *, std::less<std::__cxx11::basic_string<char>>, std::allocator<std::pair<const std::__cxx11::basic_string<char>, ardb::ChannelHandlerContext *>>, 256>>::empty_base_handle" }
%"struct.btree::btree<btree::btree_map_params<std::__cxx11::basic_string<char>, ardb::ChannelHandlerContext *, std::less<std::__cxx11::basic_string<char>>, std::allocator<std::pair<const std::__cxx11::basic_string<char>, ardb::ChannelHandlerContext *>>, 256>>::empty_base_handle" = type { ptr }
%"class.ardb::Buffer" = type <{ ptr, i64, i64, i64, i8, [7 x i8] }>

; 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: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK4ardb6Buffer13ReadableBytesEv(ptr noundef nonnull align 8 dereferenceable(33)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4ardb6Buffer8ReadableEv(ptr noundef nonnull align 8 dereferenceable(33)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4ardb7Channel13HandleIOErrorEi(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) #3 align 2

declare noundef i32 @_ZN4ardb6Buffer7WriteFDEiRi(ptr noundef nonnull align 8 dereferenceable(33), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4ardb7Channel7DoFlushEv(ptr noundef nonnull align 8 dereferenceable(256) %0) unnamed_addr #3 align 2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8
  %9 = getelementptr inbounds %"class.ardb::Channel", ptr %8, i32 0, i32 10
  %10 = call noundef zeroext i1 @_ZNK4ardb6Buffer8ReadableEv(ptr noundef nonnull align 8 dereferenceable(33) %9)
  br i1 %10, label %11, label %71

11:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %12 = getelementptr inbounds %"class.ardb::Channel", ptr %8, i32 0, i32 10
  %13 = call noundef i64 @_ZNK4ardb6Buffer13ReadableBytesEv(ptr noundef nonnull align 8 dereferenceable(33) %12)
  %14 = trunc i64 %13 to i32
  store i32 %14, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %15 = getelementptr inbounds %"class.ardb::Channel", ptr %8, i32 0, i32 10
  %16 = load ptr, ptr %8, align 8, !tbaa !11
  %17 = getelementptr inbounds ptr, ptr %16, i64 15
  %18 = load ptr, ptr %17, align 8
  %19 = call noundef i32 %18(ptr noundef nonnull align 8 dereferenceable(256) %8)
  %20 = call noundef i32 @_ZN4ardb6Buffer7WriteFDEiRi(ptr noundef nonnull align 8 dereferenceable(33) %15, i32 noundef %19, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i32 %20, ptr %6, align 4, !tbaa !9
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = icmp slt i32 %21, 0
  br i1 %22, label %23, label %37

23:                                               ; preds = %11
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = icmp eq i32 %24, 4
  br i1 %25, label %32, label %26

26:                                               ; preds = %23
  %27 = load i32, ptr %5, align 4, !tbaa !9
  %28 = icmp eq i32 %27, 11
  br i1 %28, label %32, label %29

29:                                               ; preds = %26
  %30 = load i32, ptr %5, align 4, !tbaa !9
  %31 = icmp eq i32 %30, 11
  br i1 %31, label %32, label %33

32:                                               ; preds = %29, %26, %23
  store i1 true, ptr %2, align 1
  store i32 1, ptr %7, align 4
  br label %70

33:                                               ; preds = %29
  %34 = load i32, ptr %5, align 4, !tbaa !9
  %35 = call noundef i32 @_ZN4ardb7Channel13HandleIOErrorEi(ptr noundef nonnull align 8 dereferenceable(256) %8, i32 noundef %34)
  %36 = icmp ne i32 %35, 0
  store i1 %36, ptr %2, align 1
  store i32 1, ptr %7, align 4
  br label %70

37:                                               ; preds = %11
  %38 = load i32, ptr %6, align 4, !tbaa !9
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %46

40:                                               ; preds = %37
  %41 = load ptr, ptr %8, align 8, !tbaa !11
  %42 = getelementptr inbounds ptr, ptr %41, i64 14
  %43 = load ptr, ptr %42, align 8
  %44 = call noundef i32 %43(ptr noundef nonnull align 8 dereferenceable(256) %8, i32 noundef 16)
  %45 = icmp ne i32 %44, 0
  store i1 %45, ptr %2, align 1
  store i32 1, ptr %7, align 4
  br label %70

46:                                               ; preds = %37
  br label %47

47:                                               ; preds = %46
  %48 = getelementptr inbounds %"class.ardb::Channel", ptr %8, i32 0, i32 10
  call void @_ZN4ardb6Buffer18DiscardReadedBytesEv(ptr noundef nonnull align 8 dereferenceable(33) %48)
  %49 = getelementptr inbounds %"class.ardb::Channel", ptr %8, i32 0, i32 10
  %50 = getelementptr inbounds %"class.ardb::Channel", ptr %8, i32 0, i32 1
  %51 = getelementptr inbounds %"struct.ardb::ChannelOptions", ptr %50, i32 0, i32 7
  %52 = load i32, ptr %51, align 4, !tbaa !13
  %53 = icmp ugt i32 %52, 0
  br i1 %53, label %54, label %59

54:                                               ; preds = %47
  %55 = getelementptr inbounds %"class.ardb::Channel", ptr %8, i32 0, i32 1
  %56 = getelementptr inbounds %"struct.ardb::ChannelOptions", ptr %55, i32 0, i32 7
  %57 = load i32, ptr %56, align 4, !tbaa !13
  %58 = mul i32 %57, 2
  br label %60

59:                                               ; preds = %47
  br label %60

60:                                               ; preds = %59, %54
  %61 = phi i32 [ %58, %54 ], [ 8192, %59 ]
  %62 = zext i32 %61 to i64
  %63 = call noundef i64 @_ZN4ardb6Buffer7CompactEm(ptr noundef nonnull align 8 dereferenceable(33) %49, i64 noundef %62)
  %64 = load i32, ptr %6, align 4, !tbaa !9
  %65 = load i32, ptr %4, align 4, !tbaa !9
  %66 = icmp ult i32 %64, %65
  br i1 %66, label %67, label %68

67:                                               ; preds = %60
  br label %69

68:                                               ; preds = %60
  br label %69

69:                                               ; preds = %68, %67
  store i1 true, ptr %2, align 1
  store i32 1, ptr %7, align 4
  br label %70

70:                                               ; preds = %69, %40, %33, %32
  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
  br label %86

71:                                               ; preds = %1
  %72 = getelementptr inbounds %"class.ardb::Channel", ptr %8, i32 0, i32 10
  %73 = getelementptr inbounds %"class.ardb::Channel", ptr %8, i32 0, i32 1
  %74 = getelementptr inbounds %"struct.ardb::ChannelOptions", ptr %73, i32 0, i32 7
  %75 = load i32, ptr %74, align 4, !tbaa !13
  %76 = icmp ugt i32 %75, 0
  br i1 %76, label %77, label %81

77:                                               ; preds = %71
  %78 = getelementptr inbounds %"class.ardb::Channel", ptr %8, i32 0, i32 1
  %79 = getelementptr inbounds %"struct.ardb::ChannelOptions", ptr %78, i32 0, i32 7
  %80 = load i32, ptr %79, align 4, !tbaa !13
  br label %82

81:                                               ; preds = %71
  br label %82

82:                                               ; preds = %81, %77
  %83 = phi i32 [ %80, %77 ], [ 8192, %81 ]
  %84 = zext i32 %83 to i64
  %85 = call noundef i64 @_ZN4ardb6Buffer7CompactEm(ptr noundef nonnull align 8 dereferenceable(33) %72, i64 noundef %84)
  store i1 true, ptr %2, align 1
  br label %86

86:                                               ; preds = %82, %70
  %87 = load i1, ptr %2, align 1
  ret i1 %87
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4ardb6Buffer18DiscardReadedBytesEv(ptr noundef nonnull align 8 dereferenceable(33)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN4ardb6Buffer7CompactEm(ptr noundef nonnull align 8 dereferenceable(33), i64 noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { "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 = !{!"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 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 28}
!14 = !{!"_ZTSN4ardb7ChannelE", !15, i64 0, !16, i64 8, !17, i64 44, !17, i64 45, !10, i64 48, !18, i64 56, !6, i64 88, !10, i64 96, !10, i64 100, !25, i64 104, !25, i64 144, !10, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !17, i64 224, !17, i64 225, !17, i64 226, !6, i64 232, !6, i64 240, !6, i64 248}
!15 = !{!"_ZTSN4ardb8RunnableE"}
!16 = !{!"_ZTSN4ardb14ChannelOptionsE", !10, i64 0, !10, i64 4, !17, i64 8, !10, i64 12, !17, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !17, i64 32, !17, i64 33}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSN4ardb15ChannelPipelineE", !6, i64 0, !6, i64 8, !6, i64 16, !19, i64 24}
!19 = !{!"_ZTSN5btree9btree_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS6_ESaISt4pairIKS6_S9_EELi256EEE", !20, i64 0}
!20 = !{!"_ZTSN5btree19btree_map_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !21, i64 0}
!21 = !{!"_ZTSN5btree22btree_unique_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !22, i64 0}
!22 = !{!"_ZTSN5btree15btree_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !23, i64 0}
!23 = !{!"_ZTSN5btree5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS7_ESaISt4pairIKS7_SA_EELi256EEEEE", !24, i64 0}
!24 = !{!"_ZTSN5btree5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS7_ESaISt4pairIKS7_SA_EELi256EEEE17empty_base_handleIS6_PNS_10btree_nodeISH_EEEE", !6, i64 0}
!25 = !{!"_ZTSN4ardb6BufferE", !6, i64 0, !26, i64 8, !26, i64 16, !26, i64 24, !17, i64 32}
!26 = !{!"long", !7, i64 0}


; 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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK4ardb6Buffer13ReadableBytesEv(ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4ardb6Buffer8ReadableEv(ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4ardb7Channel13HandleIOErrorEi(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) local_unnamed_addr #3 align 2

declare noundef i32 @_ZN4ardb6Buffer7WriteFDEiRi(ptr noundef nonnull align 8 dereferenceable(33), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4ardb7Channel7DoFlushEv(ptr noundef nonnull align 8 dereferenceable(256) %0) unnamed_addr #3 align 2 {
  %2 = alloca i32, align 4
  %3 = getelementptr inbounds i8, ptr %0, i64 144
  %4 = tail call noundef zeroext i1 @_ZNK4ardb6Buffer8ReadableEv(ptr noundef nonnull align 8 dereferenceable(33) %3)
  br i1 %4, label %5, label %33

5:                                                ; preds = %1
  %6 = tail call noundef i64 @_ZNK4ardb6Buffer13ReadableBytesEv(ptr noundef nonnull align 8 dereferenceable(33) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 120
  %9 = load ptr, ptr %8, align 8
  %10 = tail call noundef i32 %9(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %11 = call noundef i32 @_ZN4ardb6Buffer7WriteFDEiRi(ptr noundef nonnull align 8 dereferenceable(33) %3, i32 noundef %10, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %12 = icmp slt i32 %11, 0
  br i1 %12, label %13, label %18

13:                                               ; preds = %5
  %14 = load i32, ptr %2, align 4
  switch i32 %14, label %15 [
    i32 11, label %32
    i32 4, label %32
  ]

15:                                               ; preds = %13
  %16 = call noundef i32 @_ZN4ardb7Channel13HandleIOErrorEi(ptr noundef nonnull align 8 dereferenceable(256) %0, i32 noundef %14)
  %17 = icmp ne i32 %16, 0
  br label %32

18:                                               ; preds = %5
  %19 = icmp eq i32 %11, 0
  br i1 %19, label %20, label %26

20:                                               ; preds = %18
  %21 = load ptr, ptr %0, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 112
  %23 = load ptr, ptr %22, align 8
  %24 = call noundef i32 %23(ptr noundef nonnull align 8 dereferenceable(256) %0, i32 noundef 16)
  %25 = icmp ne i32 %24, 0
  br label %32

26:                                               ; preds = %18
  call void @_ZN4ardb6Buffer18DiscardReadedBytesEv(ptr noundef nonnull align 8 dereferenceable(33) %3)
  %27 = getelementptr inbounds i8, ptr %0, i64 28
  %28 = load i32, ptr %27, align 4, !tbaa !8
  %.not10 = icmp eq i32 %28, 0
  %29 = shl i32 %28, 1
  %narrow11 = select i1 %.not10, i32 8192, i32 %29
  %30 = zext i32 %narrow11 to i64
  %31 = call noundef i64 @_ZN4ardb6Buffer7CompactEm(ptr noundef nonnull align 8 dereferenceable(33) %3, i64 noundef %30)
  br label %32

32:                                               ; preds = %13, %13, %26, %20, %15
  %.0 = phi i1 [ %17, %15 ], [ %25, %20 ], [ true, %26 ], [ true, %13 ], [ true, %13 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  br label %37

33:                                               ; preds = %1
  %34 = getelementptr inbounds i8, ptr %0, i64 28
  %35 = load i32, ptr %34, align 4, !tbaa !8
  %.not = icmp eq i32 %35, 0
  %narrow = select i1 %.not, i32 8192, i32 %35
  %spec.select = zext i32 %narrow to i64
  %36 = tail call noundef i64 @_ZN4ardb6Buffer7CompactEm(ptr noundef nonnull align 8 dereferenceable(33) %3, i64 noundef %spec.select)
  br label %37

37:                                               ; preds = %33, %32
  %.1 = phi i1 [ %.0, %32 ], [ true, %33 ]
  ret i1 %.1
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4ardb6Buffer18DiscardReadedBytesEv(ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN4ardb6Buffer7CompactEm(ptr noundef nonnull align 8 dereferenceable(33), i64 noundef) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { "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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !12, i64 28}
!9 = !{!"_ZTSN4ardb7ChannelE", !10, i64 0, !11, i64 8, !14, i64 44, !14, i64 45, !12, i64 48, !15, i64 56, !16, i64 88, !12, i64 96, !12, i64 100, !23, i64 104, !23, i64 144, !12, i64 184, !16, i64 192, !16, i64 200, !16, i64 208, !16, i64 216, !14, i64 224, !14, i64 225, !14, i64 226, !16, i64 232, !16, i64 240, !16, i64 248}
!10 = !{!"_ZTSN4ardb8RunnableE"}
!11 = !{!"_ZTSN4ardb14ChannelOptionsE", !12, i64 0, !12, i64 4, !14, i64 8, !12, i64 12, !14, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !14, i64 32, !14, i64 33}
!12 = !{!"int", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"bool", !13, i64 0}
!15 = !{!"_ZTSN4ardb15ChannelPipelineE", !16, i64 0, !16, i64 8, !16, i64 16, !17, i64 24}
!16 = !{!"any pointer", !13, i64 0}
!17 = !{!"_ZTSN5btree9btree_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS6_ESaISt4pairIKS6_S9_EELi256EEE", !18, i64 0}
!18 = !{!"_ZTSN5btree19btree_map_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !19, i64 0}
!19 = !{!"_ZTSN5btree22btree_unique_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !20, i64 0}
!20 = !{!"_ZTSN5btree15btree_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !21, i64 0}
!21 = !{!"_ZTSN5btree5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS7_ESaISt4pairIKS7_SA_EELi256EEEEE", !22, i64 0}
!22 = !{!"_ZTSN5btree5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS7_ESaISt4pairIKS7_SA_EELi256EEEE17empty_base_handleIS6_PNS_10btree_nodeISH_EEEE", !16, i64 0}
!23 = !{!"_ZTSN4ardb6BufferE", !16, i64 0, !24, i64 8, !24, i64 16, !24, i64 24, !14, i64 32}
!24 = !{!"long", !13, i64 0}


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