; LLVM IR from thepowersgang/mrustc :: src/mir/mir.ll (ZNK3MIR8Constant5cloneEv)

; 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.HIR::Path" = type { %"class.HIR::Path::Data" }
%"class.HIR::Path::Data" = type { i32, %"union.HIR::Path::Data::DataUnion" }
%"union.HIR::Path::Data::DataUnion" = type { %"struct.HIR::Path::Data::Data_UfcsKnown" }
%"struct.HIR::Path::Data::Data_UfcsKnown" = type { %"class.HIR::TypeRef", %"class.HIR::GenericPath", %class.RcString, %"struct.HIR::PathParams", %"class.std::unique_ptr.8" }
%"class.HIR::TypeRef" = type { ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%class.RcString = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.5, %class.ThinVector.6, %class.ThinVector.7 }
%class.ThinVector.5 = type { ptr }
%class.ThinVector.6 = type { ptr }
%class.ThinVector.7 = type { ptr }
%"class.std::unique_ptr.8" = type { %"struct.std::__uniq_ptr_data.9" }
%"struct.std::__uniq_ptr_data.9" = type { %"class.std::__uniq_ptr_impl.10" }
%"class.std::__uniq_ptr_impl.10" = type { %"class.std::tuple.11" }
%"class.std::tuple.11" = type { %"struct.std::_Tuple_impl.12" }
%"struct.std::_Tuple_impl.12" = type { %"struct.std::_Head_base.15" }
%"struct.std::_Head_base.15" = type { ptr }
%"class.MIR::Constant" = type { i32, %"union.MIR::Constant::DataUnion" }
%"union.MIR::Constant::DataUnion" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.MIR::Constant::Data_Int" = type <{ %class.S128, i32, [4 x i8] }>
%class.S128 = type { %class.U128 }
%class.U128 = type { i64, i64 }
%"struct.MIR::Constant::Data_Uint" = type <{ %class.U128, i32, [4 x i8] }>
%"struct.MIR::Constant::Data_Float" = type { double, i32 }
%"struct.MIR::Constant::Data_Bool" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.MIR::Constant::Data_Const" = type { %"class.std::unique_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.4" }
%"struct.std::_Head_base.4" = type { ptr }
%"struct.HIR::GenericRef" = type <{ %class.RcString, i32, [4 x i8] }>
%"struct.MIR::Constant::Data_Function" = type { %"class.std::unique_ptr" }

@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr
@__PRETTY_FUNCTION__._ZNK3MIR8Constant5cloneEv = external hidden unnamed_addr constant [45 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3MIR8Constant3tagEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(20) ptr @_ZNK3MIR8Constant6as_IntEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(20) ptr @_ZNK3MIR8Constant7as_UintEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3MIR8Constant8as_FloatEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3MIR8Constant7as_BoolEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3MIR8Constant8as_BytesEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3MIR8Constant15as_StaticStringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR8Constant8as_ConstEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3MIR8Constant10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR8Constant11as_FunctionEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR8Constant11as_ItemAddrEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @_ZNK3HIR4Path5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::Path") align 8, ptr noundef nonnull align 8 dereferenceable(88)) #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3MIR8Constant5cloneEv(ptr dead_on_unwind noalias writable sret(%"class.MIR::Constant") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) #6 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.MIR::Constant::Data_Int", align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.MIR::Constant::Data_Uint", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.MIR::Constant::Data_Float", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.MIR::Constant::Data_Bool", align 1
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.MIR::Constant::Data_Const", align 8
  %21 = alloca %"class.HIR::Path", align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"struct.HIR::GenericRef", align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"struct.MIR::Constant::Data_Function", align 8
  %26 = alloca %"class.HIR::Path", align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"class.std::unique_ptr", align 8
  %29 = alloca %"class.HIR::Path", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %4, align 8
  %31 = call noundef i32 @_ZNK3MIR8Constant3tagEv(ptr noundef nonnull align 8 dereferenceable(40) %30)
  switch i32 %31, label %134 [
    i32 0, label %32
    i32 1, label %33
    i32 2, label %37
    i32 3, label %41
    i32 4, label %49
    i32 5, label %55
    i32 6, label %64
    i32 7, label %73
    i32 8, label %91
    i32 9, label %100
    i32 10, label %118
  ]

32:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 721, ptr noundef @__PRETTY_FUNCTION__._ZNK3MIR8Constant5cloneEv) #8
  unreachable

33:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %34 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZNK3MIR8Constant6as_IntEv(ptr noundef nonnull align 8 dereferenceable(40) %30)
  store ptr %34, ptr %5, align 8, !tbaa !5
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %36, i64 24, i1 false), !tbaa.struct !9
  call void @_ZN3MIR8ConstantC2ENS0_8Data_IntE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef byval(%"struct.MIR::Constant::Data_Int") align 8 %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  br label %136

37:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %38 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZNK3MIR8Constant7as_UintEv(ptr noundef nonnull align 8 dereferenceable(40) %30)
  store ptr %38, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %40, i64 24, i1 false), !tbaa.struct !9
  call void @_ZN3MIR8ConstantC2ENS0_9Data_UintE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef byval(%"struct.MIR::Constant::Data_Uint") align 8 %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br label %136

41:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3MIR8Constant8as_FloatEv(ptr noundef nonnull align 8 dereferenceable(40) %30)
  store ptr %42, ptr %9, align 8, !tbaa !5
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %44, i64 16, i1 false), !tbaa.struct !14
  %45 = getelementptr inbounds { double, i32 }, ptr %10, i32 0, i32 0
  %46 = load double, ptr %45, align 8
  %47 = getelementptr inbounds { double, i32 }, ptr %10, i32 0, i32 1
  %48 = load i32, ptr %47, align 8
  call void @_ZN3MIR8ConstantC2ENS0_10Data_FloatE(ptr noundef nonnull align 8 dereferenceable(40) %0, double %46, i32 %48)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %136

49:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %50 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3MIR8Constant7as_BoolEv(ptr noundef nonnull align 8 dereferenceable(40) %30)
  store ptr %50, ptr %11, align 8, !tbaa !5
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %12, ptr align 1 %52, i64 1, i1 false), !tbaa.struct !17
  %53 = getelementptr inbounds %"struct.MIR::Constant::Data_Bool", ptr %12, i32 0, i32 0
  %54 = load i8, ptr %53, align 1
  call void @_ZN3MIR8ConstantC2ENS0_9Data_BoolE(ptr noundef nonnull align 8 dereferenceable(40) %0, i8 %54)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %136

55:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %56 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3MIR8Constant8as_BytesEv(ptr noundef nonnull align 8 dereferenceable(40) %30)
  store ptr %56, ptr %13, align 8, !tbaa !5
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %58)
  invoke void @_ZN3MIR8ConstantC2ESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %14)
          to label %59 unwind label %60

59:                                               ; preds = %55
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %136

60:                                               ; preds = %55
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %15, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %16, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %137

64:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %65 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3MIR8Constant15as_StaticStringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(40) %30)
  store ptr %65, ptr %17, align 8, !tbaa !5
  %66 = load ptr, ptr %17, align 8, !tbaa !5
  %67 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %67)
  invoke void @_ZN3MIR8ConstantC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %18)
          to label %68 unwind label %69

68:                                               ; preds = %64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %136

69:                                               ; preds = %64
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %15, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %16, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %137

73:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR8Constant8as_ConstEv(ptr noundef nonnull align 8 dereferenceable(40) %30)
  store ptr %74, ptr %19, align 8, !tbaa !5
  %75 = load ptr, ptr %19, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.MIR::Constant::Data_Const", ptr %20, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 88, ptr %21) #9
  %77 = load ptr, ptr %19, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.MIR::Constant::Data_Const", ptr %77, i32 0, i32 0
  %79 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %78) #9
  call void @_ZNK3HIR4Path5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::Path") align 8 %21, ptr noundef nonnull align 8 dereferenceable(88) %79)
  invoke void @_Z15make_unique_ptrIN3HIR4PathEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %76, ptr noundef nonnull align 8 dereferenceable(88) %21)
          to label %80 unwind label %82

80:                                               ; preds = %73
  invoke void @_ZN3MIR8Constant10make_ConstENS0_10Data_ConstE(ptr dead_on_unwind writable sret(%"class.MIR::Constant") align 8 %0, ptr noundef %20)
          to label %81 unwind label %86

81:                                               ; preds = %80
  call void @_ZN3MIR8Constant10Data_ConstD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %21) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %136

82:                                               ; preds = %73
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %15, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %16, align 4
  br label %90

86:                                               ; preds = %80
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %15, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %16, align 4
  call void @_ZN3MIR8Constant10Data_ConstD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br label %90

90:                                               ; preds = %86, %82
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %21) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %137

91:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %92 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3MIR8Constant10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(40) %30)
  store ptr %92, ptr %22, align 8, !tbaa !5
  %93 = load ptr, ptr %22, align 8, !tbaa !5
  %94 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN3HIR10GenericRefC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %23, ptr noundef nonnull align 8 dereferenceable(12) %94)
  invoke void @_ZN3MIR8ConstantC2EN3HIR10GenericRefE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %23)
          to label %95 unwind label %96

95:                                               ; preds = %91
  call void @_ZN3HIR10GenericRefD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %136

96:                                               ; preds = %91
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %15, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %16, align 4
  call void @_ZN3HIR10GenericRefD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %137

100:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR8Constant11as_FunctionEv(ptr noundef nonnull align 8 dereferenceable(40) %30)
  store ptr %101, ptr %24, align 8, !tbaa !5
  %102 = load ptr, ptr %24, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.MIR::Constant::Data_Function", ptr %25, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 88, ptr %26) #9
  %104 = load ptr, ptr %24, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.MIR::Constant::Data_Function", ptr %104, i32 0, i32 0
  %106 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %105) #9
  call void @_ZNK3HIR4Path5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::Path") align 8 %26, ptr noundef nonnull align 8 dereferenceable(88) %106)
  invoke void @_Z15make_unique_ptrIN3HIR4PathEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %103, ptr noundef nonnull align 8 dereferenceable(88) %26)
          to label %107 unwind label %109

107:                                              ; preds = %100
  invoke void @_ZN3MIR8Constant13make_FunctionENS0_13Data_FunctionE(ptr dead_on_unwind writable sret(%"class.MIR::Constant") align 8 %0, ptr noundef %25)
          to label %108 unwind label %113

108:                                              ; preds = %107
  call void @_ZN3MIR8Constant13Data_FunctionD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #9
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %26) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %136

109:                                              ; preds = %100
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %15, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %16, align 4
  br label %117

113:                                              ; preds = %107
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %15, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %16, align 4
  call void @_ZN3MIR8Constant13Data_FunctionD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #9
  br label %117

117:                                              ; preds = %113, %109
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %26) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %137

118:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR8Constant11as_ItemAddrEv(ptr noundef nonnull align 8 dereferenceable(40) %30)
  store ptr %119, ptr %27, align 8, !tbaa !5
  %120 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 88, ptr %29) #9
  %121 = load ptr, ptr %27, align 8, !tbaa !5
  %122 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %121) #9
  call void @_ZNK3HIR4Path5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::Path") align 8 %29, ptr noundef nonnull align 8 dereferenceable(88) %122)
  invoke void @_Z15make_unique_ptrIN3HIR4PathEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %28, ptr noundef nonnull align 8 dereferenceable(88) %29)
          to label %123 unwind label %125

123:                                              ; preds = %118
  invoke void @_ZN3MIR8ConstantC2ESt10unique_ptrIN3HIR4PathESt14default_deleteIS3_EE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %28)
          to label %124 unwind label %129

124:                                              ; preds = %123
  call void @_ZNSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #9
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %29) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %136

125:                                              ; preds = %118
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %15, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %16, align 4
  br label %133

129:                                              ; preds = %123
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %15, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %16, align 4
  call void @_ZNSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #9
  br label %133

133:                                              ; preds = %129, %125
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %29) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %137

134:                                              ; preds = %2
  %135 = call ptr @__cxa_allocate_exception(i64 8) #9
  store ptr @.str.17, ptr %135, align 16, !tbaa !5
  call void @__cxa_throw(ptr %135, ptr @_ZTIPKc, ptr null) #10
  unreachable

136:                                              ; preds = %124, %108, %95, %81, %68, %59, %49, %41, %37, %33
  ret void

137:                                              ; preds = %133, %117, %96, %90, %69, %60
  %138 = load ptr, ptr %15, align 8
  %139 = load i32, ptr %16, align 4
  %140 = insertvalue { ptr, i32 } poison, ptr %138, 0
  %141 = insertvalue { ptr, i32 } %140, i32 %139, 1
  resume { ptr, i32 } %141
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8ConstantC2ENS0_8Data_IntE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%"struct.MIR::Constant::Data_Int") align 8) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8ConstantC2ENS0_9Data_UintE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%"struct.MIR::Constant::Data_Uint") align 8) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8ConstantC2ENS0_10Data_FloatE(ptr noundef nonnull align 8 dereferenceable(40), double, i32) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8ConstantC2ENS0_9Data_BoolE(ptr noundef nonnull align 8 dereferenceable(40), i8) unnamed_addr #6 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8Constant10make_ConstENS0_10Data_ConstE(ptr dead_on_unwind noalias writable sret(%"class.MIR::Constant") align 8, ptr noundef) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15make_unique_ptrIN3HIR4PathEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(88)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3HIR10GenericRefC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #7 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR10GenericRefD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8Constant13make_FunctionENS0_13Data_FunctionE(ptr dead_on_unwind noalias writable sret(%"class.MIR::Constant") align 8, ptr noundef) #6 align 2

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

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

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

attributes #0 = { 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 #1 = { noreturn nounwind "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 = { 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 #6 = { 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 #7 = { inlinehint 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 #8 = { noreturn nounwind }
attributes #9 = { nounwind }
attributes #10 = { 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 = !{i64 0, i64 8, !10, i64 8, i64 8, !10, i64 16, i64 4, !12}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"_ZTSN3HIR8CoreTypeE", !7, i64 0}
!14 = !{i64 0, i64 8, !15, i64 8, i64 4, !12}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{i64 0, i64 1, !18}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !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.HIR::Path" = type { %"class.HIR::Path::Data" }
%"class.HIR::Path::Data" = type { i32, %"union.HIR::Path::Data::DataUnion" }
%"union.HIR::Path::Data::DataUnion" = type { %"struct.HIR::Path::Data::Data_UfcsKnown" }
%"struct.HIR::Path::Data::Data_UfcsKnown" = type { %"class.HIR::TypeRef", %"class.HIR::GenericPath", %class.RcString, %"struct.HIR::PathParams", %"class.std::unique_ptr.8" }
%"class.HIR::TypeRef" = type { ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%class.RcString = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.5, %class.ThinVector.6, %class.ThinVector.7 }
%class.ThinVector.5 = type { ptr }
%class.ThinVector.6 = type { ptr }
%class.ThinVector.7 = type { ptr }
%"class.std::unique_ptr.8" = type { %"struct.std::__uniq_ptr_data.9" }
%"struct.std::__uniq_ptr_data.9" = type { %"class.std::__uniq_ptr_impl.10" }
%"class.std::__uniq_ptr_impl.10" = type { %"class.std::tuple.11" }
%"class.std::tuple.11" = type { %"struct.std::_Tuple_impl.12" }
%"struct.std::_Tuple_impl.12" = type { %"struct.std::_Head_base.15" }
%"struct.std::_Head_base.15" = type { ptr }
%"class.MIR::Constant" = type { i32, %"union.MIR::Constant::DataUnion" }
%"union.MIR::Constant::DataUnion" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.MIR::Constant::Data_Const" = type { %"class.std::unique_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.4" }
%"struct.std::_Head_base.4" = type { ptr }
%"struct.HIR::GenericRef" = type <{ %class.RcString, i32, [4 x i8] }>
%"struct.MIR::Constant::Data_Function" = type { %"class.std::unique_ptr" }
%"struct.MIR::Constant::Data_Int" = type <{ %class.S128, i32, [4 x i8] }>
%class.S128 = type { %class.U128 }
%class.U128 = type { i64, i64 }
%"struct.MIR::Constant::Data_Uint" = type <{ %class.U128, i32, [4 x i8] }>

@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr
@__PRETTY_FUNCTION__._ZNK3MIR8Constant5cloneEv = external hidden unnamed_addr constant [45 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3MIR8Constant3tagEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(20) ptr @_ZNK3MIR8Constant6as_IntEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(20) ptr @_ZNK3MIR8Constant7as_UintEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3MIR8Constant8as_FloatEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3MIR8Constant7as_BoolEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3MIR8Constant15as_StaticStringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR8Constant8as_ConstEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3MIR8Constant10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR8Constant11as_FunctionEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR8Constant11as_ItemAddrEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare void @_ZNK3HIR4Path5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::Path") align 8, ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3MIR8Constant5cloneEv(ptr dead_on_unwind noalias writable sret(%"class.MIR::Constant") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"struct.MIR::Constant::Data_Const", align 8
  %6 = alloca %"class.HIR::Path", align 8
  %7 = alloca %"struct.HIR::GenericRef", align 8
  %8 = alloca %"struct.MIR::Constant::Data_Function", align 8
  %9 = alloca %"class.HIR::Path", align 8
  %10 = alloca %"class.std::unique_ptr", align 8
  %11 = alloca %"class.HIR::Path", align 8
  %12 = tail call noundef i32 @_ZNK3MIR8Constant3tagEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  switch i32 %12, label %67 [
    i32 0, label %13
    i32 1, label %14
    i32 2, label %16
    i32 3, label %18
    i32 4, label %20
    i32 5, label %22
    i32 6, label %27
    i32 7, label %32
    i32 8, label %42
    i32 9, label %47
    i32 10, label %57
  ]

13:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 721, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3MIR8Constant5cloneEv) #7
  unreachable

14:                                               ; preds = %2
  %15 = tail call noundef nonnull align 8 dereferenceable(20) ptr @_ZNK3MIR8Constant6as_IntEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  tail call void @_ZN3MIR8ConstantC2ENS0_8Data_IntE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull byval(%"struct.MIR::Constant::Data_Int") align 8 %15)
  br label %69

16:                                               ; preds = %2
  %17 = tail call noundef nonnull align 8 dereferenceable(20) ptr @_ZNK3MIR8Constant7as_UintEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  tail call void @_ZN3MIR8ConstantC2ENS0_9Data_UintE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull byval(%"struct.MIR::Constant::Data_Uint") align 8 %17)
  br label %69

18:                                               ; preds = %2
  %19 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3MIR8Constant8as_FloatEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %.sroa.015.0.copyload = load double, ptr %19, align 8, !tbaa !5
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  %.sroa.2.0.copyload = load i32, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !9
  tail call void @_ZN3MIR8ConstantC2ENS0_10Data_FloatE(ptr noundef nonnull align 8 dereferenceable(40) %0, double %.sroa.015.0.copyload, i32 %.sroa.2.0.copyload)
  br label %69

20:                                               ; preds = %2
  %21 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3MIR8Constant7as_BoolEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %.sroa.0.0.copyload = load i8, ptr %21, align 1, !tbaa !11
  tail call void @_ZN3MIR8ConstantC2ENS0_9Data_BoolE(ptr noundef nonnull align 8 dereferenceable(40) %0, i8 %.sroa.0.0.copyload)
  br label %69

22:                                               ; preds = %2
  %23 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3MIR8Constant8as_BytesEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  call void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %23)
  invoke void @_ZN3MIR8ConstantC2ESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %3)
          to label %24 unwind label %25

24:                                               ; preds = %22
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  br label %69

25:                                               ; preds = %22
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  br label %70

27:                                               ; preds = %2
  %28 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3MIR8Constant15as_StaticStringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(40) %1)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %28)
  invoke void @_ZN3MIR8ConstantC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %4)
          to label %29 unwind label %30

29:                                               ; preds = %27
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  br label %69

30:                                               ; preds = %27
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  br label %70

32:                                               ; preds = %2
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR8Constant8as_ConstEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %6) #8
  %34 = tail call noundef ptr @_ZNKSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  call void @_ZNK3HIR4Path5cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::Path") align 8 %6, ptr noundef nonnull align 8 dereferenceable(88) %34)
  invoke void @_Z15make_unique_ptrIN3HIR4PathEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %5, ptr noundef nonnull align 8 dereferenceable(88) %6)
          to label %35 unwind label %37

35:                                               ; preds = %32
  invoke void @_ZN3MIR8Constant10make_ConstENS0_10Data_ConstE(ptr dead_on_unwind writable sret(%"class.MIR::Constant") align 8 %0, ptr noundef nonnull %5)
          to label %36 unwind label %39

36:                                               ; preds = %35
  call void @_ZN3MIR8Constant10Data_ConstD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %6) #8
  br label %69

37:                                               ; preds = %32
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %41

39:                                               ; preds = %35
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR8Constant10Data_ConstD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br label %41

41:                                               ; preds = %39, %37
  %.pn30 = phi { ptr, i32 } [ %40, %39 ], [ %38, %37 ]
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %6) #8
  br label %70

42:                                               ; preds = %2
  %43 = tail call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3MIR8Constant10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  call void @_ZN3HIR10GenericRefC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(12) %43)
  invoke void @_ZN3MIR8ConstantC2EN3HIR10GenericRefE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %7)
          to label %44 unwind label %45

44:                                               ; preds = %42
  call void @_ZN3HIR10GenericRefD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #8
  br label %69

45:                                               ; preds = %42
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR10GenericRefD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #8
  br label %70

47:                                               ; preds = %2
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR8Constant11as_FunctionEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %9) #8
  %49 = tail call noundef ptr @_ZNKSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #8
  call void @_ZNK3HIR4Path5cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::Path") align 8 %9, ptr noundef nonnull align 8 dereferenceable(88) %49)
  invoke void @_Z15make_unique_ptrIN3HIR4PathEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %8, ptr noundef nonnull align 8 dereferenceable(88) %9)
          to label %50 unwind label %52

50:                                               ; preds = %47
  invoke void @_ZN3MIR8Constant13make_FunctionENS0_13Data_FunctionE(ptr dead_on_unwind writable sret(%"class.MIR::Constant") align 8 %0, ptr noundef nonnull %8)
          to label %51 unwind label %54

51:                                               ; preds = %50
  call void @_ZN3MIR8Constant13Data_FunctionD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %9) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %9) #8
  br label %69

52:                                               ; preds = %47
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %56

54:                                               ; preds = %50
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR8Constant13Data_FunctionD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  br label %56

56:                                               ; preds = %54, %52
  %.pn28 = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %9) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %9) #8
  br label %70

57:                                               ; preds = %2
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR8Constant11as_ItemAddrEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %11) #8
  %59 = tail call noundef ptr @_ZNKSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %58) #8
  call void @_ZNK3HIR4Path5cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::Path") align 8 %11, ptr noundef nonnull align 8 dereferenceable(88) %59)
  invoke void @_Z15make_unique_ptrIN3HIR4PathEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %10, ptr noundef nonnull align 8 dereferenceable(88) %11)
          to label %60 unwind label %62

60:                                               ; preds = %57
  invoke void @_ZN3MIR8ConstantC2ESt10unique_ptrIN3HIR4PathESt14default_deleteIS3_EE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %10)
          to label %61 unwind label %64

61:                                               ; preds = %60
  call void @_ZNSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %11) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %11) #8
  br label %69

62:                                               ; preds = %57
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %66

64:                                               ; preds = %60
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br label %66

66:                                               ; preds = %64, %62
  %.pn = phi { ptr, i32 } [ %65, %64 ], [ %63, %62 ]
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %11) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %11) #8
  br label %70

67:                                               ; preds = %2
  %68 = tail call ptr @__cxa_allocate_exception(i64 8) #8
  store ptr @.str.17, ptr %68, align 16, !tbaa !13
  tail call void @__cxa_throw(ptr nonnull %68, ptr nonnull @_ZTIPKc, ptr null) #9
  unreachable

69:                                               ; preds = %61, %51, %44, %36, %29, %24, %20, %18, %16, %14
  ret void

70:                                               ; preds = %66, %56, %45, %41, %30, %25
  %.pn.pn = phi { ptr, i32 } [ %.pn, %66 ], [ %.pn28, %56 ], [ %46, %45 ], [ %.pn30, %41 ], [ %31, %30 ], [ %26, %25 ]
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8ConstantC2ENS0_8Data_IntE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%"struct.MIR::Constant::Data_Int") align 8) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8ConstantC2ENS0_9Data_UintE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%"struct.MIR::Constant::Data_Uint") align 8) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8ConstantC2ENS0_10Data_FloatE(ptr noundef nonnull align 8 dereferenceable(40), double, i32) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8ConstantC2ENS0_9Data_BoolE(ptr noundef nonnull align 8 dereferenceable(40), i8) unnamed_addr #5 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8Constant10make_ConstENS0_10Data_ConstE(ptr dead_on_unwind noalias writable sret(%"class.MIR::Constant") align 8, ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15make_unique_ptrIN3HIR4PathEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3HIR10GenericRefC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8Constant13make_FunctionENS0_13Data_FunctionE(ptr dead_on_unwind noalias writable sret(%"class.MIR::Constant") align 8, ptr noundef) local_unnamed_addr #5 align 2

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

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

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

attributes #0 = { 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 #1 = { noreturn nounwind "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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 #6 = { inlinehint 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 #7 = { noreturn nounwind }
attributes #8 = { nounwind }
attributes #9 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN3HIR8CoreTypeE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,TailCallElimPass