; 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::parsing::tabling::ParsingTable::TransitionItem" = type { i64, i64, %"class.vl::collections::List.182", %"class.vl::collections::List.116", %"class.vl::collections::List.190" }
%"class.vl::collections::List.182" = type { %"class.vl::collections::ListBase.base.188", %"class.vl::collections::IEnumerable.186" }
%"class.vl::collections::ListBase.base.188" = type <{ %"class.vl::collections::ArrayBase.base.187", i64, i8 }>
%"class.vl::collections::ArrayBase.base.187" = type { %"class.vl::collections::ListStore.185", ptr, i64 }
%"class.vl::collections::ListStore.185" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.186" = type { %"class.vl::Interface" }
%"class.vl::collections::List.190" = type { %"class.vl::collections::ListBase.base.196", %"class.vl::collections::IEnumerable.194" }
%"class.vl::collections::ListBase.base.196" = type <{ %"class.vl::collections::ArrayBase.base.195", i64, i8 }>
%"class.vl::collections::ArrayBase.base.195" = type { %"class.vl::collections::ListStore.193", ptr, i64 }
%"class.vl::collections::ListStore.193" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.194" = type { %"class.vl::Interface" }
%"class.vl::parsing::tabling::ParsingTable::Instruction" = type { i32, i64, %"class.vl::ObjectString", %"class.vl::ObjectString", %"class.vl::ObjectString" }
%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }

; 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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections8CopyFromINS0_4ListIllEES3_EEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(33), i1 noundef zeroext) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing7tabling12ParsingState21RunTransitionInFutureEPNS1_12ParsingTable14TransitionItemEPNS2_6FutureES7_(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  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
  %11 = load ptr, ptr %5, align 8
  %12 = load ptr, ptr %7, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %24

14:                                               ; preds = %4
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %15, i32 0, i32 1
  %17 = load i64, ptr %16, align 8, !tbaa !9
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %18, i32 0, i32 1
  store i64 %17, ptr %19, align 8, !tbaa !9
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %20, i32 0, i32 2
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %22, i32 0, i32 2
  call void @_ZN2vl11collections8CopyFromINS0_4ListIllEES3_EEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33) %21, ptr noundef nonnull align 8 dereferenceable(33) %23, i1 noundef zeroext false)
  br label %30

24:                                               ; preds = %4
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %25, i32 0, i32 1
  store i64 0, ptr %26, align 8, !tbaa !9
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %27, i32 0, i32 2
  %29 = call noundef zeroext i1 @_ZN2vl11collections8ListBaseIllE5ClearEv(ptr noundef nonnull align 8 dereferenceable(33) %28)
  br label %30

30:                                               ; preds = %24, %14
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %31, i32 0, i32 1
  %33 = load i64, ptr %32, align 8, !tbaa !18
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %34, i32 0, i32 0
  store i64 %33, ptr %35, align 8, !tbaa !28
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %36, i32 0, i32 0
  %38 = load i64, ptr %37, align 8, !tbaa !29
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %39, i32 0, i32 4
  store i64 %38, ptr %40, align 8, !tbaa !30
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %42, i32 0, i32 5
  store ptr %41, ptr %43, align 8, !tbaa !31
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %45, i32 0, i32 6
  store ptr %44, ptr %46, align 8, !tbaa !32
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %47, i32 0, i32 7
  store ptr null, ptr %48, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store i64 0, ptr %9, align 8, !tbaa !34
  br label %49

49:                                               ; preds = %91, %30
  %50 = load i64, ptr %9, align 8, !tbaa !34
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %51, i32 0, i32 4
  %53 = call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingTable11InstructionEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %52)
  %54 = icmp slt i64 %50, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %94

56:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %57, i32 0, i32 4
  %59 = load i64, ptr %9, align 8, !tbaa !34
  %60 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl11collections4ListINS_7parsing7tabling12ParsingTable11InstructionES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %58, i64 noundef %59)
  store ptr %60, ptr %10, align 8, !tbaa !5
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::Instruction", ptr %61, i32 0, i32 0
  %63 = load i32, ptr %62, align 8, !tbaa !35
  switch i32 %63, label %89 [
    i32 5, label %64
    i32 6, label %70
  ]

64:                                               ; preds = %56
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %65, i32 0, i32 2
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::Instruction", ptr %67, i32 0, i32 1
  %69 = call noundef i64 @_ZN2vl11collections4ListIllE3AddERKl(ptr noundef nonnull align 8 dereferenceable(33) %66, ptr noundef nonnull align 8 dereferenceable(8) %68)
  br label %90

70:                                               ; preds = %56
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %71, i32 0, i32 2
  %73 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %72)
  %74 = icmp eq i64 %73, 0
  br i1 %74, label %75, label %80

75:                                               ; preds = %70
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %76, i32 0, i32 1
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = add nsw i64 %78, 1
  store i64 %79, ptr %77, align 8, !tbaa !9
  br label %88

80:                                               ; preds = %70
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %81, i32 0, i32 2
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %83, i32 0, i32 2
  %85 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %84)
  %86 = sub nsw i64 %85, 1
  %87 = call noundef zeroext i1 @_ZN2vl11collections8ListBaseIllE8RemoveAtEl(ptr noundef nonnull align 8 dereferenceable(33) %82, i64 noundef %86)
  br label %88

88:                                               ; preds = %80, %75
  br label %90

89:                                               ; preds = %56
  br label %90

90:                                               ; preds = %89, %88, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %91

91:                                               ; preds = %90
  %92 = load i64, ptr %9, align 8, !tbaa !34
  %93 = add nsw i64 %92, 1
  store i64 %93, ptr %9, align 8, !tbaa !34
  br label %49, !llvm.loop !39

94:                                               ; preds = %55
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl11collections8ListBaseIllE8RemoveAtEl(ptr noundef nonnull align 8 dereferenceable(33), i64 noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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, !11, i64 8}
!10 = !{!"_ZTSN2vl7parsing7tabling12ParsingState6FutureE", !11, i64 0, !11, i64 8, !12, i64 16, !6, i64 64, !11, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSN2vl11collections4ListIllEE", !13, i64 0}
!13 = !{!"_ZTSN2vl11collections8ListBaseIllEE", !14, i64 0, !11, i64 24, !17, i64 32}
!14 = !{!"_ZTSN2vl11collections9ArrayBaseIlEE", !15, i64 0, !6, i64 8, !11, i64 16}
!15 = !{!"_ZTSN2vl11collections9ListStoreIlLb1EEE", !16, i64 0}
!16 = !{!"_ZTSN2vl6ObjectE"}
!17 = !{!"bool", !7, i64 0}
!18 = !{!19, !11, i64 8}
!19 = !{!"_ZTSN2vl7parsing7tabling12ParsingTable14TransitionItemE", !11, i64 0, !11, i64 8, !20, i64 16, !12, i64 64, !24, i64 112}
!20 = !{!"_ZTSN2vl11collections4ListINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEPS6_EE", !21, i64 0}
!21 = !{!"_ZTSN2vl11collections8ListBaseINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEPS6_EE", !22, i64 0, !11, i64 24, !17, i64 32}
!22 = !{!"_ZTSN2vl11collections9ArrayBaseINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEEE", !23, i64 0, !6, i64 8, !11, i64 16}
!23 = !{!"_ZTSN2vl11collections9ListStoreINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEELb0EEE", !16, i64 0}
!24 = !{!"_ZTSN2vl11collections4ListINS_7parsing7tabling12ParsingTable11InstructionES5_EE", !25, i64 0}
!25 = !{!"_ZTSN2vl11collections8ListBaseINS_7parsing7tabling12ParsingTable11InstructionES5_EE", !26, i64 0, !11, i64 24, !17, i64 32}
!26 = !{!"_ZTSN2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingTable11InstructionEEE", !27, i64 0, !6, i64 8, !11, i64 16}
!27 = !{!"_ZTSN2vl11collections9ListStoreINS_7parsing7tabling12ParsingTable11InstructionELb0EEE", !16, i64 0}
!28 = !{!10, !11, i64 0}
!29 = !{!19, !11, i64 0}
!30 = !{!10, !11, i64 72}
!31 = !{!10, !6, i64 80}
!32 = !{!10, !6, i64 88}
!33 = !{!10, !6, i64 96}
!34 = !{!11, !11, i64 0}
!35 = !{!36, !37, i64 0}
!36 = !{!"_ZTSN2vl7parsing7tabling12ParsingTable11InstructionE", !37, i64 0, !11, i64 8, !38, i64 16, !38, i64 64, !38, i64 112}
!37 = !{!"_ZTSN2vl7parsing7tabling12ParsingTable11Instruction15InstructionTypeE", !7, i64 0}
!38 = !{!"_ZTSN2vl12ObjectStringIwEE", !16, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}


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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections8CopyFromINS0_4ListIllEES3_EEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(33), i1 noundef zeroext) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing7tabling12ParsingState21RunTransitionInFutureEPNS1_12ParsingTable14TransitionItemEPNS2_6FutureES7_(ptr nocapture noundef nonnull readnone align 8 dereferenceable(256) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 align 2 {
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %11, label %5

5:                                                ; preds = %4
  %6 = getelementptr inbounds i8, ptr %2, i64 8
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %3, i64 8
  store i64 %7, ptr %8, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %3, i64 16
  %10 = getelementptr inbounds i8, ptr %2, i64 16
  tail call void @_ZN2vl11collections8CopyFromINS0_4ListIllEES3_EEvRT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(33) %9, ptr noundef nonnull align 8 dereferenceable(33) %10, i1 noundef zeroext false)
  br label %15

11:                                               ; preds = %4
  %12 = getelementptr inbounds i8, ptr %3, i64 8
  store i64 0, ptr %12, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %3, i64 16
  %14 = tail call noundef zeroext i1 @_ZN2vl11collections8ListBaseIllE5ClearEv(ptr noundef nonnull align 8 dereferenceable(33) %13)
  br label %15

15:                                               ; preds = %11, %5
  %16 = getelementptr inbounds i8, ptr %1, i64 8
  %17 = load i64, ptr %16, align 8, !tbaa !17
  store i64 %17, ptr %3, align 8, !tbaa !27
  %18 = load i64, ptr %1, align 8, !tbaa !28
  %19 = getelementptr inbounds i8, ptr %3, i64 72
  store i64 %18, ptr %19, align 8, !tbaa !29
  %20 = getelementptr inbounds i8, ptr %3, i64 80
  store ptr %1, ptr %20, align 8, !tbaa !30
  %21 = getelementptr inbounds i8, ptr %3, i64 88
  store ptr %2, ptr %21, align 8, !tbaa !31
  %22 = getelementptr inbounds i8, ptr %3, i64 96
  store ptr null, ptr %22, align 8, !tbaa !32
  %23 = getelementptr inbounds i8, ptr %1, i64 112
  %24 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingTable11InstructionEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %23)
  %25 = icmp sgt i64 %24, 0
  br i1 %25, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %15
  %26 = getelementptr inbounds i8, ptr %3, i64 16
  %27 = getelementptr inbounds i8, ptr %3, i64 8
  br label %28

._crit_edge:                                      ; preds = %44, %15
  ret void

28:                                               ; preds = %.lr.ph, %44
  %.029 = phi i64 [ 0, %.lr.ph ], [ %45, %44 ]
  %29 = tail call noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl11collections4ListINS_7parsing7tabling12ParsingTable11InstructionES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %23, i64 noundef %.029)
  %30 = load i32, ptr %29, align 8, !tbaa !33
  switch i32 %30, label %44 [
    i32 5, label %31
    i32 6, label %34
  ]

31:                                               ; preds = %28
  %32 = getelementptr inbounds i8, ptr %29, i64 8
  %33 = tail call noundef i64 @_ZN2vl11collections4ListIllE3AddERKl(ptr noundef nonnull align 8 dereferenceable(33) %26, ptr noundef nonnull align 8 dereferenceable(8) %32)
  br label %44

34:                                               ; preds = %28
  %35 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %26)
  %36 = icmp eq i64 %35, 0
  br i1 %36, label %37, label %40

37:                                               ; preds = %34
  %38 = load i64, ptr %27, align 8, !tbaa !5
  %39 = add nsw i64 %38, 1
  store i64 %39, ptr %27, align 8, !tbaa !5
  br label %44

40:                                               ; preds = %34
  %41 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %26)
  %42 = add nsw i64 %41, -1
  %43 = tail call noundef zeroext i1 @_ZN2vl11collections8ListBaseIllE8RemoveAtEl(ptr noundef nonnull align 8 dereferenceable(33) %26, i64 noundef %42)
  br label %44

44:                                               ; preds = %28, %37, %40, %31
  %45 = add nuw nsw i64 %.029, 1
  %46 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingTable11InstructionEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %23)
  %47 = icmp slt i64 %45, %46
  br i1 %47, label %28, label %._crit_edge, !llvm.loop !37
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl11collections8ListBaseIllE8RemoveAtEl(ptr noundef nonnull align 8 dereferenceable(33), i64 noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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 #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" }

!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, !7, i64 8}
!6 = !{!"_ZTSN2vl7parsing7tabling12ParsingState6FutureE", !7, i64 0, !7, i64 8, !10, i64 16, !15, i64 64, !7, i64 72, !15, i64 80, !15, i64 88, !15, i64 96}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN2vl11collections4ListIllEE", !11, i64 0}
!11 = !{!"_ZTSN2vl11collections8ListBaseIllEE", !12, i64 0, !7, i64 24, !16, i64 32}
!12 = !{!"_ZTSN2vl11collections9ArrayBaseIlEE", !13, i64 0, !15, i64 8, !7, i64 16}
!13 = !{!"_ZTSN2vl11collections9ListStoreIlLb1EEE", !14, i64 0}
!14 = !{!"_ZTSN2vl6ObjectE"}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"bool", !8, i64 0}
!17 = !{!18, !7, i64 8}
!18 = !{!"_ZTSN2vl7parsing7tabling12ParsingTable14TransitionItemE", !7, i64 0, !7, i64 8, !19, i64 16, !10, i64 64, !23, i64 112}
!19 = !{!"_ZTSN2vl11collections4ListINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEPS6_EE", !20, i64 0}
!20 = !{!"_ZTSN2vl11collections8ListBaseINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEPS6_EE", !21, i64 0, !7, i64 24, !16, i64 32}
!21 = !{!"_ZTSN2vl11collections9ArrayBaseINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEEEE", !22, i64 0, !15, i64 8, !7, i64 16}
!22 = !{!"_ZTSN2vl11collections9ListStoreINS_3PtrINS_7parsing7tabling12ParsingTable13LookAheadInfoEEELb0EEE", !14, i64 0}
!23 = !{!"_ZTSN2vl11collections4ListINS_7parsing7tabling12ParsingTable11InstructionES5_EE", !24, i64 0}
!24 = !{!"_ZTSN2vl11collections8ListBaseINS_7parsing7tabling12ParsingTable11InstructionES5_EE", !25, i64 0, !7, i64 24, !16, i64 32}
!25 = !{!"_ZTSN2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingTable11InstructionEEE", !26, i64 0, !15, i64 8, !7, i64 16}
!26 = !{!"_ZTSN2vl11collections9ListStoreINS_7parsing7tabling12ParsingTable11InstructionELb0EEE", !14, i64 0}
!27 = !{!6, !7, i64 0}
!28 = !{!18, !7, i64 0}
!29 = !{!6, !7, i64 72}
!30 = !{!6, !15, i64 80}
!31 = !{!6, !15, i64 88}
!32 = !{!6, !15, i64 96}
!33 = !{!34, !35, i64 0}
!34 = !{!"_ZTSN2vl7parsing7tabling12ParsingTable11InstructionE", !35, i64 0, !7, i64 8, !36, i64 16, !36, i64 64, !36, i64 112}
!35 = !{!"_ZTSN2vl7parsing7tabling12ParsingTable11Instruction15InstructionTypeE", !8, i64 0}
!36 = !{!"_ZTSN2vl12ObjectStringIwEE", !14, i64 0, !15, i64 8, !15, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass