; LLVM IR from yinqiwen/ardb :: src/common/channel/signal (soft_signal_channel)

; 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.btree::btree_iterator" = type <{ ptr, i32, [4 x i8] }>
%"struct.btree::btree_iterator.27" = type <{ ptr, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.ardb::SoftSignalChannel" = type { %"class.ardb::PipeChannel", %"class.ardb::ChannelUpstreamHandler", %"class.btree::btree_map.0", %"class.ardb::codec::UInt64FrameDecoder", i8, %"class.ardb::SpinMutexLock" }
%"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] }>
%"class.ardb::ChannelUpstreamHandler" = type { %"class.ardb::AbstractChannelHandler" }
%"class.ardb::AbstractChannelHandler" = type { %"class.ardb::ChannelHandler" }
%"class.ardb::ChannelHandler" = type { ptr }
%"class.btree::btree_map.0" = type { %"class.btree::btree_map_container.1" }
%"class.btree::btree_map_container.1" = type { %"class.btree::btree_unique_container.2" }
%"class.btree::btree_unique_container.2" = type { %"class.btree::btree_container.3" }
%"class.btree::btree_container.3" = type { %"class.btree::btree.4" }
%"class.btree::btree.4" = type { %"struct.btree::btree<btree::btree_map_params<unsigned int, std::vector<ardb::SoftSignalHandler *>, std::less<unsigned int>, std::allocator<std::pair<const unsigned int, std::vector<ardb::SoftSignalHandler *>>>, 256>>::empty_base_handle" }
%"struct.btree::btree<btree::btree_map_params<unsigned int, std::vector<ardb::SoftSignalHandler *>, std::less<unsigned int>, std::allocator<std::pair<const unsigned int, std::vector<ardb::SoftSignalHandler *>>>, 256>>::empty_base_handle" = type { ptr }
%"class.ardb::codec::UInt64FrameDecoder" = type <{ %"class.ardb::codec::StackFrameDecoder", i8, [7 x i8] }>
%"class.ardb::codec::StackFrameDecoder" = type { %"class.ardb::ChannelUpstreamHandler.6", %"class.ardb::Buffer" }
%"class.ardb::ChannelUpstreamHandler.6" = type { %"class.ardb::AbstractChannelHandler.7" }
%"class.ardb::AbstractChannelHandler.7" = type { %"class.ardb::ChannelHandler" }
%"class.ardb::SpinMutexLock" = type { i32 }
%"struct.std::pair" = type { i32, %"class.std::vector.29" }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<ardb::SoftSignalHandler *, std::allocator<ardb::SoftSignalHandler *>>::_Vector_impl" }
%"struct.std::_Vector_base<ardb::SoftSignalHandler *, std::allocator<ardb::SoftSignalHandler *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ardb::SoftSignalHandler *, std::allocator<ardb::SoftSignalHandler *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ardb::SoftSignalHandler *, std::allocator<ardb::SoftSignalHandler *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [97 x i8], align 1
@__FUNCTION__._ZN4ardb17SoftSignalChannel18FireSignalReceivedEjj = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 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 uwtable
define dso_local void @_ZN4ardb17SoftSignalChannel18FireSignalReceivedEjj(ptr noundef nonnull align 8 dereferenceable(344) %0, i32 noundef %1, i32 noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.btree::btree_iterator", align 8
  %8 = alloca %"struct.btree::btree_iterator.27", align 8
  %9 = alloca %"struct.btree::btree_iterator", align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  %15 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  %16 = getelementptr inbounds %"class.ardb::SoftSignalChannel", ptr %15, i32 0, i32 2
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEEE4findERSC_(ptr dead_on_unwind writable sret(%"struct.btree::btree_iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %17 = getelementptr inbounds %"class.ardb::SoftSignalChannel", ptr %15, i32 0, i32 2
  call void @_ZN5btree15btree_containerINS_5btreeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEEE3endEv(ptr dead_on_unwind writable sret(%"struct.btree::btree_iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @_ZN5btree14btree_iteratorIKNS_10btree_nodeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEERKSD_PSI_EC2ERKNS0_ISG_RSD_PSD_EE(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %9)
  %18 = call noundef zeroext i1 @_ZNK5btree14btree_iteratorINS_10btree_nodeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEERSD_PSD_EneERKNS0_IKSG_RKSD_PSL_EE(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(12) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  br i1 %18, label %19, label %46

19:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %20 = call noundef ptr @_ZNK5btree14btree_iteratorINS_10btree_nodeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEERSD_PSD_EptEv(ptr noundef nonnull align 8 dereferenceable(12) %7)
  %21 = getelementptr inbounds %"struct.std::pair", ptr %20, i32 0, i32 1
  store ptr %21, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  %23 = call ptr @_ZNSt6vectorIPN4ardb17SoftSignalHandlerESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  %24 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %23, ptr %24, align 8
  br label %25

25:                                               ; preds = %42, %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = call ptr @_ZNSt6vectorIPN4ardb17SoftSignalHandlerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  %28 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %27, ptr %28, align 8
  %29 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN4ardb17SoftSignalHandlerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br i1 %29, label %30, label %45

30:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ardb17SoftSignalHandlerESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  store ptr %32, ptr %13, align 8, !tbaa !5
  %33 = load ptr, ptr %13, align 8, !tbaa !5
  %34 = icmp ne ptr null, %33
  br i1 %34, label %35, label %42

35:                                               ; preds = %30
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = load i32, ptr %6, align 4, !tbaa !9
  %39 = load ptr, ptr %36, align 8, !tbaa !11
  %40 = getelementptr inbounds ptr, ptr %39, i64 0
  %41 = load ptr, ptr %40, align 8
  call void %41(ptr noundef nonnull align 8 dereferenceable(8) %36, i32 noundef %37, i32 noundef %38)
  br label %42

42:                                               ; preds = %35, %30
  %43 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN4ardb17SoftSignalHandlerESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #5
  %44 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %43, ptr %44, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %25, !llvm.loop !13

45:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %56

46:                                               ; preds = %3
  br label %47

47:                                               ; preds = %46
  %48 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %49 = call noundef zeroext i1 %48(i32 noundef 2)
  br i1 %49, label %50, label %53

50:                                               ; preds = %47
  %51 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  %52 = load i32, ptr %5, align 4, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %51(i32 noundef 2, ptr noundef @.str.2, ptr noundef @__FUNCTION__._ZN4ardb17SoftSignalChannel18FireSignalReceivedEjj, i32 noundef 79, ptr noundef @.str.3, i32 noundef %52)
  br label %53

53:                                               ; preds = %50, %47
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55, %45
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEEE4findERSC_(ptr dead_on_unwind noalias writable sret(%"struct.btree::btree_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5btree14btree_iteratorINS_10btree_nodeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEERSD_PSD_EneERKNS0_IKSG_RKSD_PSL_EE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5btree15btree_containerINS_5btreeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEEE3endEv(ptr dead_on_unwind noalias writable sret(%"struct.btree::btree_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5btree14btree_iteratorIKNS_10btree_nodeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEERKSD_PSI_EC2ERKNS0_ISG_RSD_PSD_EE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPPN4ardb17SoftSignalHandlerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv() #4

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv() #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = { 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 #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 = distinct !{!13, !14}
!14 = !{!"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"

%"struct.btree::btree_iterator" = type <{ ptr, i32, [4 x i8] }>
%"struct.btree::btree_iterator.27" = type <{ ptr, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@.str.2 = external hidden unnamed_addr constant [97 x i8], align 1
@__FUNCTION__._ZN4ardb17SoftSignalChannel18FireSignalReceivedEjj = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 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 uwtable
define dso_local void @_ZN4ardb17SoftSignalChannel18FireSignalReceivedEjj(ptr noundef nonnull align 8 dereferenceable(344) %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #1 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca %"struct.btree::btree_iterator", align 8
  %6 = alloca %"struct.btree::btree_iterator.27", align 8
  %7 = alloca %"struct.btree::btree_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 272
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEEE4findERSC_(ptr dead_on_unwind nonnull writable sret(%"struct.btree::btree_iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN5btree15btree_containerINS_5btreeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEEE3endEv(ptr dead_on_unwind nonnull writable sret(%"struct.btree::btree_iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @_ZN5btree14btree_iteratorIKNS_10btree_nodeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEERKSD_PSI_EC2ERKNS0_ISG_RSD_PSD_EE(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %7)
  %11 = call noundef zeroext i1 @_ZNK5btree14btree_iteratorINS_10btree_nodeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEERSD_PSD_EneERKNS0_IKSG_RKSD_PSL_EE(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 8 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br i1 %11, label %12, label %28

12:                                               ; preds = %3
  %13 = call noundef ptr @_ZNK5btree14btree_iteratorINS_10btree_nodeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEERSD_PSD_EptEv(ptr noundef nonnull align 8 dereferenceable(12) %5)
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %15 = call ptr @_ZNSt6vectorIPN4ardb17SoftSignalHandlerESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  store ptr %15, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %16 = call ptr @_ZNSt6vectorIPN4ardb17SoftSignalHandlerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  store ptr %16, ptr %9, align 8
  %17 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN4ardb17SoftSignalHandlerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br i1 %17, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %12, %24
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ardb17SoftSignalHandlerESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %.not = icmp eq ptr %19, null
  br i1 %.not, label %24, label %20

20:                                               ; preds = %.lr.ph
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = load ptr, ptr %19, align 8, !tbaa !11
  %23 = load ptr, ptr %22, align 8
  call void %23(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef %21, i32 noundef %2)
  br label %24

24:                                               ; preds = %20, %.lr.ph
  %25 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN4ardb17SoftSignalHandlerESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %26 = call ptr @_ZNSt6vectorIPN4ardb17SoftSignalHandlerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  store ptr %26, ptr %9, align 8
  %27 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN4ardb17SoftSignalHandlerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br i1 %27, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %24, %12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %34

28:                                               ; preds = %3
  %29 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %30 = call noundef zeroext i1 %29(i32 noundef 2)
  br i1 %30, label %31, label %34

31:                                               ; preds = %28
  %32 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  %33 = load i32, ptr %4, align 4, !tbaa !5
  call void (i32, ptr, ptr, i32, ptr, ...) %32(i32 noundef 2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__FUNCTION__._ZN4ardb17SoftSignalChannel18FireSignalReceivedEjj, i32 noundef 79, ptr noundef nonnull @.str.3, i32 noundef %33)
  br label %34

34:                                               ; preds = %28, %31, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEEE4findERSC_(ptr dead_on_unwind noalias writable sret(%"struct.btree::btree_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5btree14btree_iteratorINS_10btree_nodeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEERSD_PSD_EneERKNS0_IKSG_RKSD_PSL_EE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5btree15btree_containerINS_5btreeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEEE3endEv(ptr dead_on_unwind noalias writable sret(%"struct.btree::btree_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5btree14btree_iteratorIKNS_10btree_nodeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEERKSD_PSI_EC2ERKNS0_ISG_RSD_PSD_EE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK5btree14btree_iteratorINS_10btree_nodeINS_16btree_map_paramsIjSt6vectorIPN4ardb17SoftSignalHandlerESaIS6_EESt4lessIjESaISt4pairIKjS8_EELi256EEEEERSD_PSD_EptEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPPN4ardb17SoftSignalHandlerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv() local_unnamed_addr #4

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv() local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass