; 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::Future" = type { i64, i64, %"class.vl::collections::List.116", ptr, i64, ptr, ptr, 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::Object" = type { ptr }
%"class.vl::collections::IEnumerable.120" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::Ptr.542" = type { ptr, ptr, ptr, ptr }
%"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" }
%"class.vl::parsing::tabling::ParsingTable::TransitionBag" = type { %"class.vl::collections::List.543" }
%"class.vl::collections::List.543" = type { %"class.vl::collections::ListBase.base.549", %"class.vl::collections::IEnumerable.547" }
%"class.vl::collections::ListBase.base.549" = type <{ %"class.vl::collections::ArrayBase.base.548", i64, i8 }>
%"class.vl::collections::ArrayBase.base.548" = type { %"class.vl::collections::ListStore.546", ptr, i64 }
%"class.vl::collections::ListStore.546" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.547" = 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2vl7parsing7tabling12ParsingState7ExploreElPNS2_6FutureERNS_11collections4ListIS4_S4_EE(ptr noundef nonnull align 8 dereferenceable(256) %0, i64 noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(33) %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.vl::parsing::tabling::ParsingState::Future", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.vl::Ptr.542", align 8
  %15 = alloca i8, align 1
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 104, ptr %9) #6
  call void @_ZN2vl7parsing7tabling12ParsingState6FutureC2Ev(ptr noundef nonnull align 8 dereferenceable(104) %9)
  %20 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingState", ptr %19, i32 0, i32 7
  %21 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingState10StateGroupEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %22 unwind label %54

22:                                               ; preds = %4
  %23 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::StateGroup", ptr %21, i32 0, i32 1
  %24 = load i64, ptr %23, align 8, !tbaa !11
  %25 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %9, i32 0, i32 0
  store i64 %24, ptr %25, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %30

28:                                               ; preds = %22
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  br label %31

30:                                               ; preds = %22
  br label %31

31:                                               ; preds = %30, %28
  %32 = phi ptr [ %29, %28 ], [ %9, %30 ]
  store ptr %32, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  %33 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingState", ptr %19, i32 0, i32 2
  %34 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTableEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %35 unwind label %58

35:                                               ; preds = %31
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %36, i32 0, i32 0
  %38 = load i64, ptr %37, align 8, !tbaa !23
  %39 = load i64, ptr %6, align 8, !tbaa !9
  invoke void @_ZN2vl7parsing7tabling12ParsingTable16GetTransitionBagEll(ptr dead_on_unwind writable sret(%"class.vl::Ptr.542") align 8 %14, ptr noundef nonnull align 8 dereferenceable(656) %34, i64 noundef %38, i64 noundef %39)
          to label %40 unwind label %58

40:                                               ; preds = %35
  %41 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable13TransitionBagEE3ObjEv(ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %42 unwind label %62

42:                                               ; preds = %40
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable13TransitionBagEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  store ptr %41, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  store i8 0, ptr %15, align 1, !tbaa !25
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %115

45:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %109, %45
  %47 = load i64, ptr %16, align 8, !tbaa !9
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionBag", ptr %48, i32 0, i32 0
  %50 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseINS_3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %49)
          to label %51 unwind label %67

51:                                               ; preds = %46
  %52 = icmp slt i64 %47, %50
  br i1 %52, label %71, label %53

53:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %114

54:                                               ; preds = %4
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %10, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %11, align 4
  br label %119

58:                                               ; preds = %35, %31
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %10, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %11, align 4
  br label %66

62:                                               ; preds = %40
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %10, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %11, align 4
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable13TransitionBagEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %66

66:                                               ; preds = %62, %58
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %118

67:                                               ; preds = %46
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %10, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %11, align 4
  br label %113

71:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionBag", ptr %72, i32 0, i32 0
  %74 = load i64, ptr %16, align 8, !tbaa !9
  %75 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections4ListINS_3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEEPS6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %73, i64 noundef %74)
          to label %76 unwind label %95

76:                                               ; preds = %71
  %77 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEE3ObjEv(ptr noundef nonnull align 8 dereferenceable(32) %75)
          to label %78 unwind label %95

78:                                               ; preds = %76
  store ptr %77, ptr %17, align 8, !tbaa !5
  %79 = load i64, ptr %6, align 8, !tbaa !9
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = load ptr, ptr %17, align 8, !tbaa !5
  %82 = invoke noundef zeroext i1 @_ZN2vl7parsing7tabling12ParsingState26TestTransitionItemInFutureElPNS2_6FutureEPNS1_12ParsingTable14TransitionItemEPKNS_11collections11IEnumerableIlEE(ptr noundef nonnull align 8 dereferenceable(256) %19, i64 noundef %79, ptr noundef %80, ptr noundef %81, ptr noundef null)
          to label %83 unwind label %95

83:                                               ; preds = %78
  br i1 %82, label %84, label %108

84:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %85 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 104) #7
          to label %86 unwind label %99

86:                                               ; preds = %84
  invoke void @_ZN2vl7parsing7tabling12ParsingState6FutureC2Ev(ptr noundef nonnull align 8 dereferenceable(104) %85)
          to label %87 unwind label %103

87:                                               ; preds = %86
  store ptr %85, ptr %18, align 8, !tbaa !5
  %88 = load ptr, ptr %17, align 8, !tbaa !5
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZN2vl7parsing7tabling12ParsingState21RunTransitionInFutureEPNS1_12ParsingTable14TransitionItemEPNS2_6FutureES7_(ptr noundef nonnull align 8 dereferenceable(256) %19, ptr noundef %88, ptr noundef %89, ptr noundef %90)
          to label %91 unwind label %99

91:                                               ; preds = %87
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = invoke noundef i64 @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_E3AddERKS6_(ptr noundef nonnull align 8 dereferenceable(33) %92, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %94 unwind label %99

94:                                               ; preds = %91
  store i8 1, ptr %15, align 1, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %108

95:                                               ; preds = %78, %76, %71
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %10, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %11, align 4
  br label %112

99:                                               ; preds = %91, %87, %84
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %10, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %11, align 4
  br label %107

103:                                              ; preds = %86
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %10, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %85, i64 noundef 104) #8
  br label %107

107:                                              ; preds = %103, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %112

108:                                              ; preds = %94, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %109

109:                                              ; preds = %108
  %110 = load i64, ptr %16, align 8, !tbaa !9
  %111 = add nsw i64 %110, 1
  store i64 %111, ptr %16, align 8, !tbaa !9
  br label %46, !llvm.loop !26

112:                                              ; preds = %107, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %113

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

114:                                              ; preds = %53
  br label %115

115:                                              ; preds = %114, %42
  %116 = load i8, ptr %15, align 1, !tbaa !25, !range !28, !noundef !29
  %117 = trunc i8 %116 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @_ZN2vl7parsing7tabling12ParsingState6FutureD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %9) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr %9) #6
  ret i1 %117

118:                                              ; preds = %113, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %119

119:                                              ; preds = %118, %54
  call void @_ZN2vl7parsing7tabling12ParsingState6FutureD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %9) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr %9) #6
  br label %120

