; 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::Ptr.473" = type { ptr, ptr, ptr, ptr }
%"class.vl::parsing::tabling::ParsingTable::TransitionItem" = type { i64, i64, %"class.vl::collections::List.182", %"class.vl::collections::List.116", %"class.vl::collections::List.190" }
%"class.vl::collections::List.182" = type { %"class.vl::collections::ListBase.base.188", %"class.vl::collections::IEnumerable.186" }
%"class.vl::collections::ListBase.base.188" = type <{ %"class.vl::collections::ArrayBase.base.187", i64, i8 }>
%"class.vl::collections::ArrayBase.base.187" = type { %"class.vl::collections::ListStore.185", ptr, i64 }
%"class.vl::collections::ListStore.185" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::collections::IEnumerable.186" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::collections::List.116" = type { %"class.vl::collections::ListBase.base.122", %"class.vl::collections::IEnumerable.120" }
%"class.vl::collections::ListBase.base.122" = type <{ %"class.vl::collections::ArrayBase.base.121", i64, i8 }>
%"class.vl::collections::ArrayBase.base.121" = type { %"class.vl::collections::ListStore.119", ptr, i64 }
%"class.vl::collections::ListStore.119" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.120" = type { %"class.vl::Interface" }
%"class.vl::collections::List.190" = type { %"class.vl::collections::ListBase.base.196", %"class.vl::collections::IEnumerable.194" }
%"class.vl::collections::ListBase.base.196" = type <{ %"class.vl::collections::ArrayBase.base.195", i64, i8 }>
%"class.vl::collections::ArrayBase.base.195" = type { %"class.vl::collections::ListStore.193", ptr, i64 }
%"class.vl::collections::ListStore.193" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.194" = type { %"class.vl::Interface" }

; 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 noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN2vl7parsing7tabling12ParsingTable14TransitionItem10CheckOrderENS_3PtrIS3_EES5_b(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca %"class.vl::Ptr.473", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.vl::Ptr.473", align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  %21 = zext i1 %2 to i8
  store i8 %21, ptr %7, align 1, !tbaa !9
  %22 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %23 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %22, i32 0, i32 0
  %24 = load i64, ptr %23, align 8, !tbaa !11
  %25 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %26 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %25, i32 0, i32 0
  %27 = load i64, ptr %26, align 8, !tbaa !11
  %28 = icmp ne i64 %24, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %3
  store i32 3, ptr %4, align 4
  br label %137

30:                                               ; preds = %3
  %31 = load i8, ptr %7, align 1, !tbaa !9, !range !27, !noundef !28
  %32 = trunc i8 %31 to i1
  br i1 %32, label %33, label %60

33:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %0)
  %34 = invoke noundef i32 @_ZN2vl7parsing7tabling18GetTransitionLevelENS_3PtrINS1_12ParsingTable14TransitionItemEEE(ptr noundef %9)
          to label %35 unwind label %42

35:                                               ; preds = %33
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #3
  store i32 %34, ptr %8, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %36 = invoke noundef i32 @_ZN2vl7parsing7tabling18GetTransitionLevelENS_3PtrINS1_12ParsingTable14TransitionItemEEE(ptr noundef %13)
          to label %37 unwind label %46

37:                                               ; preds = %35
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #3
  store i32 %36, ptr %12, align 4, !tbaa !29
  %38 = load i32, ptr %8, align 4, !tbaa !29
  %39 = load i32, ptr %12, align 4, !tbaa !29
  %40 = icmp sgt i32 %38, %39
  br i1 %40, label %41, label %50

41:                                               ; preds = %37
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %56

42:                                               ; preds = %33
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %10, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %11, align 4
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #3
  br label %59

46:                                               ; preds = %35
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %10, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %11, align 4
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %59

50:                                               ; preds = %37
  %51 = load i32, ptr %8, align 4, !tbaa !29
  %52 = load i32, ptr %12, align 4, !tbaa !29
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %54, label %55

54:                                               ; preds = %50
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %56

55:                                               ; preds = %50
  store i32 0, ptr %14, align 4
  br label %56

56:                                               ; preds = %55, %54, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  %57 = load i32, ptr %14, align 4
  switch i32 %57, label %144 [
    i32 0, label %58
    i32 1, label %137
  ]

58:                                               ; preds = %56
  br label %60

59:                                               ; preds = %46, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %139

60:                                               ; preds = %58, %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %61 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %62 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %61, i32 0, i32 3
  %63 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
  store i64 %63, ptr %15, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %64 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %65 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %64, i32 0, i32 3
  %66 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
  store i64 %66, ptr %16, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %67 = load i64, ptr %15, align 8, !tbaa !31
  %68 = load i64, ptr %16, align 8, !tbaa !31
  %69 = icmp slt i64 %67, %68
  br i1 %69, label %70, label %72

70:                                               ; preds = %60
  %71 = load i64, ptr %15, align 8, !tbaa !31
  br label %74

72:                                               ; preds = %60
  %73 = load i64, ptr %16, align 8, !tbaa !31
  br label %74

74:                                               ; preds = %72, %70
  %75 = phi i64 [ %71, %70 ], [ %73, %72 ]
  store i64 %75, ptr %17, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  store i64 0, ptr %18, align 8, !tbaa !31
  br label %76

76:                                               ; preds = %106, %74
  %77 = load i64, ptr %18, align 8, !tbaa !31
  %78 = load i64, ptr %17, align 8, !tbaa !31
  %79 = icmp slt i64 %77, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  store i32 2, ptr %14, align 4
  br label %109

81:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %82 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %83 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %82, i32 0, i32 3
  %84 = load i64, ptr %18, align 8, !tbaa !31
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %83, i64 noundef %84)
  %86 = load i64, ptr %85, align 8, !tbaa !31
  store i64 %86, ptr %19, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %87 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %88 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %87, i32 0, i32 3
  %89 = load i64, ptr %18, align 8, !tbaa !31
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %88, i64 noundef %89)
  %91 = load i64, ptr %90, align 8, !tbaa !31
  store i64 %91, ptr %20, align 8, !tbaa !31
  %92 = load i64, ptr %19, align 8, !tbaa !31
  %93 = load i64, ptr %20, align 8, !tbaa !31
  %94 = icmp sgt i64 %92, %93
  br i1 %94, label %95, label %96

95:                                               ; preds = %81
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %103

96:                                               ; preds = %81
  %97 = load i64, ptr %19, align 8, !tbaa !31
  %98 = load i64, ptr %20, align 8, !tbaa !31
  %99 = icmp slt i64 %97, %98
  br i1 %99, label %100, label %101

100:                                              ; preds = %96
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %103

101:                                              ; preds = %96
  br label %102

102:                                              ; preds = %101
  store i32 0, ptr %14, align 4
  br label %103

103:                                              ; preds = %102, %100, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  %104 = load i32, ptr %14, align 4
  switch i32 %104, label %109 [
    i32 0, label %105
  ]

105:                                              ; preds = %103
  br label %106

106:                                              ; preds = %105
  %107 = load i64, ptr %18, align 8, !tbaa !31
  %108 = add nsw i64 %107, 1
  store i64 %108, ptr %18, align 8, !tbaa !31
  br label %76, !llvm.loop !32

109:                                              ; preds = %103, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  %110 = load i32, ptr %14, align 4
  switch i32 %110, label %136 [
    i32 2, label %111
  ]

111:                                              ; preds = %109
  %112 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %113 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %112, i32 0, i32 0
  %114 = load i64, ptr %113, align 8, !tbaa !11
  %115 = icmp eq i64 %114, 1
  br i1 %115, label %116, label %128

116:                                              ; preds = %111
  %117 = load i64, ptr %15, align 8, !tbaa !31
  %118 = load i64, ptr %16, align 8, !tbaa !31
  %119 = icmp sgt i64 %117, %118
  br i1 %119, label %120, label %121

120:                                              ; preds = %116
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %136

121:                                              ; preds = %116
  %122 = load i64, ptr %15, align 8, !tbaa !31
  %123 = load i64, ptr %16, align 8, !tbaa !31
  %124 = icmp slt i64 %122, %123
  br i1 %124, label %125, label %126

125:                                              ; preds = %121
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %136

126:                                              ; preds = %121
  br label %127

127:                                              ; preds = %126
  br label %128

128:                                              ; preds = %127, %111
  %129 = load i8, ptr %7, align 1, !tbaa !9, !range !27, !noundef !28
  %130 = trunc i8 %129 to i1
  br i1 %130, label %131, label %135

131:                                              ; preds = %128
  %132 = call noundef zeroext i1 @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEgtERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %133 = zext i1 %132 to i64
  %134 = select i1 %132, i32 0, i32 2
  store i32 %134, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %136

135:                                              ; preds = %128
  store i32 3, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %136

136:                                              ; preds = %135, %131, %125, %120, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %137

137:                                              ; preds = %136, %56, %29
  %138 = load i32, ptr %4, align 4
  ret i32 %138

139:                                              ; preds = %59
  %140 = load ptr, ptr %10, align 8
  %141 = load i32, ptr %11, align 4
  %142 = insertvalue { ptr, i32 } poison, ptr %140, 0
  %143 = insertvalue { ptr, i32 } %142, i32 %141, 1
  resume { ptr, i32 } %143

144:                                              ; preds = %56
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN2vl7parsing7tabling18GetTransitionLevelENS_3PtrINS1_12ParsingTable14TransitionItemEEE(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEgtERKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #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 = { 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 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN2vl7parsing7tabling12ParsingTable14TransitionItemE", !13, i64 0, !13, i64 8, !14, i64 16, !19, i64 64, !23, i64 112}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN2vl11collections4ListINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEPS6_EE", !15, i64 0}
!15 = !{!"_ZTSN2vl11collections8ListBaseINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEPS6_EE", !16, i64 0, !13, i64 24, !10, i64 32}
!16 = !{!"_ZTSN2vl11collections9ArrayBaseINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEEE", !17, i64 0, !6, i64 8, !13, i64 16}
!17 = !{!"_ZTSN2vl11collections9ListStoreINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEELb0EEE", !18, i64 0}
!18 = !{!"_ZTSN2vl6ObjectE"}
!19 = !{!"_ZTSN2vl11collections4ListIllEE", !20, i64 0}
!20 = !{!"_ZTSN2vl11collections8ListBaseIllEE", !21, i64 0, !13, i64 24, !10, i64 32}
!21 = !{!"_ZTSN2vl11collections9ArrayBaseIlEE", !22, i64 0, !6, i64 8, !13, i64 16}
!22 = !{!"_ZTSN2vl11collections9ListStoreIlLb1EEE", !18, i64 0}
!23 = !{!"_ZTSN2vl11collections4ListINS_7parsing7tabling12ParsingTable11InstructionES5_EE", !24, i64 0}
!24 = !{!"_ZTSN2vl11collections8ListBaseINS_7parsing7tabling12ParsingTable11InstructionES5_EE", !25, i64 0, !13, i64 24, !10, i64 32}
!25 = !{!"_ZTSN2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingTable11InstructionEEE", !26, i64 0, !6, i64 8, !13, i64 16}
!26 = !{!"_ZTSN2vl11collections9ListStoreINS_7parsing7tabling12ParsingTable11InstructionELb0EEE", !18, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!30, !30, i64 0}
!30 = !{!"_ZTSN2vl7parsing7tabling15TransitionLevelE", !7, i64 0}
!31 = !{!13, !13, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


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

%"class.vl::Ptr.473" = type { ptr, ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN2vl7parsing7tabling12ParsingTable14TransitionItem10CheckOrderENS_3PtrIS3_EES5_b(ptr noundef nonnull %0, ptr noundef %1, i1 noundef zeroext %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.vl::Ptr.473", align 8
  %5 = alloca %"class.vl::Ptr.473", align 8
  %6 = tail call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = tail call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %9 = load i64, ptr %8, align 8, !tbaa !5
  %.not = icmp eq i64 %7, %9
  br i1 %.not, label %10, label %.thread

10:                                               ; preds = %3
  br i1 %2, label %11, label %23

11:                                               ; preds = %10
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %0)
  %12 = invoke noundef i32 @_ZN2vl7parsing7tabling18GetTransitionLevelENS_3PtrINS1_12ParsingTable14TransitionItemEEE(ptr noundef nonnull %4)
          to label %13 unwind label %17

13:                                               ; preds = %11
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #3
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %14 = invoke noundef i32 @_ZN2vl7parsing7tabling18GetTransitionLevelENS_3PtrINS1_12ParsingTable14TransitionItemEEE(ptr noundef nonnull %5)
          to label %15 unwind label %19

15:                                               ; preds = %13
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #3
  %16 = icmp sgt i32 %12, %14
  br i1 %16, label %.thread, label %21

17:                                               ; preds = %11
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %22

19:                                               ; preds = %13
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %22

21:                                               ; preds = %15
  %.not53 = icmp slt i32 %12, %14
  br i1 %.not53, label %.thread, label %23

22:                                               ; preds = %19, %17
  %.sink = phi ptr [ %5, %19 ], [ %4, %17 ]
  %.pn = phi { ptr, i32 } [ %20, %19 ], [ %18, %17 ]
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.sink) #3
  resume { ptr, i32 } %.pn

23:                                               ; preds = %21, %10
  %24 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %25 = getelementptr inbounds i8, ptr %24, i64 64
  %26 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %25)
  %27 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %28 = getelementptr inbounds i8, ptr %27, i64 64
  %29 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
  %30 = call i64 @llvm.smin.i64(i64 %26, i64 %29)
  %.not4055 = icmp sgt i64 %30, 0
  br i1 %.not4055, label %.lr.ph, label %._crit_edge

31:                                               ; preds = %42
  %32 = add nuw nsw i64 %.03056, 1
  %exitcond.not = icmp eq i64 %32, %30
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !25

.lr.ph:                                           ; preds = %23, %31
  %.03056 = phi i64 [ %32, %31 ], [ 0, %23 ]
  %33 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %34 = getelementptr inbounds i8, ptr %33, i64 64
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %34, i64 noundef %.03056)
  %36 = load i64, ptr %35, align 8, !tbaa !27
  %37 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %38 = getelementptr inbounds i8, ptr %37, i64 64
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %38, i64 noundef %.03056)
  %40 = load i64, ptr %39, align 8, !tbaa !27
  %41 = icmp sgt i64 %36, %40
  br i1 %41, label %.thread, label %42

42:                                               ; preds = %.lr.ph
  %.not54 = icmp slt i64 %36, %40
  br i1 %.not54, label %.thread, label %31

._crit_edge:                                      ; preds = %31, %23
  %43 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %44 = load i64, ptr %43, align 8, !tbaa !5
  %45 = icmp eq i64 %44, 1
  br i1 %45, label %46, label %48

46:                                               ; preds = %._crit_edge
  %47 = icmp sle i64 %26, %29
  %brmerge = icmp eq i64 %26, %29
  %.mux = zext i1 %47 to i32
  %brmerge44.not = and i1 %brmerge, %2
  %.mux.mux = select i1 %brmerge, i32 3, i32 %.mux
  br i1 %brmerge44.not, label %49, label %.thread

48:                                               ; preds = %._crit_edge
  br i1 %2, label %49, label %.thread

49:                                               ; preds = %46, %48
  %50 = call noundef zeroext i1 @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEgtERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %51 = select i1 %50, i32 0, i32 2
  br label %.thread

.thread:                                          ; preds = %.lr.ph, %42, %15, %46, %49, %48, %21, %3
  %.6 = phi i32 [ 1, %21 ], [ 3, %3 ], [ %51, %49 ], [ %.mux.mux, %46 ], [ 3, %48 ], [ 0, %15 ], [ 0, %.lr.ph ], [ 1, %42 ]
  ret i32 %.6
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN2vl7parsing7tabling18GetTransitionLevelENS_3PtrINS1_12ParsingTable14TransitionItemEEE(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #2

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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, !7, i64 0}
!6 = !{!"_ZTSN2vl7parsing7tabling12ParsingTable14TransitionItemE", !7, i64 0, !7, i64 8, !10, i64 16, !17, i64 64, !21, i64 112}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN2vl11collections4ListINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEPS6_EE", !11, i64 0}
!11 = !{!"_ZTSN2vl11collections8ListBaseINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEPS6_EE", !12, i64 0, !7, i64 24, !16, i64 32}
!12 = !{!"_ZTSN2vl11collections9ArrayBaseINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEEE", !13, i64 0, !15, i64 8, !7, i64 16}
!13 = !{!"_ZTSN2vl11collections9ListStoreINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEELb0EEE", !14, i64 0}
!14 = !{!"_ZTSN2vl6ObjectE"}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"bool", !8, i64 0}
!17 = !{!"_ZTSN2vl11collections4ListIllEE", !18, i64 0}
!18 = !{!"_ZTSN2vl11collections8ListBaseIllEE", !19, i64 0, !7, i64 24, !16, i64 32}
!19 = !{!"_ZTSN2vl11collections9ArrayBaseIlEE", !20, i64 0, !15, i64 8, !7, i64 16}
!20 = !{!"_ZTSN2vl11collections9ListStoreIlLb1EEE", !14, i64 0}
!21 = !{!"_ZTSN2vl11collections4ListINS_7parsing7tabling12ParsingTable11InstructionES5_EE", !22, i64 0}
!22 = !{!"_ZTSN2vl11collections8ListBaseINS_7parsing7tabling12ParsingTable11InstructionES5_EE", !23, i64 0, !7, i64 24, !16, i64 32}
!23 = !{!"_ZTSN2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingTable11InstructionEEE", !24, i64 0, !15, i64 8, !7, i64 16}
!24 = !{!"_ZTSN2vl11collections9ListStoreINS_7parsing7tabling12ParsingTable11InstructionELb0EEE", !14, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass