; LLVM IR from vczh/herodb :: Kernel/Source/Vlpp.ll (ZN2vl7parsing7tabling12ParsingState9ReadTokenEv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.vl::parsing::tabling::ParsingState::TransitionResult" = type { i32, i64, %"class.vl::ObjectString", i64, i64, i64, i64, ptr, ptr, i64, i64, %"class.vl::Ptr.140" }
%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.140" = type { ptr, ptr, ptr, ptr }
%"class.vl::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::Interface" = type { ptr }
%"class.vl::Ptr.62" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.63" = 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress 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
define dso_local void @_ZN2vl7parsing7tabling12ParsingState9ReadTokenEv(ptr dead_on_unwind noalias writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %0, ptr noundef nonnull align 8 dereferenceable(256) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i1, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.vl::parsing::tabling::ParsingState::TransitionResult", align 8
  %12 = alloca %"struct.vl::parsing::tabling::ParsingState::TransitionResult", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8
  %14 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingState", ptr %13, i32 0, i32 4
  %15 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling18ParsingTokenWalkerEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %14)
  %16 = call noundef i64 @_ZNK2vl7parsing7tabling18ParsingTokenWalker18GetTableTokenIndexEv(ptr noundef nonnull align 8 dereferenceable(104) %15)
  %17 = icmp eq i64 %16, -1
  br i1 %17, label %18, label %19

18:                                               ; preds = %2
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultC2ENS3_14TransitionTypeE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef 0)
  br label %91

19:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %20 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingState", ptr %13, i32 0, i32 4
  %21 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling18ParsingTokenWalkerEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %20)
  %22 = call noundef i64 @_ZNK2vl7parsing7tabling18ParsingTokenWalker18GetTableTokenIndexEv(ptr noundef nonnull align 8 dereferenceable(104) %21)
  store i64 %22, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %23 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingState", ptr %13, i32 0, i32 4
  %24 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling18ParsingTokenWalkerEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %23)
  %25 = call noundef ptr @_ZNK2vl7parsing7tabling18ParsingTokenWalker13GetRegexTokenEv(ptr noundef nonnull align 8 dereferenceable(104) %24)
  store ptr %25, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  store i8 0, ptr %7, align 1, !tbaa !11
  store i1 false, ptr %8, align 1
  %26 = load i64, ptr %5, align 8, !tbaa !9
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingState", ptr %13, i32 0, i32 4
  %29 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling18ParsingTokenWalkerEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %28)
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2vl7parsing7tabling18ParsingTokenWalker17GetTokenLookaheadEv(ptr noundef nonnull align 8 dereferenceable(104) %29)
  call void @_ZN2vl7parsing7tabling12ParsingState9ReadTokenElPNS_5regex10RegexTokenEPKNS_11collections11IEnumerableIlEE(ptr dead_on_unwind writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %0, ptr noundef nonnull align 8 dereferenceable(256) %13, i64 noundef %26, ptr noundef %27, ptr noundef %30)
  %31 = invoke noundef zeroext i1 @_ZNK2vl7parsing7tabling12ParsingState16TransitionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
          to label %32 unwind label %41

32:                                               ; preds = %19
  br i1 %31, label %54, label %33

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 160, ptr %11) #5
  %34 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingState", ptr %13, i32 0, i32 4
  %35 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling18ParsingTokenWalkerEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %36 unwind label %45

36:                                               ; preds = %33
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2vl7parsing7tabling18ParsingTokenWalker18GetReduceLookaheadEv(ptr noundef nonnull align 8 dereferenceable(104) %35)
  invoke void @_ZN2vl7parsing7tabling12ParsingState9ReadTokenElPNS_5regex10RegexTokenEPKNS_11collections11IEnumerableIlEE(ptr dead_on_unwind writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %11, ptr noundef nonnull align 8 dereferenceable(256) %13, i64 noundef 3, ptr noundef null, ptr noundef %37)
          to label %38 unwind label %45

38:                                               ; preds = %36
  %39 = invoke noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl7parsing7tabling12ParsingState16TransitionResultaSEOS3_(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(160) %11)
          to label %40 unwind label %49

40:                                               ; preds = %38
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %11) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %11) #5
  store i8 1, ptr %7, align 1, !tbaa !11
  br label %54

41:                                               ; preds = %83, %80, %74, %54, %19
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %9, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %10, align 4
  br label %90

45:                                               ; preds = %36, %33
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %9, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %10, align 4
  br label %53

49:                                               ; preds = %38
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %9, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %10, align 4
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %11) #5
  br label %53

53:                                               ; preds = %49, %45
  call void @llvm.lifetime.end.p0(i64 160, ptr %11) #5
  br label %90

54:                                               ; preds = %40, %32
  %55 = invoke noundef zeroext i1 @_ZNK2vl7parsing7tabling12ParsingState16TransitionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
          to label %56 unwind label %41

56:                                               ; preds = %54
  br i1 %55, label %74, label %57

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 160, ptr %12) #5
  %58 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingState", ptr %13, i32 0, i32 4
  %59 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling18ParsingTokenWalkerEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %58)
          to label %60 unwind label %65

60:                                               ; preds = %57
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2vl7parsing7tabling18ParsingTokenWalker18GetReduceLookaheadEv(ptr noundef nonnull align 8 dereferenceable(104) %59)
  invoke void @_ZN2vl7parsing7tabling12ParsingState9ReadTokenElPNS_5regex10RegexTokenEPKNS_11collections11IEnumerableIlEE(ptr dead_on_unwind writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %12, ptr noundef nonnull align 8 dereferenceable(256) %13, i64 noundef 2, ptr noundef null, ptr noundef %61)
          to label %62 unwind label %65

62:                                               ; preds = %60
  %63 = 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 %64 unwind label %69

64:                                               ; preds = %62
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %12) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %12) #5
  store i8 1, ptr %7, align 1, !tbaa !11
  br label %74

65:                                               ; preds = %60, %57
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %9, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %10, align 4
  br label %73

69:                                               ; preds = %62
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %12) #5
  br label %73

73:                                               ; preds = %69, %65
  call void @llvm.lifetime.end.p0(i64 160, ptr %12) #5
  br label %90

74:                                               ; preds = %64, %56
  %75 = invoke noundef zeroext i1 @_ZNK2vl7parsing7tabling12ParsingState16TransitionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
          to label %76 unwind label %41

76:                                               ; preds = %74
  br i1 %75, label %77, label %86

77:                                               ; preds = %76
  %78 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %79 = trunc i8 %78 to i1
  br i1 %79, label %86, label %80

80:                                               ; preds = %77
  %81 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingState", ptr %13, i32 0, i32 4
  %82 = invoke noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling18ParsingTokenWalkerEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %81)
          to label %83 unwind label %41

83:                                               ; preds = %80
  %84 = invoke noundef zeroext i1 @_ZN2vl7parsing7tabling18ParsingTokenWalker4MoveEv(ptr noundef nonnull align 8 dereferenceable(104) %82)
          to label %85 unwind label %41

85:                                               ; preds = %83
  br label %86

86:                                               ; preds = %85, %77, %76
  store i1 true, ptr %8, align 1
  %87 = load i1, ptr %8, align 1
  br i1 %87, label %89, label %88

88:                                               ; preds = %86
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %0) #5
  br label %89

89:                                               ; preds = %88, %86
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %91

90:                                               ; preds = %73, %53, %41
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %0) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %92

91:                                               ; preds = %89, %18
  ret void

92:                                               ; preds = %90
  %93 = load ptr, ptr %9, align 8
  %94 = load i32, ptr %10, align 4
  %95 = insertvalue { ptr, i32 } poison, ptr %93, 0
  %96 = insertvalue { ptr, i32 } %95, i32 %94, 1
  resume { ptr, i32 } %96
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing7tabling12ParsingState9ReadTokenElPNS_5regex10RegexTokenEPKNS_11collections11IEnumerableIlEE(ptr dead_on_unwind noalias writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8, ptr noundef nonnull align 8 dereferenceable(256), i64 noundef, ptr noundef, ptr noundef) #3 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}


; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress 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
define dso_local void @_ZN2vl7parsing7tabling12ParsingState9ReadTokenEv(ptr dead_on_unwind noalias writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %0, ptr noundef nonnull align 8 dereferenceable(256) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.vl::parsing::tabling::ParsingState::TransitionResult", align 8
  %4 = alloca %"struct.vl::parsing::tabling::ParsingState::TransitionResult", align 8
  %5 = getelementptr inbounds i8, ptr %1, i64 136
  %6 = tail call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling18ParsingTokenWalkerEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %7 = tail call noundef i64 @_ZNK2vl7parsing7tabling18ParsingTokenWalker18GetTableTokenIndexEv(ptr noundef nonnull align 8 dereferenceable(104) %6)
  %8 = icmp eq i64 %7, -1
  br i1 %8, label %9, label %10

9:                                                ; preds = %2
  tail call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultC2ENS3_14TransitionTypeE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef 0)
  br label %50

10:                                               ; preds = %2
  %11 = tail call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling18ParsingTokenWalkerEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %12 = tail call noundef i64 @_ZNK2vl7parsing7tabling18ParsingTokenWalker18GetTableTokenIndexEv(ptr noundef nonnull align 8 dereferenceable(104) %11)
  %13 = tail call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling18ParsingTokenWalkerEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %14 = tail call noundef ptr @_ZNK2vl7parsing7tabling18ParsingTokenWalker13GetRegexTokenEv(ptr noundef nonnull align 8 dereferenceable(104) %13)
  %15 = tail call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling18ParsingTokenWalkerEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2vl7parsing7tabling18ParsingTokenWalker17GetTokenLookaheadEv(ptr noundef nonnull align 8 dereferenceable(104) %15)
  tail call void @_ZN2vl7parsing7tabling12ParsingState9ReadTokenElPNS_5regex10RegexTokenEPKNS_11collections11IEnumerableIlEE(ptr dead_on_unwind writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %0, ptr noundef nonnull align 8 dereferenceable(256) %1, i64 noundef %12, ptr noundef %14, ptr noundef nonnull %16)
  %17 = tail call noundef zeroext i1 @_ZNK2vl7parsing7tabling12ParsingState16TransitionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
  br i1 %17, label %31, label %18

18:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %3) #5
  %19 = tail call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling18ParsingTokenWalkerEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2vl7parsing7tabling18ParsingTokenWalker18GetReduceLookaheadEv(ptr noundef nonnull align 8 dereferenceable(104) %19)
  invoke void @_ZN2vl7parsing7tabling12ParsingState9ReadTokenElPNS_5regex10RegexTokenEPKNS_11collections11IEnumerableIlEE(ptr dead_on_unwind nonnull writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %3, ptr noundef nonnull align 8 dereferenceable(256) %1, i64 noundef 3, ptr noundef null, ptr noundef nonnull %20)
          to label %21 unwind label %26

21:                                               ; preds = %18
  %22 = invoke noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl7parsing7tabling12ParsingState16TransitionResultaSEOS3_(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(160) %3)
          to label %23 unwind label %28

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

24:                                               ; preds = %46
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %49

26:                                               ; preds = %18
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %30

28:                                               ; preds = %21
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %3) #5
  br label %30

30:                                               ; preds = %28, %26
  %.pn = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %3) #5
  br label %49

31:                                               ; preds = %23, %10
  %32 = call noundef zeroext i1 @_ZNK2vl7parsing7tabling12ParsingState16TransitionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
  br i1 %32, label %44, label %33

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %4) #5
  %34 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling18ParsingTokenWalkerEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2vl7parsing7tabling18ParsingTokenWalker18GetReduceLookaheadEv(ptr noundef nonnull align 8 dereferenceable(104) %34)
  invoke void @_ZN2vl7parsing7tabling12ParsingState9ReadTokenElPNS_5regex10RegexTokenEPKNS_11collections11IEnumerableIlEE(ptr dead_on_unwind nonnull writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8 %4, ptr noundef nonnull align 8 dereferenceable(256) %1, i64 noundef 2, ptr noundef null, ptr noundef nonnull %35)
          to label %36 unwind label %39

36:                                               ; preds = %33
  %37 = invoke noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl7parsing7tabling12ParsingState16TransitionResultaSEOS3_(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(160) %4)
          to label %.thread unwind label %41

.thread:                                          ; preds = %36
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %4) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %4) #5
  %38 = call noundef zeroext i1 @_ZNK2vl7parsing7tabling12ParsingState16TransitionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
  br label %50

39:                                               ; preds = %33
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %43

41:                                               ; preds = %36
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %4) #5
  br label %43

43:                                               ; preds = %41, %39
  %.pn12 = phi { ptr, i32 } [ %42, %41 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %4) #5
  br label %49

44:                                               ; preds = %31
  %45 = call noundef zeroext i1 @_ZNK2vl7parsing7tabling12ParsingState16TransitionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
  %brmerge.demorgan = and i1 %17, %45
  br i1 %brmerge.demorgan, label %46, label %50

46:                                               ; preds = %44
  %47 = call noundef ptr @_ZNK2vl3PtrINS_7parsing7tabling18ParsingTokenWalkerEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %48 = invoke noundef zeroext i1 @_ZN2vl7parsing7tabling18ParsingTokenWalker4MoveEv(ptr noundef nonnull align 8 dereferenceable(104) %47)
          to label %50 unwind label %24

49:                                               ; preds = %43, %30, %24
  %.pn14 = phi { ptr, i32 } [ %25, %24 ], [ %.pn12, %43 ], [ %.pn, %30 ]
  call void @_ZN2vl7parsing7tabling12ParsingState16TransitionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %0) #5
  resume { ptr, i32 } %.pn14

50:                                               ; preds = %.thread, %44, %46, %9
  ret void
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing7tabling12ParsingState9ReadTokenElPNS_5regex10RegexTokenEPKNS_11collections11IEnumerableIlEE(ptr dead_on_unwind noalias writable sret(%"struct.vl::parsing::tabling::ParsingState::TransitionResult") align 8, ptr noundef nonnull align 8 dereferenceable(256), i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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)"}


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