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

; 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::Ptr.724" = 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::Object" = type { ptr }
%"class.vl::Ptr.735" = type { ptr, ptr, ptr, ptr }
%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::Ptr.725" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.757" = 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::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 }
%"class.vl::parsing::xml::XmlText" = type { %"class.vl::parsing::xml::XmlNode.base", %"class.vl::reflection::Description.base.729", %"class.vl::parsing::ParsingToken", %"class.vl::reflection::DescriptableObject" }
%"class.vl::reflection::Description.base.729" = type { ptr }
%"class.vl::parsing::xml::XmlCData" = type { %"class.vl::parsing::xml::XmlNode.base", %"class.vl::reflection::Description.base.759", %"class.vl::parsing::ParsingToken", %"class.vl::reflection::DescriptableObject" }
%"class.vl::reflection::Description.base.759" = type { 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 nounwind uwtable
declare dso_local void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

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

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

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

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

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

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

; 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 @_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 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing3xml11XmlGetValueEPNS1_10XmlElementE(ptr dead_on_unwind noalias writable sret(%"class.vl::ObjectString") align 8 %0, ptr noundef %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %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
  %13 = alloca %"class.vl::Ptr.724", align 8
  %14 = alloca %"class.vl::Ptr.757", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i1 false, ptr %5, align 1
  call void @_ZN2vl12ObjectStringIwEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0)
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  store i8 1, ptr %6, align 1, !tbaa !9
  %15 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %16 = trunc i8 %15 to i1
  br i1 %16, label %17, label %100

17:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #4
  %18 = load ptr, ptr %4, 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
  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 = %17
  store ptr %8, ptr %7, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %97, %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 %99

29:                                               ; preds = %17
  %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 %98

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 = %91, %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 %96

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 %95

47:                                               ; preds = %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
  br label %94

51:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  invoke void @_ZNK2vl3PtrINS_7parsing3xml7XmlNodeEE4CastINS2_7XmlTextEEENS0_IT_EEv(ptr dead_on_unwind writable sret(%"class.vl::Ptr.724") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %52 unwind label %62

52:                                               ; preds = %51
  %53 = invoke noundef zeroext i1 @_ZNK2vl3PtrINS_7parsing3xml7XmlTextEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %54 unwind label %66

54:                                               ; preds = %52
  br i1 %53, label %55, label %70

55:                                               ; preds = %54
  %56 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing3xml7XmlTextEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %57 unwind label %66

57:                                               ; preds = %55
  %58 = getelementptr inbounds %"class.vl::parsing::xml::XmlText", ptr %56, i32 0, i32 2
  %59 = getelementptr inbounds %"class.vl::parsing::ParsingToken", ptr %58, i32 0, i32 3
  %60 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vl12ObjectStringIwEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %59)
          to label %61 unwind label %66

61:                                               ; preds = %57
  br label %91

62:                                               ; preds = %51
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %9, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %10, align 4
  br label %93

66:                                               ; preds = %57, %55, %52
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %9, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %10, align 4
  br label %92

70:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #4
  invoke void @_ZNK2vl3PtrINS_7parsing3xml7XmlNodeEE4CastINS2_8XmlCDataEEENS0_IT_EEv(ptr dead_on_unwind writable sret(%"class.vl::Ptr.757") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %71 unwind label %81

71:                                               ; preds = %70
  %72 = invoke noundef zeroext i1 @_ZNK2vl3PtrINS_7parsing3xml8XmlCDataEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %73 unwind label %85

73:                                               ; preds = %71
  br i1 %72, label %74, label %89

74:                                               ; preds = %73
  %75 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing3xml8XmlCDataEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %76 unwind label %85

76:                                               ; preds = %74
  %77 = getelementptr inbounds %"class.vl::parsing::xml::XmlCData", ptr %75, i32 0, i32 2
  %78 = getelementptr inbounds %"class.vl::parsing::ParsingToken", ptr %77, i32 0, i32 3
  %79 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vl12ObjectStringIwEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %78)
          to label %80 unwind label %85

80:                                               ; preds = %76
  br label %89

81:                                               ; preds = %70
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %9, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %10, align 4
  br label %90

85:                                               ; preds = %76, %74, %71
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %9, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %10, align 4
  call void @_ZN2vl3PtrINS_7parsing3xml8XmlCDataEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #4
  br label %90

89:                                               ; preds = %80, %73
  call void @_ZN2vl3PtrINS_7parsing3xml8XmlCDataEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #4
  br label %91

90:                                               ; preds = %85, %81
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #4
  br label %92

91:                                               ; preds = %89, %61
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlTextEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  br label %35, !llvm.loop !15

92:                                               ; preds = %90, %66
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlTextEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  br label %93

93:                                               ; preds = %92, %62
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  br label %94

94:                                               ; preds = %93, %47
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #4
  br label %95

95:                                               ; preds = %94, %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 %98

96:                                               ; preds = %42
  br label %97

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

98:                                               ; preds = %95, %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 @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  br label %104

99:                                               ; preds = %28
  br label %100

100:                                              ; preds = %99, %2
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  store i1 true, ptr %5, align 1
  store i32 1, ptr %11, align 4
  %101 = load i1, ptr %5, align 1
  br i1 %101, label %103, label %102

102:                                              ; preds = %100
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  br label %103

103:                                              ; preds = %102, %100
  ret void

104:                                              ; preds = %98
  %105 = load ptr, ptr %9, align 8
  %106 = load i32, ptr %10, align 4
  %107 = insertvalue { ptr, i32 } poison, ptr %105, 0
  %108 = insertvalue { ptr, i32 } %107, i32 %106, 1
  resume { ptr, i32 } %108
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vl3PtrINS_7parsing3xml8XmlCDataEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 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::Ptr.724" = 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::Object" = type { ptr }
%"class.vl::Ptr.735" = type { ptr, ptr, ptr, ptr }
%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::Ptr.725" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.757" = 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 @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing3xml11XmlGetValueEPNS1_10XmlElementE(ptr dead_on_unwind noalias nonnull writable sret(%"class.vl::ObjectString") align 8 %0, ptr noundef %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.vl::collections::EnumerableForEachIterator.733", align 8
  %4 = alloca %"class.vl::Ptr.725", align 8
  %5 = alloca %"class.vl::Ptr.724", align 8
  %6 = alloca %"class.vl::Ptr.757", align 8
  tail call void @_ZN2vl12ObjectStringIwEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #4
  %7 = getelementptr inbounds i8, ptr %1, 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 %3, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %14 unwind label %12

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

14:                                               ; preds = %2
  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 %15

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

20:                                               ; preds = %15
  br i1 %19, label %23, label %.critedge

.critedge:                                        ; preds = %20
  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
  ret void

21:                                               ; preds = %15
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %50

23:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  invoke void @_ZNK2vl3PtrINS_7parsing3xml7XmlNodeEE4CastINS2_7XmlTextEEENS0_IT_EEv(ptr dead_on_unwind nonnull writable sret(%"class.vl::Ptr.724") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %24 unwind label %30

24:                                               ; preds = %23
  %25 = call noundef zeroext i1 @_ZNK2vl3PtrINS_7parsing3xml7XmlTextEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  br i1 %25, label %26, label %34

26:                                               ; preds = %24
  %27 = call noundef ptr @_ZNK2vl3PtrINS_7parsing3xml7XmlTextEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %28 = getelementptr inbounds i8, ptr %27, i64 272
  %29 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vl12ObjectStringIwEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %28)
          to label %47 unwind label %32

30:                                               ; preds = %23
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %49

32:                                               ; preds = %26
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %48

34:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  invoke void @_ZNK2vl3PtrINS_7parsing3xml7XmlNodeEE4CastINS2_8XmlCDataEEENS0_IT_EEv(ptr dead_on_unwind nonnull writable sret(%"class.vl::Ptr.757") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %35 unwind label %41

35:                                               ; preds = %34
  %36 = call noundef zeroext i1 @_ZNK2vl3PtrINS_7parsing3xml8XmlCDataEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  br i1 %36, label %37, label %45

37:                                               ; preds = %35
  %38 = call noundef ptr @_ZNK2vl3PtrINS_7parsing3xml8XmlCDataEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  %39 = getelementptr inbounds i8, ptr %38, i64 272
  %40 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vl12ObjectStringIwEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %39)
          to label %45 unwind label %43

41:                                               ; preds = %34
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %46

43:                                               ; preds = %37
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl3PtrINS_7parsing3xml8XmlCDataEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  br label %46

45:                                               ; preds = %37, %35
  call void @_ZN2vl3PtrINS_7parsing3xml8XmlCDataEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  br label %47

46:                                               ; preds = %43, %41
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  br label %48

47:                                               ; preds = %26, %45
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlTextEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  br label %15, !llvm.loop !8

48:                                               ; preds = %46, %32
  %.pn13 = phi { ptr, i32 } [ %33, %32 ], [ %.pn, %46 ]
  call void @_ZN2vl3PtrINS_7parsing3xml7XmlTextEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  br label %49

49:                                               ; preds = %48, %30
  %.pn13.pn = phi { ptr, i32 } [ %.pn13, %48 ], [ %31, %30 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  br label %50

50:                                               ; preds = %49, %21
  %.pn13.pn.pn = phi { ptr, i32 } [ %.pn13.pn, %49 ], [ %22, %21 ]
  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 %51

51:                                               ; preds = %50, %12
  %.pn13.pn.pn.pn = phi { ptr, i32 } [ %.pn13.pn.pn, %50 ], [ %13, %12 ]
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  resume { ptr, i32 } %.pn13.pn.pn.pn
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vl3PtrINS_7parsing3xml8XmlCDataEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 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,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass