; 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.671" = type { %"class.vl::collections::ForEachIterator.672", %"class.vl::Ptr.673" }
%"class.vl::collections::ForEachIterator.672" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.673" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.46" = type { ptr, ptr, ptr, ptr }
%"class.vl::parsing::ParsingTreeNode::TraversalVisitor" = type <{ %"class.vl::Object", %"class.vl::parsing::ParsingTreeNode::IVisitor", i32, [4 x i8] }>
%"class.vl::parsing::ParsingTreeNode::IVisitor" = type { %"class.vl::Interface" }
%"class.vl::Interface" = 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 @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing15ParsingTreeNode16TraversalVisitor5VisitEPNS0_16ParsingTreeArrayE(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca ptr, align 8
  %7 = alloca %"class.vl::collections::EnumerableForEachIterator.671", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.vl::Ptr.46", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca %"class.vl::collections::EnumerableForEachIterator.671", align 8
  %15 = alloca %"class.vl::Ptr.46", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %16, align 8, !tbaa !9
  %19 = getelementptr inbounds ptr, ptr %18, i64 6
  %20 = load ptr, ptr %19, align 8
  call void %20(ptr noundef nonnull align 8 dereferenceable(20) %16, ptr noundef %17)
  %21 = getelementptr inbounds %"class.vl::parsing::ParsingTreeNode::TraversalVisitor", ptr %16, i32 0, i32 2
  %22 = load i32, ptr %21, align 8, !tbaa !11
  switch i32 %22, label %113 [
    i32 0, label %23
    i32 1, label %68
  ]

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  store i8 1, ptr %5, align 1, !tbaa !17
  %24 = load i8, ptr %5, align 1, !tbaa !17, !range !19, !noundef !20
  %25 = trunc i8 %24 to i1
  br i1 %25, label %26, label %67

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #4
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = call noundef nonnull align 8 dereferenceable(33) ptr @_ZN2vl7parsing15ParsingTreeNode11GetSubNodesEv(ptr noundef nonnull align 8 dereferenceable(128) %27)
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = getelementptr i8, ptr %29, i64 -24
  %31 = load i64, ptr %30, align 8
  %32 = getelementptr inbounds i8, ptr %28, i64 %31
  call void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing15ParsingTreeNodeEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS7_EE(ptr dead_on_unwind writable sret(%"class.vl::collections::EnumerableForEachIterator.671") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %32)
  store ptr %7, ptr %6, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %65, %26
  %34 = load i8, ptr %5, align 1, !tbaa !17, !range !19, !noundef !20
  %35 = trunc i8 %34 to i1
  br i1 %35, label %37, label %36

36:                                               ; preds = %33
  store i32 3, ptr %8, align 4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing15ParsingTreeNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %66

37:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #4
  invoke void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %38 unwind label %47

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %62, %38
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = getelementptr inbounds ptr, ptr %41, i64 2
  %43 = load ptr, ptr %42, align 8
  %44 = invoke noundef zeroext i1 %43(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %45 unwind label %51

45:                                               ; preds = %39
  br i1 %44, label %55, label %46

46:                                               ; preds = %45
  store i32 6, ptr %8, align 4
  call void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  br label %64

47:                                               ; preds = %37
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %10, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %11, align 4
  br label %63

51:                                               ; preds = %57, %55, %39
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %10, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %11, align 4
  call void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  br label %63

55:                                               ; preds = %45
  %56 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing15ParsingTreeNodeEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %57 unwind label %51

57:                                               ; preds = %55
  %58 = getelementptr inbounds i8, ptr %16, i64 8
  %59 = load ptr, ptr %56, align 8, !tbaa !9
  %60 = getelementptr inbounds ptr, ptr %59, i64 3
  %61 = load ptr, ptr %60, align 8
  invoke void %61(ptr noundef nonnull align 8 dereferenceable(128) %56, ptr noundef %58)
          to label %62 unwind label %51

62:                                               ; preds = %57
  br label %39, !llvm.loop !21

63:                                               ; preds = %51, %47
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing15ParsingTreeNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  br label %118

64:                                               ; preds = %46
  br label %65

65:                                               ; preds = %64
  store i8 0, ptr %5, align 1, !tbaa !17
  br label %33, !llvm.loop !23

66:                                               ; preds = %36
  br label %67

67:                                               ; preds = %66, %23
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  br label %113

68:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  store i8 1, ptr %12, align 1, !tbaa !17
  %69 = load i8, ptr %12, align 1, !tbaa !17, !range !19, !noundef !20
  %70 = trunc i8 %69 to i1
  br i1 %70, label %71, label %112

71:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #4
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = call noundef nonnull align 8 dereferenceable(33) ptr @_ZN2vl7parsing16ParsingTreeArray8GetItemsEv(ptr noundef nonnull align 8 dereferenceable(232) %72)
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  %75 = getelementptr i8, ptr %74, i64 -24
  %76 = load i64, ptr %75, align 8
  %77 = getelementptr inbounds i8, ptr %73, i64 %76
  call void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing15ParsingTreeNodeEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS7_EE(ptr dead_on_unwind writable sret(%"class.vl::collections::EnumerableForEachIterator.671") align 8 %14, ptr noundef nonnull align 8 dereferenceable(8) %77)
  store ptr %14, ptr %13, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %110, %71
  %79 = load i8, ptr %12, align 1, !tbaa !17, !range !19, !noundef !20
  %80 = trunc i8 %79 to i1
  br i1 %80, label %82, label %81

81:                                               ; preds = %78
  store i32 8, ptr %8, align 4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing15ParsingTreeNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %111

82:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #4
  invoke void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %83 unwind label %92

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %107, %83
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = getelementptr inbounds ptr, ptr %86, i64 2
  %88 = load ptr, ptr %87, align 8
  %89 = invoke noundef zeroext i1 %88(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %90 unwind label %96

90:                                               ; preds = %84
  br i1 %89, label %100, label %91

91:                                               ; preds = %90
  store i32 11, ptr %8, align 4
  call void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  br label %109

92:                                               ; preds = %82
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %10, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %11, align 4
  br label %108

96:                                               ; preds = %102, %100, %84
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %10, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %11, align 4
  call void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #4
  br label %108

100:                                              ; preds = %90
  %101 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing15ParsingTreeNodeEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %102 unwind label %96

102:                                              ; preds = %100
  %103 = getelementptr inbounds i8, ptr %16, i64 8
  %104 = load ptr, ptr %101, align 8, !tbaa !9
  %105 = getelementptr inbounds ptr, ptr %104, i64 3
  %106 = load ptr, ptr %105, align 8
  invoke void %106(ptr noundef nonnull align 8 dereferenceable(128) %101, ptr noundef %103)
          to label %107 unwind label %96

107:                                              ; preds = %102
  br label %84, !llvm.loop !24

108:                                              ; preds = %96, %92
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing15ParsingTreeNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  br label %118

109:                                              ; preds = %91
  br label %110

110:                                              ; preds = %109
  store i8 0, ptr %12, align 1, !tbaa !17
  br label %78, !llvm.loop !25

111:                                              ; preds = %81
  br label %112

112:                                              ; preds = %111, %68
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  br label %113

113:                                              ; preds = %112, %67, %2
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = load ptr, ptr %16, align 8, !tbaa !9
  %116 = getelementptr inbounds ptr, ptr %115, i64 7
  %117 = load ptr, ptr %116, align 8
  call void %117(ptr noundef nonnull align 8 dereferenceable(20) %16, ptr noundef %114)
  ret void

118:                                              ; preds = %108, %63
  %119 = load ptr, ptr %10, align 8
  %120 = load i32, ptr %11, align 4
  %121 = insertvalue { ptr, i32 } poison, ptr %119, 0
  %122 = insertvalue { ptr, i32 } %121, i32 %120, 1
  resume { ptr, i32 } %122
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(33) ptr @_ZN2vl7parsing16ParsingTreeArray8GetItemsEv(ptr noundef nonnull align 8 dereferenceable(232)) #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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !16, i64 16}
!12 = !{!"_ZTSN2vl7parsing15ParsingTreeNode16TraversalVisitorE", !13, i64 0, !14, i64 8, !16, i64 16}
!13 = !{!"_ZTSN2vl6ObjectE"}
!14 = !{!"_ZTSN2vl7parsing15ParsingTreeNode8IVisitorE", !15, i64 0}
!15 = !{!"_ZTSN2vl9InterfaceE"}
!16 = !{!"_ZTSN2vl7parsing15ParsingTreeNode16TraversalVisitor17TraverseDirectionE", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}


; 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.671" = type { %"class.vl::collections::ForEachIterator.672", %"class.vl::Ptr.673" }
%"class.vl::collections::ForEachIterator.672" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.673" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.46" = 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_7parsing15ParsingTreeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing15ParsingTreeNode16TraversalVisitor5VisitEPNS0_16ParsingTreeArrayE(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.vl::collections::EnumerableForEachIterator.671", align 8
  %4 = alloca %"class.vl::Ptr.46", align 8
  %5 = alloca %"class.vl::collections::EnumerableForEachIterator.671", align 8
  %6 = alloca %"class.vl::Ptr.46", align 8
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 48
  %9 = load ptr, ptr %8, align 8
  tail call void %9(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef %1)
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load i32, ptr %10, align 8, !tbaa !8
  switch i32 %11, label %52 [
    i32 0, label %.critedge
    i32 1, label %.critedge17
  ]

.critedge:                                        ; preds = %2
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #4
  %12 = tail call noundef nonnull align 8 dereferenceable(33) ptr @_ZN2vl7parsing15ParsingTreeNode11GetSubNodesEv(ptr noundef nonnull align 8 dereferenceable(128) %1)
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = getelementptr i8, ptr %13, i64 -24
  %15 = load i64, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr %12, i64 %15
  call void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing15ParsingTreeNodeEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS7_EE(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::EnumerableForEachIterator.671") align 8 %3, ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  call void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  br label %18

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

23:                                               ; preds = %18
  br i1 %22, label %27, label %24

24:                                               ; preds = %23
  call void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEED2Ev(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_7parsing15ParsingTreeNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #4
  br label %52

25:                                               ; preds = %27, %18
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEED2Ev(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_7parsing15ParsingTreeNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #4
  br label %56

27:                                               ; preds = %23
  %28 = call noundef ptr @_ZNK2vl3PtrINS_7parsing15ParsingTreeNodeEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 24
  %31 = load ptr, ptr %30, align 8
  invoke void %31(ptr noundef nonnull align 8 dereferenceable(128) %28, ptr noundef nonnull %17)
          to label %18 unwind label %25, !llvm.loop !15

.critedge17:                                      ; preds = %2
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #4
  %32 = tail call noundef nonnull align 8 dereferenceable(33) ptr @_ZN2vl7parsing16ParsingTreeArray8GetItemsEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = getelementptr i8, ptr %33, i64 -24
  %35 = load i64, ptr %34, align 8
  %36 = getelementptr inbounds i8, ptr %32, i64 %35
  call void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing15ParsingTreeNodeEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS7_EE(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::EnumerableForEachIterator.671") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %36)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  call void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6)
  %37 = getelementptr inbounds i8, ptr %0, i64 8
  br label %38

38:                                               ; preds = %47, %.critedge17
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  %41 = load ptr, ptr %40, align 8
  %42 = invoke noundef zeroext i1 %41(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %43 unwind label %45

43:                                               ; preds = %38
  br i1 %42, label %47, label %44

44:                                               ; preds = %43
  call void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing15ParsingTreeNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #4
  br label %52

45:                                               ; preds = %47, %38
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing15ParsingTreeNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #4
  br label %56

47:                                               ; preds = %43
  %48 = call noundef ptr @_ZNK2vl3PtrINS_7parsing15ParsingTreeNodeEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 24
  %51 = load ptr, ptr %50, align 8
  invoke void %51(ptr noundef nonnull align 8 dereferenceable(128) %48, ptr noundef nonnull %37)
          to label %38 unwind label %45, !llvm.loop !17

52:                                               ; preds = %44, %24, %2
  %53 = load ptr, ptr %0, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 56
  %55 = load ptr, ptr %54, align 8
  call void %55(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef %1)
  ret void

56:                                               ; preds = %45, %25
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %26, %25 ]
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(33) ptr @_ZN2vl7parsing16ParsingTreeArray8GetItemsEv(ptr noundef nonnull align 8 dereferenceable(232)) local_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 = !{!9, !13, i64 16}
!9 = !{!"_ZTSN2vl7parsing15ParsingTreeNode16TraversalVisitorE", !10, i64 0, !11, i64 8, !13, i64 16}
!10 = !{!"_ZTSN2vl6ObjectE"}
!11 = !{!"_ZTSN2vl7parsing15ParsingTreeNode8IVisitorE", !12, i64 0}
!12 = !{!"_ZTSN2vl9InterfaceE"}
!13 = !{!"_ZTSN2vl7parsing15ParsingTreeNode16TraversalVisitor17TraverseDirectionE", !14, i64 0}
!14 = !{!"omnipotent char", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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