; LLVM IR from simco50/FluxEngine :: FluxEngine/External/TinyXml/tinyxml2.ll (ZN8tinyxml27XMLNode9ParseDeepEPcPNS_7StrPairEPi)

; 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.tinyxml2::StrPair" = type { i32, ptr, ptr }
%"class.tinyxml2::XMLNode" = type { ptr, ptr, ptr, %"class.tinyxml2::StrPair", i32, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef) #0 align 2

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

22:                                               ; preds = %238, %4
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %29

25:                                               ; preds = %22
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = load i8, ptr %26, align 1, !tbaa !9
  %28 = icmp ne i8 %27, 0
  br label %29

29:                                               ; preds = %25, %22
  %30 = phi i1 [ false, %22 ], [ %28, %25 ]
  br i1 %30, label %31, label %242

31:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store ptr null, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %21, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !10
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = call noundef ptr @_ZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeE(ptr noundef nonnull align 8 dereferenceable(776) %33, ptr noundef %34, ptr noundef %10)
  store ptr %35, ptr %7, align 8, !tbaa !5
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %39

38:                                               ; preds = %31
  store i32 3, ptr %11, align 4
  br label %236

39:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %40, i32 0, i32 4
  %42 = load i32, ptr %41, align 8, !tbaa !14
  store i32 %42, ptr %12, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #4
  call void @_ZN8tinyxml27StrPairC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13)
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = load ptr, ptr %43, align 8, !tbaa !16
  %47 = getelementptr inbounds ptr, ptr %46, i64 17
  %48 = load ptr, ptr %47, align 8
  %49 = invoke noundef ptr %48(ptr noundef nonnull align 8 dereferenceable(104) %43, ptr noundef %44, ptr noundef %13, ptr noundef %45)
          to label %50 unwind label %65

50:                                               ; preds = %39
  store ptr %49, ptr %7, align 8, !tbaa !5
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = icmp ne ptr %51, null
  br i1 %52, label %70, label %53

53:                                               ; preds = %50
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %54)
          to label %55 unwind label %65

55:                                               ; preds = %53
  %56 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %21, i32 0, i32 1
  %57 = load ptr, ptr %56, align 8, !tbaa !10
  %58 = invoke noundef zeroext i1 @_ZNK8tinyxml211XMLDocument5ErrorEv(ptr noundef nonnull align 8 dereferenceable(776) %57)
          to label %59 unwind label %65

59:                                               ; preds = %55
  br i1 %58, label %69, label %60

60:                                               ; preds = %59
  %61 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %21, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !10
  %63 = load i32, ptr %12, align 4, !tbaa !15
  invoke void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776) %62, i32 noundef 17, i32 noundef %63, ptr noundef null)
          to label %64 unwind label %65

64:                                               ; preds = %60
  br label %69

65:                                               ; preds = %60, %55, %53, %39
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %14, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %15, align 4
  br label %241

69:                                               ; preds = %64, %59
  store i32 3, ptr %11, align 4
  br label %235

70:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = load ptr, ptr %71, align 8, !tbaa !16
  %73 = getelementptr inbounds ptr, ptr %72, i64 4
  %74 = load ptr, ptr %73, align 8
  %75 = invoke noundef ptr %74(ptr noundef nonnull align 8 dereferenceable(104) %71)
          to label %76 unwind label %98

76:                                               ; preds = %70
  store ptr %75, ptr %16, align 8, !tbaa !5
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %144

79:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  %80 = load ptr, ptr %21, align 8, !tbaa !16
  %81 = getelementptr inbounds ptr, ptr %80, i64 3
  %82 = load ptr, ptr %81, align 8
  %83 = invoke noundef ptr %82(ptr noundef nonnull align 8 dereferenceable(104) %21)
          to label %84 unwind label %102

84:                                               ; preds = %79
  %85 = icmp ne ptr %83, null
  %86 = zext i1 %85 to i8
  store i8 %86, ptr %17, align 1, !tbaa !18
  %87 = load i8, ptr %17, align 1, !tbaa !18, !range !20, !noundef !21
  %88 = trunc i8 %87 to i1
  br i1 %88, label %89, label %126

89:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %90 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %21, i32 0, i32 1
  %91 = load ptr, ptr %90, align 8, !tbaa !10
  %92 = invoke noundef ptr @_ZN8tinyxml27XMLNode10FirstChildEv(ptr noundef nonnull align 8 dereferenceable(104) %91)
          to label %93 unwind label %106

93:                                               ; preds = %89
  store ptr %92, ptr %18, align 8, !tbaa !5
  br label %94

94:                                               ; preds = %123, %93
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  %96 = icmp ne ptr %95, null
  br i1 %96, label %110, label %97

97:                                               ; preds = %94
  store i32 4, ptr %11, align 4
  br label %124

98:                                               ; preds = %70
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %14, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %15, align 4
  br label %240

102:                                              ; preds = %136, %135, %129, %79
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %14, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %15, align 4
  br label %143

106:                                              ; preds = %120, %110, %89
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %14, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %143

110:                                              ; preds = %94
  %111 = load ptr, ptr %18, align 8, !tbaa !5
  %112 = load ptr, ptr %111, align 8, !tbaa !16
  %113 = getelementptr inbounds ptr, ptr %112, i64 10
  %114 = load ptr, ptr %113, align 8
  %115 = invoke noundef ptr %114(ptr noundef nonnull align 8 dereferenceable(104) %111)
          to label %116 unwind label %106

116:                                              ; preds = %110
  %117 = icmp ne ptr %115, null
  br i1 %117, label %119, label %118

118:                                              ; preds = %116
  store i8 0, ptr %17, align 1, !tbaa !18
  store i32 4, ptr %11, align 4
  br label %124

119:                                              ; preds = %116
  br label %120

120:                                              ; preds = %119
  %121 = load ptr, ptr %18, align 8, !tbaa !5
  %122 = invoke noundef ptr @_ZNK8tinyxml27XMLNode11NextSiblingEv(ptr noundef nonnull align 8 dereferenceable(104) %121)
          to label %123 unwind label %106

123:                                              ; preds = %120
  store ptr %122, ptr %18, align 8, !tbaa !5
  br label %94, !llvm.loop !22

124:                                              ; preds = %118, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %125

125:                                              ; preds = %124
  br label %126

126:                                              ; preds = %125, %84
  %127 = load i8, ptr %17, align 1, !tbaa !18, !range !20, !noundef !21
  %128 = trunc i8 %127 to i1
  br i1 %128, label %139, label %129

129:                                              ; preds = %126
  %130 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %21, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !10
  %132 = load i32, ptr %12, align 4, !tbaa !15
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  %134 = invoke noundef ptr @_ZNK8tinyxml27XMLNode5ValueEv(ptr noundef nonnull align 8 dereferenceable(104) %133)
          to label %135 unwind label %102

135:                                              ; preds = %129
  invoke void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776) %131, i32 noundef 13, i32 noundef %132, ptr noundef @.str.15, ptr noundef %134)
          to label %136 unwind label %102

136:                                              ; preds = %135
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %137)
          to label %138 unwind label %102

138:                                              ; preds = %136
  store i32 3, ptr %11, align 4
  br label %140

139:                                              ; preds = %126
  store i32 0, ptr %11, align 4
  br label %140

140:                                              ; preds = %139, %138
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  %141 = load i32, ptr %11, align 4
  switch i32 %141, label %234 [
    i32 0, label %142
  ]

142:                                              ; preds = %140
  br label %144

143:                                              ; preds = %106, %102
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  br label %240

144:                                              ; preds = %142, %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  %146 = load ptr, ptr %145, align 8, !tbaa !16
  %147 = getelementptr inbounds ptr, ptr %146, i64 0
  %148 = load ptr, ptr %147, align 8
  %149 = invoke noundef ptr %148(ptr noundef nonnull align 8 dereferenceable(104) %145)
          to label %150 unwind label %166

150:                                              ; preds = %144
  store ptr %149, ptr %19, align 8, !tbaa !5
  %151 = load ptr, ptr %19, align 8, !tbaa !5
  %152 = icmp ne ptr %151, null
  br i1 %152, label %153, label %229

153:                                              ; preds = %150
  %154 = load ptr, ptr %19, align 8, !tbaa !5
  %155 = invoke noundef i32 @_ZNK8tinyxml210XMLElement11ClosingTypeEv(ptr noundef nonnull align 8 dereferenceable(120) %154)
          to label %156 unwind label %166

156:                                              ; preds = %153
  %157 = icmp eq i32 %155, 2
  br i1 %157, label %158, label %181

158:                                              ; preds = %156
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = icmp ne ptr %159, null
  br i1 %160, label %161, label %170

161:                                              ; preds = %158
  %162 = load ptr, ptr %19, align 8, !tbaa !5
  %163 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %162, i32 0, i32 3
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN8tinyxml27StrPair10TransferToEPS0_(ptr noundef nonnull align 8 dereferenceable(24) %163, ptr noundef %164)
          to label %165 unwind label %166

165:                                              ; preds = %161
  br label %170

166:                                              ; preds = %229, %177, %170, %161, %153, %144
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %14, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %15, align 4
  br label %239

170:                                              ; preds = %165, %158
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %171, i32 0, i32 10
  %173 = load ptr, ptr %172, align 8, !tbaa !24
  %174 = load ptr, ptr %173, align 8, !tbaa !16
  %175 = getelementptr inbounds ptr, ptr %174, i64 5
  %176 = load ptr, ptr %175, align 8
  invoke void %176(ptr noundef nonnull align 8 dereferenceable(8) %173)
          to label %177 unwind label %166

177:                                              ; preds = %170
  %178 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %178)
          to label %179 unwind label %166

179:                                              ; preds = %177
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %180, ptr %5, align 8
  store i32 1, ptr %11, align 4
  br label %233

181:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #4
  store i8 0, ptr %20, align 1, !tbaa !18
  %182 = invoke noundef zeroext i1 @_ZNK8tinyxml27StrPair5EmptyEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %183 unwind label %190

183:                                              ; preds = %181
  br i1 %182, label %184, label %195

184:                                              ; preds = %183
  %185 = load ptr, ptr %19, align 8, !tbaa !5
  %186 = invoke noundef i32 @_ZNK8tinyxml210XMLElement11ClosingTypeEv(ptr noundef nonnull align 8 dereferenceable(120) %185)
          to label %187 unwind label %190

187:                                              ; preds = %184
  %188 = icmp eq i32 %186, 0
  br i1 %188, label %189, label %194

189:                                              ; preds = %187
  store i8 1, ptr %20, align 1, !tbaa !18
  br label %194

190:                                              ; preds = %222, %221, %215, %206, %203, %201, %195, %184, %181
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %14, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  br label %239

194:                                              ; preds = %189, %187
  br label %212

195:                                              ; preds = %183
  %196 = load ptr, ptr %19, align 8, !tbaa !5
  %197 = invoke noundef i32 @_ZNK8tinyxml210XMLElement11ClosingTypeEv(ptr noundef nonnull align 8 dereferenceable(120) %196)
          to label %198 unwind label %190

198:                                              ; preds = %195
  %199 = icmp ne i32 %197, 0
  br i1 %199, label %200, label %201

200:                                              ; preds = %198
  store i8 1, ptr %20, align 1, !tbaa !18
  br label %211

201:                                              ; preds = %198
  %202 = invoke noundef ptr @_ZN8tinyxml27StrPair6GetStrEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %203 unwind label %190

203:                                              ; preds = %201
  %204 = load ptr, ptr %19, align 8, !tbaa !5
  %205 = invoke noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(120) %204)
          to label %206 unwind label %190

206:                                              ; preds = %203
  %207 = invoke noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef %202, ptr noundef %205, i32 noundef 2147483647)
          to label %208 unwind label %190

208:                                              ; preds = %206
  br i1 %207, label %210, label %209

209:                                              ; preds = %208
  store i8 1, ptr %20, align 1, !tbaa !18
  br label %210

210:                                              ; preds = %209, %208
  br label %211

211:                                              ; preds = %210, %200
  br label %212

212:                                              ; preds = %211, %194
  %213 = load i8, ptr %20, align 1, !tbaa !18, !range !20, !noundef !21
  %214 = trunc i8 %213 to i1
  br i1 %214, label %215, label %225

215:                                              ; preds = %212
  %216 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %21, i32 0, i32 1
  %217 = load ptr, ptr %216, align 8, !tbaa !10
  %218 = load i32, ptr %12, align 4, !tbaa !15
  %219 = load ptr, ptr %19, align 8, !tbaa !5
  %220 = invoke noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(120) %219)
          to label %221 unwind label %190

221:                                              ; preds = %215
  invoke void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776) %217, i32 noundef 16, i32 noundef %218, ptr noundef @.str.16, ptr noundef %220)
          to label %222 unwind label %190

222:                                              ; preds = %221
  %223 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %223)
          to label %224 unwind label %190

224:                                              ; preds = %222
  store i32 3, ptr %11, align 4
  br label %226

225:                                              ; preds = %212
  store i32 0, ptr %11, align 4
  br label %226

226:                                              ; preds = %225, %224
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  %227 = load i32, ptr %11, align 4
  switch i32 %227, label %233 [
    i32 0, label %228
  ]

228:                                              ; preds = %226
  br label %229

229:                                              ; preds = %228, %150
  %230 = load ptr, ptr %10, align 8, !tbaa !5
  %231 = invoke noundef ptr @_ZN8tinyxml27XMLNode14InsertEndChildEPS0_(ptr noundef nonnull align 8 dereferenceable(104) %21, ptr noundef %230)
          to label %232 unwind label %166

232:                                              ; preds = %229
  store i32 0, ptr %11, align 4
  br label %233

233:                                              ; preds = %232, %226, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %234

234:                                              ; preds = %233, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %235

235:                                              ; preds = %234, %69
  call void @_ZN8tinyxml27StrPairD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %236

236:                                              ; preds = %235, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %237 = load i32, ptr %11, align 4
  switch i32 %237, label %250 [
    i32 0, label %238
    i32 3, label %242
    i32 1, label %243
  ]

238:                                              ; preds = %236
  br label %22, !llvm.loop !25

239:                                              ; preds = %190, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %240

240:                                              ; preds = %239, %143, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %241

241:                                              ; preds = %240, %65
  call void @_ZN8tinyxml27StrPairD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %245

242:                                              ; preds = %236, %29
  store ptr null, ptr %5, align 8
  br label %243

243:                                              ; preds = %242, %236
  %244 = load ptr, ptr %5, align 8
  ret ptr %244

245:                                              ; preds = %241
  %246 = load ptr, ptr %14, align 8
  %247 = load i32, ptr %15, align 4
  %248 = insertvalue { ptr, i32 } poison, ptr %246, 0
  %249 = insertvalue { ptr, i32 } %248, i32 %247, 1
  resume { ptr, i32 } %249

250:                                              ; preds = %236
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776), i32 noundef, i32 noundef, ptr noundef, ...) #0 align 2

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

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

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

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

declare void @_ZN8tinyxml27StrPairD1Ev(ptr)

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

!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 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 8}
!11 = !{!"_ZTSN8tinyxml27XMLNodeE", !6, i64 8, !6, i64 16, !12, i64 24, !13, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!12 = !{!"_ZTSN8tinyxml27StrPairE", !13, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!"int", !7, i64 0}
!14 = !{!11, !13, i64 48}
!15 = !{!13, !13, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!11, !6, i64 96}
!25 = distinct !{!25, !23}


; 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.tinyxml2::StrPair" = type { i32, ptr, ptr }

@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN8tinyxml27XMLNode9ParseDeepEPcPNS_7StrPairEPi(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca %"class.tinyxml2::StrPair", align 8
  %.not161 = icmp eq ptr %1, null
  br i1 %.not161, label %.critedge, label %.lr.ph163

.lr.ph163:                                        ; preds = %4
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i8, ptr %1, align 1, !tbaa !5
  %.not59261 = icmp eq i8 %8, 0
  br i1 %.not59261, label %.critedge, label %.lr.ph263

.lr.ph263:                                        ; preds = %.lr.ph163, %99
  %.038162262 = phi ptr [ %20, %99 ], [ %1, %.lr.ph163 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  store ptr null, ptr %5, align 8, !tbaa !8
  %9 = load ptr, ptr %7, align 8, !tbaa !10
  %10 = call noundef ptr @_ZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeE(ptr noundef nonnull align 8 dereferenceable(776) %9, ptr noundef nonnull %.038162262, ptr noundef nonnull %5)
  %11 = load ptr, ptr %5, align 8, !tbaa !8
  %12 = icmp eq ptr %11, null
  br i1 %12, label %.thread87, label %13

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

13:                                               ; preds = %.lr.ph263
  %14 = getelementptr inbounds i8, ptr %11, i64 48
  %15 = load i32, ptr %14, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @_ZN8tinyxml27StrPairC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %16 = load ptr, ptr %5, align 8, !tbaa !8
  %17 = load ptr, ptr %16, align 8, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %17, i64 136
  %19 = load ptr, ptr %18, align 8
  %20 = invoke noundef ptr %19(ptr noundef nonnull align 8 dereferenceable(104) %16, ptr noundef %10, ptr noundef nonnull %6, ptr noundef %3)
          to label %21 unwind label %.loopexit99

21:                                               ; preds = %13
  %.not60 = icmp eq ptr %20, null
  %22 = load ptr, ptr %5, align 8, !tbaa !8
  br i1 %.not60, label %23, label %29

23:                                               ; preds = %21
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %22)
          to label %24 unwind label %.loopexit.split-lp

24:                                               ; preds = %23
  %25 = load ptr, ptr %7, align 8, !tbaa !10
  %26 = call noundef zeroext i1 @_ZNK8tinyxml211XMLDocument5ErrorEv(ptr noundef nonnull align 8 dereferenceable(776) %25)
  br i1 %26, label %.thread92, label %27

27:                                               ; preds = %24
  %28 = load ptr, ptr %7, align 8, !tbaa !10
  invoke void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776) %28, i32 noundef 17, i32 noundef %15, ptr noundef null)
          to label %.thread92 unwind label %.loopexit.split-lp

.loopexit99:                                      ; preds = %13
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %101

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

29:                                               ; preds = %21
  %30 = load ptr, ptr %22, align 8, !tbaa !15
  %31 = getelementptr inbounds i8, ptr %30, i64 32
  %32 = load ptr, ptr %31, align 8
  %33 = invoke noundef ptr %32(ptr noundef nonnull align 8 dereferenceable(104) %22)
          to label %34 unwind label %44

34:                                               ; preds = %29
  %.not61 = icmp eq ptr %33, null
  br i1 %.not61, label %.thread76, label %35

35:                                               ; preds = %34
  %36 = load ptr, ptr %0, align 8, !tbaa !15
  %37 = getelementptr inbounds i8, ptr %36, i64 24
  %38 = load ptr, ptr %37, align 8
  %39 = invoke noundef ptr %38(ptr noundef nonnull align 8 dereferenceable(104) %0)
          to label %40 unwind label %.loopexit100

40:                                               ; preds = %35
  %.not98 = icmp eq ptr %39, null
  br i1 %.not98, label %.loopexit, label %41

41:                                               ; preds = %40
  %42 = load ptr, ptr %7, align 8, !tbaa !10
  %43 = call noundef ptr @_ZN8tinyxml27XMLNode10FirstChildEv(ptr noundef nonnull align 8 dereferenceable(104) %42)
  %.not62159 = icmp eq ptr %43, null
  br i1 %.not62159, label %.thread76, label %.lr.ph

44:                                               ; preds = %29
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %101

.loopexit100:                                     ; preds = %35
  %lpad.loopexit102 = landingpad { ptr, i32 }
          cleanup
  br label %101

.loopexit.split-lp101:                            ; preds = %.loopexit, %57, %58
  %lpad.loopexit.split-lp103 = landingpad { ptr, i32 }
          cleanup
  br label %101

46:                                               ; preds = %.lr.ph
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %101

.lr.ph:                                           ; preds = %41, %53
  %.035160 = phi ptr [ %54, %53 ], [ %43, %41 ]
  %48 = load ptr, ptr %.035160, align 8, !tbaa !15
  %49 = getelementptr inbounds i8, ptr %48, i64 80
  %50 = load ptr, ptr %49, align 8
  %51 = invoke noundef ptr %50(ptr noundef nonnull align 8 dereferenceable(104) %.035160)
          to label %52 unwind label %46

52:                                               ; preds = %.lr.ph
  %.not63 = icmp eq ptr %51, null
  br i1 %.not63, label %.loopexit, label %53

53:                                               ; preds = %52
  %54 = call noundef ptr @_ZNK8tinyxml27XMLNode11NextSiblingEv(ptr noundef nonnull align 8 dereferenceable(104) %.035160)
  %.not62 = icmp eq ptr %54, null
  br i1 %.not62, label %.thread76, label %.lr.ph, !llvm.loop !17

.loopexit:                                        ; preds = %40, %52
  %55 = load ptr, ptr %7, align 8, !tbaa !10
  %56 = invoke noundef ptr @_ZNK8tinyxml27XMLNode5ValueEv(ptr noundef nonnull align 8 dereferenceable(104) %33)
          to label %57 unwind label %.loopexit.split-lp101

57:                                               ; preds = %.loopexit
  invoke void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776) %55, i32 noundef 13, i32 noundef %15, ptr noundef nonnull @.str.15, ptr noundef %56)
          to label %58 unwind label %.loopexit.split-lp101

58:                                               ; preds = %57
  %59 = load ptr, ptr %5, align 8, !tbaa !8
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %59)
          to label %.thread92 unwind label %.loopexit.split-lp101

.thread76:                                        ; preds = %53, %41, %34
  %60 = load ptr, ptr %5, align 8, !tbaa !8
  %61 = load ptr, ptr %60, align 8, !tbaa !15
  %62 = load ptr, ptr %61, align 8
  %63 = invoke noundef ptr %62(ptr noundef nonnull align 8 dereferenceable(104) %60)
          to label %64 unwind label %.loopexit106

64:                                               ; preds = %.thread76
  %.not65 = icmp eq ptr %63, null
  br i1 %.not65, label %.thread84, label %65

65:                                               ; preds = %64
  %66 = call noundef i32 @_ZNK8tinyxml210XMLElement11ClosingTypeEv(ptr noundef nonnull align 8 dereferenceable(120) %63)
  %67 = icmp eq i32 %66, 2
  br i1 %67, label %68, label %80

68:                                               ; preds = %65
  %.not67 = icmp eq ptr %2, null
  br i1 %.not67, label %71, label %69

69:                                               ; preds = %68
  %70 = getelementptr inbounds i8, ptr %63, i64 24
  invoke void @_ZN8tinyxml27StrPair10TransferToEPS0_(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull %2)
          to label %71 unwind label %.loopexit.split-lp107

.loopexit106:                                     ; preds = %.thread76, %.thread84
  %lpad.loopexit108 = landingpad { ptr, i32 }
          cleanup
  br label %101

.loopexit.split-lp107:                            ; preds = %69, %71, %78
  %lpad.loopexit.split-lp109 = landingpad { ptr, i32 }
          cleanup
  br label %101

71:                                               ; preds = %69, %68
  %72 = load ptr, ptr %5, align 8, !tbaa !8
  %73 = getelementptr inbounds i8, ptr %72, i64 96
  %74 = load ptr, ptr %73, align 8, !tbaa !19
  %75 = load ptr, ptr %74, align 8, !tbaa !15
  %76 = getelementptr inbounds i8, ptr %75, i64 40
  %77 = load ptr, ptr %76, align 8
  invoke void %77(ptr noundef nonnull align 8 dereferenceable(8) %74)
          to label %78 unwind label %.loopexit.split-lp107

78:                                               ; preds = %71
  %79 = load ptr, ptr %5, align 8, !tbaa !8
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %79)
          to label %.thread95 unwind label %.loopexit.split-lp107

.thread95:                                        ; preds = %78
  call void @_ZN8tinyxml27StrPairD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %.critedge

80:                                               ; preds = %65
  %81 = call noundef zeroext i1 @_ZNK8tinyxml27StrPair5EmptyEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %82 = call noundef i32 @_ZNK8tinyxml210XMLElement11ClosingTypeEv(ptr noundef nonnull align 8 dereferenceable(120) %63)
  %83 = icmp eq i32 %82, 0
  br i1 %81, label %84, label %85

84:                                               ; preds = %80
  br i1 %83, label %.thread79, label %.thread84

.loopexit111:                                     ; preds = %86, %88
  %lpad.loopexit113 = landingpad { ptr, i32 }
          cleanup
  br label %101

.loopexit.split-lp112:                            ; preds = %.thread79, %94, %95
  %lpad.loopexit.split-lp114 = landingpad { ptr, i32 }
          cleanup
  br label %101

85:                                               ; preds = %80
  br i1 %83, label %86, label %.thread79

86:                                               ; preds = %85
  %87 = invoke noundef ptr @_ZN8tinyxml27StrPair6GetStrEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %88 unwind label %.loopexit111

88:                                               ; preds = %86
  %89 = invoke noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(120) %63)
          to label %90 unwind label %.loopexit111

90:                                               ; preds = %88
  %91 = call noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef %87, ptr noundef %89, i32 noundef 2147483647)
  br i1 %91, label %.thread84, label %.thread79

.thread79:                                        ; preds = %85, %84, %90
  %92 = load ptr, ptr %7, align 8, !tbaa !10
  %93 = invoke noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(120) %63)
          to label %94 unwind label %.loopexit.split-lp112

94:                                               ; preds = %.thread79
  invoke void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776) %92, i32 noundef 16, i32 noundef %15, ptr noundef nonnull @.str.16, ptr noundef %93)
          to label %95 unwind label %.loopexit.split-lp112

95:                                               ; preds = %94
  %96 = load ptr, ptr %5, align 8, !tbaa !8
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %96)
          to label %.thread92 unwind label %.loopexit.split-lp112

.thread84:                                        ; preds = %84, %90, %64
  %97 = load ptr, ptr %5, align 8, !tbaa !8
  %98 = invoke noundef ptr @_ZN8tinyxml27XMLNode14InsertEndChildEPS0_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %97)
          to label %99 unwind label %.loopexit106

.thread92:                                        ; preds = %27, %24, %58, %95
  call void @_ZN8tinyxml27StrPairD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %.critedge

99:                                               ; preds = %.thread84
  call void @_ZN8tinyxml27StrPairD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  %100 = load i8, ptr %20, align 1, !tbaa !5
  %.not59 = icmp eq i8 %100, 0
  br i1 %.not59, label %.critedge, label %.lr.ph263

101:                                              ; preds = %.loopexit111, %.loopexit.split-lp112, %.loopexit106, %.loopexit.split-lp107, %.loopexit100, %.loopexit.split-lp101, %.loopexit99, %.loopexit.split-lp, %44, %46
  %.pn68.pn.pn = phi { ptr, i32 } [ %45, %44 ], [ %47, %46 ], [ %lpad.loopexit, %.loopexit99 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit102, %.loopexit100 ], [ %lpad.loopexit.split-lp103, %.loopexit.split-lp101 ], [ %lpad.loopexit108, %.loopexit106 ], [ %lpad.loopexit.split-lp109, %.loopexit.split-lp107 ], [ %lpad.loopexit113, %.loopexit111 ], [ %lpad.loopexit.split-lp114, %.loopexit.split-lp112 ]
  call void @_ZN8tinyxml27StrPairD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  resume { ptr, i32 } %.pn68.pn.pn

.critedge:                                        ; preds = %99, %.lr.ph163, %4, %.thread87, %.thread92, %.thread95
  %.5 = phi ptr [ %20, %.thread95 ], [ null, %.thread92 ], [ null, %.thread87 ], [ null, %4 ], [ null, %.lr.ph163 ], [ null, %99 ]
  ret ptr %.5
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776), i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0 align 2

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

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

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

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

declare void @_ZN8tinyxml27StrPairD1Ev(ptr) local_unnamed_addr

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

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !9, i64 8}
!11 = !{!"_ZTSN8tinyxml27XMLNodeE", !9, i64 8, !9, i64 16, !12, i64 24, !13, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !9, i64 88, !9, i64 96}
!12 = !{!"_ZTSN8tinyxml27StrPairE", !13, i64 0, !9, i64 8, !9, i64 16}
!13 = !{!"int", !6, i64 0}
!14 = !{!11, !13, i64 48}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!11, !9, i64 96}


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