; LLVM IR from vczh/herodb :: Kernel/Source/Vlpp.ll (ZN2vl10reflection11description13FieldInfoImpl8GetValueERKNS1_5ValueE)

; 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::FieldInfoImpl" = type { %"class.vl::Object", %"class.vl::reflection::description::IPropertyInfo.base", ptr, %"class.vl::Ptr.872", %"class.vl::ObjectString", %"class.vl::reflection::description::IMemberInfo.base", %"class.vl::reflection::IDescriptable.base", %"class.vl::Interface", %"class.vl::reflection::DescriptableObject" }
%"class.vl::reflection::description::IPropertyInfo.base" = type { %"class.vl::reflection::Description.base.803" }
%"class.vl::reflection::Description.base.803" = type { ptr }
%"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 ptr @_ZNK2vl10reflection11description5Value17GetTypeDescriptorEv(ptr noundef nonnull align 8 dereferenceable(112)) #2 align 2

; 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 @_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 @_ZN2vl10reflection11description13FieldInfoImpl8GetValueERKNS1_5ValueE(ptr dead_on_unwind noalias writable sret(%"class.vl::reflection::description::Value") align 8 %0, ptr noundef nonnull align 8 dereferenceable(104) %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 ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.vl::ObjectString", align 8
  %14 = 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
  %15 = load ptr, ptr %5, align 8
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = call noundef zeroext i1 @_ZNK2vl10reflection11description5Value6IsNullEv(ptr noundef nonnull align 8 dereferenceable(112) %16)
  br i1 %17, label %18, label %35

18:                                               ; preds = %3
  store i1 true, ptr %10, align 1
  %19 = 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 %20 unwind label %23

20:                                               ; preds = %18
  %21 = getelementptr inbounds i8, ptr %15, i64 8
  invoke void @_ZN2vl10reflection11description21ArgumentNullExceptionC2ERKNS_12ObjectStringIwEEPNS1_13IPropertyInfoE(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef %21)
          to label %22 unwind label %27

22:                                               ; preds = %20
  store i1 false, ptr %10, align 1
  invoke void @__cxa_throw(ptr %19, ptr @_ZTIN2vl10reflection11description21ArgumentNullExceptionE, ptr @_ZN2vl9ExceptionD2Ev) #5
          to label %82 unwind label %27

23:                                               ; preds = %18
  %24 = landingpad { ptr, i32 }
          cleanup
  %25 = extractvalue { ptr, i32 } %24, 0
  store ptr %25, ptr %8, align 8
  %26 = extractvalue { ptr, i32 } %24, 1
  store i32 %26, ptr %9, align 4
  br label %31

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

31:                                               ; preds = %27, %23
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #4
  %32 = load i1, ptr %10, align 1
  br i1 %32, label %33, label %34

33:                                               ; preds = %31
  call void @__cxa_free_exception(ptr %19) #4
  br label %34

34:                                               ; preds = %33, %31
  br label %77

35:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = call noundef ptr @_ZNK2vl10reflection11description5Value17GetTypeDescriptorEv(ptr noundef nonnull align 8 dereferenceable(112) %36)
  store ptr %37, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = getelementptr inbounds ptr, ptr %39, i64 4
  %41 = load ptr, ptr %40, align 8
  %42 = call noundef ptr %41(ptr noundef nonnull align 8 dereferenceable(8) %38)
  %43 = icmp ne ptr %42, null
  %44 = zext i1 %43 to i64
  %45 = select i1 %43, i32 3, i32 1
  store i32 %45, ptr %12, align 4, !tbaa !11
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %"class.vl::reflection::description::FieldInfoImpl", ptr %15, i32 0, i32 2
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = load i32, ptr %12, align 4, !tbaa !11
  %50 = call noundef zeroext i1 @_ZNK2vl10reflection11description5Value12CanConvertToEPNS1_15ITypeDescriptorENS2_9ValueTypeE(ptr noundef nonnull align 8 dereferenceable(112) %46, ptr noundef %48, i32 noundef %49)
  br i1 %50, label %71, label %51

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

53:                                               ; preds = %51
  %54 = getelementptr inbounds %"class.vl::reflection::description::FieldInfoImpl", ptr %15, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !13
  %56 = load i32, ptr %12, align 4, !tbaa !11
  %57 = 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) %13, ptr noundef %55, i32 noundef %56, ptr noundef nonnull align 8 dereferenceable(112) %57)
          to label %58 unwind label %63

58:                                               ; preds = %53
  store i1 false, ptr %14, align 1
  invoke void @__cxa_throw(ptr %52, ptr @_ZTIN2vl10reflection11description30ArgumentTypeMismtatchExceptionE, ptr @_ZN2vl9ExceptionD2Ev) #5
          to label %82 unwind label %63

59:                                               ; preds = %51
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %8, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %9, align 4
  br label %67

63:                                               ; preds = %58, %53
  %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 @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #4
  br label %67

67:                                               ; preds = %63, %59
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #4
  %68 = load i1, ptr %14, align 1
  br i1 %68, label %69, label %70

69:                                               ; preds = %67
  call void @__cxa_free_exception(ptr %52) #4
  br label %70

70:                                               ; preds = %69, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %77

71:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %72

72:                                               ; preds = %71
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %15, align 8, !tbaa !9
  %75 = getelementptr inbounds ptr, ptr %74, i64 2
  %76 = load ptr, ptr %75, align 8
  call void %76(ptr dead_on_unwind writable sret(%"class.vl::reflection::description::Value") align 8 %0, ptr noundef nonnull align 8 dereferenceable(104) %15, ptr noundef nonnull align 8 dereferenceable(112) %73)
  ret void

77:                                               ; preds = %70, %34
  %78 = load ptr, ptr %8, align 8
  %79 = load i32, ptr %9, align 4
  %80 = insertvalue { ptr, i32 } poison, ptr %78, 0
  %81 = insertvalue { ptr, i32 } %80, i32 %79, 1
  resume { ptr, i32 } %81

82:                                               ; preds = %58, %22
  unreachable
}

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

; 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, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN2vl10reflection11description5Value9ValueTypeE", !7, i64 0}
!13 = !{!14, !6, i64 16}
!14 = !{!"_ZTSN2vl10reflection11description13FieldInfoImplE", !15, i64 0, !16, i64 8, !6, i64 16, !18, i64 24, !19, i64 56}
!15 = !{!"_ZTSN2vl6ObjectE"}
!16 = !{!"_ZTSN2vl10reflection11description13IPropertyInfoE", !17, i64 0}
!17 = !{!"_ZTSN2vl10reflection11DescriptionINS0_11description13IPropertyInfoEEE"}
!18 = !{!"_ZTSN2vl3PtrINS_10reflection11description9ITypeInfoEEE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!"_ZTSN2vl12ObjectStringIwEE", !15, i64 0, !6, i64 8, !6, i64 16, !20, i64 24, !20, i64 32, !20, i64 40}
!20 = !{!"long", !7, 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 ptr @_ZNK2vl10reflection11description5Value17GetTypeDescriptorEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #2 align 2

; 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 @_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 @_ZN2vl10reflection11description13FieldInfoImpl8GetValueERKNS1_5ValueE(ptr dead_on_unwind noalias writable sret(%"class.vl::reflection::description::Value") align 8 %0, ptr noundef nonnull align 8 dereferenceable(104) %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 %17

7:                                                ; preds = %3
  %8 = 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 %9 unwind label %.thread

9:                                                ; preds = %7
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  invoke void @_ZN2vl10reflection11description21ArgumentNullExceptionC2ERKNS_12ObjectStringIwEEPNS1_13IPropertyInfoE(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull %10)
          to label %12 unwind label %.thread26

.thread26:                                        ; preds = %9
  %11 = 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 %16

12:                                               ; preds = %9
  invoke void @__cxa_throw(ptr nonnull %8, ptr nonnull @_ZTIN2vl10reflection11description21ArgumentNullExceptionE, ptr nonnull @_ZN2vl9ExceptionD2Ev) #5
          to label %42 unwind label %14

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

14:                                               ; preds = %12
  %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 %41

16:                                               ; preds = %.thread26, %.thread
  %.pn2025 = phi { ptr, i32 } [ %13, %.thread ], [ %11, %.thread26 ]
  call void @__cxa_free_exception(ptr %8) #4
  br label %41

17:                                               ; preds = %3
  %18 = tail call noundef ptr @_ZNK2vl10reflection11description5Value17GetTypeDescriptorEv(ptr noundef nonnull align 8 dereferenceable(112) %2)
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 32
  %21 = load ptr, ptr %20, align 8
  %22 = tail call noundef ptr %21(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %.not = icmp eq ptr %22, null
  %23 = select i1 %.not, i32 1, i32 3
  %24 = getelementptr inbounds i8, ptr %1, i64 16
  %25 = load ptr, ptr %24, align 8, !tbaa !8
  %26 = tail call noundef zeroext i1 @_ZNK2vl10reflection11description5Value12CanConvertToEPNS1_15ITypeDescriptorENS2_9ValueTypeE(ptr noundef nonnull align 8 dereferenceable(112) %2, ptr noundef %25, i32 noundef %23)
  br i1 %26, label %37, label %27

27:                                               ; preds = %17
  %28 = 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 %29 unwind label %.thread28

29:                                               ; preds = %27
  %30 = load ptr, ptr %24, align 8, !tbaa !8
  invoke void @_ZN2vl10reflection11description30ArgumentTypeMismtatchExceptionC2ERKNS_12ObjectStringIwEEPNS1_15ITypeDescriptorENS1_5Value9ValueTypeERKS9_(ptr noundef nonnull align 8 dereferenceable(56) %28, ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef %30, i32 noundef %23, ptr noundef nonnull align 8 dereferenceable(112) %2)
          to label %32 unwind label %.thread32

.thread32:                                        ; preds = %29
  %31 = 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 %36

32:                                               ; preds = %29
  invoke void @__cxa_throw(ptr nonnull %28, ptr nonnull @_ZTIN2vl10reflection11description30ArgumentTypeMismtatchExceptionE, ptr nonnull @_ZN2vl9ExceptionD2Ev) #5
          to label %42 unwind label %34

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

34:                                               ; preds = %32
  %35 = 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 %41

36:                                               ; preds = %.thread32, %.thread28
  %.pn31 = phi { ptr, i32 } [ %33, %.thread28 ], [ %31, %.thread32 ]
  call void @__cxa_free_exception(ptr %28) #4
  br label %41

37:                                               ; preds = %17
  %38 = load ptr, ptr %1, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %40 = load ptr, ptr %39, align 8
  tail call void %40(ptr dead_on_unwind writable sret(%"class.vl::reflection::description::Value") align 8 %0, ptr noundef nonnull align 8 dereferenceable(104) %1, ptr noundef nonnull align 8 dereferenceable(112) %2)
  ret void

41:                                               ; preds = %34, %14, %36, %16
  %.pn20.pn = phi { ptr, i32 } [ %.pn2025, %16 ], [ %15, %14 ], [ %.pn31, %36 ], [ %35, %34 ]
  resume { ptr, i32 } %.pn20.pn

42:                                               ; preds = %32, %12
  unreachable
}

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

; 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, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !13, i64 16}
!9 = !{!"_ZTSN2vl10reflection11description13FieldInfoImplE", !10, i64 0, !11, i64 8, !13, i64 16, !15, i64 24, !16, i64 56}
!10 = !{!"_ZTSN2vl6ObjectE"}
!11 = !{!"_ZTSN2vl10reflection11description13IPropertyInfoE", !12, i64 0}
!12 = !{!"_ZTSN2vl10reflection11DescriptionINS0_11description13IPropertyInfoEEE"}
!13 = !{!"any pointer", !14, i64 0}
!14 = !{!"omnipotent char", !7, i64 0}
!15 = !{!"_ZTSN2vl3PtrINS_10reflection11description9ITypeInfoEEE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!16 = !{!"_ZTSN2vl12ObjectStringIwEE", !10, i64 0, !13, i64 8, !13, i64 16, !17, i64 24, !17, i64 32, !17, i64 40}
!17 = !{!"long", !14, i64 0}


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