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

%"class.vl::collections::List.172" = type { %"class.vl::collections::ListBase.base.178", %"class.vl::collections::IEnumerable.176" }
%"class.vl::collections::ListBase.base.178" = type <{ %"class.vl::collections::ArrayBase.base.177", i64, i8 }>
%"class.vl::collections::ArrayBase.base.177" = type { %"class.vl::collections::ListStore.175", ptr, i64 }
%"class.vl::collections::ListStore.175" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::collections::IEnumerable.176" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"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::collections::IEnumerable.120" = type { %"class.vl::Interface" }

; 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 uwtable
define dso_local noundef i64 @_ZN2vl7parsing7tabling22ParsingAmbiguousParser25GetResolvableFutureLevelsERNS_11collections4ListIPNS1_12ParsingState6FutureES7_EEll(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(33) %1, i64 noundef %2, i64 noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.vl::collections::List.172", align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store i64 %3, ptr %9, align 8, !tbaa !9
  %21 = load ptr, ptr %6, align 8
  %22 = load i64, ptr %9, align 8, !tbaa !9
  %23 = load i64, ptr %8, align 8, !tbaa !9
  %24 = sub nsw i64 %22, %23
  %25 = icmp slt i64 %24, 2
  br i1 %25, label %26, label %27

26:                                               ; preds = %4
  store i64 1, ptr %5, align 8
  br label %191

27:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #4
  call void @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EC1Ev(ptr noundef nonnull align 8 dereferenceable(33) %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %28 = load i64, ptr %8, align 8, !tbaa !9
  store i64 %28, ptr %11, align 8, !tbaa !9
  br label %29

29:                                               ; preds = %41, %27
  %30 = load i64, ptr %11, align 8, !tbaa !9
  %31 = load i64, ptr %9, align 8, !tbaa !9
  %32 = icmp slt i64 %30, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %48

34:                                               ; preds = %29
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load i64, ptr %11, align 8, !tbaa !9
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %35, i64 noundef %36)
          to label %38 unwind label %44

38:                                               ; preds = %34
  %39 = invoke noundef i64 @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_E3AddERKS6_(ptr noundef nonnull align 8 dereferenceable(33) %10, ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %40 unwind label %44

40:                                               ; preds = %38
  br label %41

41:                                               ; preds = %40
  %42 = load i64, ptr %11, align 8, !tbaa !9
  %43 = add nsw i64 %42, 1
  store i64 %43, ptr %11, align 8, !tbaa !9
  br label %29, !llvm.loop !11

44:                                               ; preds = %38, %34
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %12, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %190

48:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %49

49:                                               ; preds = %187, %48
  br label %50

50:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %147, %50
  %52 = load i64, ptr %15, align 8, !tbaa !9
  %53 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing7tabling12ParsingState6FutureEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %54 unwind label %58

54:                                               ; preds = %51
  %55 = sub nsw i64 %53, 1
  %56 = icmp slt i64 %52, %55
  br i1 %56, label %62, label %57

57:                                               ; preds = %54
  store i32 7, ptr %16, align 4
  br label %152

58:                                               ; preds = %51
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %12, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %13, align 4
  br label %154

62:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %63 = load i64, ptr %15, align 8, !tbaa !9
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %10, i64 noundef %63)
          to label %65 unwind label %99

65:                                               ; preds = %62
  %66 = load ptr, ptr %64, align 8, !tbaa !5
  store ptr %66, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %67 = load i64, ptr %15, align 8, !tbaa !9
  %68 = add nsw i64 %67, 1
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %10, i64 noundef %68)
          to label %70 unwind label %103

70:                                               ; preds = %65
  %71 = load ptr, ptr %69, align 8, !tbaa !5
  store ptr %71, ptr %18, align 8, !tbaa !5
  %72 = load ptr, ptr %17, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %72, i32 0, i32 0
  %74 = load i64, ptr %73, align 8, !tbaa !13
  %75 = load ptr, ptr %18, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %75, i32 0, i32 0
  %77 = load i64, ptr %76, align 8, !tbaa !13
  %78 = icmp ne i64 %74, %77
  br i1 %78, label %97, label %79

79:                                               ; preds = %70
  %80 = load ptr, ptr %17, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %80, i32 0, i32 1
  %82 = load i64, ptr %81, align 8, !tbaa !21
  %83 = load ptr, ptr %18, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %83, i32 0, i32 1
  %85 = load i64, ptr %84, align 8, !tbaa !21
  %86 = icmp ne i64 %82, %85
  br i1 %86, label %97, label %87

87:                                               ; preds = %79
  %88 = load ptr, ptr %17, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %88, i32 0, i32 2
  %90 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %89)
          to label %91 unwind label %103

91:                                               ; preds = %87
  %92 = load ptr, ptr %18, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %92, i32 0, i32 2
  %94 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %93)
          to label %95 unwind label %103

95:                                               ; preds = %91
  %96 = icmp ne i64 %90, %94
  br i1 %96, label %97, label %107

97:                                               ; preds = %95, %79, %70
  %98 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %98, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %144

99:                                               ; preds = %62
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %12, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %13, align 4
  br label %151

103:                                              ; preds = %91, %87, %65
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %12, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %13, align 4
  br label %150

107:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %108

108:                                              ; preds = %137, %107
  %109 = load i64, ptr %19, align 8, !tbaa !9
  %110 = load ptr, ptr %17, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %110, i32 0, i32 2
  %112 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %111)
          to label %113 unwind label %116

113:                                              ; preds = %108
  %114 = icmp slt i64 %109, %112
  br i1 %114, label %120, label %115

115:                                              ; preds = %113
  store i32 10, ptr %16, align 4
  br label %140

116:                                              ; preds = %125, %120, %108
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %12, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %150

120:                                              ; preds = %113
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %121, i32 0, i32 2
  %123 = load i64, ptr %19, align 8, !tbaa !9
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %122, i64 noundef %123)
          to label %125 unwind label %116

125:                                              ; preds = %120
  %126 = load i64, ptr %124, align 8, !tbaa !9
  %127 = load ptr, ptr %18, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %127, i32 0, i32 2
  %129 = load i64, ptr %19, align 8, !tbaa !9
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %128, i64 noundef %129)
          to label %131 unwind label %116

131:                                              ; preds = %125
  %132 = load i64, ptr %130, align 8, !tbaa !9
  %133 = icmp ne i64 %126, %132
  br i1 %133, label %134, label %136

134:                                              ; preds = %131
  %135 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %135, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %140

136:                                              ; preds = %131
  br label %137

137:                                              ; preds = %136
  %138 = load i64, ptr %19, align 8, !tbaa !9
  %139 = add nsw i64 %138, 1
  store i64 %139, ptr %19, align 8, !tbaa !9
  br label %108, !llvm.loop !22

140:                                              ; preds = %134, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  %141 = load i32, ptr %16, align 4
  switch i32 %141, label %144 [
    i32 10, label %142
  ]

142:                                              ; preds = %140
  br label %143

143:                                              ; preds = %142
  store i32 0, ptr %16, align 4
  br label %144

144:                                              ; preds = %143, %140, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  %145 = load i32, ptr %16, align 4
  switch i32 %145, label %152 [
    i32 0, label %146
  ]

146:                                              ; preds = %144
  br label %147

147:                                              ; preds = %146
  %148 = load i64, ptr %15, align 8, !tbaa !9
  %149 = add nsw i64 %148, 1
  store i64 %149, ptr %15, align 8, !tbaa !9
  br label %51, !llvm.loop !23

150:                                              ; preds = %116, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %151

151:                                              ; preds = %150, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %154

152:                                              ; preds = %144, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  %153 = load i32, ptr %16, align 4
  switch i32 %153, label %188 [
    i32 7, label %155
  ]

154:                                              ; preds = %151, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %189

155:                                              ; preds = %152
  %156 = load i64, ptr %14, align 8, !tbaa !9
  %157 = add nsw i64 %156, 1
  store i64 %157, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %158

158:                                              ; preds = %182, %155
  %159 = load i64, ptr %20, align 8, !tbaa !9
  %160 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing7tabling12ParsingState6FutureEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %161 unwind label %164

161:                                              ; preds = %158
  %162 = icmp slt i64 %159, %160
  br i1 %162, label %168, label %163

163:                                              ; preds = %161
  store i32 13, ptr %16, align 4
  br label %185

164:                                              ; preds = %171, %168, %158
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %12, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %189

168:                                              ; preds = %161
  %169 = load i64, ptr %20, align 8, !tbaa !9
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %10, i64 noundef %169)
          to label %171 unwind label %164

171:                                              ; preds = %168
  %172 = load ptr, ptr %170, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.vl::parsing::tabling::ParsingState::Future", ptr %172, i32 0, i32 6
  %174 = load ptr, ptr %173, align 8, !tbaa !24
  %175 = load i64, ptr %20, align 8, !tbaa !9
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %10, i64 noundef %175)
          to label %177 unwind label %164

177:                                              ; preds = %171
  store ptr %174, ptr %176, align 8, !tbaa !5
  %178 = icmp ne ptr %174, null
  br i1 %178, label %181, label %179

179:                                              ; preds = %177
  %180 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %180, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %185

181:                                              ; preds = %177
  br label %182

182:                                              ; preds = %181
  %183 = load i64, ptr %20, align 8, !tbaa !9
  %184 = add nsw i64 %183, 1
  store i64 %184, ptr %20, align 8, !tbaa !9
  br label %158, !llvm.loop !25

185:                                              ; preds = %179, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  %186 = load i32, ptr %16, align 4
  switch i32 %186, label %188 [
    i32 13, label %187
  ]

187:                                              ; preds = %185
  br label %49, !llvm.loop !26

188:                                              ; preds = %185, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %10) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #4
  br label %191

189:                                              ; preds = %164, %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %190

190:                                              ; preds = %189, %44
  call void @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %10) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #4
  br label %193

191:                                              ; preds = %188, %26
  %192 = load i64, ptr %5, align 8
  ret i64 %192

193:                                              ; preds = %190
  %194 = load ptr, ptr %12, align 8
  %195 = load i32, ptr %13, align 4
  %196 = insertvalue { ptr, i32 } poison, ptr %194, 0
  %197 = insertvalue { ptr, i32 } %196, i32 %195, 1
  resume { ptr, i32 } %197
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EC1Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #1 align 2

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

; 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 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #3 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN2vl7parsing7tabling12ParsingState6FutureE", !10, i64 0, !10, i64 8, !15, i64 16, !6, i64 64, !10, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!15 = !{!"_ZTSN2vl11collections4ListIllEE", !16, i64 0}
!16 = !{!"_ZTSN2vl11collections8ListBaseIllEE", !17, i64 0, !10, i64 24, !20, i64 32}
!17 = !{!"_ZTSN2vl11collections9ArrayBaseIlEE", !18, i64 0, !6, i64 8, !10, i64 16}
!18 = !{!"_ZTSN2vl11collections9ListStoreIlLb1EEE", !19, i64 0}
!19 = !{!"_ZTSN2vl6ObjectE"}
!20 = !{!"bool", !7, i64 0}
!21 = !{!14, !10, i64 8}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = !{!14, !6, i64 88}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}


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

%"class.vl::collections::List.172" = type { %"class.vl::collections::ListBase.base.178", %"class.vl::collections::IEnumerable.176" }
%"class.vl::collections::ListBase.base.178" = type <{ %"class.vl::collections::ArrayBase.base.177", i64, i8 }>
%"class.vl::collections::ArrayBase.base.177" = type { %"class.vl::collections::ListStore.175", ptr, i64 }
%"class.vl::collections::ListStore.175" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::collections::IEnumerable.176" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { 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 uwtable
define dso_local noundef i64 @_ZN2vl7parsing7tabling22ParsingAmbiguousParser25GetResolvableFutureLevelsERNS_11collections4ListIPNS1_12ParsingState6FutureES7_EEll(ptr nocapture noundef nonnull readnone align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(33) %1, i64 noundef %2, i64 noundef %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.vl::collections::List.172", align 8
  %6 = sub nsw i64 %3, %2
  %7 = icmp slt i64 %6, 2
  br i1 %7, label %70, label %8

8:                                                ; preds = %4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #4
  call void @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EC1Ev(ptr noundef nonnull align 8 dereferenceable(33) %5)
  %9 = icmp slt i64 %2, %3
  br i1 %9, label %.lr.ph, label %.preheader85.preheader

.preheader85.preheader:                           ; preds = %13, %8
  br label %.preheader85

.lr.ph:                                           ; preds = %8, %13
  %.04594 = phi i64 [ %14, %13 ], [ %2, %8 ]
  %10 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %1, i64 noundef %.04594)
          to label %11 unwind label %15

11:                                               ; preds = %.lr.ph
  %12 = invoke noundef i64 @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_E3AddERKS6_(ptr noundef nonnull align 8 dereferenceable(33) %5, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %13 unwind label %15

13:                                               ; preds = %11
  %14 = add i64 %.04594, 1
  %exitcond.not = icmp eq i64 %14, %3
  br i1 %exitcond.not, label %.preheader85.preheader, label %.lr.ph, !llvm.loop !5

15:                                               ; preds = %11, %.lr.ph
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %69

.preheader85:                                     ; preds = %.preheader85.backedge, %.preheader85.preheader
  %.051 = phi i64 [ 0, %.preheader85.preheader ], [ %55, %.preheader85.backedge ]
  %17 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing7tabling12ParsingState6FutureEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %.not6698 = icmp sgt i64 %17, 1
  br i1 %.not6698, label %.lr.ph100, label %.thread76

.loopexit:                                        ; preds = %44, %.preheader
  %18 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing7tabling12ParsingState6FutureEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %19 = add nsw i64 %18, -1
  %.not66 = icmp slt i64 %23, %19
  br i1 %.not66, label %.lr.ph100, label %.thread76, !llvm.loop !7

.lr.ph100:                                        ; preds = %.preheader85, %.loopexit
  %.05099 = phi i64 [ %23, %.loopexit ], [ 0, %.preheader85 ]
  %20 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %5, i64 noundef %.05099)
          to label %21 unwind label %40

21:                                               ; preds = %.lr.ph100
  %22 = load ptr, ptr %20, align 8, !tbaa !8
  %23 = add nuw nsw i64 %.05099, 1
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %5, i64 noundef %23)
          to label %25 unwind label %42

25:                                               ; preds = %21
  %26 = load ptr, ptr %24, align 8, !tbaa !8
  %27 = load i64, ptr %22, align 8, !tbaa !12
  %28 = load i64, ptr %26, align 8, !tbaa !12
  %.not = icmp eq i64 %27, %28
  br i1 %.not, label %29, label %.thread80

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %22, i64 8
  %31 = load i64, ptr %30, align 8, !tbaa !21
  %32 = getelementptr inbounds i8, ptr %26, i64 8
  %33 = load i64, ptr %32, align 8, !tbaa !21
  %.not60 = icmp eq i64 %31, %33
  br i1 %.not60, label %34, label %.thread80

34:                                               ; preds = %29
  %35 = getelementptr inbounds i8, ptr %22, i64 16
  %36 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %35)
  %37 = getelementptr inbounds i8, ptr %26, i64 16
  %38 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %37)
  %.not61 = icmp eq i64 %36, %38
  br i1 %.not61, label %.preheader, label %.thread80

.preheader:                                       ; preds = %34
  %39 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %35)
  %.not6595 = icmp sgt i64 %39, 0
  br i1 %.not6595, label %.lr.ph97, label %.loopexit

40:                                               ; preds = %.lr.ph100
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %69

42:                                               ; preds = %21
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %69

44:                                               ; preds = %53
  %45 = add nuw nsw i64 %.04396, 1
  %46 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIlE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %35)
  %.not65 = icmp slt i64 %45, %46
  br i1 %.not65, label %.lr.ph97, label %.loopexit, !llvm.loop !22

47:                                               ; preds = %50, %.lr.ph97
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %69

.lr.ph97:                                         ; preds = %.preheader, %44
  %.04396 = phi i64 [ %45, %44 ], [ 0, %.preheader ]
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %35, i64 noundef %.04396)
          to label %50 unwind label %47

50:                                               ; preds = %.lr.ph97
  %51 = load i64, ptr %49, align 8, !tbaa !23
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIllEixEl(ptr noundef nonnull align 8 dereferenceable(33) %37, i64 noundef %.04396)
          to label %53 unwind label %47

53:                                               ; preds = %50
  %54 = load i64, ptr %52, align 8, !tbaa !23
  %.not64 = icmp eq i64 %51, %54
  br i1 %.not64, label %44, label %.thread80

.thread76:                                        ; preds = %.loopexit, %.preheader85
  %55 = add nuw nsw i64 %.051, 1
  %56 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing7tabling12ParsingState6FutureEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %.not70101 = icmp sgt i64 %56, 0
  br i1 %.not70101, label %.lr.ph103, label %.preheader85.backedge

.preheader85.backedge:                            ; preds = %57, %.thread76
  br label %.preheader85

57:                                               ; preds = %68
  %58 = add nuw nsw i64 %.0102, 1
  %59 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing7tabling12ParsingState6FutureEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %.not70 = icmp slt i64 %58, %59
  br i1 %.not70, label %.lr.ph103, label %.preheader85.backedge, !llvm.loop !24

60:                                               ; preds = %63, %.lr.ph103
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %69

.lr.ph103:                                        ; preds = %.thread76, %57
  %.0102 = phi i64 [ %58, %57 ], [ 0, %.thread76 ]
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %5, i64 noundef %.0102)
          to label %63 unwind label %60

63:                                               ; preds = %.lr.ph103
  %64 = load ptr, ptr %62, align 8, !tbaa !8
  %65 = getelementptr inbounds i8, ptr %64, i64 88
  %66 = load ptr, ptr %65, align 8, !tbaa !25
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %5, i64 noundef %.0102)
          to label %68 unwind label %60

68:                                               ; preds = %63
  store ptr %66, ptr %67, align 8, !tbaa !8
  %.not69 = icmp eq ptr %66, null
  br i1 %.not69, label %.thread80, label %57

.thread80:                                        ; preds = %25, %29, %34, %68, %53
  %.6 = phi i64 [ %.051, %53 ], [ %55, %68 ], [ %.051, %34 ], [ %.051, %29 ], [ %.051, %25 ]
  call void @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  br label %70

69:                                               ; preds = %60, %42, %47, %40, %15
  %.pn71 = phi { ptr, i32 } [ %16, %15 ], [ %61, %60 ], [ %41, %40 ], [ %48, %47 ], [ %43, %42 ]
  call void @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  resume { ptr, i32 } %.pn71

70:                                               ; preds = %4, %.thread80
  %.7 = phi i64 [ %.6, %.thread80 ], [ 1, %4 ]
  ret i64 %.7
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections4ListIPNS_7parsing7tabling12ParsingState6FutureES6_EC1Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #1 align 2

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

; 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 #1 align 2

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

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

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

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

attributes #0 = { mustprogress 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTSN2vl7parsing7tabling12ParsingState6FutureE", !14, i64 0, !14, i64 8, !15, i64 16, !9, i64 64, !14, i64 72, !9, i64 80, !9, i64 88, !9, i64 96}
!14 = !{!"long", !10, i64 0}
!15 = !{!"_ZTSN2vl11collections4ListIllEE", !16, i64 0}
!16 = !{!"_ZTSN2vl11collections8ListBaseIllEE", !17, i64 0, !14, i64 24, !20, i64 32}
!17 = !{!"_ZTSN2vl11collections9ArrayBaseIlEE", !18, i64 0, !9, i64 8, !14, i64 16}
!18 = !{!"_ZTSN2vl11collections9ListStoreIlLb1EEE", !19, i64 0}
!19 = !{!"_ZTSN2vl6ObjectE"}
!20 = !{!"bool", !10, i64 0}
!21 = !{!13, !14, i64 8}
!22 = distinct !{!22, !6}
!23 = !{!14, !14, i64 0}
!24 = distinct !{!24, !6}
!25 = !{!13, !9, i64 88}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass