; 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 nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN2vl7parsing7tabling22ParsingAmbiguousParser25GetAffectedStackNodeCountERNS_11collections4ListIPNS1_12ParsingState6FutureES7_EERNS3_5ArrayIllEE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(33) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #1 align 2 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, 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
  %15 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store i64 -1, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %16

16:                                               ; preds = %102, %3
  %17 = load i64, ptr %9, align 8, !tbaa !9
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing7tabling12ParsingState6FutureEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  %20 = icmp slt i64 %17, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %16
  store i32 2, ptr %10, align 4
  br label %105

22:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = load i64, ptr %9, align 8, !tbaa !9
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %23, i64 noundef %24)
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %26, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store i64 1, ptr %12, align 8, !tbaa !9
  br label %27

27:                                               ; preds = %83, %22
  %28 = load ptr, ptr %11, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %35

30:                                               ; preds = %27
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %31, i32 0, i32 5
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = icmp ne ptr %33, null
  br label %35

35:                                               ; preds = %30, %27
  %36 = phi i1 [ false, %27 ], [ %34, %30 ]
  br i1 %36, label %37, label %87

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = load i64, ptr %9, align 8, !tbaa !9
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %39, i64 noundef %40)
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = icmp eq ptr %38, %42
  br i1 %43, label %44, label %49

44:                                               ; preds = %37
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = load i64, ptr %9, align 8, !tbaa !9
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections5ArrayIllEixEl(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %46)
  %48 = load i64, ptr %47, align 8, !tbaa !9
  br label %55

49:                                               ; preds = %37
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %50, i32 0, i32 5
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %52, i32 0, i32 4
  %54 = call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingTable11InstructionEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  br label %55

55:                                               ; preds = %49, %44
  %56 = phi i64 [ %48, %44 ], [ %54, %49 ]
  %57 = sub nsw i64 %56, 1
  store i64 %57, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %58 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %58, ptr %14, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %80, %55
  %60 = load i64, ptr %14, align 8, !tbaa !9
  %61 = icmp sge i64 %60, 0
  br i1 %61, label %63, label %62

62:                                               ; preds = %59
  store i32 7, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %83

63:                                               ; preds = %59
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %64, i32 0, i32 5
  %66 = load ptr, ptr %65, align 8, !tbaa !11
  %67 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %66, i32 0, i32 4
  %68 = load i64, ptr %14, align 8, !tbaa !9
  %69 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl11collections4ListINS_7parsing7tabling12ParsingTable11InstructionES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %67, i64 noundef %68)
  %70 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::Instruction", ptr %69, i32 0, i32 0
  %71 = load i32, ptr %70, align 8, !tbaa !19
  switch i32 %71, label %78 [
    i32 6, label %72
    i32 5, label %75
  ]

72:                                               ; preds = %63
  %73 = load i64, ptr %12, align 8, !tbaa !9
  %74 = add nsw i64 %73, 1
  store i64 %74, ptr %12, align 8, !tbaa !9
  br label %79

75:                                               ; preds = %63
  %76 = load i64, ptr %12, align 8, !tbaa !9
  %77 = add nsw i64 %76, -1
  store i64 %77, ptr %12, align 8, !tbaa !9
  br label %79

78:                                               ; preds = %63
  br label %79

79:                                               ; preds = %78, %75, %72
  br label %80

80:                                               ; preds = %79
  %81 = load i64, ptr %14, align 8, !tbaa !9
  %82 = add nsw i64 %81, -1
  store i64 %82, ptr %14, align 8, !tbaa !9
  br label %59, !llvm.loop !23

83:                                               ; preds = %62
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %84, i32 0, i32 6
  %86 = load ptr, ptr %85, align 8, !tbaa !25
  store ptr %86, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %27, !llvm.loop !26

87:                                               ; preds = %35
  %88 = load i64, ptr %8, align 8, !tbaa !9
  %89 = icmp eq i64 %88, -1
  br i1 %89, label %90, label %92

90:                                               ; preds = %87
  %91 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %91, ptr %8, align 8, !tbaa !9
  br label %98

92:                                               ; preds = %87
  %93 = load i64, ptr %8, align 8, !tbaa !9
  %94 = load i64, ptr %12, align 8, !tbaa !9
  %95 = icmp ne i64 %93, %94
  br i1 %95, label %96, label %97

96:                                               ; preds = %92
  store i64 -1, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %99

97:                                               ; preds = %92
  br label %98

98:                                               ; preds = %97, %90
  store i32 0, ptr %10, align 4
  br label %99

99:                                               ; preds = %98, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  %100 = load i32, ptr %10, align 4
  switch i32 %100, label %105 [
    i32 0, label %101
  ]

101:                                              ; preds = %99
  br label %102

102:                                              ; preds = %101
  %103 = load i64, ptr %9, align 8, !tbaa !9
  %104 = add nsw i64 %103, 1
  store i64 %104, ptr %9, align 8, !tbaa !9
  br label %16, !llvm.loop !27

105:                                              ; preds = %99, %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  %106 = load i32, ptr %10, align 4
  switch i32 %106, label %109 [
    i32 2, label %107
  ]

107:                                              ; preds = %105
  %108 = load i64, ptr %8, align 8, !tbaa !9
  store i64 %108, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %109

109:                                              ; preds = %107, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %110 = load i64, ptr %4, align 8
  ret i64 %110
}

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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 80}
!12 = !{!"_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}
!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 = !{!20, !21, i64 0}
!20 = !{!"_ZTSN2vl7parsing7tabling12ParsingTable11InstructionE", !21, i64 0, !10, i64 8, !22, i64 16, !22, i64 64, !22, i64 112}
!21 = !{!"_ZTSN2vl7parsing7tabling12ParsingTable11Instruction15InstructionTypeE", !7, i64 0}
!22 = !{!"_ZTSN2vl12ObjectStringIwEE", !17, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!12, !6, i64 88}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !24}


; 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 nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33), i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN2vl7parsing7tabling22ParsingAmbiguousParser25GetAffectedStackNodeCountERNS_11collections4ListIPNS1_12ParsingState6FutureES7_EERNS3_5ArrayIllEE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(33) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #0 align 2 {
  %4 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing7tabling12ParsingState6FutureEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.not4458 = icmp sgt i64 %4, 0
  br i1 %.not4458, label %.lr.ph62, label %._crit_edge63

.lr.ph62:                                         ; preds = %3, %34
  %.03760 = phi i64 [ %35, %34 ], [ 0, %3 ]
  %.03859 = phi i64 [ %.240, %34 ], [ -1, %3 ]
  %5 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %1, i64 noundef %.03760)
  %.03449 = load ptr, ptr %5, align 8, !tbaa !5
  %.not50 = icmp eq ptr %.03449, null
  br i1 %.not50, label %.critedge, label %.lr.ph54

.lr.ph54:                                         ; preds = %.lr.ph62, %._crit_edge
  %.03452 = phi ptr [ %.034, %._crit_edge ], [ %.03449, %.lr.ph62 ]
  %.03151 = phi i64 [ %.132.lcssa, %._crit_edge ], [ 1, %.lr.ph62 ]
  %6 = getelementptr inbounds i8, ptr %.03452, i64 80
  %7 = load ptr, ptr %6, align 8, !tbaa !9
  %.not42 = icmp eq ptr %7, null
  br i1 %.not42, label %.critedge, label %8

8:                                                ; preds = %.lr.ph54
  %9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %1, i64 noundef %.03760)
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = icmp eq ptr %.03452, %10
  br i1 %11, label %12, label %15

12:                                               ; preds = %8
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections5ArrayIllEixEl(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.03760)
  %14 = load i64, ptr %13, align 8, !tbaa !18
  br label %19

15:                                               ; preds = %8
  %16 = load ptr, ptr %6, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %16, i64 112
  %18 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingTable11InstructionEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  br label %19

19:                                               ; preds = %15, %12
  %20 = phi i64 [ %14, %12 ], [ %18, %15 ]
  %21 = icmp sgt i64 %20, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %31, %19
  %.132.lcssa = phi i64 [ %.03151, %19 ], [ %.233, %31 ]
  %22 = getelementptr inbounds i8, ptr %.03452, i64 88
  %.034 = load ptr, ptr %22, align 8, !tbaa !5
  %.not = icmp eq ptr %.034, null
  br i1 %.not, label %.critedge, label %.lr.ph54, !llvm.loop !19

.lr.ph:                                           ; preds = %19, %31
  %.048.in = phi i64 [ %.048, %31 ], [ %20, %19 ]
  %.13247 = phi i64 [ %.233, %31 ], [ %.03151, %19 ]
  %.048 = add nsw i64 %.048.in, -1
  %23 = load ptr, ptr %6, align 8, !tbaa !9
  %24 = getelementptr inbounds i8, ptr %23, i64 112
  %25 = tail call noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl11collections4ListINS_7parsing7tabling12ParsingTable11InstructionES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %24, i64 noundef %.048)
  %26 = load i32, ptr %25, align 8, !tbaa !21
  switch i32 %26, label %31 [
    i32 6, label %27
    i32 5, label %29
  ]

27:                                               ; preds = %.lr.ph
  %28 = add nsw i64 %.13247, 1
  br label %31

29:                                               ; preds = %.lr.ph
  %30 = add nsw i64 %.13247, -1
  br label %31

31:                                               ; preds = %27, %29, %.lr.ph
  %.233 = phi i64 [ %.13247, %.lr.ph ], [ %30, %29 ], [ %28, %27 ]
  %32 = icmp ugt i64 %.048.in, 1
  br i1 %32, label %.lr.ph, label %._crit_edge, !llvm.loop !25

.critedge:                                        ; preds = %.lr.ph54, %._crit_edge, %.lr.ph62
  %.031.lcssa = phi i64 [ 1, %.lr.ph62 ], [ %.132.lcssa, %._crit_edge ], [ %.03151, %.lr.ph54 ]
  %33 = icmp eq i64 %.03859, -1
  %.not43 = icmp eq i64 %.03859, %.031.lcssa
  %cond1 = select i1 %33, i1 true, i1 %.not43
  br i1 %cond1, label %34, label %._crit_edge63

34:                                               ; preds = %.critedge
  %.240 = select i1 %33, i64 %.031.lcssa, i64 %.03859
  %35 = add nuw nsw i64 %.03760, 1
  %36 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing7tabling12ParsingState6FutureEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.not44 = icmp slt i64 %35, %36
  br i1 %.not44, label %.lr.ph62, label %._crit_edge63, !llvm.loop !26

._crit_edge63:                                    ; preds = %.critedge, %34, %3
  %spec.select = phi i64 [ -1, %3 ], [ %.240, %34 ], [ -1, %.critedge ]
  ret i64 %spec.select
}

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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 80}
!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 = !{!11, !11, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !23, i64 0}
!22 = !{!"_ZTSN2vl7parsing7tabling12ParsingTable11InstructionE", !23, i64 0, !11, i64 8, !24, i64 16, !24, i64 64, !24, i64 112}
!23 = !{!"_ZTSN2vl7parsing7tabling12ParsingTable11Instruction15InstructionTypeE", !7, i64 0}
!24 = !{!"_ZTSN2vl12ObjectStringIwEE", !16, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}


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