; 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.159" = type { %"class.vl::collections::ForEachIterator.160", %"class.vl::Ptr.158" }
%"class.vl::collections::ForEachIterator.160" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.158" = type { ptr, ptr, ptr, ptr }
%"class.vl::collections::EnumerableForEachIterator.475" = type { %"class.vl::collections::ForEachIterator.476", %"class.vl::Ptr.471" }
%"class.vl::collections::ForEachIterator.476" = type { %"class.vl::Object" }
%"class.vl::Ptr.471" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.472" = 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::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" }
%"class.vl::parsing::tabling::ParsingTable::LookAheadInfo" = type { %"class.vl::collections::List.116", i64 }
%"class.vl::parsing::tabling::ParsingState" = type { %"class.vl::Object", %"class.vl::ObjectString", %"class.vl::Ptr.61", %"class.vl::collections::List.47", %"class.vl::Ptr.62", %"class.vl::ObjectString", i64, %"class.vl::Ptr.63" }
%"class.vl::Ptr.61" = type { ptr, ptr, ptr, ptr }
%"class.vl::collections::List.47" = type { %"class.vl::collections::ListBase.base.53", %"class.vl::collections::IEnumerable.51" }
%"class.vl::collections::ListBase.base.53" = type <{ %"class.vl::collections::ArrayBase.base.52", i64, i8 }>
%"class.vl::collections::ArrayBase.base.52" = type { %"class.vl::collections::ListStore.50", ptr, i64 }
%"class.vl::collections::ListStore.50" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.51" = type { %"class.vl::Interface" }
%"class.vl::Ptr.62" = type { ptr, ptr, ptr, ptr }
%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::Ptr.63" = type { ptr, ptr, ptr, ptr }
%"struct.vl::parsing::tabling::ParsingState::StateGroup" = type { %"class.vl::collections::List.116", i64, i64, %"class.vl::collections::List.626", ptr, ptr }
%"class.vl::collections::List.626" = type { %"class.vl::collections::ListBase.base.632", %"class.vl::collections::IEnumerable.630" }
%"class.vl::collections::ListBase.base.632" = type <{ %"class.vl::collections::ArrayBase.base.631", i64, i8 }>
%"class.vl::collections::ArrayBase.base.631" = type { %"class.vl::collections::ListStore.629", ptr, i64 }
%"class.vl::collections::ListStore.629" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.630" = type { %"class.vl::Interface" }
%"struct.vl::parsing::tabling::ParsingState::Future" = type { i64, i64, %"class.vl::collections::List.116", ptr, i64, ptr, ptr, ptr }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 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) #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2vl7parsing7tabling12ParsingState26TestTransitionItemInFutureElPNS2_6FutureEPNS1_12ParsingTable14TransitionItemEPKNS_11collections11IEnumerableIlEE(ptr noundef nonnull align 8 dereferenceable(256) %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca %"class.vl::collections::EnumerableForEachIterator.475", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.vl::Ptr.472", align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i8, align 1
  %22 = alloca ptr, align 8
  %23 = alloca %"class.vl::collections::EnumerableForEachIterator.159", align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i8, align 1
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  store i8 1, ptr %12, align 1, !tbaa !11
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %31, i32 0, i32 2
  %33 = call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %32)
  %34 = icmp sgt i64 %33, 0
  br i1 %34, label %35, label %150

35:                                               ; preds = %5
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %150

38:                                               ; preds = %35
  store i8 0, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  store i8 1, ptr %13, align 1, !tbaa !11
  %39 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %40 = trunc i8 %39 to i1
  br i1 %40, label %41, label %149

41:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #4
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %42, i32 0, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !15
  %45 = getelementptr i8, ptr %44, i64 -24
  %46 = load i64, ptr %45, align 8
  %47 = getelementptr inbounds i8, ptr %43, i64 %46
  call void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS9_EE(ptr dead_on_unwind writable sret(%"class.vl::collections::EnumerableForEachIterator.475") align 8 %15, ptr noundef nonnull align 8 dereferenceable(8) %47)
  store ptr %15, ptr %14, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %147, %41
  %49 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %50 = trunc i8 %49 to i1
  br i1 %50, label %52, label %51

51:                                               ; preds = %48
  store i32 2, ptr %16, align 4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %148

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #4
  invoke void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %53 unwind label %62

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %141, %53
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  %57 = getelementptr inbounds ptr, ptr %56, i64 2
  %58 = load ptr, ptr %57, align 8
  %59 = invoke noundef zeroext i1 %58(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %60 unwind label %66

60:                                               ; preds = %54
  br i1 %59, label %70, label %61

61:                                               ; preds = %60
  store i32 5, ptr %16, align 4
  br label %143

62:                                               ; preds = %52
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %18, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %19, align 4
  br label %145

66:                                               ; preds = %54
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %18, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %19, align 4
  br label %144

70:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store i64 0, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #4
  store i8 1, ptr %21, align 1, !tbaa !11
  %71 = load i8, ptr %21, align 1, !tbaa !11, !range !13, !noundef !14
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %125

73:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #4
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN2vl11collections21CreateForEachIteratorIlEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS3_EE(ptr dead_on_unwind writable sret(%"class.vl::collections::EnumerableForEachIterator.159") align 8 %23, ptr noundef nonnull align 8 dereferenceable(8) %74)
          to label %75 unwind label %80

75:                                               ; preds = %73
  store ptr %23, ptr %22, align 8, !tbaa !5
  br label %76

76:                                               ; preds = %122, %75
  %77 = load i8, ptr %21, align 1, !tbaa !11, !range !13, !noundef !14
  %78 = trunc i8 %77 to i1
  br i1 %78, label %84, label %79

79:                                               ; preds = %76
  store i32 7, ptr %16, align 4
  call void @_ZN2vl11collections25EnumerableForEachIteratorIlED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %124

80:                                               ; preds = %73
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %18, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %19, align 4
  br label %123

84:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  br label %85

85:                                               ; preds = %119, %84
  %86 = load ptr, ptr %22, align 8, !tbaa !5
  %87 = load ptr, ptr %86, align 8, !tbaa !15
  %88 = getelementptr inbounds ptr, ptr %87, i64 2
  %89 = load ptr, ptr %88, align 8
  %90 = invoke noundef zeroext i1 %89(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %91 unwind label %93

91:                                               ; preds = %85
  br i1 %90, label %97, label %92

92:                                               ; preds = %91
  store i32 10, ptr %16, align 4
  br label %120

93:                                               ; preds = %113, %108, %99, %97, %85
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %18, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorIlED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #4
  br label %123

97:                                               ; preds = %91
  %98 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %99 unwind label %93

99:                                               ; preds = %97
  %100 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::LookAheadInfo", ptr %98, i32 0, i32 0
  %101 = load i64, ptr %20, align 8, !tbaa !9
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %100, i64 noundef %101)
          to label %103 unwind label %93

103:                                              ; preds = %99
  %104 = load i64, ptr %102, align 8, !tbaa !9
  %105 = load i64, ptr %24, align 8, !tbaa !9
  %106 = icmp ne i64 %104, %105
  br i1 %106, label %107, label %108

107:                                              ; preds = %103
  store i32 10, ptr %16, align 4
  br label %120

108:                                              ; preds = %103
  %109 = load i64, ptr %20, align 8, !tbaa !9
  %110 = add nsw i64 %109, 1
  store i64 %110, ptr %20, align 8, !tbaa !9
  %111 = load i64, ptr %20, align 8, !tbaa !9
  %112 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %113 unwind label %93

113:                                              ; preds = %108
  %114 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::LookAheadInfo", ptr %112, i32 0, i32 0
  %115 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %114)
          to label %116 unwind label %93

116:                                              ; preds = %113
  %117 = icmp sge i64 %111, %115
  br i1 %117, label %118, label %119

118:                                              ; preds = %116
  store i32 10, ptr %16, align 4
  br label %120

119:                                              ; preds = %116
  br label %85, !llvm.loop !17

120:                                              ; preds = %118, %107, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  br label %121

121:                                              ; preds = %120
  br label %122

122:                                              ; preds = %121
  store i8 0, ptr %21, align 1, !tbaa !11
  br label %76, !llvm.loop !19

123:                                              ; preds = %93, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  br label %142

124:                                              ; preds = %79
  br label %125

125:                                              ; preds = %124, %70
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  %126 = load i64, ptr %20, align 8, !tbaa !9
  %127 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %128 unwind label %134

128:                                              ; preds = %125
  %129 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::LookAheadInfo", ptr %127, i32 0, i32 0
  %130 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %129)
          to label %131 unwind label %134

131:                                              ; preds = %128
  %132 = icmp eq i64 %126, %130
  br i1 %132, label %133, label %138

133:                                              ; preds = %131
  store i8 1, ptr %12, align 1, !tbaa !11
  store i32 5, ptr %16, align 4
  br label %139

134:                                              ; preds = %128, %125
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %18, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %19, align 4
  br label %142

138:                                              ; preds = %131
  store i32 0, ptr %16, align 4
  br label %139

139:                                              ; preds = %138, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  %140 = load i32, ptr %16, align 4
  switch i32 %140, label %143 [
    i32 0, label %141
  ]

141:                                              ; preds = %139
  br label %54, !llvm.loop !20

142:                                              ; preds = %134, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %144

143:                                              ; preds = %139, %61
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #4
  br label %146

144:                                              ; preds = %142, %66
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #4
  br label %145

145:                                              ; preds = %144, %62
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  br label %255

146:                                              ; preds = %143
  br label %147

147:                                              ; preds = %146
  store i8 0, ptr %13, align 1, !tbaa !11
  br label %48, !llvm.loop !21

148:                                              ; preds = %51
  br label %149

149:                                              ; preds = %148, %38
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  br label %150

150:                                              ; preds = %149, %35, %5
  %151 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %152 = trunc i8 %151 to i1
  br i1 %152, label %154, label %153

153:                                              ; preds = %150
  store i1 false, ptr %6, align 1
  store i32 1, ptr %16, align 4
  br label %253

154:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %155 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingState", ptr %30, i32 0, i32 7
  %156 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingState10StateGroupEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %155)
  %157 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::StateGroup", ptr %156, i32 0, i32 0
  %158 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %157)
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %159, i32 0, i32 1
  %161 = load i64, ptr %160, align 8, !tbaa !22
  %162 = sub nsw i64 %158, %161
  store i64 %162, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %163 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingState", ptr %30, i32 0, i32 7
  %164 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingState10StateGroupEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %163)
  %165 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::StateGroup", ptr %164, i32 0, i32 0
  %166 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %165)
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %167, i32 0, i32 1
  %169 = load i64, ptr %168, align 8, !tbaa !22
  %170 = sub nsw i64 %166, %169
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %171, i32 0, i32 2
  %173 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %172)
  %174 = add nsw i64 %170, %173
  store i64 %174, ptr %26, align 8, !tbaa !9
  %175 = load ptr, ptr %10, align 8, !tbaa !5
  %176 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %175, i32 0, i32 3
  %177 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %176)
  %178 = load i64, ptr %26, align 8, !tbaa !9
  %179 = icmp sle i64 %177, %178
  br i1 %179, label %180, label %251

180:                                              ; preds = %154
  %181 = load i64, ptr %8, align 8, !tbaa !9
  %182 = icmp ne i64 %181, 1
  br i1 %182, label %189, label %183

183:                                              ; preds = %180
  %184 = load ptr, ptr %10, align 8, !tbaa !5
  %185 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %184, i32 0, i32 3
  %186 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %185)
  %187 = load i64, ptr %26, align 8, !tbaa !9
  %188 = icmp eq i64 %186, %187
  br i1 %188, label %189, label %250

189:                                              ; preds = %183, %180
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #4
  store i8 1, ptr %27, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %190

190:                                              ; preds = %239, %189
  %191 = load i64, ptr %28, align 8, !tbaa !9
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %192, i32 0, i32 3
  %194 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %193)
  %195 = icmp slt i64 %191, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %190
  store i32 12, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  br label %242

197:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %198 = load i64, ptr %28, align 8, !tbaa !9
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %199, i32 0, i32 2
  %201 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %200)
  %202 = icmp slt i64 %198, %201
  br i1 %202, label %203, label %214

203:                                              ; preds = %197
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %204, i32 0, i32 2
  %206 = load ptr, ptr %9, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %206, i32 0, i32 2
  %208 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %207)
  %209 = sub nsw i64 %208, 1
  %210 = load i64, ptr %28, align 8, !tbaa !9
  %211 = sub nsw i64 %209, %210
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %205, i64 noundef %211)
  %213 = load i64, ptr %212, align 8, !tbaa !9
  br label %228

214:                                              ; preds = %197
  %215 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingState", ptr %30, i32 0, i32 7
  %216 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingState10StateGroupEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %215)
  %217 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::StateGroup", ptr %216, i32 0, i32 0
  %218 = load i64, ptr %25, align 8, !tbaa !9
  %219 = sub nsw i64 %218, 1
  %220 = load i64, ptr %28, align 8, !tbaa !9
  %221 = load ptr, ptr %9, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %221, i32 0, i32 2
  %223 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %222)
  %224 = sub nsw i64 %220, %223
  %225 = sub nsw i64 %219, %224
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %217, i64 noundef %225)
  %227 = load i64, ptr %226, align 8, !tbaa !9
  br label %228

228:                                              ; preds = %214, %203
  %229 = phi i64 [ %213, %203 ], [ %227, %214 ]
  store i64 %229, ptr %29, align 8, !tbaa !9
  %230 = load ptr, ptr %10, align 8, !tbaa !5
  %231 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %230, i32 0, i32 3
  %232 = load i64, ptr %28, align 8, !tbaa !9
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %231, i64 noundef %232)
  %234 = load i64, ptr %233, align 8, !tbaa !9
  %235 = load i64, ptr %29, align 8, !tbaa !9
  %236 = icmp ne i64 %234, %235
  br i1 %236, label %237, label %238

237:                                              ; preds = %228
  store i8 0, ptr %27, align 1, !tbaa !11
  br label %238

238:                                              ; preds = %237, %228
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  br label %239

239:                                              ; preds = %238
  %240 = load i64, ptr %28, align 8, !tbaa !9
  %241 = add nsw i64 %240, 1
  store i64 %241, ptr %28, align 8, !tbaa !9
  br label %190, !llvm.loop !29

242:                                              ; preds = %196
  %243 = load i8, ptr %27, align 1, !tbaa !11, !range !13, !noundef !14
  %244 = trunc i8 %243 to i1
  br i1 %244, label %245, label %246

245:                                              ; preds = %242
  store i1 true, ptr %6, align 1
  store i32 1, ptr %16, align 4
  br label %247

246:                                              ; preds = %242
  store i32 0, ptr %16, align 4
  br label %247

247:                                              ; preds = %246, %245
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #4
  %248 = load i32, ptr %16, align 4
  switch i32 %248, label %252 [
    i32 0, label %249
  ]

249:                                              ; preds = %247
  br label %250

250:                                              ; preds = %249, %183
  br label %251

251:                                              ; preds = %250, %154
  store i1 false, ptr %6, align 1
  store i32 1, ptr %16, align 4
  br label %252

252:                                              ; preds = %251, %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  br label %253

253:                                              ; preds = %252, %153
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  %254 = load i1, ptr %6, align 1
  ret i1 %254

255:                                              ; preds = %145
  %256 = load ptr, ptr %18, align 8
  %257 = load i32, ptr %19, align 4
  %258 = insertvalue { ptr, i32 } poison, ptr %256, 0
  %259 = insertvalue { ptr, i32 } %258, i32 %257, 1
  resume { ptr, i32 } %259
}

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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = !{!23, !10, i64 8}
!23 = !{!"_ZTSN2vl7parsing7tabling12ParsingState6FutureE", !10, i64 0, !10, i64 8, !24, i64 16, !6, i64 64, !10, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!24 = !{!"_ZTSN2vl11collections4ListIllEE", !25, i64 0}
!25 = !{!"_ZTSN2vl11collections8ListBaseIllEE", !26, i64 0, !10, i64 24, !12, i64 32}
!26 = !{!"_ZTSN2vl11collections9ArrayBaseIlEE", !27, i64 0, !6, i64 8, !10, i64 16}
!27 = !{!"_ZTSN2vl11collections9ListStoreIlLb1EEE", !28, i64 0}
!28 = !{!"_ZTSN2vl6ObjectE"}
!29 = distinct !{!29, !18}


; 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.159" = type { %"class.vl::collections::ForEachIterator.160", %"class.vl::Ptr.158" }
%"class.vl::collections::ForEachIterator.160" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.158" = type { ptr, ptr, ptr, ptr }
%"class.vl::collections::EnumerableForEachIterator.475" = type { %"class.vl::collections::ForEachIterator.476", %"class.vl::Ptr.471" }
%"class.vl::collections::ForEachIterator.476" = type { %"class.vl::Object" }
%"class.vl::Ptr.471" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.472" = type { ptr, ptr, ptr, ptr }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 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 i64 @_ZNK2vl11collections9ArrayBaseINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2vl7parsing7tabling12ParsingState26TestTransitionItemInFutureElPNS2_6FutureEPNS1_12ParsingTable14TransitionItemEPKNS_11collections11IEnumerableIlEE(ptr noundef nonnull align 8 dereferenceable(256) %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.vl::collections::EnumerableForEachIterator.475", align 8
  %7 = alloca %"class.vl::Ptr.472", align 8
  %8 = alloca %"class.vl::collections::EnumerableForEachIterator.159", align 8
  %9 = alloca i64, align 8
  %10 = getelementptr inbounds i8, ptr %3, i64 16
  %11 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %12 = icmp sgt i64 %11, 0
  %13 = icmp ne ptr %4, null
  %or.cond = and i1 %13, %12
  br i1 %or.cond, label %14, label %.critedge

14:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #4
  %15 = load ptr, ptr %10, align 8, !tbaa !5
  %16 = getelementptr i8, ptr %15, i64 -24
  %17 = load i64, ptr %16, align 8
  %18 = getelementptr inbounds i8, ptr %10, i64 %17
  call void @_ZN2vl11collections21CreateForEachIteratorINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS9_EE(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::EnumerableForEachIterator.475") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %18)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7)
  br label %19

19:                                               ; preds = %48, %14
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  %22 = load ptr, ptr %21, align 8
  %23 = invoke noundef zeroext i1 %22(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %24 unwind label %25

24:                                               ; preds = %19
  br i1 %23, label %27, label %51

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

27:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #4
  invoke void @_ZN2vl11collections21CreateForEachIteratorIlEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS3_EE(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::EnumerableForEachIterator.159") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %.preheader unwind label %28

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

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

30:                                               ; preds = %44, %.preheader
  %.156 = phi i64 [ 0, %.preheader ], [ %45, %44 ]
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %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 %48

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

38:                                               ; preds = %35
  %39 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %39, i64 noundef %.156)
          to label %41 unwind label %36

41:                                               ; preds = %38
  %42 = load i64, ptr %40, align 8, !tbaa !8
  %43 = load i64, ptr %9, align 8, !tbaa !8
  %.not71 = icmp eq i64 %42, %43
  br i1 %.not71, label %44, label %48

44:                                               ; preds = %41
  %45 = add nuw nsw i64 %.156, 1
  %46 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
  %47 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %46)
  %.not72 = icmp slt i64 %45, %47
  br i1 %.not72, label %30, label %48, !llvm.loop !11

48:                                               ; preds = %44, %41, %35
  %.257 = phi i64 [ %.156, %35 ], [ %.156, %41 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorIlED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #4
  %49 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
  %50 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %49)
  %.not68 = icmp eq i64 %.257, %50
  br i1 %.not68, label %.critedge.critedge, label %19, !llvm.loop !13

51:                                               ; preds = %24
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #4
  br label %.critedge82

52:                                               ; preds = %28, %36, %25
  %.pn.pn = phi { ptr, i32 } [ %26, %25 ], [ %37, %36 ], [ %29, %28 ]
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #4
  resume { ptr, i32 } %.pn.pn

.critedge.critedge:                               ; preds = %48
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #4
  br label %.critedge

.critedge:                                        ; preds = %.critedge.critedge, %5
  %53 = getelementptr inbounds i8, ptr %0, i64 224
  %54 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingState10StateGroupEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %53)
  %55 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %54)
  %56 = getelementptr inbounds i8, ptr %2, i64 8
  %57 = load i64, ptr %56, align 8, !tbaa !14
  %58 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingState10StateGroupEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %53)
  %59 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %58)
  %60 = load i64, ptr %56, align 8, !tbaa !14
  %61 = sub nsw i64 %59, %60
  %62 = getelementptr inbounds i8, ptr %2, i64 16
  %63 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
  %64 = add nsw i64 %61, %63
  %65 = getelementptr inbounds i8, ptr %3, i64 64
  %66 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
  %.not = icmp sgt i64 %66, %64
  br i1 %.not, label %96, label %67

67:                                               ; preds = %.critedge
  %.not66 = icmp eq i64 %1, 1
  br i1 %.not66, label %68, label %71

68:                                               ; preds = %67
  %69 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
  %70 = icmp eq i64 %69, %64
  br i1 %70, label %71, label %96

71:                                               ; preds = %68, %67
  %72 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
  %73 = icmp sgt i64 %72, 0
  br i1 %73, label %.lr.ph, label %.critedge82

.lr.ph:                                           ; preds = %71
  %74 = xor i64 %57, -1
  %.neg = add i64 %55, %74
  br label %75

._crit_edge:                                      ; preds = %89
  br i1 %spec.select, label %.critedge82, label %96

75:                                               ; preds = %.lr.ph, %89
  %.04580 = phi i64 [ 0, %.lr.ph ], [ %93, %89 ]
  %.04679 = phi i1 [ true, %.lr.ph ], [ %spec.select, %89 ]
  %76 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
  %77 = icmp slt i64 %.04580, %76
  br i1 %77, label %78, label %83

78:                                               ; preds = %75
  %79 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
  %80 = xor i64 %.04580, -1
  %81 = add i64 %79, %80
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %62, i64 noundef %81)
  br label %89

83:                                               ; preds = %75
  %84 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingState10StateGroupEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %53)
  %85 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
  %86 = sub i64 %.neg, %.04580
  %87 = add i64 %86, %85
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %84, i64 noundef %87)
  br label %89

89:                                               ; preds = %83, %78
  %.in = phi ptr [ %82, %78 ], [ %88, %83 ]
  %90 = load i64, ptr %.in, align 8, !tbaa !8
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %65, i64 noundef %.04580)
  %92 = load i64, ptr %91, align 8, !tbaa !8
  %.not67 = icmp eq i64 %92, %90
  %spec.select = select i1 %.not67, i1 %.04679, i1 false
  %93 = add nuw nsw i64 %.04580, 1
  %94 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
  %95 = icmp slt i64 %93, %94
  br i1 %95, label %75, label %._crit_edge, !llvm.loop !23

96:                                               ; preds = %68, %._crit_edge, %.critedge
  br label %.critedge82

.critedge82:                                      ; preds = %71, %51, %96, %._crit_edge
  %.2 = phi i1 [ false, %51 ], [ false, %96 ], [ true, %._crit_edge ], [ true, %71 ]
  ret i1 %.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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !9, i64 8}
!15 = !{!"_ZTSN2vl7parsing7tabling12ParsingState6FutureE", !9, i64 0, !9, i64 8, !16, i64 16, !21, i64 64, !9, i64 72, !21, i64 80, !21, i64 88, !21, i64 96}
!16 = !{!"_ZTSN2vl11collections4ListIllEE", !17, i64 0}
!17 = !{!"_ZTSN2vl11collections8ListBaseIllEE", !18, i64 0, !9, i64 24, !22, i64 32}
!18 = !{!"_ZTSN2vl11collections9ArrayBaseIlEE", !19, i64 0, !21, i64 8, !9, i64 16}
!19 = !{!"_ZTSN2vl11collections9ListStoreIlLb1EEE", !20, i64 0}
!20 = !{!"_ZTSN2vl6ObjectE"}
!21 = !{!"any pointer", !10, i64 0}
!22 = !{!"bool", !10, i64 0}
!23 = distinct !{!23, !12}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass