; 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.TiXmlBase = type { ptr, %struct.TiXmlCursor, ptr }
%struct.TiXmlCursor = type { i32, i32 }
%class.TiXmlAttribute = type { %class.TiXmlBase, ptr, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", ptr, ptr }
%"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.11 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [2 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: mustprogress nounwind uwtable
declare dso_local void @_ZN16TiXmlParsingData5StampEPKc13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN9TiXmlBase14SkipWhiteSpaceEPKc13TiXmlEncoding(ptr noundef, i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9TiXmlBase12IsWhiteSpaceEc(i8 noundef signext) #3 align 2

; 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 noundef ptr @_ZN9TiXmlBase8ReadNameEPKcPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13TiXmlEncoding(ptr noundef, ptr noundef, i32 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN9TiXmlBase8ReadTextEPKcPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbS1_b13TiXmlEncoding(ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef, i1 noundef zeroext, i32 noundef) #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 dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK16TiXmlParsingData6CursorEv(ptr noundef nonnull align 8 dereferenceable(20)) #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN14TiXmlAttribute5ParseEPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) unnamed_addr #2 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = 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 i32 %3, ptr %9, align 4, !tbaa !9
  %15 = load ptr, ptr %6, align 8
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = load i32, ptr %9, align 4, !tbaa !9
  %18 = call noundef ptr @_ZN9TiXmlBase14SkipWhiteSpaceEPKc13TiXmlEncoding(ptr noundef %16, i32 noundef %17)
  store ptr %18, ptr %7, align 8, !tbaa !5
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %25

21:                                               ; preds = %4
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load i8, ptr %22, align 1, !tbaa !11
  %24 = icmp ne i8 %23, 0
  br i1 %24, label %26, label %25

25:                                               ; preds = %21, %4
  store ptr null, ptr %5, align 8
  br label %194

26:                                               ; preds = %21
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %36

29:                                               ; preds = %26
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN16TiXmlParsingData5StampEPKc13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(20) %30, ptr noundef %31, i32 noundef %32)
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK16TiXmlParsingData6CursorEv(ptr noundef nonnull align 8 dereferenceable(20) %33)
  %35 = getelementptr inbounds %class.TiXmlBase, ptr %15, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 4 %34, i64 8, i1 false), !tbaa.struct !12
  br label %36

36:                                               ; preds = %29, %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %37, ptr %10, align 8, !tbaa !5
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %class.TiXmlAttribute, ptr %15, i32 0, i32 2
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = call noundef ptr @_ZN9TiXmlBase8ReadNameEPKcPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13TiXmlEncoding(ptr noundef %38, ptr noundef %39, i32 noundef %40)
  store ptr %41, ptr %7, align 8, !tbaa !5
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %48

44:                                               ; preds = %36
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = load i8, ptr %45, align 1, !tbaa !11
  %47 = icmp ne i8 %46, 0
  br i1 %47, label %59, label %48

48:                                               ; preds = %44, %36
  %49 = getelementptr inbounds %class.TiXmlAttribute, ptr %15, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !15
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %58

52:                                               ; preds = %48
  %53 = getelementptr inbounds %class.TiXmlAttribute, ptr %15, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN13TiXmlDocument8SetErrorEiPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(157) %54, i32 noundef 6, ptr noundef %55, ptr noundef %56, i32 noundef %57)
  br label %58

58:                                               ; preds = %52, %48
  store ptr null, ptr %5, align 8
  store i32 1, ptr %11, align 4
  br label %193

59:                                               ; preds = %44
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = call noundef ptr @_ZN9TiXmlBase14SkipWhiteSpaceEPKc13TiXmlEncoding(ptr noundef %60, i32 noundef %61)
  store ptr %62, ptr %7, align 8, !tbaa !5
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %74

65:                                               ; preds = %59
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load i8, ptr %66, align 1, !tbaa !11
  %68 = icmp ne i8 %67, 0
  br i1 %68, label %69, label %74

69:                                               ; preds = %65
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = load i8, ptr %70, align 1, !tbaa !11
  %72 = sext i8 %71 to i32
  %73 = icmp ne i32 %72, 61
  br i1 %73, label %74, label %85

74:                                               ; preds = %69, %65, %59
  %75 = getelementptr inbounds %class.TiXmlAttribute, ptr %15, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !15
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %84

78:                                               ; preds = %74
  %79 = getelementptr inbounds %class.TiXmlAttribute, ptr %15, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !15
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN13TiXmlDocument8SetErrorEiPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(157) %80, i32 noundef 6, ptr noundef %81, ptr noundef %82, i32 noundef %83)
  br label %84

84:                                               ; preds = %78, %74
  store ptr null, ptr %5, align 8
  store i32 1, ptr %11, align 4
  br label %193

85:                                               ; preds = %69
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i32 1
  store ptr %87, ptr %7, align 8, !tbaa !5
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = load i32, ptr %9, align 4, !tbaa !9
  %90 = call noundef ptr @_ZN9TiXmlBase14SkipWhiteSpaceEPKc13TiXmlEncoding(ptr noundef %88, i32 noundef %89)
  store ptr %90, ptr %7, align 8, !tbaa !5
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %97

93:                                               ; preds = %85
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = load i8, ptr %94, align 1, !tbaa !11
  %96 = icmp ne i8 %95, 0
  br i1 %96, label %108, label %97

97:                                               ; preds = %93, %85
  %98 = getelementptr inbounds %class.TiXmlAttribute, ptr %15, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !15
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %107

101:                                              ; preds = %97
  %102 = getelementptr inbounds %class.TiXmlAttribute, ptr %15, i32 0, i32 1
  %103 = load ptr, ptr %102, align 8, !tbaa !15
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN13TiXmlDocument8SetErrorEiPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(157) %103, i32 noundef 6, ptr noundef %104, ptr noundef %105, i32 noundef %106)
  br label %107

107:                                              ; preds = %101, %97
  store ptr null, ptr %5, align 8
  store i32 1, ptr %11, align 4
  br label %193

108:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  store i8 39, ptr %13, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  store i8 34, ptr %14, align 1, !tbaa !11
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = load i8, ptr %109, align 1, !tbaa !11
  %111 = sext i8 %110 to i32
  %112 = icmp eq i32 %111, 39
  br i1 %112, label %113, label %121

113:                                              ; preds = %108
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = getelementptr inbounds i8, ptr %114, i32 1
  store ptr %115, ptr %7, align 8, !tbaa !5
  store ptr @.str.28, ptr %12, align 8, !tbaa !5
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = getelementptr inbounds %class.TiXmlAttribute, ptr %15, i32 0, i32 3
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = load i32, ptr %9, align 4, !tbaa !9
  %120 = call noundef ptr @_ZN9TiXmlBase8ReadTextEPKcPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbS1_b13TiXmlEncoding(ptr noundef %116, ptr noundef %117, i1 noundef zeroext false, ptr noundef %118, i1 noundef zeroext false, i32 noundef %119)
  store ptr %120, ptr %7, align 8, !tbaa !5
  br label %190

121:                                              ; preds = %108
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = load i8, ptr %122, align 1, !tbaa !11
  %124 = sext i8 %123 to i32
  %125 = icmp eq i32 %124, 34
  br i1 %125, label %126, label %134

126:                                              ; preds = %121
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %127, i32 1
  store ptr %128, ptr %7, align 8, !tbaa !5
  store ptr @.str.29, ptr %12, align 8, !tbaa !5
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %class.TiXmlAttribute, ptr %15, i32 0, i32 3
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = load i32, ptr %9, align 4, !tbaa !9
  %133 = call noundef ptr @_ZN9TiXmlBase8ReadTextEPKcPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbS1_b13TiXmlEncoding(ptr noundef %129, ptr noundef %130, i1 noundef zeroext false, ptr noundef %131, i1 noundef zeroext false, i32 noundef %132)
  store ptr %133, ptr %7, align 8, !tbaa !5
  br label %189

134:                                              ; preds = %121
  %135 = getelementptr inbounds %class.TiXmlAttribute, ptr %15, i32 0, i32 3
  %136 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %135, ptr noundef @.str.11)
  br label %137

137:                                              ; preds = %181, %134
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = icmp ne ptr %138, null
  br i1 %139, label %140, label %158

140:                                              ; preds = %137
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = load i8, ptr %141, align 1, !tbaa !11
  %143 = icmp ne i8 %142, 0
  br i1 %143, label %144, label %158

144:                                              ; preds = %140
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = load i8, ptr %145, align 1, !tbaa !11
  %147 = call noundef zeroext i1 @_ZN9TiXmlBase12IsWhiteSpaceEc(i8 noundef signext %146)
  br i1 %147, label %158, label %148

148:                                              ; preds = %144
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = load i8, ptr %149, align 1, !tbaa !11
  %151 = sext i8 %150 to i32
  %152 = icmp ne i32 %151, 47
  br i1 %152, label %153, label %158

153:                                              ; preds = %148
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = load i8, ptr %154, align 1, !tbaa !11
  %156 = sext i8 %155 to i32
  %157 = icmp ne i32 %156, 62
  br label %158

158:                                              ; preds = %153, %148, %144, %140, %137
  %159 = phi i1 [ false, %148 ], [ false, %144 ], [ false, %140 ], [ false, %137 ], [ %157, %153 ]
  br i1 %159, label %160, label %188

160:                                              ; preds = %158
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = load i8, ptr %161, align 1, !tbaa !11
  %163 = sext i8 %162 to i32
  %164 = icmp eq i32 %163, 39
  br i1 %164, label %170, label %165

165:                                              ; preds = %160
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = load i8, ptr %166, align 1, !tbaa !11
  %168 = sext i8 %167 to i32
  %169 = icmp eq i32 %168, 34
  br i1 %169, label %170, label %181

170:                                              ; preds = %165, %160
  %171 = getelementptr inbounds %class.TiXmlAttribute, ptr %15, i32 0, i32 1
  %172 = load ptr, ptr %171, align 8, !tbaa !15
  %173 = icmp ne ptr %172, null
  br i1 %173, label %174, label %180

174:                                              ; preds = %170
  %175 = getelementptr inbounds %class.TiXmlAttribute, ptr %15, i32 0, i32 1
  %176 = load ptr, ptr %175, align 8, !tbaa !15
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN13TiXmlDocument8SetErrorEiPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(157) %176, i32 noundef 6, ptr noundef %177, ptr noundef %178, i32 noundef %179)
  br label %180

180:                                              ; preds = %174, %170
  store ptr null, ptr %5, align 8
  store i32 1, ptr %11, align 4
  br label %192

181:                                              ; preds = %165
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = load i8, ptr %182, align 1, !tbaa !11
  %184 = getelementptr inbounds %class.TiXmlAttribute, ptr %15, i32 0, i32 3
  %185 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %184, i8 noundef signext %183)
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = getelementptr inbounds i8, ptr %186, i32 1
  store ptr %187, ptr %7, align 8, !tbaa !5
  br label %137, !llvm.loop !22

188:                                              ; preds = %158
  br label %189

189:                                              ; preds = %188, %126
  br label %190

190:                                              ; preds = %189, %113
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %191, ptr %5, align 8
  store i32 1, ptr %11, align 4
  br label %192

192:                                              ; preds = %190, %180
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %193

193:                                              ; preds = %192, %107, %84, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %194

194:                                              ; preds = %193, %25
  %195 = load ptr, ptr %5, align 8
  ret ptr %195
}

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS13TiXmlEncoding", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{i64 0, i64 4, !13, i64 4, i64 4, !13}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !6, i64 24}
!16 = !{!"_ZTS14TiXmlAttribute", !17, i64 0, !6, i64 24, !19, i64 32, !19, i64 64, !6, i64 96, !6, i64 104}
!17 = !{!"_ZTS9TiXmlBase", !18, i64 8, !6, i64 16}
!18 = !{!"_ZTS11TiXmlCursor", !14, i64 0, !14, i64 4}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !21, i64 8, !7, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; 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"

@.str.11 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN9TiXmlBase14SkipWhiteSpaceEPKc13TiXmlEncoding(ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9TiXmlBase12IsWhiteSpaceEc(i8 noundef signext) local_unnamed_addr #2 align 2

; 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 #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN9TiXmlBase8ReadNameEPKcPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13TiXmlEncoding(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN9TiXmlBase8ReadTextEPKcPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbS1_b13TiXmlEncoding(ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef, i1 noundef zeroext, i32 noundef) local_unnamed_addr #1 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 #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN14TiXmlAttribute5ParseEPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) unnamed_addr #1 align 2 {
  %5 = tail call noundef ptr @_ZN9TiXmlBase14SkipWhiteSpaceEPKc13TiXmlEncoding(ptr noundef %1, i32 noundef %3)
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %.critedge, label %6

6:                                                ; preds = %4
  %7 = load i8, ptr %5, align 1, !tbaa !5
  %.not73 = icmp eq i8 %7, 0
  br i1 %.not73, label %.critedge, label %8

8:                                                ; preds = %6
  %.not74 = icmp eq ptr %2, null
  br i1 %.not74, label %13, label %9

9:                                                ; preds = %8
  tail call void @_ZN16TiXmlParsingData5StampEPKc13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(20) %2, ptr noundef nonnull %5, i32 noundef %3)
  %10 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK16TiXmlParsingData6CursorEv(ptr noundef nonnull align 8 dereferenceable(20) %2)
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i64, ptr %10, align 4
  store i64 %12, ptr %11, align 8
  br label %13

13:                                               ; preds = %9, %8
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  %15 = tail call noundef ptr @_ZN9TiXmlBase8ReadNameEPKcPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13TiXmlEncoding(ptr noundef nonnull %5, ptr noundef nonnull %14, i32 noundef %3)
  %.not75 = icmp eq ptr %15, null
  br i1 %.not75, label %18, label %16

16:                                               ; preds = %13
  %17 = load i8, ptr %15, align 1, !tbaa !5
  %.not76 = icmp eq i8 %17, 0
  br i1 %.not76, label %18, label %22

18:                                               ; preds = %16, %13
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  %20 = load ptr, ptr %19, align 8, !tbaa !8
  %.not77 = icmp eq ptr %20, null
  br i1 %.not77, label %.critedge, label %21

21:                                               ; preds = %18
  tail call void @_ZN13TiXmlDocument8SetErrorEiPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(157) %20, i32 noundef 6, ptr noundef nonnull %5, ptr noundef %2, i32 noundef %3)
  br label %.critedge

22:                                               ; preds = %16
  %23 = tail call noundef ptr @_ZN9TiXmlBase14SkipWhiteSpaceEPKc13TiXmlEncoding(ptr noundef nonnull %15, i32 noundef %3)
  %.not78 = icmp eq ptr %23, null
  br i1 %.not78, label %26, label %24

24:                                               ; preds = %22
  %25 = load i8, ptr %23, align 1, !tbaa !5
  %cond = icmp eq i8 %25, 61
  br i1 %cond, label %30, label %26

26:                                               ; preds = %24, %22
  %27 = getelementptr inbounds i8, ptr %0, i64 24
  %28 = load ptr, ptr %27, align 8, !tbaa !8
  %.not88 = icmp eq ptr %28, null
  br i1 %.not88, label %.critedge, label %29

29:                                               ; preds = %26
  tail call void @_ZN13TiXmlDocument8SetErrorEiPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(157) %28, i32 noundef 6, ptr noundef %23, ptr noundef %2, i32 noundef %3)
  br label %.critedge

30:                                               ; preds = %24
  %31 = getelementptr inbounds i8, ptr %23, i64 1
  %32 = tail call noundef ptr @_ZN9TiXmlBase14SkipWhiteSpaceEPKc13TiXmlEncoding(ptr noundef nonnull %31, i32 noundef %3)
  %.not81 = icmp eq ptr %32, null
  br i1 %.not81, label %35, label %33

33:                                               ; preds = %30
  %34 = load i8, ptr %32, align 1, !tbaa !5
  switch i8 %34, label %47 [
    i8 0, label %35
    i8 39, label %39
    i8 34, label %43
  ]

35:                                               ; preds = %33, %30
  %36 = getelementptr inbounds i8, ptr %0, i64 24
  %37 = load ptr, ptr %36, align 8, !tbaa !8
  %.not83 = icmp eq ptr %37, null
  br i1 %.not83, label %.critedge, label %38

38:                                               ; preds = %35
  tail call void @_ZN13TiXmlDocument8SetErrorEiPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(157) %37, i32 noundef 6, ptr noundef %32, ptr noundef %2, i32 noundef %3)
  br label %.critedge

39:                                               ; preds = %33
  %40 = getelementptr inbounds i8, ptr %32, i64 1
  %41 = getelementptr inbounds i8, ptr %0, i64 64
  %42 = tail call noundef ptr @_ZN9TiXmlBase8ReadTextEPKcPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbS1_b13TiXmlEncoding(ptr noundef nonnull %40, ptr noundef nonnull %41, i1 noundef zeroext false, ptr noundef nonnull @.str.28, i1 noundef zeroext false, i32 noundef %3)
  br label %.critedge

43:                                               ; preds = %33
  %44 = getelementptr inbounds i8, ptr %32, i64 1
  %45 = getelementptr inbounds i8, ptr %0, i64 64
  %46 = tail call noundef ptr @_ZN9TiXmlBase8ReadTextEPKcPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbS1_b13TiXmlEncoding(ptr noundef nonnull %44, ptr noundef nonnull %45, i1 noundef zeroext false, ptr noundef nonnull @.str.29, i1 noundef zeroext false, i32 noundef %3)
  br label %.critedge

47:                                               ; preds = %33
  %48 = getelementptr inbounds i8, ptr %0, i64 64
  %49 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull @.str.11)
  %50 = load i8, ptr %32, align 1, !tbaa !5
  %.not8490 = icmp eq i8 %50, 0
  br i1 %.not8490, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %47, %59
  %51 = phi i8 [ %62, %59 ], [ %50, %47 ]
  %.05791 = phi ptr [ %61, %59 ], [ %32, %47 ]
  %52 = tail call noundef zeroext i1 @_ZN9TiXmlBase12IsWhiteSpaceEc(i8 noundef signext %51)
  br i1 %52, label %.critedge, label %53

53:                                               ; preds = %.lr.ph
  %54 = load i8, ptr %.05791, align 1, !tbaa !5
  switch i8 %54, label %59 [
    i8 47, label %.critedge
    i8 62, label %.critedge
    i8 39, label %55
    i8 34, label %55
  ]

55:                                               ; preds = %53, %53
  %56 = getelementptr inbounds i8, ptr %0, i64 24
  %57 = load ptr, ptr %56, align 8, !tbaa !8
  %.not87 = icmp eq ptr %57, null
  br i1 %.not87, label %.critedge, label %58

58:                                               ; preds = %55
  tail call void @_ZN13TiXmlDocument8SetErrorEiPKcP16TiXmlParsingData13TiXmlEncoding(ptr noundef nonnull align 8 dereferenceable(157) %57, i32 noundef 6, ptr noundef nonnull %.05791, ptr noundef %2, i32 noundef %3)
  br label %.critedge

59:                                               ; preds = %53
  %60 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %48, i8 noundef signext %54)
  %61 = getelementptr inbounds i8, ptr %.05791, i64 1
  %62 = load i8, ptr %61, align 1, !tbaa !5
  %.not84 = icmp eq i8 %62, 0
  br i1 %.not84, label %.critedge, label %.lr.ph, !llvm.loop !17

.critedge:                                        ; preds = %53, %53, %.lr.ph, %59, %47, %21, %18, %29, %26, %38, %35, %39, %43, %55, %58, %4, %6
  %.2 = phi ptr [ null, %6 ], [ null, %4 ], [ null, %21 ], [ null, %18 ], [ null, %29 ], [ null, %26 ], [ null, %38 ], [ null, %35 ], [ null, %58 ], [ null, %55 ], [ %42, %39 ], [ %46, %43 ], [ %32, %47 ], [ %.05791, %53 ], [ %.05791, %53 ], [ %.05791, %.lr.ph ], [ %61, %59 ]
  ret ptr %.2
}

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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" }

!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, !13, i64 24}
!9 = !{!"_ZTS14TiXmlAttribute", !10, i64 0, !13, i64 24, !14, i64 32, !14, i64 64, !13, i64 96, !13, i64 104}
!10 = !{!"_ZTS9TiXmlBase", !11, i64 8, !13, i64 16}
!11 = !{!"_ZTS11TiXmlCursor", !12, i64 0, !12, i64 4}
!12 = !{!"int", !6, i64 0}
!13 = !{!"any pointer", !6, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !16, i64 8, !6, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!16 = !{!"long", !6, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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