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

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

22:                                               ; preds = %16
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %130

23:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store i64 0, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = load i64, ptr %6, align 8, !tbaa !9
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %24, i64 noundef %25)
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  store ptr %27, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = load i64, ptr %6, align 8, !tbaa !9
  %30 = add nsw i64 %29, 1
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %28, i64 noundef %30)
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  store ptr %32, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %33, i32 0, i32 5
  %35 = load ptr, ptr %34, align 8, !tbaa !11
  %36 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %35, i32 0, i32 4
  %37 = call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingTable11InstructionEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  store i64 %37, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %38, i32 0, i32 5
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %40, i32 0, i32 4
  %42 = call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingTable11InstructionEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %41)
  store i64 %42, ptr %12, align 8, !tbaa !9
  br label %43

43:                                               ; preds = %115, %23
  %44 = load i64, ptr %11, align 8, !tbaa !9
  %45 = add nsw i64 %44, -1
  store i64 %45, ptr %11, align 8, !tbaa !9
  %46 = icmp sge i64 %45, 0
  br i1 %46, label %47, label %51

47:                                               ; preds = %43
  %48 = load i64, ptr %12, align 8, !tbaa !9
  %49 = add nsw i64 %48, -1
  store i64 %49, ptr %12, align 8, !tbaa !9
  %50 = icmp sge i64 %49, 0
  br label %51

51:                                               ; preds = %47, %43
  %52 = phi i1 [ false, %43 ], [ %50, %47 ]
  br i1 %52, label %53, label %117

53:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %54, i32 0, i32 5
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %56, i32 0, i32 4
  %58 = load i64, ptr %11, align 8, !tbaa !9
  %59 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl11collections4ListINS_7parsing7tabling12ParsingTable11InstructionES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %57, i64 noundef %58)
  store ptr %59, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %60, i32 0, i32 5
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::TransitionItem", ptr %62, i32 0, i32 4
  %64 = load i64, ptr %12, align 8, !tbaa !9
  %65 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl11collections4ListINS_7parsing7tabling12ParsingTable11InstructionES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %63, i64 noundef %64)
  store ptr %65, ptr %14, align 8, !tbaa !5
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %114

68:                                               ; preds = %53
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %114

71:                                               ; preds = %68
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::Instruction", ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !19
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::Instruction", ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 8, !tbaa !19
  %78 = icmp eq i32 %74, %77
  br i1 %78, label %79, label %113

79:                                               ; preds = %71
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::Instruction", ptr %80, i32 0, i32 2
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::Instruction", ptr %82, i32 0, i32 2
  %84 = call noundef zeroext i1 @_ZNK2vl12ObjectStringIwEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %81, ptr noundef nonnull align 8 dereferenceable(48) %83)
  br i1 %84, label %85, label %113

85:                                               ; preds = %79
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::Instruction", ptr %86, i32 0, i32 1
  %88 = load i64, ptr %87, align 8, !tbaa !23
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  %90 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::Instruction", ptr %89, i32 0, i32 1
  %91 = load i64, ptr %90, align 8, !tbaa !23
  %92 = icmp eq i64 %88, %91
  br i1 %92, label %93, label %113

93:                                               ; preds = %85
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  %95 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::Instruction", ptr %94, i32 0, i32 3
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::Instruction", ptr %96, i32 0, i32 3
  %98 = call noundef zeroext i1 @_ZNK2vl12ObjectStringIwEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %95, ptr noundef nonnull align 8 dereferenceable(48) %97)
  br i1 %98, label %99, label %113

99:                                               ; preds = %93
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::Instruction", ptr %100, i32 0, i32 0
  %102 = load i32, ptr %101, align 8, !tbaa !19
  %103 = icmp eq i32 %102, 6
  br i1 %103, label %109, label %104

104:                                              ; preds = %99
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = getelementptr inbounds %"class.vl::parsing::tabling::ParsingTable::Instruction", ptr %105, i32 0, i32 0
  %107 = load i32, ptr %106, align 8, !tbaa !19
  %108 = icmp eq i32 %107, 7
  br i1 %108, label %109, label %112

109:                                              ; preds = %104, %99
  %110 = load i64, ptr %8, align 8, !tbaa !9
  %111 = add nsw i64 %110, 1
  store i64 %111, ptr %8, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %109, %104
  store i32 5, ptr %7, align 4
  br label %115, !llvm.loop !24

113:                                              ; preds = %93, %85, %79, %71
  br label %114

114:                                              ; preds = %113, %68, %53
  store i32 6, ptr %7, align 4
  br label %115

115:                                              ; preds = %114, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  %116 = load i32, ptr %7, align 4
  switch i32 %116, label %136 [
    i32 5, label %43
    i32 6, label %117
  ]

117:                                              ; preds = %115, %51
  %118 = load i64, ptr %5, align 8, !tbaa !9
  %119 = icmp eq i64 %118, -1
  br i1 %119, label %124, label %120

120:                                              ; preds = %117
  %121 = load i64, ptr %5, align 8, !tbaa !9
  %122 = load i64, ptr %8, align 8, !tbaa !9
  %123 = icmp sgt i64 %121, %122
  br i1 %123, label %124, label %126

124:                                              ; preds = %120, %117
  %125 = load i64, ptr %8, align 8, !tbaa !9
  store i64 %125, ptr %5, align 8, !tbaa !9
  br label %126

126:                                              ; preds = %124, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %127

127:                                              ; preds = %126
  %128 = load i64, ptr %6, align 8, !tbaa !9
  %129 = add nsw i64 %128, 1
  store i64 %129, ptr %6, align 8, !tbaa !9
  br label %16, !llvm.loop !26

130:                                              ; preds = %22
  %131 = load i64, ptr %5, align 8, !tbaa !9
  %132 = icmp eq i64 %131, -1
  br i1 %132, label %133, label %134

133:                                              ; preds = %130
  store i64 0, ptr %5, align 8, !tbaa !9
  br label %134

134:                                              ; preds = %133, %130
  %135 = load i64, ptr %5, align 8, !tbaa !9
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret i64 %135

136:                                              ; preds = %115
  unreachable
}

; 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 zeroext i1 @_ZNK2vl12ObjectStringIwEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #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, !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 = !{!20, !10, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


; 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 uwtable
define dso_local noundef i64 @_ZN2vl7parsing7tabling22ParsingAmbiguousParser22GetConflictReduceCountERNS_11collections4ListIPNS1_12ParsingState6FutureES7_EE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(33) %1) local_unnamed_addr #0 align 2 {
  %3 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing7tabling12ParsingState6FutureEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %4 = icmp sgt i64 %3, 1
  br i1 %4, label %.lr.ph64, label %._crit_edge.thread

._crit_edge:                                      ; preds = %.critedge
  %5 = icmp eq i64 %.1.fr, -1
  br i1 %5, label %._crit_edge.thread, label %6

._crit_edge.thread:                               ; preds = %2, %._crit_edge
  br label %6

6:                                                ; preds = %._crit_edge, %._crit_edge.thread
  %7 = phi i64 [ 0, %._crit_edge.thread ], [ %.1.fr, %._crit_edge ]
  ret i64 %7

.lr.ph64:                                         ; preds = %2, %.critedge
  %.063 = phi i64 [ %.1.fr, %.critedge ], [ -1, %2 ]
  %.03662 = phi i64 [ %10, %.critedge ], [ 0, %2 ]
  %8 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %1, i64 noundef %.03662)
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = add nuw nsw i64 %.03662, 1
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %1, i64 noundef %10)
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %9, i64 80
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %14, i64 112
  %16 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingTable11InstructionEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %17 = getelementptr inbounds i8, ptr %12, i64 80
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %18, i64 112
  %20 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_7parsing7tabling12ParsingTable11InstructionEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %19)
  %21 = icmp sgt i64 %16, 0
  br i1 %21, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %.lr.ph64, %49
  %.in = phi i64 [ %22, %49 ], [ %16, %.lr.ph64 ]
  %.03751 = phi i64 [ %23, %49 ], [ %20, %.lr.ph64 ]
  %.04050 = phi i64 [ %spec.select, %49 ], [ 0, %.lr.ph64 ]
  %22 = add nsw i64 %.in, -1
  %23 = add nsw i64 %.03751, -1
  %24 = icmp sgt i64 %.03751, 0
  br i1 %24, label %25, label %.critedge

25:                                               ; preds = %.lr.ph
  %26 = load ptr, ptr %13, align 8, !tbaa !9
  %27 = getelementptr inbounds i8, ptr %26, i64 112
  %28 = tail call noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl11collections4ListINS_7parsing7tabling12ParsingTable11InstructionES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %27, i64 noundef %22)
  %29 = load ptr, ptr %17, align 8, !tbaa !9
  %30 = getelementptr inbounds i8, ptr %29, i64 112
  %31 = tail call noundef nonnull align 8 dereferenceable(160) ptr @_ZN2vl11collections4ListINS_7parsing7tabling12ParsingTable11InstructionES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %30, i64 noundef %23)
  %32 = load i32, ptr %28, align 8, !tbaa !18
  %33 = load i32, ptr %31, align 8, !tbaa !18
  %34 = icmp eq i32 %32, %33
  br i1 %34, label %35, label %.critedge

35:                                               ; preds = %25
  %36 = getelementptr inbounds i8, ptr %28, i64 16
  %37 = getelementptr inbounds i8, ptr %31, i64 16
  %38 = tail call noundef zeroext i1 @_ZNK2vl12ObjectStringIwEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %36, ptr noundef nonnull align 8 dereferenceable(48) %37)
  br i1 %38, label %39, label %.critedge

39:                                               ; preds = %35
  %40 = getelementptr inbounds i8, ptr %28, i64 8
  %41 = load i64, ptr %40, align 8, !tbaa !22
  %42 = getelementptr inbounds i8, ptr %31, i64 8
  %43 = load i64, ptr %42, align 8, !tbaa !22
  %44 = icmp eq i64 %41, %43
  br i1 %44, label %45, label %.critedge

45:                                               ; preds = %39
  %46 = getelementptr inbounds i8, ptr %28, i64 64
  %47 = getelementptr inbounds i8, ptr %31, i64 64
  %48 = tail call noundef zeroext i1 @_ZNK2vl12ObjectStringIwEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %46, ptr noundef nonnull align 8 dereferenceable(48) %47)
  br i1 %48, label %49, label %.critedge

49:                                               ; preds = %45
  %50 = load i32, ptr %28, align 8, !tbaa !18
  %51 = and i32 %50, -2
  %switch45 = icmp eq i32 %51, 6
  %52 = zext i1 %switch45 to i64
  %spec.select = add nuw nsw i64 %.04050, %52
  %53 = icmp ugt i64 %.in, 1
  br i1 %53, label %.lr.ph, label %.critedge

.critedge:                                        ; preds = %.lr.ph, %49, %25, %35, %39, %45, %.lr.ph64
  %.040.lcssa = phi i64 [ 0, %.lr.ph64 ], [ %.04050, %45 ], [ %.04050, %39 ], [ %.04050, %35 ], [ %.04050, %25 ], [ %spec.select, %49 ], [ %.04050, %.lr.ph ]
  %54 = icmp eq i64 %.063, -1
  %55 = tail call i64 @llvm.smin.i64(i64 %.063, i64 %.040.lcssa)
  %.1 = select i1 %54, i64 %.040.lcssa, i64 %55
  %.1.fr = freeze i64 %.1
  %56 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing7tabling12ParsingState6FutureEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %57 = add nsw i64 %56, -1
  %58 = icmp slt i64 %10, %57
  br i1 %58, label %.lr.ph64, label %._crit_edge, !llvm.loop !23
}

; 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 zeroext i1 @_ZNK2vl12ObjectStringIwEeqERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = !{!19, !20, i64 0}
!19 = !{!"_ZTSN2vl7parsing7tabling12ParsingTable11InstructionE", !20, i64 0, !11, i64 8, !21, i64 16, !21, i64 64, !21, i64 112}
!20 = !{!"_ZTSN2vl7parsing7tabling12ParsingTable11Instruction15InstructionTypeE", !7, i64 0}
!21 = !{!"_ZTSN2vl12ObjectStringIwEE", !16, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!22 = !{!19, !11, i64 8}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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