; LLVM IR from vczh/herodb :: Kernel/Source (Vlpp)

; 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.vl::parsing::xml::XmlPrintVisitor" = type { %"class.vl::Object", %"class.vl::parsing::xml::XmlNode::IVisitor.base", ptr, %"class.vl::Interface", %"class.vl::reflection::DescriptableObject" }
%"class.vl::Object" = type { ptr }
%"class.vl::parsing::xml::XmlNode::IVisitor.base" = type { %"class.vl::reflection::IDescriptable.base", %"class.vl::reflection::Description.base.731" }
%"class.vl::reflection::IDescriptable.base" = type { %"class.vl::reflection::Description.base.17" }
%"class.vl::reflection::Description.base.17" = type { ptr }
%"class.vl::reflection::Description.base.731" = type { ptr }
%"class.vl::Interface" = type { ptr }
%"class.vl::reflection::DescriptableObject" = type { ptr, i64, ptr, i64, ptr, %"class.vl::Ptr.12" }
%"class.vl::Ptr.12" = type { ptr, ptr, ptr, ptr }
%"class.vl::collections::EnumerableForEachIterator.733" = type { %"class.vl::collections::ForEachIterator.734", %"class.vl::Ptr.735" }
%"class.vl::collections::ForEachIterator.734" = type { %"class.vl::Object" }
%"class.vl::Ptr.735" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.725" = type { ptr, ptr, ptr, ptr }
%"class.vl::parsing::xml::XmlElement" = type { %"class.vl::parsing::xml::XmlNode.base", %"class.vl::reflection::Description.base.737", %"class.vl::parsing::ParsingToken", %"class.vl::parsing::ParsingToken", %"class.vl::collections::List.738", %"class.vl::collections::List.716", %"class.vl::reflection::DescriptableObject" }
%"class.vl::parsing::xml::XmlNode.base" = type { %"class.vl::parsing::ParsingTreeCustomBase.base", %"class.vl::reflection::Description.base.727" }
%"class.vl::parsing::ParsingTreeCustomBase.base" = type { %"class.vl::Object", %"class.vl::reflection::Description.base", %"struct.vl::parsing::ParsingTextRange", %"class.vl::collections::List" }
%"class.vl::reflection::Description.base" = type { ptr }
%"struct.vl::parsing::ParsingTextRange" = type { %"struct.vl::parsing::ParsingTextPos", %"struct.vl::parsing::ParsingTextPos", i64 }
%"struct.vl::parsing::ParsingTextPos" = type { i64, i64, i64 }
%"class.vl::collections::List" = type { %"class.vl::collections::ListBase.base", %"class.vl::collections::IEnumerable.2" }
%"class.vl::collections::ListBase.base" = type <{ %"class.vl::collections::ArrayBase.base.3", i64, i8 }>
%"class.vl::collections::ArrayBase.base.3" = type { %"class.vl::collections::ListStore.1", ptr, i64 }
%"class.vl::collections::ListStore.1" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.2" = type { %"class.vl::Interface" }
%"class.vl::reflection::Description.base.727" = type { ptr }
%"class.vl::reflection::Description.base.737" = type { ptr }
%"class.vl::parsing::ParsingToken" = type { %"class.vl::parsing::ParsingTreeCustomBase.base", %"class.vl::reflection::Description.base.14", i64, %"class.vl::ObjectString", %"class.vl::reflection::DescriptableObject" }
%"class.vl::reflection::Description.base.14" = type { ptr }
%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::collections::List.738" = type { %"class.vl::collections::ListBase.base.744", %"class.vl::collections::IEnumerable.742" }
%"class.vl::collections::ListBase.base.744" = type <{ %"class.vl::collections::ArrayBase.base.743", i64, i8 }>
%"class.vl::collections::ArrayBase.base.743" = type { %"class.vl::collections::ListStore.741", ptr, i64 }
%"class.vl::collections::ListStore.741" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.742" = type { %"class.vl::Interface" }
%"class.vl::collections::List.716" = type { %"class.vl::collections::ListBase.base.722", %"class.vl::collections::IEnumerable.720" }
%"class.vl::collections::ListBase.base.722" = type <{ %"class.vl::collections::ArrayBase.base.721", i64, i8 }>
%"class.vl::collections::ArrayBase.base.721" = type { %"class.vl::collections::ListStore.719", ptr, i64 }
%"class.vl::collections::ListStore.719" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.720" = type { %"class.vl::Interface" }

; 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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing3xml15XmlPrintContentENS_3PtrINS1_10XmlElementEEERNS_6stream10TextWriterE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.vl::parsing::xml::XmlPrintVisitor", align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca %"class.vl::collections::EnumerableForEachIterator.733", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.vl::Ptr.725", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 112, ptr %5) #4
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN2vl7parsing3xml15XmlPrintVisitorC1ERNS_6stream10TextWriterE(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  store i8 1, ptr %6, align 1, !tbaa !9
  %14 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %15 = trunc i8 %14 to i1
  br i1 %15, label %16, label %68

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #4
  %17 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing3xml10XmlElementEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %18 unwind label %29

18:                                               ; preds = %16
  %19 = getelementptr inbounds %"class.vl::parsing::xml::XmlElement", ptr %17, i32 0, i32 5
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = getelementptr i8, ptr %20, i64 -24
  %22 = load i64, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr %19, i64 %22
  invoke void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing3xml7XmlNodeEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS8_EE(ptr dead_on_unwind writable sret(%"class.vl::collections::EnumerableForEachIterator.733") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %24 unwind label %29

24:                                               ; preds = %18
  store ptr %8, ptr %7, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %65, %24
  %26 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %27 = trunc i8 %26 to i1
  br i1 %27, label %33, label %28

28:                                               ; preds = %25
  store i32 2, ptr %11, align 4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing3xml7XmlNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %67

29:                                               ; preds = %18, %16
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %9, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %10, align 4
  br label %66

33:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #4
  invoke void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %34 unwind label %43

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %62, %34
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = load ptr, ptr %36, align 8, !tbaa !13
  %38 = getelementptr inbounds ptr, ptr %37, i64 2
  %39 = load ptr, ptr %38, align 8
  %40 = invoke noundef zeroext i1 %39(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %41 unwind label %47

41:                                               ; preds = %35
  br i1 %40, label %51, label %42

42:                                               ; preds = %41
  store i32 5, ptr %11, align 4
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #4
  br label %64

43:                                               ; preds = %33
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %9, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %10, align 4
  br label %63

47:                                               ; preds = %57, %51, %35
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %9, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %10, align 4
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #4
  br label %63

51:                                               ; preds = %41
  %52 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing3xml7XmlNodeEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %53 unwind label %47

53:                                               ; preds = %51
  %54 = icmp eq ptr %5, null
  br i1 %54, label %57, label %55

55:                                               ; preds = %53
  %56 = getelementptr inbounds i8, ptr %5, i64 8
  br label %57

57:                                               ; preds = %55, %53
  %58 = phi ptr [ %56, %55 ], [ null, %53 ]
  %59 = load ptr, ptr %52, align 8, !tbaa !13
  %60 = getelementptr inbounds ptr, ptr %59, i64 2
  %61 = load ptr, ptr %60, align 8
  invoke void %61(ptr noundef nonnull align 8 dereferenceable(128) %52, ptr noundef %58)
          to label %62 unwind label %47

62:                                               ; preds = %57
  br label %35, !llvm.loop !15

63:                                               ; preds = %47, %43
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing3xml7XmlNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #4
  br label %66

64:                                               ; preds = %42
  br label %65

65:                                               ; preds = %64
  store i8 0, ptr %6, align 1, !tbaa !9
  br label %25, !llvm.loop !17

66:                                               ; preds = %63, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  call void @_ZN2vl7parsing3xml15XmlPrintVisitorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  call void @llvm.lifetime.end.p0(i64 112, ptr %5) #4
  br label %69

67:                                               ; preds = %28
  br label %68

68:                                               ; preds = %67, %2
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  call void @_ZN2vl7parsing3xml15XmlPrintVisitorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  call void @llvm.lifetime.end.p0(i64 112, ptr %5) #4
  ret void

69:                                               ; preds = %66
  %70 = load ptr, ptr %9, align 8
  %71 = load i32, ptr %10, align 4
  %72 = insertvalue { ptr, i32 } poison, ptr %70, 0
  %73 = insertvalue { ptr, i32 } %72, i32 %71, 1
  resume { ptr, i32 } %73
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing3xml7XmlNodeEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS8_EE(ptr dead_on_unwind noalias writable sret(%"class.vl::collections::EnumerableForEachIterator.733") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; 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.vl::parsing::xml::XmlPrintVisitor" = type { %"class.vl::Object", %"class.vl::parsing::xml::XmlNode::IVisitor.base", ptr, %"class.vl::Interface", %"class.vl::reflection::DescriptableObject" }
%"class.vl::Object" = type { ptr }
%"class.vl::parsing::xml::XmlNode::IVisitor.base" = type { %"class.vl::reflection::IDescriptable.base", %"class.vl::reflection::Description.base.731" }
%"class.vl::reflection::IDescriptable.base" = type { %"class.vl::reflection::Description.base.17" }
%"class.vl::reflection::Description.base.17" = type { ptr }
%"class.vl::reflection::Description.base.731" = type { ptr }
%"class.vl::Interface" = type { ptr }
%"class.vl::reflection::DescriptableObject" = type { ptr, i64, ptr, i64, ptr, %"class.vl::Ptr.12" }
%"class.vl::Ptr.12" = type { ptr, ptr, ptr, ptr }
%"class.vl::collections::EnumerableForEachIterator.733" = type { %"class.vl::collections::ForEachIterator.734", %"class.vl::Ptr.735" }
%"class.vl::collections::ForEachIterator.734" = type { %"class.vl::Object" }
%"class.vl::Ptr.735" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.725" = type { ptr, ptr, ptr, ptr }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing3xml15XmlPrintContentENS_3PtrINS1_10XmlElementEEERNS_6stream10TextWriterE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(8) %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.vl::parsing::xml::XmlPrintVisitor", align 8
  %4 = alloca %"class.vl::collections::EnumerableForEachIterator.733", align 8
  %5 = alloca %"class.vl::Ptr.725", align 8
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %3) #4
  call void @_ZN2vl7parsing3xml15XmlPrintVisitorC1ERNS_6stream10TextWriterE(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #4
  %6 = call noundef ptr @_ZNK2vl3PtrINS_7parsing3xml10XmlElementEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %7 = getelementptr inbounds i8, ptr %6, i64 696
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = getelementptr i8, ptr %8, i64 -24
  %10 = load i64, ptr %9, align 8
  %11 = getelementptr inbounds i8, ptr %7, i64 %10
  invoke void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing3xml7XmlNodeEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS8_EE(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::EnumerableForEachIterator.733") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %14 unwind label %12

12:                                               ; preds = %2
  %13 = landingpad { ptr, i32 }
          cleanup
  br label %29

14:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %15 = getelementptr inbounds i8, ptr %3, i64 8
  br label %16

16:                                               ; preds = %24, %14
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  %19 = load ptr, ptr %18, align 8
  %20 = invoke noundef zeroext i1 %19(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %21 unwind label %22

21:                                               ; preds = %16
  br i1 %20, label %24, label %.critedge

.critedge:                                        ; preds = %21
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing3xml7XmlNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #4
  call void @_ZN2vl7parsing3xml15XmlPrintVisitorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %3) #4
  ret void

22:                                               ; preds = %24, %16
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing3xml7XmlNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #4
  br label %29

24:                                               ; preds = %21
  %25 = call noundef ptr @_ZNK2vl3PtrINS_7parsing3xml7XmlNodeEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %28 = load ptr, ptr %27, align 8
  invoke void %28(ptr noundef nonnull align 8 dereferenceable(128) %25, ptr noundef nonnull %15)
          to label %16 unwind label %22, !llvm.loop !8

29:                                               ; preds = %22, %12
  %.pn = phi { ptr, i32 } [ %23, %22 ], [ %13, %12 ]
  call void @_ZN2vl7parsing3xml15XmlPrintVisitorD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing3xml7XmlNodeEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS8_EE(ptr dead_on_unwind noalias writable sret(%"class.vl::collections::EnumerableForEachIterator.733") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,SROAPass,SimplifyCFGPass