; 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.449" = type { %"class.vl::collections::ForEachIterator.450", %"class.vl::Ptr.451" }
%"class.vl::collections::ForEachIterator.450" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.451" = type { ptr, ptr, ptr, ptr }
%"class.vl::collections::LazyList.569" = type { %"class.vl::Object", %"class.vl::collections::IEnumerable.390", %"class.vl::Ptr.553" }
%"class.vl::collections::IEnumerable.390" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::Ptr.553" = type { ptr, ptr, ptr, ptr }
%"class.vl::collections::LazyList.570" = type { %"class.vl::Object", %"class.vl::collections::IEnumerable.399", %"class.vl::Ptr.451" }
%"class.vl::collections::IEnumerable.399" = type { %"class.vl::Interface" }
%"class.vl::parsing::analyzing::State" = type { %"class.vl::Object", %"class.vl::collections::List.395", %"class.vl::collections::List.395", i8, ptr, ptr, ptr, ptr, i32, %"class.vl::ObjectString", %"class.vl::ObjectString" }
%"class.vl::collections::List.395" = type { %"class.vl::collections::ListBase.base.401", %"class.vl::collections::IEnumerable.399" }
%"class.vl::collections::ListBase.base.401" = type <{ %"class.vl::collections::ArrayBase.base.400", i64, i8 }>
%"class.vl::collections::ArrayBase.base.400" = type { %"class.vl::collections::ListStore.398", ptr, i64 }
%"class.vl::collections::ListStore.398" = type { %"class.vl::Object" }
%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::parsing::analyzing::Transition" = type { %"class.vl::Object", ptr, ptr, %"class.vl::collections::List.386", i32, i32, ptr }
%"class.vl::collections::List.386" = type { %"class.vl::collections::ListBase.base.392", %"class.vl::collections::IEnumerable.390" }
%"class.vl::collections::ListBase.base.392" = type <{ %"class.vl::collections::ArrayBase.base.391", i64, i8 }>
%"class.vl::collections::ArrayBase.base.391" = type { %"class.vl::collections::ListStore.389", ptr, i64 }
%"class.vl::collections::ListStore.389" = type { %"class.vl::Object" }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK2vl11collections10SortedListIPNS_7parsing9analyzing5StateES5_E8ContainsERKS5_(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing9analyzing14RearrangeStateEPNS1_5StateERNS_11collections10SortedListIS3_S3_EE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(33) %1) #1 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.449", align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.vl::collections::LazyList.569", align 8
  %13 = alloca %"class.vl::collections::LazyList.569", align 8
  %14 = alloca %"class.vl::collections::LazyList.570", align 8
  %15 = alloca %"class.vl::collections::LazyList.570", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = call noundef zeroext i1 @_ZNK2vl11collections10SortedListIPNS_7parsing9analyzing5StateES5_E8ContainsERKS5_(ptr noundef nonnull align 8 dereferenceable(33) %16, ptr noundef nonnull align 8 dereferenceable(8) %3)
  br i1 %17, label %97, label %18

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  store i8 1, ptr %5, align 1, !tbaa !9
  %19 = load i8, ptr %5, align 1, !tbaa !9, !range !11, !noundef !12
  %20 = trunc i8 %19 to i1
  br i1 %20, label %21, label %75

21:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #4
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %"class.vl::parsing::analyzing::State", ptr %22, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = getelementptr i8, ptr %24, i64 -24
  %26 = load i64, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr %23, i64 %26
  call void @_ZN2vl11collections21CreateForEachIteratorIPNS_7parsing9analyzing10TransitionEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS7_EE(ptr dead_on_unwind writable sret(%"class.vl::collections::EnumerableForEachIterator.449") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %27)
  store ptr %7, ptr %6, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %73, %21
  %29 = load i8, ptr %5, align 1, !tbaa !9, !range !11, !noundef !12
  %30 = trunc i8 %29 to i1
  br i1 %30, label %32, label %31

31:                                               ; preds = %28
  store i32 2, ptr %8, align 4
  call void @_ZN2vl11collections25EnumerableForEachIteratorIPNS_7parsing9analyzing10TransitionEED2Ev(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 %74

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  br label %33

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

39:                                               ; preds = %33
  br i1 %38, label %45, label %40

40:                                               ; preds = %39
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %72

41:                                               ; preds = %33
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %10, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %11, align 4
  br label %71

45:                                               ; preds = %39
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %"class.vl::parsing::analyzing::Transition", ptr %46, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 48, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr %13) #4
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.vl::parsing::analyzing::Transition", ptr %48, i32 0, i32 3
  %50 = load ptr, ptr %49, align 8, !tbaa !13
  %51 = getelementptr i8, ptr %50, i64 -24
  %52 = load i64, ptr %51, align 8
  %53 = getelementptr inbounds i8, ptr %49, i64 %52
  invoke void @_ZN2vl11collections4FromINS_3PtrINS_7parsing9analyzing6ActionEEEEENS0_8LazyListIT_EERKNS0_11IEnumerableIS8_EE(ptr dead_on_unwind writable sret(%"class.vl::collections::LazyList.569") align 8 %13, ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %54 unwind label %57

54:                                               ; preds = %45
  invoke void @_ZNK2vl11collections8LazyListINS_3PtrINS_7parsing9analyzing6ActionEEEE7OrderByIPFlS6_S6_EEES7_T_(ptr dead_on_unwind writable sret(%"class.vl::collections::LazyList.569") align 8 %12, ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef @_ZN2vl7parsing9analyzing27CompareActionForRearrangingENS_3PtrINS1_6ActionEEES4_)
          to label %55 unwind label %61

55:                                               ; preds = %54
  invoke void @_ZN2vl11collections8CopyFromINS0_4ListINS_3PtrINS_7parsing9analyzing6ActionEEEPS6_EENS0_8LazyListIS7_EEEEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33) %47, ptr noundef nonnull align 8 dereferenceable(48) %12, i1 noundef zeroext false)
          to label %56 unwind label %65

56:                                               ; preds = %55
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing9analyzing6ActionEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #4
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing9analyzing6ActionEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #4
  br label %33, !llvm.loop !15

57:                                               ; preds = %45
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %10, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %11, align 4
  br label %70

61:                                               ; preds = %54
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %10, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %11, align 4
  br label %69

65:                                               ; preds = %55
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %10, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %11, align 4
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing9analyzing6ActionEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #4
  br label %69

69:                                               ; preds = %65, %61
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing9analyzing6ActionEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #4
  br label %70

70:                                               ; preds = %69, %57
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #4
  br label %71

71:                                               ; preds = %70, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorIPNS_7parsing9analyzing10TransitionEED2Ev(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 %98

72:                                               ; preds = %40
  br label %73

73:                                               ; preds = %72
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %28, !llvm.loop !17

74:                                               ; preds = %31
  br label %75

75:                                               ; preds = %74, %18
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.vl::parsing::analyzing::State", ptr %76, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #4
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %"class.vl::parsing::analyzing::State", ptr %78, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !13
  %81 = getelementptr i8, ptr %80, i64 -24
  %82 = load i64, ptr %81, align 8
  %83 = getelementptr inbounds i8, ptr %79, i64 %82
  call void @_ZN2vl11collections4FromIPNS_7parsing9analyzing10TransitionEEENS0_8LazyListIT_EERKNS0_11IEnumerableIS7_EE(ptr dead_on_unwind writable sret(%"class.vl::collections::LazyList.570") align 8 %15, ptr noundef nonnull align 8 dereferenceable(8) %83)
  invoke void @_ZNK2vl11collections8LazyListIPNS_7parsing9analyzing10TransitionEE7OrderByIPFlS5_S5_EEES6_T_(ptr dead_on_unwind writable sret(%"class.vl::collections::LazyList.570") align 8 %14, ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef @_ZN2vl7parsing9analyzing31CompareTransitionForRearrangingEPNS1_10TransitionES3_)
          to label %84 unwind label %88

84:                                               ; preds = %75
  invoke void @_ZN2vl11collections8CopyFromINS0_4ListIPNS_7parsing9analyzing10TransitionES6_EENS0_8LazyListIS6_EEEEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33) %77, ptr noundef nonnull align 8 dereferenceable(48) %14, i1 noundef zeroext false)
          to label %85 unwind label %92

85:                                               ; preds = %84
  call void @_ZN2vl11collections8LazyListIPNS_7parsing9analyzing10TransitionEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #4
  call void @_ZN2vl11collections8LazyListIPNS_7parsing9analyzing10TransitionEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #4
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = call noundef i64 @_ZN2vl11collections10SortedListIPNS_7parsing9analyzing5StateES5_E3AddERKS5_(ptr noundef nonnull align 8 dereferenceable(33) %86, ptr noundef nonnull align 8 dereferenceable(8) %3)
  br label %97

88:                                               ; preds = %75
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %10, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %11, align 4
  br label %96

92:                                               ; preds = %84
  %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
  call void @_ZN2vl11collections8LazyListIPNS_7parsing9analyzing10TransitionEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #4
  br label %96

96:                                               ; preds = %92, %88
  call void @_ZN2vl11collections8LazyListIPNS_7parsing9analyzing10TransitionEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #4
  br label %98

97:                                               ; preds = %85, %2
  ret void

98:                                               ; preds = %96, %71
  %99 = load ptr, ptr %10, align 8
  %100 = load i32, ptr %11, align 4
  %101 = insertvalue { ptr, i32 } poison, ptr %99, 0
  %102 = insertvalue { ptr, i32 } %101, i32 %100, 1
  resume { ptr, i32 } %102
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN2vl11collections10SortedListIPNS_7parsing9analyzing5StateES5_E3AddERKS5_(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.vl::collections::EnumerableForEachIterator.449" = type { %"class.vl::collections::ForEachIterator.450", %"class.vl::Ptr.451" }
%"class.vl::collections::ForEachIterator.450" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.451" = type { ptr, ptr, ptr, ptr }
%"class.vl::collections::LazyList.569" = type { %"class.vl::Object", %"class.vl::collections::IEnumerable.390", %"class.vl::Ptr.553" }
%"class.vl::collections::IEnumerable.390" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::Ptr.553" = type { ptr, ptr, ptr, ptr }
%"class.vl::collections::LazyList.570" = type { %"class.vl::Object", %"class.vl::collections::IEnumerable.399", %"class.vl::Ptr.451" }
%"class.vl::collections::IEnumerable.399" = type { %"class.vl::Interface" }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing9analyzing14RearrangeStateEPNS1_5StateERNS_11collections10SortedListIS3_S3_EE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(33) %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca %"class.vl::collections::EnumerableForEachIterator.449", align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.vl::collections::LazyList.569", align 8
  %7 = alloca %"class.vl::collections::LazyList.569", align 8
  %8 = alloca %"class.vl::collections::LazyList.570", align 8
  %9 = alloca %"class.vl::collections::LazyList.570", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %10 = call noundef zeroext i1 @_ZNK2vl11collections10SortedListIPNS_7parsing9analyzing5StateES5_E8ContainsERKS5_(ptr noundef nonnull align 8 dereferenceable(33) %1, ptr noundef nonnull align 8 dereferenceable(8) %3)
  br i1 %10, label %59, label %.critedge

.critedge:                                        ; preds = %2
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #4
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = getelementptr i8, ptr %13, i64 -24
  %15 = load i64, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr %12, i64 %15
  call void @_ZN2vl11collections21CreateForEachIteratorIPNS_7parsing9analyzing10TransitionEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS7_EE(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::EnumerableForEachIterator.449") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  br label %17

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

22:                                               ; preds = %17
  br i1 %21, label %32, label %23

23:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorIPNS_7parsing9analyzing10TransitionEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #4
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #4
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr i8, ptr %26, i64 -24
  %28 = load i64, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr %25, i64 %28
  call void @_ZN2vl11collections4FromIPNS_7parsing9analyzing10TransitionEEENS0_8LazyListIT_EERKNS0_11IEnumerableIS7_EE(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::LazyList.570") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %29)
  invoke void @_ZNK2vl11collections8LazyListIPNS_7parsing9analyzing10TransitionEE7OrderByIPFlS5_S5_EEES6_T_(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::LazyList.570") align 8 %8, ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull @_ZN2vl7parsing9analyzing31CompareTransitionForRearrangingEPNS1_10TransitionES3_)
          to label %51 unwind label %54

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

32:                                               ; preds = %22
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 24
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #4
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = getelementptr i8, ptr %35, i64 -24
  %37 = load i64, ptr %36, align 8
  %38 = getelementptr inbounds i8, ptr %34, i64 %37
  invoke void @_ZN2vl11collections4FromINS_3PtrINS_7parsing9analyzing6ActionEEEEENS0_8LazyListIT_EERKNS0_11IEnumerableIS8_EE(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::LazyList.569") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %39 unwind label %42

39:                                               ; preds = %32
  invoke void @_ZNK2vl11collections8LazyListINS_3PtrINS_7parsing9analyzing6ActionEEEE7OrderByIPFlS6_S6_EEES7_T_(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::LazyList.569") align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull @_ZN2vl7parsing9analyzing27CompareActionForRearrangingENS_3PtrINS1_6ActionEEES4_)
          to label %40 unwind label %44

40:                                               ; preds = %39
  invoke void @_ZN2vl11collections8CopyFromINS0_4ListINS_3PtrINS_7parsing9analyzing6ActionEEEPS6_EENS0_8LazyListIS7_EEEEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33) %34, ptr noundef nonnull align 8 dereferenceable(48) %6, i1 noundef zeroext false)
          to label %41 unwind label %46

41:                                               ; preds = %40
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing9analyzing6ActionEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing9analyzing6ActionEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #4
  br label %17, !llvm.loop !11

42:                                               ; preds = %32
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %49

44:                                               ; preds = %39
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %48

46:                                               ; preds = %40
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing9analyzing6ActionEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  br label %48

48:                                               ; preds = %46, %44
  %.pn13 = phi { ptr, i32 } [ %47, %46 ], [ %45, %44 ]
  call void @_ZN2vl11collections8LazyListINS_3PtrINS_7parsing9analyzing6ActionEEEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  br label %49

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

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

51:                                               ; preds = %23
  invoke void @_ZN2vl11collections8CopyFromINS0_4ListIPNS_7parsing9analyzing10TransitionES6_EENS0_8LazyListIS6_EEEEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33) %25, ptr noundef nonnull align 8 dereferenceable(48) %8, i1 noundef zeroext false)
          to label %52 unwind label %56

52:                                               ; preds = %51
  call void @_ZN2vl11collections8LazyListIPNS_7parsing9analyzing10TransitionEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
  call void @_ZN2vl11collections8LazyListIPNS_7parsing9analyzing10TransitionEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #4
  %53 = call noundef i64 @_ZN2vl11collections10SortedListIPNS_7parsing9analyzing5StateES5_E3AddERKS5_(ptr noundef nonnull align 8 dereferenceable(33) %1, ptr noundef nonnull align 8 dereferenceable(8) %3)
  br label %59

54:                                               ; preds = %23
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %58

56:                                               ; preds = %51
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl11collections8LazyListIPNS_7parsing9analyzing10TransitionEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
  br label %58

58:                                               ; preds = %56, %54
  %.pn = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @_ZN2vl11collections8LazyListIPNS_7parsing9analyzing10TransitionEED1Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #4
  br label %60

59:                                               ; preds = %52, %2
  ret void

60:                                               ; preds = %58, %50
  %.pn13.pn.pn.pn = phi { ptr, i32 } [ %.pn13.pn.pn, %50 ], [ %.pn, %58 ]
  resume { ptr, i32 } %.pn13.pn.pn.pn
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections8CopyFromINS0_4ListIPNS_7parsing9analyzing10TransitionES6_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 #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN2vl11collections10SortedListIPNS_7parsing9analyzing5StateES5_E3AddERKS5_(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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


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