; LLVM IR from HiroIshida/tinyfk :: urdf_parser/tinyxml (tinyxmlparser)

; 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.TiXmlText = type <{ %class.TiXmlNode, i8, [7 x i8] }>
%class.TiXmlNode = type { %class.TiXmlBase, ptr, i32, ptr, ptr, %"class.std::__cxx11::basic_string", ptr, ptr }
%class.TiXmlBase = type { ptr, %struct.TiXmlCursor, ptr }
%struct.TiXmlCursor = type { i32, i32 }
%"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] }

@.str.6 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__._ZN12TiXmlElement8StreamInEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE = external hidden unnamed_addr constant [67 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [9 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9TiXmlBase16StreamWhiteSpaceEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef, ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264)) #2 align 2

declare noundef i32 @_ZNSi4peekEv(ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9TiXmlBase12IsWhiteSpaceEi(i32 noundef) #4 align 2

declare noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #2 align 2

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12TiXmlElement8StreamInEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %class.TiXmlText, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %24 = load ptr, ptr %4, align 8
  br label %25

25:                                               ; preds = %55, %3
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = getelementptr i8, ptr %27, i64 -24
  %29 = load i64, ptr %28, align 8
  %30 = getelementptr inbounds i8, ptr %26, i64 %29
  %31 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %30)
  br i1 %31, label %32, label %56

32:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = call noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %33)
  store i32 %34, ptr %7, align 4, !tbaa !11
  %35 = load i32, ptr %7, align 4, !tbaa !11
  %36 = icmp sle i32 %35, 0
  br i1 %36, label %37, label %44

37:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %38 = call noundef ptr @_ZN9TiXmlNode11GetDocumentEv(ptr noundef nonnull align 8 dereferenceable(104) %24)
  store ptr %38, ptr %8, align 8, !tbaa !5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %43

41:                                               ; preds = %37
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN13TiXmlDocument8SetErrorEiPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(157) %42, i32 noundef 13, ptr noundef null, ptr noundef null, i32 noundef 0)
  br label %43

43:                                               ; preds = %41, %37
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %53

44:                                               ; preds = %32
  %45 = load i32, ptr %7, align 4, !tbaa !11
  %46 = trunc i32 %45 to i8
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %47, i8 noundef signext %46)
  %49 = load i32, ptr %7, align 4, !tbaa !11
  %50 = icmp eq i32 %49, 62
  br i1 %50, label %51, label %52

51:                                               ; preds = %44
  store i32 3, ptr %9, align 4
  br label %53

52:                                               ; preds = %44
  store i32 0, ptr %9, align 4
  br label %53

53:                                               ; preds = %52, %51, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  %54 = load i32, ptr %9, align 4
  switch i32 %54, label %283 [
    i32 0, label %55
    i32 1, label %277
    i32 3, label %56
  ]

55:                                               ; preds = %53
  br label %25, !llvm.loop !13

56:                                               ; preds = %53, %25
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %57) #8
  %59 = icmp ult i64 %58, 3
  br i1 %59, label %60, label %61

60:                                               ; preds = %56
  br label %277

61:                                               ; preds = %56
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %63) #8
  %65 = sub i64 %64, 1
  %66 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %62, i64 noundef %65)
  %67 = load i8, ptr %66, align 1, !tbaa !15
  %68 = sext i8 %67 to i32
  %69 = icmp eq i32 %68, 62
  br i1 %69, label %70, label %80

70:                                               ; preds = %61
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %72) #8
  %74 = sub i64 %73, 2
  %75 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %71, i64 noundef %74)
  %76 = load i8, ptr %75, align 1, !tbaa !15
  %77 = sext i8 %76 to i32
  %78 = icmp eq i32 %77, 47
  br i1 %78, label %79, label %80

79:                                               ; preds = %70
  br label %277

80:                                               ; preds = %70, %61
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %82) #8
  %84 = sub i64 %83, 1
  %85 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %81, i64 noundef %84)
  %86 = load i8, ptr %85, align 1, !tbaa !15
  %87 = sext i8 %86 to i32
  %88 = icmp eq i32 %87, 62
  br i1 %88, label %89, label %276

89:                                               ; preds = %80
  br label %90

90:                                               ; preds = %275, %107, %89
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = call noundef zeroext i1 @_ZN9TiXmlBase16StreamWhiteSpaceEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %91, ptr noundef %92)
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  %96 = getelementptr i8, ptr %95, i64 -24
  %97 = load i64, ptr %96, align 8
  %98 = getelementptr inbounds i8, ptr %94, i64 %97
  %99 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %98)
  br i1 %99, label %100, label %112

100:                                              ; preds = %90
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = call noundef i32 @_ZNSi4peekEv(ptr noundef nonnull align 8 dereferenceable(16) %101)
  %103 = icmp ne i32 %102, 60
  br i1 %103, label %104, label %112

104:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 112, ptr %10) #8
  call void @_ZN9TiXmlTextC2EPKc(ptr noundef nonnull align 8 dereferenceable(105) %10, ptr noundef @.str.11)
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN9TiXmlText8StreamInEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(105) %10, ptr noundef %105, ptr noundef %106)
          to label %107 unwind label %108

107:                                              ; preds = %104
  store i32 5, ptr %9, align 4
  call void @_ZN9TiXmlNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(105) %10) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr %10) #8
  br label %90

108:                                              ; preds = %104
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %11, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %12, align 4
  call void @_ZN9TiXmlNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(105) %10) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr %10) #8
  br label %278

112:                                              ; preds = %100, %90
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = load ptr, ptr %113, align 8, !tbaa !9
  %115 = getelementptr i8, ptr %114, i64 -24
  %116 = load i64, ptr %115, align 8
  %117 = getelementptr inbounds i8, ptr %113, i64 %116
  %118 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %117)
  br i1 %118, label %120, label %119

119:                                              ; preds = %112
  br label %277

120:                                              ; preds = %112
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = call noundef i32 @_ZNSi4peekEv(ptr noundef nonnull align 8 dereferenceable(16) %121)
  %123 = icmp eq i32 %122, 60
  br i1 %123, label %124, label %125

124:                                              ; preds = %120
  br label %127

125:                                              ; preds = %120
  call void @__assert_fail(ptr noundef @.str.23, ptr noundef @.str.6, i32 noundef 960, ptr noundef @__PRETTY_FUNCTION__._ZN12TiXmlElement8StreamInEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE) #9
  unreachable

126:                                              ; No predecessors!
  br label %127

127:                                              ; preds = %126, %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %128) #8
  %130 = trunc i64 %129 to i32
  store i32 %130, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #8
  store i8 0, ptr %14, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #8
  store i8 0, ptr %15, align 1, !tbaa !16
  br label %131

131:                                              ; preds = %208, %127
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = load ptr, ptr %132, align 8, !tbaa !9
  %134 = getelementptr i8, ptr %133, i64 -24
  %135 = load i64, ptr %134, align 8
  %136 = getelementptr inbounds i8, ptr %132, i64 %135
  %137 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %136)
  br i1 %137, label %139, label %138

138:                                              ; preds = %131
  store i32 1, ptr %9, align 4
  br label %273

139:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = call noundef i32 @_ZNSi4peekEv(ptr noundef nonnull align 8 dereferenceable(16) %140)
  store i32 %141, ptr %16, align 4, !tbaa !11
  %142 = load i32, ptr %16, align 4, !tbaa !11
  %143 = icmp sle i32 %142, 0
  br i1 %143, label %144, label %151

144:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %145 = call noundef ptr @_ZN9TiXmlNode11GetDocumentEv(ptr noundef nonnull align 8 dereferenceable(104) %24)
  store ptr %145, ptr %17, align 8, !tbaa !5
  %146 = load ptr, ptr %17, align 8, !tbaa !5
  %147 = icmp ne ptr %146, null
  br i1 %147, label %148, label %150

148:                                              ; preds = %144
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN13TiXmlDocument8SetErrorEiPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(157) %149, i32 noundef 13, ptr noundef null, ptr noundef null, i32 noundef 0)
  br label %150

150:                                              ; preds = %148, %144
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %206

151:                                              ; preds = %139
  %152 = load i32, ptr %16, align 4, !tbaa !11
  %153 = icmp eq i32 %152, 62
  br i1 %153, label %154, label %155

154:                                              ; preds = %151
  store i32 6, ptr %9, align 4
  br label %206

155:                                              ; preds = %151
  %156 = load i32, ptr %16, align 4, !tbaa !11
  %157 = trunc i32 %156 to i8
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %158, i8 noundef signext %157)
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = call noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %160)
  %162 = load i32, ptr %16, align 4, !tbaa !11
  %163 = icmp eq i32 %162, 91
  br i1 %163, label %164, label %191

164:                                              ; preds = %155
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %165) #8
  %167 = icmp uge i64 %166, 9
  br i1 %167, label %168, label %191

168:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %169) #8
  store i64 %170, ptr %18, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %171) #8
  %173 = load i64, ptr %18, align 8, !tbaa !18
  %174 = getelementptr inbounds i8, ptr %172, i64 %173
  %175 = getelementptr inbounds i8, ptr %174, i64 -9
  store ptr %175, ptr %19, align 8, !tbaa !5
  %176 = load ptr, ptr %19, align 8, !tbaa !5
  %177 = call i32 @strcmp(ptr noundef %176, ptr noundef @.str.22) #10
  %178 = icmp eq i32 %177, 0
  br i1 %178, label %179, label %187

179:                                              ; preds = %168
  %180 = load i8, ptr %14, align 1, !tbaa !16, !range !20, !noundef !21
  %181 = trunc i8 %180 to i1
  %182 = xor i1 %181, true
  br i1 %182, label %183, label %184

183:                                              ; preds = %179
  br label %186

184:                                              ; preds = %179
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.6, i32 noundef 992, ptr noundef @__PRETTY_FUNCTION__._ZN12TiXmlElement8StreamInEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE) #9
  unreachable

185:                                              ; No predecessors!
  br label %186

186:                                              ; preds = %185, %183
  store i32 6, ptr %9, align 4
  br label %188

187:                                              ; preds = %168
  store i32 0, ptr %9, align 4
  br label %188

188:                                              ; preds = %187, %186
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  %189 = load i32, ptr %9, align 4
  switch i32 %189, label %206 [
    i32 0, label %190
  ]

190:                                              ; preds = %188
  br label %191

191:                                              ; preds = %190, %164, %155
  %192 = load i8, ptr %15, align 1, !tbaa !16, !range !20, !noundef !21
  %193 = trunc i8 %192 to i1
  br i1 %193, label %205, label %194

194:                                              ; preds = %191
  %195 = load i32, ptr %16, align 4, !tbaa !11
  %196 = icmp ne i32 %195, 60
  br i1 %196, label %197, label %205

197:                                              ; preds = %194
  %198 = load i32, ptr %16, align 4, !tbaa !11
  %199 = call noundef zeroext i1 @_ZN9TiXmlBase12IsWhiteSpaceEi(i32 noundef %198)
  br i1 %199, label %205, label %200

200:                                              ; preds = %197
  store i8 1, ptr %15, align 1, !tbaa !16
  %201 = load i32, ptr %16, align 4, !tbaa !11
  %202 = icmp eq i32 %201, 47
  br i1 %202, label %203, label %204

203:                                              ; preds = %200
  store i8 1, ptr %14, align 1, !tbaa !16
  br label %204

204:                                              ; preds = %203, %200
  br label %205

205:                                              ; preds = %204, %197, %194, %191
  store i32 0, ptr %9, align 4
  br label %206

206:                                              ; preds = %205, %188, %154, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  %207 = load i32, ptr %9, align 4
  switch i32 %207, label %273 [
    i32 0, label %208
    i32 6, label %209
  ]

208:                                              ; preds = %206
  br label %131, !llvm.loop !22

209:                                              ; preds = %206
  %210 = load i8, ptr %14, align 1, !tbaa !16, !range !20, !noundef !21
  %211 = trunc i8 %210 to i1
  br i1 %211, label %212, label %244

212:                                              ; preds = %209
  %213 = load ptr, ptr %5, align 8, !tbaa !5
  %214 = load ptr, ptr %213, align 8, !tbaa !9
  %215 = getelementptr i8, ptr %214, i64 -24
  %216 = load i64, ptr %215, align 8
  %217 = getelementptr inbounds i8, ptr %213, i64 %216
  %218 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %217)
  br i1 %218, label %220, label %219

219:                                              ; preds = %212
  store i32 1, ptr %9, align 4
  br label %273

220:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = call noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %221)
  store i32 %222, ptr %20, align 4, !tbaa !11
  %223 = load i32, ptr %20, align 4, !tbaa !11
  %224 = icmp sle i32 %223, 0
  br i1 %224, label %225, label %232

225:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %226 = call noundef ptr @_ZN9TiXmlNode11GetDocumentEv(ptr noundef nonnull align 8 dereferenceable(104) %24)
  store ptr %226, ptr %21, align 8, !tbaa !5
  %227 = load ptr, ptr %21, align 8, !tbaa !5
  %228 = icmp ne ptr %227, null
  br i1 %228, label %229, label %231

229:                                              ; preds = %225
  %230 = load ptr, ptr %21, align 8, !tbaa !5
  call void @_ZN13TiXmlDocument8SetErrorEiPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(157) %230, i32 noundef 13, ptr noundef null, ptr noundef null, i32 noundef 0)
  br label %231

231:                                              ; preds = %229, %225
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %243

232:                                              ; preds = %220
  %233 = load i32, ptr %20, align 4, !tbaa !11
  %234 = icmp eq i32 %233, 62
  br i1 %234, label %235, label %236

235:                                              ; preds = %232
  br label %238

236:                                              ; preds = %232
  call void @__assert_fail(ptr noundef @.str.25, ptr noundef @.str.6, i32 noundef 1019, ptr noundef @__PRETTY_FUNCTION__._ZN12TiXmlElement8StreamInEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE) #9
  unreachable

237:                                              ; No predecessors!
  br label %238

238:                                              ; preds = %237, %235
  %239 = load i32, ptr %20, align 4, !tbaa !11
  %240 = trunc i32 %239 to i8
  %241 = load ptr, ptr %6, align 8, !tbaa !5
  %242 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %241, i8 noundef signext %240)
  store i32 1, ptr %9, align 4
  br label %243

243:                                              ; preds = %238, %231
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %273

244:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %245 = load ptr, ptr %6, align 8, !tbaa !5
  %246 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %245) #8
  %247 = load i32, ptr %13, align 4, !tbaa !11
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds i8, ptr %246, i64 %248
  store ptr %249, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %250 = load ptr, ptr %22, align 8, !tbaa !5
  %251 = call noundef ptr @_ZN9TiXmlNode8IdentifyEPKc13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(104) %24, ptr noundef %250, i32 noundef 0)
  store ptr %251, ptr %23, align 8, !tbaa !5
  %252 = load ptr, ptr %23, align 8, !tbaa !5
  %253 = icmp ne ptr %252, null
  br i1 %253, label %255, label %254

254:                                              ; preds = %244
  store i32 1, ptr %9, align 4
  br label %269

255:                                              ; preds = %244
  %256 = load ptr, ptr %23, align 8, !tbaa !5
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = load ptr, ptr %6, align 8, !tbaa !5
  %259 = load ptr, ptr %256, align 8, !tbaa !9
  %260 = getelementptr inbounds ptr, ptr %259, i64 18
  %261 = load ptr, ptr %260, align 8
  call void %261(ptr noundef nonnull align 8 dereferenceable(104) %256, ptr noundef %257, ptr noundef %258)
  %262 = load ptr, ptr %23, align 8, !tbaa !5
  %263 = icmp eq ptr %262, null
  br i1 %263, label %268, label %264

264:                                              ; preds = %255
  %265 = load ptr, ptr %262, align 8, !tbaa !9
  %266 = getelementptr inbounds ptr, ptr %265, i64 1
  %267 = load ptr, ptr %266, align 8
  call void %267(ptr noundef nonnull align 8 dereferenceable(104) %262) #8
  br label %268

268:                                              ; preds = %264, %255
  store ptr null, ptr %23, align 8, !tbaa !5
  store i32 0, ptr %9, align 4
  br label %269

269:                                              ; preds = %268, %254
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  %270 = load i32, ptr %9, align 4
  switch i32 %270, label %273 [
    i32 0, label %271
  ]

271:                                              ; preds = %269
  br label %272

272:                                              ; preds = %271
  store i32 0, ptr %9, align 4
  br label %273

273:                                              ; preds = %272, %269, %243, %219, %206, %138
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  %274 = load i32, ptr %9, align 4
  switch i32 %274, label %283 [
    i32 0, label %275
    i32 1, label %277
  ]

275:                                              ; preds = %273
  br label %90, !llvm.loop !23

276:                                              ; preds = %80
  br label %277

277:                                              ; preds = %276, %273, %119, %79, %60, %53
  ret void

278:                                              ; preds = %108
  %279 = load ptr, ptr %11, align 8
  %280 = load i32, ptr %12, align 4
  %281 = insertvalue { ptr, i32 } poison, ptr %279, 0
  %282 = insertvalue { ptr, i32 } %281, i32 %280, 1
  resume { ptr, i32 } %282

283:                                              ; preds = %273, %53
  unreachable
}

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

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

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

; Function Attrs: nounwind
declare void @_ZN9TiXmlNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #6

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #7

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

!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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}


; 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.TiXmlText = type <{ %class.TiXmlNode, i8, [7 x i8] }>
%class.TiXmlNode = type { %class.TiXmlBase, ptr, i32, ptr, ptr, %"class.std::__cxx11::basic_string", ptr, ptr }
%class.TiXmlBase = type { ptr, %struct.TiXmlCursor, ptr }
%struct.TiXmlCursor = type { i32, i32 }
%"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] }

@.str.6 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__._ZN12TiXmlElement8StreamInEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE = external hidden unnamed_addr constant [67 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [9 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9TiXmlBase16StreamWhiteSpaceEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #2 align 2

declare noundef i32 @_ZNSi4peekEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9TiXmlBase12IsWhiteSpaceEi(i32 noundef) local_unnamed_addr #4 align 2

declare noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #2 align 2

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12TiXmlElement8StreamInEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.TiXmlText, align 8
  br label %5

5:                                                ; preds = %17, %3
  %6 = load ptr, ptr %1, align 8, !tbaa !5
  %7 = getelementptr i8, ptr %6, i64 -24
  %8 = load i64, ptr %7, align 8
  %9 = getelementptr inbounds i8, ptr %1, i64 %8
  %10 = tail call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %9)
  br i1 %10, label %11, label %.thread90

11:                                               ; preds = %5
  %12 = tail call noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %13 = icmp slt i32 %12, 1
  br i1 %13, label %14, label %17

14:                                               ; preds = %11
  %15 = tail call noundef ptr @_ZN9TiXmlNode11GetDocumentEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  %.not83 = icmp eq ptr %15, null
  br i1 %.not83, label %.thread, label %16

16:                                               ; preds = %14
  tail call void @_ZN13TiXmlDocument8SetErrorEiPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(157) %15, i32 noundef 13, ptr noundef null, ptr noundef null, i32 noundef 0)
  br label %.thread

17:                                               ; preds = %11
  %18 = trunc i32 %12 to i8
  %19 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %2, i8 noundef signext %18)
  %20 = icmp eq i32 %12, 62
  br i1 %20, label %.thread90, label %5

.thread90:                                        ; preds = %17, %5
  %21 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %22 = icmp ult i64 %21, 3
  br i1 %22, label %.thread, label %23

23:                                               ; preds = %.thread90
  %24 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %25 = add i64 %24, -1
  %26 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %25)
  %27 = load i8, ptr %26, align 1, !tbaa !8
  %28 = icmp eq i8 %27, 62
  br i1 %28, label %29, label %35

29:                                               ; preds = %23
  %30 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %31 = add i64 %30, -2
  %32 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %31)
  %33 = load i8, ptr %32, align 1, !tbaa !8
  %34 = icmp eq i8 %33, 47
  br i1 %34, label %.thread, label %35

35:                                               ; preds = %29, %23
  %36 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %37 = add i64 %36, -1
  %38 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %37)
  %39 = load i8, ptr %38, align 1, !tbaa !8
  %40 = icmp eq i8 %39, 62
  br i1 %40, label %.preheader, label %.thread

.preheader:                                       ; preds = %35, %.preheader.backedge
  %41 = call noundef zeroext i1 @_ZN9TiXmlBase16StreamWhiteSpaceEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %1, ptr noundef nonnull %2)
  %42 = load ptr, ptr %1, align 8, !tbaa !5
  %43 = getelementptr i8, ptr %42, i64 -24
  %44 = load i64, ptr %43, align 8
  %45 = getelementptr inbounds i8, ptr %1, i64 %44
  %46 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %45)
  br i1 %46, label %47, label %53

47:                                               ; preds = %.preheader
  %48 = call noundef i32 @_ZNSi4peekEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %.not84 = icmp eq i32 %48, 60
  br i1 %.not84, label %53, label %49

49:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %4) #8
  call void @_ZN9TiXmlTextC2EPKc(ptr noundef nonnull align 8 dereferenceable(105) %4, ptr noundef nonnull @.str.11)
  invoke void @_ZN9TiXmlText8StreamInEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(105) %4, ptr noundef nonnull %1, ptr noundef nonnull %2)
          to label %50 unwind label %51

50:                                               ; preds = %49
  call void @_ZN9TiXmlNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(105) %4) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %4) #8
  br label %.preheader.backedge

.preheader.backedge:                              ; preds = %50, %127
  br label %.preheader

51:                                               ; preds = %49
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9TiXmlNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(105) %4) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %4) #8
  resume { ptr, i32 } %52

53:                                               ; preds = %47, %.preheader
  %54 = load ptr, ptr %1, align 8, !tbaa !5
  %55 = getelementptr i8, ptr %54, i64 -24
  %56 = load i64, ptr %55, align 8
  %57 = getelementptr inbounds i8, ptr %1, i64 %56
  %58 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %57)
  br i1 %58, label %59, label %.thread

59:                                               ; preds = %53
  %60 = call noundef i32 @_ZNSi4peekEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %61 = icmp eq i32 %60, 60
  br i1 %61, label %63, label %62

62:                                               ; preds = %59
  call void @__assert_fail(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.6, i32 noundef 960, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN12TiXmlElement8StreamInEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE) #9
  unreachable

63:                                               ; preds = %59
  %64 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %65 = load ptr, ptr %1, align 8, !tbaa !5
  %66 = getelementptr i8, ptr %65, i64 -24
  %67 = load i64, ptr %66, align 8
  %68 = getelementptr inbounds i8, ptr %1, i64 %67
  %69 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %68)
  br i1 %69, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %63, %100
  %.070115 = phi i8 [ %.272, %100 ], [ 0, %63 ]
  %.073114 = phi i1 [ %.275, %100 ], [ false, %63 ]
  %70 = call noundef i32 @_ZNSi4peekEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %71 = icmp slt i32 %70, 1
  br i1 %71, label %72, label %75

72:                                               ; preds = %.lr.ph
  %73 = call noundef ptr @_ZN9TiXmlNode11GetDocumentEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  %.not = icmp eq ptr %73, null
  br i1 %.not, label %.thread, label %74

74:                                               ; preds = %72
  call void @_ZN13TiXmlDocument8SetErrorEiPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(157) %73, i32 noundef 13, ptr noundef null, ptr noundef null, i32 noundef 0)
  br label %.thread

75:                                               ; preds = %.lr.ph
  %76 = icmp eq i32 %70, 62
  br i1 %76, label %.thread92, label %77

77:                                               ; preds = %75
  %78 = trunc i32 %70 to i8
  %79 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %2, i8 noundef signext %78)
  %80 = call noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %81 = icmp eq i32 %70, 91
  br i1 %81, label %82, label %94

82:                                               ; preds = %77
  %83 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %84 = icmp ugt i64 %83, 8
  br i1 %84, label %85, label %94

85:                                               ; preds = %82
  %86 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %87 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %88 = getelementptr inbounds i8, ptr %87, i64 %86
  %89 = getelementptr inbounds i8, ptr %88, i64 -9
  %90 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %89, ptr noundef nonnull dereferenceable(1) @.str.22) #10
  %.not85 = icmp eq i32 %90, 0
  br i1 %.not85, label %91, label %94

91:                                               ; preds = %85
  %92 = trunc nuw i8 %.070115 to i1
  br i1 %92, label %93, label %.thread92.thread

93:                                               ; preds = %91
  call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.6, i32 noundef 992, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN12TiXmlElement8StreamInEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE) #9
  unreachable

94:                                               ; preds = %85, %82, %77
  %95 = icmp eq i32 %70, 60
  %or.cond.not = or i1 %.073114, %95
  br i1 %or.cond.not, label %100, label %96

96:                                               ; preds = %94
  %97 = call noundef zeroext i1 @_ZN9TiXmlBase12IsWhiteSpaceEi(i32 noundef %70)
  br i1 %97, label %100, label %98

98:                                               ; preds = %96
  %99 = icmp eq i32 %70, 47
  %spec.select = select i1 %99, i8 1, i8 %.070115
  br label %100

100:                                              ; preds = %98, %94, %96
  %.275 = phi i1 [ false, %96 ], [ %.073114, %94 ], [ true, %98 ]
  %.272 = phi i8 [ %.070115, %96 ], [ %.070115, %94 ], [ %spec.select, %98 ]
  %101 = load ptr, ptr %1, align 8, !tbaa !5
  %102 = getelementptr i8, ptr %101, i64 -24
  %103 = load i64, ptr %102, align 8
  %104 = getelementptr inbounds i8, ptr %1, i64 %103
  %105 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %104)
  br i1 %105, label %.lr.ph, label %.thread

.thread92:                                        ; preds = %75
  %.pre = trunc nuw i8 %.070115 to i1
  br i1 %.pre, label %106, label %.thread92.thread

106:                                              ; preds = %.thread92
  %107 = load ptr, ptr %1, align 8, !tbaa !5
  %108 = getelementptr i8, ptr %107, i64 -24
  %109 = load i64, ptr %108, align 8
  %110 = getelementptr inbounds i8, ptr %1, i64 %109
  %111 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %110)
  br i1 %111, label %112, label %.thread

112:                                              ; preds = %106
  %113 = call noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %114 = icmp slt i32 %113, 1
  br i1 %114, label %115, label %118

115:                                              ; preds = %112
  %116 = call noundef ptr @_ZN9TiXmlNode11GetDocumentEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  %.not88 = icmp eq ptr %116, null
  br i1 %.not88, label %.thread, label %117

117:                                              ; preds = %115
  call void @_ZN13TiXmlDocument8SetErrorEiPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(157) %116, i32 noundef 13, ptr noundef null, ptr noundef null, i32 noundef 0)
  br label %.thread

118:                                              ; preds = %112
  %119 = icmp eq i32 %113, 62
  br i1 %119, label %121, label %120

120:                                              ; preds = %118
  call void @__assert_fail(ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.6, i32 noundef 1019, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN12TiXmlElement8StreamInEPSiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE) #9
  unreachable

121:                                              ; preds = %118
  %122 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %2, i8 noundef signext 62)
  br label %.thread

.thread92.thread:                                 ; preds = %91, %.thread92
  %123 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %sext = shl i64 %64, 32
  %124 = ashr exact i64 %sext, 32
  %125 = getelementptr inbounds i8, ptr %123, i64 %124
  %126 = call noundef ptr @_ZN9TiXmlNode8IdentifyEPKc13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %125, i32 noundef 0)
  %.not87 = icmp eq ptr %126, null
  br i1 %.not87, label %.thread, label %127

127:                                              ; preds = %.thread92.thread
  %128 = load ptr, ptr %126, align 8, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %128, i64 144
  %130 = load ptr, ptr %129, align 8
  call void %130(ptr noundef nonnull align 8 dereferenceable(104) %126, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %131 = load ptr, ptr %126, align 8, !tbaa !5
  %132 = getelementptr inbounds i8, ptr %131, i64 8
  %133 = load ptr, ptr %132, align 8
  call void %133(ptr noundef nonnull align 8 dereferenceable(104) %126) #8
  br label %.preheader.backedge

.thread:                                          ; preds = %.thread92.thread, %53, %63, %100, %72, %74, %121, %117, %115, %106, %14, %16, %35, %29, %.thread90
  ret void
}

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

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

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

; Function Attrs: nounwind
declare void @_ZN9TiXmlNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #6

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #7

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"omnipotent char", !7, i64 0}


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