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

; 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 }
%"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::LazyList.674" = type { %"class.vl::Object", %"class.vl::collections::IEnumerable.602", %"class.vl::Ptr.673" }
%"class.vl::collections::IEnumerable.602" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%class.anon.675 = type { %"struct.vl::parsing::ParsingTextRange" }
%"class.vl::Ptr.46" = type { ptr, ptr, ptr, ptr }
%"class.vl::parsing::ParsingTreeNode" = type { %"class.vl::Object", %"class.vl::reflection::Description.base.597", %"struct.vl::parsing::ParsingTextRange", ptr, %"class.vl::collections::List.598", %"class.vl::reflection::DescriptableObject" }
%"class.vl::reflection::Description.base.597" = type { ptr }
%"class.vl::collections::List.598" = type { %"class.vl::collections::ListBase.base.604", %"class.vl::collections::IEnumerable.602" }
%"class.vl::collections::ListBase.base.604" = type <{ %"class.vl::collections::ArrayBase.base.603", i64, i8 }>
%"class.vl::collections::ArrayBase.base.603" = type { %"class.vl::collections::ListStore.601", ptr, i64 }
%"class.vl::collections::ListStore.601" = type { %"class.vl::Object" }
%"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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing16ParsingTextRangeC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN2vl7parsing16CompareTextRangeENS_3PtrINS0_15ParsingTreeNodeEEES3_(ptr noundef, ptr noundef) #3

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing15ParsingTreeNode20InitializeQueryCacheEv(ptr noundef nonnull align 8 dereferenceable(128) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.vl::parsing::ParsingTextRange", align 8
  %6 = alloca %"class.vl::collections::LazyList.674", align 8
  %7 = alloca %"class.vl::collections::LazyList.674", align 8
  %8 = alloca %"class.vl::collections::LazyList.674", align 8
  %9 = alloca %class.anon.675, 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 i32, align 4
  %16 = alloca %"class.vl::Ptr.46", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds ptr, ptr %18, i64 2
  %20 = load ptr, ptr %19, align 8
  %21 = call noundef nonnull align 8 dereferenceable(33) ptr %20(ptr noundef nonnull align 8 dereferenceable(128) %17)
  store ptr %21, ptr %3, align 8, !tbaa !5
  call void @_ZN2vl7parsing15ParsingTreeNode15ClearQueryCacheEv(ptr noundef nonnull align 8 dereferenceable(128) %17)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %22, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %90

25:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 56, ptr %5) #5
  call void @_ZN2vl7parsing16ParsingTextRangeC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5)
  %26 = getelementptr inbounds %"class.vl::parsing::ParsingTreeNode", ptr %17, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 48, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #5
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = getelementptr i8, ptr %28, i64 -24
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr %27, i64 %30
  call void @_ZN2vl11collections4FromINS_3PtrINS_7parsing15ParsingTreeNodeEEEEENS0_8LazyListIT_EERKNS0_11IEnumerableIS7_EE(ptr dead_on_unwind writable sret(%"class.vl::collections::LazyList.674") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %32 = getelementptr inbounds %class.anon.675, ptr %9, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 %5, i64 56, i1 false), !tbaa.struct !11
  invoke void @"_ZNK2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEE5WhereIZNS4_20InitializeQueryCacheEvE3$_0EES6_T_"(ptr dead_on_unwind writable sret(%"class.vl::collections::LazyList.674") align 8 %7, ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef byval(%class.anon.675) align 8 %9)
          to label %33 unwind label %48

33:                                               ; preds = %25
  invoke void @_ZNK2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEE7OrderByIPFlS5_S5_EEES6_T_(ptr dead_on_unwind writable sret(%"class.vl::collections::LazyList.674") align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef @_ZN2vl7parsing16CompareTextRangeENS_3PtrINS0_15ParsingTreeNodeEEES3_)
          to label %34 unwind label %52

34:                                               ; preds = %33
  invoke void @_ZN2vl11collections8CopyFromINS0_4ListINS_3PtrINS_7parsing15ParsingTreeNodeEEEPS5_EENS0_8LazyListIS6_EEEEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33) %26, ptr noundef nonnull align 8 dereferenceable(48) %6, i1 noundef zeroext false)
          to label %35 unwind label %56

35:                                               ; preds = %34
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  store i8 1, ptr %12, align 1, !tbaa !14
  %36 = load i8, ptr %12, align 1, !tbaa !14, !range !16, !noundef !17
  %37 = trunc i8 %36 to i1
  br i1 %37, label %38, label %88

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #5
  %39 = getelementptr inbounds %"class.vl::parsing::ParsingTreeNode", ptr %17, i32 0, i32 4
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = getelementptr i8, ptr %40, i64 -24
  %42 = load i64, ptr %41, align 8
  %43 = getelementptr inbounds i8, ptr %39, i64 %42
  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) %43)
  store ptr %14, ptr %13, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %86, %38
  %45 = load i8, ptr %12, align 1, !tbaa !14, !range !16, !noundef !17
  %46 = trunc i8 %45 to i1
  br i1 %46, label %62, label %47

47:                                               ; preds = %44
  store i32 2, ptr %15, align 4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing15ParsingTreeNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %87

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

52:                                               ; preds = %33
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %10, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %11, align 4
  br label %60

56:                                               ; preds = %34
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %10, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %11, align 4
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  br label %60

60:                                               ; preds = %56, %52
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  br label %61

61:                                               ; preds = %60, %48
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #5
  br label %89

62:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #5
  invoke void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %63 unwind label %72

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %83, %63
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %66, i64 2
  %68 = load ptr, ptr %67, align 8
  %69 = invoke noundef zeroext i1 %68(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %70 unwind label %76

70:                                               ; preds = %64
  br i1 %69, label %80, label %71

71:                                               ; preds = %70
  store i32 5, ptr %15, align 4
  call void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  br label %85

72:                                               ; preds = %62
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %10, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %11, align 4
  br label %84

76:                                               ; preds = %82, %80, %64
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %10, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %11, align 4
  call void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  br label %84

80:                                               ; preds = %70
  %81 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing15ParsingTreeNodeEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %82 unwind label %76

82:                                               ; preds = %80
  invoke void @_ZN2vl7parsing15ParsingTreeNode20InitializeQueryCacheEv(ptr noundef nonnull align 8 dereferenceable(128) %81)
          to label %83 unwind label %76

83:                                               ; preds = %82
  br label %64, !llvm.loop !18

84:                                               ; preds = %76, %72
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing15ParsingTreeNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  br label %89

85:                                               ; preds = %71
  br label %86

86:                                               ; preds = %85
  store i8 0, ptr %12, align 1, !tbaa !14
  br label %44, !llvm.loop !20

87:                                               ; preds = %47
  br label %88

88:                                               ; preds = %87, %35
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %5) #5
  br label %90

89:                                               ; preds = %84, %61
  call void @llvm.lifetime.end.p0(i64 56, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %91

90:                                               ; preds = %88, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void

91:                                               ; preds = %89
  %92 = load ptr, ptr %10, align 8
  %93 = load i32, ptr %11, align 4
  %94 = insertvalue { ptr, i32 } poison, ptr %92, 0
  %95 = insertvalue { ptr, i32 } %94, i32 %93, 1
  resume { ptr, i32 } %95
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections8CopyFromINS0_4ListINS_3PtrINS_7parsing15ParsingTreeNodeEEEPS5_EENS0_8LazyListIS6_EEEEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(48), i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections4FromINS_3PtrINS_7parsing15ParsingTreeNodeEEEEENS0_8LazyListIT_EERKNS0_11IEnumerableIS7_EE(ptr dead_on_unwind noalias writable sret(%"class.vl::collections::LazyList.674") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEE5WhereIZNS4_20InitializeQueryCacheEvE3$_0EES6_T_"(ptr dead_on_unwind noalias writable sret(%"class.vl::collections::LazyList.674") align 8, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef byval(%class.anon.675) align 8) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEE7OrderByIPFlS5_S5_EEES6_T_(ptr dead_on_unwind noalias writable sret(%"class.vl::collections::LazyList.674") align 8, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { 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 #5 = { 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 = !{i64 0, i64 8, !12, i64 8, i64 8, !12, i64 16, i64 8, !12, i64 24, i64 8, !12, i64 32, i64 8, !12, i64 40, i64 8, !12, i64 48, i64 8, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; 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 }
%"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::LazyList.674" = type { %"class.vl::Object", %"class.vl::collections::IEnumerable.602", %"class.vl::Ptr.673" }
%"class.vl::collections::IEnumerable.602" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::Ptr.46" = type { ptr, ptr, ptr, ptr }
%class.anon.675 = type { %"struct.vl::parsing::ParsingTextRange" }

; 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 uwtable
declare dso_local void @_ZN2vl7parsing16ParsingTextRangeC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #2 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 noundef i64 @_ZN2vl7parsing16CompareTextRangeENS_3PtrINS0_15ParsingTreeNodeEEES3_(ptr noundef, ptr noundef) #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: 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
declare dso_local void @_ZN2vl7parsing15ParsingTreeNode15ClearQueryCacheEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing15ParsingTreeNode20InitializeQueryCacheEv(ptr noundef nonnull align 8 dereferenceable(128) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.vl::parsing::ParsingTextRange", align 8
  %3 = alloca %"class.vl::collections::LazyList.674", align 8
  %4 = alloca %"class.vl::collections::LazyList.674", align 8
  %5 = alloca %"class.vl::collections::LazyList.674", align 8
  %6 = alloca %"class.vl::collections::EnumerableForEachIterator.671", align 8
  %7 = alloca %"class.vl::Ptr.46", align 8
  %8 = load ptr, ptr %0, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  %10 = load ptr, ptr %9, align 8
  %11 = tail call noundef nonnull align 8 dereferenceable(33) ptr %10(ptr noundef nonnull align 8 dereferenceable(128) %0)
  tail call void @_ZN2vl7parsing15ParsingTreeNode15ClearQueryCacheEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %2) #4
  call void @_ZN2vl7parsing16ParsingTextRangeC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2)
  %12 = getelementptr inbounds i8, ptr %0, i64 80
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #4
  %13 = load ptr, ptr %11, align 8, !tbaa !5
  %14 = getelementptr i8, ptr %13, i64 -24
  %15 = load i64, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr %11, i64 %15
  call void @_ZN2vl11collections4FromINS_3PtrINS_7parsing15ParsingTreeNodeEEEEENS0_8LazyListIT_EERKNS0_11IEnumerableIS7_EE(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::LazyList.674") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %16)
  invoke void @"_ZNK2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEE5WhereIZNS4_20InitializeQueryCacheEvE3$_0EES6_T_"(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::LazyList.674") align 8 %4, ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull byval(%class.anon.675) align 8 %2)
          to label %17 unwind label %23

17:                                               ; preds = %1
  invoke void @_ZNK2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEE7OrderByIPFlS5_S5_EEES6_T_(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::LazyList.674") align 8 %3, ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull @_ZN2vl7parsing16CompareTextRangeENS_3PtrINS0_15ParsingTreeNodeEEES3_)
          to label %18 unwind label %25

18:                                               ; preds = %17
  invoke void @_ZN2vl11collections8CopyFromINS0_4ListINS_3PtrINS_7parsing15ParsingTreeNodeEEEPS5_EENS0_8LazyListIS6_EEEEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33) %12, ptr noundef nonnull align 8 dereferenceable(48) %3, i1 noundef zeroext false)
          to label %.critedge unwind label %27

.critedge:                                        ; preds = %18
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #4
  %19 = load ptr, ptr %12, align 8, !tbaa !5
  %20 = getelementptr i8, ptr %19, i64 -24
  %21 = load i64, ptr %20, align 8
  %22 = getelementptr inbounds i8, ptr %12, i64 %21
  call void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing15ParsingTreeNodeEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS7_EE(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::EnumerableForEachIterator.671") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %22)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7)
  br label %31

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

25:                                               ; preds = %17
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %29

27:                                               ; preds = %18
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  br label %29

29:                                               ; preds = %27, %25
  %.pn = phi { ptr, i32 } [ %28, %27 ], [ %26, %25 ]
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  br label %30

30:                                               ; preds = %29, %23
  %.pn.pn = phi { ptr, i32 } [ %.pn, %29 ], [ %24, %23 ]
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
  br label %42

31:                                               ; preds = %40, %.critedge
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = load ptr, ptr %33, align 8
  %35 = invoke noundef zeroext i1 %34(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %36 unwind label %38

36:                                               ; preds = %31
  br i1 %35, label %40, label %37

37:                                               ; preds = %36
  call void @_ZN2vl3PtrINS_7parsing15ParsingTreeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing15ParsingTreeNodeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #4
  ret void

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

40:                                               ; preds = %36
  %41 = call noundef ptr @_ZNK2vl3PtrINS_7parsing15ParsingTreeNodeEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
  invoke void @_ZN2vl7parsing15ParsingTreeNode20InitializeQueryCacheEv(ptr noundef nonnull align 8 dereferenceable(128) %41)
          to label %31 unwind label %38, !llvm.loop !8

42:                                               ; preds = %38, %30
  %.pn14 = phi { ptr, i32 } [ %39, %38 ], [ %.pn.pn, %30 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn14
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections8CopyFromINS0_4ListINS_3PtrINS_7parsing15ParsingTreeNodeEEEPS5_EENS0_8LazyListIS6_EEEEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(48), i1 noundef zeroext) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEE5WhereIZNS4_20InitializeQueryCacheEvE3$_0EES6_T_"(ptr dead_on_unwind noalias writable sret(%"class.vl::collections::LazyList.674") align 8, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef byval(%class.anon.675) align 8) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing15ParsingTreeNodeEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48)) 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: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass