; LLVM IR from BehaviorTree/BehaviorTree.CPP :: src/tree_node.ll (ZN2BT8TreeNode11executeTickEv)

; 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.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.22" = type { %"class.std::_Function_base", ptr }
%"class.std::function.25" = type { %"class.std::_Function_base", ptr }
%"class.std::scoped_lock" = type { ptr }
%"class.nonstd::expected_lite::expected" = type { %"class.nonstd::expected_lite::detail::storage_t" }
%"class.nonstd::expected_lite::detail::storage_t" = type { %"class.nonstd::expected_lite::detail::storage_t_impl.base", [7 x i8] }
%"class.nonstd::expected_lite::detail::storage_t_impl.base" = type <{ %union.anon.34, i8 }>
%union.anon.34 = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::shared_ptr.35" = type { %"class.std::__shared_ptr.36" }
%"class.std::__shared_ptr.36" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.anon = type { ptr, ptr, ptr, ptr }
%"class.BT::TreeNode" = type { ptr, %"class.std::unique_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.18" }
%"struct.std::_Head_base.18" = type { ptr }
%"struct.BT::TreeNode::PImpl" = type { %"class.std::__cxx11::basic_string", i32, %"class.std::condition_variable", %"class.std::mutex", %"class.BT::Signal", %"struct.BT::NodeConfig", %"class.std::__cxx11::basic_string", %"class.std::function", %"class.std::function.22", %"class.std::function.25", %"class.std::mutex", %"class.std::shared_ptr.27", %"struct.std::array.30", %"struct.std::array.30" }
%"class.std::condition_variable" = type { %"class.std::__condvar" }
%"class.std::__condvar" = type { %union.pthread_cond_t }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%"class.BT::Signal" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::weak_ptr<std::function<void (std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1, 1000000000>>>, const BT::TreeNode &, BT::NodeStatus, BT::NodeStatus)>>, std::allocator<std::weak_ptr<std::function<void (std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1, 1000000000>>>, const BT::TreeNode &, BT::NodeStatus, BT::NodeStatus)>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::weak_ptr<std::function<void (std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1, 1000000000>>>, const BT::TreeNode &, BT::NodeStatus, BT::NodeStatus)>>, std::allocator<std::weak_ptr<std::function<void (std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1, 1000000000>>>, const BT::TreeNode &, BT::NodeStatus, BT::NodeStatus)>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::weak_ptr<std::function<void (std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1, 1000000000>>>, const BT::TreeNode &, BT::NodeStatus, BT::NodeStatus)>>, std::allocator<std::weak_ptr<std::function<void (std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1, 1000000000>>>, const BT::TreeNode &, BT::NodeStatus, BT::NodeStatus)>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::weak_ptr<std::function<void (std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1, 1000000000>>>, const BT::TreeNode &, BT::NodeStatus, BT::NodeStatus)>>, std::allocator<std::weak_ptr<std::function<void (std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1, 1000000000>>>, const BT::TreeNode &, BT::NodeStatus, BT::NodeStatus)>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.BT::NodeConfig" = type { %"class.std::shared_ptr", %"class.std::shared_ptr.0", %"class.std::unordered_map", %"class.std::unordered_map", %"class.std::unordered_map", ptr, i16, %"class.std::__cxx11::basic_string", %"class.std::map", %"class.std::map.11" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<BT::PreCond, std::pair<const BT::PreCond, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const BT::PreCond, std::__cxx11::basic_string<char>>>, std::less<BT::PreCond>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<BT::PreCond, std::pair<const BT::PreCond, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const BT::PreCond, std::__cxx11::basic_string<char>>>, std::less<BT::PreCond>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.11" = type { %"class.std::_Rb_tree.12" }
%"class.std::_Rb_tree.12" = type { %"struct.std::_Rb_tree<BT::PostCond, std::pair<const BT::PostCond, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const BT::PostCond, std::__cxx11::basic_string<char>>>, std::less<BT::PostCond>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<BT::PostCond, std::pair<const BT::PostCond, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const BT::PostCond, std::__cxx11::basic_string<char>>>, std::less<BT::PostCond>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::shared_ptr.27" = type { %"class.std::__shared_ptr.28" }
%"class.std::__shared_ptr.28" = type { ptr, %"class.std::__shared_count" }
%"struct.std::array.30" = type { [4 x %"class.std::function.31"] }
%"class.std::function.31" = type { %"class.std::_Function_base", ptr }

; 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: mustprogress uwtable
define dso_local noundef i32 @_ZN2BT8TreeNode11executeTickEv(ptr noundef nonnull align 8 dereferenceable(16) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::function", align 8
  %5 = alloca %"class.std::function.22", align 8
  %6 = alloca %"class.std::function.25", align 8
  %7 = alloca %"class.std::scoped_lock", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.nonstd::expected_lite::expected", align 8
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::chrono::time_point", align 8
  %14 = alloca %"class.std::shared_ptr.35", align 8
  %15 = alloca %class.anon, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %18 = getelementptr inbounds %"class.BT::TreeNode", ptr %17, i32 0, i32 1
  %19 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNode5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  %20 = getelementptr inbounds %"struct.BT::TreeNode::PImpl", ptr %19, i32 0, i32 1
  %21 = load i32, ptr %20, align 8, !tbaa !9
  store i32 %21, ptr %3, align 4, !tbaa !56
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #5
  call void @_ZNSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  call void @_ZNSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeES1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #5
  call void @_ZNSt8functionIFvRN2BT8TreeNodeENS0_10NodeStatusENSt6chrono8durationIlSt5ratioILl1ELl1000000EEEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %22 = getelementptr inbounds %"class.BT::TreeNode", ptr %17, i32 0, i32 1
  %23 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNode5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  %24 = getelementptr inbounds %"struct.BT::TreeNode::PImpl", ptr %23, i32 0, i32 10
  invoke void @_ZNSt11scoped_lockIJSt5mutexEEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %25 unwind label %47

25:                                               ; preds = %1
  %26 = getelementptr inbounds %"class.BT::TreeNode", ptr %17, i32 0, i32 1
  %27 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNode5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  %28 = getelementptr inbounds %"struct.BT::TreeNode::PImpl", ptr %27, i32 0, i32 7
  %29 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeEEEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %30 unwind label %51

30:                                               ; preds = %25
  %31 = getelementptr inbounds %"class.BT::TreeNode", ptr %17, i32 0, i32 1
  %32 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNode5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #5
  %33 = getelementptr inbounds %"struct.BT::TreeNode::PImpl", ptr %32, i32 0, i32 8
  %34 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeES1_EEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %35 unwind label %51

35:                                               ; preds = %30
  %36 = getelementptr inbounds %"class.BT::TreeNode", ptr %17, i32 0, i32 1
  %37 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNode5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #5
  %38 = getelementptr inbounds %"struct.BT::TreeNode::PImpl", ptr %37, i32 0, i32 9
  %39 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt8functionIFvRN2BT8TreeNodeENS0_10NodeStatusENSt6chrono8durationIlSt5ratioILl1ELl1000000EEEEEEaSERKSA_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %40 unwind label %51

40:                                               ; preds = %35
  call void @_ZNSt11scoped_lockIJSt5mutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #5
  invoke void @_ZN2BT8TreeNode18checkPreConditionsB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.nonstd::expected_lite::expected") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %41 unwind label %56

41:                                               ; preds = %40
  %42 = call noundef zeroext i1 @_ZNK6nonstd13expected_lite8expectedIN2BT10NodeStatusENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  br i1 %42, label %43, label %64

43:                                               ; preds = %41
  %44 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNR6nonstd13expected_lite8expectedIN2BT10NodeStatusENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %45 unwind label %60

45:                                               ; preds = %43
  %46 = load i32, ptr %44, align 4, !tbaa !56
  store i32 %46, ptr %3, align 4, !tbaa !56
  br label %116

47:                                               ; preds = %1
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %8, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %9, align 4
  br label %55

51:                                               ; preds = %35, %30, %25
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %8, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %9, align 4
  call void @_ZNSt11scoped_lockIJSt5mutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br label %55

55:                                               ; preds = %51, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %151

56:                                               ; preds = %40
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %8, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %9, align 4
  br label %123

60:                                               ; preds = %43
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %8, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %9, align 4
  br label %122

64:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  store i8 0, ptr %11, align 1, !tbaa !57
  %65 = call noundef zeroext i1 @_ZNKSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br i1 %65, label %66, label %88

66:                                               ; preds = %64
  %67 = getelementptr inbounds %"class.BT::TreeNode", ptr %17, i32 0, i32 1
  %68 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNode5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %67) #5
  %69 = getelementptr inbounds %"struct.BT::TreeNode::PImpl", ptr %68, i32 0, i32 1
  %70 = invoke noundef zeroext i1 @_ZN2BT17isStatusCompletedERKNS_10NodeStatusE(ptr noundef nonnull align 4 dereferenceable(4) %69)
          to label %71 unwind label %79

71:                                               ; preds = %66
  br i1 %70, label %88, label %72

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %73 = invoke noundef i32 @_ZNKSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeEEEclES3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %74 unwind label %83

74:                                               ; preds = %72
  store i32 %73, ptr %12, align 4, !tbaa !56
  %75 = invoke noundef zeroext i1 @_ZN2BT17isStatusCompletedERKNS_10NodeStatusE(ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %76 unwind label %83

76:                                               ; preds = %74
  br i1 %75, label %77, label %87

77:                                               ; preds = %76
  store i8 1, ptr %11, align 1, !tbaa !57
  %78 = load i32, ptr %12, align 4, !tbaa !56
  store i32 %78, ptr %3, align 4, !tbaa !56
  br label %87

79:                                               ; preds = %66
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %8, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %9, align 4
  br label %115

83:                                               ; preds = %74, %72
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %8, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %115

87:                                               ; preds = %77, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %88

88:                                               ; preds = %87, %71, %64
  %89 = load i8, ptr %11, align 1, !tbaa !57, !range !59, !noundef !60
  %90 = trunc i8 %89 to i1
  br i1 %90, label %114, label %91

91:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %92 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #5
  %93 = getelementptr inbounds %"class.std::chrono::time_point", ptr %13, i32 0, i32 0
  %94 = getelementptr inbounds %"class.std::chrono::duration", ptr %93, i32 0, i32 0
  store i64 %92, ptr %94, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %95 = getelementptr inbounds %class.anon, ptr %15, i32 0, i32 0
  store ptr %6, ptr %95, align 8, !tbaa !5
  %96 = getelementptr inbounds %class.anon, ptr %15, i32 0, i32 1
  store ptr %17, ptr %96, align 8, !tbaa !61
  %97 = getelementptr inbounds %class.anon, ptr %15, i32 0, i32 2
  store ptr %3, ptr %97, align 8, !tbaa !5
  %98 = getelementptr inbounds %class.anon, ptr %15, i32 0, i32 3
  store ptr %13, ptr %98, align 8, !tbaa !5
  invoke void @"_ZNSt10shared_ptrIvEC2IZN2BT8TreeNode11executeTickEvE3$_0EEDnT_"(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr null, ptr noundef byval(%class.anon) align 8 %15)
          to label %99 unwind label %105

99:                                               ; preds = %91
  %100 = load ptr, ptr %17, align 8, !tbaa !63
  %101 = getelementptr inbounds ptr, ptr %100, i64 4
  %102 = load ptr, ptr %101, align 8
  %103 = invoke noundef i32 %102(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %104 unwind label %109

104:                                              ; preds = %99
  store i32 %103, ptr %3, align 4, !tbaa !56
  call void @_ZNSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %114

105:                                              ; preds = %91
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %8, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %9, align 4
  br label %113

109:                                              ; preds = %99
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %8, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %9, align 4
  call void @_ZNSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  br label %113

113:                                              ; preds = %109, %105
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %115

114:                                              ; preds = %104, %88
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  br label %116

115:                                              ; preds = %113, %83, %79
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  br label %122

116:                                              ; preds = %114, %45
  call void @_ZN6nonstd13expected_lite8expectedIN2BT10NodeStatusENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #5
  %117 = invoke noundef zeroext i1 @_ZN2BT17isStatusCompletedERKNS_10NodeStatusE(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %118 unwind label %124

118:                                              ; preds = %116
  br i1 %117, label %119, label %128

119:                                              ; preds = %118
  %120 = load i32, ptr %3, align 4, !tbaa !56
  invoke void @_ZN2BT8TreeNode19checkPostConditionsENS_10NodeStatusE(ptr noundef nonnull align 8 dereferenceable(16) %17, i32 noundef %120)
          to label %121 unwind label %124

121:                                              ; preds = %119
  br label %128

122:                                              ; preds = %115, %60
  call void @_ZN6nonstd13expected_lite8expectedIN2BT10NodeStatusENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  br label %123

123:                                              ; preds = %122, %56
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #5
  br label %151

124:                                              ; preds = %146, %119, %116
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %8, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %9, align 4
  br label %151

128:                                              ; preds = %121, %118
  %129 = call noundef zeroext i1 @_ZNKSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeES1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  br i1 %129, label %130, label %143

130:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %131 = load i32, ptr %3, align 4, !tbaa !56
  %132 = invoke noundef i32 @_ZNKSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeES1_EEclES3_S1_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(16) %17, i32 noundef %131)
          to label %133 unwind label %138

133:                                              ; preds = %130
  store i32 %132, ptr %16, align 4, !tbaa !56
  %134 = invoke noundef zeroext i1 @_ZN2BT17isStatusCompletedERKNS_10NodeStatusE(ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %135 unwind label %138

135:                                              ; preds = %133
  br i1 %134, label %136, label %142

136:                                              ; preds = %135
  %137 = load i32, ptr %16, align 4, !tbaa !56
  store i32 %137, ptr %3, align 4, !tbaa !56
  br label %142

138:                                              ; preds = %133, %130
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %8, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %151

142:                                              ; preds = %136, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %143

143:                                              ; preds = %142, %128
  %144 = load i32, ptr %3, align 4, !tbaa !56
  %145 = icmp ne i32 %144, 4
  br i1 %145, label %146, label %149

146:                                              ; preds = %143
  %147 = load i32, ptr %3, align 4, !tbaa !56
  invoke void @_ZN2BT8TreeNode9setStatusENS_10NodeStatusE(ptr noundef nonnull align 8 dereferenceable(16) %17, i32 noundef %147)
          to label %148 unwind label %124

148:                                              ; preds = %146
  br label %149

149:                                              ; preds = %148, %143
  %150 = load i32, ptr %3, align 4, !tbaa !56
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret i32 %150

151:                                              ; preds = %138, %124, %123, %55
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %152

152:                                              ; preds = %151
  %153 = load ptr, ptr %8, align 8
  %154 = load i32, ptr %9, align 4
  %155 = insertvalue { ptr, i32 } poison, ptr %153, 0
  %156 = insertvalue { ptr, i32 } %155, i32 %154, 1
  resume { ptr, i32 } %156
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt11scoped_lockIJSt5mutexEEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2BT8TreeNode18checkPreConditionsB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.nonstd::expected_lite::expected") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNKSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeEEEclES3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #4

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt10shared_ptrIvEC2IZN2BT8TreeNode11executeTickEvE3$_0EEDnT_"(ptr noundef nonnull align 8 dereferenceable(16), ptr, ptr noundef byval(%class.anon) align 8) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2BT8TreeNode19checkPostConditionsENS_10NodeStatusE(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNKSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeES1_EEclES3_S1_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2BT8TreeNode9setStatusENS_10NodeStatusE(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

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

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 = { 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 #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 32}
!10 = !{!"_ZTSN2BT8TreeNode5PImplE", !11, i64 0, !14, i64 32, !15, i64 40, !17, i64 88, !19, i64 128, !24, i64 152, !11, i64 496, !49, i64 528, !51, i64 560, !52, i64 592, !17, i64 624, !53, i64 664, !55, i64 680, !55, i64 808}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN2BT10NodeStatusE", !7, i64 0}
!15 = !{!"_ZTSSt18condition_variable", !16, i64 0}
!16 = !{!"_ZTSSt9__condvar", !7, i64 0}
!17 = !{!"_ZTSSt5mutex", !18, i64 0}
!18 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!19 = !{!"_ZTSN2BT6SignalIJNSt6chrono10time_pointINS1_3_V212system_clockENS1_8durationIlSt5ratioILl1ELl1000000000EEEEEERKNS_8TreeNodeENS_10NodeStatusESD_EEE", !20, i64 0}
!20 = !{!"_ZTSSt6vectorISt8weak_ptrISt8functionIFvNSt6chrono10time_pointINS2_3_V212system_clockENS2_8durationIlSt5ratioILl1ELl1000000000EEEEEERKN2BT8TreeNodeENSB_10NodeStatusESF_EEESaISI_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseISt8weak_ptrISt8functionIFvNSt6chrono10time_pointINS2_3_V212system_clockENS2_8durationIlSt5ratioILl1ELl1000000000EEEEEERKN2BT8TreeNodeENSB_10NodeStatusESF_EEESaISI_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt8weak_ptrISt8functionIFvNSt6chrono10time_pointINS2_3_V212system_clockENS2_8durationIlSt5ratioILl1ELl1000000000EEEEEERKN2BT8TreeNodeENSB_10NodeStatusESF_EEESaISI_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseISt8weak_ptrISt8functionIFvNSt6chrono10time_pointINS2_3_V212system_clockENS2_8durationIlSt5ratioILl1ELl1000000000EEEEEERKN2BT8TreeNodeENSB_10NodeStatusESF_EEESaISI_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSN2BT10NodeConfigE", !25, i64 0, !28, i64 16, !30, i64 32, !30, i64 88, !30, i64 144, !6, i64 200, !35, i64 208, !11, i64 216, !36, i64 248, !44, i64 296}
!25 = !{!"_ZTSSt10shared_ptrIN2BT10BlackboardEE", !26, i64 0}
!26 = !{!"_ZTSSt12__shared_ptrIN2BT10BlackboardELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !27, i64 8}
!27 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!28 = !{!"_ZTSSt10shared_ptrISt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_iEEEE", !29, i64 0}
!29 = !{!"_ZTSSt12__shared_ptrISt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_iEEELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !27, i64 8}
!30 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEE", !31, i64 0}
!31 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !13, i64 8, !32, i64 16, !13, i64 24, !33, i64 32, !6, i64 48}
!32 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!33 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !34, i64 0, !13, i64 8}
!34 = !{!"float", !7, i64 0}
!35 = !{!"short", !7, i64 0}
!36 = !{!"_ZTSSt3mapIN2BT7PreCondENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEE", !37, i64 0}
!37 = !{!"_ZTSSt8_Rb_treeIN2BT7PreCondESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stISA_ESt4lessIS1_ESaISA_EE", !38, i64 0}
!38 = !{!"_ZTSNSt8_Rb_treeIN2BT7PreCondESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stISA_ESt4lessIS1_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !39, i64 0, !41, i64 8}
!39 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN2BT7PreCondEEE", !40, i64 0}
!40 = !{!"_ZTSSt4lessIN2BT7PreCondEE"}
!41 = !{!"_ZTSSt15_Rb_tree_header", !42, i64 0, !13, i64 32}
!42 = !{!"_ZTSSt18_Rb_tree_node_base", !43, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!43 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!44 = !{!"_ZTSSt3mapIN2BT8PostCondENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEE", !45, i64 0}
!45 = !{!"_ZTSSt8_Rb_treeIN2BT8PostCondESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stISA_ESt4lessIS1_ESaISA_EE", !46, i64 0}
!46 = !{!"_ZTSNSt8_Rb_treeIN2BT8PostCondESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stISA_ESt4lessIS1_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !47, i64 0, !41, i64 8}
!47 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN2BT8PostCondEEE", !48, i64 0}
!48 = !{!"_ZTSSt4lessIN2BT8PostCondEE"}
!49 = !{!"_ZTSSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeEEE", !50, i64 0, !6, i64 24}
!50 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!51 = !{!"_ZTSSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeES1_EE", !50, i64 0, !6, i64 24}
!52 = !{!"_ZTSSt8functionIFvRN2BT8TreeNodeENS0_10NodeStatusENSt6chrono8durationIlSt5ratioILl1ELl1000000EEEEEE", !50, i64 0, !6, i64 24}
!53 = !{!"_ZTSSt10shared_ptrIN2BT12WakeUpSignalEE", !54, i64 0}
!54 = !{!"_ZTSSt12__shared_ptrIN2BT12WakeUpSignalELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !27, i64 8}
!55 = !{!"_ZTSSt5arrayISt8functionIFN2BT3AnyERNS1_3Ast11EnvironmentEEELm4EE", !7, i64 0}
!56 = !{!14, !14, i64 0}
!57 = !{!58, !58, i64 0}
!58 = !{!"bool", !7, i64 0}
!59 = !{i8 0, i8 2}
!60 = !{}
!61 = !{!62, !6, i64 8}
!62 = !{!"_ZTSZN2BT8TreeNode11executeTickEvE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!63 = !{!64, !64, i64 0}
!64 = !{!"vtable pointer", !8, 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"

%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.22" = type { %"class.std::_Function_base", ptr }
%"class.std::function.25" = type { %"class.std::_Function_base", ptr }
%"class.std::scoped_lock" = type { ptr }
%"class.nonstd::expected_lite::expected" = type { %"class.nonstd::expected_lite::detail::storage_t" }
%"class.nonstd::expected_lite::detail::storage_t" = type { %"class.nonstd::expected_lite::detail::storage_t_impl.base", [7 x i8] }
%"class.nonstd::expected_lite::detail::storage_t_impl.base" = type <{ %union.anon.34, i8 }>
%union.anon.34 = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::shared_ptr.35" = type { %"class.std::__shared_ptr.36" }
%"class.std::__shared_ptr.36" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.anon = type { ptr, ptr, ptr, ptr }

; 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: mustprogress uwtable
define dso_local noundef i32 @_ZN2BT8TreeNode11executeTickEv(ptr noundef nonnull align 8 dereferenceable(16) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::function", align 8
  %4 = alloca %"class.std::function.22", align 8
  %5 = alloca %"class.std::function.25", align 8
  %6 = alloca %"class.std::scoped_lock", align 8
  %7 = alloca %"class.nonstd::expected_lite::expected", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::chrono::time_point", align 8
  %10 = alloca %"class.std::shared_ptr.35", align 8
  %11 = alloca %class.anon, align 8
  %12 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = tail call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNode5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %15 = getelementptr inbounds i8, ptr %14, i64 32
  %16 = load i32, ptr %15, align 8, !tbaa !5
  store i32 %16, ptr %2, align 4, !tbaa !55
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @_ZNSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @_ZNSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeES1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  call void @_ZNSt8functionIFvRN2BT8TreeNodeENS0_10NodeStatusENSt6chrono8durationIlSt5ratioILl1ELl1000000EEEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %17 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNode5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %18 = getelementptr inbounds i8, ptr %17, i64 624
  invoke void @_ZNSt11scoped_lockIJSt5mutexEEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(40) %18)
          to label %19 unwind label %38

19:                                               ; preds = %1
  %20 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNode5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %21 = getelementptr inbounds i8, ptr %20, i64 528
  %22 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeEEEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %23 unwind label %40

23:                                               ; preds = %19
  %24 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNode5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %25 = getelementptr inbounds i8, ptr %24, i64 560
  %26 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeES1_EEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %27 unwind label %40

27:                                               ; preds = %23
  %28 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNode5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %29 = getelementptr inbounds i8, ptr %28, i64 592
  %30 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt8functionIFvRN2BT8TreeNodeENS0_10NodeStatusENSt6chrono8durationIlSt5ratioILl1ELl1000000EEEEEEaSERKSA_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %31 unwind label %40

31:                                               ; preds = %27
  call void @_ZNSt11scoped_lockIJSt5mutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #5
  invoke void @_ZN2BT8TreeNode18checkPreConditionsB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.nonstd::expected_lite::expected") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %32 unwind label %43

32:                                               ; preds = %31
  %33 = call noundef zeroext i1 @_ZNK6nonstd13expected_lite8expectedIN2BT10NodeStatusENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  br i1 %33, label %34, label %47

34:                                               ; preds = %32
  %35 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNR6nonstd13expected_lite8expectedIN2BT10NodeStatusENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %36 unwind label %45

36:                                               ; preds = %34
  %37 = load i32, ptr %35, align 4, !tbaa !55
  store i32 %37, ptr %2, align 4, !tbaa !55
  br label %76

38:                                               ; preds = %1
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %42

40:                                               ; preds = %27, %23, %19
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt11scoped_lockIJSt5mutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br label %42

42:                                               ; preds = %40, %38
  %.pn = phi { ptr, i32 } [ %41, %40 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %100

43:                                               ; preds = %31
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %81

45:                                               ; preds = %34
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %80

47:                                               ; preds = %32
  %48 = call noundef zeroext i1 @_ZNKSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  br i1 %48, label %49, label %.critedge

49:                                               ; preds = %47
  %50 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNode5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %51 = getelementptr inbounds i8, ptr %50, i64 32
  %52 = call noundef zeroext i1 @_ZN2BT17isStatusCompletedERKNS_10NodeStatusE(ptr noundef nonnull align 4 dereferenceable(4) %51)
  br i1 %52, label %.critedge, label %53

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %54 = invoke noundef i32 @_ZNKSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeEEEclES3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %55 unwind label %59

55:                                               ; preds = %53
  store i32 %54, ptr %8, align 4, !tbaa !55
  %56 = call noundef zeroext i1 @_ZN2BT17isStatusCompletedERKNS_10NodeStatusE(ptr noundef nonnull align 4 dereferenceable(4) %8)
  br i1 %56, label %57, label %.critedge22

57:                                               ; preds = %55
  %58 = load i32, ptr %8, align 4, !tbaa !55
  store i32 %58, ptr %2, align 4, !tbaa !55
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %76

59:                                               ; preds = %53
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %80

.critedge22:                                      ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %.critedge

.critedge:                                        ; preds = %49, %47, %.critedge22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %61 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #5
  store i64 %61, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  store ptr %5, ptr %11, align 8, !tbaa !56
  %62 = getelementptr inbounds i8, ptr %11, i64 8
  store ptr %0, ptr %62, align 8, !tbaa !57
  %63 = getelementptr inbounds i8, ptr %11, i64 16
  store ptr %2, ptr %63, align 8, !tbaa !56
  %64 = getelementptr inbounds i8, ptr %11, i64 24
  store ptr %9, ptr %64, align 8, !tbaa !56
  invoke void @"_ZNSt10shared_ptrIvEC2IZN2BT8TreeNode11executeTickEvE3$_0EEDnT_"(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr null, ptr noundef nonnull byval(%class.anon) align 8 %11)
          to label %65 unwind label %71

65:                                               ; preds = %.critedge
  %66 = load ptr, ptr %0, align 8, !tbaa !59
  %67 = getelementptr inbounds i8, ptr %66, i64 32
  %68 = load ptr, ptr %67, align 8
  %69 = invoke noundef i32 %68(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %70 unwind label %73

70:                                               ; preds = %65
  store i32 %69, ptr %2, align 4, !tbaa !55
  call void @_ZNSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %76

71:                                               ; preds = %.critedge
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

73:                                               ; preds = %65
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  br label %75

75:                                               ; preds = %73, %71
  %.pn13 = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %80

76:                                               ; preds = %57, %70, %36
  call void @_ZN6nonstd13expected_lite8expectedIN2BT10NodeStatusENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #5
  %77 = call noundef zeroext i1 @_ZN2BT17isStatusCompletedERKNS_10NodeStatusE(ptr noundef nonnull align 4 dereferenceable(4) %2)
  br i1 %77, label %78, label %84

78:                                               ; preds = %76
  %79 = load i32, ptr %2, align 4, !tbaa !55
  invoke void @_ZN2BT8TreeNode19checkPostConditionsENS_10NodeStatusE(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %79)
          to label %84 unwind label %82

80:                                               ; preds = %59, %75, %45
  %.pn16 = phi { ptr, i32 } [ %46, %45 ], [ %.pn13, %75 ], [ %60, %59 ]
  call void @_ZN6nonstd13expected_lite8expectedIN2BT10NodeStatusENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  br label %81

81:                                               ; preds = %80, %43
  %.pn16.pn = phi { ptr, i32 } [ %.pn16, %80 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #5
  br label %100

82:                                               ; preds = %97, %78
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %100

84:                                               ; preds = %78, %76
  %85 = call noundef zeroext i1 @_ZNKSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeES1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  %.pre23 = load i32, ptr %2, align 4, !tbaa !55
  br i1 %85, label %86, label %95

86:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %87 = invoke noundef i32 @_ZNKSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeES1_EEclES3_S1_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.pre23)
          to label %88 unwind label %92

88:                                               ; preds = %86
  store i32 %87, ptr %12, align 4, !tbaa !55
  %89 = call noundef zeroext i1 @_ZN2BT17isStatusCompletedERKNS_10NodeStatusE(ptr noundef nonnull align 4 dereferenceable(4) %12)
  br i1 %89, label %90, label %._crit_edge25

._crit_edge25:                                    ; preds = %88
  %.pre.pre = load i32, ptr %2, align 4, !tbaa !55
  br label %94

90:                                               ; preds = %88
  %91 = load i32, ptr %12, align 4, !tbaa !55
  store i32 %91, ptr %2, align 4, !tbaa !55
  br label %94

92:                                               ; preds = %86
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  br label %100

94:                                               ; preds = %._crit_edge25, %90
  %.pre = phi i32 [ %.pre.pre, %._crit_edge25 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  br label %95

95:                                               ; preds = %94, %84
  %96 = phi i32 [ %.pre, %94 ], [ %.pre23, %84 ]
  %.not = icmp eq i32 %96, 4
  br i1 %.not, label %98, label %97

97:                                               ; preds = %95
  invoke void @_ZN2BT8TreeNode9setStatusENS_10NodeStatusE(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %96)
          to label %._crit_edge unwind label %82

._crit_edge:                                      ; preds = %97
  %.pre24 = load i32, ptr %2, align 4, !tbaa !55
  br label %98

98:                                               ; preds = %._crit_edge, %95
  %99 = phi i32 [ %.pre24, %._crit_edge ], [ 4, %95 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  ret i32 %99

100:                                              ; preds = %92, %82, %81, %42
  %.pn19 = phi { ptr, i32 } [ %83, %82 ], [ %93, %92 ], [ %.pn16.pn, %81 ], [ %.pn, %42 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn19
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt11scoped_lockIJSt5mutexEEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2BT8TreeNode18checkPreConditionsB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.nonstd::expected_lite::expected") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNKSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeEEEclES3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212steady_clock3nowEv() local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt10shared_ptrIvEC2IZN2BT8TreeNode11executeTickEvE3$_0EEDnT_"(ptr noundef nonnull align 8 dereferenceable(16), ptr, ptr noundef byval(%class.anon) align 8) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNKSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeES1_EEclES3_S1_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

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

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

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 = { 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 #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, !13, i64 32}
!6 = !{!"_ZTSN2BT8TreeNode5PImplE", !7, i64 0, !13, i64 32, !14, i64 40, !16, i64 88, !18, i64 128, !23, i64 152, !7, i64 496, !48, i64 528, !50, i64 560, !51, i64 592, !16, i64 624, !52, i64 664, !54, i64 680, !54, i64 808}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"_ZTSN2BT10NodeStatusE", !10, i64 0}
!14 = !{!"_ZTSSt18condition_variable", !15, i64 0}
!15 = !{!"_ZTSSt9__condvar", !10, i64 0}
!16 = !{!"_ZTSSt5mutex", !17, i64 0}
!17 = !{!"_ZTSSt12__mutex_base", !10, i64 0}
!18 = !{!"_ZTSN2BT6SignalIJNSt6chrono10time_pointINS1_3_V212system_clockENS1_8durationIlSt5ratioILl1ELl1000000000EEEEEERKNS_8TreeNodeENS_10NodeStatusESD_EEE", !19, i64 0}
!19 = !{!"_ZTSSt6vectorISt8weak_ptrISt8functionIFvNSt6chrono10time_pointINS2_3_V212system_clockENS2_8durationIlSt5ratioILl1ELl1000000000EEEEEERKN2BT8TreeNodeENSB_10NodeStatusESF_EEESaISI_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseISt8weak_ptrISt8functionIFvNSt6chrono10time_pointINS2_3_V212system_clockENS2_8durationIlSt5ratioILl1ELl1000000000EEEEEERKN2BT8TreeNodeENSB_10NodeStatusESF_EEESaISI_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt8weak_ptrISt8functionIFvNSt6chrono10time_pointINS2_3_V212system_clockENS2_8durationIlSt5ratioILl1ELl1000000000EEEEEERKN2BT8TreeNodeENSB_10NodeStatusESF_EEESaISI_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt8weak_ptrISt8functionIFvNSt6chrono10time_pointINS2_3_V212system_clockENS2_8durationIlSt5ratioILl1ELl1000000000EEEEEERKN2BT8TreeNodeENSB_10NodeStatusESF_EEESaISI_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!23 = !{!"_ZTSN2BT10NodeConfigE", !24, i64 0, !27, i64 16, !29, i64 32, !29, i64 88, !29, i64 144, !9, i64 200, !34, i64 208, !7, i64 216, !35, i64 248, !43, i64 296}
!24 = !{!"_ZTSSt10shared_ptrIN2BT10BlackboardEE", !25, i64 0}
!25 = !{!"_ZTSSt12__shared_ptrIN2BT10BlackboardELN9__gnu_cxx12_Lock_policyE2EE", !9, i64 0, !26, i64 8}
!26 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !9, i64 0}
!27 = !{!"_ZTSSt10shared_ptrISt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_iEEEE", !28, i64 0}
!28 = !{!"_ZTSSt12__shared_ptrISt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_iEEELN9__gnu_cxx12_Lock_policyE2EE", !9, i64 0, !26, i64 8}
!29 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEE", !30, i64 0}
!30 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !9, i64 0, !12, i64 8, !31, i64 16, !12, i64 24, !32, i64 32, !9, i64 48}
!31 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !9, i64 0}
!32 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !33, i64 0, !12, i64 8}
!33 = !{!"float", !10, i64 0}
!34 = !{!"short", !10, i64 0}
!35 = !{!"_ZTSSt3mapIN2BT7PreCondENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEE", !36, i64 0}
!36 = !{!"_ZTSSt8_Rb_treeIN2BT7PreCondESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stISA_ESt4lessIS1_ESaISA_EE", !37, i64 0}
!37 = !{!"_ZTSNSt8_Rb_treeIN2BT7PreCondESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stISA_ESt4lessIS1_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !38, i64 0, !40, i64 8}
!38 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN2BT7PreCondEEE", !39, i64 0}
!39 = !{!"_ZTSSt4lessIN2BT7PreCondEE"}
!40 = !{!"_ZTSSt15_Rb_tree_header", !41, i64 0, !12, i64 32}
!41 = !{!"_ZTSSt18_Rb_tree_node_base", !42, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!42 = !{!"_ZTSSt14_Rb_tree_color", !10, i64 0}
!43 = !{!"_ZTSSt3mapIN2BT8PostCondENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEE", !44, i64 0}
!44 = !{!"_ZTSSt8_Rb_treeIN2BT8PostCondESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stISA_ESt4lessIS1_ESaISA_EE", !45, i64 0}
!45 = !{!"_ZTSNSt8_Rb_treeIN2BT8PostCondESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stISA_ESt4lessIS1_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !46, i64 0, !40, i64 8}
!46 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN2BT8PostCondEEE", !47, i64 0}
!47 = !{!"_ZTSSt4lessIN2BT8PostCondEE"}
!48 = !{!"_ZTSSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeEEE", !49, i64 0, !9, i64 24}
!49 = !{!"_ZTSSt14_Function_base", !10, i64 0, !9, i64 16}
!50 = !{!"_ZTSSt8functionIFN2BT10NodeStatusERNS0_8TreeNodeES1_EE", !49, i64 0, !9, i64 24}
!51 = !{!"_ZTSSt8functionIFvRN2BT8TreeNodeENS0_10NodeStatusENSt6chrono8durationIlSt5ratioILl1ELl1000000EEEEEE", !49, i64 0, !9, i64 24}
!52 = !{!"_ZTSSt10shared_ptrIN2BT12WakeUpSignalEE", !53, i64 0}
!53 = !{!"_ZTSSt12__shared_ptrIN2BT12WakeUpSignalELN9__gnu_cxx12_Lock_policyE2EE", !9, i64 0, !26, i64 8}
!54 = !{!"_ZTSSt5arrayISt8functionIFN2BT3AnyERNS1_3Ast11EnvironmentEEELm4EE", !10, i64 0}
!55 = !{!13, !13, i64 0}
!56 = !{!9, !9, i64 0}
!57 = !{!58, !9, i64 8}
!58 = !{!"_ZTSZN2BT8TreeNode11executeTickEvE3$_0", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!59 = !{!60, !60, i64 0}
!60 = !{!"vtable pointer", !11, i64 0}


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