; LLVM IR from mfem/mfem :: general/tinyxml2.ll (ZN8tinyxml211XMLDocumentC2EbNS_10WhitespaceE)

; 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::XMLDocument" = type { %"class.tinyxml2::XMLNode", i8, i8, i32, i32, %"class.tinyxml2::StrPair", i32, ptr, i64, i32, i32, %"class.tinyxml2::DynArray", %"class.tinyxml2::MemPoolT", %"class.tinyxml2::MemPoolT.1", %"class.tinyxml2::MemPoolT.3", %"class.tinyxml2::MemPoolT.5" }
%"class.tinyxml2::XMLNode" = type { ptr, ptr, ptr, %"class.tinyxml2::StrPair", i32, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.tinyxml2::StrPair" = type { i32, ptr, ptr }
%"class.tinyxml2::DynArray" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.0", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::MemPool" = type { ptr }
%"class.tinyxml2::DynArray.0" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.1" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.2", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.2" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.3" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.4", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.4" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.5" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.6", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.6" = type { ptr, [10 x ptr], i32, i32 }

@_ZTVN8tinyxml211XMLDocumentE = external dso_local unnamed_addr constant { [20 x ptr] }, align 8

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8tinyxml211XMLDocumentC2EbNS_10WhitespaceE(ptr noundef nonnull align 8 dereferenceable(784) %0, i1 noundef zeroext %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  %9 = zext i1 %1 to i8
  store i8 %9, ptr %5, align 1, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !11
  %10 = load ptr, ptr %4, align 8
  call void @_ZN8tinyxml27XMLNodeC2EPNS_11XMLDocumentE(ptr noundef nonnull align 8 dereferenceable(104) %10, ptr noundef null)
  store ptr getelementptr inbounds inrange(-16, 144) ({ [20 x ptr] }, ptr @_ZTVN8tinyxml211XMLDocumentE, i32 0, i32 0, i32 2), ptr %10, align 8, !tbaa !13
  %11 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %10, i32 0, i32 1
  store i8 0, ptr %11, align 8, !tbaa !15
  %12 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %10, i32 0, i32 2
  %13 = load i8, ptr %5, align 1, !tbaa !9, !range !32, !noundef !33
  %14 = trunc i8 %13 to i1
  %15 = zext i1 %14 to i8
  store i8 %15, ptr %12, align 1, !tbaa !34
  %16 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %10, i32 0, i32 3
  store i32 0, ptr %16, align 4, !tbaa !35
  %17 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %10, i32 0, i32 4
  %18 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %18, ptr %17, align 8, !tbaa !36
  %19 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %10, i32 0, i32 5
  invoke void @_ZN8tinyxml27StrPairC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %20 unwind label %37

20:                                               ; preds = %3
  %21 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %10, i32 0, i32 6
  store i32 0, ptr %21, align 8, !tbaa !37
  %22 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %10, i32 0, i32 7
  store ptr null, ptr %22, align 8, !tbaa !38
  %23 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %10, i32 0, i32 8
  store i64 0, ptr %23, align 8, !tbaa !39
  %24 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %10, i32 0, i32 9
  store i32 0, ptr %24, align 8, !tbaa !40
  %25 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %10, i32 0, i32 10
  store i32 0, ptr %25, align 4, !tbaa !41
  %26 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %10, i32 0, i32 11
  invoke void @_ZN8tinyxml28DynArrayIPNS_7XMLNodeELi10EEC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %26)
          to label %27 unwind label %41

27:                                               ; preds = %20
  %28 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %10, i32 0, i32 12
  invoke void @_ZN8tinyxml28MemPoolTILi136EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %28)
          to label %29 unwind label %45

29:                                               ; preds = %27
  %30 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %10, i32 0, i32 13
  invoke void @_ZN8tinyxml28MemPoolTILi80EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %30)
          to label %31 unwind label %49

31:                                               ; preds = %29
  %32 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %10, i32 0, i32 14
  invoke void @_ZN8tinyxml28MemPoolTILi112EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %32)
          to label %33 unwind label %53

33:                                               ; preds = %31
  %34 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %10, i32 0, i32 15
  invoke void @_ZN8tinyxml28MemPoolTILi104EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %34)
          to label %35 unwind label %57

35:                                               ; preds = %33
  %36 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %10, i32 0, i32 1
  store ptr %10, ptr %36, align 8, !tbaa !42
  ret void

37:                                               ; preds = %3
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %7, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %8, align 4
  br label %65

41:                                               ; preds = %20
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %7, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %8, align 4
  br label %64

45:                                               ; preds = %27
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %7, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %8, align 4
  br label %63

49:                                               ; preds = %29
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %7, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %8, align 4
  br label %62

53:                                               ; preds = %31
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %7, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %8, align 4
  br label %61

57:                                               ; preds = %33
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %7, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %8, align 4
  call void @_ZN8tinyxml28MemPoolTILi112EED2Ev(ptr noundef nonnull align 8 dereferenceable(128) %32) #2
  br label %61

61:                                               ; preds = %57, %53
  call void @_ZN8tinyxml28MemPoolTILi80EED2Ev(ptr noundef nonnull align 8 dereferenceable(128) %30) #2
  br label %62

62:                                               ; preds = %61, %49
  call void @_ZN8tinyxml28MemPoolTILi136EED2Ev(ptr noundef nonnull align 8 dereferenceable(128) %28) #2
  br label %63

63:                                               ; preds = %62, %45
  call void @_ZN8tinyxml28DynArrayIPNS_7XMLNodeELi10EED2Ev(ptr noundef nonnull align 8 dereferenceable(96) %26) #2
  br label %64

64:                                               ; preds = %63, %41
  call void @_ZN8tinyxml27StrPairD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #2
  br label %65

65:                                               ; preds = %64, %37
  call void @_ZN8tinyxml27XMLNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %10) #2
  br label %66

66:                                               ; preds = %65
  %67 = load ptr, ptr %7, align 8
  %68 = load i32, ptr %8, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml28MemPoolTILi136EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml28MemPoolTILi80EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml28MemPoolTILi112EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml28MemPoolTILi104EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8tinyxml27XMLNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #1 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 = { 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 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN8tinyxml210WhitespaceE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !10, i64 104}
!16 = !{!"_ZTSN8tinyxml211XMLDocumentE", !17, i64 0, !10, i64 104, !10, i64 105, !20, i64 108, !12, i64 112, !18, i64 120, !19, i64 144, !6, i64 152, !21, i64 160, !19, i64 168, !19, i64 172, !22, i64 176, !23, i64 272, !26, i64 400, !28, i64 528, !30, i64 656}
!17 = !{!"_ZTSN8tinyxml27XMLNodeE", !6, i64 8, !6, i64 16, !18, i64 24, !19, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!18 = !{!"_ZTSN8tinyxml27StrPairE", !19, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSN8tinyxml28XMLErrorE", !7, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSN8tinyxml28DynArrayIPNS_7XMLNodeELi10EEE", !6, i64 0, !7, i64 8, !19, i64 88, !19, i64 92}
!23 = !{!"_ZTSN8tinyxml28MemPoolTILi136EEE", !24, i64 0, !25, i64 8, !6, i64 104, !19, i64 112, !19, i64 116, !19, i64 120, !19, i64 124}
!24 = !{!"_ZTSN8tinyxml27MemPoolE"}
!25 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi136EE5BlockELi10EEE", !6, i64 0, !7, i64 8, !19, i64 88, !19, i64 92}
!26 = !{!"_ZTSN8tinyxml28MemPoolTILi80EEE", !24, i64 0, !27, i64 8, !6, i64 104, !19, i64 112, !19, i64 116, !19, i64 120, !19, i64 124}
!27 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi80EE5BlockELi10EEE", !6, i64 0, !7, i64 8, !19, i64 88, !19, i64 92}
!28 = !{!"_ZTSN8tinyxml28MemPoolTILi112EEE", !24, i64 0, !29, i64 8, !6, i64 104, !19, i64 112, !19, i64 116, !19, i64 120, !19, i64 124}
!29 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi112EE5BlockELi10EEE", !6, i64 0, !7, i64 8, !19, i64 88, !19, i64 92}
!30 = !{!"_ZTSN8tinyxml28MemPoolTILi104EEE", !24, i64 0, !31, i64 8, !6, i64 104, !19, i64 112, !19, i64 116, !19, i64 120, !19, i64 124}
!31 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi104EE5BlockELi10EEE", !6, i64 0, !7, i64 8, !19, i64 88, !19, i64 92}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!16, !10, i64 105}
!35 = !{!16, !20, i64 108}
!36 = !{!16, !12, i64 112}
!37 = !{!16, !19, i64 144}
!38 = !{!16, !6, i64 152}
!39 = !{!16, !21, i64 160}
!40 = !{!16, !19, i64 168}
!41 = !{!16, !19, i64 172}
!42 = !{!17, !6, i64 8}


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

@_ZTVN8tinyxml211XMLDocumentE = external dso_local unnamed_addr constant { [20 x ptr] }, align 8

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8tinyxml211XMLDocumentC2EbNS_10WhitespaceE(ptr noundef nonnull align 8 dereferenceable(784) %0, i1 noundef zeroext %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = zext i1 %1 to i8
  tail call void @_ZN8tinyxml27XMLNodeC2EPNS_11XMLDocumentE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef null)
  store ptr getelementptr inbounds inrange(-16, 144) (i8, ptr @_ZTVN8tinyxml211XMLDocumentE, i64 16), ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 104
  store i8 0, ptr %5, align 8, !tbaa !8
  %6 = getelementptr inbounds i8, ptr %0, i64 105
  store i8 %4, ptr %6, align 1, !tbaa !29
  %7 = getelementptr inbounds i8, ptr %0, i64 108
  store i32 0, ptr %7, align 4, !tbaa !30
  %8 = getelementptr inbounds i8, ptr %0, i64 112
  store i32 %2, ptr %8, align 8, !tbaa !31
  %9 = getelementptr inbounds i8, ptr %0, i64 120
  tail call void @_ZN8tinyxml27StrPairC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %10 = getelementptr inbounds i8, ptr %0, i64 144
  store i32 0, ptr %10, align 8, !tbaa !32
  %11 = getelementptr inbounds i8, ptr %0, i64 152
  %12 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, i8 0, i64 24, i1 false)
  tail call void @_ZN8tinyxml28DynArrayIPNS_7XMLNodeELi10EEC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %12)
  %13 = getelementptr inbounds i8, ptr %0, i64 272
  invoke void @_ZN8tinyxml28MemPoolTILi136EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %13)
          to label %14 unwind label %22

14:                                               ; preds = %3
  %15 = getelementptr inbounds i8, ptr %0, i64 400
  invoke void @_ZN8tinyxml28MemPoolTILi80EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %15)
          to label %16 unwind label %24

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %0, i64 528
  invoke void @_ZN8tinyxml28MemPoolTILi112EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %17)
          to label %18 unwind label %26

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %0, i64 656
  invoke void @_ZN8tinyxml28MemPoolTILi104EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %19)
          to label %20 unwind label %28

20:                                               ; preds = %18
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %0, ptr %21, align 8, !tbaa !33
  ret void

22:                                               ; preds = %3
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %32

24:                                               ; preds = %14
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %31

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

28:                                               ; preds = %18
  %29 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN8tinyxml28MemPoolTILi112EED2Ev(ptr noundef nonnull align 8 dereferenceable(128) %17) #3
  br label %30

30:                                               ; preds = %28, %26
  %.pn = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  tail call void @_ZN8tinyxml28MemPoolTILi80EED2Ev(ptr noundef nonnull align 8 dereferenceable(128) %15) #3
  br label %31

31:                                               ; preds = %30, %24
  %.pn.pn = phi { ptr, i32 } [ %.pn, %30 ], [ %25, %24 ]
  tail call void @_ZN8tinyxml28MemPoolTILi136EED2Ev(ptr noundef nonnull align 8 dereferenceable(128) %13) #3
  br label %32

32:                                               ; preds = %31, %22
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %31 ], [ %23, %22 ]
  tail call void @_ZN8tinyxml28DynArrayIPNS_7XMLNodeELi10EED2Ev(ptr noundef nonnull align 8 dereferenceable(96) %12) #3
  tail call void @_ZN8tinyxml27StrPairD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  tail call void @_ZN8tinyxml27XMLNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %0) #3
  resume { ptr, i32 } %.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml28MemPoolTILi136EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml28MemPoolTILi80EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml28MemPoolTILi112EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml28MemPoolTILi104EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #0 align 2

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

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

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

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

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

declare void @_ZN8tinyxml27StrPairD1Ev(ptr) local_unnamed_addr

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !15, i64 104}
!9 = !{!"_ZTSN8tinyxml211XMLDocumentE", !10, i64 0, !15, i64 104, !15, i64 105, !16, i64 108, !17, i64 112, !13, i64 120, !14, i64 144, !11, i64 152, !18, i64 160, !14, i64 168, !14, i64 172, !19, i64 176, !20, i64 272, !23, i64 400, !25, i64 528, !27, i64 656}
!10 = !{!"_ZTSN8tinyxml27XMLNodeE", !11, i64 8, !11, i64 16, !13, i64 24, !14, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTSN8tinyxml27StrPairE", !14, i64 0, !11, i64 8, !11, i64 16}
!14 = !{!"int", !12, i64 0}
!15 = !{!"bool", !12, i64 0}
!16 = !{!"_ZTSN8tinyxml28XMLErrorE", !12, i64 0}
!17 = !{!"_ZTSN8tinyxml210WhitespaceE", !12, i64 0}
!18 = !{!"long", !12, i64 0}
!19 = !{!"_ZTSN8tinyxml28DynArrayIPNS_7XMLNodeELi10EEE", !11, i64 0, !12, i64 8, !14, i64 88, !14, i64 92}
!20 = !{!"_ZTSN8tinyxml28MemPoolTILi136EEE", !21, i64 0, !22, i64 8, !11, i64 104, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124}
!21 = !{!"_ZTSN8tinyxml27MemPoolE"}
!22 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi136EE5BlockELi10EEE", !11, i64 0, !12, i64 8, !14, i64 88, !14, i64 92}
!23 = !{!"_ZTSN8tinyxml28MemPoolTILi80EEE", !21, i64 0, !24, i64 8, !11, i64 104, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124}
!24 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi80EE5BlockELi10EEE", !11, i64 0, !12, i64 8, !14, i64 88, !14, i64 92}
!25 = !{!"_ZTSN8tinyxml28MemPoolTILi112EEE", !21, i64 0, !26, i64 8, !11, i64 104, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124}
!26 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi112EE5BlockELi10EEE", !11, i64 0, !12, i64 8, !14, i64 88, !14, i64 92}
!27 = !{!"_ZTSN8tinyxml28MemPoolTILi104EEE", !21, i64 0, !28, i64 8, !11, i64 104, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124}
!28 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi104EE5BlockELi10EEE", !11, i64 0, !12, i64 8, !14, i64 88, !14, i64 92}
!29 = !{!9, !15, i64 105}
!30 = !{!9, !16, i64 108}
!31 = !{!9, !17, i64 112}
!32 = !{!9, !14, i64 144}
!33 = !{!10, !11, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass