; 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::SortedList.463" = type { %"class.vl::collections::ListBase.base.409", %"class.vl::collections::IEnumerable.407" }
%"class.vl::collections::ListBase.base.409" = type <{ %"class.vl::collections::ArrayBase.base.408", i64, i8 }>
%"class.vl::collections::ArrayBase.base.408" = type { %"class.vl::collections::ListStore.406", ptr, i64 }
%"class.vl::collections::ListStore.406" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::collections::IEnumerable.407" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::Ptr.447" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.461" = type { ptr, ptr, ptr, ptr }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl3PtrINS_7parsing9analyzing9AutomatonEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl7parsing9analyzing19IsMergableCandidateEPNS1_5StateENS_3PtrINS1_8RuleInfoEEE(ptr noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl7parsing9analyzing28IsMergableBecauseTransitionsEPNS1_5StateES3_(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl7parsing9analyzing23IsMergableBecauseInputsEPNS1_5StateES3_(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing9analyzing37MergeState2ToState1BecauseTransitionsENS_3PtrINS1_9AutomatonEEEPNS1_5StateES6_(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing9analyzing32MergeState2ToState1BecauseInputsENS_3PtrINS1_9AutomatonEEEPNS1_5StateES6_(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing9analyzing11MergeStatesENS_3PtrINS1_9AutomatonEEENS2_INS1_8RuleInfoEEERNS_11collections4ListIPNS1_5StateESA_EE(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(33) %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.vl::collections::SortedList.463", align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.vl::Ptr.447", align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.vl::Ptr.447", align 8
  %17 = alloca i1, align 1
  %18 = alloca %"class.vl::Ptr.461", align 8
  %19 = alloca %"class.vl::Ptr.461", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #4
  call void @_ZN2vl11collections10SortedListIPNS_7parsing9analyzing5StateES5_EC1Ev(ptr noundef nonnull align 8 dereferenceable(33) %7)
  br label %20

20:                                               ; preds = %161, %3
  br label %21

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

22:                                               ; preds = %153, %21
  %23 = load i64, ptr %8, align 8, !tbaa !9
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing9analyzing5StateEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %26 unwind label %29

26:                                               ; preds = %22
  %27 = icmp slt i64 %23, %25
  br i1 %27, label %33, label %28

28:                                               ; preds = %26
  store i32 4, ptr %11, align 4
  br label %157

29:                                               ; preds = %22
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %9, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %10, align 4
  br label %159

33:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = load i64, ptr %8, align 8, !tbaa !9
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing9analyzing5StateES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %34, i64 noundef %35)
          to label %37 unwind label %53

37:                                               ; preds = %33
  %38 = load ptr, ptr %36, align 8, !tbaa !5
  store ptr %38, ptr %12, align 8, !tbaa !5
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN2vl3PtrINS_7parsing9analyzing8RuleInfoEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %40 unwind label %53

40:                                               ; preds = %37
  %41 = invoke noundef zeroext i1 @_ZN2vl7parsing9analyzing19IsMergableCandidateEPNS1_5StateENS_3PtrINS1_8RuleInfoEEE(ptr noundef %39, ptr noundef %13)
          to label %42 unwind label %57

42:                                               ; preds = %40
  call void @_ZN2vl3PtrINS_7parsing9analyzing8RuleInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  br i1 %41, label %43, label %149

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %44 = load i64, ptr %8, align 8, !tbaa !9
  %45 = add nsw i64 %44, 1
  store i64 %45, ptr %14, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %141, %43
  %47 = load i64, ptr %14, align 8, !tbaa !9
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing9analyzing5StateEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %48)
          to label %50 unwind label %61

50:                                               ; preds = %46
  %51 = icmp slt i64 %47, %49
  br i1 %51, label %65, label %52

52:                                               ; preds = %50
  store i32 7, ptr %11, align 4
  br label %145

53:                                               ; preds = %37, %33
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %9, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %10, align 4
  br label %156

57:                                               ; preds = %40
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %9, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %10, align 4
  call void @_ZN2vl3PtrINS_7parsing9analyzing8RuleInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  br label %156

61:                                               ; preds = %46
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %9, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %10, align 4
  br label %147

65:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = load i64, ptr %14, align 8, !tbaa !9
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing9analyzing5StateES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %66, i64 noundef %67)
          to label %69 unwind label %102

69:                                               ; preds = %65
  %70 = load ptr, ptr %68, align 8, !tbaa !5
  store ptr %70, ptr %15, align 8, !tbaa !5
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = icmp ne ptr %71, %72
  store i1 false, ptr %17, align 1
  br i1 %73, label %74, label %79

74:                                               ; preds = %69
  %75 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN2vl3PtrINS_7parsing9analyzing8RuleInfoEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %76 unwind label %102

76:                                               ; preds = %74
  store i1 true, ptr %17, align 1
  %77 = invoke noundef zeroext i1 @_ZN2vl7parsing9analyzing19IsMergableCandidateEPNS1_5StateENS_3PtrINS1_8RuleInfoEEE(ptr noundef %75, ptr noundef %16)
          to label %78 unwind label %106

78:                                               ; preds = %76
  br label %79

79:                                               ; preds = %78, %69
  %80 = phi i1 [ false, %69 ], [ %77, %78 ]
  %81 = load i1, ptr %17, align 1
  br i1 %81, label %82, label %83

82:                                               ; preds = %79
  call void @_ZN2vl3PtrINS_7parsing9analyzing8RuleInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  br label %83

83:                                               ; preds = %82, %79
  br i1 %80, label %84, label %137

84:                                               ; preds = %83
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN2vl7parsing9analyzing14RearrangeStateEPNS1_5StateERNS_11collections10SortedListIS3_S3_EE(ptr noundef %85, ptr noundef nonnull align 8 dereferenceable(33) %7)
          to label %86 unwind label %102

86:                                               ; preds = %84
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN2vl7parsing9analyzing14RearrangeStateEPNS1_5StateERNS_11collections10SortedListIS3_S3_EE(ptr noundef %87, ptr noundef nonnull align 8 dereferenceable(33) %7)
          to label %88 unwind label %102

88:                                               ; preds = %86
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = invoke noundef zeroext i1 @_ZN2vl7parsing9analyzing28IsMergableBecauseTransitionsEPNS1_5StateES3_(ptr noundef %89, ptr noundef %90)
          to label %92 unwind label %102

92:                                               ; preds = %88
  br i1 %91, label %93, label %117

93:                                               ; preds = %92
  invoke void @_ZN2vl3PtrINS_7parsing9analyzing9AutomatonEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %94 unwind label %102

94:                                               ; preds = %93
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN2vl7parsing9analyzing37MergeState2ToState1BecauseTransitionsENS_3PtrINS1_9AutomatonEEEPNS1_5StateES6_(ptr noundef %18, ptr noundef %95, ptr noundef %96)
          to label %97 unwind label %113

97:                                               ; preds = %94
  call void @_ZN2vl3PtrINS_7parsing9analyzing9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #4
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = load i64, ptr %14, align 8, !tbaa !9
  %100 = invoke noundef zeroext i1 @_ZN2vl11collections8ListBaseIPNS_7parsing9analyzing5StateES5_E8RemoveAtEl(ptr noundef nonnull align 8 dereferenceable(33) %98, i64 noundef %99)
          to label %101 unwind label %102

101:                                              ; preds = %97
  store i32 10, ptr %11, align 4
  br label %138

102:                                              ; preds = %126, %122, %117, %97, %93, %88, %86, %84, %74, %65
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %9, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %10, align 4
  br label %144

106:                                              ; preds = %76
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %9, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %10, align 4
  %110 = load i1, ptr %17, align 1
  br i1 %110, label %111, label %112

111:                                              ; preds = %106
  call void @_ZN2vl3PtrINS_7parsing9analyzing8RuleInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  br label %112

112:                                              ; preds = %111, %106
  br label %144

113:                                              ; preds = %94
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %9, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %10, align 4
  call void @_ZN2vl3PtrINS_7parsing9analyzing9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #4
  br label %144

117:                                              ; preds = %92
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = load ptr, ptr %15, align 8, !tbaa !5
  %120 = invoke noundef zeroext i1 @_ZN2vl7parsing9analyzing23IsMergableBecauseInputsEPNS1_5StateES3_(ptr noundef %118, ptr noundef %119)
          to label %121 unwind label %102

121:                                              ; preds = %117
  br i1 %120, label %122, label %135

122:                                              ; preds = %121
  invoke void @_ZN2vl3PtrINS_7parsing9analyzing9AutomatonEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %123 unwind label %102

123:                                              ; preds = %122
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN2vl7parsing9analyzing32MergeState2ToState1BecauseInputsENS_3PtrINS1_9AutomatonEEEPNS1_5StateES6_(ptr noundef %19, ptr noundef %124, ptr noundef %125)
          to label %126 unwind label %131

126:                                              ; preds = %123
  call void @_ZN2vl3PtrINS_7parsing9analyzing9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #4
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = load i64, ptr %14, align 8, !tbaa !9
  %129 = invoke noundef zeroext i1 @_ZN2vl11collections8ListBaseIPNS_7parsing9analyzing5StateES5_E8RemoveAtEl(ptr noundef nonnull align 8 dereferenceable(33) %127, i64 noundef %128)
          to label %130 unwind label %102

130:                                              ; preds = %126
  store i32 10, ptr %11, align 4
  br label %138

131:                                              ; preds = %123
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %9, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %10, align 4
  call void @_ZN2vl3PtrINS_7parsing9analyzing9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #4
  br label %144

135:                                              ; preds = %121
  br label %136

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136, %83
  store i32 0, ptr %11, align 4
  br label %138

138:                                              ; preds = %137, %130, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  %139 = load i32, ptr %11, align 4
  switch i32 %139, label %145 [
    i32 0, label %140
  ]

140:                                              ; preds = %138
  br label %141

141:                                              ; preds = %140
  %142 = load i64, ptr %14, align 8, !tbaa !9
  %143 = add nsw i64 %142, 1
  store i64 %143, ptr %14, align 8, !tbaa !9
  br label %46, !llvm.loop !11

144:                                              ; preds = %131, %113, %112, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %147

145:                                              ; preds = %138, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %146 = load i32, ptr %11, align 4
  switch i32 %146, label %150 [
    i32 7, label %148
  ]

147:                                              ; preds = %144, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %156

148:                                              ; preds = %145
  br label %149

149:                                              ; preds = %148, %42
  store i32 0, ptr %11, align 4
  br label %150

150:                                              ; preds = %149, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %151 = load i32, ptr %11, align 4
  switch i32 %151, label %157 [
    i32 0, label %152
  ]

152:                                              ; preds = %150
  br label %153

153:                                              ; preds = %152
  %154 = load i64, ptr %8, align 8, !tbaa !9
  %155 = add nsw i64 %154, 1
  store i64 %155, ptr %8, align 8, !tbaa !9
  br label %22, !llvm.loop !13

156:                                              ; preds = %147, %57, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %159

157:                                              ; preds = %150, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %158 = load i32, ptr %11, align 4
  switch i32 %158, label %168 [
    i32 4, label %160
    i32 10, label %161
  ]

159:                                              ; preds = %156, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @_ZN2vl11collections10SortedListIPNS_7parsing9analyzing5StateES5_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %7) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #4
  br label %163

160:                                              ; preds = %157
  br label %162

161:                                              ; preds = %157
  br label %20, !llvm.loop !14

162:                                              ; preds = %160
  call void @_ZN2vl11collections10SortedListIPNS_7parsing9analyzing5StateES5_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %7) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #4
  ret void

163:                                              ; preds = %159
  %164 = load ptr, ptr %9, align 8
  %165 = load i32, ptr %10, align 4
  %166 = insertvalue { ptr, i32 } poison, ptr %164, 0
  %167 = insertvalue { ptr, i32 } %166, i32 %165, 1
  resume { ptr, i32 } %167

168:                                              ; preds = %157
  unreachable
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl11collections10SortedListIPNS_7parsing9analyzing5StateES5_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 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 = { 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 #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 = distinct !{!13, !12}
!14 = distinct !{!14, !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::SortedList.463" = type { %"class.vl::collections::ListBase.base.409", %"class.vl::collections::IEnumerable.407" }
%"class.vl::collections::ListBase.base.409" = type <{ %"class.vl::collections::ArrayBase.base.408", i64, i8 }>
%"class.vl::collections::ArrayBase.base.408" = type { %"class.vl::collections::ListStore.406", ptr, i64 }
%"class.vl::collections::ListStore.406" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::collections::IEnumerable.407" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::Ptr.447" = type { ptr, ptr, ptr, ptr }
%"class.vl::Ptr.461" = type { ptr, ptr, ptr, ptr }

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl3PtrINS_7parsing9analyzing9AutomatonEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl7parsing9analyzing19IsMergableCandidateEPNS1_5StateENS_3PtrINS1_8RuleInfoEEE(ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl7parsing9analyzing28IsMergableBecauseTransitionsEPNS1_5StateES3_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2vl7parsing9analyzing23IsMergableBecauseInputsEPNS1_5StateES3_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing9analyzing37MergeState2ToState1BecauseTransitionsENS_3PtrINS1_9AutomatonEEEPNS1_5StateES6_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl7parsing9analyzing32MergeState2ToState1BecauseInputsENS_3PtrINS1_9AutomatonEEEPNS1_5StateES6_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl7parsing9analyzing11MergeStatesENS_3PtrINS1_9AutomatonEEENS2_INS1_8RuleInfoEEERNS_11collections4ListIPNS1_5StateESA_EE(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(33) %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.vl::collections::SortedList.463", align 8
  %5 = alloca %"class.vl::Ptr.447", align 8
  %6 = alloca %"class.vl::Ptr.447", align 8
  %7 = alloca %"class.vl::Ptr.461", align 8
  %8 = alloca %"class.vl::Ptr.461", align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #4
  call void @_ZN2vl11collections10SortedListIPNS_7parsing9analyzing5StateES5_EC1Ev(ptr noundef nonnull align 8 dereferenceable(33) %4)
  %9 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing9analyzing5StateEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %10 = icmp sgt i64 %9, 0
  br i1 %10, label %.lr.ph76, label %._crit_edge

.lr.ph76:                                         ; preds = %3, %.lr.ph76.backedge
  %.03875 = phi i64 [ %.03875.be, %.lr.ph76.backedge ], [ 0, %3 ]
  %11 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing9analyzing5StateES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %2, i64 noundef %.03875)
          to label %12 unwind label %18

12:                                               ; preds = %.lr.ph76
  %13 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN2vl3PtrINS_7parsing9analyzing8RuleInfoEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %14 = invoke noundef zeroext i1 @_ZN2vl7parsing9analyzing19IsMergableCandidateEPNS1_5StateENS_3PtrINS1_8RuleInfoEEE(ptr noundef %13, ptr noundef nonnull %5)
          to label %15 unwind label %20

15:                                               ; preds = %12
  call void @_ZN2vl3PtrINS_7parsing9analyzing8RuleInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  %.03973 = add nuw nsw i64 %.03875, 1
  br i1 %14, label %.preheader, label %.thread52

.preheader:                                       ; preds = %15
  %16 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing9analyzing5StateEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %17 = icmp slt i64 %.03973, %16
  br i1 %17, label %.lr.ph, label %.thread52

18:                                               ; preds = %.lr.ph76
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %51

20:                                               ; preds = %12
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl3PtrINS_7parsing9analyzing8RuleInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  br label %51

.lr.ph:                                           ; preds = %.preheader, %.thread48
  %.03974 = phi i64 [ %.039, %.thread48 ], [ %.03973, %.preheader ]
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_7parsing9analyzing5StateES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %2, i64 noundef %.03974)
          to label %23 unwind label %.loopexit

23:                                               ; preds = %.lr.ph
  %24 = load ptr, ptr %22, align 8, !tbaa !5
  %.not.not = icmp eq ptr %13, %24
  br i1 %.not.not, label %.thread48, label %25

25:                                               ; preds = %23
  call void @_ZN2vl3PtrINS_7parsing9analyzing8RuleInfoEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %26 = invoke noundef zeroext i1 @_ZN2vl7parsing9analyzing19IsMergableCandidateEPNS1_5StateENS_3PtrINS1_8RuleInfoEEE(ptr noundef %24, ptr noundef nonnull %6)
          to label %27 unwind label %36

27:                                               ; preds = %25
  call void @_ZN2vl3PtrINS_7parsing9analyzing8RuleInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  br i1 %26, label %28, label %.thread48

28:                                               ; preds = %27
  invoke void @_ZN2vl7parsing9analyzing14RearrangeStateEPNS1_5StateERNS_11collections10SortedListIS3_S3_EE(ptr noundef %13, ptr noundef nonnull align 8 dereferenceable(33) %4)
          to label %29 unwind label %.loopexit

29:                                               ; preds = %28
  invoke void @_ZN2vl7parsing9analyzing14RearrangeStateEPNS1_5StateERNS_11collections10SortedListIS3_S3_EE(ptr noundef %24, ptr noundef nonnull align 8 dereferenceable(33) %4)
          to label %30 unwind label %.loopexit

30:                                               ; preds = %29
  %31 = invoke noundef zeroext i1 @_ZN2vl7parsing9analyzing28IsMergableBecauseTransitionsEPNS1_5StateES3_(ptr noundef %13, ptr noundef %24)
          to label %32 unwind label %.loopexit

32:                                               ; preds = %30
  br i1 %31, label %33, label %40

33:                                               ; preds = %32
  invoke void @_ZN2vl3PtrINS_7parsing9analyzing9AutomatonEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %34 unwind label %.loopexit.split-lp

34:                                               ; preds = %33
  invoke void @_ZN2vl7parsing9analyzing37MergeState2ToState1BecauseTransitionsENS_3PtrINS1_9AutomatonEEEPNS1_5StateES6_(ptr noundef nonnull %7, ptr noundef %13, ptr noundef %24)
          to label %.invoke unwind label %38

.invoke:                                          ; preds = %34, %44
  %.sink = phi ptr [ %8, %44 ], [ %7, %34 ]
  call void @_ZN2vl3PtrINS_7parsing9analyzing9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.sink) #4
  %35 = invoke noundef zeroext i1 @_ZN2vl11collections8ListBaseIPNS_7parsing9analyzing5StateES5_E8RemoveAtEl(ptr noundef nonnull align 8 dereferenceable(33) %2, i64 noundef %.03974)
          to label %52 unwind label %.loopexit.split-lp

.loopexit:                                        ; preds = %.lr.ph, %28, %29, %30, %40
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %51

.loopexit.split-lp:                               ; preds = %.invoke, %33, %43
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %51

36:                                               ; preds = %25
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl3PtrINS_7parsing9analyzing8RuleInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  br label %51

38:                                               ; preds = %34
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl3PtrINS_7parsing9analyzing9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  br label %51

40:                                               ; preds = %32
  %41 = invoke noundef zeroext i1 @_ZN2vl7parsing9analyzing23IsMergableBecauseInputsEPNS1_5StateES3_(ptr noundef %13, ptr noundef %24)
          to label %42 unwind label %.loopexit

42:                                               ; preds = %40
  br i1 %41, label %43, label %.thread48

43:                                               ; preds = %42
  invoke void @_ZN2vl3PtrINS_7parsing9analyzing9AutomatonEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %44 unwind label %.loopexit.split-lp

44:                                               ; preds = %43
  invoke void @_ZN2vl7parsing9analyzing32MergeState2ToState1BecauseInputsENS_3PtrINS1_9AutomatonEEEPNS1_5StateES6_(ptr noundef nonnull %8, ptr noundef %13, ptr noundef %24)
          to label %.invoke unwind label %45

45:                                               ; preds = %44
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl3PtrINS_7parsing9analyzing9AutomatonEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #4
  br label %51

.thread48:                                        ; preds = %23, %27, %42
  %.039 = add nuw nsw i64 %.03974, 1
  %47 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing9analyzing5StateEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %48 = icmp slt i64 %.039, %47
  br i1 %48, label %.lr.ph, label %.thread52, !llvm.loop !9

.thread52:                                        ; preds = %.thread48, %15, %.preheader
  %49 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing9analyzing5StateEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %50 = icmp slt i64 %.03973, %49
  br i1 %50, label %.lr.ph76.backedge, label %._crit_edge

.lr.ph76.backedge:                                ; preds = %.thread52, %52
  %.03875.be = phi i64 [ %.03973, %.thread52 ], [ 0, %52 ]
  br label %.lr.ph76, !llvm.loop !11

51:                                               ; preds = %.loopexit, %.loopexit.split-lp, %38, %45, %36, %20, %18
  %.pn.pn = phi { ptr, i32 } [ %21, %20 ], [ %19, %18 ], [ %39, %38 ], [ %46, %45 ], [ %37, %36 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN2vl11collections10SortedListIPNS_7parsing9analyzing5StateES5_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  resume { ptr, i32 } %.pn.pn

52:                                               ; preds = %.invoke
  %53 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_7parsing9analyzing5StateEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %54 = icmp sgt i64 %53, 0
  br i1 %54, label %.lr.ph76.backedge, label %._crit_edge

._crit_edge:                                      ; preds = %52, %.thread52, %3
  call void @_ZN2vl11collections10SortedListIPNS_7parsing9analyzing5StateES5_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl11collections10SortedListIPNS_7parsing9analyzing5StateES5_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 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 = { 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 #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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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