; 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::reflection::description::Value" = type { %"class.vl::Object", i32, ptr, %"class.vl::Ptr.777", %"class.vl::ObjectString", ptr }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.777" = type { ptr, ptr, ptr, ptr }
%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::reflection::description::MethodInfoImpl" = type <{ %"class.vl::Object", %"class.vl::reflection::description::IMethodInfo.base", ptr, ptr, %"class.vl::collections::List.876", %"class.vl::Ptr.872", i8, [7 x i8], %"class.vl::reflection::description::IMemberInfo.base", %"class.vl::reflection::IDescriptable.base", %"class.vl::Interface", %"class.vl::reflection::DescriptableObject" }>
%"class.vl::reflection::description::IMethodInfo.base" = type { %"class.vl::reflection::Description.base.795" }
%"class.vl::reflection::Description.base.795" = type { ptr }
%"class.vl::collections::List.876" = type { %"class.vl::collections::ListBase.base.882", %"class.vl::collections::IEnumerable.880" }
%"class.vl::collections::ListBase.base.882" = type <{ %"class.vl::collections::ArrayBase.base.881", i64, i8 }>
%"class.vl::collections::ArrayBase.base.881" = type { %"class.vl::collections::ListStore.879", ptr, i64 }
%"class.vl::collections::ListStore.879" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.880" = type { %"class.vl::Interface" }
%"class.vl::Ptr.872" = type { ptr, ptr, ptr, ptr }
%"class.vl::reflection::description::IMemberInfo.base" = type { %"class.vl::reflection::Description.base.785" }
%"class.vl::reflection::Description.base.785" = type { ptr }
%"class.vl::reflection::IDescriptable.base" = type { %"class.vl::reflection::Description.base.17" }
%"class.vl::reflection::Description.base.17" = type { ptr }
%"class.vl::Interface" = type { ptr }
%"class.vl::reflection::DescriptableObject" = type { ptr, i64, ptr, i64, ptr, %"class.vl::Ptr.12" }
%"class.vl::Ptr.12" = type { ptr, ptr, ptr, ptr }

@.str.408 = external hidden unnamed_addr constant [11 x i32], align 4
@_ZTIN2vl10reflection11description21ArgumentNullExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN2vl10reflection11description30ArgumentTypeMismtatchExceptionE = 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(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i1 noundef zeroext) unnamed_addr #1 align 2

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

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK2vl10reflection11description5Value6IsNullEv(ptr noundef nonnull align 8 dereferenceable(112)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK2vl10reflection11description5Value12CanConvertToEPNS1_15ITypeDescriptorENS2_9ValueTypeE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, i32 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl10reflection11description30ArgumentTypeMismtatchExceptionC2ERKNS_12ObjectStringIwEEPNS1_15ITypeDescriptorENS1_5Value9ValueTypeERKS9_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl10reflection11description14MethodInfoImpl19CreateFunctionProxyERKNS1_5ValueE(ptr dead_on_unwind noalias writable sret(%"class.vl::reflection::description::Value") align 8 %0, ptr noundef nonnull align 8 dereferenceable(113) %1, ptr noundef nonnull align 8 dereferenceable(112) %2) unnamed_addr #1 align 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::ObjectString", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i1, align 1
  %11 = alloca %"class.vl::ObjectString", align 8
  %12 = alloca i1, align 1
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %13 = load ptr, ptr %5, align 8
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = call noundef zeroext i1 @_ZNK2vl10reflection11description5Value6IsNullEv(ptr noundef nonnull align 8 dereferenceable(112) %14)
  br i1 %15, label %16, label %38

16:                                               ; preds = %3
  %17 = getelementptr inbounds %"class.vl::reflection::description::MethodInfoImpl", ptr %13, i32 0, i32 6
  %18 = load i8, ptr %17, align 8, !tbaa !9, !range !21, !noundef !22
  %19 = trunc i8 %18 to i1
  br i1 %19, label %37, label %20

20:                                               ; preds = %16
  store i1 true, ptr %10, align 1
  %21 = call ptr @__cxa_allocate_exception(i64 56) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #4
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef @.str.408, i1 noundef zeroext true)
          to label %22 unwind label %25

22:                                               ; preds = %20
  %23 = getelementptr inbounds i8, ptr %13, i64 8
  invoke void @_ZN2vl10reflection11description21ArgumentNullExceptionC2ERKNS_12ObjectStringIwEEPNS1_11IMethodInfoE(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef %23)
          to label %24 unwind label %29

24:                                               ; preds = %22
  store i1 false, ptr %10, align 1
  invoke void @__cxa_throw(ptr %21, ptr @_ZTIN2vl10reflection11description21ArgumentNullExceptionE, ptr @_ZN2vl9ExceptionD2Ev) #5
          to label %90 unwind label %29

