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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK2vl7parsing7tabling12ParsingState16TransitionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(160)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing7tabling19ParsingStrictParser9ParseStepERNS1_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(40) %1, ptr noundef nonnull align 8 dereferenceable(256) %2, ptr noundef nonnull align 8 dereferenceable(33) %3) unnamed_addr #2 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 i1, align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.vl::parsing::tabling::ParsingState::TransitionResult", align 8
  %13 = alloca %"struct.vl::parsing::tabling::ParsingState::TransitionResult", align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.vl::parsing::tabling::ParsingState::TransitionResult", align 8
  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
  %16 = load ptr, ptr %6, align 8
  store i1 false, ptr %9, align 1
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultC2ENS3_14TransitionTypeE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef 0)
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = getelementptr inbounds ptr, ptr %17, i64 4
  %19 = load ptr, ptr %18, align 8
  %20 = invoke noundef zeroext i1 %19(ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %21 unwind label %31

21:                                               ; preds = %4
  br i1 %20, label %22, label %44

22:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 160, ptr %12) #5
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = load ptr, ptr %16, align 8, !tbaa !9
  %26 = getelementptr inbounds ptr, ptr %25, i64 6
  %27 = load ptr, ptr %26, align 8
  invoke void %27(ptr dead_on_unwind writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %12, ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull align 8 dereferenceable(256) %23, i64 noundef -1, ptr noundef nonnull align 8 dereferenceable(33) %24)
          to label %28 unwind label %35

28:                                               ; preds = %22
  %29 = invoke noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl7parsing7tabling12ParsingState16TransitionResultaSEOS3_(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(160) %12)
          to label %30 unwind label %39

30:                                               ; preds = %28
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %12) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %12) #5
  br label %97

31:                                               ; preds = %51, %48, %4
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %10, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %11, align 4
  br label %101

35:                                               ; preds = %22
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %10, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %11, align 4
  br label %43

39:                                               ; preds = %28
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %10, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %11, align 4
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %12) #5
  br label %43

43:                                               ; preds = %39, %35
  call void @llvm.lifetime.end.p0(i64 160, ptr %12) #5
  br label %101

44:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 160, ptr %13) #5
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN2vl7parsing7tabling12ParsingState9ReadTokenEv(ptr dead_on_unwind writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %13, ptr noundef nonnull align 8 dereferenceable(256) %45)
          to label %46 unwind label %56

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl7parsing7tabling12ParsingState16TransitionResultaSEOS3_(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(160) %13)
          to label %48 unwind label %60

48:                                               ; preds = %46
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %13) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %13) #5
  %49 = invoke noundef zeroext i1 @_ZNK2vl7parsing7tabling12ParsingState16TransitionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
          to label %50 unwind label %31

50:                                               ; preds = %48
  br i1 %49, label %51, label %65

51:                                               ; preds = %50
  %52 = load ptr, ptr %16, align 8, !tbaa !9
  %53 = getelementptr inbounds ptr, ptr %52, i64 5
  %54 = load ptr, ptr %53, align 8
  invoke void %54(ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %55 unwind label %31

55:                                               ; preds = %51
  br label %96

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

60:                                               ; preds = %46
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %10, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %11, align 4
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %13) #5
  br label %64

64:                                               ; preds = %60, %56
  call void @llvm.lifetime.end.p0(i64 160, ptr %13) #5
  br label %101

65:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = invoke noundef i64 @_ZN2vl7parsing7tabling12ParsingState25GetCurrentTableTokenIndexEv(ptr noundef nonnull align 8 dereferenceable(256) %66)
          to label %68 unwind label %81

68:                                               ; preds = %65
  store i64 %67, ptr %14, align 8, !tbaa !11
  %69 = load i64, ptr %14, align 8, !tbaa !11
  %70 = icmp ne i64 %69, -1
  br i1 %70, label %71, label %94

71:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 160, ptr %15) #5
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = load i64, ptr %14, align 8, !tbaa !11
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = load ptr, ptr %16, align 8, !tbaa !9
  %76 = getelementptr inbounds ptr, ptr %75, i64 6
  %77 = load ptr, ptr %76, align 8
  invoke void %77(ptr dead_on_unwind writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %15, ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull align 8 dereferenceable(256) %72, i64 noundef %73, ptr noundef nonnull align 8 dereferenceable(33) %74)
          to label %78 unwind label %85

78:                                               ; preds = %71
  %79 = invoke noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl7parsing7tabling12ParsingState16TransitionResultaSEOS3_(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(160) %15)
          to label %80 unwind label %89

80:                                               ; preds = %78
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %15) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %15) #5
  br label %94

81:                                               ; preds = %65
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %10, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %11, align 4
  br label %95

85:                                               ; preds = %71
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %10, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %11, align 4
  br label %93

89:                                               ; preds = %78
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %10, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %11, align 4
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %15) #5
  br label %93

93:                                               ; preds = %89, %85
  call void @llvm.lifetime.end.p0(i64 160, ptr %15) #5
  br label %95

94:                                               ; preds = %80, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %96

95:                                               ; preds = %93, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %101

96:                                               ; preds = %94, %55
  br label %97

97:                                               ; preds = %96, %30
  store i1 true, ptr %9, align 1
  %98 = load i1, ptr %9, align 1
  br i1 %98, label %100, label %99

99:                                               ; preds = %97
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %0) #5
  br label %100

100:                                              ; preds = %99, %97
  ret void

101:                                              ; preds = %95, %64, %43, %31
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %0) #5
  br label %102

102:                                              ; preds = %101
  %103 = load ptr, ptr %10, align 8
  %104 = load i32, ptr %11, align 4
  %105 = insertvalue { ptr, i32 } poison, ptr %103, 0
  %106 = insertvalue { ptr, i32 } %105, i32 %104, 1
  resume { ptr, i32 } %106
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl7parsing7tabling12ParsingState16TransitionResultaSEOS3_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(160)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing7tabling12ParsingState9ReadTokenEv(ptr dead_on_unwind noalias writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8, ptr noundef nonnull align 8 dereferenceable(256)) #2 align 2

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

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

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


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

; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK2vl7parsing7tabling12ParsingState16TransitionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN2vl7parsing7tabling12ParsingState25GetCurrentTableTokenIndexEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing7tabling19ParsingStrictParser9ParseStepERNS1_12ParsingStateERNS_11collections4ListINS_3PtrINS0_12ParsingErrorEEEPS8_EE(ptr dead_on_unwind noalias nonnull writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(256) %2, ptr noundef nonnull align 8 dereferenceable(33) %3) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.vl::parsing::tabling::ParsingState::TransitionResult", align 8
  %6 = alloca %"struct.vl::parsing::tabling::ParsingState::TransitionResult", align 8
  %7 = alloca %"struct.vl::parsing::tabling::ParsingState::TransitionResult", align 8
  tail call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultC2ENS3_14TransitionTypeE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef 0)
  %8 = load ptr, ptr %1, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %8, i64 32
  %10 = load ptr, ptr %9, align 8
  %11 = invoke noundef zeroext i1 %10(ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %12 unwind label %20

12:                                               ; preds = %4
  br i1 %11, label %13, label %27

13:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %5) #5
  %14 = load ptr, ptr %1, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 48
  %16 = load ptr, ptr %15, align 8
  invoke void %16(ptr dead_on_unwind nonnull writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %5, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(256) %2, i64 noundef -1, ptr noundef nonnull align 8 dereferenceable(33) %3)
          to label %17 unwind label %22

17:                                               ; preds = %13
  %18 = invoke noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl7parsing7tabling12ParsingState16TransitionResultaSEOS3_(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(160) %5)
          to label %19 unwind label %24

19:                                               ; preds = %17
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %5) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %5) #5
  br label %58

20:                                               ; preds = %32, %4
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %59

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

24:                                               ; preds = %17
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %5) #5
  br label %26

26:                                               ; preds = %24, %22
  %.pn21 = phi { ptr, i32 } [ %25, %24 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %5) #5
  br label %59

27:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %6) #5
  invoke void @_ZN2vl7parsing7tabling12ParsingState9ReadTokenEv(ptr dead_on_unwind nonnull writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %6, ptr noundef nonnull align 8 dereferenceable(256) %2)
          to label %28 unwind label %36

28:                                               ; preds = %27
  %29 = invoke noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl7parsing7tabling12ParsingState16TransitionResultaSEOS3_(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(160) %6)
          to label %30 unwind label %38

30:                                               ; preds = %28
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %6) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %6) #5
  %31 = call noundef zeroext i1 @_ZNK2vl7parsing7tabling12ParsingState16TransitionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
  br i1 %31, label %32, label %41

32:                                               ; preds = %30
  %33 = load ptr, ptr %1, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 40
  %35 = load ptr, ptr %34, align 8
  invoke void %35(ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %58 unwind label %20

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

38:                                               ; preds = %28
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %6) #5
  br label %40

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

41:                                               ; preds = %30
  %42 = invoke noundef i64 @_ZN2vl7parsing7tabling12ParsingState25GetCurrentTableTokenIndexEv(ptr noundef nonnull align 8 dereferenceable(256) %2)
          to label %43 unwind label %51

43:                                               ; preds = %41
  %.not = icmp eq i64 %42, -1
  br i1 %.not, label %58, label %44

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %7) #5
  %45 = load ptr, ptr %1, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 48
  %47 = load ptr, ptr %46, align 8
  invoke void %47(ptr dead_on_unwind nonnull writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %7, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(256) %2, i64 noundef %42, ptr noundef nonnull align 8 dereferenceable(33) %3)
          to label %48 unwind label %53

48:                                               ; preds = %44
  %49 = invoke noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl7parsing7tabling12ParsingState16TransitionResultaSEOS3_(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(160) %7)
          to label %50 unwind label %55

50:                                               ; preds = %48
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %7) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %7) #5
  br label %58

51:                                               ; preds = %41
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %59

53:                                               ; preds = %44
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %57

55:                                               ; preds = %48
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %7) #5
  br label %57

57:                                               ; preds = %55, %53
  %.pn18 = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %7) #5
  br label %59

58:                                               ; preds = %19, %32, %50, %43
  ret void

59:                                               ; preds = %51, %57, %40, %26, %20
  %.pn21.pn = phi { ptr, i32 } [ %.pn21, %26 ], [ %21, %20 ], [ %.pn, %40 ], [ %.pn18, %57 ], [ %52, %51 ]
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %0) #5
  resume { ptr, i32 } %.pn21.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl7parsing7tabling12ParsingState16TransitionResultaSEOS3_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing7tabling12ParsingState9ReadTokenEv(ptr dead_on_unwind noalias writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8, ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #2 align 2

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


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