120:                                              ; preds = %119
  %121 = load ptr, ptr %10, align 8
  %122 = load i32, ptr %11, align 4
  %123 = insertvalue { ptr, i32 } poison, ptr %121, 0
  %124 = insertvalue { ptr, i32 } %123, i32 %122, 1
  resume { ptr, i32 } %124
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing7tabling12ParsingTable16GetTransitionBagEll(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.542") align 8, ptr noundef nonnull align 8 dereferenceable(656), i64 noundef, i64 noundef) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections4ListINS_3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEEPS6_EixEl(ptr noundef nonnull align 8 dereferenceable(33), i64 noundef) #4 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
declare dso_local noundef zeroext i1 @_ZN2vl7parsing7tabling12ParsingState26TestTransitionItemInFutureElPNS2_6FutureEPNS1_12ParsingTable14TransitionItemEPKNS_11collections11IEnumerableIlEE(ptr noundef nonnull align 8 dereferenceable(256), i64 noundef, ptr noundef, ptr noundef, ptr noundef) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing7tabling12ParsingState21RunTransitionInFutureEPNS1_12ParsingTable14TransitionItemEPNS2_6FutureES7_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, ptr noundef, ptr noundef) #4 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 = { nobuiltin allocsize(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 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 48}
!12 = !{!"_ZTSN2vl7parsing7tabling12ParsingState10StateGroupE", !13, i64 0, !10, i64 48, !10, i64 56, !19, i64 64, !6, i64 112, !6, i64 120}
!13 = !{!"_ZTSN2vl11collections4ListIllEE", !14, i64 0}
!14 = !{!"_ZTSN2vl11collections8ListBaseIllEE", !15, i64 0, !10, i64 24, !18, i64 32}
!15 = !{!"_ZTSN2vl11collections9ArrayBaseIlEE", !16, i64 0, !6, i64 8, !10, i64 16}
!16 = !{!"_ZTSN2vl11collections9ListStoreIlLb1EEE", !17, i64 0}
!17 = !{!"_ZTSN2vl6ObjectE"}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN2vl11collections4ListIPNS_5regex10RegexTokenES4_EE", !20, i64 0}
!20 = !{!"_ZTSN2vl11collections8ListBaseIPNS_5regex10RegexTokenES4_EE", !21, i64 0, !10, i64 24, !18, i64 32}
!21 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_5regex10RegexTokenEEE", !22, i64 0, !6, i64 8, !10, i64 16}
!22 = !{!"_ZTSN2vl11collections9ListStoreIPNS_5regex10RegexTokenELb1EEE", !17, i64 0}
!23 = !{!24, !10, i64 0}
!24 = !{!"_ZTSN2vl7parsing7tabling12ParsingState6FutureE", !10, i64 0, !10, i64 8, !13, i64 16, !6, i64 64, !10, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!25 = !{!18, !18, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{i8 0, i8 2}
!29 = !{}


; 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::Future" = type { i64, i64, %"class.vl::collections::List.116", ptr, i64, ptr, ptr, 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::Object" = type { ptr }
%"class.vl::collections::IEnumerable.120" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::Ptr.542" = 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2vl7parsing7tabling12ParsingState7ExploreElPNS2_6FutureERNS_11collections4ListIS4_S4_EE(ptr noundef nonnull align 8 dereferenceable(256) %0, i64 noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(33) %3) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.vl::parsing::tabling::ParsingState::Future", align 8
  %6 = alloca %"class.vl::Ptr.542", align 8
  %7 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %5) #6
  call void @_ZN2vl7parsing7tabling12ParsingState6FutureC2Ev(ptr noundef nonnull align 8 dereferenceable(104) %5)
  %8 = getelementptr inbounds i8, ptr %0, i64 224
  %9 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingState10StateGroupEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %10 = getelementptr inbounds i8, ptr %9, i64 48
  %11 = load i64, ptr %10, align 8, !tbaa !5
  store i64 %11, ptr %5, align 8, !tbaa !21
  %.not = icmp eq ptr %2, null
  %12 = select i1 %.not, ptr %5, ptr %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  %13 = getelementptr inbounds i8, ptr %0, i64 56
  %14 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTableEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
  %15 = load i64, ptr %12, align 8, !tbaa !21
  invoke void @_ZN2vl7parsing7tabling12ParsingTable16GetTransitionBagEll(ptr dead_on_unwind nonnull writable sret(%"class.vl::Ptr.542") align 8 %6, ptr noundef nonnull align 8 dereferenceable(656) %14, i64 noundef %15, i64 noundef %1)
          to label %16 unwind label %20

16:                                               ; preds = %4
  %17 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable13TransitionBagEE3ObjEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  call void @_ZN2vl3PtrINS_7parsing7tabling12ParsingTable13TransitionBagEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  %.not27 = icmp eq ptr %17, null
  br i1 %.not27, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %16
  %18 = call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %19 = icmp sgt i64 %18, 0
  br i1 %19, label %.lr.ph, label %.loopexit

20:                                               ; preds = %4
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %45

.lr.ph:                                           ; preds = %.preheader, %41
  %.01935 = phi i64 [ %42, %41 ], [ 0, %.preheader ]
  %.02034 = phi i1 [ %.121, %41 ], [ false, %.preheader ]
  %22 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections4ListINS_3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEEPS6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %17, i64 noundef %.01935)
          to label %23 unwind label %34

23:                                               ; preds = %.lr.ph
  %24 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEE3ObjEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  %25 = invoke noundef zeroext i1 @_ZN2vl7parsing7tabling12ParsingState26TestTransitionItemInFutureElPNS2_6FutureEPNS1_12ParsingTable14TransitionItemEPKNS_11collections11IEnumerableIlEE(ptr noundef nonnull align 8 dereferenceable(256) %0, i64 noundef %1, ptr noundef nonnull %12, ptr noundef %24, ptr noundef null)
          to label %26 unwind label %34

26:                                               ; preds = %23
  br i1 %25, label %27, label %41

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %28 = invoke noalias noundef nonnull dereferenceable(104) ptr @_Znwm(i64 noundef 104) #7
          to label %29 unwind label %36

29:                                               ; preds = %27
  invoke void @_ZN2vl7parsing7tabling12ParsingState6FutureC2Ev(ptr noundef nonnull align 8 dereferenceable(104) %28)
          to label %30 unwind label %38

30:                                               ; preds = %29
  store ptr %28, ptr %7, align 8, !tbaa !23
  invoke void @_ZN2vl7parsing7tabling12ParsingState21RunTransitionInFutureEPNS1_12ParsingTable14TransitionItemEPNS2_6FutureES7_(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef %24, ptr noundef %2, ptr noundef nonnull %28)
          to label %31 unwind label %36

31:                                               ; preds = %30
  %32 = invoke noundef i64 @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_E3AddERKS6_(ptr noundef nonnull align 8 dereferenceable(33) %3, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %33 unwind label %36

33:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %41

34:                                               ; preds = %23, %.lr.ph
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %45

36:                                               ; preds = %31, %30, %27
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %40

38:                                               ; preds = %29
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %28, i64 noundef 104) #8
  br label %40

40:                                               ; preds = %38, %36
  %.pn = phi { ptr, i32 } [ %37, %36 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %45

41:                                               ; preds = %33, %26
  %.121 = phi i1 [ true, %33 ], [ %.02034, %26 ]
  %42 = add nuw nsw i64 %.01935, 1
  %43 = call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %44 = icmp slt i64 %42, %43
  br i1 %44, label %.lr.ph, label %.loopexit, !llvm.loop !24

.loopexit:                                        ; preds = %41, %.preheader, %16
  %.222 = phi i1 [ false, %16 ], [ false, %.preheader ], [ %.121, %41 ]
  call void @_ZN2vl7parsing7tabling12ParsingState6FutureD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %5) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %5) #6
  ret i1 %.222

45:                                               ; preds = %34, %40, %20
  %.pn.pn.pn = phi { ptr, i32 } [ %21, %20 ], [ %.pn, %40 ], [ %35, %34 ]
  call void @_ZN2vl7parsing7tabling12ParsingState6FutureD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %5) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing7tabling12ParsingTable16GetTransitionBagEll(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr.542") align 8, ptr noundef nonnull align 8 dereferenceable(656), i64 noundef, i64 noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK2vl11collections9ArrayBaseINS_3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEEE5CountEv(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(32) ptr @_ZN2vl11collections4ListINS_3PtrINS_7parsing7tabling12ParsingTable14TransitionItemEEEPS6_EixEl(ptr noundef nonnull align 8 dereferenceable(33), i64 noundef) local_unnamed_addr #4 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
declare dso_local noundef zeroext i1 @_ZN2vl7parsing7tabling12ParsingState26TestTransitionItemInFutureElPNS2_6FutureEPNS1_12ParsingTable14TransitionItemEPKNS_11collections11IEnumerableIlEE(ptr noundef nonnull align 8 dereferenceable(256), i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing7tabling12ParsingState21RunTransitionInFutureEPNS1_12ParsingTable14TransitionItemEPNS2_6FutureES7_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4 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 = { nobuiltin allocsize(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 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { 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, !15, i64 48}
!6 = !{!"_ZTSN2vl7parsing7tabling12ParsingState10StateGroupE", !7, i64 0, !15, i64 48, !15, i64 56, !17, i64 64, !12, i64 112, !12, i64 120}
!7 = !{!"_ZTSN2vl11collections4ListIllEE", !8, i64 0}
!8 = !{!"_ZTSN2vl11collections8ListBaseIllEE", !9, i64 0, !15, i64 24, !16, i64 32}
!9 = !{!"_ZTSN2vl11collections9ArrayBaseIlEE", !10, i64 0, !12, i64 8, !15, i64 16}
!10 = !{!"_ZTSN2vl11collections9ListStoreIlLb1EEE", !11, i64 0}
!11 = !{!"_ZTSN2vl6ObjectE"}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"long", !13, i64 0}
!16 = !{!"bool", !13, i64 0}
!17 = !{!"_ZTSN2vl11collections4ListIPNS_5regex10RegexTokenES4_EE", !18, i64 0}
!18 = !{!"_ZTSN2vl11collections8ListBaseIPNS_5regex10RegexTokenES4_EE", !19, i64 0, !15, i64 24, !16, i64 32}
!19 = !{!"_ZTSN2vl11collections9ArrayBaseIPNS_5regex10RegexTokenEEE", !20, i64 0, !12, i64 8, !15, i64 16}
!20 = !{!"_ZTSN2vl11collections9ListStoreIPNS_5regex10RegexTokenELb1EEE", !11, i64 0}
!21 = !{!22, !15, i64 0}
!22 = !{!"_ZTSN2vl7parsing7tabling12ParsingState6FutureE", !15, i64 0, !15, i64 8, !7, i64 16, !12, i64 64, !15, i64 72, !12, i64 80, !12, i64 88, !12, i64 96}
!23 = !{!12, !12, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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