; 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.786" = type { %"class.vl::collections::ListBase.base.792", %"class.vl::collections::IEnumerable.790" }
%"class.vl::collections::ListBase.base.792" = type <{ %"class.vl::collections::ArrayBase.base.791", i64, i8 }>
%"class.vl::collections::ArrayBase.base.791" = type { %"class.vl::collections::ListStore.789", ptr, i64 }
%"class.vl::collections::ListStore.789" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::collections::IEnumerable.790" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }

@_ZTIN2vl10reflection11description23TypeDescriptorExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN2vl10reflection11description31ArgumentCountMismtatchExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8

; 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(...)

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #1

declare void @__cxa_end_catch()

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN2vl10reflection11description5Value12SelectMethodEPNS1_16IMethodGroupInfoERNS_11collections5ArrayIS2_S2_EE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.vl::collections::List.786", align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = getelementptr inbounds ptr, ptr %16, i64 2
  %18 = load ptr, ptr %17, align 8
  %19 = call noundef i64 %18(ptr noundef nonnull align 8 dereferenceable(8) %15)
  %20 = icmp eq i64 %19, 1
  br i1 %20, label %21, label %27

21:                                               ; preds = %2
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds ptr, ptr %23, i64 3
  %25 = load ptr, ptr %24, align 8
  %26 = call noundef ptr %25(ptr noundef nonnull align 8 dereferenceable(8) %22, i64 noundef 0)
  store ptr %26, ptr %3, align 8
  br label %156

27:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 48, ptr %6) #5
  call void @_ZN2vl11collections4ListIPNS_10reflection11description11IMethodInfoES5_EC1Ev(ptr noundef nonnull align 8 dereferenceable(33) %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %28

28:                                               ; preds = %68, %27
  %29 = load i64, ptr %7, align 8, !tbaa !11
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = getelementptr inbounds ptr, ptr %31, i64 2
  %33 = load ptr, ptr %32, align 8
  %34 = invoke noundef i64 %33(ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %35 unwind label %38

35:                                               ; preds = %28
  %36 = icmp slt i64 %29, %34
  br i1 %36, label %42, label %37

37:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %72

38:                                               ; preds = %28
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %8, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %9, align 4
  br label %71

42:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = load i64, ptr %7, align 8, !tbaa !11
  %45 = load ptr, ptr %43, align 8, !tbaa !9
  %46 = getelementptr inbounds ptr, ptr %45, i64 3
  %47 = load ptr, ptr %46, align 8
  %48 = invoke noundef ptr %47(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef %44)
          to label %49 unwind label %63

49:                                               ; preds = %42
  store ptr %48, ptr %10, align 8, !tbaa !5
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = getelementptr inbounds ptr, ptr %51, i64 4
  %53 = load ptr, ptr %52, align 8
  %54 = invoke noundef i64 %53(ptr noundef nonnull align 8 dereferenceable(8) %50)
          to label %55 unwind label %63

55:                                               ; preds = %49
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseINS_10reflection11description5ValueEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %56)
          to label %58 unwind label %63

58:                                               ; preds = %55
  %59 = icmp eq i64 %54, %57
  br i1 %59, label %60, label %67

60:                                               ; preds = %58
  %61 = invoke noundef i64 @_ZN2vl11collections4ListIPNS_10reflection11description11IMethodInfoES5_E3AddERKS5_(ptr noundef nonnull align 8 dereferenceable(33) %6, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %62 unwind label %63

62:                                               ; preds = %60
  br label %67

63:                                               ; preds = %60, %55, %49, %42
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %8, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %71

67:                                               ; preds = %62, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %68

68:                                               ; preds = %67
  %69 = load i64, ptr %7, align 8, !tbaa !11
  %70 = add nsw i64 %69, 1
  store i64 %70, ptr %7, align 8, !tbaa !11
  br label %28, !llvm.loop !13

71:                                               ; preds = %63, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %155

72:                                               ; preds = %37
  %73 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_10reflection11description11IMethodInfoEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %74 unwind label %80

74:                                               ; preds = %72
  %75 = icmp eq i64 %73, 0
  br i1 %75, label %76, label %88

76:                                               ; preds = %74
  %77 = call ptr @__cxa_allocate_exception(i64 56) #5
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN2vl10reflection11description31ArgumentCountMismtatchExceptionC2EPNS1_16IMethodGroupInfoE(ptr noundef nonnull align 8 dereferenceable(56) %77, ptr noundef %78)
          to label %79 unwind label %84

79:                                               ; preds = %76
  invoke void @__cxa_throw(ptr %77, ptr @_ZTIN2vl10reflection11description31ArgumentCountMismtatchExceptionE, ptr @_ZN2vl9ExceptionD2Ev) #6
          to label %163 unwind label %80

80:                                               ; preds = %150, %92, %88, %79, %72
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %8, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %9, align 4
  br label %155

84:                                               ; preds = %76
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %8, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %9, align 4
  call void @__cxa_free_exception(ptr %77) #5
  br label %155

88:                                               ; preds = %74
  %89 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_10reflection11description11IMethodInfoEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %90 unwind label %80

90:                                               ; preds = %88
  %91 = icmp eq i64 %89, 1
  br i1 %91, label %92, label %96

92:                                               ; preds = %90
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_10reflection11description11IMethodInfoES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %6, i64 noundef 0)
          to label %94 unwind label %80

94:                                               ; preds = %92
  %95 = load ptr, ptr %93, align 8, !tbaa !5
  store ptr %95, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %154

96:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %97

97:                                               ; preds = %139, %96
  %98 = load i64, ptr %12, align 8, !tbaa !11
  %99 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_10reflection11description11IMethodInfoEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %100 unwind label %103

100:                                              ; preds = %97
  %101 = icmp slt i64 %98, %99
  br i1 %101, label %107, label %102

102:                                              ; preds = %100
  store i32 5, ptr %11, align 4
  br label %147

103:                                              ; preds = %97
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %8, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %9, align 4
  br label %149

107:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %108 = load i64, ptr %12, align 8, !tbaa !11
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_10reflection11description11IMethodInfoES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %6, i64 noundef %108)
          to label %110 unwind label %119

110:                                              ; preds = %107
  %111 = load ptr, ptr %109, align 8, !tbaa !5
  store ptr %111, ptr %13, align 8, !tbaa !5
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = load ptr, ptr %112, align 8, !tbaa !9
  %115 = getelementptr inbounds ptr, ptr %114, i64 8
  %116 = load ptr, ptr %115, align 8
  invoke void %116(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull align 8 dereferenceable(24) %113)
          to label %117 unwind label %123

117:                                              ; preds = %110
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %118, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %136

119:                                              ; preds = %107
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %8, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %9, align 4
  br label %146

123:                                              ; preds = %110
  %124 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN2vl10reflection11description23TypeDescriptorExceptionE
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %8, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %9, align 4
  br label %127

127:                                              ; preds = %123
  %128 = load i32, ptr %9, align 4
  %129 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIN2vl10reflection11description23TypeDescriptorExceptionE) #5
  %130 = icmp eq i32 %128, %129
  br i1 %130, label %131, label %146

131:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %132 = load ptr, ptr %8, align 8
  %133 = call ptr @__cxa_begin_catch(ptr %132) #5
  store ptr %133, ptr %14, align 8
  invoke void @__cxa_end_catch()
          to label %134 unwind label %142

134:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %135

135:                                              ; preds = %134
  store i32 0, ptr %11, align 4
  br label %136

136:                                              ; preds = %135, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %137 = load i32, ptr %11, align 4
  switch i32 %137, label %147 [
    i32 0, label %138
  ]

138:                                              ; preds = %136
  br label %139

139:                                              ; preds = %138
  %140 = load i64, ptr %12, align 8, !tbaa !11
  %141 = add nsw i64 %140, 1
  store i64 %141, ptr %12, align 8, !tbaa !11
  br label %97, !llvm.loop !15

142:                                              ; preds = %131
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %8, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %146

146:                                              ; preds = %142, %127, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %149

147:                                              ; preds = %136, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %148 = load i32, ptr %11, align 4
  switch i32 %148, label %154 [
    i32 5, label %150
  ]

149:                                              ; preds = %146, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %155

150:                                              ; preds = %147
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_10reflection11description11IMethodInfoES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %6, i64 noundef 0)
          to label %152 unwind label %80

152:                                              ; preds = %150
  %153 = load ptr, ptr %151, align 8, !tbaa !5
  store ptr %153, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %154

154:                                              ; preds = %152, %147, %94
  call void @_ZN2vl11collections4ListIPNS_10reflection11description11IMethodInfoES5_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %6) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #5
  br label %156

155:                                              ; preds = %149, %84, %80, %71
  call void @_ZN2vl11collections4ListIPNS_10reflection11description11IMethodInfoES5_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %6) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #5
  br label %158

156:                                              ; preds = %154, %21
  %157 = load ptr, ptr %3, align 8
  ret ptr %157

158:                                              ; preds = %155
  %159 = load ptr, ptr %8, align 8
  %160 = load i32, ptr %9, align 4
  %161 = insertvalue { ptr, i32 } poison, ptr %159, 0
  %162 = insertvalue { ptr, i32 } %161, i32 %160, 1
  resume { ptr, i32 } %162

163:                                              ; preds = %79
  unreachable
}

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl9ExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind memory(none) }
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 = { 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 = { 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 #5 = { nounwind }
attributes #6 = { noreturn }

!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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; 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.786" = type { %"class.vl::collections::ListBase.base.792", %"class.vl::collections::IEnumerable.790" }
%"class.vl::collections::ListBase.base.792" = type <{ %"class.vl::collections::ArrayBase.base.791", i64, i8 }>
%"class.vl::collections::ArrayBase.base.791" = type { %"class.vl::collections::ListStore.789", ptr, i64 }
%"class.vl::collections::ListStore.789" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::collections::IEnumerable.790" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }

@_ZTIN2vl10reflection11description23TypeDescriptorExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN2vl10reflection11description31ArgumentCountMismtatchExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8

; 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(...)

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

declare void @__cxa_free_exception(ptr) local_unnamed_addr

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #1

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN2vl10reflection11description5Value12SelectMethodEPNS1_16IMethodGroupInfoERNS_11collections5ArrayIS2_S2_EE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.vl::collections::List.786", align 8
  %4 = alloca ptr, align 8
  %5 = load ptr, ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 16
  %7 = load ptr, ptr %6, align 8
  %8 = tail call noundef i64 %7(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %9 = icmp eq i64 %8, 1
  br i1 %9, label %10, label %15

10:                                               ; preds = %2
  %11 = load ptr, ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 24
  %13 = load ptr, ptr %12, align 8
  %14 = tail call noundef ptr %13(ptr noundef nonnull align 8 dereferenceable(8) %0, i64 noundef 0)
  br label %86

15:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #5
  call void @_ZN2vl11collections4ListIPNS_10reflection11description11IMethodInfoES5_EC1Ev(ptr noundef nonnull align 8 dereferenceable(33) %3)
  br label %16

16:                                               ; preds = %45, %15
  %.022 = phi i64 [ 0, %15 ], [ %46, %45 ]
  %17 = load ptr, ptr %0, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  %19 = load ptr, ptr %18, align 8
  %20 = invoke noundef i64 %19(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %21 unwind label %26

21:                                               ; preds = %16
  %22 = icmp slt i64 %.022, %20
  br i1 %22, label %28, label %23

23:                                               ; preds = %21
  %24 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_10reflection11description11IMethodInfoEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %25 = icmp eq i64 %24, 0
  br i1 %25, label %47, label %54

26:                                               ; preds = %16
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

28:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %29 = load ptr, ptr %0, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 24
  %31 = load ptr, ptr %30, align 8
  %32 = invoke noundef ptr %31(ptr noundef nonnull align 8 dereferenceable(8) %0, i64 noundef %.022)
          to label %33 unwind label %43

33:                                               ; preds = %28
  store ptr %32, ptr %4, align 8, !tbaa !8
  %34 = load ptr, ptr %32, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 32
  %36 = load ptr, ptr %35, align 8
  %37 = invoke noundef i64 %36(ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %38 unwind label %43

38:                                               ; preds = %33
  %39 = call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_10reflection11description5ValueEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %40 = icmp eq i64 %37, %39
  br i1 %40, label %41, label %45

41:                                               ; preds = %38
  %42 = invoke noundef i64 @_ZN2vl11collections4ListIPNS_10reflection11description11IMethodInfoES5_E3AddERKS5_(ptr noundef nonnull align 8 dereferenceable(33) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %45 unwind label %43

43:                                               ; preds = %41, %33, %28
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %.loopexit

45:                                               ; preds = %41, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %46 = add nuw nsw i64 %.022, 1
  br label %16, !llvm.loop !11

47:                                               ; preds = %23
  %48 = call ptr @__cxa_allocate_exception(i64 56) #5
  invoke void @_ZN2vl10reflection11description31ArgumentCountMismtatchExceptionC2EPNS1_16IMethodGroupInfoE(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull %0)
          to label %49 unwind label %52

49:                                               ; preds = %47
  invoke void @__cxa_throw(ptr nonnull %48, ptr nonnull @_ZTIN2vl10reflection11description31ArgumentCountMismtatchExceptionE, ptr nonnull @_ZN2vl9ExceptionD2Ev) #6
          to label %87 unwind label %50

50:                                               ; preds = %._crit_edge, %58, %49
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

52:                                               ; preds = %47
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %48) #5
  br label %.loopexit

54:                                               ; preds = %23
  %55 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_10reflection11description11IMethodInfoEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %56 = icmp eq i64 %55, 1
  br i1 %56, label %58, label %.preheader

.preheader:                                       ; preds = %54
  %57 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_10reflection11description11IMethodInfoEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %.not43 = icmp sgt i64 %57, 0
  br i1 %.not43, label %.lr.ph, label %._crit_edge

58:                                               ; preds = %54
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_10reflection11description11IMethodInfoES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %3, i64 noundef 0)
          to label %60 unwind label %50

60:                                               ; preds = %58
  %61 = load ptr, ptr %59, align 8, !tbaa !8
  br label %.thread37

.lr.ph:                                           ; preds = %.preheader, %78
  %.02344 = phi i64 [ %79, %78 ], [ 0, %.preheader ]
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_10reflection11description11IMethodInfoES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %3, i64 noundef %.02344)
          to label %63 unwind label %68

63:                                               ; preds = %.lr.ph
  %64 = load ptr, ptr %62, align 8, !tbaa !8
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 64
  %67 = load ptr, ptr %66, align 8
  invoke void %67(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %.thread37 unwind label %70

68:                                               ; preds = %.lr.ph
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

70:                                               ; preds = %63
  %71 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN2vl10reflection11description23TypeDescriptorExceptionE
  %72 = extractvalue { ptr, i32 } %71, 1
  %73 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTIN2vl10reflection11description23TypeDescriptorExceptionE) #5
  %74 = icmp eq i32 %72, %73
  br i1 %74, label %75, label %.loopexit

75:                                               ; preds = %70
  %76 = extractvalue { ptr, i32 } %71, 0
  %77 = call ptr @__cxa_begin_catch(ptr %76) #5
  invoke void @__cxa_end_catch()
          to label %78 unwind label %81

78:                                               ; preds = %75
  %79 = add nuw nsw i64 %.02344, 1
  %80 = call noundef i64 @_ZNK2vl11collections9ArrayBaseIPNS_10reflection11description11IMethodInfoEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %.not = icmp slt i64 %79, %80
  br i1 %.not, label %.lr.ph, label %._crit_edge, !llvm.loop !13

81:                                               ; preds = %75
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

._crit_edge:                                      ; preds = %78, %.preheader
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vl11collections4ListIPNS_10reflection11description11IMethodInfoES5_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %3, i64 noundef 0)
          to label %84 unwind label %50

84:                                               ; preds = %._crit_edge
  %85 = load ptr, ptr %83, align 8, !tbaa !8
  br label %.thread37

.thread37:                                        ; preds = %63, %84, %60
  %.3 = phi ptr [ %61, %60 ], [ %85, %84 ], [ %64, %63 ]
  call void @_ZN2vl11collections4ListIPNS_10reflection11description11IMethodInfoES5_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %3) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #5
  br label %86

.loopexit:                                        ; preds = %70, %26, %43, %68, %81, %52, %50
  %.merged = phi { ptr, i32 } [ %51, %50 ], [ %53, %52 ], [ %82, %81 ], [ %69, %68 ], [ %44, %43 ], [ %27, %26 ], [ %71, %70 ]
  call void @_ZN2vl11collections4ListIPNS_10reflection11description11IMethodInfoES5_ED1Ev(ptr noundef nonnull align 8 dereferenceable(33) %3) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #5
  resume { ptr, i32 } %.merged

86:                                               ; preds = %.thread37, %10
  %.4 = phi ptr [ %14, %10 ], [ %.3, %.thread37 ]
  ret ptr %.4

87:                                               ; preds = %49
  unreachable
}

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl9ExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nosync nounwind memory(none) }
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 = { 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 = { 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 #5 = { nounwind }
attributes #6 = { noreturn }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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