; LLVM IR from BehaviorTree/BehaviorTree.CPP :: src (bt_factory)

; 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::unique_ptr.117" = type { %"struct.std::__uniq_ptr_data.118" }
%"struct.std::__uniq_ptr_data.118" = type { %"class.std::__uniq_ptr_impl.119" }
%"class.std::__uniq_ptr_impl.119" = type { %"class.std::tuple.120" }
%"class.std::tuple.120" = type { %"struct.std::_Tuple_impl.121" }
%"struct.std::_Tuple_impl.121" = type { %"struct.std::_Head_base.124" }
%"struct.std::_Head_base.124" = type { ptr }
%class.anon.125 = type { ptr, %"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] }
%"struct.std::__detail::_Node_iterator.92" = type { %"struct.std::__detail::_Node_iterator_base.93" }
%"struct.std::__detail::_Node_iterator_base.93" = type { ptr }
%"struct.std::__detail::_Node_iterator.126" = type { %"struct.std::__detail::_Node_iterator_base.127" }
%"struct.std::__detail::_Node_iterator_base.127" = type { ptr }
%"struct.wildcards::full_match_result.139" = type { i8, %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.wildcards::cards" = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%"struct.cx::equal_to" = type { i8 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::unique_ptr.168" = type { %"struct.std::__uniq_ptr_data.169" }
%"struct.std::__uniq_ptr_data.169" = type { %"class.std::__uniq_ptr_impl.170" }
%"class.std::__uniq_ptr_impl.170" = type { %"class.std::tuple.171" }
%"class.std::tuple.171" = type { %"struct.std::_Tuple_impl.172" }
%"struct.std::_Tuple_impl.172" = type { %"struct.std::_Head_base.175" }
%"struct.std::_Head_base.175" = type { ptr }
%"class.std::shared_ptr.176" = type { %"class.std::__shared_ptr.177" }
%"class.std::__shared_ptr.177" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::basic_string_view" = type { i64, ptr }
%class.anon.181 = type { i8 }
%"class.BT::BehaviorTreeFactory" = type { %"class.std::unique_ptr.3" }
%"class.std::unique_ptr.3" = type { %"struct.std::__uniq_ptr_data.4" }
%"struct.std::__uniq_ptr_data.4" = type { %"class.std::__uniq_ptr_impl.5" }
%"class.std::__uniq_ptr_impl.5" = type { %"class.std::tuple.6" }
%"class.std::tuple.6" = type { %"struct.std::_Tuple_impl.7" }
%"struct.std::_Tuple_impl.7" = type { %"struct.std::_Head_base.10" }
%"struct.std::_Head_base.10" = type { ptr }
%"struct.BT::BehaviorTreeFactory::PImpl" = type { %"class.std::unordered_map", %"class.std::unordered_map.16", %"class.std::set", %"class.std::unordered_map.33", %"class.std::shared_ptr", %"class.std::shared_ptr.47", %"class.std::unordered_map.50" }
%"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::unordered_map.16" = type { %"class.std::_Hashtable.17" }
%"class.std::_Hashtable.17" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_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::unordered_map.33" = type { %"class.std::_Hashtable.34" }
%"class.std::_Hashtable.34" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.47" = type { %"class.std::__shared_ptr.48" }
%"class.std::__shared_ptr.48" = type { ptr, %"class.std::__shared_count" }
%"class.std::unordered_map.50" = type { %"class.std::_Hashtable.51" }
%"class.std::_Hashtable.51" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.BT::NodeConfig" = type { %"class.std::shared_ptr.140", %"class.std::shared_ptr", %"class.std::unordered_map.143", %"class.std::unordered_map.143", %"class.std::unordered_map.143", ptr, i16, %"class.std::__cxx11::basic_string", %"class.std::map", %"class.std::map.162" }
%"class.std::shared_ptr.140" = type { %"class.std::__shared_ptr.141" }
%"class.std::__shared_ptr.141" = type { ptr, %"class.std::__shared_count" }
%"class.std::unordered_map.143" = type { %"class.std::_Hashtable.144" }
%"class.std::_Hashtable.144" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.157" }
%"class.std::_Rb_tree.157" = 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" }
%"class.std::map.162" = type { %"class.std::_Rb_tree.163" }
%"class.std::_Rb_tree.163" = 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" }
%"struct.std::pair" = type { %"class.std::__cxx11::basic_string", %"class.std::function" }
%"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 } }

@_ZTIN2BT10LogicErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN2BT12RuntimeErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.61 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [54 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

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 nounwind uwtable
declare dso_local void @_ZN9wildcards5cardsIcEC2ENS_10cards_typeE(ptr noundef nonnull align 1 dereferenceable(11), i32 noundef) unnamed_addr #1 align 2

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

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

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

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_free_exception(ptr)

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigE(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.117") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(344) %4) #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %class.anon.125, align 8
  %12 = alloca %"struct.std::__detail::_Node_iterator.92", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::__detail::_Node_iterator.92", align 8
  %16 = alloca i1, align 1
  %17 = alloca i8, align 1
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.std::__detail::_Node_iterator.126", align 8
  %20 = alloca %"struct.std::__detail::_Node_iterator.126", align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"struct.wildcards::full_match_result.139", align 8
  %26 = alloca %"struct.wildcards::cards", align 1
  %27 = alloca %"struct.cx::equal_to", align 1
  %28 = alloca ptr, align 8
  %29 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %30 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %31 = alloca ptr, align 8
  %32 = alloca %"class.std::unique_ptr.117", align 8
  %33 = alloca ptr, align 8
  %34 = alloca %"class.std::unique_ptr.168", align 8
  %35 = alloca %"class.std::shared_ptr.176", align 8
  %36 = alloca ptr, align 8
  %37 = alloca %"class.std::unique_ptr.168", align 8
  %38 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %39 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %40 = alloca ptr, align 8
  %41 = alloca %"class.std::unique_ptr.117", align 8
  %42 = alloca %"class.std::basic_string_view", align 8
  %43 = alloca %class.anon.181, align 1
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %44 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #6
  %45 = getelementptr inbounds %class.anon.125, ptr %11, i32 0, i32 0
  store ptr %44, ptr %45, align 8, !tbaa !9
  %46 = getelementptr inbounds %class.anon.125, ptr %11, i32 0, i32 1
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef nonnull align 8 dereferenceable(32) %47)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %48 = getelementptr inbounds %"class.BT::BehaviorTreeFactory", ptr %44, i32 0, i32 0
  %49 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #6
  %50 = getelementptr inbounds %"struct.BT::BehaviorTreeFactory::PImpl", ptr %49, i32 0, i32 1
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2BT16TreeNodeManifestESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE4findERSD_(ptr noundef nonnull align 8 dereferenceable(56) %50, ptr noundef nonnull align 8 dereferenceable(32) %51)
          to label %53 unwind label %65

53:                                               ; preds = %5
  %54 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.92", ptr %12, i32 0, i32 0
  %55 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.93", ptr %54, i32 0, i32 0
  store ptr %52, ptr %55, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %56 = getelementptr inbounds %"class.BT::BehaviorTreeFactory", ptr %44, i32 0, i32 0
  %57 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %56) #6
  %58 = getelementptr inbounds %"struct.BT::BehaviorTreeFactory::PImpl", ptr %57, i32 0, i32 1
  %59 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2BT16TreeNodeManifestESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %58) #6
  %60 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.92", ptr %15, i32 0, i32 0
  %61 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.93", ptr %60, i32 0, i32 0
  store ptr %59, ptr %61, align 8
  %62 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2BT16TreeNodeManifestEELb1EEESE_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br i1 %62, label %63, label %69

63:                                               ; preds = %53
  invoke void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEENK3$_1clEv"(ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %64 unwind label %65

64:                                               ; preds = %63
  br label %69

65:                                               ; preds = %63, %5
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %13, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %14, align 4
  br label %306

69:                                               ; preds = %64, %53
  store i1 false, ptr %16, align 1
  call void @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  store i8 0, ptr %17, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %70 = getelementptr inbounds %"class.BT::BehaviorTreeFactory", ptr %44, i32 0, i32 0
  %71 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %70) #6
  %72 = getelementptr inbounds %"struct.BT::BehaviorTreeFactory::PImpl", ptr %71, i32 0, i32 6
  store ptr %72, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %73 = load ptr, ptr %18, align 8, !tbaa !5
  %74 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS5_N2BT14TestNodeConfigESt10shared_ptrIS8_EEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SB_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %73) #6
  %75 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.126", ptr %19, i32 0, i32 0
  %76 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.127", ptr %75, i32 0, i32 0
  store ptr %74, ptr %76, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %77 = load ptr, ptr %18, align 8, !tbaa !5
  %78 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS5_N2BT14TestNodeConfigESt10shared_ptrIS8_EEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SB_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %77) #6
  %79 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.126", ptr %20, i32 0, i32 0
  %80 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.127", ptr %79, i32 0, i32 0
  store ptr %78, ptr %80, align 8
  br label %81

81:                                               ; preds = %219, %69
  %82 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS7_N2BT14TestNodeConfigESt10shared_ptrISB_EEEELb1EEESI_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br i1 %82, label %84, label %83

83:                                               ; preds = %81
  store i32 2, ptr %21, align 4
  br label %222

84:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %85 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS7_N2BT14TestNodeConfigESt10shared_ptrISB_EEEELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  store ptr %85, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %86 = load ptr, ptr %22, align 8, !tbaa !5
  %87 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS5_N2BT14TestNodeConfigESt10shared_ptrIS9_EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSH_(ptr noundef nonnull align 8 dereferenceable(184) %86) #6
  store ptr %87, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %88 = load ptr, ptr %22, align 8, !tbaa !5
  %89 = call noundef nonnull align 8 dereferenceable(145) ptr @_ZSt3getILm1EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS5_N2BT14TestNodeConfigESt10shared_ptrIS9_EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSH_(ptr noundef nonnull align 8 dereferenceable(184) %88) #6
  store ptr %89, ptr %24, align 8, !tbaa !5
  %90 = load ptr, ptr %23, align 8, !tbaa !5
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %90, ptr noundef nonnull align 8 dereferenceable(32) %91) #6
  call void @llvm.lifetime.start.p0(i64 56, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 11, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  br i1 %92, label %105, label %93

93:                                               ; preds = %84
  %94 = load ptr, ptr %23, align 8, !tbaa !5
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %94, ptr noundef nonnull align 8 dereferenceable(32) %95) #6
  br i1 %96, label %105, label %97

97:                                               ; preds = %93
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.BT::NodeConfig", ptr %98, i32 0, i32 7
  %100 = load ptr, ptr %23, align 8, !tbaa !5
  invoke void @_ZN9wildcards5cardsIcEC2ENS_10cards_typeE(ptr noundef nonnull align 1 dereferenceable(11) %26, i32 noundef 1)
          to label %101 unwind label %136

101:                                              ; preds = %97
  invoke void @_ZN9wildcards5matchIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_N2cx8equal_toIvEEEENS_17full_match_resultINS_14const_iteratorIT_E4typeENSD_IT0_E4typeEEEOSE_OSH_RKNS_5cardsINS_14container_itemISH_E4typeEEERKT1_(ptr dead_on_unwind writable sret(%"struct.wildcards::full_match_result.139") align 8 %25, ptr noundef nonnull align 8 dereferenceable(32) %99, ptr noundef nonnull align 8 dereferenceable(32) %100, ptr noundef nonnull align 1 dereferenceable(11) %26, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %102 unwind label %140

102:                                              ; preds = %101
  %103 = invoke noundef zeroext i1 @_ZNK9wildcards17full_match_resultIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESB_EcvbEv(ptr noundef nonnull align 8 dereferenceable(56) %25)
          to label %104 unwind label %140

104:                                              ; preds = %102
  br label %105

105:                                              ; preds = %104, %93, %84
  %106 = phi i1 [ true, %93 ], [ true, %84 ], [ %103, %104 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 11, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %25) #6
  br i1 %106, label %107, label %215

107:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %108 = load ptr, ptr %24, align 8, !tbaa !5
  %109 = call noundef ptr @_ZSt6get_ifINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS5_N2BT14TestNodeConfigESt10shared_ptrIS7_EEENSt11add_pointerIKT_E4typeEPKSt7variantIJDpT0_EE(ptr noundef %108) #6
  store ptr %109, ptr %28, align 8, !tbaa !5
  %110 = load ptr, ptr %28, align 8, !tbaa !5
  %111 = icmp ne ptr %110, null
  br i1 %111, label %112, label %163

112:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %113 = getelementptr inbounds %"class.BT::BehaviorTreeFactory", ptr %44, i32 0, i32 0
  %114 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %113) #6
  %115 = getelementptr inbounds %"struct.BT::BehaviorTreeFactory::PImpl", ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %28, align 8, !tbaa !5
  %117 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS9_EERKS5_RKNS8_10NodeConfigEEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairISD_SJ_EEE4findESE_(ptr noundef nonnull align 8 dereferenceable(56) %115, ptr noundef nonnull align 8 dereferenceable(32) %116)
          to label %118 unwind label %145

118:                                              ; preds = %112
  %119 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %29, i32 0, i32 0
  %120 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %119, i32 0, i32 0
  store ptr %117, ptr %120, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %121 = getelementptr inbounds %"class.BT::BehaviorTreeFactory", ptr %44, i32 0, i32 0
  %122 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %121) #6
  %123 = getelementptr inbounds %"struct.BT::BehaviorTreeFactory::PImpl", ptr %122, i32 0, i32 0
  %124 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS9_EERKS5_RKNS8_10NodeConfigEEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairISD_SJ_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %123) #6
  %125 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %30, i32 0, i32 0
  %126 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %125, i32 0, i32 0
  store ptr %124, ptr %126, align 8
  %127 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteISC_EERS8_RKNSB_10NodeConfigEEEELb1EEESP_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br i1 %127, label %128, label %153

128:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %129 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteISC_EERS8_RKNSB_10NodeConfigEEEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  %130 = getelementptr inbounds %"struct.std::pair", ptr %129, i32 0, i32 1
  store ptr %130, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %131 = load ptr, ptr %31, align 8, !tbaa !5
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZNKSt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS2_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS1_10NodeConfigEEEclESD_SG_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.117") align 8 %32, ptr noundef nonnull align 8 dereferenceable(32) %131, ptr noundef nonnull align 8 dereferenceable(32) %132, ptr noundef nonnull align 8 dereferenceable(344) %133)
          to label %134 unwind label %149

134:                                              ; preds = %128
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  call void @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %161

136:                                              ; preds = %97
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %13, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %14, align 4
  br label %144

140:                                              ; preds = %102, %101
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %13, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  br label %144

144:                                              ; preds = %140, %136
  call void @llvm.lifetime.end.p0(i64 11, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %25) #6
  br label %221

145:                                              ; preds = %156, %112
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %13, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %14, align 4
  br label %162

149:                                              ; preds = %128
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %13, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %162

153:                                              ; preds = %118
  %154 = call ptr @__cxa_allocate_exception(i64 40) #6
  %155 = load ptr, ptr %28, align 8, !tbaa !5
  invoke void @_ZN2BT12RuntimeErrorC2IJA22_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEA12_cEEEDpRKT_(ptr noundef nonnull align 8 dereferenceable(40) %154, ptr noundef nonnull align 1 dereferenceable(22) @.str.61, ptr noundef nonnull align 8 dereferenceable(32) %155, ptr noundef nonnull align 1 dereferenceable(12) @.str.62)
          to label %156 unwind label %157

156:                                              ; preds = %153
  invoke void @__cxa_throw(ptr %154, ptr @_ZTIN2BT12RuntimeErrorE, ptr @_ZN2BT21BehaviorTreeExceptionD2Ev) #7
          to label %312 unwind label %145

157:                                              ; preds = %153
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %13, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %14, align 4
  call void @__cxa_free_exception(ptr %154) #6
  br label %162

161:                                              ; preds = %134
  store i8 1, ptr %17, align 1, !tbaa !14
  store i32 2, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %213

162:                                              ; preds = %157, %149, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %214

163:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %164 = load ptr, ptr %24, align 8, !tbaa !5
  %165 = call noundef ptr @_ZSt6get_ifIN2BT14TestNodeConfigEJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES1_St10shared_ptrIS1_EEENSt11add_pointerIKT_E4typeEPKSt7variantIJDpT0_EE(ptr noundef %164) #6
  store ptr %165, ptr %33, align 8, !tbaa !5
  %166 = load ptr, ptr %33, align 8, !tbaa !5
  %167 = icmp ne ptr %166, null
  br i1 %167, label %168, label %184

168:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #6
  %171 = load ptr, ptr %33, align 8, !tbaa !5
  invoke void @_ZSt11make_sharedIN2BT14TestNodeConfigEJRKS1_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES6_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.176") align 8 %35, ptr noundef nonnull align 8 dereferenceable(144) %171)
          to label %172 unwind label %175

172:                                              ; preds = %168
  invoke void @_ZSt11make_uniqueIN2BT8TestNodeEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_10NodeConfigESt10shared_ptrINS0_14TestNodeConfigEEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.168") align 8 %34, ptr noundef nonnull align 8 dereferenceable(32) %169, ptr noundef nonnull align 8 dereferenceable(344) %170, ptr noundef nonnull align 8 dereferenceable(16) %35)
          to label %173 unwind label %179

173:                                              ; preds = %172
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEaSINS0_8TestNodeES2_IS6_EEENSt9enable_ifIXsr6__and_ISt6__and_IJSt14is_convertibleINS_IT_T0_E7pointerEPS1_ESt6__not_ISt8is_arrayISB_EEEESt13is_assignableIRS3_OSC_EEE5valueERS4_E4typeEOSD_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %34) #6
  call void @_ZNSt10unique_ptrIN2BT8TestNodeESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #6
  call void @_ZNSt12__shared_ptrIN2BT14TestNodeConfigELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  store i8 1, ptr %17, align 1, !tbaa !14
  store i32 2, ptr %21, align 4
  br label %211

175:                                              ; preds = %168
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %13, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %14, align 4
  br label %183

179:                                              ; preds = %172
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %13, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %14, align 4
  call void @_ZNSt12__shared_ptrIN2BT14TestNodeConfigELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #6
  br label %183

183:                                              ; preds = %179, %175
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %212

184:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %185 = load ptr, ptr %24, align 8, !tbaa !5
  %186 = call noundef ptr @_ZSt6get_ifISt10shared_ptrIN2BT14TestNodeConfigEEJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES2_S3_EENSt11add_pointerIKT_E4typeEPKSt7variantIJDpT0_EE(ptr noundef %185) #6
  store ptr %186, ptr %36, align 8, !tbaa !5
  %187 = load ptr, ptr %36, align 8, !tbaa !5
  %188 = icmp ne ptr %187, null
  br i1 %188, label %189, label %199

189:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %190 = load ptr, ptr %8, align 8, !tbaa !5
  %191 = load ptr, ptr %10, align 8, !tbaa !5
  %192 = load ptr, ptr %36, align 8, !tbaa !5
  invoke void @_ZSt11make_uniqueIN2BT8TestNodeEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_10NodeConfigERKSt10shared_ptrINS0_14TestNodeConfigEEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.168") align 8 %37, ptr noundef nonnull align 8 dereferenceable(32) %190, ptr noundef nonnull align 8 dereferenceable(344) %191, ptr noundef nonnull align 8 dereferenceable(16) %192)
          to label %193 unwind label %195

193:                                              ; preds = %189
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEaSINS0_8TestNodeES2_IS6_EEENSt9enable_ifIXsr6__and_ISt6__and_IJSt14is_convertibleINS_IT_T0_E7pointerEPS1_ESt6__not_ISt8is_arrayISB_EEEESt13is_assignableIRS3_OSC_EEE5valueERS4_E4typeEOSD_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %37) #6
  call void @_ZNSt10unique_ptrIN2BT8TestNodeESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  store i8 1, ptr %17, align 1, !tbaa !14
  store i32 2, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %211

195:                                              ; preds = %189
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %13, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  br label %210

199:                                              ; preds = %184
  %200 = call ptr @__cxa_allocate_exception(i64 40) #6
  invoke void @_ZN2BT10LogicErrorC2IJA54_cEEEDpRKT_(ptr noundef nonnull align 8 dereferenceable(40) %200, ptr noundef nonnull align 1 dereferenceable(54) @.str.63)
          to label %201 unwind label %202

201:                                              ; preds = %199
  invoke void @__cxa_throw(ptr %200, ptr @_ZTIN2BT10LogicErrorE, ptr @_ZN2BT21BehaviorTreeExceptionD2Ev) #7
          to label %312 unwind label %206

202:                                              ; preds = %199
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %13, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %14, align 4
  call void @__cxa_free_exception(ptr %200) #6
  br label %210

206:                                              ; preds = %201
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %13, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %14, align 4
  br label %210

210:                                              ; preds = %206, %202, %195
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %212

211:                                              ; preds = %193, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %213

212:                                              ; preds = %210, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %214

213:                                              ; preds = %211, %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %216

214:                                              ; preds = %212, %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %221

215:                                              ; preds = %105
  store i32 0, ptr %21, align 4
  br label %216

216:                                              ; preds = %215, %213
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  %217 = load i32, ptr %21, align 4
  switch i32 %217, label %222 [
    i32 0, label %218
  ]

218:                                              ; preds = %216
  br label %219

219:                                              ; preds = %218
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS7_N2BT14TestNodeConfigESt10shared_ptrISB_EEEELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br label %81

221:                                              ; preds = %214, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %303

222:                                              ; preds = %216, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %223

223:                                              ; preds = %222
  %224 = load i8, ptr %17, align 1, !tbaa !14, !range !16, !noundef !17
  %225 = trunc i8 %224 to i1
  br i1 %225, label %261, label %226

226:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  %227 = getelementptr inbounds %"class.BT::BehaviorTreeFactory", ptr %44, i32 0, i32 0
  %228 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %227) #6
  %229 = getelementptr inbounds %"struct.BT::BehaviorTreeFactory::PImpl", ptr %228, i32 0, i32 0
  %230 = load ptr, ptr %9, align 8, !tbaa !5
  %231 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS9_EERKS5_RKNS8_10NodeConfigEEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairISD_SJ_EEE4findESE_(ptr noundef nonnull align 8 dereferenceable(56) %229, ptr noundef nonnull align 8 dereferenceable(32) %230)
          to label %232 unwind label %244

232:                                              ; preds = %226
  %233 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %38, i32 0, i32 0
  %234 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %233, i32 0, i32 0
  store ptr %231, ptr %234, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  %235 = getelementptr inbounds %"class.BT::BehaviorTreeFactory", ptr %44, i32 0, i32 0
  %236 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %235) #6
  %237 = getelementptr inbounds %"struct.BT::BehaviorTreeFactory::PImpl", ptr %236, i32 0, i32 0
  %238 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS9_EERKS5_RKNS8_10NodeConfigEEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairISD_SJ_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %237) #6
  %239 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %39, i32 0, i32 0
  %240 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %239, i32 0, i32 0
  store ptr %238, ptr %240, align 8
  %241 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteISC_EERS8_RKNSB_10NodeConfigEEEELb1EEESP_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br i1 %241, label %242, label %248

242:                                              ; preds = %232
  invoke void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEENK3$_1clEv"(ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %243 unwind label %244

243:                                              ; preds = %242
  br label %248

244:                                              ; preds = %242, %226
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %13, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %14, align 4
  br label %260

248:                                              ; preds = %243, %232
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  %249 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteISC_EERS8_RKNSB_10NodeConfigEEEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #6
  %250 = getelementptr inbounds %"struct.std::pair", ptr %249, i32 0, i32 1
  store ptr %250, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  %251 = load ptr, ptr %40, align 8, !tbaa !5
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  %253 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZNKSt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS2_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS1_10NodeConfigEEEclESD_SG_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.117") align 8 %41, ptr noundef nonnull align 8 dereferenceable(32) %251, ptr noundef nonnull align 8 dereferenceable(32) %252, ptr noundef nonnull align 8 dereferenceable(344) %253)
          to label %254 unwind label %256

254:                                              ; preds = %248
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %41) #6
  call void @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  br label %261

256:                                              ; preds = %248
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %13, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  br label %260

260:                                              ; preds = %256, %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  br label %303

261:                                              ; preds = %254, %223
  %262 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %263 = load ptr, ptr %9, align 8, !tbaa !5
  %264 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %263) #6
  %265 = getelementptr inbounds { i64, ptr }, ptr %42, i32 0, i32 0
  %266 = extractvalue { i64, ptr } %264, 0
  store i64 %266, ptr %265, align 8
  %267 = getelementptr inbounds { i64, ptr }, ptr %42, i32 0, i32 1
  %268 = extractvalue { i64, ptr } %264, 1
  store ptr %268, ptr %267, align 8
  %269 = getelementptr inbounds { i64, ptr }, ptr %42, i32 0, i32 0
  %270 = load i64, ptr %269, align 8
  %271 = getelementptr inbounds { i64, ptr }, ptr %42, i32 0, i32 1
  %272 = load ptr, ptr %271, align 8
  invoke void @_ZN2BT8TreeNode17setRegistrationIDESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(16) %262, i64 %270, ptr %272)
          to label %273 unwind label %295

273:                                              ; preds = %261
  %274 = getelementptr inbounds %"class.BT::BehaviorTreeFactory", ptr %44, i32 0, i32 0
  %275 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %274) #6
  %276 = getelementptr inbounds %"struct.BT::BehaviorTreeFactory::PImpl", ptr %275, i32 0, i32 4
  %277 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %278 = invoke noundef nonnull align 8 dereferenceable(344) ptr @_ZN2BT8TreeNode6configEv(ptr noundef nonnull align 8 dereferenceable(16) %277)
          to label %279 unwind label %295

279:                                              ; preds = %273
  %280 = getelementptr inbounds %"struct.BT::NodeConfig", ptr %278, i32 0, i32 1
  %281 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrISt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_iEEEEaSERKSG_(ptr noundef nonnull align 8 dereferenceable(16) %280, ptr noundef nonnull align 8 dereferenceable(16) %276) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %43) #6
  %282 = load ptr, ptr %10, align 8, !tbaa !5
  %283 = getelementptr inbounds %"struct.BT::NodeConfig", ptr %282, i32 0, i32 8
  %284 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %285 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZN2BT8TreeNode20preConditionsScriptsEv(ptr noundef nonnull align 8 dereferenceable(16) %284)
          to label %286 unwind label %299

286:                                              ; preds = %279
  invoke void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEENK3$_0clIKSt3mapINS_7PreCondES6_St4lessISF_ESaISt4pairIKSF_S6_EEESt5arrayISt8functionIFNS_3AnyERNS_3Ast11EnvironmentEEELm4EEEEDaRT_RT0_"(ptr noundef nonnull align 1 dereferenceable(1) %43, ptr noundef nonnull align 8 dereferenceable(48) %283, ptr noundef nonnull align 8 dereferenceable(128) %285)
          to label %287 unwind label %299

287:                                              ; preds = %286
  %288 = load ptr, ptr %10, align 8, !tbaa !5
  %289 = getelementptr inbounds %"struct.BT::NodeConfig", ptr %288, i32 0, i32 9
  %290 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %291 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZN2BT8TreeNode21postConditionsScriptsEv(ptr noundef nonnull align 8 dereferenceable(16) %290)
          to label %292 unwind label %299

292:                                              ; preds = %287
  invoke void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEENK3$_0clIKSt3mapINS_8PostCondES6_St4lessISF_ESaISt4pairIKSF_S6_EEESt5arrayISt8functionIFNS_3AnyERNS_3Ast11EnvironmentEEELm4EEEEDaRT_RT0_"(ptr noundef nonnull align 1 dereferenceable(1) %43, ptr noundef nonnull align 8 dereferenceable(48) %289, ptr noundef nonnull align 8 dereferenceable(128) %291)
          to label %293 unwind label %299

293:                                              ; preds = %292
  store i1 true, ptr %16, align 1
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  %294 = load i1, ptr %16, align 1
  br i1 %294, label %305, label %304

295:                                              ; preds = %273, %261
  %296 = landingpad { ptr, i32 }
          cleanup
  %297 = extractvalue { ptr, i32 } %296, 0
  store ptr %297, ptr %13, align 8
  %298 = extractvalue { ptr, i32 } %296, 1
  store i32 %298, ptr %14, align 4
  br label %303

299:                                              ; preds = %292, %287, %286, %279
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %13, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #6
  br label %303

303:                                              ; preds = %299, %295, %260, %221
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  br label %306

304:                                              ; preds = %293
  call void @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  br label %305

305:                                              ; preds = %304, %293
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #6
  ret void

306:                                              ; preds = %303, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #6
  br label %307

307:                                              ; preds = %306
  %308 = load ptr, ptr %13, align 8
  %309 = load i32, ptr %14, align 4
  %310 = insertvalue { ptr, i32 } poison, ptr %308, 0
  %311 = insertvalue { ptr, i32 } %310, i32 %309, 1
  resume { ptr, i32 } %311

312:                                              ; preds = %201, %156
  unreachable
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEENK3$_1clEv"(ptr noundef nonnull align 8 dereferenceable(40)) #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS5_N2BT14TestNodeConfigESt10shared_ptrIS9_EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSH_(ptr noundef nonnull align 8 dereferenceable(184)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(145) ptr @_ZSt3getILm1EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS5_N2BT14TestNodeConfigESt10shared_ptrIS9_EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSH_(ptr noundef nonnull align 8 dereferenceable(184)) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9wildcards5matchIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_N2cx8equal_toIvEEEENS_17full_match_resultINS_14const_iteratorIT_E4typeENSD_IT0_E4typeEEEOSE_OSH_RKNS_5cardsINS_14container_itemISH_E4typeEEERKT1_(ptr dead_on_unwind noalias writable sret(%"struct.wildcards::full_match_result.139") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(11), ptr noundef nonnull align 1 dereferenceable(1)) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZSt6get_ifINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS5_N2BT14TestNodeConfigESt10shared_ptrIS7_EEENSt11add_pointerIKT_E4typeEPKSt7variantIJDpT0_EE(ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS2_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS1_10NodeConfigEEEclESD_SG_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.117") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(344)) #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZSt6get_ifIN2BT14TestNodeConfigEJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES1_St10shared_ptrIS1_EEENSt11add_pointerIKT_E4typeEPKSt7variantIJDpT0_EE(ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN2BT8TestNodeEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_10NodeConfigESt10shared_ptrINS0_14TestNodeConfigEEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.168") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(344), ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN2BT14TestNodeConfigEJRKS1_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES6_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.176") align 8, ptr noundef nonnull align 8 dereferenceable(144)) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZSt6get_ifISt10shared_ptrIN2BT14TestNodeConfigEEJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES2_S3_EENSt11add_pointerIKT_E4typeEPKSt7variantIJDpT0_EE(ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN2BT8TestNodeEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_10NodeConfigERKSt10shared_ptrINS0_14TestNodeConfigEEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.168") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(344), ptr noundef nonnull align 8 dereferenceable(16)) #4

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

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

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

declare void @_ZN2BT8TreeNode17setRegistrationIDESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(16), i64, ptr) #5

; Function Attrs: mustprogress nounwind uwtable
declare { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

declare noundef nonnull align 8 dereferenceable(344) ptr @_ZN2BT8TreeNode6configEv(ptr noundef nonnull align 8 dereferenceable(16)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEENK3$_0clIKSt3mapINS_7PreCondES6_St4lessISF_ESaISt4pairIKSF_S6_EEESt5arrayISt8functionIFNS_3AnyERNS_3Ast11EnvironmentEEELm4EEEEDaRT_RT0_"(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(128)) #4 align 2

declare noundef nonnull align 8 dereferenceable(128) ptr @_ZN2BT8TreeNode20preConditionsScriptsEv(ptr noundef nonnull align 8 dereferenceable(16)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEENK3$_0clIKSt3mapINS_8PostCondES6_St4lessISF_ESaISt4pairIKSF_S6_EEESt5arrayISt8functionIFNS_3AnyERNS_3Ast11EnvironmentEEELm4EEEEDaRT_RT0_"(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(128)) #4 align 2

declare noundef nonnull align 8 dereferenceable(128) ptr @_ZN2BT8TreeNode21postConditionsScriptsEv(ptr noundef nonnull align 8 dereferenceable(16)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn }

!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, !6, i64 0}
!10 = !{!"_ZTSZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEE3$_1", !6, i64 0, !11, i64 8}
!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 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}


; 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::unique_ptr.117" = type { %"struct.std::__uniq_ptr_data.118" }
%"struct.std::__uniq_ptr_data.118" = type { %"class.std::__uniq_ptr_impl.119" }
%"class.std::__uniq_ptr_impl.119" = type { %"class.std::tuple.120" }
%"class.std::tuple.120" = type { %"struct.std::_Tuple_impl.121" }
%"struct.std::_Tuple_impl.121" = type { %"struct.std::_Head_base.124" }
%"struct.std::_Head_base.124" = type { ptr }
%class.anon.125 = type { ptr, %"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] }
%"struct.std::__detail::_Node_iterator.92" = type { %"struct.std::__detail::_Node_iterator_base.93" }
%"struct.std::__detail::_Node_iterator_base.93" = type { ptr }
%"struct.std::__detail::_Node_iterator.126" = type { %"struct.std::__detail::_Node_iterator_base.127" }
%"struct.std::__detail::_Node_iterator_base.127" = type { ptr }
%"struct.wildcards::full_match_result.139" = type { i8, %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.wildcards::cards" = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%"struct.cx::equal_to" = type { i8 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::unique_ptr.168" = type { %"struct.std::__uniq_ptr_data.169" }
%"struct.std::__uniq_ptr_data.169" = type { %"class.std::__uniq_ptr_impl.170" }
%"class.std::__uniq_ptr_impl.170" = type { %"class.std::tuple.171" }
%"class.std::tuple.171" = type { %"struct.std::_Tuple_impl.172" }
%"struct.std::_Tuple_impl.172" = type { %"struct.std::_Head_base.175" }
%"struct.std::_Head_base.175" = type { ptr }
%"class.std::shared_ptr.176" = type { %"class.std::__shared_ptr.177" }
%"class.std::__shared_ptr.177" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.anon.181 = type { i8 }

@_ZTIN2BT10LogicErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN2BT12RuntimeErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.61 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [54 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

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 nounwind uwtable
declare dso_local void @_ZN9wildcards5cardsIcEC2ENS_10cards_typeE(ptr noundef nonnull align 1 dereferenceable(11), i32 noundef) unnamed_addr #1 align 2

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_free_exception(ptr) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigE(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.117") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(344) %4) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %class.anon.125, align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator.92", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator.92", align 8
  %9 = alloca %"struct.std::__detail::_Node_iterator.126", align 8
  %10 = alloca %"struct.std::__detail::_Node_iterator.126", align 8
  %11 = alloca %"struct.wildcards::full_match_result.139", align 8
  %12 = alloca %"struct.wildcards::cards", align 1
  %13 = alloca %"struct.cx::equal_to", align 1
  %14 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %15 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %16 = alloca %"class.std::unique_ptr.117", align 8
  %17 = alloca %"class.std::unique_ptr.168", align 8
  %18 = alloca %"class.std::shared_ptr.176", align 8
  %19 = alloca %"class.std::unique_ptr.168", align 8
  %20 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %21 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %22 = alloca %"class.std::unique_ptr.117", align 8
  %23 = alloca %class.anon.181, align 1
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #6
  store ptr %1, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %6, i64 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %25 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %26 = getelementptr inbounds i8, ptr %25, i64 56
  %27 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2BT16TreeNodeManifestESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE4findERSD_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %28 unwind label %34

28:                                               ; preds = %5
  store ptr %27, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %29 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %30 = getelementptr inbounds i8, ptr %29, i64 56
  %31 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2BT16TreeNodeManifestESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %30) #6
  store ptr %31, ptr %8, align 8
  %32 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2BT16TreeNodeManifestEELb1EEESE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br i1 %32, label %33, label %36

33:                                               ; preds = %28
  invoke void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEENK3$_1clEv"(ptr noundef nonnull align 8 dereferenceable(40) %6)
          to label %36 unwind label %34

34:                                               ; preds = %33, %5
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %152

36:                                               ; preds = %33, %28
  call void @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %37 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %38 = getelementptr inbounds i8, ptr %37, i64 248
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %39 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS5_N2BT14TestNodeConfigESt10shared_ptrIS8_EEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SB_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %38) #6
  store ptr %39, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %40 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS5_N2BT14TestNodeConfigESt10shared_ptrIS8_EEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SB_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %38) #6
  store ptr %40, ptr %10, align 8
  %41 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS7_N2BT14TestNodeConfigESt10shared_ptrISB_EEEELb1EEESI_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %41, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %36
  %42 = getelementptr inbounds i8, ptr %4, i64 216
  br label %43

43:                                               ; preds = %.lr.ph, %103
  %44 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS7_N2BT14TestNodeConfigESt10shared_ptrISB_EEEELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %45 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS5_N2BT14TestNodeConfigESt10shared_ptrIS9_EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSH_(ptr noundef nonnull align 8 dereferenceable(184) %44) #6
  %46 = call noundef nonnull align 8 dereferenceable(145) ptr @_ZSt3getILm1EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS5_N2BT14TestNodeConfigESt10shared_ptrIS9_EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSH_(ptr noundef nonnull align 8 dereferenceable(184) %44) #6
  %47 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 11, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  br i1 %47, label %.critedge, label %48

48:                                               ; preds = %43
  %49 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  br i1 %49, label %.critedge, label %50

50:                                               ; preds = %48
  call void @_ZN9wildcards5cardsIcEC2ENS_10cards_typeE(ptr noundef nonnull align 1 dereferenceable(11) %12, i32 noundef 1)
  invoke void @_ZN9wildcards5matchIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_N2cx8equal_toIvEEEENS_17full_match_resultINS_14const_iteratorIT_E4typeENSD_IT0_E4typeEEEOSE_OSH_RKNS_5cardsINS_14container_itemISH_E4typeEEERKT1_(ptr dead_on_unwind nonnull writable sret(%"struct.wildcards::full_match_result.139") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef nonnull align 1 dereferenceable(11) %12, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %51 unwind label %66

51:                                               ; preds = %50
  %52 = call noundef zeroext i1 @_ZNK9wildcards17full_match_resultIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESB_EcvbEv(ptr noundef nonnull align 8 dereferenceable(56) %11)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 11, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %11) #6
  br i1 %52, label %.loopexit, label %103

.critedge:                                        ; preds = %43, %48
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 11, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %11) #6
  br label %.loopexit

.loopexit:                                        ; preds = %51, %.critedge
  %53 = call noundef ptr @_ZSt6get_ifINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS5_N2BT14TestNodeConfigESt10shared_ptrIS7_EEENSt11add_pointerIKT_E4typeEPKSt7variantIJDpT0_EE(ptr noundef nonnull %46) #6
  %.not = icmp eq ptr %53, null
  br i1 %.not, label %78, label %54

54:                                               ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %55 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %56 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS9_EERKS5_RKNS8_10NodeConfigEEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairISD_SJ_EEE4findESE_(ptr noundef nonnull align 8 dereferenceable(56) %55, ptr noundef nonnull align 8 dereferenceable(32) %53)
          to label %57 unwind label %68

57:                                               ; preds = %54
  store ptr %56, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %58 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %59 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS9_EERKS5_RKNS8_10NodeConfigEEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairISD_SJ_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %58) #6
  store ptr %59, ptr %15, align 8
  %60 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteISC_EERS8_RKNSB_10NodeConfigEEEELb1EEESP_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br i1 %60, label %61, label %72

61:                                               ; preds = %57
  %62 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteISC_EERS8_RKNSB_10NodeConfigEEEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %63 = getelementptr inbounds i8, ptr %62, i64 32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  invoke void @_ZNKSt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS2_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS1_10NodeConfigEEEclESD_SG_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.117") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %63, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(344) %4)
          to label %64 unwind label %70

64:                                               ; preds = %61
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %.thread78

66:                                               ; preds = %50
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 11, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %11) #6
  br label %106

68:                                               ; preds = %74, %54
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %77

70:                                               ; preds = %61
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  br label %77

72:                                               ; preds = %57
  %73 = call ptr @__cxa_allocate_exception(i64 40) #6
  invoke void @_ZN2BT12RuntimeErrorC2IJA22_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEA12_cEEEDpRKT_(ptr noundef nonnull align 8 dereferenceable(40) %73, ptr noundef nonnull align 1 dereferenceable(22) @.str.61, ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 1 dereferenceable(12) @.str.62)
          to label %74 unwind label %75

74:                                               ; preds = %72
  invoke void @__cxa_throw(ptr nonnull %73, ptr nonnull @_ZTIN2BT12RuntimeErrorE, ptr nonnull @_ZN2BT21BehaviorTreeExceptionD2Ev) #7
          to label %153 unwind label %68

75:                                               ; preds = %72
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %73) #6
  br label %77

77:                                               ; preds = %75, %70, %68
  %.pn67 = phi { ptr, i32 } [ %71, %70 ], [ %69, %68 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %106

78:                                               ; preds = %.loopexit
  %79 = call noundef ptr @_ZSt6get_ifIN2BT14TestNodeConfigEJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES1_St10shared_ptrIS1_EEENSt11add_pointerIKT_E4typeEPKSt7variantIJDpT0_EE(ptr noundef nonnull %46) #6
  %.not61 = icmp eq ptr %79, null
  br i1 %.not61, label %89, label %80

80:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #6
  invoke void @_ZSt11make_sharedIN2BT14TestNodeConfigEJRKS1_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES6_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.176") align 8 %18, ptr noundef nonnull align 8 dereferenceable(144) %79)
          to label %81 unwind label %84

81:                                               ; preds = %80
  invoke void @_ZSt11make_uniqueIN2BT8TestNodeEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_10NodeConfigESt10shared_ptrINS0_14TestNodeConfigEEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.168") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(344) %4, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %82 unwind label %86

82:                                               ; preds = %81
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEaSINS0_8TestNodeES2_IS6_EEENSt9enable_ifIXsr6__and_ISt6__and_IJSt14is_convertibleINS_IT_T0_E7pointerEPS1_ESt6__not_ISt8is_arrayISB_EEEESt13is_assignableIRS3_OSC_EEE5valueERS4_E4typeEOSD_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @_ZNSt10unique_ptrIN2BT8TestNodeESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @_ZNSt12__shared_ptrIN2BT14TestNodeConfigELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %.thread78

84:                                               ; preds = %80
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %88

86:                                               ; preds = %81
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN2BT14TestNodeConfigELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  br label %88

88:                                               ; preds = %86, %84
  %.pn64 = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %106

89:                                               ; preds = %78
  %90 = call noundef ptr @_ZSt6get_ifISt10shared_ptrIN2BT14TestNodeConfigEEJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES2_S3_EENSt11add_pointerIKT_E4typeEPKSt7variantIJDpT0_EE(ptr noundef nonnull %46) #6
  %.not62 = icmp eq ptr %90, null
  br i1 %.not62, label %96, label %91

91:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  invoke void @_ZSt11make_uniqueIN2BT8TestNodeEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_10NodeConfigERKSt10shared_ptrINS0_14TestNodeConfigEEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.168") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(344) %4, ptr noundef nonnull align 8 dereferenceable(16) %90)
          to label %92 unwind label %94

92:                                               ; preds = %91
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEaSINS0_8TestNodeES2_IS6_EEENSt9enable_ifIXsr6__and_ISt6__and_IJSt14is_convertibleINS_IT_T0_E7pointerEPS1_ESt6__not_ISt8is_arrayISB_EEEESt13is_assignableIRS3_OSC_EEE5valueERS4_E4typeEOSD_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  call void @_ZNSt10unique_ptrIN2BT8TestNodeESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  br label %.thread78

94:                                               ; preds = %91
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  br label %106

96:                                               ; preds = %89
  %97 = call ptr @__cxa_allocate_exception(i64 40) #6
  invoke void @_ZN2BT10LogicErrorC2IJA54_cEEEDpRKT_(ptr noundef nonnull align 8 dereferenceable(40) %97, ptr noundef nonnull align 1 dereferenceable(54) @.str.63)
          to label %98 unwind label %99

98:                                               ; preds = %96
  invoke void @__cxa_throw(ptr nonnull %97, ptr nonnull @_ZTIN2BT10LogicErrorE, ptr nonnull @_ZN2BT21BehaviorTreeExceptionD2Ev) #7
          to label %153 unwind label %101

99:                                               ; preds = %96
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %97) #6
  br label %106

101:                                              ; preds = %98
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %106

.thread78:                                        ; preds = %64, %92, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %124

103:                                              ; preds = %51
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS7_N2BT14TestNodeConfigESt10shared_ptrISB_EEEELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %105 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS7_N2BT14TestNodeConfigESt10shared_ptrISB_EEEELb1EEESI_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %105, label %43, label %._crit_edge

106:                                              ; preds = %77, %94, %99, %101, %88, %66
  %.pn67.pn.pn = phi { ptr, i32 } [ %67, %66 ], [ %.pn67, %77 ], [ %.pn64, %88 ], [ %95, %94 ], [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %151

._crit_edge:                                      ; preds = %103, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  %107 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %108 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS9_EERKS5_RKNS8_10NodeConfigEEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairISD_SJ_EEE4findESE_(ptr noundef nonnull align 8 dereferenceable(56) %107, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %109 unwind label %114

109:                                              ; preds = %._crit_edge
  store ptr %108, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  %110 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %111 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS9_EERKS5_RKNS8_10NodeConfigEEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairISD_SJ_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %110) #6
  store ptr %111, ptr %21, align 8
  %112 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteISC_EERS8_RKNSB_10NodeConfigEEEELb1EEESP_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  br i1 %112, label %113, label %116

113:                                              ; preds = %109
  invoke void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEENK3$_1clEv"(ptr noundef nonnull align 8 dereferenceable(40) %6)
          to label %116 unwind label %114

114:                                              ; preds = %113, %._crit_edge
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %123

116:                                              ; preds = %113, %109
  %117 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteISC_EERS8_RKNSB_10NodeConfigEEEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  %118 = getelementptr inbounds i8, ptr %117, i64 32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  invoke void @_ZNKSt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS2_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS1_10NodeConfigEEEclESD_SG_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.117") align 8 %22, ptr noundef nonnull align 8 dereferenceable(32) %118, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(344) %4)
          to label %119 unwind label %121

119:                                              ; preds = %116
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  br label %124

121:                                              ; preds = %116
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  br label %123

123:                                              ; preds = %121, %114
  %.pn71 = phi { ptr, i32 } [ %122, %121 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  br label %151

124:                                              ; preds = %.thread78, %119
  %125 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %126 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %127 = extractvalue { i64, ptr } %126, 0
  %128 = extractvalue { i64, ptr } %126, 1
  invoke void @_ZN2BT8TreeNode17setRegistrationIDESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(16) %125, i64 %127, ptr %128)
          to label %129 unwind label %147

129:                                              ; preds = %124
  %130 = call noundef ptr @_ZNKSt10unique_ptrIN2BT19BehaviorTreeFactory5PImplESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %131 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %132 = invoke noundef nonnull align 8 dereferenceable(344) ptr @_ZN2BT8TreeNode6configEv(ptr noundef nonnull align 8 dereferenceable(16) %131)
          to label %133 unwind label %147

133:                                              ; preds = %129
  %134 = getelementptr inbounds i8, ptr %130, i64 216
  %135 = getelementptr inbounds i8, ptr %132, i64 16
  %136 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrISt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_iEEEEaSERKSG_(ptr noundef nonnull align 8 dereferenceable(16) %135, ptr noundef nonnull align 8 dereferenceable(16) %134) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #6
  %137 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %138 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZN2BT8TreeNode20preConditionsScriptsEv(ptr noundef nonnull align 8 dereferenceable(16) %137)
          to label %139 unwind label %149

139:                                              ; preds = %133
  %140 = getelementptr inbounds i8, ptr %4, i64 248
  invoke void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEENK3$_0clIKSt3mapINS_7PreCondES6_St4lessISF_ESaISt4pairIKSF_S6_EEESt5arrayISt8functionIFNS_3AnyERNS_3Ast11EnvironmentEEELm4EEEEDaRT_RT0_"(ptr noundef nonnull align 1 dereferenceable(1) %23, ptr noundef nonnull align 8 dereferenceable(48) %140, ptr noundef nonnull align 8 dereferenceable(128) %138)
          to label %141 unwind label %149

141:                                              ; preds = %139
  %142 = call noundef ptr @_ZNKSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %143 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZN2BT8TreeNode21postConditionsScriptsEv(ptr noundef nonnull align 8 dereferenceable(16) %142)
          to label %144 unwind label %149

144:                                              ; preds = %141
  %145 = getelementptr inbounds i8, ptr %4, i64 296
  invoke void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEENK3$_0clIKSt3mapINS_8PostCondES6_St4lessISF_ESaISt4pairIKSF_S6_EEESt5arrayISt8functionIFNS_3AnyERNS_3Ast11EnvironmentEEELm4EEEEDaRT_RT0_"(ptr noundef nonnull align 1 dereferenceable(1) %23, ptr noundef nonnull align 8 dereferenceable(48) %145, ptr noundef nonnull align 8 dereferenceable(128) %143)
          to label %146 unwind label %149

146:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  ret void

147:                                              ; preds = %129, %124
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %151

149:                                              ; preds = %144, %141, %139, %133
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #6
  br label %151

151:                                              ; preds = %149, %147, %123, %106
  %.pn73 = phi { ptr, i32 } [ %150, %149 ], [ %148, %147 ], [ %.pn71, %123 ], [ %.pn67.pn.pn, %106 ]
  call void @_ZNSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  br label %152

152:                                              ; preds = %151, %34
  %.pn73.pn = phi { ptr, i32 } [ %.pn73, %151 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  resume { ptr, i32 } %.pn73.pn

153:                                              ; preds = %98, %74
  unreachable
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEENK3$_1clEv"(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS5_N2BT14TestNodeConfigESt10shared_ptrIS9_EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSH_(ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(145) ptr @_ZSt3getILm1EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt7variantIJS5_N2BT14TestNodeConfigESt10shared_ptrIS9_EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSH_(ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9wildcards5matchIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_N2cx8equal_toIvEEEENS_17full_match_resultINS_14const_iteratorIT_E4typeENSD_IT0_E4typeEEEOSE_OSH_RKNS_5cardsINS_14container_itemISH_E4typeEEERKT1_(ptr dead_on_unwind noalias writable sret(%"struct.wildcards::full_match_result.139") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(11), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZSt6get_ifINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS5_N2BT14TestNodeConfigESt10shared_ptrIS7_EEENSt11add_pointerIKT_E4typeEPKSt7variantIJDpT0_EE(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFSt10unique_ptrIN2BT8TreeNodeESt14default_deleteIS2_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS1_10NodeConfigEEEclESD_SG_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.117") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(344)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZSt6get_ifIN2BT14TestNodeConfigEJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES1_St10shared_ptrIS1_EEENSt11add_pointerIKT_E4typeEPKSt7variantIJDpT0_EE(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN2BT8TestNodeEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_10NodeConfigESt10shared_ptrINS0_14TestNodeConfigEEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.168") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(344), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN2BT14TestNodeConfigEJRKS1_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES6_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.176") align 8, ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZSt6get_ifISt10shared_ptrIN2BT14TestNodeConfigEEJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES2_S3_EENSt11add_pointerIKT_E4typeEPKSt7variantIJDpT0_EE(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN2BT8TestNodeEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_10NodeConfigERKSt10shared_ptrINS0_14TestNodeConfigEEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.168") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(344), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

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

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

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

declare void @_ZN2BT8TreeNode17setRegistrationIDESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(16), i64, ptr) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

declare noundef nonnull align 8 dereferenceable(344) ptr @_ZN2BT8TreeNode6configEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEENK3$_0clIKSt3mapINS_7PreCondES6_St4lessISF_ESaISt4pairIKSF_S6_EEESt5arrayISt8functionIFNS_3AnyERNS_3Ast11EnvironmentEEELm4EEEEDaRT_RT0_"(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #4 align 2

declare noundef nonnull align 8 dereferenceable(128) ptr @_ZN2BT8TreeNode20preConditionsScriptsEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEENK3$_0clIKSt3mapINS_8PostCondES6_St4lessISF_ESaISt4pairIKSF_S6_EEESt5arrayISt8functionIFNS_3AnyERNS_3Ast11EnvironmentEEELm4EEEEDaRT_RT0_"(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #4 align 2

declare noundef nonnull align 8 dereferenceable(128) ptr @_ZN2BT8TreeNode21postConditionsScriptsEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn }

!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, !7, i64 0}
!6 = !{!"_ZTSZNK2BT19BehaviorTreeFactory19instantiateTreeNodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_10NodeConfigEE3$_1", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !11, i64 0, !12, i64 8, !8, i64 16}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!12 = !{!"long", !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass