; 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"

%"struct.vl::parsing::tabling::ParsingState::TransitionResult" = type { i32, i64, %"class.vl::ObjectString", i64, i64, i64, i64, ptr, ptr, i64, i64, %"class.vl::Ptr.140" }
%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.140" = type { ptr, ptr, ptr, ptr }
%"class.vl::collections::List.172" = type { %"class.vl::collections::ListBase.base.178", %"class.vl::collections::IEnumerable.176" }
%"class.vl::collections::ListBase.base.178" = type <{ %"class.vl::collections::ArrayBase.base.177", i64, i8 }>
%"class.vl::collections::ArrayBase.base.177" = type { %"class.vl::collections::ListStore.175", ptr, i64 }
%"class.vl::collections::ListStore.175" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.176" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::collections::EnumerableForEachIterator.209" = type { %"class.vl::collections::ForEachIterator.210", %"class.vl::Ptr.181" }
%"class.vl::collections::ForEachIterator.210" = type { %"class.vl::Object" }
%"class.vl::Ptr.181" = type { ptr, ptr, ptr, ptr }
%"class.vl::parsing::tabling::ParsingAmbiguousParser" = type { %"class.vl::parsing::tabling::ParsingGeneralParser", %"class.vl::collections::List.164", i64 }
%"class.vl::parsing::tabling::ParsingGeneralParser" = type { %"class.vl::Object", %"class.vl::Ptr.61" }
%"class.vl::Ptr.61" = type { ptr, ptr, ptr, ptr }
%"class.vl::collections::List.164" = type { %"class.vl::collections::ListBase.base.170", %"class.vl::collections::IEnumerable.168" }
%"class.vl::collections::ListBase.base.170" = type <{ %"class.vl::collections::ArrayBase.base.169", i64, i8 }>
%"class.vl::collections::ArrayBase.base.169" = type { %"class.vl::collections::ListStore.167", ptr, i64 }
%"class.vl::collections::ListStore.167" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.168" = type { %"class.vl::Interface" }

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #0

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultC2ENS3_14TransitionTypeE(ptr noundef nonnull align 8 dereferenceable(160), i32 noundef) unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing7tabling22ParsingAmbiguousParser14BuildDecisionsERNS1_12ParsingStateERNS_11collections4ListIPNS3_6FutureES8_EElllRNS6_INS_3PtrINS0_12ParsingErrorEEEPSC_EE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(33), i64 noundef, i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(33)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing7tabling22ParsingAmbiguousParser9ParseStepERNS1_12ParsingStateERNS_11collections4ListINS_3PtrINS0_12ParsingErrorEEEPS8_EE(ptr dead_on_unwind noalias writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull align 8 dereferenceable(256) %2, ptr noundef nonnull align 8 dereferenceable(33) %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.vl::collections::List.172", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca ptr, align 8
  %17 = alloca %"class.vl::collections::EnumerableForEachIterator.209", align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i1, align 1
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8
  %22 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingAmbiguousParser", ptr %21, i32 0, i32 1
  %23 = call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingState16TransitionResultEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %22)
  %24 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingAmbiguousParser", ptr %21, i32 0, i32 2
  %25 = load i64, ptr %24, align 8, !tbaa !9
  %26 = icmp eq i64 %23, %25
  br i1 %26, label %27, label %82

27:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #6
  call void @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EC1Ev(ptr noundef nonnull align 8 dereferenceable(33) %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = invoke noundef i64 @_ZN2vl7parsing7tabling22ParsingAmbiguousParser20SearchPathForOneStepERNS1_12ParsingStateERNS_11collections4ListIPNS3_6FutureES8_EERlSB_RNS6_INS_3PtrINS0_12ParsingErrorEEEPSD_EE(ptr noundef nonnull align 8 dereferenceable(96) %21, ptr noundef nonnull align 8 dereferenceable(256) %28, ptr noundef nonnull align 8 dereferenceable(33) %9, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(33) %29)
          to label %31 unwind label %50

31:                                               ; preds = %27
  store i64 %30, ptr %12, align 8, !tbaa !20
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = load i64, ptr %10, align 8, !tbaa !20
  %34 = load i64, ptr %11, align 8, !tbaa !20
  %35 = load i64, ptr %12, align 8, !tbaa !20
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN2vl7parsing7tabling22ParsingAmbiguousParser14BuildDecisionsERNS1_12ParsingStateERNS_11collections4ListIPNS3_6FutureES8_EElllRNS6_INS_3PtrINS0_12ParsingErrorEEEPSC_EE(ptr noundef nonnull align 8 dereferenceable(96) %21, ptr noundef nonnull align 8 dereferenceable(256) %32, ptr noundef nonnull align 8 dereferenceable(33) %9, i64 noundef %33, i64 noundef %34, i64 noundef %35, ptr noundef nonnull align 8 dereferenceable(33) %36)
          to label %37 unwind label %50

37:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  store i8 1, ptr %15, align 1, !tbaa !21
  %38 = load i8, ptr %15, align 1, !tbaa !21, !range !22, !noundef !23
  %39 = trunc i8 %38 to i1
  br i1 %39, label %40, label %80

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #6
  %41 = load ptr, ptr %9, align 8, !tbaa !24
  %42 = getelementptr i8, ptr %41, i64 -24
  %43 = load i64, ptr %42, align 8
  %44 = getelementptr inbounds i8, ptr %9, i64 %43
  invoke void @_ZN2vl11collections21CreateForEachIteratorIPNS_7parsing7tabling12ParsingState6FutureEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS8_EE(ptr dead_on_unwind writable sret(%"class.vl::collections::EnumerableForEachIterator.209") align 8 %17, ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %45 unwind label %54

45:                                               ; preds = %40
  store ptr %17, ptr %16, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %77, %45
  %47 = load i8, ptr %15, align 1, !tbaa !21, !range !22, !noundef !23
  %48 = trunc i8 %47 to i1
  br i1 %48, label %58, label %49

49:                                               ; preds = %46
  store i32 2, ptr %18, align 4
  call void @_ZN2vl11collections25EnumerableForEachIteratorIPNS_7parsing7tabling12ParsingState6FutureEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %79

50:                                               ; preds = %31, %27
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %13, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %14, align 4
  br label %81

54:                                               ; preds = %40
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %13, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %14, align 4
  br label %78

58:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  br label %59

59:                                               ; preds = %75, %58
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  %61 = load ptr, ptr %60, align 8, !tbaa !24
  %62 = getelementptr inbounds ptr, ptr %61, i64 2
  %63 = load ptr, ptr %62, align 8
  %64 = invoke noundef zeroext i1 %63(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %65 unwind label %67

65:                                               ; preds = %59
  br i1 %64, label %71, label %66

66:                                               ; preds = %65
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %76

67:                                               ; preds = %59
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %13, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @_ZN2vl11collections25EnumerableForEachIteratorIPNS_7parsing7tabling12ParsingState6FutureEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #6
  br label %78

71:                                               ; preds = %65
  %72 = load ptr, ptr %19, align 8, !tbaa !5
  %73 = icmp eq ptr %72, null
  br i1 %73, label %75, label %74

74:                                               ; preds = %71
  call void @_ZN2vl7parsing7tabling12ParsingState6FutureD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %72) #6
  call void @_ZdlPvm(ptr noundef %72, i64 noundef 104) #7
  br label %75

75:                                               ; preds = %74, %71
  br label %59, !llvm.loop !26

76:                                               ; preds = %66
  br label %77

77:                                               ; preds = %76
  store i8 0, ptr %15, align 1, !tbaa !21
  br label %46, !llvm.loop !28

78:                                               ; preds = %67, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  br label %81

79:                                               ; preds = %49
  br label %80

80:                                               ; preds = %79, %37
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #6
  br label %82

81:                                               ; preds = %78, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #6
  br label %115

82:                                               ; preds = %80, %4
  %83 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingAmbiguousParser", ptr %21, i32 0, i32 1
  %84 = call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingState16TransitionResultEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %83)
  %85 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingAmbiguousParser", ptr %21, i32 0, i32 2
  %86 = load i64, ptr %85, align 8, !tbaa !9
  %87 = icmp sgt i64 %84, %86
  br i1 %87, label %88, label %113

88:                                               ; preds = %82
  store i1 false, ptr %20, align 1
  %89 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingAmbiguousParser", ptr %21, i32 0, i32 1
  %90 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingAmbiguousParser", ptr %21, i32 0, i32 2
  %91 = load i64, ptr %90, align 8, !tbaa !9
  %92 = add nsw i64 %91, 1
  store i64 %92, ptr %90, align 8, !tbaa !9
  %93 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl11collections4ListINS_7parsing7tabling12ParsingState16TransitionResultES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %89, i64 noundef %91)
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(160) %93)
  %94 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingAmbiguousParser", ptr %21, i32 0, i32 2
  %95 = load i64, ptr %94, align 8, !tbaa !9
  %96 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingAmbiguousParser", ptr %21, i32 0, i32 1
  %97 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingState16TransitionResultEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %96)
          to label %98 unwind label %105

98:                                               ; preds = %88
  %99 = icmp eq i64 %95, %97
  br i1 %99, label %100, label %109

100:                                              ; preds = %98
  %101 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingAmbiguousParser", ptr %21, i32 0, i32 1
  %102 = invoke noundef zeroext i1 @_ZN2vl11collections8ListBaseINS_7parsing7tabling12ParsingState16TransitionResultES5_E5ClearEv(ptr noundef nonnull align 8 dereferenceable(33) %101)
          to label %103 unwind label %105

103:                                              ; preds = %100
  %104 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingAmbiguousParser", ptr %21, i32 0, i32 2
  store i64 0, ptr %104, align 8, !tbaa !9
  br label %109

105:                                              ; preds = %100, %88
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %13, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %14, align 4
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %0) #6
  br label %115

109:                                              ; preds = %103, %98
  store i1 true, ptr %20, align 1
  store i32 1, ptr %18, align 4
  %110 = load i1, ptr %20, align 1
  br i1 %110, label %112, label %111

111:                                              ; preds = %109
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %0) #6
  br label %112

112:                                              ; preds = %111, %109
  br label %114

113:                                              ; preds = %82
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultC2ENS3_14TransitionTypeE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef 0)
  br label %114

114:                                              ; preds = %113, %112
  ret void

115:                                              ; preds = %105, %81
  %116 = load ptr, ptr %13, align 8
  %117 = load i32, ptr %14, align 4
  %118 = insertvalue { ptr, i32 } poison, ptr %116, 0
  %119 = insertvalue { ptr, i32 } %118, i32 %117, 1
  resume { ptr, i32 } %119
}

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

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

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

attributes #0 = { nobuiltin nounwind "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { 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 = { inlinehint 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 #6 = { nounwind }
attributes #7 = { builtin 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, !18, i64 88}
!10 = !{!"_ZTSN2vl7parsing7tabling22ParsingAmbiguousParserE", !11, i64 0, !14, i64 40, !18, i64 88}
!11 = !{!"_ZTSN2vl7parsing7tabling20ParsingGeneralParserE", !12, i64 0, !13, i64 8}
!12 = !{!"_ZTSN2vl6ObjectE"}
!13 = !{!"_ZTSN2vl3PtrINS_7parsing7tabling12ParsingTableEEE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!"_ZTSN2vl11collections4ListINS_7parsing7tabling12ParsingState16TransitionResultES5_EE", !15, i64 0}
!15 = !{!"_ZTSN2vl11collections8ListBaseINS_7parsing7tabling12ParsingState16TransitionResultES5_EE", !16, i64 0, !18, i64 24, !19, i64 32}
!16 = !{!"_ZTSN2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingState16TransitionResultEEE", !17, i64 0, !6, i64 8, !18, i64 16}
!17 = !{!"_ZTSN2vl11collections9ListStoreINS_7parsing7tabling12ParsingState16TransitionResultELb0EEE", !12, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!18, !18, i64 0}
!21 = !{!19, !19, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !25, i64 0}
!25 = !{!"vtable pointer", !8, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}


; 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"

%"struct.vl::parsing::tabling::ParsingState::TransitionResult" = type { i32, i64, %"class.vl::ObjectString", i64, i64, i64, i64, ptr, ptr, i64, i64, %"class.vl::Ptr.140" }
%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.140" = type { ptr, ptr, ptr, ptr }
%"class.vl::collections::List.172" = type { %"class.vl::collections::ListBase.base.178", %"class.vl::collections::IEnumerable.176" }
%"class.vl::collections::ListBase.base.178" = type <{ %"class.vl::collections::ArrayBase.base.177", i64, i8 }>
%"class.vl::collections::ArrayBase.base.177" = type { %"class.vl::collections::ListStore.175", ptr, i64 }
%"class.vl::collections::ListStore.175" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.176" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::collections::EnumerableForEachIterator.209" = type { %"class.vl::collections::ForEachIterator.210", %"class.vl::Ptr.181" }
%"class.vl::collections::ForEachIterator.210" = type { %"class.vl::Object" }
%"class.vl::Ptr.181" = type { ptr, ptr, ptr, ptr }

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultC2ENS3_14TransitionTypeE(ptr noundef nonnull align 8 dereferenceable(160), i32 noundef) unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN2vl7parsing7tabling22ParsingAmbiguousParser20SearchPathForOneStepERNS1_12ParsingStateERNS_11collections4ListIPNS3_6FutureES8_EERlSB_RNS6_INS_3PtrINS0_12ParsingErrorEEEPSD_EE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing7tabling22ParsingAmbiguousParser14BuildDecisionsERNS1_12ParsingStateERNS_11collections4ListIPNS3_6FutureES8_EElllRNS6_INS_3PtrINS0_12ParsingErrorEEEPSC_EE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(33), i64 noundef, i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing7tabling22ParsingAmbiguousParser9ParseStepERNS1_12ParsingStateERNS_11collections4ListINS_3PtrINS0_12ParsingErrorEEEPS8_EE(ptr dead_on_unwind noalias writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull align 8 dereferenceable(256) %2, ptr noundef nonnull align 8 dereferenceable(33) %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.vl::collections::List.172", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.vl::collections::EnumerableForEachIterator.209", align 8
  %9 = alloca ptr, align 8
  %10 = getelementptr inbounds i8, ptr %1, i64 40
  %11 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingState16TransitionResultEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %12 = getelementptr inbounds i8, ptr %1, i64 88
  %13 = load i64, ptr %12, align 8, !tbaa !5
  %14 = icmp eq i64 %11, %13
  br i1 %14, label %15, label %43

15:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #6
  call void @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EC1Ev(ptr noundef nonnull align 8 dereferenceable(33) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  store i64 0, ptr %6, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  store i64 0, ptr %7, align 8, !tbaa !19
  %16 = invoke noundef i64 @_ZN2vl7parsing7tabling22ParsingAmbiguousParser20SearchPathForOneStepERNS1_12ParsingStateERNS_11collections4ListIPNS3_6FutureES8_EERlSB_RNS6_INS_3PtrINS0_12ParsingErrorEEEPSD_EE(ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull align 8 dereferenceable(256) %2, ptr noundef nonnull align 8 dereferenceable(33) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(33) %3)
          to label %17 unwind label %25

17:                                               ; preds = %15
  %18 = load i64, ptr %6, align 8, !tbaa !19
  %19 = load i64, ptr %7, align 8, !tbaa !19
  invoke void @_ZN2vl7parsing7tabling22ParsingAmbiguousParser14BuildDecisionsERNS1_12ParsingStateERNS_11collections4ListIPNS3_6FutureES8_EElllRNS6_INS_3PtrINS0_12ParsingErrorEEEPSC_EE(ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull align 8 dereferenceable(256) %2, ptr noundef nonnull align 8 dereferenceable(33) %5, i64 noundef %18, i64 noundef %19, i64 noundef %16, ptr noundef nonnull align 8 dereferenceable(33) %3)
          to label %20 unwind label %25

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #6
  %21 = load ptr, ptr %5, align 8, !tbaa !20
  %22 = getelementptr i8, ptr %21, i64 -24
  %23 = load i64, ptr %22, align 8
  %24 = getelementptr inbounds i8, ptr %5, i64 %23
  invoke void @_ZN2vl11collections21CreateForEachIteratorIPNS_7parsing7tabling12ParsingState6FutureEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS8_EE(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::EnumerableForEachIterator.209") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %29 unwind label %27

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

27:                                               ; preds = %20
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %42

29:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  br label %30

30:                                               ; preds = %.backedge, %29
  %31 = load ptr, ptr %8, align 8, !tbaa !20
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %33 = load ptr, ptr %32, align 8
  %34 = invoke noundef zeroext i1 %33(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %35 unwind label %36

35:                                               ; preds = %30
  br i1 %34, label %38, label %.critedge

.critedge:                                        ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZN2vl11collections25EnumerableForEachIteratorIPNS_7parsing7tabling12ParsingState6FutureEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
  br label %43

36:                                               ; preds = %30
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZN2vl11collections25EnumerableForEachIteratorIPNS_7parsing7tabling12ParsingState6FutureEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  br label %42

38:                                               ; preds = %35
  %39 = load ptr, ptr %9, align 8, !tbaa !22
  %40 = icmp eq ptr %39, null
  br i1 %40, label %.backedge, label %41

41:                                               ; preds = %38
  call void @_ZN2vl7parsing7tabling12ParsingState6FutureD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %39) #6
  call void @_ZdlPvm(ptr noundef nonnull %39, i64 noundef 104) #7
  br label %.backedge

.backedge:                                        ; preds = %41, %38
  br label %30, !llvm.loop !23

42:                                               ; preds = %27, %36, %25
  %.pn.pn = phi { ptr, i32 } [ %26, %25 ], [ %37, %36 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
  br label %60

43:                                               ; preds = %.critedge, %4
  %44 = call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingState16TransitionResultEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %45 = load i64, ptr %12, align 8, !tbaa !5
  %46 = icmp sgt i64 %44, %45
  br i1 %46, label %47, label %58

47:                                               ; preds = %43
  %48 = add nsw i64 %45, 1
  store i64 %48, ptr %12, align 8, !tbaa !5
  %49 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl11collections4ListINS_7parsing7tabling12ParsingState16TransitionResultES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %10, i64 noundef %45)
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(160) %49)
  %50 = load i64, ptr %12, align 8, !tbaa !5
  %51 = call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingState16TransitionResultEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %52 = icmp eq i64 %50, %51
  br i1 %52, label %53, label %59

53:                                               ; preds = %47
  %54 = invoke noundef zeroext i1 @_ZN2vl11collections8ListBaseINS_7parsing7tabling12ParsingState16TransitionResultES5_E5ClearEv(ptr noundef nonnull align 8 dereferenceable(33) %10)
          to label %55 unwind label %56

55:                                               ; preds = %53
  store i64 0, ptr %12, align 8, !tbaa !5
  br label %59

56:                                               ; preds = %53
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %0) #6
  br label %60

58:                                               ; preds = %43
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultC2ENS3_14TransitionTypeE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef 0)
  br label %59

59:                                               ; preds = %47, %55, %58
  ret void

60:                                               ; preds = %56, %42
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %42 ], [ %57, %56 ]
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

attributes #0 = { nobuiltin nounwind "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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { 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 = { inlinehint 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 #6 = { nounwind }
attributes #7 = { builtin 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, !17, i64 88}
!6 = !{!"_ZTSN2vl7parsing7tabling22ParsingAmbiguousParserE", !7, i64 0, !13, i64 40, !17, i64 88}
!7 = !{!"_ZTSN2vl7parsing7tabling20ParsingGeneralParserE", !8, i64 0, !9, i64 8}
!8 = !{!"_ZTSN2vl6ObjectE"}
!9 = !{!"_ZTSN2vl3PtrINS_7parsing7tabling12ParsingTableEEE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSN2vl11collections4ListINS_7parsing7tabling12ParsingState16TransitionResultES5_EE", !14, i64 0}
!14 = !{!"_ZTSN2vl11collections8ListBaseINS_7parsing7tabling12ParsingState16TransitionResultES5_EE", !15, i64 0, !17, i64 24, !18, i64 32}
!15 = !{!"_ZTSN2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingState16TransitionResultEEE", !16, i64 0, !10, i64 8, !17, i64 16}
!16 = !{!"_ZTSN2vl11collections9ListStoreINS_7parsing7tabling12ParsingState16TransitionResultELb0EEE", !8, i64 0}
!17 = !{!"long", !11, i64 0}
!18 = !{!"bool", !11, i64 0}
!19 = !{!17, !17, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !12, i64 0}
!22 = !{!10, !10, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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