; LLVM IR from thepowersgang/mrustc :: src/ast/expr.ll (ZNK3AST19ExprNode_LetBinding5cloneEv)

; 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.AST::ExprNodeP" = type { ptr }
%"class.AST::Pattern" = type { ptr, %struct.Span, %"class.std::vector.84", %"class.AST::Pattern::Data" }
%struct.Span = type { ptr }
%"class.std::vector.84" = type { %"struct.std::_Vector_base.85" }
%"struct.std::_Vector_base.85" = type { %"struct.std::_Vector_base<AST::PatternBinding, std::allocator<AST::PatternBinding>>::_Vector_impl" }
%"struct.std::_Vector_base<AST::PatternBinding, std::allocator<AST::PatternBinding>>::_Vector_impl" = type { %"struct.std::_Vector_base<AST::PatternBinding, std::allocator<AST::PatternBinding>>::_Vector_impl_data" }
%"struct.std::_Vector_base<AST::PatternBinding, std::allocator<AST::PatternBinding>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.AST::Pattern::Data" = type { i32, %"union.AST::Pattern::Data::DataUnion" }
%"union.AST::Pattern::Data::DataUnion" = type { %"struct.AST::Pattern::Data::Data_Value" }
%"struct.AST::Pattern::Data::Data_Value" = type { %"class.AST::Pattern::Value", %"class.AST::Pattern::Value" }
%"class.AST::Pattern::Value" = type { i32, %"union.AST::Pattern::Value::DataUnion" }
%"union.AST::Pattern::Value::DataUnion" = type { %"class.AST::Path" }
%"class.AST::Path" = type { ptr, %"class.AST::Path::Class", %"struct.AST::Path::Bindings" }
%"class.AST::Path::Class" = type { i32, %"union.AST::Path::Class::DataUnion" }
%"union.AST::Path::Class::DataUnion" = type { %"struct.AST::Path::Class::Data_UFCS" }
%"struct.AST::Path::Class::Data_UFCS" = type { %"class.std::unique_ptr.23", %"class.std::unique_ptr.31", %"class.std::vector.18" }
%"class.std::unique_ptr.23" = type { %"struct.std::__uniq_ptr_data.24" }
%"struct.std::__uniq_ptr_data.24" = type { %"class.std::__uniq_ptr_impl.25" }
%"class.std::__uniq_ptr_impl.25" = type { %"class.std::tuple.26" }
%"class.std::tuple.26" = type { %"struct.std::_Tuple_impl.27" }
%"struct.std::_Tuple_impl.27" = type { %"struct.std::_Head_base.30" }
%"struct.std::_Head_base.30" = type { ptr }
%"class.std::unique_ptr.31" = type { %"struct.std::__uniq_ptr_data.32" }
%"struct.std::__uniq_ptr_data.32" = type { %"class.std::__uniq_ptr_impl.33" }
%"class.std::__uniq_ptr_impl.33" = type { %"class.std::tuple.34" }
%"class.std::tuple.34" = type { %"struct.std::_Tuple_impl.35" }
%"struct.std::_Tuple_impl.35" = type { %"struct.std::_Head_base.38" }
%"struct.std::_Head_base.38" = type { ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<AST::PathNode, std::allocator<AST::PathNode>>::_Vector_impl" }
%"struct.std::_Vector_base<AST::PathNode, std::allocator<AST::PathNode>>::_Vector_impl" = type { %"struct.std::_Vector_base<AST::PathNode, std::allocator<AST::PathNode>>::_Vector_impl_data" }
%"struct.std::_Vector_base<AST::PathNode, std::allocator<AST::PathNode>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.AST::Path::Bindings" = type { %"struct.AST::PathBinding", %"struct.AST::PathBinding.44", %"struct.AST::PathBinding.45" }
%"struct.AST::PathBinding" = type { %"struct.AST::AbsolutePath", %"class.AST::PathBinding_Value" }
%"struct.AST::AbsolutePath" = type { %class.RcString, %"class.std::vector.39" }
%class.RcString = type { ptr }
%"class.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl" }
%"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl" = type { %"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl_data" }
%"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.AST::PathBinding_Value" = type { i32, %"union.AST::PathBinding_Value::DataUnion" }
%"union.AST::PathBinding_Value::DataUnion" = type { %"struct.AST::PathBinding_Value::Data_EnumVar" }
%"struct.AST::PathBinding_Value::Data_EnumVar" = type { ptr, i32, ptr }
%"struct.AST::PathBinding.44" = type { %"struct.AST::AbsolutePath", %"class.AST::PathBinding_Type" }
%"class.AST::PathBinding_Type" = type { i32, %"union.AST::PathBinding_Type::DataUnion" }
%"union.AST::PathBinding_Type::DataUnion" = type { %"struct.AST::PathBinding_Type::Data_Module" }
%"struct.AST::PathBinding_Type::Data_Module" = type { ptr, %"struct.AST::PathBinding_Type::(anonymous struct)::Hir" }
%"struct.AST::PathBinding_Type::(anonymous struct)::Hir" = type { ptr, ptr }
%"struct.AST::PathBinding.45" = type { %"struct.AST::AbsolutePath", %"class.AST::PathBinding_Macro" }
%"class.AST::PathBinding_Macro" = type { i32, %"union.AST::PathBinding_Macro::DataUnion" }
%"union.AST::PathBinding_Macro::DataUnion" = type { %"struct.AST::PathBinding_Macro::Data_ProcMacroDerive" }
%"struct.AST::PathBinding_Macro::Data_ProcMacroDerive" = type { ptr, %class.RcString }
%class.TypeRef = type { %struct.Span, %class.TypeData }
%class.TypeData = type { i32, %"union.TypeData::DataUnion" }
%"union.TypeData::DataUnion" = type { %"struct.TypeData::Data_ErasedType", [32 x i8] }
%"struct.TypeData::Data_ErasedType" = type { %"class.std::vector.125", %"class.std::vector.125", %"class.std::vector.130" }
%"class.std::vector.125" = type { %"struct.std::_Vector_base.126" }
%"struct.std::_Vector_base.126" = type { %"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl" }
%"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl" = type { %"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.130" = type { %"struct.std::_Vector_base.131" }
%"struct.std::_Vector_base.131" = type { %"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl" }
%"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl" = type { %"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.AST::ExprNode_LetBinding" = type { %"class.AST::ExprNode", %"class.AST::Pattern", %class.TypeRef, %"class.AST::ExprNodeP", %"class.AST::ExprNodeP", %"struct.std::pair" }
%"class.AST::ExprNode" = type { ptr, %"class.AST::AttributeList", %struct.Span }
%"class.AST::AttributeList" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<AST::Attribute, std::allocator<AST::Attribute>>::_Vector_impl" }
%"struct.std::_Vector_base<AST::Attribute, std::allocator<AST::Attribute>>::_Vector_impl" = type { %"struct.std::_Vector_base<AST::Attribute, std::allocator<AST::Attribute>>::_Vector_impl_data" }
%"struct.std::_Vector_base<AST::Attribute, std::allocator<AST::Attribute>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN3AST12_GLOBAL__N_112mk_exprnodepERK4SpanPNS_8ExprNodeE(ptr dead_on_unwind noalias writable sret(%"class.AST::ExprNodeP") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3AST19ExprNode_LetBinding5cloneEv(ptr dead_on_unwind noalias writable sret(%"class.AST::ExprNodeP") align 8 %0, ptr noundef nonnull align 8 dereferenceable(728) %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.AST::Pattern", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %class.TypeRef, align 8
  %9 = alloca %"class.AST::ExprNodeP", align 8
  %10 = alloca i1, align 1
  %11 = alloca i1, align 1
  %12 = alloca %"class.AST::ExprNodeP", align 8
  %13 = alloca i1, align 1
  %14 = alloca i1, align 1
  %15 = alloca i1, align 1
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3AST8ExprNode4spanEv(ptr noundef nonnull align 8 dereferenceable(40) %16)
  %18 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 728) #7
  store i1 true, ptr %15, align 1
  %19 = getelementptr inbounds %"struct.AST::ExprNode_LetBinding", ptr %16, i32 0, i32 1
  invoke void @_ZNK3AST7Pattern5cloneEv(ptr dead_on_unwind writable sret(%"class.AST::Pattern") align 8 %5, ptr noundef nonnull align 8 dereferenceable(544) %19)
          to label %20 unwind label %67

20:                                               ; preds = %2
  %21 = getelementptr inbounds %"struct.AST::ExprNode_LetBinding", ptr %16, i32 0, i32 2
  invoke void @_ZNK7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%class.TypeRef) align 8 %8, ptr noundef nonnull align 8 dereferenceable(120) %21)
          to label %22 unwind label %71

22:                                               ; preds = %20
  %23 = getelementptr inbounds %"struct.AST::ExprNode_LetBinding", ptr %16, i32 0, i32 3
  store i1 false, ptr %10, align 1
  store i1 false, ptr %11, align 1
  %24 = invoke noundef ptr @_ZNK3AST9ExprNodeP3getEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %25 unwind label %75

25:                                               ; preds = %22
  %26 = icmp ne ptr %24, null
  br i1 %26, label %27, label %35

27:                                               ; preds = %25
  %28 = getelementptr inbounds %"struct.AST::ExprNode_LetBinding", ptr %16, i32 0, i32 3
  %29 = invoke noundef ptr @_ZNK3AST9ExprNodePptEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %30 unwind label %75

30:                                               ; preds = %27
  %31 = load ptr, ptr %29, align 8, !tbaa !9
  %32 = getelementptr inbounds ptr, ptr %31, i64 4
  %33 = load ptr, ptr %32, align 8
  invoke void %33(ptr dead_on_unwind writable sret(%"class.AST::ExprNodeP") align 8 %9, ptr noundef nonnull align 8 dereferenceable(40) %29)
          to label %34 unwind label %75

34:                                               ; preds = %30
  store i1 true, ptr %10, align 1
  br label %37

35:                                               ; preds = %25
  invoke void @_ZN3AST9ExprNodePC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %36 unwind label %79

36:                                               ; preds = %35
  store i1 true, ptr %11, align 1
  br label %37

37:                                               ; preds = %36, %34
  %38 = getelementptr inbounds %"struct.AST::ExprNode_LetBinding", ptr %16, i32 0, i32 4
  store i1 false, ptr %13, align 1
  store i1 false, ptr %14, align 1
  %39 = invoke noundef ptr @_ZNK3AST9ExprNodeP3getEv(ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %40 unwind label %83

40:                                               ; preds = %37
  %41 = icmp ne ptr %39, null
  br i1 %41, label %42, label %50

42:                                               ; preds = %40
  %43 = getelementptr inbounds %"struct.AST::ExprNode_LetBinding", ptr %16, i32 0, i32 4
  %44 = invoke noundef ptr @_ZNK3AST9ExprNodePptEv(ptr noundef nonnull align 8 dereferenceable(8) %43)
          to label %45 unwind label %83

45:                                               ; preds = %42
  %46 = load ptr, ptr %44, align 8, !tbaa !9
  %47 = getelementptr inbounds ptr, ptr %46, i64 4
  %48 = load ptr, ptr %47, align 8
  invoke void %48(ptr dead_on_unwind writable sret(%"class.AST::ExprNodeP") align 8 %12, ptr noundef nonnull align 8 dereferenceable(40) %44)
          to label %49 unwind label %83

49:                                               ; preds = %45
  store i1 true, ptr %13, align 1
  br label %52

50:                                               ; preds = %40
  invoke void @_ZN3AST9ExprNodePC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %51 unwind label %87

51:                                               ; preds = %50
  store i1 true, ptr %14, align 1
  br label %52

52:                                               ; preds = %51, %49
  invoke void @_ZN3AST19ExprNode_LetBindingC2ENS_7PatternE7TypeRefNS_9ExprNodePES3_(ptr noundef nonnull align 8 dereferenceable(728) %18, ptr noundef %5, ptr noundef %8, ptr noundef %9, ptr noundef %12)
          to label %53 unwind label %91

53:                                               ; preds = %52
  store i1 false, ptr %15, align 1
  invoke void @_ZN3AST12_GLOBAL__N_112mk_exprnodepERK4SpanPNS_8ExprNodeE(ptr dead_on_unwind writable sret(%"class.AST::ExprNodeP") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef %18)
          to label %54 unwind label %91

54:                                               ; preds = %53
  %55 = load i1, ptr %14, align 1
  br i1 %55, label %56, label %57

56:                                               ; preds = %54
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br label %57

57:                                               ; preds = %56, %54
  %58 = load i1, ptr %13, align 1
  br i1 %58, label %59, label %60

59:                                               ; preds = %57
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br label %60

60:                                               ; preds = %59, %57
  %61 = load i1, ptr %11, align 1
  br i1 %61, label %62, label %63

62:                                               ; preds = %60
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br label %63

63:                                               ; preds = %62, %60
  %64 = load i1, ptr %10, align 1
  br i1 %64, label %65, label %66

65:                                               ; preds = %63
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br label %66

66:                                               ; preds = %65, %63
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #8
  call void @_ZN3AST7PatternD1Ev(ptr noundef nonnull align 8 dereferenceable(544) %5) #8
  ret void

67:                                               ; preds = %2
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %6, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %7, align 4
  br label %112

71:                                               ; preds = %20
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %6, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %7, align 4
  br label %111

75:                                               ; preds = %30, %27, %22
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %6, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %7, align 4
  br label %110

79:                                               ; preds = %35
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %6, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %7, align 4
  br label %106

83:                                               ; preds = %45, %42, %37
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %6, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %7, align 4
  br label %102

87:                                               ; preds = %50
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %6, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %7, align 4
  br label %98

91:                                               ; preds = %53, %52
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %6, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %7, align 4
  %95 = load i1, ptr %14, align 1
  br i1 %95, label %96, label %97

96:                                               ; preds = %91
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br label %97

97:                                               ; preds = %96, %91
  br label %98

98:                                               ; preds = %97, %87
  %99 = load i1, ptr %13, align 1
  br i1 %99, label %100, label %101

100:                                              ; preds = %98
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br label %101

101:                                              ; preds = %100, %98
  br label %102

102:                                              ; preds = %101, %83
  %103 = load i1, ptr %11, align 1
  br i1 %103, label %104, label %105

104:                                              ; preds = %102
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br label %105

105:                                              ; preds = %104, %102
  br label %106

106:                                              ; preds = %105, %79
  %107 = load i1, ptr %10, align 1
  br i1 %107, label %108, label %109

108:                                              ; preds = %106
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br label %109

109:                                              ; preds = %108, %106
  br label %110

110:                                              ; preds = %109, %75
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #8
  br label %111

111:                                              ; preds = %110, %71
  call void @_ZN3AST7PatternD1Ev(ptr noundef nonnull align 8 dereferenceable(544) %5) #8
  br label %112

112:                                              ; preds = %111, %67
  %113 = load i1, ptr %15, align 1
  br i1 %113, label %114, label %115

114:                                              ; preds = %112
  call void @_ZdlPvm(ptr noundef %18, i64 noundef 728) #9
  br label %115

115:                                              ; preds = %114, %112
  br label %116

116:                                              ; preds = %115
  %117 = load ptr, ptr %6, align 8
  %118 = load i32, ptr %7, align 4
  %119 = insertvalue { ptr, i32 } poison, ptr %117, 0
  %120 = insertvalue { ptr, i32 } %119, i32 %118, 1
  resume { ptr, i32 } %120
}

declare void @_ZNK3AST7Pattern5cloneEv(ptr dead_on_unwind writable sret(%"class.AST::Pattern") align 8, ptr noundef nonnull align 8 dereferenceable(544)) #5

declare void @_ZNK7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%class.TypeRef) align 8, ptr noundef nonnull align 8 dereferenceable(120)) #5

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

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

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

; Function Attrs: nounwind
declare void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #6

; Function Attrs: nounwind
declare void @_ZN3AST7PatternD1Ev(ptr noundef nonnull align 8 dereferenceable(544)) unnamed_addr #6

declare void @_ZN3AST9ExprNodePD1Ev(ptr)

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 = { 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 #2 = { nobuiltin allocsize(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 = { nobuiltin 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 #4 = { 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 #5 = { "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 = { 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 #7 = { builtin allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"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.AST::ExprNodeP" = type { ptr }
%"class.AST::Pattern" = type { ptr, %struct.Span, %"class.std::vector.84", %"class.AST::Pattern::Data" }
%struct.Span = type { ptr }
%"class.std::vector.84" = type { %"struct.std::_Vector_base.85" }
%"struct.std::_Vector_base.85" = type { %"struct.std::_Vector_base<AST::PatternBinding, std::allocator<AST::PatternBinding>>::_Vector_impl" }
%"struct.std::_Vector_base<AST::PatternBinding, std::allocator<AST::PatternBinding>>::_Vector_impl" = type { %"struct.std::_Vector_base<AST::PatternBinding, std::allocator<AST::PatternBinding>>::_Vector_impl_data" }
%"struct.std::_Vector_base<AST::PatternBinding, std::allocator<AST::PatternBinding>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.AST::Pattern::Data" = type { i32, %"union.AST::Pattern::Data::DataUnion" }
%"union.AST::Pattern::Data::DataUnion" = type { %"struct.AST::Pattern::Data::Data_Value" }
%"struct.AST::Pattern::Data::Data_Value" = type { %"class.AST::Pattern::Value", %"class.AST::Pattern::Value" }
%"class.AST::Pattern::Value" = type { i32, %"union.AST::Pattern::Value::DataUnion" }
%"union.AST::Pattern::Value::DataUnion" = type { %"class.AST::Path" }
%"class.AST::Path" = type { ptr, %"class.AST::Path::Class", %"struct.AST::Path::Bindings" }
%"class.AST::Path::Class" = type { i32, %"union.AST::Path::Class::DataUnion" }
%"union.AST::Path::Class::DataUnion" = type { %"struct.AST::Path::Class::Data_UFCS" }
%"struct.AST::Path::Class::Data_UFCS" = type { %"class.std::unique_ptr.23", %"class.std::unique_ptr.31", %"class.std::vector.18" }
%"class.std::unique_ptr.23" = type { %"struct.std::__uniq_ptr_data.24" }
%"struct.std::__uniq_ptr_data.24" = type { %"class.std::__uniq_ptr_impl.25" }
%"class.std::__uniq_ptr_impl.25" = type { %"class.std::tuple.26" }
%"class.std::tuple.26" = type { %"struct.std::_Tuple_impl.27" }
%"struct.std::_Tuple_impl.27" = type { %"struct.std::_Head_base.30" }
%"struct.std::_Head_base.30" = type { ptr }
%"class.std::unique_ptr.31" = type { %"struct.std::__uniq_ptr_data.32" }
%"struct.std::__uniq_ptr_data.32" = type { %"class.std::__uniq_ptr_impl.33" }
%"class.std::__uniq_ptr_impl.33" = type { %"class.std::tuple.34" }
%"class.std::tuple.34" = type { %"struct.std::_Tuple_impl.35" }
%"struct.std::_Tuple_impl.35" = type { %"struct.std::_Head_base.38" }
%"struct.std::_Head_base.38" = type { ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<AST::PathNode, std::allocator<AST::PathNode>>::_Vector_impl" }
%"struct.std::_Vector_base<AST::PathNode, std::allocator<AST::PathNode>>::_Vector_impl" = type { %"struct.std::_Vector_base<AST::PathNode, std::allocator<AST::PathNode>>::_Vector_impl_data" }
%"struct.std::_Vector_base<AST::PathNode, std::allocator<AST::PathNode>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.AST::Path::Bindings" = type { %"struct.AST::PathBinding", %"struct.AST::PathBinding.44", %"struct.AST::PathBinding.45" }
%"struct.AST::PathBinding" = type { %"struct.AST::AbsolutePath", %"class.AST::PathBinding_Value" }
%"struct.AST::AbsolutePath" = type { %class.RcString, %"class.std::vector.39" }
%class.RcString = type { ptr }
%"class.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl" }
%"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl" = type { %"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl_data" }
%"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.AST::PathBinding_Value" = type { i32, %"union.AST::PathBinding_Value::DataUnion" }
%"union.AST::PathBinding_Value::DataUnion" = type { %"struct.AST::PathBinding_Value::Data_EnumVar" }
%"struct.AST::PathBinding_Value::Data_EnumVar" = type { ptr, i32, ptr }
%"struct.AST::PathBinding.44" = type { %"struct.AST::AbsolutePath", %"class.AST::PathBinding_Type" }
%"class.AST::PathBinding_Type" = type { i32, %"union.AST::PathBinding_Type::DataUnion" }
%"union.AST::PathBinding_Type::DataUnion" = type { %"struct.AST::PathBinding_Type::Data_Module" }
%"struct.AST::PathBinding_Type::Data_Module" = type { ptr, %"struct.AST::PathBinding_Type::(anonymous struct)::Hir" }
%"struct.AST::PathBinding_Type::(anonymous struct)::Hir" = type { ptr, ptr }
%"struct.AST::PathBinding.45" = type { %"struct.AST::AbsolutePath", %"class.AST::PathBinding_Macro" }
%"class.AST::PathBinding_Macro" = type { i32, %"union.AST::PathBinding_Macro::DataUnion" }
%"union.AST::PathBinding_Macro::DataUnion" = type { %"struct.AST::PathBinding_Macro::Data_ProcMacroDerive" }
%"struct.AST::PathBinding_Macro::Data_ProcMacroDerive" = type { ptr, %class.RcString }
%class.TypeRef = type { %struct.Span, %class.TypeData }
%class.TypeData = type { i32, %"union.TypeData::DataUnion" }
%"union.TypeData::DataUnion" = type { %"struct.TypeData::Data_ErasedType", [32 x i8] }
%"struct.TypeData::Data_ErasedType" = type { %"class.std::vector.125", %"class.std::vector.125", %"class.std::vector.130" }
%"class.std::vector.125" = type { %"struct.std::_Vector_base.126" }
%"struct.std::_Vector_base.126" = type { %"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl" }
%"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl" = type { %"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.130" = type { %"struct.std::_Vector_base.131" }
%"struct.std::_Vector_base.131" = type { %"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl" }
%"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl" = type { %"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN3AST12_GLOBAL__N_112mk_exprnodepERK4SpanPNS_8ExprNodeE(ptr dead_on_unwind noalias writable sret(%"class.AST::ExprNodeP") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3AST19ExprNode_LetBinding5cloneEv(ptr dead_on_unwind noalias writable sret(%"class.AST::ExprNodeP") align 8 %0, ptr noundef nonnull align 8 dereferenceable(728) %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.AST::Pattern", align 8
  %4 = alloca %class.TypeRef, align 8
  %5 = alloca %"class.AST::ExprNodeP", align 8
  %6 = alloca %"class.AST::ExprNodeP", align 8
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3AST8ExprNode4spanEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %8 = tail call noalias noundef nonnull dereferenceable(728) ptr @_Znwm(i64 noundef 728) #7
  %9 = getelementptr inbounds i8, ptr %1, i64 40
  invoke void @_ZNK3AST7Pattern5cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.AST::Pattern") align 8 %3, ptr noundef nonnull align 8 dereferenceable(544) %9)
          to label %10 unwind label %.thread

10:                                               ; preds = %2
  %11 = getelementptr inbounds i8, ptr %1, i64 584
  invoke void @_ZNK7TypeRef5cloneEv(ptr dead_on_unwind nonnull writable sret(%class.TypeRef) align 8 %4, ptr noundef nonnull align 8 dereferenceable(120) %11)
          to label %12 unwind label %.thread38

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %1, i64 704
  %14 = call noundef ptr @_ZNK3AST9ExprNodeP3getEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
  %.not.not = icmp eq ptr %14, null
  br i1 %.not.not, label %20, label %15

15:                                               ; preds = %12
  %16 = call noundef ptr @_ZNK3AST9ExprNodePptEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 32
  %19 = load ptr, ptr %18, align 8
  invoke void %19(ptr dead_on_unwind nonnull writable sret(%"class.AST::ExprNodeP") align 8 %5, ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %21 unwind label %35

20:                                               ; preds = %12
  call void @_ZN3AST9ExprNodePC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
  br label %21

21:                                               ; preds = %15, %20
  %22 = getelementptr inbounds i8, ptr %1, i64 712
  %23 = call noundef ptr @_ZNK3AST9ExprNodeP3getEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
  %.not.not23 = icmp eq ptr %23, null
  br i1 %.not.not23, label %29, label %24

24:                                               ; preds = %21
  %25 = call noundef ptr @_ZNK3AST9ExprNodePptEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 32
  %28 = load ptr, ptr %27, align 8
  invoke void %28(ptr dead_on_unwind nonnull writable sret(%"class.AST::ExprNodeP") align 8 %6, ptr noundef nonnull align 8 dereferenceable(40) %25)
          to label %30 unwind label %37

29:                                               ; preds = %21
  call void @_ZN3AST9ExprNodePC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
  br label %30

30:                                               ; preds = %24, %29
  invoke void @_ZN3AST19ExprNode_LetBindingC2ENS_7PatternE7TypeRefNS_9ExprNodePES3_(ptr noundef nonnull align 8 dereferenceable(728) %8, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %31 unwind label %39

31:                                               ; preds = %30
  invoke void @_ZN3AST12_GLOBAL__N_112mk_exprnodepERK4SpanPNS_8ExprNodeE(ptr dead_on_unwind writable sret(%"class.AST::ExprNodeP") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull %8)
          to label %32 unwind label %39

32:                                               ; preds = %31
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %4) #8
  call void @_ZN3AST7PatternD1Ev(ptr noundef nonnull align 8 dereferenceable(544) %3) #8
  ret void

.thread:                                          ; preds = %2
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %43

.thread38:                                        ; preds = %10
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3AST7PatternD1Ev(ptr noundef nonnull align 8 dereferenceable(544) %3) #8
  br label %43

35:                                               ; preds = %15
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %42

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

39:                                               ; preds = %31, %30
  %.0 = phi i1 [ false, %31 ], [ true, %30 ]
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br label %41

41:                                               ; preds = %39, %37
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %40, %39 ]
  %.1 = phi i1 [ true, %37 ], [ %.0, %39 ]
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br label %42

42:                                               ; preds = %41, %35
  %.pn.pn = phi { ptr, i32 } [ %36, %35 ], [ %.pn, %41 ]
  %.2 = phi i1 [ true, %35 ], [ %.1, %41 ]
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %4) #8
  call void @_ZN3AST7PatternD1Ev(ptr noundef nonnull align 8 dereferenceable(544) %3) #8
  br i1 %.2, label %43, label %44

43:                                               ; preds = %.thread38, %.thread, %42
  %.pn.pn.pn.pn37 = phi { ptr, i32 } [ %33, %.thread ], [ %.pn.pn, %42 ], [ %34, %.thread38 ]
  call void @_ZdlPvm(ptr noundef nonnull %8, i64 noundef 728) #9
  br label %44

44:                                               ; preds = %42, %43
  %.pn.pn.pn.pn36 = phi { ptr, i32 } [ %.pn.pn, %42 ], [ %.pn.pn.pn.pn37, %43 ]
  resume { ptr, i32 } %.pn.pn.pn.pn36
}

declare void @_ZNK3AST7Pattern5cloneEv(ptr dead_on_unwind writable sret(%"class.AST::Pattern") align 8, ptr noundef nonnull align 8 dereferenceable(544)) local_unnamed_addr #5

declare void @_ZNK7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%class.TypeRef) align 8, ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #5

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

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

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

; Function Attrs: nounwind
declare void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #6

; Function Attrs: nounwind
declare void @_ZN3AST7PatternD1Ev(ptr noundef nonnull align 8 dereferenceable(544)) unnamed_addr #6

declare void @_ZN3AST9ExprNodePD1Ev(ptr) local_unnamed_addr

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 = { 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 #2 = { nobuiltin allocsize(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 = { nobuiltin 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 #4 = { 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 #5 = { "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 = { 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 #7 = { builtin allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


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