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

; 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.anon.109 = type { i8 }
%"class.tinyxml2::XMLDocument" = type { %"class.tinyxml2::XMLNode", i8, i8, i32, i32, %"class.tinyxml2::StrPair", i32, ptr, i32, i32, %"class.tinyxml2::DynArray", %"class.tinyxml2::MemPoolT", %"class.tinyxml2::MemPoolT.39", %"class.tinyxml2::MemPoolT.41", %"class.tinyxml2::MemPoolT.43" }
%"class.tinyxml2::XMLNode" = type { ptr, ptr, ptr, %"class.tinyxml2::StrPair", i32, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.tinyxml2::StrPair" = type { i32, ptr, ptr }
%"class.tinyxml2::DynArray" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.38", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::MemPool" = type { ptr }
%"class.tinyxml2::DynArray.38" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.39" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.40", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.40" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.41" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.42", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.42" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.43" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.44", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.44" = type { ptr, [10 x ptr], i32, i32 }
%class.anon = type { i8 }
%class.anon.107 = type { i8 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::function.111" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.114 = type { ptr, ptr, ptr, ptr, ptr }

@.str.12 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZTIN2BT12RuntimeErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.22 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZN2BT8StrEqualE = external hidden global %class.anon.109, align 1
@.str.35 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [53 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare void @_ZN8tinyxml211XMLDocumentC1EbNS_10WhitespaceE(ptr noundef nonnull align 8 dereferenceable(776), i1 noundef zeroext, i32 noundef) unnamed_addr #3

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

declare noundef i32 @_ZN8tinyxml211XMLDocument5ParseEPKcm(ptr noundef nonnull align 8 dereferenceable(776), ptr noundef, i64 noundef) #3

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

declare noundef ptr @_ZNK8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) #3

declare noundef ptr @_ZNK8tinyxml210XMLElement9AttributeEPKcS2_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, ptr noundef) #3

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_free_exception(ptr)

declare void @__cxa_throw(ptr, ptr, ptr)

declare noundef ptr @_ZNK8tinyxml27XMLNode18NextSiblingElementEPKc(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) #3

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2BT9VerifyXMLERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt13unordered_mapIS5_NS_8NodeTypeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIS6_S9_EEE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.tinyxml2::XMLDocument", align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca [512 x i8], align 16
  %10 = alloca %class.anon, align 1
  %11 = alloca %class.anon.107, align 1
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca ptr, align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator", align 1
  %20 = alloca ptr, align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator", align 1
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca %"class.std::function.111", align 8
  %26 = alloca %class.anon.114, align 8
  %27 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 776, ptr %5) #7
  call void @_ZN8tinyxml211XMLDocumentC1EbNS_10WhitespaceE(ptr noundef nonnull align 8 dereferenceable(776) %5, i1 noundef zeroext true, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %28) #7
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %30) #7
  %32 = invoke noundef i32 @_ZN8tinyxml211XMLDocument5ParseEPKcm(ptr noundef nonnull align 8 dereferenceable(776) %5, ptr noundef %29, i64 noundef %31)
          to label %33 unwind label %43

33:                                               ; preds = %2
  store i32 %32, ptr %6, align 4, !tbaa !9
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %56

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 512, ptr %9) #7
  %37 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
  %38 = invoke noundef ptr @_ZNK8tinyxml211XMLDocument9ErrorNameEv(ptr noundef nonnull align 8 dereferenceable(776) %5)
          to label %39 unwind label %47

39:                                               ; preds = %36
  %40 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %37, i64 noundef 512, ptr noundef @.str.22, ptr noundef %38) #7
  %41 = call ptr @__cxa_allocate_exception(i64 40) #7
  invoke void @_ZN2BT12RuntimeErrorC2IJA512_cEEEDpRKT_(ptr noundef nonnull align 8 dereferenceable(40) %41, ptr noundef nonnull align 1 dereferenceable(512) %9)
          to label %42 unwind label %51

42:                                               ; preds = %39
  invoke void @__cxa_throw(ptr %41, ptr @_ZTIN2BT12RuntimeErrorE, ptr @_ZN2BT21BehaviorTreeExceptionD2Ev) #8
          to label %260 unwind label %47

43:                                               ; preds = %2
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %7, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %8, align 4
  br label %254

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

51:                                               ; preds = %39
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %7, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %8, align 4
  call void @__cxa_free_exception(ptr %41) #7
  br label %55

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

56:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %57 = invoke noundef ptr @_ZN8tinyxml211XMLDocument11RootElementEv(ptr noundef nonnull align 8 dereferenceable(776) %5)
          to label %58 unwind label %70

58:                                               ; preds = %56
  store ptr %57, ptr %12, align 8, !tbaa !5
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %67

61:                                               ; preds = %58
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = invoke noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(120) %62)
          to label %64 unwind label %70

64:                                               ; preds = %61
  %65 = invoke noundef zeroext i1 @"_ZNK2BT3$_6clEPKcS2_"(ptr noundef nonnull align 1 dereferenceable(1) @_ZN2BT8StrEqualE, ptr noundef %63, ptr noundef @.str.35)
          to label %66 unwind label %70

66:                                               ; preds = %64
  br i1 %65, label %78, label %67

67:                                               ; preds = %66, %58
  %68 = call ptr @__cxa_allocate_exception(i64 40) #7
  invoke void @_ZN2BT12RuntimeErrorC2IJA44_cEEEDpRKT_(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef nonnull align 1 dereferenceable(44) @.str.36)
          to label %69 unwind label %74

69:                                               ; preds = %67
  invoke void @__cxa_throw(ptr %68, ptr @_ZTIN2BT12RuntimeErrorE, ptr @_ZN2BT21BehaviorTreeExceptionD2Ev) #8
          to label %260 unwind label %70

70:                                               ; preds = %69, %64, %61, %56
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %7, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %8, align 4
  br label %253

74:                                               ; preds = %67
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %7, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %8, align 4
  call void @__cxa_free_exception(ptr %68) #7
  br label %253

78:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = invoke noundef ptr @_ZNK8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %79, ptr noundef @.str.12)
          to label %81 unwind label %99

81:                                               ; preds = %78
  store ptr %80, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %88

84:                                               ; preds = %81
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = invoke noundef ptr @_ZNK8tinyxml27XMLNode18NextSiblingElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %85, ptr noundef @.str.12)
          to label %87 unwind label %103

87:                                               ; preds = %84
  br label %89

88:                                               ; preds = %81
  br label %89

89:                                               ; preds = %88, %87
  %90 = phi ptr [ %86, %87 ], [ null, %88 ]
  store ptr %90, ptr %14, align 8, !tbaa !5
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %116

93:                                               ; preds = %89
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = invoke noundef i32 @_ZNK8tinyxml27XMLNode10GetLineNumEv(ptr noundef nonnull align 8 dereferenceable(104) %94)
          to label %96 unwind label %103

96:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str.37, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %97 unwind label %107

97:                                               ; preds = %96
  invoke void @"_ZZN2BT9VerifyXMLERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt13unordered_mapIS5_NS_8NodeTypeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIS6_S9_EEEENK3$_1clEiS7_"(ptr noundef nonnull align 1 dereferenceable(1) %10, i32 noundef %95, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %98 unwind label %111

98:                                               ; preds = %97
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %116

99:                                               ; preds = %78
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %7, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %8, align 4
  br label %252

103:                                              ; preds = %93, %84
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %7, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %8, align 4
  br label %251

107:                                              ; preds = %96
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %7, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %8, align 4
  br label %115

111:                                              ; preds = %97
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %7, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %115

115:                                              ; preds = %111, %107
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %251

116:                                              ; preds = %98, %89
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = icmp ne ptr %117, null
  br i1 %118, label %119, label %198

119:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = invoke noundef ptr @_ZNK8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %120, ptr noundef null)
          to label %122 unwind label %127

122:                                              ; preds = %119
  store ptr %121, ptr %17, align 8, !tbaa !5
  br label %123

123:                                              ; preds = %193, %122
  %124 = load ptr, ptr %17, align 8, !tbaa !5
  %125 = icmp ne ptr %124, null
  br i1 %125, label %131, label %126

126:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %197

127:                                              ; preds = %190, %119
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %7, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %8, align 4
  br label %196

131:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #7
  %132 = load ptr, ptr %17, align 8, !tbaa !5
  %133 = invoke noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(120) %132)
          to label %134 unwind label %162

134:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef %133, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %135 unwind label %166

135:                                              ; preds = %134
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  %136 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.38)
          to label %137 unwind label %170

137:                                              ; preds = %135
  br i1 %136, label %150, label %138

138:                                              ; preds = %137
  %139 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.39)
          to label %140 unwind label %170

140:                                              ; preds = %138
  br i1 %139, label %150, label %141

141:                                              ; preds = %140
  %142 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.13)
          to label %143 unwind label %170

143:                                              ; preds = %141
  br i1 %142, label %150, label %144

144:                                              ; preds = %143
  %145 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.40)
          to label %146 unwind label %170

146:                                              ; preds = %144
  br i1 %145, label %150, label %147

147:                                              ; preds = %146
  %148 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.41)
          to label %149 unwind label %170

149:                                              ; preds = %147
  br i1 %148, label %150, label %189

150:                                              ; preds = %149, %146, %143, %140, %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %151 = load ptr, ptr %17, align 8, !tbaa !5
  %152 = invoke noundef ptr @_ZNK8tinyxml210XMLElement9AttributeEPKcS2_(ptr noundef nonnull align 8 dereferenceable(120) %151, ptr noundef @.str.14, ptr noundef null)
          to label %153 unwind label %174

153:                                              ; preds = %150
  store ptr %152, ptr %20, align 8, !tbaa !5
  %154 = load ptr, ptr %20, align 8, !tbaa !5
  %155 = icmp ne ptr %154, null
  br i1 %155, label %187, label %156

156:                                              ; preds = %153
  %157 = load ptr, ptr %17, align 8, !tbaa !5
  %158 = invoke noundef i32 @_ZNK8tinyxml27XMLNode10GetLineNumEv(ptr noundef nonnull align 8 dereferenceable(104) %157)
          to label %159 unwind label %174

159:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.42, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %160 unwind label %178

160:                                              ; preds = %159
  invoke void @"_ZZN2BT9VerifyXMLERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt13unordered_mapIS5_NS_8NodeTypeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIS6_S9_EEEENK3$_1clEiS7_"(ptr noundef nonnull align 1 dereferenceable(1) %10, i32 noundef %158, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %161 unwind label %182

161:                                              ; preds = %160
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #7
  br label %187

162:                                              ; preds = %131
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %7, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %8, align 4
  br label %195

166:                                              ; preds = %134
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %7, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %195

170:                                              ; preds = %147, %144, %141, %138, %135
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %7, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %8, align 4
  br label %194

174:                                              ; preds = %156, %150
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %7, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %8, align 4
  br label %188

178:                                              ; preds = %159
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %7, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %8, align 4
  br label %186

182:                                              ; preds = %160
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %7, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  br label %186

186:                                              ; preds = %182, %178
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #7
  br label %188

187:                                              ; preds = %161, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %189

188:                                              ; preds = %186, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %194

189:                                              ; preds = %187, %149
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  br label %190

190:                                              ; preds = %189
  %191 = load ptr, ptr %17, align 8, !tbaa !5
  %192 = invoke noundef ptr @_ZNK8tinyxml27XMLNode18NextSiblingElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %191, ptr noundef null)
          to label %193 unwind label %127

193:                                              ; preds = %190
  store ptr %192, ptr %17, align 8, !tbaa !5
  br label %123, !llvm.loop !11

194:                                              ; preds = %188, %170
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  br label %195

195:                                              ; preds = %194, %166, %162
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  br label %196

196:                                              ; preds = %195, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %251

197:                                              ; preds = %126
  br label %198

198:                                              ; preds = %197, %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  %200 = invoke noundef ptr @_ZNK8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %199, ptr noundef null)
          to label %201 unwind label %206

201:                                              ; preds = %198
  store ptr %200, ptr %24, align 8, !tbaa !5
  br label %202

202:                                              ; preds = %216, %201
  %203 = load ptr, ptr %24, align 8, !tbaa !5
  %204 = icmp ne ptr %203, null
  br i1 %204, label %210, label %205

205:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %217

206:                                              ; preds = %213, %198
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %7, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %250

210:                                              ; preds = %202
  %211 = load i32, ptr %23, align 4, !tbaa !13
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %23, align 4, !tbaa !13
  br label %213

213:                                              ; preds = %210
  %214 = load ptr, ptr %24, align 8, !tbaa !5
  %215 = invoke noundef ptr @_ZNK8tinyxml27XMLNode18NextSiblingElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %214, ptr noundef null)
          to label %216 unwind label %206

216:                                              ; preds = %213
  store ptr %215, ptr %24, align 8, !tbaa !5
  br label %202, !llvm.loop !15

217:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #7
  call void @_ZNSt8functionIFvPKN8tinyxml210XMLElementEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %26) #7
  %218 = getelementptr inbounds %class.anon.114, ptr %26, i32 0, i32 0
  store ptr %11, ptr %218, align 8, !tbaa !5
  %219 = getelementptr inbounds %class.anon.114, ptr %26, i32 0, i32 1
  store ptr %10, ptr %219, align 8, !tbaa !5
  %220 = getelementptr inbounds %class.anon.114, ptr %26, i32 0, i32 2
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %221, ptr %220, align 8, !tbaa !5
  %222 = getelementptr inbounds %class.anon.114, ptr %26, i32 0, i32 3
  store ptr %23, ptr %222, align 8, !tbaa !5
  %223 = getelementptr inbounds %class.anon.114, ptr %26, i32 0, i32 4
  store ptr %25, ptr %223, align 8, !tbaa !5
  %224 = invoke noundef nonnull align 8 dereferenceable(32) ptr @"_ZNSt8functionIFvPKN8tinyxml210XMLElementEEEaSIZN2BT9VerifyXMLERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt13unordered_mapISD_NS7_8NodeTypeESt4hashISD_ESt8equal_toISD_ESaISt4pairISE_SH_EEEE3$_0EENSt9enable_ifIXsrNS5_9_CallableIT_NST_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISV_E4typeEE4typeES5_EE5valueESt5decayISV_EE4type4typeESt15__invoke_resultIRS16_JS3_EEEE5valueERS5_E4typeEOSV_"(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(40) %26)
          to label %225 unwind label %233

225:                                              ; preds = %217
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %226 = load ptr, ptr %12, align 8, !tbaa !5
  %227 = invoke noundef ptr @_ZNK8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %226, ptr noundef @.str.33)
          to label %228 unwind label %237

228:                                              ; preds = %225
  store ptr %227, ptr %27, align 8, !tbaa !5
  br label %229

229:                                              ; preds = %247, %228
  %230 = load ptr, ptr %27, align 8, !tbaa !5
  %231 = icmp ne ptr %230, null
  br i1 %231, label %241, label %232

232:                                              ; preds = %229
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %248

233:                                              ; preds = %217
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %7, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #7
  br label %249

237:                                              ; preds = %244, %241, %225
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %7, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %249

241:                                              ; preds = %229
  %242 = load ptr, ptr %27, align 8, !tbaa !5
  invoke void @_ZNKSt8functionIFvPKN8tinyxml210XMLElementEEEclES3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef %242)
          to label %243 unwind label %237

243:                                              ; preds = %241
  br label %244

244:                                              ; preds = %243
  %245 = load ptr, ptr %27, align 8, !tbaa !5
  %246 = invoke noundef ptr @_ZNK8tinyxml27XMLNode18NextSiblingElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %245, ptr noundef @.str.33)
          to label %247 unwind label %237

247:                                              ; preds = %244
  store ptr %246, ptr %27, align 8, !tbaa !5
  br label %229, !llvm.loop !16

248:                                              ; preds = %232
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @_ZN8tinyxml211XMLDocumentD1Ev(ptr noundef nonnull align 8 dereferenceable(776) %5) #7
  call void @llvm.lifetime.end.p0(i64 776, ptr %5) #7
  ret void

249:                                              ; preds = %237, %233
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  br label %250

250:                                              ; preds = %249, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %251

251:                                              ; preds = %250, %196, %115, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %252

252:                                              ; preds = %251, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %253

253:                                              ; preds = %252, %74, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  br label %254

254:                                              ; preds = %253, %55, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @_ZN8tinyxml211XMLDocumentD1Ev(ptr noundef nonnull align 8 dereferenceable(776) %5) #7
  call void @llvm.lifetime.end.p0(i64 776, ptr %5) #7
  br label %255

255:                                              ; preds = %254
  %256 = load ptr, ptr %7, align 8
  %257 = load i32, ptr %8, align 4
  %258 = insertvalue { ptr, i32 } poison, ptr %256, 0
  %259 = insertvalue { ptr, i32 } %258, i32 %257, 1
  resume { ptr, i32 } %259

260:                                              ; preds = %69, %42
  unreachable
}

declare noundef ptr @_ZNK8tinyxml211XMLDocument9ErrorNameEv(ptr noundef nonnull align 8 dereferenceable(776)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @"_ZNK2BT3$_6clEPKcS2_"(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef) #5 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN2BT9VerifyXMLERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt13unordered_mapIS5_NS_8NodeTypeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIS6_S9_EEEENK3$_1clEiS7_"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(32) ptr @"_ZNSt8functionIFvPKN8tinyxml210XMLElementEEEaSIZN2BT9VerifyXMLERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt13unordered_mapISD_NS7_8NodeTypeESt4hashISD_ESt8equal_toISD_ESaISt4pairISE_SH_EEEE3$_0EENSt9enable_ifIXsrNS5_9_CallableIT_NST_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISV_E4typeEE4typeES5_EE5valueESt5decayISV_EE4type4typeESt15__invoke_resultIRS16_JS3_EEEE5valueERS5_E4typeEOSV_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) #2 align 2

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

; Function Attrs: nounwind
declare void @_ZN8tinyxml211XMLDocumentD1Ev(ptr noundef nonnull align 8 dereferenceable(776)) unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { 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, !10, i64 0}
!10 = !{!"_ZTSN8tinyxml28XMLErrorE", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


; 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.anon.109 = type { i8 }
%"class.tinyxml2::XMLDocument" = type { %"class.tinyxml2::XMLNode", i8, i8, i32, i32, %"class.tinyxml2::StrPair", i32, ptr, i32, i32, %"class.tinyxml2::DynArray", %"class.tinyxml2::MemPoolT", %"class.tinyxml2::MemPoolT.39", %"class.tinyxml2::MemPoolT.41", %"class.tinyxml2::MemPoolT.43" }
%"class.tinyxml2::XMLNode" = type { ptr, ptr, ptr, %"class.tinyxml2::StrPair", i32, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.tinyxml2::StrPair" = type { i32, ptr, ptr }
%"class.tinyxml2::DynArray" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.38", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::MemPool" = type { ptr }
%"class.tinyxml2::DynArray.38" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.39" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.40", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.40" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.41" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.42", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.42" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.43" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.44", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.44" = type { ptr, [10 x ptr], i32, i32 }
%class.anon = type { i8 }
%class.anon.107 = type { i8 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::function.111" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.114 = type { ptr, ptr, ptr, ptr, ptr }

@.str.12 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZTIN2BT12RuntimeErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.22 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZN2BT8StrEqualE = external hidden global %class.anon.109, align 1
@.str.35 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [53 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare void @_ZN8tinyxml211XMLDocumentC1EbNS_10WhitespaceE(ptr noundef nonnull align 8 dereferenceable(776), i1 noundef zeroext, i32 noundef) unnamed_addr #3

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

declare noundef i32 @_ZN8tinyxml211XMLDocument5ParseEPKcm(ptr noundef nonnull align 8 dereferenceable(776), ptr noundef, i64 noundef) local_unnamed_addr #3

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

declare noundef ptr @_ZNK8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) local_unnamed_addr #3

declare noundef ptr @_ZNK8tinyxml210XMLElement9AttributeEPKcS2_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare noundef ptr @_ZNK8tinyxml27XMLNode18NextSiblingElementEPKc(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2BT9VerifyXMLERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt13unordered_mapIS5_NS_8NodeTypeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIS6_S9_EEE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.tinyxml2::XMLDocument", align 8
  %4 = alloca [512 x i8], align 16
  %5 = alloca %class.anon, align 1
  %6 = alloca %class.anon.107, align 1
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::function.111", align 8
  %15 = alloca %class.anon.114, align 8
  call void @llvm.lifetime.start.p0(i64 776, ptr nonnull %3) #8
  call void @_ZN8tinyxml211XMLDocumentC1EbNS_10WhitespaceE(ptr noundef nonnull align 8 dereferenceable(776) %3, i1 noundef zeroext true, i32 noundef 0)
  %16 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #8
  %17 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #8
  %18 = invoke noundef i32 @_ZN8tinyxml211XMLDocument5ParseEPKcm(ptr noundef nonnull align 8 dereferenceable(776) %3, ptr noundef %16, i64 noundef %17)
          to label %19 unwind label %26

19:                                               ; preds = %2
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %33, label %20

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %4) #8
  %21 = invoke noundef ptr @_ZNK8tinyxml211XMLDocument9ErrorNameEv(ptr noundef nonnull align 8 dereferenceable(776) %3)
          to label %22 unwind label %28

22:                                               ; preds = %20
  %23 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 512, ptr noundef nonnull @.str.22, ptr noundef %21) #8
  %24 = call ptr @__cxa_allocate_exception(i64 40) #8
  invoke void @_ZN2BT12RuntimeErrorC2IJA512_cEEEDpRKT_(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef nonnull align 1 dereferenceable(512) %4)
          to label %25 unwind label %30

25:                                               ; preds = %22
  invoke void @__cxa_throw(ptr nonnull %24, ptr nonnull @_ZTIN2BT12RuntimeErrorE, ptr nonnull @_ZN2BT21BehaviorTreeExceptionD2Ev) #9
          to label %126 unwind label %28

26:                                               ; preds = %2
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %125

28:                                               ; preds = %25, %20
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %32

30:                                               ; preds = %22
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %24) #8
  br label %32

32:                                               ; preds = %30, %28
  %.pn66 = phi { ptr, i32 } [ %29, %28 ], [ %31, %30 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %4) #8
  br label %125

33:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  %34 = invoke noundef ptr @_ZN8tinyxml211XMLDocument11RootElementEv(ptr noundef nonnull align 8 dereferenceable(776) %3)
          to label %35 unwind label %43

35:                                               ; preds = %33
  %.not45 = icmp eq ptr %34, null
  br i1 %.not45, label %40, label %36

36:                                               ; preds = %35
  %37 = invoke noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(120) %34)
          to label %38 unwind label %43

38:                                               ; preds = %36
  %39 = call noundef zeroext i1 @"_ZNK2BT3$_6clEPKcS2_"(ptr noundef nonnull align 1 dereferenceable(1) @_ZN2BT8StrEqualE, ptr noundef %37, ptr noundef nonnull @.str.35)
  br i1 %39, label %47, label %40

40:                                               ; preds = %38, %35
  %41 = call ptr @__cxa_allocate_exception(i64 40) #8
  invoke void @_ZN2BT12RuntimeErrorC2IJA44_cEEEDpRKT_(ptr noundef nonnull align 8 dereferenceable(40) %41, ptr noundef nonnull align 1 dereferenceable(44) @.str.36)
          to label %42 unwind label %45

42:                                               ; preds = %40
  invoke void @__cxa_throw(ptr nonnull %41, ptr nonnull @_ZTIN2BT12RuntimeErrorE, ptr nonnull @_ZN2BT21BehaviorTreeExceptionD2Ev) #9
          to label %126 unwind label %43

43:                                               ; preds = %42, %36, %33
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %124

45:                                               ; preds = %40
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %41) #8
  br label %124

47:                                               ; preds = %38
  %48 = invoke noundef ptr @_ZNK8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %34, ptr noundef nonnull @.str.12)
          to label %49 unwind label %57

49:                                               ; preds = %47
  %.not46 = icmp eq ptr %48, null
  br i1 %.not46, label %.loopexit78, label %50

50:                                               ; preds = %49
  %51 = invoke noundef ptr @_ZNK8tinyxml27XMLNode18NextSiblingElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %48, ptr noundef nonnull @.str.12)
          to label %52 unwind label %59

52:                                               ; preds = %50
  %.not47 = icmp eq ptr %51, null
  br i1 %.not47, label %66, label %53

53:                                               ; preds = %52
  %54 = call noundef i32 @_ZNK8tinyxml27XMLNode10GetLineNumEv(ptr noundef nonnull align 8 dereferenceable(104) %51)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.37, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %55 unwind label %61

55:                                               ; preds = %53
  invoke void @"_ZZN2BT9VerifyXMLERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt13unordered_mapIS5_NS_8NodeTypeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIS6_S9_EEEENK3$_1clEiS7_"(ptr noundef nonnull align 1 dereferenceable(1) %5, i32 noundef %54, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %56 unwind label %63

56:                                               ; preds = %55
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  br label %66

57:                                               ; preds = %47
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %124

59:                                               ; preds = %50
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %124

61:                                               ; preds = %53
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %65

63:                                               ; preds = %55
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br label %65

65:                                               ; preds = %63, %61
  %.pn = phi { ptr, i32 } [ %64, %63 ], [ %62, %61 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  br label %124

66:                                               ; preds = %56, %52
  %67 = invoke noundef ptr @_ZNK8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %34, ptr noundef null)
          to label %.preheader77 unwind label %.loopexit.split-lp80

.preheader77:                                     ; preds = %66, %100
  %.029 = phi ptr [ %101, %100 ], [ %67, %66 ]
  %.not49 = icmp eq ptr %.029, null
  br i1 %.not49, label %.loopexit78, label %68

.loopexit79:                                      ; preds = %100
  %lpad.loopexit81 = landingpad { ptr, i32 }
          cleanup
  br label %124

.loopexit.split-lp80:                             ; preds = %66
  %lpad.loopexit.split-lp82 = landingpad { ptr, i32 }
          cleanup
  br label %124

68:                                               ; preds = %.preheader77
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #8
  %69 = invoke noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(120) %.029)
          to label %70 unwind label %88

70:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %69, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %71 unwind label %90

71:                                               ; preds = %70
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  %72 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.38)
  br i1 %72, label %81, label %73

73:                                               ; preds = %71
  %74 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.39)
  br i1 %74, label %81, label %75

75:                                               ; preds = %73
  %76 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.13)
  br i1 %76, label %81, label %77

77:                                               ; preds = %75
  %78 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.40)
  br i1 %78, label %81, label %79

79:                                               ; preds = %77
  %80 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.41)
  br i1 %80, label %81, label %100

81:                                               ; preds = %79, %77, %75, %73, %71
  %82 = invoke noundef ptr @_ZNK8tinyxml210XMLElement9AttributeEPKcS2_(ptr noundef nonnull align 8 dereferenceable(120) %.029, ptr noundef nonnull @.str.14, ptr noundef null)
          to label %83 unwind label %92

83:                                               ; preds = %81
  %.not56 = icmp eq ptr %82, null
  br i1 %.not56, label %84, label %100

84:                                               ; preds = %83
  %85 = call noundef i32 @_ZNK8tinyxml27XMLNode10GetLineNumEv(ptr noundef nonnull align 8 dereferenceable(104) %.029)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.42, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %86 unwind label %94

86:                                               ; preds = %84
  invoke void @"_ZZN2BT9VerifyXMLERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt13unordered_mapIS5_NS_8NodeTypeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIS6_S9_EEEENK3$_1clEiS7_"(ptr noundef nonnull align 1 dereferenceable(1) %5, i32 noundef %85, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %87 unwind label %96

87:                                               ; preds = %86
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  br label %100

88:                                               ; preds = %68
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %102

90:                                               ; preds = %70
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  br label %102

92:                                               ; preds = %81
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %99

94:                                               ; preds = %84
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %98

96:                                               ; preds = %86
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #8
  br label %98

98:                                               ; preds = %96, %94
  %.pn57 = phi { ptr, i32 } [ %97, %96 ], [ %95, %94 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  br label %99

99:                                               ; preds = %98, %92
  %.pn57.pn = phi { ptr, i32 } [ %.pn57, %98 ], [ %93, %92 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br label %102

100:                                              ; preds = %83, %87, %79
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  %101 = invoke noundef ptr @_ZNK8tinyxml27XMLNode18NextSiblingElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %.029, ptr noundef null)
          to label %.preheader77 unwind label %.loopexit79, !llvm.loop !5

102:                                              ; preds = %99, %90, %88
  %.pn57.pn.pn = phi { ptr, i32 } [ %.pn57.pn, %99 ], [ %91, %90 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  br label %124

.loopexit78:                                      ; preds = %.preheader77, %49
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  store i32 0, ptr %13, align 4, !tbaa !7
  %103 = invoke noundef ptr @_ZNK8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %34, ptr noundef null)
          to label %.preheader71 unwind label %.loopexit.split-lp73

.preheader71:                                     ; preds = %.loopexit78, %111
  %104 = phi i32 [ %112, %111 ], [ 0, %.loopexit78 ]
  %.027 = phi ptr [ %113, %111 ], [ %103, %.loopexit78 ]
  %.not50 = icmp eq ptr %.027, null
  br i1 %.not50, label %105, label %111

105:                                              ; preds = %.preheader71
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #8
  call void @_ZNSt8functionIFvPKN8tinyxml210XMLElementEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #8
  store ptr %6, ptr %15, align 8, !tbaa !11
  %106 = getelementptr inbounds i8, ptr %15, i64 8
  store ptr %5, ptr %106, align 8, !tbaa !11
  %107 = getelementptr inbounds i8, ptr %15, i64 16
  store ptr %1, ptr %107, align 8, !tbaa !11
  %108 = getelementptr inbounds i8, ptr %15, i64 24
  store ptr %13, ptr %108, align 8, !tbaa !11
  %109 = getelementptr inbounds i8, ptr %15, i64 32
  store ptr %14, ptr %109, align 8, !tbaa !11
  %110 = invoke noundef nonnull align 8 dereferenceable(32) ptr @"_ZNSt8functionIFvPKN8tinyxml210XMLElementEEEaSIZN2BT9VerifyXMLERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt13unordered_mapISD_NS7_8NodeTypeESt4hashISD_ESt8equal_toISD_ESaISt4pairISE_SH_EEEE3$_0EENSt9enable_ifIXsrNS5_9_CallableIT_NST_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISV_E4typeEE4typeES5_EE5valueESt5decayISV_EE4type4typeESt15__invoke_resultIRS16_JS3_EEEE5valueERS5_E4typeEOSV_"(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(40) %15)
          to label %114 unwind label %117

.loopexit72:                                      ; preds = %111
  %lpad.loopexit74 = landingpad { ptr, i32 }
          cleanup
  br label %123

.loopexit.split-lp73:                             ; preds = %.loopexit78
  %lpad.loopexit.split-lp75 = landingpad { ptr, i32 }
          cleanup
  br label %123

111:                                              ; preds = %.preheader71
  %112 = add nuw nsw i32 %104, 1
  store i32 %112, ptr %13, align 4, !tbaa !7
  %113 = invoke noundef ptr @_ZNK8tinyxml27XMLNode18NextSiblingElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %.027, ptr noundef null)
          to label %.preheader71 unwind label %.loopexit72, !llvm.loop !13

114:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #8
  %115 = invoke noundef ptr @_ZNK8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %34, ptr noundef nonnull @.str.33)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %114, %120
  %.0 = phi ptr [ %121, %120 ], [ %115, %114 ]
  %.not51 = icmp eq ptr %.0, null
  br i1 %.not51, label %116, label %119

116:                                              ; preds = %.preheader
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  call void @_ZN8tinyxml211XMLDocumentD1Ev(ptr noundef nonnull align 8 dereferenceable(776) %3) #8
  call void @llvm.lifetime.end.p0(i64 776, ptr nonnull %3) #8
  ret void

117:                                              ; preds = %105
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #8
  br label %122

.loopexit:                                        ; preds = %119, %120
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %122

.loopexit.split-lp:                               ; preds = %114
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %122

119:                                              ; preds = %.preheader
  invoke void @_ZNKSt8functionIFvPKN8tinyxml210XMLElementEEEclES3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull %.0)
          to label %120 unwind label %.loopexit

120:                                              ; preds = %119
  %121 = invoke noundef ptr @_ZNK8tinyxml27XMLNode18NextSiblingElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %.0, ptr noundef nonnull @.str.33)
          to label %.preheader unwind label %.loopexit, !llvm.loop !14

122:                                              ; preds = %.loopexit, %.loopexit.split-lp, %117
  %.pn52 = phi { ptr, i32 } [ %118, %117 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  br label %123

123:                                              ; preds = %.loopexit72, %.loopexit.split-lp73, %122
  %.pn54 = phi { ptr, i32 } [ %.pn52, %122 ], [ %lpad.loopexit74, %.loopexit72 ], [ %lpad.loopexit.split-lp75, %.loopexit.split-lp73 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %124

124:                                              ; preds = %.loopexit79, %.loopexit.split-lp80, %57, %102, %123, %65, %59, %45, %43
  %.pn61.pn.pn.pn = phi { ptr, i32 } [ %44, %43 ], [ %46, %45 ], [ %58, %57 ], [ %.pn54, %123 ], [ %.pn, %65 ], [ %60, %59 ], [ %.pn57.pn.pn, %102 ], [ %lpad.loopexit81, %.loopexit79 ], [ %lpad.loopexit.split-lp82, %.loopexit.split-lp80 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  br label %125

125:                                              ; preds = %124, %32, %26
  %.pn66.pn = phi { ptr, i32 } [ %.pn66, %32 ], [ %.pn61.pn.pn.pn, %124 ], [ %27, %26 ]
  call void @_ZN8tinyxml211XMLDocumentD1Ev(ptr noundef nonnull align 8 dereferenceable(776) %3) #8
  call void @llvm.lifetime.end.p0(i64 776, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn66.pn

126:                                              ; preds = %42, %25
  unreachable
}

declare noundef ptr @_ZNK8tinyxml211XMLDocument9ErrorNameEv(ptr noundef nonnull align 8 dereferenceable(776)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @"_ZNK2BT3$_6clEPKcS2_"(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef) local_unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN2BT9VerifyXMLERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt13unordered_mapIS5_NS_8NodeTypeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIS6_S9_EEEENK3$_1clEiS7_"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(32) ptr @"_ZNSt8functionIFvPKN8tinyxml210XMLElementEEEaSIZN2BT9VerifyXMLERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt13unordered_mapISD_NS7_8NodeTypeESt4hashISD_ESt8equal_toISD_ESaISt4pairISE_SH_EEEE3$_0EENSt9enable_ifIXsrNS5_9_CallableIT_NST_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISV_E4typeEE4typeES5_EE5valueESt5decayISV_EE4type4typeESt15__invoke_resultIRS16_JS3_EEEE5valueERS5_E4typeEOSV_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

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

; Function Attrs: nounwind
declare void @_ZN8tinyxml211XMLDocumentD1Ev(ptr noundef nonnull align 8 dereferenceable(776)) unnamed_addr #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { "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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #7 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = distinct !{!13, !6}
!14 = distinct !{!14, !6}


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