; LLVM IR from yinqiwen/ardb :: src/common/channel/fifo/fifo_channel.ll (ZN4ardb11PipeChannel6DoOpenEv)

; 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::PipeChannel" = type { %"class.ardb::Channel", i32, i32 }
%"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] }>

@.str = external hidden unnamed_addr constant [88 x i8], align 1
@__FUNCTION__._ZN4ardb11PipeChannel6DoOpenEv = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4ardb11PipeChannel6DoOpenEv(ptr noundef nonnull align 8 dereferenceable(264) %0) unnamed_addr #0 align 2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca [2 x 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::PipeChannel", ptr %8, i32 0, i32 1
  %10 = load i32, ptr %9, align 8, !tbaa !9
  %11 = icmp eq i32 -1, %10
  br i1 %11, label %12, label %40

12:                                               ; preds = %1
  %13 = getelementptr inbounds %"class.ardb::PipeChannel", ptr %8, i32 0, i32 2
  %14 = load i32, ptr %13, align 4, !tbaa !25
  %15 = icmp eq i32 -1, %14
  br i1 %15, label %16, label %40

16:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %17 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
  %18 = call i32 @pipe(ptr noundef %17) #5
  store i32 %18, ptr %5, align 4, !tbaa !26
  %19 = load i32, ptr %5, align 4, !tbaa !26
  %20 = icmp eq i32 %19, -1
  br i1 %20, label %21, label %30

21:                                               ; preds = %16
  br label %22

22:                                               ; preds = %21
  %23 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %24 = call noundef zeroext i1 %23(i32 noundef 2)
  br i1 %24, label %25, label %27

25:                                               ; preds = %22
  %26 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  call void (i32, ptr, ptr, i32, ptr, ...) %26(i32 noundef 2, ptr noundef @.str, ptr noundef @__FUNCTION__._ZN4ardb11PipeChannel6DoOpenEv, i32 noundef 50, ptr noundef @.str.1)
  br label %27

27:                                               ; preds = %25, %22
  br label %28

28:                                               ; preds = %27
  br label %29

29:                                               ; preds = %28
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %37

30:                                               ; preds = %16
  %31 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
  %32 = load i32, ptr %31, align 4, !tbaa !26
  %33 = getelementptr inbounds %"class.ardb::PipeChannel", ptr %8, i32 0, i32 1
  store i32 %32, ptr %33, align 8, !tbaa !9
  %34 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 1
  %35 = load i32, ptr %34, align 4, !tbaa !26
  %36 = getelementptr inbounds %"class.ardb::PipeChannel", ptr %8, i32 0, i32 2
  store i32 %35, ptr %36, align 4, !tbaa !25
  store i32 0, ptr %6, align 4
  br label %37

37:                                               ; preds = %30, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %38 = load i32, ptr %6, align 4
  switch i32 %38, label %78 [
    i32 0, label %39
    i32 1, label %76
  ]

39:                                               ; preds = %37
  br label %40

40:                                               ; preds = %39, %12, %1
  %41 = getelementptr inbounds %"class.ardb::PipeChannel", ptr %8, i32 0, i32 1
  %42 = load i32, ptr %41, align 8, !tbaa !9
  %43 = icmp ne i32 -1, %42
  br i1 %43, label %44, label %67

44:                                               ; preds = %40
  %45 = getelementptr inbounds %"class.ardb::PipeChannel", ptr %8, i32 0, i32 1
  %46 = load i32, ptr %45, align 8, !tbaa !9
  %47 = call noundef i32 @_ZN4ardb19make_fd_nonblockingEi(i32 noundef %46)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %48 = call noundef nonnull align 8 dereferenceable(288) ptr @_ZN4ardb7Channel10GetServiceEv(ptr noundef nonnull align 8 dereferenceable(256) %8)
  %49 = call noundef ptr @_ZN4ardb14ChannelService15GetRawEventLoopEv(ptr noundef nonnull align 8 dereferenceable(288) %48)
  %50 = getelementptr inbounds %"class.ardb::PipeChannel", ptr %8, i32 0, i32 1
  %51 = load i32, ptr %50, align 8, !tbaa !9
  %52 = call i32 @aeCreateFileEvent(ptr noundef %49, i32 noundef %51, i32 noundef 1, ptr noundef @_ZN4ardb7Channel15IOEventCallbackEP11aeEventLoopiPvi, ptr noundef %8)
  store i32 %52, ptr %7, align 4, !tbaa !26
  %53 = load i32, ptr %7, align 4, !tbaa !26
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %66

55:                                               ; preds = %44
  br label %56

56:                                               ; preds = %55
  %57 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %58 = call noundef zeroext i1 %57(i32 noundef 2)
  br i1 %58, label %59, label %63

59:                                               ; preds = %56
  %60 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  %61 = getelementptr inbounds %"class.ardb::PipeChannel", ptr %8, i32 0, i32 1
  %62 = load i32, ptr %61, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %60(i32 noundef 2, ptr noundef @.str, ptr noundef @__FUNCTION__._ZN4ardb11PipeChannel6DoOpenEv, i32 noundef 63, ptr noundef @.str.2, i32 noundef %62)
  br label %63

63:                                               ; preds = %59, %56
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %67

67:                                               ; preds = %66, %40
  %68 = getelementptr inbounds %"class.ardb::PipeChannel", ptr %8, i32 0, i32 2
  %69 = load i32, ptr %68, align 4, !tbaa !25
  %70 = icmp ne i32 -1, %69
  br i1 %70, label %71, label %75

71:                                               ; preds = %67
  %72 = getelementptr inbounds %"class.ardb::PipeChannel", ptr %8, i32 0, i32 2
  %73 = load i32, ptr %72, align 4, !tbaa !25
  %74 = call noundef i32 @_ZN4ardb19make_fd_nonblockingEi(i32 noundef %73)
  br label %75

75:                                               ; preds = %71, %67
  store i1 true, ptr %2, align 1
  br label %76

76:                                               ; preds = %75, %37
  %77 = load i1, ptr %2, align 1
  ret i1 %77

78:                                               ; preds = %37
  unreachable
}

; 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 i32 @pipe(ptr noundef) #2

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv() #3

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv() #3

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

declare noundef i32 @_ZN4ardb19make_fd_nonblockingEi(i32 noundef) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(288) ptr @_ZN4ardb7Channel10GetServiceEv(ptr noundef nonnull align 8 dereferenceable(256)) #4 align 2

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

declare void @_ZN4ardb7Channel15IOEventCallbackEP11aeEventLoopiPvi(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3

attributes #0 = { 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 #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 = { 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 = { 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, !14, i64 256}
!10 = !{!"_ZTSN4ardb11PipeChannelE", !11, i64 0, !14, i64 256, !14, i64 260}
!11 = !{!"_ZTSN4ardb7ChannelE", !12, i64 0, !13, i64 8, !15, i64 44, !15, i64 45, !14, i64 48, !16, i64 56, !6, i64 88, !14, i64 96, !14, i64 100, !23, i64 104, !23, i64 144, !14, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !15, i64 224, !15, i64 225, !15, i64 226, !6, i64 232, !6, i64 240, !6, i64 248}
!12 = !{!"_ZTSN4ardb8RunnableE"}
!13 = !{!"_ZTSN4ardb14ChannelOptionsE", !14, i64 0, !14, i64 4, !15, i64 8, !14, i64 12, !15, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !15, i64 32, !15, i64 33}
!14 = !{!"int", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN4ardb15ChannelPipelineE", !6, i64 0, !6, i64 8, !6, i64 16, !17, i64 24}
!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", !6, i64 0}
!23 = !{!"_ZTSN4ardb6BufferE", !6, i64 0, !24, i64 8, !24, i64 16, !24, i64 24, !15, i64 32}
!24 = !{!"long", !7, i64 0}
!25 = !{!10, !14, i64 260}
!26 = !{!14, !14, 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"

@.str = external hidden unnamed_addr constant [88 x i8], align 1
@__FUNCTION__._ZN4ardb11PipeChannel6DoOpenEv = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4ardb11PipeChannel6DoOpenEv(ptr noundef nonnull align 8 dereferenceable(264) %0) unnamed_addr #0 align 2 {
  %2 = alloca [2 x i32], align 8
  %3 = getelementptr inbounds i8, ptr %0, i64 256
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp eq i32 %4, -1
  br i1 %5, label %6, label %.thread9

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 260
  %8 = load i32, ptr %7, align 4, !tbaa !24
  %9 = icmp eq i32 %8, -1
  br i1 %9, label %10, label %thread-pre-split.thread

10:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %11 = call i32 @pipe(ptr noundef nonnull %2) #5
  %12 = icmp eq i32 %11, -1
  br i1 %12, label %13, label %thread-pre-split

13:                                               ; preds = %10
  %14 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %15 = call noundef zeroext i1 %14(i32 noundef 2)
  br i1 %15, label %16, label %.thread

16:                                               ; preds = %13
  %17 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  call void (i32, ptr, ptr, i32, ptr, ...) %17(i32 noundef 2, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__._ZN4ardb11PipeChannel6DoOpenEv, i32 noundef 50, ptr noundef nonnull @.str.1)
  br label %.thread

.thread:                                          ; preds = %13, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  br label %36

thread-pre-split:                                 ; preds = %10
  %18 = load <2 x i32>, ptr %2, align 8, !tbaa !25
  store <2 x i32> %18, ptr %3, align 8, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %19 = extractelement <2 x i32> %18, i64 0
  %.not = icmp eq i32 %19, -1
  br i1 %.not, label %thread-pre-split.thread, label %.thread9

.thread9:                                         ; preds = %1, %thread-pre-split
  %20 = phi i32 [ %19, %thread-pre-split ], [ %4, %1 ]
  %21 = call noundef i32 @_ZN4ardb19make_fd_nonblockingEi(i32 noundef %20)
  %22 = call noundef nonnull align 8 dereferenceable(288) ptr @_ZN4ardb7Channel10GetServiceEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %23 = call noundef ptr @_ZN4ardb14ChannelService15GetRawEventLoopEv(ptr noundef nonnull align 8 dereferenceable(288) %22)
  %24 = load i32, ptr %3, align 8, !tbaa !5
  %25 = call i32 @aeCreateFileEvent(ptr noundef %23, i32 noundef %24, i32 noundef 1, ptr noundef nonnull @_ZN4ardb7Channel15IOEventCallbackEP11aeEventLoopiPvi, ptr noundef nonnull %0)
  %.not6 = icmp eq i32 %25, 0
  br i1 %.not6, label %thread-pre-split.thread, label %26

26:                                               ; preds = %.thread9
  %27 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %28 = call noundef zeroext i1 %27(i32 noundef 2)
  br i1 %28, label %29, label %thread-pre-split.thread

29:                                               ; preds = %26
  %30 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  %31 = load i32, ptr %3, align 8, !tbaa !5
  call void (i32, ptr, ptr, i32, ptr, ...) %30(i32 noundef 2, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__._ZN4ardb11PipeChannel6DoOpenEv, i32 noundef 63, ptr noundef nonnull @.str.2, i32 noundef %31)
  br label %thread-pre-split.thread

thread-pre-split.thread:                          ; preds = %6, %.thread9, %29, %26, %thread-pre-split
  %32 = getelementptr inbounds i8, ptr %0, i64 260
  %33 = load i32, ptr %32, align 4, !tbaa !24
  %.not7 = icmp eq i32 %33, -1
  br i1 %.not7, label %36, label %34

34:                                               ; preds = %thread-pre-split.thread
  %35 = call noundef i32 @_ZN4ardb19make_fd_nonblockingEi(i32 noundef %33)
  br label %36

36:                                               ; preds = %.thread, %thread-pre-split.thread, %34
  %.1 = phi i1 [ true, %34 ], [ true, %thread-pre-split.thread ], [ false, %.thread ]
  ret i1 %.1
}

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

; Function Attrs: nounwind
declare i32 @pipe(ptr noundef) local_unnamed_addr #2

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv() local_unnamed_addr #3

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv() local_unnamed_addr #3

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

declare noundef i32 @_ZN4ardb19make_fd_nonblockingEi(i32 noundef) local_unnamed_addr #3

declare i32 @aeCreateFileEvent(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(288) ptr @_ZN4ardb7Channel10GetServiceEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #4 align 2

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

declare void @_ZN4ardb7Channel15IOEventCallbackEP11aeEventLoopiPvi(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass