; 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::collections::EnumerableForEachIterator.733" = type { %"class.vl::collections::ForEachIterator.734", %"class.vl::Ptr.735" }
%"class.vl::collections::ForEachIterator.734" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.735" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.732" = 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::Interface" = type { ptr }
%"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" }
%"class.vl::reflection::DescriptableObject" = type { ptr, i64, ptr, i64, ptr, %"class.vl::Ptr.12" }
%"class.vl::Ptr.12" = type { ptr, ptr, ptr, ptr }

; 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 uwtable
declare dso_local noundef zeroext i1 @_ZNK2vl12ObjectStringIwEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

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

; 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)) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing3xml13XmlGetElementEPNS1_10XmlElementERKNS_12ObjectStringIwEE(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.732") align 8 %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %2) #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca ptr, align 8
  %9 = alloca %"class.vl::collections::EnumerableForEachIterator.733", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.vl::Ptr.725", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i1, align 1
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #4
  store i8 1, ptr %7, align 1, !tbaa !9
  %15 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %16 = trunc i8 %15 to i1
  br i1 %16, label %17, label %79

17:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #4
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"class.vl::parsing::xml::XmlElement", ptr %18, 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
  call void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing3xml7XmlNodeEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS8_EE(ptr dead_on_unwind writable sret(%"class.vl::collections::EnumerableForEachIterator.733") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %23)
  store ptr %9, ptr %8, align 8, !tbaa !5
  br label %24

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

27:                                               ; preds = %24
  store i32 2, ptr %10, align 4
  br label %76

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #4
  invoke void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %29 unwind label %38

29:                                               ; preds = %28
  br label %30

30:                                               ; preds = %69, %29
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  %33 = getelementptr inbounds ptr, ptr %32, i64 2
  %34 = load ptr, ptr %33, align 8
  %35 = invoke noundef zeroext i1 %34(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %36 unwind label %42

36:                                               ; preds = %30
  br i1 %35, label %46, label %37

37:                                               ; preds = %36
  store i32 5, ptr %10, align 4
  br label %70

38:                                               ; preds = %28
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %12, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %13, align 4
  br label %73

42:                                               ; preds = %46, %30
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %12, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %13, align 4
  br label %72

46:                                               ; preds = %36
  store i1 false, ptr %14, align 1
  invoke void @_ZNK2vl3PtrINS_7parsing3xml7XmlNodeEE4CastINS2_10XmlElementEEENS0_IT_EEv(ptr dead_on_unwind writable sret(%"class.vl::Ptr.732") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %47 unwind label %42

47:                                               ; preds = %46
  %48 = invoke noundef zeroext i1 @_ZNK2vl3PtrINS_7parsing3xml10XmlElementEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %49 unwind label %59

49:                                               ; preds = %47
  br i1 %48, label %50, label %63

50:                                               ; preds = %49
  %51 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing3xml10XmlElementEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %52 unwind label %59

52:                                               ; preds = %50
  %53 = getelementptr inbounds %"class.vl::parsing::xml::XmlElement", ptr %51, i32 0, i32 2
  %54 = getelementptr inbounds %"class.vl::parsing::ParsingToken", ptr %53, i32 0, i32 3
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = invoke noundef zeroext i1 @_ZNK2vl12ObjectStringIwEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %54, ptr noundef nonnull align 8 dereferenceable(48) %55)
          to label %57 unwind label %59

57:                                               ; preds = %52
  br i1 %56, label %58, label %63

58:                                               ; preds = %57
  store i1 true, ptr %14, align 1
  store i32 1, ptr %10, align 4
  br label %64

59:                                               ; preds = %52, %50, %47
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %12, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %13, align 4
  call void @_ZN2vl3PtrINS_7parsing3xml10XmlElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #4
  br label %72

63:                                               ; preds = %57, %49
  store i32 0, ptr %10, align 4
  br label %64

64:                                               ; preds = %63, %58
  %65 = load i1, ptr %14, align 1
  br i1 %65, label %67, label %66

66:                                               ; preds = %64
  call void @_ZN2vl3PtrINS_7parsing3xml10XmlElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #4
  br label %67

67:                                               ; preds = %66, %64
  %68 = load i32, ptr %10, align 4
  switch i32 %68, label %70 [
    i32 0, label %69
  ]

69:                                               ; preds = %67
  br label %30, !llvm.loop !15

70:                                               ; preds = %67, %37
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  %71 = load i32, ptr %10, align 4
  switch i32 %71, label %76 [
    i32 5, label %74
  ]

72:                                               ; preds = %59, %42
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #4
  br label %73

73:                                               ; preds = %72, %38
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing3xml7XmlNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  br label %84

74:                                               ; preds = %70
  br label %75

75:                                               ; preds = %74
  store i8 0, ptr %7, align 1, !tbaa !9
  br label %24, !llvm.loop !17

76:                                               ; preds = %70, %27
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing3xml7XmlNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %77 = load i32, ptr %10, align 4
  switch i32 %77, label %80 [
    i32 2, label %78
  ]

78:                                               ; preds = %76
  br label %79

79:                                               ; preds = %78, %3
  store i32 0, ptr %10, align 4
  br label %80

80:                                               ; preds = %79, %76
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  %81 = load i32, ptr %10, align 4
  switch i32 %81, label %89 [
    i32 0, label %82
    i32 1, label %83
  ]

82:                                               ; preds = %80
  call void @_ZN2vl3PtrINS_7parsing3xml10XmlElementEEC2EPS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef null)
  br label %83

83:                                               ; preds = %82, %80
  ret void

84:                                               ; preds = %73
  %85 = load ptr, ptr %12, align 8
  %86 = load i32, ptr %13, align 4
  %87 = insertvalue { ptr, i32 } poison, ptr %85, 0
  %88 = insertvalue { ptr, i32 } %87, i32 %86, 1
  resume { ptr, i32 } %88

89:                                               ; preds = %80
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2vl3PtrINS_7parsing3xml7XmlNodeEE4CastINS2_10XmlElementEEENS0_IT_EEv(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.732") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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::collections::EnumerableForEachIterator.733" = type { %"class.vl::collections::ForEachIterator.734", %"class.vl::Ptr.735" }
%"class.vl::collections::ForEachIterator.734" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.735" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.732" = 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 uwtable
declare dso_local noundef zeroext i1 @_ZNK2vl12ObjectStringIwEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing3xml13XmlGetElementEPNS1_10XmlElementERKNS_12ObjectStringIwEE(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.732") align 8 %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %2) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
.critedge:
  %3 = alloca %"class.vl::collections::EnumerableForEachIterator.733", align 8
  %4 = alloca %"class.vl::Ptr.725", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #4
  %5 = getelementptr inbounds i8, ptr %1, i64 696
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr i8, ptr %6, i64 -24
  %8 = load i64, ptr %7, align 8
  %9 = getelementptr inbounds i8, ptr %5, i64 %8
  call void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing3xml7XmlNodeEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS8_EE(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::EnumerableForEachIterator.733") align 8 %3, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4)
  br label %10

10:                                               ; preds = %28, %.critedge
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  %13 = load ptr, ptr %12, align 8
  %14 = invoke noundef zeroext i1 %13(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %15 unwind label %16

15:                                               ; preds = %10
  br i1 %14, label %18, label %30

16:                                               ; preds = %18, %10
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %29

18:                                               ; preds = %15
  invoke void @_ZNK2vl3PtrINS_7parsing3xml7XmlNodeEE4CastINS2_10XmlElementEEENS0_IT_EEv(ptr dead_on_unwind writable sret(%"class.vl::Ptr.732") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %19 unwind label %16

19:                                               ; preds = %18
  %20 = call noundef zeroext i1 @_ZNK2vl3PtrINS_7parsing3xml10XmlElementEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  br i1 %20, label %21, label %28

21:                                               ; preds = %19
  %22 = call noundef ptr @_ZNK2vl3PtrINS_7parsing3xml10XmlElementEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %23 = getelementptr inbounds i8, ptr %22, i64 272
  %24 = invoke noundef zeroext i1 @_ZNK2vl12ObjectStringIwEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %25 unwind label %26

25:                                               ; preds = %21
  br i1 %24, label %.thread21, label %28

26:                                               ; preds = %21
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl3PtrINS_7parsing3xml10XmlElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #4
  br label %29

28:                                               ; preds = %19, %25
  call void @_ZN2vl3PtrINS_7parsing3xml10XmlElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #4
  br label %10, !llvm.loop !8

.thread21:                                        ; preds = %25
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing3xml7XmlNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #4
  br label %31

29:                                               ; preds = %26, %16
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %17, %16 ]
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing3xml7XmlNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn

30:                                               ; preds = %15
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing3xml7XmlNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #4
  call void @_ZN2vl3PtrINS_7parsing3xml10XmlElementEEC2EPS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef null)
  br label %31

31:                                               ; preds = %.thread21, %30
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2vl3PtrINS_7parsing3xml7XmlNodeEE4CastINS2_10XmlElementEEENS0_IT_EEv(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.732") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,SCCPPass,SROAPass,SimplifyCFGPass