25:                                               ; preds = %20
  %26 = landingpad { ptr, i32 }
          cleanup
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %8, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %9, align 4
  br label %33

29:                                               ; preds = %24, %22
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %8, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %9, align 4
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  br label %33

33:                                               ; preds = %29, %25
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #4
  %34 = load i1, ptr %10, align 1
  br i1 %34, label %35, label %36

35:                                               ; preds = %33
  call void @__cxa_free_exception(ptr %21) #4
  br label %36

36:                                               ; preds = %35, %33
  br label %85

37:                                               ; preds = %16
  br label %80

38:                                               ; preds = %3
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.vl::reflection::description::MethodInfoImpl", ptr %13, i32 0, i32 2
  %41 = load ptr, ptr %40, align 8, !tbaa !23
  %42 = load ptr, ptr %41, align 8, !tbaa !24
  %43 = getelementptr i8, ptr %42, i64 -32
  %44 = load i64, ptr %43, align 8
  %45 = getelementptr inbounds i8, ptr %41, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !24
  %47 = getelementptr inbounds ptr, ptr %46, i64 2
  %48 = load ptr, ptr %47, align 8
  %49 = call noundef ptr %48(ptr noundef nonnull align 8 dereferenceable(8) %45)
  %50 = call noundef zeroext i1 @_ZNK2vl10reflection11description5Value12CanConvertToEPNS1_15ITypeDescriptorENS2_9ValueTypeE(ptr noundef nonnull align 8 dereferenceable(112) %39, ptr noundef %49, i32 noundef 1)
  br i1 %50, label %79, label %51

51:                                               ; preds = %38
  store i1 true, ptr %12, align 1
  %52 = call ptr @__cxa_allocate_exception(i64 56) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #4
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef @.str.408, i1 noundef zeroext true)
          to label %53 unwind label %67

53:                                               ; preds = %51
  %54 = getelementptr inbounds %"class.vl::reflection::description::MethodInfoImpl", ptr %13, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !23
  %56 = load ptr, ptr %55, align 8, !tbaa !24
  %57 = getelementptr i8, ptr %56, i64 -32
  %58 = load i64, ptr %57, align 8
  %59 = getelementptr inbounds i8, ptr %55, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !24
  %61 = getelementptr inbounds ptr, ptr %60, i64 2
  %62 = load ptr, ptr %61, align 8
  %63 = invoke noundef ptr %62(ptr noundef nonnull align 8 dereferenceable(8) %59)
          to label %64 unwind label %71

64:                                               ; preds = %53
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN2vl10reflection11description30ArgumentTypeMismtatchExceptionC2ERKNS_12ObjectStringIwEEPNS1_15ITypeDescriptorENS1_5Value9ValueTypeERKS9_(ptr noundef nonnull align 8 dereferenceable(56) %52, ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef %63, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(112) %65)
          to label %66 unwind label %71

66:                                               ; preds = %64
  store i1 false, ptr %12, align 1
  invoke void @__cxa_throw(ptr %52, ptr @_ZTIN2vl10reflection11description30ArgumentTypeMismtatchExceptionE, ptr @_ZN2vl9ExceptionD2Ev) #5
          to label %90 unwind label %71

67:                                               ; preds = %51
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %8, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %9, align 4
  br label %75

71:                                               ; preds = %66, %64, %53
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %8, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %9, align 4
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #4
  br label %75

75:                                               ; preds = %71, %67
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #4
  %76 = load i1, ptr %12, align 1
  br i1 %76, label %77, label %78

77:                                               ; preds = %75
  call void @__cxa_free_exception(ptr %52) #4
  br label %78

78:                                               ; preds = %77, %75
  br label %85

79:                                               ; preds = %38
  br label %80

80:                                               ; preds = %79, %37
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load ptr, ptr %13, align 8, !tbaa !24
  %83 = getelementptr inbounds ptr, ptr %82, i64 3
  %84 = load ptr, ptr %83, align 8
  call void %84(ptr dead_on_unwind writable sret(%"class.vl::reflection::description::Value") align 8 %0, ptr noundef nonnull align 8 dereferenceable(113) %13, ptr noundef nonnull align 8 dereferenceable(112) %81)
  ret void

85:                                               ; preds = %78, %36
  %86 = load ptr, ptr %8, align 8
  %87 = load i32, ptr %9, align 4
  %88 = insertvalue { ptr, i32 } poison, ptr %86, 0
  %89 = insertvalue { ptr, i32 } %88, i32 %87, 1
  resume { ptr, i32 } %89

90:                                               ; preds = %66, %24
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl9ExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) 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 }
attributes #5 = { 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, !19, i64 112}
!10 = !{!"_ZTSN2vl10reflection11description14MethodInfoImplE", !11, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !20, i64 80, !19, i64 112}
!11 = !{!"_ZTSN2vl6ObjectE"}
!12 = !{!"_ZTSN2vl10reflection11description11IMethodInfoE", !13, i64 0}
!13 = !{!"_ZTSN2vl10reflection11DescriptionINS0_11description11IMethodInfoEEE"}
!14 = !{!"_ZTSN2vl11collections4ListINS_3PtrINS_10reflection11description14IParameterInfoEEEPS5_EE", !15, i64 0}
!15 = !{!"_ZTSN2vl11collections8ListBaseINS_3PtrINS_10reflection11description14IParameterInfoEEEPS5_EE", !16, i64 0, !18, i64 24, !19, i64 32}
!16 = !{!"_ZTSN2vl11collections9ArrayBaseINS_3PtrINS_10reflection11description14IParameterInfoEEEEE", !17, i64 0, !6, i64 8, !18, i64 16}
!17 = !{!"_ZTSN2vl11collections9ListStoreINS_3PtrINS_10reflection11description14IParameterInfoEEELb0EEE", !11, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN2vl3PtrINS_10reflection11description9ITypeInfoEEE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!10, !6, i64 16}
!24 = !{!25, !25, i64 0}
!25 = !{!"vtable pointer", !8, i64 0}


; 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::reflection::description::Value" = type { %"class.vl::Object", i32, ptr, %"class.vl::Ptr.777", %"class.vl::ObjectString", ptr }
%"class.vl::Object" = type { ptr }
%"class.vl::Ptr.777" = type { ptr, ptr, ptr, ptr }
%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }

@.str.408 = external hidden unnamed_addr constant [11 x i32], align 4
@_ZTIN2vl10reflection11description21ArgumentNullExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN2vl10reflection11description30ArgumentTypeMismtatchExceptionE = 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(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i1 noundef zeroext) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK2vl10reflection11description5Value6IsNullEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK2vl10reflection11description5Value12CanConvertToEPNS1_15ITypeDescriptorENS2_9ValueTypeE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl10reflection11description30ArgumentTypeMismtatchExceptionC2ERKNS_12ObjectStringIwEEPNS1_15ITypeDescriptorENS1_5Value9ValueTypeERKS9_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl10reflection11description14MethodInfoImpl19CreateFunctionProxyERKNS1_5ValueE(ptr dead_on_unwind noalias writable sret(%"class.vl::reflection::description::Value") align 8 %0, ptr noundef nonnull align 8 dereferenceable(113) %1, ptr noundef nonnull align 8 dereferenceable(112) %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.vl::ObjectString", align 8
  %5 = alloca %"class.vl::ObjectString", align 8
  %6 = tail call noundef zeroext i1 @_ZNK2vl10reflection11description5Value6IsNullEv(ptr noundef nonnull align 8 dereferenceable(112) %2)
  br i1 %6, label %7, label %21

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %1, i64 112
  %9 = load i8, ptr %8, align 8, !tbaa !5, !range !20, !noundef !21
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %50, label %11

11:                                               ; preds = %7
  %12 = tail call ptr @__cxa_allocate_exception(i64 56) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #4
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull @.str.408, i1 noundef zeroext true)
          to label %13 unwind label %.thread

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %1, i64 8
  invoke void @_ZN2vl10reflection11description21ArgumentNullExceptionC2ERKNS_12ObjectStringIwEEPNS1_11IMethodInfoE(ptr noundef nonnull align 8 dereferenceable(56) %12, ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull %14)
          to label %16 unwind label %.thread22

.thread22:                                        ; preds = %13
  %15 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  br label %20

16:                                               ; preds = %13
  invoke void @__cxa_throw(ptr nonnull %12, ptr nonnull @_ZTIN2vl10reflection11description21ArgumentNullExceptionE, ptr nonnull @_ZN2vl9ExceptionD2Ev) #5
          to label %55 unwind label %18

.thread:                                          ; preds = %11
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  br label %20

18:                                               ; preds = %16
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  br label %54

20:                                               ; preds = %.thread22, %.thread
  %.pn1621 = phi { ptr, i32 } [ %17, %.thread ], [ %15, %.thread22 ]
  call void @__cxa_free_exception(ptr %12) #4
  br label %54

21:                                               ; preds = %3
  %22 = getelementptr inbounds i8, ptr %1, i64 16
  %23 = load ptr, ptr %22, align 8, !tbaa !22
  %24 = load ptr, ptr %23, align 8, !tbaa !23
  %25 = getelementptr i8, ptr %24, i64 -32
  %26 = load i64, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr %23, i64 %26
  %28 = load ptr, ptr %27, align 8, !tbaa !23
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  %30 = load ptr, ptr %29, align 8
  %31 = tail call noundef ptr %30(ptr noundef nonnull align 8 dereferenceable(8) %27)
  %32 = tail call noundef zeroext i1 @_ZNK2vl10reflection11description5Value12CanConvertToEPNS1_15ITypeDescriptorENS2_9ValueTypeE(ptr noundef nonnull align 8 dereferenceable(112) %2, ptr noundef %31, i32 noundef 1)
  br i1 %32, label %50, label %33

33:                                               ; preds = %21
  %34 = tail call ptr @__cxa_allocate_exception(i64 56) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #4
  invoke void @_ZN2vl12ObjectStringIwEC2EPKwb(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull @.str.408, i1 noundef zeroext true)
          to label %35 unwind label %.thread24

35:                                               ; preds = %33
  %36 = load ptr, ptr %22, align 8, !tbaa !22
  %37 = load ptr, ptr %36, align 8, !tbaa !23
  %38 = getelementptr i8, ptr %37, i64 -32
  %39 = load i64, ptr %38, align 8
  %40 = getelementptr inbounds i8, ptr %36, i64 %39
  %41 = load ptr, ptr %40, align 8, !tbaa !23
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  %43 = load ptr, ptr %42, align 8
  %44 = invoke noundef ptr %43(ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %45 unwind label %.thread28

45:                                               ; preds = %35
  invoke void @_ZN2vl10reflection11description30ArgumentTypeMismtatchExceptionC2ERKNS_12ObjectStringIwEEPNS1_15ITypeDescriptorENS1_5Value9ValueTypeERKS9_(ptr noundef nonnull align 8 dereferenceable(56) %34, ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef %44, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(112) %2)
          to label %46 unwind label %.thread28

46:                                               ; preds = %45
  invoke void @__cxa_throw(ptr nonnull %34, ptr nonnull @_ZTIN2vl10reflection11description30ArgumentTypeMismtatchExceptionE, ptr nonnull @_ZN2vl9ExceptionD2Ev) #5
          to label %55 unwind label %48

.thread24:                                        ; preds = %33
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  br label %49

.thread28:                                        ; preds = %45, %35
  %lpad.thr_comm = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  br label %49

48:                                               ; preds = %46
  %lpad.thr_comm.split-lp = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  br label %54

49:                                               ; preds = %.thread28, %.thread24
  %.pn27 = phi { ptr, i32 } [ %47, %.thread24 ], [ %lpad.thr_comm, %.thread28 ]
  call void @__cxa_free_exception(ptr %34) #4
  br label %54

50:                                               ; preds = %21, %7
  %51 = load ptr, ptr %1, align 8, !tbaa !23
  %52 = getelementptr inbounds i8, ptr %51, i64 24
  %53 = load ptr, ptr %52, align 8
  tail call void %53(ptr dead_on_unwind writable sret(%"class.vl::reflection::description::Value") align 8 %0, ptr noundef nonnull align 8 dereferenceable(113) %1, ptr noundef nonnull align 8 dereferenceable(112) %2)
  ret void

54:                                               ; preds = %48, %18, %49, %20
  %.pn16.pn = phi { ptr, i32 } [ %.pn1621, %20 ], [ %19, %18 ], [ %.pn27, %49 ], [ %lpad.thr_comm.split-lp, %48 ]
  resume { ptr, i32 } %.pn16.pn

55:                                               ; preds = %46, %16
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl9ExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) 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 }
attributes #5 = { 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, !18, i64 112}
!6 = !{!"_ZTSN2vl10reflection11description14MethodInfoImplE", !7, i64 0, !8, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !19, i64 80, !18, i64 112}
!7 = !{!"_ZTSN2vl6ObjectE"}
!8 = !{!"_ZTSN2vl10reflection11description11IMethodInfoE", !9, i64 0}
!9 = !{!"_ZTSN2vl10reflection11DescriptionINS0_11description11IMethodInfoEEE"}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSN2vl11collections4ListINS_3PtrINS_10reflection11description14IParameterInfoEEEPS5_EE", !14, i64 0}
!14 = !{!"_ZTSN2vl11collections8ListBaseINS_3PtrINS_10reflection11description14IParameterInfoEEEPS5_EE", !15, i64 0, !17, i64 24, !18, i64 32}
!15 = !{!"_ZTSN2vl11collections9ArrayBaseINS_3PtrINS_10reflection11description14IParameterInfoEEEEE", !16, i64 0, !10, i64 8, !17, i64 16}
!16 = !{!"_ZTSN2vl11collections9ListStoreINS_3PtrINS_10reflection11description14IParameterInfoEEELb0EEE", !7, i64 0}
!17 = !{!"long", !11, i64 0}
!18 = !{!"bool", !11, i64 0}
!19 = !{!"_ZTSN2vl3PtrINS_10reflection11description9ITypeInfoEEE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!6, !10, i64 16}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !12, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass